llvm.org GIT mirror llvm / a5137f3
Cleanup git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33391 91177308-0d34-0410-b5e6-96231b3b80d8 Anton Korobeynikov 12 years ago
1 changed file(s) with 17 addition(s) and 17 deletion(s). Raw diff Collapse all Expand all
635635 [
636636 AC_SUBST(USE_UDIS86, [1])
637637 case "$withval" in
638 /usr/lib) ;;
638 /usr/lib|yes) ;;
639639 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
640640 esac
641641 AC_CHECK_LIB(udis86, ud_init, [], [
717717 AC_FUNC_ISNAN
718718 AC_FUNC_ISINF
719719
720 dnl Check for mmap and mprotect support. We need both to do the JIT and for
721 dnl bytecode loading, etc. We also need to know if /dev/zero is required to
722 dnl be opened for allocating RWX memory.
723 AC_FUNC_MMAP
724 AC_FUNC_MMAP_FILE
725 AC_NEED_DEV_ZERO_FOR_MMAP
726 AC_CHECK_FUNC(mprotect,,
727 AC_MSG_ERROR([Function mprotect() required but not found]))
728
729 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
730 then
731 AC_MSG_WARN([mmap() of a fixed address required but not supported])
732 fi
733 if test "$ac_cv_func_mmap_file" = "no"
734 then
735 AC_MSG_WARN([mmap() of files required but not found])
720 dnl Check for mmap support.We also need to know if /dev/zero is required to
721 dnl be opened for allocating RWX memory.
722 dnl Make sure we aren't attempting to configure for an unknown system
723 if test "$llvm_cv_platform_type" = "Unix" ; then
724 AC_FUNC_MMAP
725 AC_FUNC_MMAP_FILE
726 AC_NEED_DEV_ZERO_FOR_MMAP
727
728 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
729 then
730 AC_MSG_WARN([mmap() of a fixed address required but not supported])
731 fi
732 if test "$ac_cv_func_mmap_file" = "no"
733 then
734 AC_MSG_WARN([mmap() of files required but not found])
735 fi
736736 fi
737737
738738 dnl===-----------------------------------------------------------------------===