summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--configure.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index 51a40ed10..026abab42 100644
--- a/configure.in
+++ b/configure.in
@@ -859,7 +859,6 @@ AC_CHECK_FUNCS(strftime difftime gettimeofday \
 	       initgroups nis_list \
 	       setuid seteuid setreuid setresuid setsid \
 	       memcpy memmove strstr strerror \
-	       mmap munmap msync \
 	       cap_get_proc \
 	       getrlimit \
 	       setlocale \
@@ -870,6 +869,11 @@ AC_CHECK_FUNCS(strftime difftime gettimeofday \
 	       pathconf sysconf)
 AC_FUNC_STRCOLL
 
+AC_FUNC_MMAP
+if test $ac_cv_func_mmap = yes; then
+  AC_CHECK_FUNCS(munmap msync)
+fi
+
 if test $ac_cv_func_setpgrp = yes; then
   AC_FUNC_GETPGRP
 else