summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2021-05-28 12:48:29 (GMT)
committerGitHub <noreply@github.com>2021-05-28 12:48:29 (GMT)
commite60ac6ec2d82fc1bcffcfecd353ff074f9011275 (patch)
tree6ca93dbbb1ced5690bdd1f7ba4328fc8af0016a6 /configure.ac
parent4454fca02a57663ea0dbcca01016788bd11703b9 (diff)
downloadhdf5-e60ac6ec2d82fc1bcffcfecd353ff074f9011275.zip
hdf5-e60ac6ec2d82fc1bcffcfecd353ff074f9011275.tar.gz
hdf5-e60ac6ec2d82fc1bcffcfecd353ff074f9011275.tar.bz2
Removes pre-C99 build and header cruft (#700)
* Committing clang-format changes * Removes pre-C99 build and header cruft * Assumes ANSI C headers exist * Assumes stdbool.h, stdint.h, and inttypes.h are present * Assumes the C++ compiler can handle stdint.h * Removes all work-arounds for missing functionality, especially stdbool.h * Formats source Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac10
1 files changed, 1 insertions, 9 deletions
diff --git a/configure.ac b/configure.ac
index 2df2b90..921e8c6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1251,8 +1251,6 @@ AC_CHECK_HEADERS([sys/resource.h sys/time.h unistd.h sys/ioctl.h sys/stat.h])
AC_CHECK_HEADERS([sys/socket.h sys/types.h sys/file.h])
AC_CHECK_HEADERS([stddef.h setjmp.h features.h])
AC_CHECK_HEADERS([dirent.h])
-AC_CHECK_HEADERS([stdint.h], [C9x=yes])
-AC_CHECK_HEADERS([stdbool.h])
AC_CHECK_HEADERS([netdb.h netinet/in.h arpa/inet.h])
## Darwin
@@ -1417,11 +1415,7 @@ AC_CHECK_SIZEOF([off_t])
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
+#include <stdbool.h>
EOF
AC_CHECK_SIZEOF([bool])
fi
@@ -1938,10 +1932,8 @@ if test "X$THREADSAFE" = "Xyes"; then
AC_CACHE_VAL([hdf5_cv_system_scope_threads],
[AC_RUN_IFELSE(
[AC_LANG_PROGRAM([
- #if STDC_HEADERS
#include <stdlib.h>
#include <pthread.h>
- #endif
],[
pthread_attr_t attribute;
int ret;