r8453: my solaris10 box doesn't have math.h
authorAndrew Tridgell <tridge@samba.org>
Thu, 14 Jul 2005 07:35:48 +0000 (07:35 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:23:05 +0000 (13:23 -0500)
maybe sun isn't very good at maths?
(This used to be commit ab67c8b2b7847ecad803dfc04a66007b8f6b4abe)

source4/build/m4/rewrite.m4
source4/lib/appweb/mpr/miniMpr.h

index 71cb95cac28ba3c4ddecd502b4413b48ab1e11ed..5998801f0c61c95a9394848c062d3b152b37eb6c 100644 (file)
@@ -56,7 +56,7 @@ AC_HEADER_TIME
 AC_HEADER_SYS_WAIT
 AC_CHECK_HEADERS(arpa/inet.h sys/select.h fcntl.h sys/fcntl.h sys/time.h)
 AC_CHECK_HEADERS(utime.h grp.h sys/id.h limits.h memory.h net/if.h)
-AC_CHECK_HEADERS(compat.h)
+AC_CHECK_HEADERS(compat.h math.h)
 AC_CHECK_HEADERS(sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/mode.h)
 AC_CHECK_HEADERS(sys/mman.h sys/filio.h sys/priv.h sys/shm.h string.h strings.h stdlib.h sys/socket.h)
 AC_CHECK_HEADERS(sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h)
index 8b28472826cd78bbdb32887060aa0e428170203e..6fc4d50c31e69b25bcf45a443fe1d61c57deece2 100644 (file)
@@ -74,8 +74,9 @@
 #if QNX4
        #include        <dirent.h>
 #endif
+#ifdef HAVE_MATH_H
        #include        <math.h>
-
+#endif
 /********************************** Defines ***********************************/
 
 #ifdef __cplusplus