]> granicus.if.org Git - graphviz/commitdiff
Try configure testing fesetenv while -lm is added to LIBS
authorellson <devnull@localhost>
Mon, 16 May 2005 18:21:30 +0000 (18:21 +0000)
committerellson <devnull@localhost>
Mon, 16 May 2005 18:21:30 +0000 (18:21 +0000)
configure.ac

index f902c4b3e6eab833e4b5aa36d0863b5646624f7e..28147b8caf436900157903cbdbe220c41c515602 100644 (file)
@@ -717,14 +717,6 @@ AC_ARG_WITH(extralibdir,
   [  --with-extralibdir=DIR  use extra libraries from DIR],
   LDFLAGS="$LDFLAGS -L$withval",)
 
-dnl -----------------------------------
-dnl Checks for -lm library
-
-save_LIBS=$LIBS
-AC_CHECK_LIB(m, main, [MATH_LIBS="-lm"])
-AC_SUBST(MATH_LIBS)
-LIBS=$save_LIBS
-
 dnl -----------------------------------
 dnl ...borrow test for -lsocket -lnsl from tk8.3.3/unix/configure.in
 
@@ -1211,10 +1203,22 @@ AC_FUNC_ALLOCA
 
 AC_CHECK_FUNCS([lrand48 drand48 srand48 setmode setenv getenv \
        __freadable _sysconf getrusage strerror cbrt lsqrt vsnprintf \
-       strtoul strtoll strtoull feenableexcept fesetenv uname])
+       strtoul strtoll strtoull uname])
 
 AC_REPLACE_FUNCS([strcasecmp strncasecmp])
 
+dnl -----------------------------------
+dnl Checks for -lm library
+
+save_LIBS=$LIBS
+AC_CHECK_LIB(m, main, [MATH_LIBS="-lm"])
+AC_SUBST(MATH_LIBS)
+
+# Check for functions that might need -lm
+AC_CHECK_FUNCS([feenableexcept fesetenv])
+
+LIBS=$save_LIBS
+
 # Check for st_blksize in struct stat
 # AC_ST_BLKSIZE