diff options
author | neroden <neroden@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-08-03 20:36:23 +0000 |
---|---|---|
committer | neroden <neroden@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-08-03 20:36:23 +0000 |
commit | e2f666909116cca02bcd52b242e7f47892588dc2 (patch) | |
tree | 33d61d719d255a8c77f377dd7936927e2fbf7284 /libffi/acinclude.m4 | |
parent | 1756faab98165ac0812a21dd0c42923dd10d3a62 (diff) | |
download | gcc-e2f666909116cca02bcd52b242e7f47892588dc2.tar.gz |
2004-07-30 Maciej W. Rozycki <macro@linux-mips.org>
* acinclude.m4 (AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h>
and mmap() explicitly instead of relying on preset autoconf cache
variables.
* aclocal.m4: Regenerate.
* configure: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85500 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libffi/acinclude.m4')
-rw-r--r-- | libffi/acinclude.m4 | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libffi/acinclude.m4 b/libffi/acinclude.m4 index 90896098c70..61187cfa564 100644 --- a/libffi/acinclude.m4 +++ b/libffi/acinclude.m4 @@ -11,8 +11,12 @@ AC_SUBST(LIBTOOL) # mmap(2) blacklisting. Some platforms provide the mmap library routine # but don't support all of the features we need from it. AC_DEFUN([AC_FUNC_MMAP_BLACKLIST], -[if test $ac_cv_header_sys_mman_h != yes \ - || test $ac_cv_func_mmap != yes; then +[ +AC_CHECK_HEADER([sys/mman.h], + [libffi_header_sys_mman_h=yes], [libffi_header_sys_mman_h=no]) +AC_CHECK_FUNC([mmap], [libffi_func_mmap=yes], [libffi_func_mmap=no]) +if test "$libffi_header_sys_mman_h" != yes \ + || test "$libffi_func_mmap" != yes; then ac_cv_func_mmap_file=no ac_cv_func_mmap_dev_zero=no ac_cv_func_mmap_anon=no |