aboutsummaryrefslogtreecommitdiff
path: root/sim/m4/sim_ac_common.m4
diff options
context:
space:
mode:
Diffstat (limited to 'sim/m4/sim_ac_common.m4')
-rw-r--r--sim/m4/sim_ac_common.m415
1 files changed, 11 insertions, 4 deletions
diff --git a/sim/m4/sim_ac_common.m4 b/sim/m4/sim_ac_common.m4
index 7845142..3cc9e87 100644
--- a/sim/m4/sim_ac_common.m4
+++ b/sim/m4/sim_ac_common.m4
@@ -52,10 +52,17 @@ ZW_GNU_GETTEXT_SISTER_DIR(../../intl)
# Check for common headers.
# NB: You can assume C11 headers exist.
-AC_CHECK_HEADERS(unistd.h)
-AC_CHECK_HEADERS(sys/time.h sys/times.h sys/resource.h sys/mman.h)
-AC_CHECK_HEADERS(fcntl.h fpu_control.h)
-AC_CHECK_HEADERS(dlfcn.h sys/stat.h)
+AC_CHECK_HEADERS_ONCE(m4_flatten([
+ dlfcn.h
+ fcntl.h
+ fpu_control.h
+ unistd.h
+ sys/mman.h
+ sys/resource.h
+ sys/time.h
+ sys/times.h
+ sys/stat.h
+]))
AC_CHECK_FUNCS_ONCE(m4_flatten([
__setfpucw
ftruncate