Commit acd9f1bd authored by unknown's avatar unknown
Browse files

Bug#14862 undefined reference to `isinf' on SOLARIS - strings/strtod.c

 - Change the configure test looking for 'isinf' so the value returned from isinf is used. That avoids the call to isinf being optimized away. 


configure.in:
  Use the value returned from isinf so it's not optimized away by the compiler(i.e gcc 4.1)
parent bd8309cc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1946,7 +1946,7 @@ esac

# isinf() could be a function or a macro (HPUX)
AC_MSG_CHECKING(for isinf with <math.h>)
AC_TRY_LINK([#include <math.h>], [float f = 0.0; isinf(f)],
AC_TRY_LINK([#include <math.h>], [float f = 0.0; int r = isinf(f); return r],
 AC_MSG_RESULT(yes)
 AC_DEFINE(HAVE_ISINF, [1], [isinf() macro or function]),
 AC_MSG_RESULT(no))