diff options
author | Andrew Tridgell <tridge@samba.org> | 2006-09-10 12:23:47 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2006-09-10 12:23:47 +0000 |
commit | b6882786dfee8c89f020cfa66b04f7b37628e9e9 (patch) | |
tree | ad0c12f2a38e736ae5cf14c343eda5dc5803a783 /source/lib/replace/libreplace.m4 | |
parent | 4f3de74735cc479865a1221e92ebdd9d1f466eee (diff) | |
download | samba-b6882786dfee8c89f020cfa66b04f7b37628e9e9.tar.gz samba-b6882786dfee8c89f020cfa66b04f7b37628e9e9.tar.xz samba-b6882786dfee8c89f020cfa66b04f7b37628e9e9.zip |
r18335: more portable bool tests
Diffstat (limited to 'source/lib/replace/libreplace.m4')
-rw-r--r-- | source/lib/replace/libreplace.m4 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/lib/replace/libreplace.m4 b/source/lib/replace/libreplace.m4 index cd9d171662d..a734704ae88 100644 --- a/source/lib/replace/libreplace.m4 +++ b/source/lib/replace/libreplace.m4 @@ -81,6 +81,15 @@ AC_INCLUDES_DEFAULT #endif] ) +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] +) + AC_CACHE_CHECK([for working mmap],samba_cv_HAVE_MMAP,[ AC_TRY_RUN([#include "$libreplacedir/test/shared_mmap.c"], |