[llvm-commits] CVS: llvm/autoconf/configure.ac
Anton Korobeynikov
asl at math.spbu.ru
Fri Jan 19 23:40:42 PST 2007
Changes in directory llvm/autoconf:
configure.ac updated: 1.260 -> 1.261
---
Log message:
Cleanup
---
Diffs of the changes: (+17 -17)
configure.ac | 34 +++++++++++++++++-----------------
1 files changed, 17 insertions(+), 17 deletions(-)
Index: llvm/autoconf/configure.ac
diff -u llvm/autoconf/configure.ac:1.260 llvm/autoconf/configure.ac:1.261
--- llvm/autoconf/configure.ac:1.260 Fri Jan 19 11:25:17 2007
+++ llvm/autoconf/configure.ac Sat Jan 20 01:40:26 2007
@@ -636,7 +636,7 @@
[
AC_SUBST(USE_UDIS86, [1])
case "$withval" in
- /usr/lib) ;;
+ /usr/lib|yes) ;;
*) LDFLAGS="$LDFLAGS -L${withval}" ;;
esac
AC_CHECK_LIB(udis86, ud_init, [], [
@@ -718,22 +718,22 @@
AC_FUNC_ISNAN
AC_FUNC_ISINF
-dnl Check for mmap and mprotect support. We need both to do the JIT and for
-dnl bytecode loading, etc. We also need to know if /dev/zero is required to
-dnl be opened for allocating RWX memory.
-AC_FUNC_MMAP
-AC_FUNC_MMAP_FILE
-AC_NEED_DEV_ZERO_FOR_MMAP
-AC_CHECK_FUNC(mprotect,,
- AC_MSG_ERROR([Function mprotect() required but not found]))
-
-if test "$ac_cv_func_mmap_fixed_mapped" = "no"
-then
- AC_MSG_WARN([mmap() of a fixed address required but not supported])
-fi
-if test "$ac_cv_func_mmap_file" = "no"
-then
- AC_MSG_WARN([mmap() of files required but not found])
+dnl Check for mmap support.We also need to know if /dev/zero is required to
+dnl be opened for allocating RWX memory.
+dnl Make sure we aren't attempting to configure for an unknown system
+if test "$llvm_cv_platform_type" = "Unix" ; then
+ AC_FUNC_MMAP
+ AC_FUNC_MMAP_FILE
+ AC_NEED_DEV_ZERO_FOR_MMAP
+
+ if test "$ac_cv_func_mmap_fixed_mapped" = "no"
+ then
+ AC_MSG_WARN([mmap() of a fixed address required but not supported])
+ fi
+ if test "$ac_cv_func_mmap_file" = "no"
+ then
+ AC_MSG_WARN([mmap() of files required but not found])
+ fi
fi
dnl===-----------------------------------------------------------------------===
More information about the llvm-commits
mailing list