summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorJerome Soumagne <jsoumagne@hdfgroup.org>2015-08-21 18:52:30 (GMT)
committerJerome Soumagne <jsoumagne@hdfgroup.org>2015-08-21 18:52:30 (GMT)
commit7ce2d52cf69f6f6477e0f16e9d85d67cc54d5949 (patch)
treedf01935167a5d011693bb791e582b60f375669d7 /configure
parent1b2b0bd5a30cbc4227457abd08f563a8fd8c8b68 (diff)
downloadhdf5-7ce2d52cf69f6f6477e0f16e9d85d67cc54d5949.zip
hdf5-7ce2d52cf69f6f6477e0f16e9d85d67cc54d5949.tar.gz
hdf5-7ce2d52cf69f6f6477e0f16e9d85d67cc54d5949.tar.bz2
[svn-r27545] Add first support for _Bool and make hbool_t a "real" _Bool if available
Fix tests accordingly
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure55
1 files changed, 55 insertions, 0 deletions
diff --git a/configure b/configure
index 42e9b81..55ade2f 100755
--- a/configure
+++ b/configure
@@ -23373,6 +23373,18 @@ fi
done
+for ac_header in stdbool.h
+do :
+ ac_fn_c_check_header_mongrel "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "$ac_includes_default"
+if test "x$ac_cv_header_stdbool_h" = xyes; then :
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_STDBOOL_H 1
+_ACEOF
+
+fi
+
+done
+
## Darwin
for ac_header in mach/mach_time.h
@@ -24963,6 +24975,49 @@ _ACEOF
+if test "X$C9x" = "Xyes"; then
+ cat >>confdefs.h <<\EOF
+#ifdef HAVE_STDBOOL_H
+#include <stdbool.h> /* for bool definition */
+#else
+#define bool _Bool
+#endif
+EOF
+# The cast to long int works around a bug in the HP C Compiler
+# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
+# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
+# This bug is HP SR number 8606223364.
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of bool" >&5
+$as_echo_n "checking size of bool... " >&6; }
+if ${ac_cv_sizeof_bool+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (bool))" "ac_cv_sizeof_bool" "$ac_includes_default"; then :
+
+else
+ if test "$ac_cv_type_bool" = yes; then
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error 77 "cannot compute sizeof (bool)
+See \`config.log' for more details" "$LINENO" 5; }
+ else
+ ac_cv_sizeof_bool=0
+ fi
+fi
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_bool" >&5
+$as_echo "$ac_cv_sizeof_bool" >&6; }
+
+
+
+cat >>confdefs.h <<_ACEOF
+#define SIZEOF_BOOL $ac_cv_sizeof_bool
+_ACEOF
+
+
+fi
+
## Checkpoint the cache
cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure