$NetBSD: patch-aa,v 1.9 2002/09/09 00:59:02 markd Exp $ --- configure.ac.orig Wed May 1 06:04:05 2002 +++ configure.ac Sun Sep 8 23:47:11 2002 @@ -414,9 +414,9 @@ ## AC_CHECK_LIBM computes LIBM but does not add to LIBS, hence we do ## the following as well. AC_CHECK_LIB(m, sin) -AC_CHECK_LIB(ncurses, main, [], - AC_CHECK_LIB(termcap, main, [], - AC_CHECK_LIB(termlib, main))) +AC_CHECK_LIB(termcap, main, [], + AC_CHECK_LIB(termlib, main, [], + AC_CHECK_LIB(ncurses, main))) AC_CHECK_LIB(dl, dlopen) ## Readline. @@ -555,13 +555,6 @@ R_PROG_CC_FLAG([-ieee_with_inexact], [R_XTRA_CFLAGS="${R_XTRA_CFLAGS} -ieee_with_inexact"]) fi - if test "${G77}" = yes; then - R_PROG_F77_FLAG([-mieee], - [R_XTRA_FFLAGS="${R_XTRA_FFLAGS} -mieee"]) - else - R_PROG_F77_FLAG([-fpe3], - [R_XTRA_FFLAGS="${R_XTRA_FFLAGS} -fpe3"]) - fi if test "${GXX}" = yes; then R_PROG_CXX_FLAG([-mieee], [R_XTRA_CXXFLAGS="${R_XTRA_CXXFLAGS} -mieee"]) @@ -816,6 +809,7 @@ fpicflags= ;; netbsd*) + fpicflags="-fPIC" if ${CPP} - -dM < /dev/null | grep -q __ELF__; then main_ldflags="-export-dynamic" shlib_ldflags="-shared"