[Nagiosplug-checkins] CVS: nagiosplug configure.in,1.92,1.93

Karl DeBisschop kdebisschop at users.sourceforge.net
Tue Sep 2 23:01:18 CEST 2003


Update of /cvsroot/nagiosplug/nagiosplug
In directory sc8-pr-cvs1:/tmp/cvs-serv1738

Modified Files:
	configure.in 
Log Message:
include math.h if needed for HUGE_VAL

Index: configure.in
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/configure.in,v
retrieving revision 1.92
retrieving revision 1.93
diff -C2 -r1.92 -r1.93
*** configure.in	29 Jul 2003 05:43:37 -0000	1.92
--- configure.in	3 Sep 2003 06:00:49 -0000	1.93
***************
*** 464,467 ****
--- 464,481 ----
  AC_CHECK_HEADERS(limits.h sys/param.h sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h fcntl.h sys/statfs.h sys/dustat.h sys/statvfs.h)
  
+ # glibc 2.3.2 stdlib.h does not define HUGE_VAL (see man strtod)
+ AC_MSG_CHECKING([for HUGE_VAL in <stdlib.h>])
+ AC_TRY_COMPILE([#include <stdlib.h>],
+                [double x = HUGE_VAL;],
+                [AC_MSG_RESULT(yes)],
+                [AC_MSG_RESULT(no)
+                 AC_MSG_CHECKING([for HUGE_VAL in <math.h>])
+                 AC_TRY_COMPILE([#include <math.h>],
+                                [double x = HUGE_VAL;],
+                                [AC_MSG_RESULT(yes)
+                                 AC_DEFINE_UNQUOTED(HUGE_VAL_NEEDS_MATH_H, 1,
+                                                   [Define if <math.h> is required for HUGE_VAL])],
+                                [AC_MSG_RESULT(no)])])
+ 
  # Define HAVE_INTTYPES_H if <inttypes.h> exists,
  # doesn't clash with <sys/types.h>, and declares uintmax_t.





More information about the Commits mailing list