Commit 6d0b58a9 by Andreas Tobler

configure.ac: Weaken the check for MMAP.

2006-04-22  Andreas Tobler  <a.tobler@schweiz.ch>

	* configure.ac: Weaken the check for MMAP.
	* configure: Rebuilt.
	* include/config.h.in: Likewise.

From-SVN: r113182
parent ac6ed182
2004-04-20 Bryce McKinlay <mckinlay@redhat.com> 2006-04-22 Andreas Tobler <a.tobler@schweiz.ch>
* configure.ac: Weaken the check for MMAP.
* configure: Rebuilt.
* include/config.h.in: Likewise.
2006-04-20 Bryce McKinlay <mckinlay@redhat.com>
PR libgcj/27170 PR libgcj/27170
* gnu/gcj/runtime/natSharedLibLoader.cc: Include gc.h to override * gnu/gcj/runtime/natSharedLibLoader.cc: Include gc.h to override
......
...@@ -1346,7 +1346,31 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <time.h>]], [[struct tm tim; tim.t ...@@ -1346,7 +1346,31 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <time.h>]], [[struct tm tim; tim.t
[AC_MSG_RESULT(no)])])]) [AC_MSG_RESULT(no)])])])
AC_FUNC_ALLOCA AC_FUNC_ALLOCA
AC_FUNC_MMAP
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 <unistd.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <fcntl.h>
>>,
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) AC_CHECK_PROGS(PERL, perl, false)
......
...@@ -115,9 +115,6 @@ ...@@ -115,9 +115,6 @@
/* Define if gethostname is declared in <unistd.h>. */ /* Define if gethostname is declared in <unistd.h>. */
#undef HAVE_GETHOSTNAME_DECL #undef HAVE_GETHOSTNAME_DECL
/* Define to 1 if you have the `getpagesize' function. */
#undef HAVE_GETPAGESIZE
/* Define to 1 if you have the `getpwuid_r' function. */ /* Define to 1 if you have the `getpwuid_r' function. */
#undef HAVE_GETPWUID_R #undef HAVE_GETPWUID_R
...@@ -187,7 +184,8 @@ ...@@ -187,7 +184,8 @@
/* Define is you have 'mktime' in <time.h> */ /* Define is you have 'mktime' in <time.h> */
#undef HAVE_MKTIME #undef HAVE_MKTIME
/* Define to 1 if you have a working `mmap' system call. */ /* Define to 1 if you have a working `mmap' system call w/o fixed address
ability. */
#undef HAVE_MMAP #undef HAVE_MMAP
/* Define to 1 if you have the <netdb.h> header file. */ /* Define to 1 if you have the <netdb.h> header file. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment