summaryrefslogtreecommitdiff
path: root/source4/lib/replace/config.m4
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-04-24 14:52:37 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:04:17 -0500
commit94af743baab2e32912bbc6f48e9ea54bda818593 (patch)
tree688754ac9318351059606d73e2cea3aabd059791 /source4/lib/replace/config.m4
parenta0f8ff3cbdbfe475496d210e3d25ecb5bc35fdf3 (diff)
downloadsamba-94af743baab2e32912bbc6f48e9ea54bda818593.tar.gz
samba-94af743baab2e32912bbc6f48e9ea54bda818593.tar.bz2
samba-94af743baab2e32912bbc6f48e9ea54bda818593.zip
r15203: Allow system 'bool' type to be defined in another header then stdbool.h
(This used to be commit a5a648de94014b13da3af8dfac06380c9ec26c53)
Diffstat (limited to 'source4/lib/replace/config.m4')
-rw-r--r--source4/lib/replace/config.m49
1 files changed, 9 insertions, 0 deletions
diff --git a/source4/lib/replace/config.m4 b/source4/lib/replace/config.m4
index ada9566b58..bac38f6439 100644
--- a/source4/lib/replace/config.m4
+++ b/source4/lib/replace/config.m4
@@ -130,6 +130,15 @@ AC_CHECK_FUNCS([syslog memset setnetgrent getnetgrent endnetgrent memcpy],,
AC_CHECK_HEADERS(stdbool.h)
+AC_CHECK_TYPE(bool,
+[AC_DEFINE(HAVE_BOOL, 1, [Whether the bool type is available])],,
+[
+AC_INCLUDES_DEFAULT
+#ifdef HAVE_STDBOOL_H
+#include <stdbool.h>
+#endif]
+)
+
sinclude(lib/replace/readline.m4)
sinclude(lib/replace/getpass.m4)