summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-12-23 21:37:57 +0100
committerVolker Lendecke <vl@samba.org>2011-12-25 13:31:58 +0100
commitc3a4057a21c87cabbc03692b170e9e78badd9e5c (patch)
tree6e166b8ceede2887d8d89dd8f6713ecccfc10ef1 /lib
parenteb617374a673bb1189dd9b6bccbf3f1d9fb91010 (diff)
downloadsamba-c3a4057a21c87cabbc03692b170e9e78badd9e5c.tar.gz
samba-c3a4057a21c87cabbc03692b170e9e78badd9e5c.tar.bz2
samba-c3a4057a21c87cabbc03692b170e9e78badd9e5c.zip
libreplace: Don't check for standards.h on darwin (Lion)
standards.h on Lion holds a #warning that standards.h will be removed. This is annoying during the build.
Diffstat (limited to 'lib')
-rw-r--r--lib/replace/libreplace_cc.m412
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/replace/libreplace_cc.m4 b/lib/replace/libreplace_cc.m4
index 48d9e84a32..7ddc19f14b 100644
--- a/lib/replace/libreplace_cc.m4
+++ b/lib/replace/libreplace_cc.m4
@@ -102,9 +102,17 @@ case "$host_os" in
;;
esac
+# Do not check for standards.h on darwin, we get nasty warnings on
+# OS/X Lion. Probably a positive-list of OS'es like IRIX and AIX
+# would be the better choice, but this seems to work fine
-
-AC_CHECK_HEADERS([standards.h])
+case "$host_os" in
+ *darwin*)
+ ;;
+ *)
+ AC_CHECK_HEADERS([standards.h])
+ ;;
+esac
# Solaris needs HAVE_LONG_LONG defined
AC_CHECK_TYPES(long long)