From f3ecf3a40c07d52c6d7817e0dfa75fa38e33e0d3 Mon Sep 17 00:00:00 2001 From: John Criswell Date: Thu, 27 May 2004 00:57:50 +0000 Subject: [PATCH] Only give warnings if the user doesn't have mmap(). This is pretty much 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 | 4 ++-- configure | 10 ++++------ 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/autoconf/configure.ac b/autoconf/configure.ac index 8b4aef57887..464336e3123 100644 --- a/autoconf/configure.ac +++ b/autoconf/configure.ac @@ -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 diff --git a/configure b/configure index 65208d05c60..e2721f125dd 100755 --- 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