Patch #629426: Eliminate more autoconf warnings. Use AC_HELP_STRING.

This commit is contained in:
Martin v. Löwis 2002-10-29 10:07:43 +00:00
parent d0c7137c8b
commit 3e2c632620
2 changed files with 119 additions and 90 deletions

84
configure vendored
View File

@ -1,5 +1,5 @@
#! /bin/sh #! /bin/sh
# From configure.in Revision: 1.359 . # From configure.in Revision: 1.360 .
# Guess values for system-dependent variables and create Makefiles. # Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.53 for python 2.3. # Generated by GNU Autoconf 2.53 for python 2.3.
# #
@ -825,35 +825,40 @@ if test -n "$ac_init_help"; then
Optional Features: Optional Features:
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
--enable-framework=INSTALLDIR Build (MacOSX|Darwin) framework --enable-framework[=INSTALLDIR]
--enable-shared disable/enable building shared python library Build (MacOSX|Darwin) framework
--enable-toolbox-glue disable/enable MacOSX glue code for extensions --enable-shared disable/enable building shared python library
--enable-ipv6 Enable ipv6 (with ipv4) support --enable-toolbox-glue disable/enable MacOSX glue code for extensions
--disable-ipv6 Disable ipv6 support --enable-ipv6 Enable ipv6 (with ipv4) support
--enable-unicode=ucs2,ucs4 Enable Unicode strings (default is yes) --disable-ipv6 Disable ipv6 support
--enable-unicode[=ucs[24]]
Enable Unicode strings (default is yes)
Optional Packages: Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
--without-gcc never use gcc --without-gcc never use gcc
--with-cxx=<compiler> enable C++ support --with-cxx=<compiler> enable C++ support
--with-suffix=.exe set executable suffix --with-suffix=.exe set executable suffix
--with-pydebug build with Py_DEBUG defined --with-pydebug build with Py_DEBUG defined
--with-libs='lib1 ...' link against additional libs --with-libs='lib1 ...' link against additional libs
--with-signal-module disable/enable signal module --with-signal-module disable/enable signal module
--with-dec-threads use DEC Alpha/OSF1 thread-safe libraries --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries
--with(out)-threads=DIRECTORY disable/enable thread support --with(out)-threads[=DIRECTORY]
--with(out)-thread=DIRECTORY deprecated; use --with(out)-threads disable/enable thread support
--with-pth use GNU pth threading libraries --with(out)-thread[=DIRECTORY]
--with(out)-universal-newlines disable/enable foreign newlines deprecated; use --with(out)-threads
--with(out)-doc-strings disable/enable documentation strings --with-pth use GNU pth threading libraries
--with(out)-pymalloc disable/enable specialized mallocs --with(out)-universal-newlines
--with-wctype-functions use wctype.h functions disable/enable foreign newlines
--with-sgi-dl=DIRECTORY IRIX 4 dynamic linking --with(out)-doc-strings disable/enable documentation strings
--with-dl-dld=DL_DIR,DLD_DIR GNU dynamic linking --with(out)-pymalloc disable/enable specialized mallocs
--with-fpectl enable SIGFPE catching --with-wctype-functions use wctype.h functions
--with-libm=STRING math library --with-sgi-dl=DIRECTORY IRIX 4 dynamic linking
--with-libc=STRING C library --with-dl-dld=DL_DIR GNU dynamic linking
--with-fpectl enable SIGFPE catching
--with-libm=STRING math library
--with-libc=STRING C library
Some influential environment variables: Some influential environment variables:
CC C compiler command CC C compiler command
@ -1273,7 +1278,6 @@ _ACEOF
CONFIG_ARGS="$ac_configure_args" CONFIG_ARGS="$ac_configure_args"
# Check whether --enable-framework or --disable-framework was given. # Check whether --enable-framework or --disable-framework was given.
if test "${enable_framework+set}" = set; then if test "${enable_framework+set}" = set; then
enableval="$enable_framework" enableval="$enable_framework"
@ -1313,7 +1317,8 @@ fi;
##AC_ARG_WITH(dyld, ##AC_ARG_WITH(dyld,
##[ --with-dyld Use (OpenStep|Rhapsody) dynamic linker],,) ## AC_HELP_STRING(--with-dyld,
## Use (OpenStep|Rhapsody) dynamic linker))
## ##
# Set name for machine-dependent library files # Set name for machine-dependent library files
@ -9886,7 +9891,7 @@ else
echo "${ECHO_T}no" >&6 echo "${ECHO_T}no" >&6
fi; fi;
# Determine isignalmodule should be used. # Determine if signalmodule should be used.
echo "$as_me:$LINENO: checking for --with-signal-module" >&5 echo "$as_me:$LINENO: checking for --with-signal-module" >&5
@ -9958,8 +9963,7 @@ fi;
# Check whether --with-thread or --without-thread was given. # Check whether --with-thread or --without-thread was given.
if test "${with_thread+set}" = set; then if test "${with_thread+set}" = set; then
withval="$with_thread" withval="$with_thread"
with_threads=$with_thread
with_threads=$with_thread
fi; fi;
if test -z "$with_threads" if test -z "$with_threads"
@ -10273,10 +10277,9 @@ echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6
# Check whether --with-pth or --without-pth was given. # Check whether --with-pth or --without-pth was given.
if test "${with_pth+set}" = set; then if test "${with_pth+set}" = set; then
withval="$with_pth" withval="$with_pth"
echo "$as_me:$LINENO: result: $withval" >&5
echo "$as_me:$LINENO: result: $withval" >&5
echo "${ECHO_T}$withval" >&6 echo "${ECHO_T}$withval" >&6
cat >>confdefs.h <<\_ACEOF cat >>confdefs.h <<\_ACEOF
#define WITH_THREAD 1 #define WITH_THREAD 1
_ACEOF _ACEOF
@ -10285,11 +10288,10 @@ cat >>confdefs.h <<\_ACEOF
#define HAVE_PTH 1 #define HAVE_PTH 1
_ACEOF _ACEOF
LIBS="-lpth $LIBS" LIBS="-lpth $LIBS"
THREADOBJ="Python/thread.o" THREADOBJ="Python/thread.o"
else else
echo "$as_me:$LINENO: result: no" >&5
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6 echo "${ECHO_T}no" >&6
# Just looking for pthread_create in libpthread is not enough: # Just looking for pthread_create in libpthread is not enough:
@ -11743,9 +11745,9 @@ dldir=`echo "$withval" | sed 's/,.*//'`
dlddir=`echo "$withval" | sed 's/.*,//'` dlddir=`echo "$withval" | sed 's/.*,//'`
if test ! -z "$dldir" -a -d "$dldir" -a ! -z "$dlddir" -a -d "$dlddir" if test ! -z "$dldir" -a -d "$dldir" -a ! -z "$dlddir" -a -d "$dlddir"
then LDFLAGS="$LDFLAGS -L$dldir -L$dlddir" then LDFLAGS="$LDFLAGS -L$dldir -L$dlddir"
else { { echo "$as_me:$LINENO: error: proper usage is --with-dl-dld=DL_DIRECTORY" >&5 else { { echo "$as_me:$LINENO: error: proper usage is --with-dl-dld=DL_DIRECTORY,DLD_DIRECTORY" >&5
echo "$as_me: error: proper usage is --with-dl-dld=DL_DIRECTORY" >&2;} echo "$as_me: error: proper usage is --with-dl-dld=DL_DIRECTORY,DLD_DIRECTORY" >&2;}
{ (exit DLD_DIRECTORY); exit DLD_DIRECTORY; }; } { (exit 1); exit 1; }; }
fi fi
DLINCLDIR=${dldir} DLINCLDIR=${dldir}
LIBS="$LIBS -ldl -ldld" LIBS="$LIBS -ldl -ldld"

