issue-449: Disables mmap check when cross compiling since it is meaningless anyways

git-svn-id: http://gperftools.googlecode.com/svn/trunk@179 6b5cf1ce-ec42-a296-1ba9-69fdba395a50
This commit is contained in:
chappedm@gmail.com 2012-11-04 19:12:42 +00:00
parent 6f6c2bf685
commit 86a55316ba
2 changed files with 15 additions and 2 deletions

9
configure vendored
View File

@ -15482,7 +15482,13 @@ case "$host" in
$as_echo "#define HAVE_MMAP 1" >>confdefs.h
;;
*)
*) if test "$cross_compiling" = yes; then
ac_cv_func_mmap_fixed_mapped=yes
$as_echo "#define HAVE_MMAP 1" >>confdefs.h
else
for ac_header in $ac_header_list
@ -15683,6 +15689,7 @@ $as_echo "#define HAVE_MMAP 1" >>confdefs.h
fi
rm -f conftest.mmap conftest.txt
fi
;;
esac

View File

@ -188,7 +188,13 @@ case "$host" in
AC_DEFINE(HAVE_MMAP, 1,
[Define to 1 if you have a working `mmap' system call.])
;;
*) AC_FUNC_MMAP
*) if test "$cross_compiling" = yes; then
ac_cv_func_mmap_fixed_mapped=yes
AC_DEFINE(HAVE_MMAP, 1,
[Define to 1 if you have a working `mmap' system call.])
else
AC_FUNC_MMAP
fi
;;
esac