]> granicus.if.org Git - graphviz/commitdiff
fix fesetenv() test
authorellson <devnull@localhost>
Mon, 16 May 2005 19:59:11 +0000 (19:59 +0000)
committerellson <devnull@localhost>
Mon, 16 May 2005 19:59:11 +0000 (19:59 +0000)
make the use of FE_NONIEEE_ENV conditional on it being defined

cmd/dot/dot.c
configure.ac

index d3226a38da3e39a391acdec2ceda078c03c201ad..37119b01155b7e254c4a3c673aebe200bde5e6c3 100644 (file)
@@ -84,8 +84,10 @@ static void fpinit(void)
     feenableexcept(exc);
 
 #ifdef HAVE_FESETENV
+#ifdef FE_NONIEEE_ENV
     fesetenv (FE_NONIEEE_ENV);
 #endif
+#endif
 
 #elif  HAVE_FPU_CONTROL_H
     /* On s390-ibm-linux, the header exists, but the definitions
index 28147b8caf436900157903cbdbe220c41c515602..b1618039de518f2fd9dc7c25119499c700c04fcf 100644 (file)
@@ -1215,6 +1215,7 @@ AC_CHECK_LIB(m, main, [MATH_LIBS="-lm"])
 AC_SUBST(MATH_LIBS)
 
 # Check for functions that might need -lm
+LIBS="$LIBS $MATH_LIBS"
 AC_CHECK_FUNCS([feenableexcept fesetenv])
 
 LIBS=$save_LIBS