Only give warnings if the user doesn't have mmap(). This is pretty much
authorJohn Criswell <criswell@uiuc.edu>
Thu, 27 May 2004 00:57:50 +0000 (00:57 +0000)
committerJohn Criswell <criswell@uiuc.edu>
Thu, 27 May 2004 00:57:50 +0000 (00:57 +0000)
a hack that allows users to fight through a build if they don't have mmap().
When I get into the office, I'll make something better.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13801 91177308-0d34-0410-b5e6-96231b3b80d8

autoconf/configure.ac
configure

index 8b4aef57887bb85b5a3ea21dd38f8a8fe93d648c..464336e3123595d347c405c249af59c72a3c05cd 100644 (file)
@@ -273,12 +273,12 @@ AC_FUNC_ALLOCA
 AC_FUNC_MMAP
 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
 then
-       AC_MSG_ERROR([mmap() required but not found])
+       AC_MSG_WARN([mmap() required but not found])
 fi
 AC_FUNC_MMAP_FILE
 if test "$ac_cv_func_mmap_file" = "no"
 then
-       AC_MSG_ERROR([mmap() of files required but not found])
+       AC_MSG_WARN([mmap() of files required but not found])
 fi
 AC_HEADER_MMAP_ANONYMOUS
 AC_TYPE_SIGNAL
index 65208d05c609c682c2651c72b77922593af3ea41..e2721f125dd82aae73bb5b5954cf5bf4d99c51ae 100755 (executable)
--- a/configure
+++ b/configure
@@ -21368,9 +21368,8 @@ rm -f conftest.mmap
 
 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
 then
-       { { echo "$as_me:$LINENO: error: mmap() required but not found" >&5
-echo "$as_me: error: mmap() required but not found" >&2;}
-   { (exit 1); exit 1; }; }
+       { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
+echo "$as_me: WARNING: mmap() required but not found" >&2;}
 fi
 echo "$as_me:$LINENO: checking for mmap of files" >&5
 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
@@ -21460,9 +21459,8 @@ fi
 
 if test "$ac_cv_func_mmap_file" = "no"
 then
-       { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
-echo "$as_me: error: mmap() of files required but not found" >&2;}
-   { (exit 1); exit 1; }; }
+       { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
+echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
 fi
 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6