* configure.in: Move AC_FUNC_MMAP before it's used indirectly.

Allow using --without-mmap.
* INSTALL: Document --without-mmap.
This commit is contained in:
Pavel Roskin 2001-10-25 03:46:59 +00:00
parent 721babff37
commit 8644c630f0
3 changed files with 30 additions and 15 deletions

View File

@ -1,3 +1,9 @@
2001-10-24 Pavel Roskin <proski@gnu.org>
* configure.in: Move AC_FUNC_MMAP before it's used indirectly.
Allow using --without-mmap.
* INSTALL: Document --without-mmap.
2001-10-24 Andrew V. Samoilov <kai@cmail.ru> 2001-10-24 Andrew V. Samoilov <kai@cmail.ru>
* configure.in: Resurrect ALL_LINGUAS test, to allow specify list * configure.in: Resurrect ALL_LINGUAS test, to allow specify list

View File

@ -108,8 +108,11 @@ the directory base where you installed the gpm package.
`--with-hsc' `--with-hsc'
Compiles support for HSC firewall into the ftp virtual file system. Compiles support for HSC firewall into the ftp virtual file system.
`--with-mmap' `--with-mmap', `--without-mmap'
Needed when compiling under AIX if you want the fast viewer. Force using or not using the mmap function. It is currently used
in the internal viewer. `--with-mmap' may be useful on some
versions of AIX where the `configure' script decides that mmap is
broken, but it's actually suitable for the internal viewer.
`--with-subshell[=optional]', `--without-subshell' `--with-subshell[=optional]', `--without-subshell'
The subshell support is by default turned on, you can disable The subshell support is by default turned on, you can disable

View File

@ -30,6 +30,25 @@ AC_CHECK_TOOL(AR, ar, ar)
dnl Only list browsers here that can be run in background (i.e. with `&') dnl Only list browsers here that can be run in background (i.e. with `&')
AC_CHECK_PROGS(X11_WWW, [gnome-moz-remote mozilla konqueror opera netscape]) AC_CHECK_PROGS(X11_WWW, [gnome-moz-remote mozilla konqueror opera netscape])
dnl
dnl Ovverriding mmap support. This has to be before AC_FUNC_MMAP is used.
dnl We use only part of the functionality of mmap, so on AIX,
dnl it's possible to use mmap, even if it doesn't pass the autoconf test.
dnl
AC_ARG_WITH(mmap,
[--with-mmap To force using the mmap call (AIX)],
[case $withval in
yes)
ac_cv_func_mmap_fixed_mapped=yes
AC_MSG_NOTICE([forcing MMAP support])
;;
no)
ac_cv_func_mmap_fixed_mapped=no
AC_MSG_NOTICE([disabling MMAP support])
;;
esac])
AC_FUNC_MMAP
if test x$ALL_LINGUAS = x; then if test x$ALL_LINGUAS = x; then
ALL_LINGUAS="az ca cs da de el es es_ES fi fr hu it ja ko lv nl no pl pt_BR ro ru sk sl sv uk ta tr wa zh_TW zh_CN.GB2312" ALL_LINGUAS="az ca cs da de el es es_ES fi fr hu it ja ko lv nl no pl pt_BR ro ru sk sl sv uk ta tr wa zh_TW zh_CN.GB2312"
fi fi
@ -189,7 +208,6 @@ AC_TYPE_PID_T
AC_TYPE_UID_T AC_TYPE_UID_T
AC_CHECK_TYPE(nlink_t, unsigned int) AC_CHECK_TYPE(nlink_t, unsigned int)
AC_FUNC_MMAP
AC_FUNC_ALLOCA AC_FUNC_ALLOCA
AC_FUNC_STRCOLL AC_FUNC_STRCOLL
@ -492,18 +510,6 @@ AC_ARG_WITH(efence,
mem_debug="Electric Fence" mem_debug="Electric Fence"
fi]) fi])
dnl
dnl To force mmap support
dnl We use only part of the functionality of mmap, so on AIX,
dnl it's possible to use mmap, even if it doesn't pass the autoconf test.
dnl
AC_ARG_WITH(mmap,
[--with-mmap To force using the mmap call (AIX)],
[if test x$withval = xyes; then
AC_DEFINE(HAVE_MMAP)
AC_MSG_NOTICE([forcing MMAP support])
fi])
slang_check_lib=true slang_check_lib=true
slang_term="" slang_term=""
slang_use_system_installed_lib=false slang_use_system_installed_lib=false