From a5dfac10a2ec09de7b9763226161dfc90a2a259d Mon Sep 17 00:00:00 2001 From: Andreas Tobler Date: Mon, 1 May 2006 22:02:27 +0200 Subject: configure.ac: Simplify the mmap check a bit more. 2006-05-01 Andreas Tobler * configure.ac: Simplify the mmap check a bit more. * configure: Rebuilt. * include/config.h.in: Likewise. From-SVN: r113426 --- libjava/configure.ac | 27 +-------------------------- 1 file changed, 1 insertion(+), 26 deletions(-) (limited to 'libjava/configure.ac') diff --git a/libjava/configure.ac b/libjava/configure.ac index 5732fb2..69f4317 100644 --- a/libjava/configure.ac +++ b/libjava/configure.ac @@ -895,7 +895,7 @@ else access stat mkdir rename rmdir unlink realpath utime chmod \ nl_langinfo setlocale \ inet_pton uname inet_ntoa \ - fork execvp pipe sigaction ftruncate]) + fork execvp pipe sigaction ftruncate mmap]) AC_CHECK_FUNCS(inet_aton inet_addr, break) AC_CHECK_HEADERS(execinfo.h unistd.h dlfcn.h) # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl @@ -1352,31 +1352,6 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include ]], [[struct tm tim; tim.t AC_FUNC_ALLOCA -dnl Check for mmap() -# AC_FUNC_MMAP goes to far and checks for mmap fixed, we do only need mmap -# at a mmap selected address. See -# gnu/java/nio/channels/natFileChannelPosix.cc - -AC_MSG_CHECKING([for mmap]) -AC_CACHE_VAL(ac_cv_func_mmap_ok, - [AC_TRY_LINK( - changequote(<<, >>)dnl - << -#include -#include -#include -#include - >>, - changequote([, ])dnl - [mmap((void *)0, 0, PROT_READ, 0, 0, 0);], - ac_cv_func_mmap_ok=yes, - ac_cv_func_mmap_ok=no)] ) -AC_MSG_RESULT($ac_cv_func_mmap_ok) -if test $ac_cv_func_mmap_ok = yes -then - AC_DEFINE(HAVE_MMAP, 1, [ Define to 1 if you have a working `mmap' system call w/o fixed address ability.]) -fi - AC_CHECK_PROGS(PERL, perl, false) SYSDEP_SOURCES= -- cgit v1.1