View File

@ -48,9 +48,10 @@ AC_DEFINE(_POSIX_C_SOURCE, 199506L, Define to activate features from IEEE Stds 1
AC_SUBST(CONFIG_ARGS) AC_SUBST(CONFIG_ARGS)
CONFIG_ARGS="$ac_configure_args" CONFIG_ARGS="$ac_configure_args"
dnl quadrigraphs "@<:@" and "@:>@" produce "[" and "]" in the output
AC_ARG_ENABLE(framework, AC_ARG_ENABLE(framework,
[ --enable-framework[=INSTALLDIR] Build (MacOSX|Darwin) framework],[ AC_HELP_STRING(--enable-framework@<:@=INSTALLDIR@:>@, Build (MacOSX|Darwin) framework),
[
case $enableval in case $enableval in
yes) yes)
enableval=/Library/Frameworks enableval=/Library/Frameworks
@ -83,7 +84,8 @@ AC_SUBST(PYTHONFRAMEWORKPREFIX)
AC_SUBST(PYTHONFRAMEWORKINSTALLDIR) AC_SUBST(PYTHONFRAMEWORKINSTALLDIR)
##AC_ARG_WITH(dyld, ##AC_ARG_WITH(dyld,
##[ --with-dyld Use (OpenStep|Rhapsody) dynamic linker],,) ## AC_HELP_STRING(--with-dyld,
## Use (OpenStep|Rhapsody) dynamic linker))
## ##
# Set name for machine-dependent library files # Set name for machine-dependent library files
AC_SUBST(MACHDEP) AC_SUBST(MACHDEP)
@ -131,7 +133,9 @@ AC_MSG_RESULT($MACHDEP)
# checks for alternative programs # checks for alternative programs
AC_MSG_CHECKING(for --without-gcc) AC_MSG_CHECKING(for --without-gcc)
AC_ARG_WITH(gcc, [ --without-gcc never use gcc], [ AC_ARG_WITH(gcc,
AC_HELP_STRING(--without-gcc,never use gcc),
[
case $withval in case $withval in
no) CC=cc no) CC=cc
without_gcc=yes;; without_gcc=yes;;
@ -157,7 +161,7 @@ AC_ARG_WITH(gcc, [ --without-gcc never use gcc], [
OPT=-O OPT=-O
;; ;;
*) *)
AC_ERROR(Unknown BeOS platform \"$BE_HOST_CPU\") AC_MSG_ERROR([Unknown BeOS platform "$BE_HOST_CPU"])
;; ;;
esac esac
AR="\$(srcdir)/Modules/ar_beos" AR="\$(srcdir)/Modules/ar_beos"
@ -174,7 +178,9 @@ AC_SUBST(CXX)
AC_SUBST(MAINOBJ) AC_SUBST(MAINOBJ)
MAINOBJ=python.o MAINOBJ=python.o
AC_MSG_CHECKING(for --with-cxx=<compiler>) AC_MSG_CHECKING(for --with-cxx=<compiler>)
AC_ARG_WITH(cxx, [ --with-cxx=<compiler> enable C++ support],[ AC_ARG_WITH(cxx,
AC_HELP_STRING(--with-cxx=<compiler>, enable C++ support),
[
check_cxx=no check_cxx=no
case $withval in case $withval in
no) CXX= no) CXX=
@ -190,7 +196,7 @@ AC_MSG_RESULT($with_cxx)
if test "$with_cxx" = "yes" if test "$with_cxx" = "yes"
then then
AC_ERROR(must supply a compiler when using --with-cxx) AC_MSG_ERROR([must supply a compiler when using --with-cxx])
fi fi
dnl The following fragment works similar to AC_PROG_CXX. dnl The following fragment works similar to AC_PROG_CXX.
@ -221,8 +227,8 @@ fi
# If the user switches compilers, we can't believe the cache # If the user switches compilers, we can't believe the cache
if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
then then
AC_ERROR(cached CC is different -- throw away $cache_file AC_MSG_ERROR([cached CC is different -- throw away $cache_file
(it is also a good idea to do 'make clean' before compiling)) (it is also a good idea to do 'make clean' before compiling)])
fi fi
AC_PROG_CC AC_PROG_CC
@ -233,7 +239,9 @@ AC_MINIX
AC_EXEEXT AC_EXEEXT
AC_MSG_CHECKING(for --with-suffix) AC_MSG_CHECKING(for --with-suffix)
AC_ARG_WITH(suffix, [ --with-suffix=.exe set executable suffix],[ AC_ARG_WITH(suffix,
AC_HELP_STRING(--with-suffix=.exe, set executable suffix),
[
case $withval in case $withval in
no) EXEEXT=;; no) EXEEXT=;;
yes) EXEEXT=.exe;; yes) EXEEXT=.exe;;
@ -348,7 +356,7 @@ AC_MSG_RESULT($LINKCC)
AC_MSG_CHECKING(for --enable-shared) AC_MSG_CHECKING(for --enable-shared)
AC_ARG_ENABLE(shared, AC_ARG_ENABLE(shared,
[ --enable-shared disable/enable building shared python library]) AC_HELP_STRING(--enable-shared, disable/enable building shared python library))
if test -z "$enable_shared" if test -z "$enable_shared"
then then
@ -456,7 +464,8 @@ fi
# Check for --with-pydebug # Check for --with-pydebug
AC_MSG_CHECKING(for --with-pydebug) AC_MSG_CHECKING(for --with-pydebug)
AC_ARG_WITH(pydebug, AC_ARG_WITH(pydebug,
[ --with-pydebug build with Py_DEBUG defined], [ AC_HELP_STRING(--with-pydebug, build with Py_DEBUG defined),
[
if test "$withval" != no if test "$withval" != no
then then
AC_DEFINE(Py_DEBUG, 1, AC_DEFINE(Py_DEBUG, 1,
@ -830,7 +839,7 @@ CC="$ac_save_cc"
AC_MSG_CHECKING(for --enable-toolbox-glue) AC_MSG_CHECKING(for --enable-toolbox-glue)
AC_ARG_ENABLE(toolbox-glue, AC_ARG_ENABLE(toolbox-glue,
[ --enable-toolbox-glue disable/enable MacOSX glue code for extensions]) AC_HELP_STRING(--enable-toolbox-glue, disable/enable MacOSX glue code for extensions))
if test -z "$enable_toolbox_glue" if test -z "$enable_toolbox_glue"
then then
@ -1139,17 +1148,19 @@ esac
AC_MSG_CHECKING(for --with-libs) AC_MSG_CHECKING(for --with-libs)
AC_ARG_WITH(libs, AC_ARG_WITH(libs,
[ --with-libs='lib1 ...' link against additional libs], [ AC_HELP_STRING(--with-libs='lib1 ...', link against additional libs),
[
AC_MSG_RESULT($withval) AC_MSG_RESULT($withval)
LIBS="$withval $LIBS" LIBS="$withval $LIBS"
], AC_MSG_RESULT(no)) ],
[AC_MSG_RESULT(no)])
# Determine if signalmodule should be used. # Determine if signalmodule should be used.
AC_SUBST(USE_SIGNAL_MODULE) AC_SUBST(USE_SIGNAL_MODULE)
AC_SUBST(SIGNAL_OBJS) AC_SUBST(SIGNAL_OBJS)
AC_MSG_CHECKING(for --with-signal-module) AC_MSG_CHECKING(for --with-signal-module)
AC_ARG_WITH(signal-module, AC_ARG_WITH(signal-module,
[ --with-signal-module disable/enable signal module]) AC_HELP_STRING(--with-signal-module, disable/enable signal module))
if test -z "$with_signal_module" if test -z "$with_signal_module"
then with_signal_module="yes" then with_signal_module="yes"
@ -1171,13 +1182,14 @@ USE_THREAD_MODULE=""
AC_MSG_CHECKING(for --with-dec-threads) AC_MSG_CHECKING(for --with-dec-threads)
AC_SUBST(LDLAST) AC_SUBST(LDLAST)
AC_ARG_WITH(dec-threads, AC_ARG_WITH(dec-threads,
[ --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries], [ AC_HELP_STRING(--with-dec-threads, use DEC Alpha/OSF1 thread-safe libraries),
[
AC_MSG_RESULT($withval) AC_MSG_RESULT($withval)
LDLAST=-threads LDLAST=-threads
if test "${with_thread+set}" != set; then if test "${with_thread+set}" != set; then
with_thread="$withval"; with_thread="$withval";
fi], fi],
AC_MSG_RESULT(no)) [AC_MSG_RESULT(no)])
# Templates for things AC_DEFINEd more than once. # Templates for things AC_DEFINEd more than once.
# For a single AC_DEFINE, no template is needed. # For a single AC_DEFINE, no template is needed.
@ -1188,13 +1200,15 @@ AH_TEMPLATE(WITH_THREAD,
[Define if you want to compile in rudimentary thread support]) [Define if you want to compile in rudimentary thread support])
AC_MSG_CHECKING(for --with-threads) AC_MSG_CHECKING(for --with-threads)
dnl quadrigraphs "@<:@" and "@:>@" produce "[" and "]" in the output
AC_ARG_WITH(threads, AC_ARG_WITH(threads,
[ --with(out)-threads[=DIRECTORY] disable/enable thread support]) AC_HELP_STRING(--with(out)-threads@<:@=DIRECTORY@:>@, disable/enable thread support))
# --with-thread is deprecated, but check for it anyway # --with-thread is deprecated, but check for it anyway
dnl quadrigraphs "@<:@" and "@:>@" produce "[" and "]" in the output
AC_ARG_WITH(thread, AC_ARG_WITH(thread,
[ --with(out)-thread[=DIRECTORY] deprecated; use --with(out)-threads],[ AC_HELP_STRING(--with(out)-thread@<:@=DIRECTORY@:>@, deprecated; use --with(out)-threads),
with_threads=$with_thread]) [with_threads=$with_thread])
if test -z "$with_threads" if test -z "$with_threads"
then with_threads="yes" then with_threads="yes"
@ -1250,14 +1264,15 @@ else
[Define if you are using Mach cthreads under mach /]) [Define if you are using Mach cthreads under mach /])
THREADOBJ="Python/thread.o"],[ THREADOBJ="Python/thread.o"],[
AC_MSG_CHECKING(for --with-pth) AC_MSG_CHECKING(for --with-pth)
AC_ARG_WITH(pth, AC_ARG_WITH([pth],
[ --with-pth use GNU pth threading libraries], [ AC_HELP_STRING(--with-pth, use GNU pth threading libraries),
AC_MSG_RESULT($withval) [AC_MSG_RESULT($withval)
AC_DEFINE(WITH_THREAD) AC_DEFINE([WITH_THREAD])
AC_DEFINE(HAVE_PTH, 1, [Define if you have GNU PTH threads.]) AC_DEFINE([HAVE_PTH], 1,
LIBS="-lpth $LIBS" [Define if you have GNU PTH threads.])
THREADOBJ="Python/thread.o"],[ LIBS="-lpth $LIBS"
AC_MSG_RESULT(no) THREADOBJ="Python/thread.o"],
[AC_MSG_RESULT(no)
# Just looking for pthread_create in libpthread is not enough: # Just looking for pthread_create in libpthread is not enough:
# on HP/UX, pthread.h renames pthread_create to a different symbol name. # on HP/UX, pthread.h renames pthread_create to a different symbol name.
@ -1374,8 +1389,8 @@ fi
AH_TEMPLATE(ENABLE_IPV6, [Define if --enable-ipv6 is specified]) AH_TEMPLATE(ENABLE_IPV6, [Define if --enable-ipv6 is specified])
AC_MSG_CHECKING([if --enable-ipv6 is specified]) AC_MSG_CHECKING([if --enable-ipv6 is specified])
AC_ARG_ENABLE(ipv6, AC_ARG_ENABLE(ipv6,
[ --enable-ipv6 Enable ipv6 (with ipv4) support [ --enable-ipv6 Enable ipv6 (with ipv4) support
--disable-ipv6 Disable ipv6 support], --disable-ipv6 Disable ipv6 support],
[ case "$enableval" in [ case "$enableval" in
no) no)
AC_MSG_RESULT(no) AC_MSG_RESULT(no)
@ -1540,7 +1555,7 @@ fi
# Check for universal newline support # Check for universal newline support
AC_MSG_CHECKING(for --with-universal-newlines) AC_MSG_CHECKING(for --with-universal-newlines)
AC_ARG_WITH(universal-newlines, AC_ARG_WITH(universal-newlines,
[ --with(out)-universal-newlines disable/enable foreign newlines]) AC_HELP_STRING(--with(out)-universal-newlines, disable/enable foreign newlines))
if test -z "$with_universal_newlines" if test -z "$with_universal_newlines"
then with_universal_newlines="yes" then with_universal_newlines="yes"
@ -1555,7 +1570,7 @@ AC_MSG_RESULT($with_universal_newlines)
# Check for --with-doc-strings # Check for --with-doc-strings
AC_MSG_CHECKING(for --with-doc-strings) AC_MSG_CHECKING(for --with-doc-strings)
AC_ARG_WITH(doc-strings, AC_ARG_WITH(doc-strings,
[ --with(out)-doc-strings disable/enable documentation strings]) AC_HELP_STRING(--with(out)-doc-strings, disable/enable documentation strings))
if test -z "$with_doc_strings" if test -z "$with_doc_strings"
then with_doc_strings="yes" then with_doc_strings="yes"
@ -1570,7 +1585,7 @@ AC_MSG_RESULT($with_doc_strings)
# Check for Python-specific malloc support # Check for Python-specific malloc support
AC_MSG_CHECKING(for --with-pymalloc) AC_MSG_CHECKING(for --with-pymalloc)
AC_ARG_WITH(pymalloc, AC_ARG_WITH(pymalloc,
[ --with(out)-pymalloc disable/enable specialized mallocs]) AC_HELP_STRING(--with(out)-pymalloc, disable/enable specialized mallocs))
if test -z "$with_pymalloc" if test -z "$with_pymalloc"
then with_pymalloc="yes" then with_pymalloc="yes"
@ -1585,7 +1600,8 @@ AC_MSG_RESULT($with_pymalloc)
# Check for --with-wctype-functions # Check for --with-wctype-functions
AC_MSG_CHECKING(for --with-wctype-functions) AC_MSG_CHECKING(for --with-wctype-functions)
AC_ARG_WITH(wctype-functions, AC_ARG_WITH(wctype-functions,
[ --with-wctype-functions use wctype.h functions], [ AC_HELP_STRING(--with-wctype-functions, use wctype.h functions),
[
if test "$withval" != no if test "$withval" != no
then then
AC_DEFINE(WANT_WCTYPE_FUNCTIONS, 1, AC_DEFINE(WANT_WCTYPE_FUNCTIONS, 1,
@ -1602,7 +1618,8 @@ DLINCLDIR=.
AC_MSG_CHECKING(for --with-sgi-dl) AC_MSG_CHECKING(for --with-sgi-dl)
AC_ARG_WITH(sgi-dl, AC_ARG_WITH(sgi-dl,
[ --with-sgi-dl=DIRECTORY IRIX 4 dynamic linking], [ AC_HELP_STRING(--with-sgi-dl=DIRECTORY, IRIX 4 dynamic linking),
[
AC_MSG_RESULT($withval) AC_MSG_RESULT($withval)
AC_DEFINE(WITH_SGI_DL, 1, AC_DEFINE(WITH_SGI_DL, 1,
[Define if you want to use SGI (IRIX 4) dynamic linking. [Define if you want to use SGI (IRIX 4) dynamic linking.
@ -1614,13 +1631,15 @@ DYNLOADFILE="dynload_dl.o"
dldir=$withval dldir=$withval
if test ! -z "$dldir" -a -d "$dldir" if test ! -z "$dldir" -a -d "$dldir"
then LDFLAGS="$LDFLAGS -L$dldir" then LDFLAGS="$LDFLAGS -L$dldir"
else AC_ERROR(proper usage is --with-sgi-dl=DIRECTORY) else AC_MSG_ERROR([proper usage is --with-sgi-dl=DIRECTORY])
fi fi
DLINCLDIR=${dldir} DLINCLDIR=${dldir}
LIBS="$LIBS -ldl -lmld"], AC_MSG_RESULT(no)) LIBS="$LIBS -ldl -lmld"], AC_MSG_RESULT(no))
AC_MSG_CHECKING(for --with-dl-dld) AC_MSG_CHECKING(for --with-dl-dld)
AC_ARG_WITH(dl-dld, [ --with-dl-dld=DL_DIR,DLD_DIR GNU dynamic linking], [ AC_ARG_WITH(dl-dld,
AC_HELP_STRING(--with-dl-dld=DL_DIR, GNU dynamic linking),
[
AC_MSG_RESULT($withval) AC_MSG_RESULT($withval)
AC_DEFINE(WITH_DL_DLD, 1, AC_DEFINE(WITH_DL_DLD, 1,
[Define if you want to emulate SGI (IRIX 4) dynamic linking. [Define if you want to emulate SGI (IRIX 4) dynamic linking.
@ -1637,7 +1656,7 @@ dldir=`echo "$withval" | sed 's/,.*//'`
dlddir=`echo "$withval" | sed 's/.*,//'` dlddir=`echo "$withval" | sed 's/.*,//'`
if test ! -z "$dldir" -a -d "$dldir" -a ! -z "$dlddir" -a -d "$dlddir" if test ! -z "$dldir" -a -d "$dldir" -a ! -z "$dlddir" -a -d "$dlddir"
then LDFLAGS="$LDFLAGS -L$dldir -L$dlddir" then LDFLAGS="$LDFLAGS -L$dldir -L$dlddir"
else AC_ERROR(proper usage is --with-dl-dld=DL_DIRECTORY,DLD_DIRECTORY) else AC_MSG_ERROR([proper usage is --with-dl-dld=DL_DIRECTORY,DLD_DIRECTORY])
fi fi
DLINCLDIR=${dldir} DLINCLDIR=${dldir}
LIBS="$LIBS -ldl -ldld"], AC_MSG_RESULT(no)) LIBS="$LIBS -ldl -ldld"], AC_MSG_RESULT(no))
@ -2093,7 +2112,8 @@ AC_CHECK_FUNC(__fpu_control,
# Check for --with-fpectl # Check for --with-fpectl
AC_MSG_CHECKING(for --with-fpectl) AC_MSG_CHECKING(for --with-fpectl)
AC_ARG_WITH(fpectl, AC_ARG_WITH(fpectl,
[ --with-fpectl enable SIGFPE catching], [ AC_HELP_STRING(--with-fpectl, enable SIGFPE catching),
[
if test "$withval" != no if test "$withval" != no
then then
AC_DEFINE(WANT_SIGFPE_HANDLER, 1, AC_DEFINE(WANT_SIGFPE_HANDLER, 1,
@ -2111,30 +2131,34 @@ BeOS) ;;
*) LIBM=-lm *) LIBM=-lm
esac esac
AC_MSG_CHECKING(for --with-libm=STRING) AC_MSG_CHECKING(for --with-libm=STRING)
AC_ARG_WITH(libm, [ --with-libm=STRING math library], [ AC_ARG_WITH(libm,
AC_HELP_STRING(--with-libm=STRING, math library),
[
if test "$withval" = no if test "$withval" = no
then LIBM= then LIBM=
AC_MSG_RESULT(force LIBM empty) AC_MSG_RESULT(force LIBM empty)
elif test "$withval" != yes elif test "$withval" != yes
then LIBM=$withval then LIBM=$withval
AC_MSG_RESULT(set LIBM=\"$withval\") AC_MSG_RESULT(set LIBM="$withval")
else AC_ERROR(proper usage is --with-libm=STRING) else AC_MSG_ERROR([proper usage is --with-libm=STRING])
fi], fi],
[AC_MSG_RESULT(default LIBM=\"$LIBM\")]) [AC_MSG_RESULT(default LIBM="$LIBM")])
# check for --with-libc=... # check for --with-libc=...
AC_SUBST(LIBC) AC_SUBST(LIBC)
AC_MSG_CHECKING(for --with-libc=STRING) AC_MSG_CHECKING(for --with-libc=STRING)
AC_ARG_WITH(libc, [ --with-libc=STRING C library], [ AC_ARG_WITH(libc,
AC_HELP_STRING(--with-libc=STRING, C library),
[
if test "$withval" = no if test "$withval" = no
then LIBC= then LIBC=
AC_MSG_RESULT(force LIBC empty) AC_MSG_RESULT(force LIBC empty)
elif test "$withval" != yes elif test "$withval" != yes
then LIBC=$withval then LIBC=$withval
AC_MSG_RESULT(set LIBC=\"$withval\") AC_MSG_RESULT(set LIBC="$withval")
else AC_ERROR(proper usage is --with-libc=STRING) else AC_MSG_ERROR([proper usage is --with-libc=STRING])
fi], fi],
[AC_MSG_RESULT(default LIBC=\"$LIBC\")]) [AC_MSG_RESULT(default LIBC="$LIBC")])
# check for hypot() in math library # check for hypot() in math library
LIBS_SAVE=$LIBS LIBS_SAVE=$LIBS
@ -2187,8 +2211,11 @@ then
fi fi
AC_MSG_CHECKING(what type to use for unicode) AC_MSG_CHECKING(what type to use for unicode)
dnl quadrigraphs "@<:@" and "@:>@" produce "[" and "]" in the output
AC_ARG_ENABLE(unicode, AC_ARG_ENABLE(unicode,
[ --enable-unicode[=ucs2,ucs4] Enable Unicode strings (default is yes)],,enable_unicode=yes) AC_HELP_STRING(--enable-unicode@<:@=ucs@<:@24@:>@@:>@, Enable Unicode strings (default is yes)),
[],
[enable_unicode=yes])
if test $enable_unicode = yes if test $enable_unicode = yes
then then