Commit c0d24d8b authored by Barry Warsaw's avatar Barry Warsaw

Thread support is turned on my default now. To disable building

threads use --without-threads.  No extra tests of thread/compiler
combinations have been added.

--with(out)-thread and --with(out)-threads are completely
interchangeable.

--with-threads still supports the =DIRECTORY option for specifying
where to find thread libraries.
parent 3937c8a7
...@@ -285,6 +285,9 @@ ...@@ -285,6 +285,9 @@
/* Define if you have the fork function. */ /* Define if you have the fork function. */
#undef HAVE_FORK #undef HAVE_FORK
/* Define if you have the forkpty function. */
#undef HAVE_FORKPTY
/* Define if you have the fpathconf function. */ /* Define if you have the fpathconf function. */
#undef HAVE_FPATHCONF #undef HAVE_FPATHCONF
...@@ -366,6 +369,9 @@ ...@@ -366,6 +369,9 @@
/* Define if you have the nice function. */ /* Define if you have the nice function. */
#undef HAVE_NICE #undef HAVE_NICE
/* Define if you have the openpty function. */
#undef HAVE_OPENPTY
/* Define if you have the pathconf function. */ /* Define if you have the pathconf function. */
#undef HAVE_PATHCONF #undef HAVE_PATHCONF
...@@ -483,6 +489,9 @@ ...@@ -483,6 +489,9 @@
/* Define if you have the <fcntl.h> header file. */ /* Define if you have the <fcntl.h> header file. */
#undef HAVE_FCNTL_H #undef HAVE_FCNTL_H
/* Define if you have the <libutil.h> header file. */
#undef HAVE_LIBUTIL_H
/* Define if you have the <limits.h> header file. */ /* Define if you have the <limits.h> header file. */
#undef HAVE_LIMITS_H #undef HAVE_LIMITS_H
...@@ -498,6 +507,9 @@ ...@@ -498,6 +507,9 @@
/* Define if you have the <pthread.h> header file. */ /* Define if you have the <pthread.h> header file. */
#undef HAVE_PTHREAD_H #undef HAVE_PTHREAD_H
/* Define if you have the <pty.h> header file. */
#undef HAVE_PTY_H
/* Define if you have the <signal.h> header file. */ /* Define if you have the <signal.h> header file. */
#undef HAVE_SIGNAL_H #undef HAVE_SIGNAL_H
......
#! /bin/sh #! /bin/sh
# From configure.in Revision: 1.125 # From configure.in Revision: 1.126
# Guess values for system-dependent variables and create Makefiles. # Guess values for system-dependent variables and create Makefiles.
# Generated automatically using autoconf version 2.14.1 # Generated automatically using autoconf version 2.13
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
# #
# This configure script is free software; the Free Software Foundation # This configure script is free software; the Free Software Foundation
...@@ -14,37 +14,37 @@ ac_help= ...@@ -14,37 +14,37 @@ ac_help=
ac_default_prefix=/usr/local ac_default_prefix=/usr/local
# Any additions from configure.in: # Any additions from configure.in:
ac_help="$ac_help ac_help="$ac_help
--with-next-archs='arch1 arch2 ..' build MAB binary" --with-next-archs='arch1 arch2 ..' build MAB binary"
ac_help="$ac_help ac_help="$ac_help
--with-next-framework Build (OpenStep|Rhapsody|MacOS10) framework" --with-next-framework Build (OpenStep|Rhapsody|MacOSX) framework"
ac_help="$ac_help ac_help="$ac_help
--with-dyld Use (OpenStep|Rhapsody|MacOS10) dynamic linker" --with-dyld Use (OpenStep|Rhapsody|MacOSX) dynamic linker"
ac_help="$ac_help ac_help="$ac_help
--without-gcc never use gcc" --without-gcc never use gcc"
ac_help="$ac_help ac_help="$ac_help
--with-cxx=<compiler> enable C++ support" --with-cxx=<compiler> enable C++ support"
ac_help="$ac_help ac_help="$ac_help
--with-libs='lib1 ...' link against additional libs" --with-libs='lib1 ...' link against additional libs"
ac_help="$ac_help ac_help="$ac_help
--with(out)-readline obsolete, edit Modules/Setup instead" --with(out)-readline obsolete, edit Modules/Setup instead"
ac_help="$ac_help ac_help="$ac_help
--with-dec-threads use DEC Alpha/OSF1 thread-safe libraries" --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries"
ac_help="$ac_help ac_help="$ac_help
--with-threads alias for --with-thread" --with(out)-threads[=DIRECTORY] disable/enable thread support"
ac_help="$ac_help ac_help="$ac_help
--with-thread[=DIRECTORY] make interpreter thread-safe" "
ac_help="$ac_help ac_help="$ac_help
--with-sgi-dl=DIRECTORY IRIX 4 dynamic linking" --with-sgi-dl=DIRECTORY IRIX 4 dynamic linking"
ac_help="$ac_help ac_help="$ac_help
--with-dl-dld=DL_DIR,DLD_DIR GNU dynamic linking" --with-dl-dld=DL_DIR,DLD_DIR GNU dynamic linking"
ac_help="$ac_help ac_help="$ac_help
--with-fpectl enable SIGFPE catching" --with-fpectl enable SIGFPE catching"
ac_help="$ac_help ac_help="$ac_help
--with-libm=STRING math library" --with-libm=STRING math library"
ac_help="$ac_help ac_help="$ac_help
--with-libc=STRING C library" --with-libc=STRING C library"
ac_help="$ac_help ac_help="$ac_help
--with-wctype-functions use wctype.h functions" --with-wctype-functions use wctype.h functions"
# Initialize some variables set by options. # Initialize some variables set by options.
# The variables have the same names as the options, with # The variables have the same names as the options, with
...@@ -367,7 +367,7 @@ EOF ...@@ -367,7 +367,7 @@ EOF
verbose=yes ;; verbose=yes ;;
-version | --version | --versio | --versi | --vers) -version | --version | --versio | --versi | --vers)
echo "configure generated by autoconf version 2.14.1" echo "configure generated by autoconf version 2.13"
exit 0 ;; exit 0 ;;
-with-* | --with-*) -with-* | --with-*)
...@@ -527,7 +527,7 @@ done ...@@ -527,7 +527,7 @@ done
if test -r "$cache_file"; then if test -r "$cache_file"; then
echo "loading cache $cache_file" echo "loading cache $cache_file"
test -f "$cache_file" && . $cache_file . $cache_file
else else
echo "creating cache $cache_file" echo "creating cache $cache_file"
> $cache_file > $cache_file
...@@ -784,7 +784,7 @@ fi ...@@ -784,7 +784,7 @@ fi
set dummy gcc; ac_word=$2 set dummy gcc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:787: checking for $ac_word" >&5 echo "configure:787: checking for $ac_word" >&5
if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
if test -n "$CC"; then if test -n "$CC"; then
...@@ -814,7 +814,7 @@ if test -z "$CC"; then ...@@ -814,7 +814,7 @@ if test -z "$CC"; then
set dummy cc; ac_word=$2 set dummy cc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:817: checking for $ac_word" >&5 echo "configure:817: checking for $ac_word" >&5
if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
if test -n "$CC"; then if test -n "$CC"; then
...@@ -860,12 +860,12 @@ fi ...@@ -860,12 +860,12 @@ fi
if test -z "$CC"; then if test -z "$CC"; then
case "`uname -s`" in case "`uname -s`" in
*win32* | *WIN32* | *CYGWIN*) *win32* | *WIN32*)
# Extract the first word of "cl", so it can be a program name with args. # Extract the first word of "cl", so it can be a program name with args.
set dummy cl; ac_word=$2 set dummy cl; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:868: checking for $ac_word" >&5 echo "configure:868: checking for $ac_word" >&5
if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
if test -n "$CC"; then if test -n "$CC"; then
...@@ -895,8 +895,8 @@ fi ...@@ -895,8 +895,8 @@ fi
test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
fi fi
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
echo "configure:900: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5 echo "configure:900: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
ac_ext=c ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
...@@ -937,14 +937,14 @@ echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 ...@@ -937,14 +937,14 @@ echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
if test $ac_cv_prog_cc_works = no; then if test $ac_cv_prog_cc_works = no; then
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
fi fi
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
echo "configure:942: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5 echo "configure:942: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
cross_compiling=$ac_cv_prog_cc_cross cross_compiling=$ac_cv_prog_cc_cross
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
echo "configure:947: checking whether we are using GNU C" >&5 echo "configure:947: checking whether we are using GNU C" >&5
if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
cat > conftest.c <<EOF cat > conftest.c <<EOF
...@@ -972,7 +972,7 @@ ac_save_CFLAGS="$CFLAGS" ...@@ -972,7 +972,7 @@ ac_save_CFLAGS="$CFLAGS"
CFLAGS= CFLAGS=
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
echo "configure:975: checking whether ${CC-cc} accepts -g" >&5 echo "configure:975: checking whether ${CC-cc} accepts -g" >&5
if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
echo 'void f(){}' > conftest.c echo 'void f(){}' > conftest.c
...@@ -1085,7 +1085,7 @@ fi ...@@ -1085,7 +1085,7 @@ fi
set dummy ranlib; ac_word=$2 set dummy ranlib; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1088: checking for $ac_word" >&5 echo "configure:1088: checking for $ac_word" >&5
if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
if test -n "$RANLIB"; then if test -n "$RANLIB"; then
...@@ -1118,7 +1118,7 @@ do ...@@ -1118,7 +1118,7 @@ do
set dummy $ac_prog; ac_word=$2 set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1121: checking for $ac_word" >&5 echo "configure:1121: checking for $ac_word" >&5
if eval "test \"\${ac_cv_prog_AR+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
if test -n "$AR"; then if test -n "$AR"; then
...@@ -1197,7 +1197,7 @@ if test -n "$CPP" && test -d "$CPP"; then ...@@ -1197,7 +1197,7 @@ if test -n "$CPP" && test -d "$CPP"; then
CPP= CPP=
fi fi
if test -z "$CPP"; then if test -z "$CPP"; then
if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
# This must be in double quotes, not single quotes, because CPP may get # This must be in double quotes, not single quotes, because CPP may get
...@@ -1297,7 +1297,7 @@ rm -f conftest* ...@@ -1297,7 +1297,7 @@ rm -f conftest*
ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'` ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
echo "configure:1300: checking for minix/config.h" >&5 echo "configure:1300: checking for minix/config.h" >&5
if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
...@@ -1346,7 +1346,7 @@ fi ...@@ -1346,7 +1346,7 @@ fi
echo $ac_n "checking whether $CC accepts -OPT:Olimit=0""... $ac_c" 1>&6 echo $ac_n "checking whether $CC accepts -OPT:Olimit=0""... $ac_c" 1>&6
echo "configure:1349: checking whether $CC accepts -OPT:Olimit=0" >&5 echo "configure:1349: checking whether $CC accepts -OPT:Olimit=0" >&5
if eval "test \"\${ac_cv_opt_olimit_ok+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_opt_olimit_ok'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
ac_save_cc="$CC" ac_save_cc="$CC"
...@@ -1380,7 +1380,7 @@ if test $ac_cv_opt_olimit_ok = yes; then ...@@ -1380,7 +1380,7 @@ if test $ac_cv_opt_olimit_ok = yes; then
else else
echo $ac_n "checking whether $CC accepts -Olimit 1500""... $ac_c" 1>&6 echo $ac_n "checking whether $CC accepts -Olimit 1500""... $ac_c" 1>&6
echo "configure:1383: checking whether $CC accepts -Olimit 1500" >&5 echo "configure:1383: checking whether $CC accepts -Olimit 1500" >&5
if eval "test \"\${ac_cv_olimit_ok+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_olimit_ok'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
ac_save_cc="$CC" ac_save_cc="$CC"
...@@ -1447,7 +1447,7 @@ echo "$ac_t""$cpp_type" 1>&6 ...@@ -1447,7 +1447,7 @@ echo "$ac_t""$cpp_type" 1>&6
# checks for header files # checks for header files
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
echo "configure:1450: checking for ANSI C header files" >&5 echo "configure:1450: checking for ANSI C header files" >&5
if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
...@@ -1558,7 +1558,7 @@ do ...@@ -1558,7 +1558,7 @@ do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:1561: checking for $ac_hdr" >&5 echo "configure:1561: checking for $ac_hdr" >&5
if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
...@@ -1599,7 +1599,7 @@ do ...@@ -1599,7 +1599,7 @@ do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
echo "configure:1602: checking for $ac_hdr that defines DIR" >&5 echo "configure:1602: checking for $ac_hdr that defines DIR" >&5
if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
...@@ -1638,7 +1638,7 @@ if test $ac_header_dirent = dirent.h; then ...@@ -1638,7 +1638,7 @@ if test $ac_header_dirent = dirent.h; then
echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
echo "configure:1640: checking for opendir in -ldir" >&5 echo "configure:1640: checking for opendir in -ldir" >&5
ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
ac_save_LIBS="$LIBS" ac_save_LIBS="$LIBS"
...@@ -1679,7 +1679,7 @@ else ...@@ -1679,7 +1679,7 @@ else
echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
echo "configure:1681: checking for opendir in -lx" >&5 echo "configure:1681: checking for opendir in -lx" >&5
ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
ac_save_LIBS="$LIBS" ac_save_LIBS="$LIBS"
...@@ -1753,7 +1753,7 @@ EOF ...@@ -1753,7 +1753,7 @@ EOF
# Type availability checks # Type availability checks
echo $ac_n "checking for mode_t""... $ac_c" 1>&6 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
echo "configure:1756: checking for mode_t" >&5 echo "configure:1756: checking for mode_t" >&5
if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
...@@ -1768,31 +1768,29 @@ EOF ...@@ -1768,31 +1768,29 @@ EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
rm -rf conftest* rm -rf conftest*
eval "ac_cv_type_mode_t=yes" ac_cv_type_mode_t=yes
else else
rm -rf conftest* rm -rf conftest*
eval "ac_cv_type_mode_t=no" ac_cv_type_mode_t=no
fi fi
rm -f conftest* rm -f conftest*
fi fi
if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then echo "$ac_t""$ac_cv_type_mode_t" 1>&6
echo "$ac_t""yes" 1>&6 if test $ac_cv_type_mode_t = no; then
else cat >> confdefs.h <<\EOF
echo "$ac_t""no" 1>&6
cat >> confdefs.h <<EOF
#define mode_t int #define mode_t int
EOF EOF
fi fi
echo $ac_n "checking for off_t""... $ac_c" 1>&6 echo $ac_n "checking for off_t""... $ac_c" 1>&6
echo "configure:1791: checking for off_t" >&5 echo "configure:1789: checking for off_t" >&5
if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 1796 "configure" #line 1794 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <sys/types.h> #include <sys/types.h>
#if STDC_HEADERS #if STDC_HEADERS
...@@ -1803,31 +1801,29 @@ EOF ...@@ -1803,31 +1801,29 @@ EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
rm -rf conftest* rm -rf conftest*
eval "ac_cv_type_off_t=yes" ac_cv_type_off_t=yes
else else
rm -rf conftest* rm -rf conftest*
eval "ac_cv_type_off_t=no" ac_cv_type_off_t=no
fi fi
rm -f conftest* rm -f conftest*
fi fi
if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then echo "$ac_t""$ac_cv_type_off_t" 1>&6
echo "$ac_t""yes" 1>&6 if test $ac_cv_type_off_t = no; then
else cat >> confdefs.h <<\EOF
echo "$ac_t""no" 1>&6
cat >> confdefs.h <<EOF
#define off_t long #define off_t long
EOF EOF
fi fi
echo $ac_n "checking for pid_t""... $ac_c" 1>&6 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
echo "configure:1826: checking for pid_t" >&5 echo "configure:1822: checking for pid_t" >&5
if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 1831 "configure" #line 1827 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <sys/types.h> #include <sys/types.h>
#if STDC_HEADERS #if STDC_HEADERS
...@@ -1838,31 +1834,29 @@ EOF ...@@ -1838,31 +1834,29 @@ EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
rm -rf conftest* rm -rf conftest*
eval "ac_cv_type_pid_t=yes" ac_cv_type_pid_t=yes
else else
rm -rf conftest* rm -rf conftest*
eval "ac_cv_type_pid_t=no" ac_cv_type_pid_t=no
fi fi
rm -f conftest* rm -f conftest*
fi fi
if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then echo "$ac_t""$ac_cv_type_pid_t" 1>&6
echo "$ac_t""yes" 1>&6 if test $ac_cv_type_pid_t = no; then
else cat >> confdefs.h <<\EOF
echo "$ac_t""no" 1>&6
cat >> confdefs.h <<EOF
#define pid_t int #define pid_t int
EOF EOF
fi fi
echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
echo "configure:1861: checking return type of signal handlers" >&5 echo "configure:1855: checking return type of signal handlers" >&5
if eval "test \"\${ac_cv_type_signal+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 1866 "configure" #line 1860 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <sys/types.h> #include <sys/types.h>
#include <signal.h> #include <signal.h>
...@@ -1879,7 +1873,7 @@ int main() { ...@@ -1879,7 +1873,7 @@ int main() {
int i; int i;
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:1883: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then if { (eval echo configure:1877: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest* rm -rf conftest*
ac_cv_type_signal=void ac_cv_type_signal=void
else else
...@@ -1898,12 +1892,12 @@ EOF ...@@ -1898,12 +1892,12 @@ EOF
echo $ac_n "checking for size_t""... $ac_c" 1>&6 echo $ac_n "checking for size_t""... $ac_c" 1>&6
echo "configure:1902: checking for size_t" >&5 echo "configure:1896: checking for size_t" >&5
if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 1907 "configure" #line 1901 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <sys/types.h> #include <sys/types.h>
#if STDC_HEADERS #if STDC_HEADERS
...@@ -1914,31 +1908,29 @@ EOF ...@@ -1914,31 +1908,29 @@ EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
rm -rf conftest* rm -rf conftest*
eval "ac_cv_type_size_t=yes" ac_cv_type_size_t=yes
else else
rm -rf conftest* rm -rf conftest*
eval "ac_cv_type_size_t=no" ac_cv_type_size_t=no
fi fi
rm -f conftest* rm -f conftest*
fi fi
if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then echo "$ac_t""$ac_cv_type_size_t" 1>&6
echo "$ac_t""yes" 1>&6 if test $ac_cv_type_size_t = no; then
else cat >> confdefs.h <<\EOF
echo "$ac_t""no" 1>&6
cat >> confdefs.h <<EOF
#define size_t unsigned #define size_t unsigned
EOF EOF
fi fi
echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
echo "configure:1937: checking for uid_t in sys/types.h" >&5 echo "configure:1929: checking for uid_t in sys/types.h" >&5
if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 1942 "configure" #line 1934 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <sys/types.h> #include <sys/types.h>
EOF EOF
...@@ -1969,15 +1961,15 @@ fi ...@@ -1969,15 +1961,15 @@ fi
# Sizes of various common basic types # Sizes of various common basic types
echo $ac_n "checking size of int""... $ac_c" 1>&6 echo $ac_n "checking size of int""... $ac_c" 1>&6
echo "configure:1973: checking size of int" >&5 echo "configure:1965: checking size of int" >&5
if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
if test "$cross_compiling" = yes; then if test "$cross_compiling" = yes; then
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 1981 "configure" #line 1973 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <stdio.h> #include <stdio.h>
main() main()
...@@ -1988,7 +1980,7 @@ main() ...@@ -1988,7 +1980,7 @@ main()
exit(0); exit(0);
} }
EOF EOF
if { (eval echo configure:1992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null if { (eval echo configure:1984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then then
ac_cv_sizeof_int=`cat conftestval` ac_cv_sizeof_int=`cat conftestval`
else else
...@@ -2008,15 +2000,15 @@ EOF ...@@ -2008,15 +2000,15 @@ EOF
echo $ac_n "checking size of long""... $ac_c" 1>&6 echo $ac_n "checking size of long""... $ac_c" 1>&6
echo "configure:2012: checking size of long" >&5 echo "configure:2004: checking size of long" >&5
if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
if test "$cross_compiling" = yes; then if test "$cross_compiling" = yes; then
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 2020 "configure" #line 2012 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <stdio.h> #include <stdio.h>
main() main()
...@@ -2027,7 +2019,7 @@ main() ...@@ -2027,7 +2019,7 @@ main()
exit(0); exit(0);
} }
EOF EOF
if { (eval echo configure:2031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null if { (eval echo configure:2023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then then
ac_cv_sizeof_long=`cat conftestval` ac_cv_sizeof_long=`cat conftestval`
else else
...@@ -2047,15 +2039,15 @@ EOF ...@@ -2047,15 +2039,15 @@ EOF
echo $ac_n "checking size of void *""... $ac_c" 1>&6 echo $ac_n "checking size of void *""... $ac_c" 1>&6
echo "configure:2051: checking size of void *" >&5 echo "configure:2043: checking size of void *" >&5
if eval "test \"\${ac_cv_sizeof_void_p+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
if test "$cross_compiling" = yes; then if test "$cross_compiling" = yes; then
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 2059 "configure" #line 2051 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <stdio.h> #include <stdio.h>
main() main()
...@@ -2066,7 +2058,7 @@ main() ...@@ -2066,7 +2058,7 @@ main()
exit(0); exit(0);
} }
EOF EOF
if { (eval echo configure:2070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null if { (eval echo configure:2062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then then
ac_cv_sizeof_void_p=`cat conftestval` ac_cv_sizeof_void_p=`cat conftestval`
else else
...@@ -2086,15 +2078,15 @@ EOF ...@@ -2086,15 +2078,15 @@ EOF
echo $ac_n "checking size of char""... $ac_c" 1>&6 echo $ac_n "checking size of char""... $ac_c" 1>&6
echo "configure:2090: checking size of char" >&5 echo "configure:2082: checking size of char" >&5
if eval "test \"\${ac_cv_sizeof_char+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
if test "$cross_compiling" = yes; then if test "$cross_compiling" = yes; then
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 2098 "configure" #line 2090 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <stdio.h> #include <stdio.h>
main() main()
...@@ -2105,7 +2097,7 @@ main() ...@@ -2105,7 +2097,7 @@ main()
exit(0); exit(0);
} }
EOF EOF
if { (eval echo configure:2109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null if { (eval echo configure:2101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then then
ac_cv_sizeof_char=`cat conftestval` ac_cv_sizeof_char=`cat conftestval`
else else
...@@ -2125,15 +2117,15 @@ EOF ...@@ -2125,15 +2117,15 @@ EOF
echo $ac_n "checking size of short""... $ac_c" 1>&6 echo $ac_n "checking size of short""... $ac_c" 1>&6
echo "configure:2129: checking size of short" >&5 echo "configure:2121: checking size of short" >&5
if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
if test "$cross_compiling" = yes; then if test "$cross_compiling" = yes; then
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 2137 "configure" #line 2129 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <stdio.h> #include <stdio.h>
main() main()
...@@ -2144,7 +2136,7 @@ main() ...@@ -2144,7 +2136,7 @@ main()
exit(0); exit(0);
} }
EOF EOF
if { (eval echo configure:2148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null if { (eval echo configure:2140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then then
ac_cv_sizeof_short=`cat conftestval` ac_cv_sizeof_short=`cat conftestval`
else else
...@@ -2164,15 +2156,15 @@ EOF ...@@ -2164,15 +2156,15 @@ EOF
echo $ac_n "checking size of float""... $ac_c" 1>&6 echo $ac_n "checking size of float""... $ac_c" 1>&6
echo "configure:2168: checking size of float" >&5 echo "configure:2160: checking size of float" >&5
if eval "test \"\${ac_cv_sizeof_float+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
if test "$cross_compiling" = yes; then if test "$cross_compiling" = yes; then
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 2176 "configure" #line 2168 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <stdio.h> #include <stdio.h>
main() main()
...@@ -2183,7 +2175,7 @@ main() ...@@ -2183,7 +2175,7 @@ main()
exit(0); exit(0);
} }
EOF EOF
if { (eval echo configure:2187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null if { (eval echo configure:2179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then then
ac_cv_sizeof_float=`cat conftestval` ac_cv_sizeof_float=`cat conftestval`
else else
...@@ -2203,15 +2195,15 @@ EOF ...@@ -2203,15 +2195,15 @@ EOF
echo $ac_n "checking size of double""... $ac_c" 1>&6 echo $ac_n "checking size of double""... $ac_c" 1>&6
echo "configure:2207: checking size of double" >&5 echo "configure:2199: checking size of double" >&5
if eval "test \"\${ac_cv_sizeof_double+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
if test "$cross_compiling" = yes; then if test "$cross_compiling" = yes; then
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 2215 "configure" #line 2207 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <stdio.h> #include <stdio.h>
main() main()
...@@ -2222,7 +2214,7 @@ main() ...@@ -2222,7 +2214,7 @@ main()
exit(0); exit(0);
} }
EOF EOF
if { (eval echo configure:2226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null if { (eval echo configure:2218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then then
ac_cv_sizeof_double=`cat conftestval` ac_cv_sizeof_double=`cat conftestval`
else else
...@@ -2243,17 +2235,17 @@ EOF ...@@ -2243,17 +2235,17 @@ EOF
echo $ac_n "checking for long long support""... $ac_c" 1>&6 echo $ac_n "checking for long long support""... $ac_c" 1>&6
echo "configure:2247: checking for long long support" >&5 echo "configure:2239: checking for long long support" >&5
have_long_long=no have_long_long=no
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 2250 "configure" #line 2242 "configure"
#include "confdefs.h" #include "confdefs.h"
int main() { int main() {
long long x; x = (long long)0; long long x; x = (long long)0;
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:2257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then if { (eval echo configure:2249: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest* rm -rf conftest*
cat >> confdefs.h <<\EOF cat >> confdefs.h <<\EOF
#define HAVE_LONG_LONG 1 #define HAVE_LONG_LONG 1
...@@ -2267,15 +2259,15 @@ rm -f conftest* ...@@ -2267,15 +2259,15 @@ rm -f conftest*
echo "$ac_t""$have_long_long" 1>&6 echo "$ac_t""$have_long_long" 1>&6
if test "$have_long_long" = yes ; then if test "$have_long_long" = yes ; then
echo $ac_n "checking size of long long""... $ac_c" 1>&6 echo $ac_n "checking size of long long""... $ac_c" 1>&6
echo "configure:2271: checking size of long long" >&5 echo "configure:2263: checking size of long long" >&5
if eval "test \"\${ac_cv_sizeof_long_long+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
if test "$cross_compiling" = yes; then if test "$cross_compiling" = yes; then
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 2279 "configure" #line 2271 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <stdio.h> #include <stdio.h>
main() main()
...@@ -2286,7 +2278,7 @@ main() ...@@ -2286,7 +2278,7 @@ main()
exit(0); exit(0);
} }
EOF EOF
if { (eval echo configure:2290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null if { (eval echo configure:2282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then then
ac_cv_sizeof_long_long=`cat conftestval` ac_cv_sizeof_long_long=`cat conftestval`
else else
...@@ -2309,15 +2301,15 @@ fi ...@@ -2309,15 +2301,15 @@ fi
# Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>. # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
echo $ac_n "checking size of off_t""... $ac_c" 1>&6 echo $ac_n "checking size of off_t""... $ac_c" 1>&6
echo "configure:2313: checking size of off_t" >&5 echo "configure:2305: checking size of off_t" >&5
if eval "test \"\${ac_cv_sizeof_off_t+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_sizeof_off_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
if test "$cross_compiling" = yes; then if test "$cross_compiling" = yes; then
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 2321 "configure" #line 2313 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <stdio.h> #include <stdio.h>
#include <sys/types.h> #include <sys/types.h>
...@@ -2329,7 +2321,7 @@ main() ...@@ -2329,7 +2321,7 @@ main()
exit(0); exit(0);
} }
EOF EOF
if { (eval echo configure:2333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null if { (eval echo configure:2325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then then
ac_cv_sizeof_off_t=`cat conftestval` ac_cv_sizeof_off_t=`cat conftestval`
else else
...@@ -2351,7 +2343,7 @@ EOF ...@@ -2351,7 +2343,7 @@ EOF
echo $ac_n "checking whether to enable large file support""... $ac_c" 1>&6 echo $ac_n "checking whether to enable large file support""... $ac_c" 1>&6
echo "configure:2355: checking whether to enable large file support" >&5 echo "configure:2347: checking whether to enable large file support" >&5
if test "$have_long_long" = yes -a \ if test "$have_long_long" = yes -a \
"$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
"$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
...@@ -2377,7 +2369,7 @@ case $ac_sys_system/$ac_sys_release in ...@@ -2377,7 +2369,7 @@ case $ac_sys_system/$ac_sys_release in
esac esac
echo $ac_n "checking for --with-next-framework""... $ac_c" 1>&6 echo $ac_n "checking for --with-next-framework""... $ac_c" 1>&6
echo "configure:2381: checking for --with-next-framework" >&5 echo "configure:2373: checking for --with-next-framework" >&5
if test "$with_next_framework" if test "$with_next_framework"
then then
OPT="$OPT -fno-common" OPT="$OPT -fno-common"
...@@ -2394,7 +2386,7 @@ else ...@@ -2394,7 +2386,7 @@ else
fi fi
echo $ac_n "checking for --with-dyld""... $ac_c" 1>&6 echo $ac_n "checking for --with-dyld""... $ac_c" 1>&6
echo "configure:2398: checking for --with-dyld" >&5 echo "configure:2390: checking for --with-dyld" >&5
if test "$with_next_framework" -o "$with_dyld" if test "$with_next_framework" -o "$with_dyld"
then then
if test "$with_dyld" if test "$with_dyld"
...@@ -2420,7 +2412,7 @@ fi ...@@ -2420,7 +2412,7 @@ fi
# SO is the extension of shared libraries `(including the dot!) # SO is the extension of shared libraries `(including the dot!)
# -- usually .so, .sl on HP-UX # -- usually .so, .sl on HP-UX
echo $ac_n "checking SO""... $ac_c" 1>&6 echo $ac_n "checking SO""... $ac_c" 1>&6
echo "configure:2424: checking SO" >&5 echo "configure:2416: checking SO" >&5
if test -z "$SO" if test -z "$SO"
then then
case $ac_sys_system in case $ac_sys_system in
...@@ -2434,7 +2426,7 @@ echo "$ac_t""$SO" 1>&6 ...@@ -2434,7 +2426,7 @@ echo "$ac_t""$SO" 1>&6
# (Shared libraries in this instance are shared modules to be loaded into # (Shared libraries in this instance are shared modules to be loaded into
# Python, as opposed to building Python itself as a shared library.) # Python, as opposed to building Python itself as a shared library.)
echo $ac_n "checking LDSHARED""... $ac_c" 1>&6 echo $ac_n "checking LDSHARED""... $ac_c" 1>&6
echo "configure:2438: checking LDSHARED" >&5 echo "configure:2430: checking LDSHARED" >&5
if test -z "$LDSHARED" if test -z "$LDSHARED"
then then
case $ac_sys_system/$ac_sys_release in case $ac_sys_system/$ac_sys_release in
...@@ -2479,7 +2471,7 @@ echo "$ac_t""$LDSHARED" 1>&6 ...@@ -2479,7 +2471,7 @@ echo "$ac_t""$LDSHARED" 1>&6
# CCSHARED are the C *flags* used to create objects to go into a shared # CCSHARED are the C *flags* used to create objects to go into a shared
# library (module) -- this is only needed for a few systems # library (module) -- this is only needed for a few systems
echo $ac_n "checking CCSHARED""... $ac_c" 1>&6 echo $ac_n "checking CCSHARED""... $ac_c" 1>&6
echo "configure:2483: checking CCSHARED" >&5 echo "configure:2475: checking CCSHARED" >&5
if test -z "$CCSHARED" if test -z "$CCSHARED"
then then
case $ac_sys_system/$ac_sys_release in case $ac_sys_system/$ac_sys_release in
...@@ -2502,7 +2494,7 @@ echo "$ac_t""$CCSHARED" 1>&6 ...@@ -2502,7 +2494,7 @@ echo "$ac_t""$CCSHARED" 1>&6
# LINKFORSHARED are the flags passed to the $(CC) command that links # LINKFORSHARED are the flags passed to the $(CC) command that links
# the python executable -- this is only needed for a few systems # the python executable -- this is only needed for a few systems
echo $ac_n "checking LINKFORSHARED""... $ac_c" 1>&6 echo $ac_n "checking LINKFORSHARED""... $ac_c" 1>&6
echo "configure:2506: checking LINKFORSHARED" >&5 echo "configure:2498: checking LINKFORSHARED" >&5
if test -z "$LINKFORSHARED" if test -z "$LINKFORSHARED"
then then
case $ac_sys_system/$ac_sys_release in case $ac_sys_system/$ac_sys_release in
...@@ -2538,15 +2530,15 @@ echo "$ac_t""$LINKFORSHARED" 1>&6 ...@@ -2538,15 +2530,15 @@ echo "$ac_t""$LINKFORSHARED" 1>&6
# checks for libraries # checks for libraries
echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
echo "configure:2542: checking for dlopen in -ldl" >&5 echo "configure:2534: checking for dlopen in -ldl" >&5
ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
ac_save_LIBS="$LIBS" ac_save_LIBS="$LIBS"
LIBS="-ldl $LIBS" LIBS="-ldl $LIBS"
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 2550 "configure" #line 2542 "configure"
#include "confdefs.h" #include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */ /* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2 /* We use char because int might match the return type of a gcc2
...@@ -2557,7 +2549,7 @@ int main() { ...@@ -2557,7 +2549,7 @@ int main() {
dlopen() dlopen()
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:2561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then if { (eval echo configure:2553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest* rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes" eval "ac_cv_lib_$ac_lib_var=yes"
else else
...@@ -2585,15 +2577,15 @@ else ...@@ -2585,15 +2577,15 @@ else
fi fi
# Dynamic linking for SunOS/Solaris and SYSV # Dynamic linking for SunOS/Solaris and SYSV
echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
echo "configure:2589: checking for shl_load in -ldld" >&5 echo "configure:2581: checking for shl_load in -ldld" >&5
ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
ac_save_LIBS="$LIBS" ac_save_LIBS="$LIBS"
LIBS="-ldld $LIBS" LIBS="-ldld $LIBS"
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 2597 "configure" #line 2589 "configure"
#include "confdefs.h" #include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */ /* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2 /* We use char because int might match the return type of a gcc2
...@@ -2604,7 +2596,7 @@ int main() { ...@@ -2604,7 +2596,7 @@ int main() {
shl_load() shl_load()
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:2608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then if { (eval echo configure:2600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest* rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes" eval "ac_cv_lib_$ac_lib_var=yes"
else else
...@@ -2635,16 +2627,16 @@ fi ...@@ -2635,16 +2627,16 @@ fi
# checks for system dependent C++ extensions support # checks for system dependent C++ extensions support
case "$ac_sys_system" in case "$ac_sys_system" in
AIX*) echo $ac_n "checking for genuine AIX C++ extensions support""... $ac_c" 1>&6 AIX*) echo $ac_n "checking for genuine AIX C++ extensions support""... $ac_c" 1>&6
echo "configure:2639: checking for genuine AIX C++ extensions support" >&5 echo "configure:2631: checking for genuine AIX C++ extensions support" >&5
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 2641 "configure" #line 2633 "configure"
#include "confdefs.h" #include "confdefs.h"
#include "/usr/lpp/xlC/include/load.h" #include "/usr/lpp/xlC/include/load.h"
int main() { int main() {
loadAndInit("", 0, "") loadAndInit("", 0, "")
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:2648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then if { (eval echo configure:2640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest* rm -rf conftest*
cat >> confdefs.h <<\EOF cat >> confdefs.h <<\EOF
#define AIX_GENUINE_CPLUSPLUS 1 #define AIX_GENUINE_CPLUSPLUS 1
...@@ -2668,15 +2660,15 @@ case "$ac_sys_system" in ...@@ -2668,15 +2660,15 @@ case "$ac_sys_system" in
IRIX*) ;; IRIX*) ;;
*) *)
echo $ac_n "checking for t_open in -lnsl""... $ac_c" 1>&6 echo $ac_n "checking for t_open in -lnsl""... $ac_c" 1>&6
echo "configure:2672: checking for t_open in -lnsl" >&5 echo "configure:2664: checking for t_open in -lnsl" >&5
ac_lib_var=`echo nsl'_'t_open | sed 'y%./+-%__p_%'` ac_lib_var=`echo nsl'_'t_open | sed 'y%./+-%__p_%'`
if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
ac_save_LIBS="$LIBS" ac_save_LIBS="$LIBS"
LIBS="-lnsl $LIBS" LIBS="-lnsl $LIBS"
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 2680 "configure" #line 2672 "configure"
#include "confdefs.h" #include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */ /* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2 /* We use char because int might match the return type of a gcc2
...@@ -2687,7 +2679,7 @@ int main() { ...@@ -2687,7 +2679,7 @@ int main() {
t_open() t_open()
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:2691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then if { (eval echo configure:2683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest* rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes" eval "ac_cv_lib_$ac_lib_var=yes"
else else
...@@ -2708,15 +2700,15 @@ else ...@@ -2708,15 +2700,15 @@ else
fi fi
# SVR4 # SVR4
echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
echo "configure:2712: checking for socket in -lsocket" >&5 echo "configure:2704: checking for socket in -lsocket" >&5
ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
ac_save_LIBS="$LIBS" ac_save_LIBS="$LIBS"
LIBS="-lsocket $LIBS $LIBS" LIBS="-lsocket $LIBS $LIBS"
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 2720 "configure" #line 2712 "configure"
#include "confdefs.h" #include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */ /* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2 /* We use char because int might match the return type of a gcc2
...@@ -2727,7 +2719,7 @@ int main() { ...@@ -2727,7 +2719,7 @@ int main() {
socket() socket()
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:2731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then if { (eval echo configure:2723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest* rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes" eval "ac_cv_lib_$ac_lib_var=yes"
else else
...@@ -2748,15 +2740,15 @@ else ...@@ -2748,15 +2740,15 @@ else
fi fi
# SVR4 sockets # SVR4 sockets
echo $ac_n "checking for socket in -lnet""... $ac_c" 1>&6 echo $ac_n "checking for socket in -lnet""... $ac_c" 1>&6
echo "configure:2752: checking for socket in -lnet" >&5 echo "configure:2744: checking for socket in -lnet" >&5
ac_lib_var=`echo net'_'socket | sed 'y%./+-%__p_%'` ac_lib_var=`echo net'_'socket | sed 'y%./+-%__p_%'`
if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
ac_save_LIBS="$LIBS" ac_save_LIBS="$LIBS"
LIBS="-lnet $LIBS $LIBS" LIBS="-lnet $LIBS $LIBS"
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 2760 "configure" #line 2752 "configure"
#include "confdefs.h" #include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */ /* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2 /* We use char because int might match the return type of a gcc2
...@@ -2767,7 +2759,7 @@ int main() { ...@@ -2767,7 +2759,7 @@ int main() {
socket() socket()
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:2771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then if { (eval echo configure:2763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest* rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes" eval "ac_cv_lib_$ac_lib_var=yes"
else else
...@@ -2791,7 +2783,7 @@ fi ...@@ -2791,7 +2783,7 @@ fi
esac esac
echo $ac_n "checking for --with-libs""... $ac_c" 1>&6 echo $ac_n "checking for --with-libs""... $ac_c" 1>&6
echo "configure:2795: checking for --with-libs" >&5 echo "configure:2787: checking for --with-libs" >&5
# Check whether --with-libs or --without-libs was given. # Check whether --with-libs or --without-libs was given.
if test "${with_libs+set}" = set; then if test "${with_libs+set}" = set; then
withval="$with_libs" withval="$with_libs"
...@@ -2805,7 +2797,7 @@ fi ...@@ -2805,7 +2797,7 @@ fi
echo $ac_n "checking for --with(out)-readline""... $ac_c" 1>&6 echo $ac_n "checking for --with(out)-readline""... $ac_c" 1>&6
echo "configure:2809: checking for --with(out)-readline" >&5 echo "configure:2801: checking for --with(out)-readline" >&5
# Check whether --with-readline or --without-readline was given. # Check whether --with-readline or --without-readline was given.
if test "${with_readline+set}" = set; then if test "${with_readline+set}" = set; then
withval="$with_readline" withval="$with_readline"
...@@ -2817,15 +2809,16 @@ fi ...@@ -2817,15 +2809,16 @@ fi
USE_THREAD_MODULE="#" USE_THREAD_MODULE=""
echo $ac_n "checking for --with-dec-threads""... $ac_c" 1>&6 echo $ac_n "checking for --with-dec-threads""... $ac_c" 1>&6
echo "configure:2824: checking for --with-dec-threads" >&5 echo "configure:2816: checking for --with-dec-threads" >&5
# Check whether --with-dec-threads or --without-dec-threads was given. # Check whether --with-dec-threads or --without-dec-threads was given.
if test "${with_dec_threads+set}" = set; then if test "${with_dec_threads+set}" = set; then
withval="$with_dec_threads" withval="$with_dec_threads"
echo "$ac_t""$withval" 1>&6
echo "$ac_t""$withval" 1>&6
LDLAST=-threads LDLAST=-threads
if test "${with_thread+set}" != set; then if test "${with_thread+set}" != set; then
with_thread="$withval"; with_thread="$withval";
...@@ -2836,38 +2829,45 @@ fi ...@@ -2836,38 +2829,45 @@ fi
echo $ac_n "checking for --with-threads""... $ac_c" 1>&6 echo $ac_n "checking for --with-threads""... $ac_c" 1>&6
echo "configure:2840: checking for --with-threads" >&5 echo "configure:2833: checking for --with-threads" >&5
# Check whether --with-threads or --without-threads was given. # Check whether --with-threads or --without-threads was given.
if test "${with_threads+set}" = set; then if test "${with_threads+set}" = set; then
withval="$with_threads" withval="$with_threads"
echo "$ac_t""$withval" 1>&6 :
if test "${with_thread+set}" != set; then
with_thread="$withval";
fi
else
echo "$ac_t""no" 1>&6
fi fi
echo $ac_n "checking for --with-thread""... $ac_c" 1>&6 # --with-thread is deprecated, but check for it anyway
echo "configure:2854: checking for --with-thread" >&5
# 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
USE_THREAD_MODULE=
echo "$ac_t""$withval" 1>&6
if test -d "$withval"
then LDFLAGS="$LDFLAGS -L$withval"
fi fi
cat >> confdefs.h <<\EOF
if test -z "$with_threads"
then with_threads="yes"
fi
echo "$ac_t""$with_threads" 1>&6
if test "$with_threads" = "no"
then
USE_THREAD_MODULE="#"
else
if test -d "$with_threads"
then LDFLAGS="$LDFLAGS -L$with_threads"
fi
if test -d "$withval"
then LDFLAGS="$LDFLAGS -L$withval"
fi
cat >> confdefs.h <<\EOF
#define _REENTRANT 1 #define _REENTRANT 1
EOF EOF
ac_safe=`echo "mach/cthreads.h" | sed 'y%./+-%__p_%'` ac_safe=`echo "mach/cthreads.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for mach/cthreads.h""... $ac_c" 1>&6 echo $ac_n "checking for mach/cthreads.h""... $ac_c" 1>&6
echo "configure:2870: checking for mach/cthreads.h" >&5 echo "configure:2870: checking for mach/cthreads.h" >&5
if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
...@@ -2896,18 +2896,18 @@ if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then ...@@ -2896,18 +2896,18 @@ if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
#define WITH_THREAD 1 #define WITH_THREAD 1
EOF EOF
cat >> confdefs.h <<\EOF cat >> confdefs.h <<\EOF
#define C_THREADS 1 #define C_THREADS 1
EOF EOF
LIBOBJS="$LIBOBJS thread.o" LIBOBJS="$LIBOBJS thread.o"
else else
echo "$ac_t""no" 1>&6 echo "$ac_t""no" 1>&6
echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6 echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
echo "configure:2909: checking for pth_init in -lpth" >&5 echo "configure:2909: checking for pth_init in -lpth" >&5
ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'` ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
ac_save_LIBS="$LIBS" ac_save_LIBS="$LIBS"
...@@ -2943,19 +2943,19 @@ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then ...@@ -2943,19 +2943,19 @@ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
#define WITH_THREAD 1 #define WITH_THREAD 1
EOF EOF
cat >> confdefs.h <<\EOF cat >> confdefs.h <<\EOF
#define _GNU_PTH 1 #define _GNU_PTH 1
EOF EOF
LIBS="-lpth $LIBS" LIBS="-lpth $LIBS"
LIBOBJS="$LIBOBJS thread.o" LIBOBJS="$LIBOBJS thread.o"
else else
echo "$ac_t""no" 1>&6 echo "$ac_t""no" 1>&6
echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
echo "configure:2957: checking for pthread_create in -lpthread" >&5 echo "configure:2957: checking for pthread_create in -lpthread" >&5
ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'` ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
ac_save_LIBS="$LIBS" ac_save_LIBS="$LIBS"
...@@ -2991,18 +2991,18 @@ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then ...@@ -2991,18 +2991,18 @@ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
#define WITH_THREAD 1 #define WITH_THREAD 1
EOF EOF
cat >> confdefs.h <<\EOF cat >> confdefs.h <<\EOF
#define _POSIX_THREADS 1 #define _POSIX_THREADS 1
EOF EOF
LIBS="-lpthread $LIBS" LIBS="-lpthread $LIBS"
LIBOBJS="$LIBOBJS thread.o" LIBOBJS="$LIBOBJS thread.o"
else else
echo "$ac_t""no" 1>&6 echo "$ac_t""no" 1>&6
echo $ac_n "checking for pthread_detach""... $ac_c" 1>&6 echo $ac_n "checking for pthread_detach""... $ac_c" 1>&6
echo "configure:3005: checking for pthread_detach" >&5 echo "configure:3005: checking for pthread_detach" >&5
if eval "test \"\${ac_cv_func_pthread_detach+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_func_pthread_detach'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
...@@ -3015,7 +3015,6 @@ else ...@@ -3015,7 +3015,6 @@ else
/* We use char because int might match the return type of a gcc2 /* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */ builtin and then its argument prototype would still apply. */
char pthread_detach(); char pthread_detach();
char (*f)();
int main() { int main() {
...@@ -3025,12 +3024,12 @@ int main() { ...@@ -3025,12 +3024,12 @@ int main() {
#if defined (__stub_pthread_detach) || defined (__stub___pthread_detach) #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach)
choke me choke me
#else #else
f = pthread_detach; pthread_detach();
#endif #endif
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:3034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then if { (eval echo configure:3033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest* rm -rf conftest*
eval "ac_cv_func_pthread_detach=yes" eval "ac_cv_func_pthread_detach=yes"
else else
...@@ -3048,27 +3047,27 @@ if eval "test \"`echo '$ac_cv_func_'pthread_detach`\" = yes"; then ...@@ -3048,27 +3047,27 @@ if eval "test \"`echo '$ac_cv_func_'pthread_detach`\" = yes"; then
#define WITH_THREAD 1 #define WITH_THREAD 1
EOF EOF
cat >> confdefs.h <<\EOF cat >> confdefs.h <<\EOF
#define _POSIX_THREADS 1 #define _POSIX_THREADS 1
EOF EOF
LIBOBJS="$LIBOBJS thread.o" LIBOBJS="$LIBOBJS thread.o"
else else
echo "$ac_t""no" 1>&6 echo "$ac_t""no" 1>&6
ac_safe=`echo "kernel/OS.h" | sed 'y%./+-%__p_%'` ac_safe=`echo "kernel/OS.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for kernel/OS.h""... $ac_c" 1>&6 echo $ac_n "checking for kernel/OS.h""... $ac_c" 1>&6
echo "configure:3062: checking for kernel/OS.h" >&5 echo "configure:3061: checking for kernel/OS.h" >&5
if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 3067 "configure" #line 3066 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <kernel/OS.h> #include <kernel/OS.h>
EOF EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:3072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } { (eval echo configure:3071: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then if test -z "$ac_err"; then
rm -rf conftest* rm -rf conftest*
...@@ -3088,24 +3087,24 @@ if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then ...@@ -3088,24 +3087,24 @@ if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
#define WITH_THREAD 1 #define WITH_THREAD 1
EOF EOF
cat >> confdefs.h <<\EOF cat >> confdefs.h <<\EOF
#define BEOS_THREADS 1 #define BEOS_THREADS 1
EOF EOF
LIBOBJS="$LIBOBJS thread.o" LIBOBJS="$LIBOBJS thread.o"
else else
echo "$ac_t""no" 1>&6 echo "$ac_t""no" 1>&6
echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6 echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
echo "configure:3101: checking for pthread_create in -lpthreads" >&5 echo "configure:3100: checking for pthread_create in -lpthreads" >&5
ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'` ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'`
if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
ac_save_LIBS="$LIBS" ac_save_LIBS="$LIBS"
LIBS="-lpthreads $LIBS" LIBS="-lpthreads $LIBS"
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 3109 "configure" #line 3108 "configure"
#include "confdefs.h" #include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */ /* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2 /* We use char because int might match the return type of a gcc2
...@@ -3116,7 +3115,7 @@ int main() { ...@@ -3116,7 +3115,7 @@ int main() {
pthread_create() pthread_create()
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:3120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then if { (eval echo configure:3119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest* rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes" eval "ac_cv_lib_$ac_lib_var=yes"
else else
...@@ -3135,25 +3134,25 @@ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then ...@@ -3135,25 +3134,25 @@ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
#define WITH_THREAD 1 #define WITH_THREAD 1
EOF EOF
cat >> confdefs.h <<\EOF cat >> confdefs.h <<\EOF
#define _POSIX_THREADS 1 #define _POSIX_THREADS 1
EOF EOF
LIBS="$LIBS -lpthreads" LIBS="$LIBS -lpthreads"
LIBOBJS="$LIBOBJS thread.o" LIBOBJS="$LIBOBJS thread.o"
else else
echo "$ac_t""no" 1>&6 echo "$ac_t""no" 1>&6
echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
echo "configure:3149: checking for pthread_create in -lc_r" >&5 echo "configure:3148: checking for pthread_create in -lc_r" >&5
ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
ac_save_LIBS="$LIBS" ac_save_LIBS="$LIBS"
LIBS="-lc_r $LIBS" LIBS="-lc_r $LIBS"
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 3157 "configure" #line 3156 "configure"
#include "confdefs.h" #include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */ /* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2 /* We use char because int might match the return type of a gcc2
...@@ -3164,7 +3163,7 @@ int main() { ...@@ -3164,7 +3163,7 @@ int main() {
pthread_create() pthread_create()
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:3168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then if { (eval echo configure:3167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest* rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes" eval "ac_cv_lib_$ac_lib_var=yes"
else else
...@@ -3183,25 +3182,25 @@ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then ...@@ -3183,25 +3182,25 @@ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
#define WITH_THREAD 1 #define WITH_THREAD 1
EOF EOF
cat >> confdefs.h <<\EOF cat >> confdefs.h <<\EOF
#define _POSIX_THREADS 1 #define _POSIX_THREADS 1
EOF EOF
LIBS="$LIBS -lc_r" LIBS="$LIBS -lc_r"
LIBOBJS="$LIBOBJS thread.o" LIBOBJS="$LIBOBJS thread.o"
else else
echo "$ac_t""no" 1>&6 echo "$ac_t""no" 1>&6
echo $ac_n "checking for __d6_pthread_create in -lthread""... $ac_c" 1>&6 echo $ac_n "checking for __d6_pthread_create in -lthread""... $ac_c" 1>&6
echo "configure:3197: checking for __d6_pthread_create in -lthread" >&5 echo "configure:3196: checking for __d6_pthread_create in -lthread" >&5
ac_lib_var=`echo thread'_'__d6_pthread_create | sed 'y%./+-%__p_%'` ac_lib_var=`echo thread'_'__d6_pthread_create | sed 'y%./+-%__p_%'`
if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
ac_save_LIBS="$LIBS" ac_save_LIBS="$LIBS"
LIBS="-lthread $LIBS" LIBS="-lthread $LIBS"
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 3205 "configure" #line 3204 "configure"
#include "confdefs.h" #include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */ /* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2 /* We use char because int might match the return type of a gcc2
...@@ -3212,7 +3211,7 @@ int main() { ...@@ -3212,7 +3211,7 @@ int main() {
__d6_pthread_create() __d6_pthread_create()
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:3216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then if { (eval echo configure:3215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest* rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes" eval "ac_cv_lib_$ac_lib_var=yes"
else else
...@@ -3231,25 +3230,25 @@ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then ...@@ -3231,25 +3230,25 @@ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
#define WITH_THREAD 1 #define WITH_THREAD 1
EOF EOF
cat >> confdefs.h <<\EOF cat >> confdefs.h <<\EOF
#define _POSIX_THREADS 1 #define _POSIX_THREADS 1
EOF EOF
LIBS="$LIBS -lthread" LIBS="$LIBS -lthread"
LIBOBJS="$LIBOBJS thread.o" LIBOBJS="$LIBOBJS thread.o"
else else
echo "$ac_t""no" 1>&6 echo "$ac_t""no" 1>&6
echo $ac_n "checking for pthread_create in -lcma""... $ac_c" 1>&6 echo $ac_n "checking for pthread_create in -lcma""... $ac_c" 1>&6
echo "configure:3245: checking for pthread_create in -lcma" >&5 echo "configure:3244: checking for pthread_create in -lcma" >&5
ac_lib_var=`echo cma'_'pthread_create | sed 'y%./+-%__p_%'` ac_lib_var=`echo cma'_'pthread_create | sed 'y%./+-%__p_%'`
if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
ac_save_LIBS="$LIBS" ac_save_LIBS="$LIBS"
LIBS="-lcma $LIBS" LIBS="-lcma $LIBS"
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 3253 "configure" #line 3252 "configure"
#include "confdefs.h" #include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */ /* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2 /* We use char because int might match the return type of a gcc2
...@@ -3260,7 +3259,7 @@ int main() { ...@@ -3260,7 +3259,7 @@ int main() {
pthread_create() pthread_create()
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:3264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then if { (eval echo configure:3263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest* rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes" eval "ac_cv_lib_$ac_lib_var=yes"
else else
...@@ -3279,17 +3278,17 @@ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then ...@@ -3279,17 +3278,17 @@ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
#define WITH_THREAD 1 #define WITH_THREAD 1
EOF EOF
cat >> confdefs.h <<\EOF cat >> confdefs.h <<\EOF
#define _POSIX_THREADS 1 #define _POSIX_THREADS 1
EOF EOF
LIBS="$LIBS -lcma" LIBS="$LIBS -lcma"
LIBOBJS="$LIBOBJS thread.o" LIBOBJS="$LIBOBJS thread.o"
else else
echo "$ac_t""no" 1>&6 echo "$ac_t""no" 1>&6
fi fi
fi fi
fi fi
...@@ -3307,16 +3306,16 @@ fi ...@@ -3307,16 +3306,16 @@ fi
fi fi
echo $ac_n "checking for usconfig in -lmpc""... $ac_c" 1>&6 echo $ac_n "checking for usconfig in -lmpc""... $ac_c" 1>&6
echo "configure:3312: checking for usconfig in -lmpc" >&5 echo "configure:3311: checking for usconfig in -lmpc" >&5
ac_lib_var=`echo mpc'_'usconfig | sed 'y%./+-%__p_%'` ac_lib_var=`echo mpc'_'usconfig | sed 'y%./+-%__p_%'`
if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
ac_save_LIBS="$LIBS" ac_save_LIBS="$LIBS"
LIBS="-lmpc $LIBS" LIBS="-lmpc $LIBS"
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 3320 "configure" #line 3319 "configure"
#include "confdefs.h" #include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */ /* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2 /* We use char because int might match the return type of a gcc2
...@@ -3327,7 +3326,7 @@ int main() { ...@@ -3327,7 +3326,7 @@ int main() {
usconfig() usconfig()
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:3331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then if { (eval echo configure:3330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest* rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes" eval "ac_cv_lib_$ac_lib_var=yes"
else else
...@@ -3346,22 +3345,22 @@ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then ...@@ -3346,22 +3345,22 @@ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
#define WITH_THREAD 1 #define WITH_THREAD 1
EOF EOF
LIBS="$LIBS -lmpc" LIBS="$LIBS -lmpc"
LIBOBJS="$LIBOBJS thread.o" LIBOBJS="$LIBOBJS thread.o"
else else
echo "$ac_t""no" 1>&6 echo "$ac_t""no" 1>&6
fi fi
echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
echo "configure:3357: checking for thr_create in -lthread" >&5 echo "configure:3356: checking for thr_create in -lthread" >&5
ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'` ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'`
if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
ac_save_LIBS="$LIBS" ac_save_LIBS="$LIBS"
LIBS="-lthread $LIBS" LIBS="-lthread $LIBS"
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 3365 "configure" #line 3364 "configure"
#include "confdefs.h" #include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */ /* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2 /* We use char because int might match the return type of a gcc2
...@@ -3372,7 +3371,7 @@ int main() { ...@@ -3372,7 +3371,7 @@ int main() {
thr_create() thr_create()
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:3376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then if { (eval echo configure:3375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest* rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes" eval "ac_cv_lib_$ac_lib_var=yes"
else else
...@@ -3391,24 +3390,20 @@ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then ...@@ -3391,24 +3390,20 @@ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
#define WITH_THREAD 1 #define WITH_THREAD 1
EOF EOF
LIBS="$LIBS -lthread" LIBS="$LIBS -lthread"
LIBOBJS="$LIBOBJS thread.o" LIBOBJS="$LIBOBJS thread.o"
else else
echo "$ac_t""no" 1>&6 echo "$ac_t""no" 1>&6
fi fi
else
echo "$ac_t""no" 1>&6
fi fi
# -I${DLINCLDIR} is added to the compile rule for importdl.o # -I${DLINCLDIR} is added to the compile rule for importdl.o
DLINCLDIR=/ DLINCLDIR=/
echo $ac_n "checking for --with-sgi-dl""... $ac_c" 1>&6 echo $ac_n "checking for --with-sgi-dl""... $ac_c" 1>&6
echo "configure:3412: checking for --with-sgi-dl" >&5 echo "configure:3407: checking for --with-sgi-dl" >&5
# Check whether --with-sgi-dl or --without-sgi-dl was given. # Check whether --with-sgi-dl or --without-sgi-dl was given.
if test "${with_sgi_dl+set}" = set; then if test "${with_sgi_dl+set}" = set; then
withval="$with_sgi_dl" withval="$with_sgi_dl"
...@@ -3432,7 +3427,7 @@ fi ...@@ -3432,7 +3427,7 @@ fi
echo $ac_n "checking for --with-dl-dld""... $ac_c" 1>&6 echo $ac_n "checking for --with-dl-dld""... $ac_c" 1>&6
echo "configure:3436: checking for --with-dl-dld" >&5 echo "configure:3431: checking for --with-dl-dld" >&5
# Check whether --with-dl-dld or --without-dl-dld was given. # Check whether --with-dl-dld or --without-dl-dld was given.
if test "${with_dl_dld+set}" = set; then if test "${with_dl_dld+set}" = set; then
withval="$with_dl_dld" withval="$with_dl_dld"
...@@ -3459,12 +3454,12 @@ fi ...@@ -3459,12 +3454,12 @@ fi
# the dlopen() function means we might want to use dynload_shlib.o. some # the dlopen() function means we might want to use dynload_shlib.o. some
# platforms, such as AIX, have dlopen(), but don't want to use it. # platforms, such as AIX, have dlopen(), but don't want to use it.
echo $ac_n "checking for dlopen""... $ac_c" 1>&6 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
echo "configure:3463: checking for dlopen" >&5 echo "configure:3458: checking for dlopen" >&5
if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 3468 "configure" #line 3463 "configure"
#include "confdefs.h" #include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes, /* System header to define __stub macros and hopefully few prototypes,
which can conflict with char dlopen(); below. */ which can conflict with char dlopen(); below. */
...@@ -3473,7 +3468,6 @@ else ...@@ -3473,7 +3468,6 @@ else
/* We use char because int might match the return type of a gcc2 /* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */ builtin and then its argument prototype would still apply. */
char dlopen(); char dlopen();
char (*f)();
int main() { int main() {
...@@ -3483,12 +3477,12 @@ int main() { ...@@ -3483,12 +3477,12 @@ int main() {
#if defined (__stub_dlopen) || defined (__stub___dlopen) #if defined (__stub_dlopen) || defined (__stub___dlopen)
choke me choke me
#else #else
f = dlopen; dlopen();
#endif #endif
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:3492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then if { (eval echo configure:3486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest* rm -rf conftest*
eval "ac_cv_func_dlopen=yes" eval "ac_cv_func_dlopen=yes"
else else
...@@ -3512,7 +3506,7 @@ fi ...@@ -3512,7 +3506,7 @@ fi
# loading of modules. # loading of modules.
echo $ac_n "checking DYNLOADFILE""... $ac_c" 1>&6 echo $ac_n "checking DYNLOADFILE""... $ac_c" 1>&6
echo "configure:3516: checking DYNLOADFILE" >&5 echo "configure:3510: checking DYNLOADFILE" >&5
if test -z "$DYNLOADFILE" if test -z "$DYNLOADFILE"
then then
case $ac_sys_system/$ac_sys_release in case $ac_sys_system/$ac_sys_release in
...@@ -3552,12 +3546,12 @@ for ac_func in alarm chown clock confstr ctermid ctermid_r dlopen execv \ ...@@ -3552,12 +3546,12 @@ for ac_func in alarm chown clock confstr ctermid ctermid_r dlopen execv \
truncate uname waitpid truncate uname waitpid
do do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:3556: checking for $ac_func" >&5 echo "configure:3550: checking for $ac_func" >&5
if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 3561 "configure" #line 3555 "configure"
#include "confdefs.h" #include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes, /* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */ which can conflict with char $ac_func(); below. */
...@@ -3566,7 +3560,6 @@ else ...@@ -3566,7 +3560,6 @@ else
/* We use char because int might match the return type of a gcc2 /* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */ builtin and then its argument prototype would still apply. */
char $ac_func(); char $ac_func();
char (*f)();
int main() { int main() {
...@@ -3576,12 +3569,12 @@ int main() { ...@@ -3576,12 +3569,12 @@ int main() {
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me choke me
#else #else
f = $ac_func; $ac_func();
#endif #endif
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:3585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then if { (eval echo configure:3578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest* rm -rf conftest*
eval "ac_cv_func_$ac_func=yes" eval "ac_cv_func_$ac_func=yes"
else else
...@@ -3611,12 +3604,12 @@ done ...@@ -3611,12 +3604,12 @@ done
for ac_func in openpty for ac_func in openpty
do do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:3615: checking for $ac_func" >&5 echo "configure:3608: checking for $ac_func" >&5
if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 3620 "configure" #line 3613 "configure"
#include "confdefs.h" #include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes, /* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */ which can conflict with char $ac_func(); below. */
...@@ -3625,7 +3618,6 @@ else ...@@ -3625,7 +3618,6 @@ else
/* We use char because int might match the return type of a gcc2 /* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */ builtin and then its argument prototype would still apply. */
char $ac_func(); char $ac_func();
char (*f)();
int main() { int main() {
...@@ -3635,12 +3627,12 @@ int main() { ...@@ -3635,12 +3627,12 @@ int main() {
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me choke me
#else #else
f = $ac_func; $ac_func();
#endif #endif
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:3644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then if { (eval echo configure:3636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest* rm -rf conftest*
eval "ac_cv_func_$ac_func=yes" eval "ac_cv_func_$ac_func=yes"
else else
...@@ -3662,15 +3654,15 @@ EOF ...@@ -3662,15 +3654,15 @@ EOF
else else
echo "$ac_t""no" 1>&6 echo "$ac_t""no" 1>&6
echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
echo "configure:3666: checking for openpty in -lutil" >&5 echo "configure:3658: checking for openpty in -lutil" >&5
ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'` ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
ac_save_LIBS="$LIBS" ac_save_LIBS="$LIBS"
LIBS="-lutil $LIBS" LIBS="-lutil $LIBS"
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 3674 "configure" #line 3666 "configure"
#include "confdefs.h" #include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */ /* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2 /* We use char because int might match the return type of a gcc2
...@@ -3681,7 +3673,7 @@ int main() { ...@@ -3681,7 +3673,7 @@ int main() {
openpty() openpty()
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:3685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then if { (eval echo configure:3677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest* rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes" eval "ac_cv_lib_$ac_lib_var=yes"
else else
...@@ -3710,12 +3702,12 @@ done ...@@ -3710,12 +3702,12 @@ done
for ac_func in forkpty for ac_func in forkpty
do do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:3714: checking for $ac_func" >&5 echo "configure:3706: checking for $ac_func" >&5
if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 3719 "configure" #line 3711 "configure"
#include "confdefs.h" #include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes, /* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */ which can conflict with char $ac_func(); below. */
...@@ -3724,7 +3716,6 @@ else ...@@ -3724,7 +3716,6 @@ else
/* We use char because int might match the return type of a gcc2 /* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */ builtin and then its argument prototype would still apply. */
char $ac_func(); char $ac_func();
char (*f)();
int main() { int main() {
...@@ -3734,12 +3725,12 @@ int main() { ...@@ -3734,12 +3725,12 @@ int main() {
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me choke me
#else #else
f = $ac_func; $ac_func();
#endif #endif
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:3743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then if { (eval echo configure:3734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest* rm -rf conftest*
eval "ac_cv_func_$ac_func=yes" eval "ac_cv_func_$ac_func=yes"
else else
...@@ -3761,15 +3752,15 @@ EOF ...@@ -3761,15 +3752,15 @@ EOF
else else
echo "$ac_t""no" 1>&6 echo "$ac_t""no" 1>&6
echo $ac_n "checking for forkpty in -lutil""... $ac_c" 1>&6 echo $ac_n "checking for forkpty in -lutil""... $ac_c" 1>&6
echo "configure:3765: checking for forkpty in -lutil" >&5 echo "configure:3756: checking for forkpty in -lutil" >&5
ac_lib_var=`echo util'_'forkpty | sed 'y%./+-%__p_%'` ac_lib_var=`echo util'_'forkpty | sed 'y%./+-%__p_%'`
if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
ac_save_LIBS="$LIBS" ac_save_LIBS="$LIBS"
LIBS="-lutil $LIBS" LIBS="-lutil $LIBS"
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 3773 "configure" #line 3764 "configure"
#include "confdefs.h" #include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */ /* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2 /* We use char because int might match the return type of a gcc2
...@@ -3780,7 +3771,7 @@ int main() { ...@@ -3780,7 +3771,7 @@ int main() {
forkpty() forkpty()
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:3784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then if { (eval echo configure:3775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest* rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes" eval "ac_cv_lib_$ac_lib_var=yes"
else else
...@@ -3811,12 +3802,12 @@ done ...@@ -3811,12 +3802,12 @@ done
for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
do do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:3815: checking for $ac_func" >&5 echo "configure:3806: checking for $ac_func" >&5
if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 3820 "configure" #line 3811 "configure"
#include "confdefs.h" #include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes, /* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */ which can conflict with char $ac_func(); below. */
...@@ -3825,7 +3816,6 @@ else ...@@ -3825,7 +3816,6 @@ else
/* We use char because int might match the return type of a gcc2 /* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */ builtin and then its argument prototype would still apply. */
char $ac_func(); char $ac_func();
char (*f)();
int main() { int main() {
...@@ -3835,12 +3825,12 @@ int main() { ...@@ -3835,12 +3825,12 @@ int main() {
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me choke me
#else #else
f = $ac_func; $ac_func();
#endif #endif
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:3844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then if { (eval echo configure:3834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest* rm -rf conftest*
eval "ac_cv_func_$ac_func=yes" eval "ac_cv_func_$ac_func=yes"
else else
...@@ -3868,12 +3858,12 @@ done ...@@ -3868,12 +3858,12 @@ done
for ac_func in dup2 getcwd strdup strerror memmove for ac_func in dup2 getcwd strdup strerror memmove
do do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:3872: checking for $ac_func" >&5 echo "configure:3862: checking for $ac_func" >&5
if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 3877 "configure" #line 3867 "configure"
#include "confdefs.h" #include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes, /* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */ which can conflict with char $ac_func(); below. */
...@@ -3882,7 +3872,6 @@ else ...@@ -3882,7 +3872,6 @@ else
/* We use char because int might match the return type of a gcc2 /* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */ builtin and then its argument prototype would still apply. */
char $ac_func(); char $ac_func();
char (*f)();
int main() { int main() {
...@@ -3892,12 +3881,12 @@ int main() { ...@@ -3892,12 +3881,12 @@ int main() {
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me choke me
#else #else
f = $ac_func; $ac_func();
#endif #endif
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:3901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then if { (eval echo configure:3890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest* rm -rf conftest*
eval "ac_cv_func_$ac_func=yes" eval "ac_cv_func_$ac_func=yes"
else else
...@@ -3924,12 +3913,12 @@ done ...@@ -3924,12 +3913,12 @@ done
echo $ac_n "checking for getpgrp""... $ac_c" 1>&6 echo $ac_n "checking for getpgrp""... $ac_c" 1>&6
echo "configure:3928: checking for getpgrp" >&5 echo "configure:3917: checking for getpgrp" >&5
if eval "test \"\${ac_cv_func_getpgrp+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_func_getpgrp'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 3933 "configure" #line 3922 "configure"
#include "confdefs.h" #include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes, /* System header to define __stub macros and hopefully few prototypes,
which can conflict with char getpgrp(); below. */ which can conflict with char getpgrp(); below. */
...@@ -3938,7 +3927,6 @@ else ...@@ -3938,7 +3927,6 @@ else
/* We use char because int might match the return type of a gcc2 /* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */ builtin and then its argument prototype would still apply. */
char getpgrp(); char getpgrp();
char (*f)();
int main() { int main() {
...@@ -3948,12 +3936,12 @@ int main() { ...@@ -3948,12 +3936,12 @@ int main() {
#if defined (__stub_getpgrp) || defined (__stub___getpgrp) #if defined (__stub_getpgrp) || defined (__stub___getpgrp)
choke me choke me
#else #else
f = getpgrp; getpgrp();
#endif #endif
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:3957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then if { (eval echo configure:3945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest* rm -rf conftest*
eval "ac_cv_func_getpgrp=yes" eval "ac_cv_func_getpgrp=yes"
else else
...@@ -3968,14 +3956,14 @@ fi ...@@ -3968,14 +3956,14 @@ fi
if eval "test \"`echo '$ac_cv_func_'getpgrp`\" = yes"; then if eval "test \"`echo '$ac_cv_func_'getpgrp`\" = yes"; then
echo "$ac_t""yes" 1>&6 echo "$ac_t""yes" 1>&6
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 3972 "configure" #line 3960 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <unistd.h> #include <unistd.h>
int main() { int main() {
getpgrp(0); getpgrp(0);
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:3979: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then if { (eval echo configure:3967: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest* rm -rf conftest*
cat >> confdefs.h <<\EOF cat >> confdefs.h <<\EOF
#define GETPGRP_HAVE_ARG 1 #define GETPGRP_HAVE_ARG 1
...@@ -3991,12 +3979,12 @@ else ...@@ -3991,12 +3979,12 @@ else
fi fi
echo $ac_n "checking for setpgrp""... $ac_c" 1>&6 echo $ac_n "checking for setpgrp""... $ac_c" 1>&6
echo "configure:3995: checking for setpgrp" >&5 echo "configure:3983: checking for setpgrp" >&5
if eval "test \"\${ac_cv_func_setpgrp+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_func_setpgrp'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 4000 "configure" #line 3988 "configure"
#include "confdefs.h" #include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes, /* System header to define __stub macros and hopefully few prototypes,
which can conflict with char setpgrp(); below. */ which can conflict with char setpgrp(); below. */
...@@ -4005,7 +3993,6 @@ else ...@@ -4005,7 +3993,6 @@ else
/* We use char because int might match the return type of a gcc2 /* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */ builtin and then its argument prototype would still apply. */
char setpgrp(); char setpgrp();
char (*f)();
int main() { int main() {
...@@ -4015,12 +4002,12 @@ int main() { ...@@ -4015,12 +4002,12 @@ int main() {
#if defined (__stub_setpgrp) || defined (__stub___setpgrp) #if defined (__stub_setpgrp) || defined (__stub___setpgrp)
choke me choke me
#else #else
f = setpgrp; setpgrp();
#endif #endif
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:4024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then if { (eval echo configure:4011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest* rm -rf conftest*
eval "ac_cv_func_setpgrp=yes" eval "ac_cv_func_setpgrp=yes"
else else
...@@ -4035,14 +4022,14 @@ fi ...@@ -4035,14 +4022,14 @@ fi
if eval "test \"`echo '$ac_cv_func_'setpgrp`\" = yes"; then if eval "test \"`echo '$ac_cv_func_'setpgrp`\" = yes"; then
echo "$ac_t""yes" 1>&6 echo "$ac_t""yes" 1>&6
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 4039 "configure" #line 4026 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <unistd.h> #include <unistd.h>
int main() { int main() {
setpgrp(0,0); setpgrp(0,0);
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:4046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then if { (eval echo configure:4033: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest* rm -rf conftest*
cat >> confdefs.h <<\EOF cat >> confdefs.h <<\EOF
#define SETPGRP_HAVE_ARG 1 #define SETPGRP_HAVE_ARG 1
...@@ -4058,12 +4045,12 @@ else ...@@ -4058,12 +4045,12 @@ else
fi fi
echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6 echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6
echo "configure:4062: checking for gettimeofday" >&5 echo "configure:4049: checking for gettimeofday" >&5
if eval "test \"\${ac_cv_func_gettimeofday+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 4067 "configure" #line 4054 "configure"
#include "confdefs.h" #include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes, /* System header to define __stub macros and hopefully few prototypes,
which can conflict with char gettimeofday(); below. */ which can conflict with char gettimeofday(); below. */
...@@ -4072,7 +4059,6 @@ else ...@@ -4072,7 +4059,6 @@ else
/* We use char because int might match the return type of a gcc2 /* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */ builtin and then its argument prototype would still apply. */
char gettimeofday(); char gettimeofday();
char (*f)();
int main() { int main() {
...@@ -4082,12 +4068,12 @@ int main() { ...@@ -4082,12 +4068,12 @@ int main() {
#if defined (__stub_gettimeofday) || defined (__stub___gettimeofday) #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
choke me choke me
#else #else
f = gettimeofday; gettimeofday();
#endif #endif
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:4091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then if { (eval echo configure:4077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest* rm -rf conftest*
eval "ac_cv_func_gettimeofday=yes" eval "ac_cv_func_gettimeofday=yes"
else else
...@@ -4102,14 +4088,14 @@ fi ...@@ -4102,14 +4088,14 @@ fi
if eval "test \"`echo '$ac_cv_func_'gettimeofday`\" = yes"; then if eval "test \"`echo '$ac_cv_func_'gettimeofday`\" = yes"; then
echo "$ac_t""yes" 1>&6 echo "$ac_t""yes" 1>&6
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 4106 "configure" #line 4092 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <sys/time.h> #include <sys/time.h>
int main() { int main() {
gettimeofday((struct timeval*)0,(struct timezone*)0); gettimeofday((struct timeval*)0,(struct timezone*)0);
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:4113: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then if { (eval echo configure:4099: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
: :
else else
echo "configure: failed program was:" >&5 echo "configure: failed program was:" >&5
...@@ -4128,12 +4114,12 @@ fi ...@@ -4128,12 +4114,12 @@ fi
# checks for structures # checks for structures
echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
echo "configure:4132: checking whether time.h and sys/time.h may both be included" >&5 echo "configure:4118: checking whether time.h and sys/time.h may both be included" >&5
if eval "test \"\${ac_cv_header_time+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 4137 "configure" #line 4123 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <sys/types.h> #include <sys/types.h>
#include <sys/time.h> #include <sys/time.h>
...@@ -4142,7 +4128,7 @@ int main() { ...@@ -4142,7 +4128,7 @@ int main() {
struct tm *tp; struct tm *tp;
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:4146: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then if { (eval echo configure:4132: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest* rm -rf conftest*
ac_cv_header_time=yes ac_cv_header_time=yes
else else
...@@ -4163,12 +4149,12 @@ EOF ...@@ -4163,12 +4149,12 @@ EOF
fi fi
echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
echo "configure:4167: checking whether struct tm is in sys/time.h or time.h" >&5 echo "configure:4153: checking whether struct tm is in sys/time.h or time.h" >&5
if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 4172 "configure" #line 4158 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <sys/types.h> #include <sys/types.h>
#include <time.h> #include <time.h>
...@@ -4176,7 +4162,7 @@ int main() { ...@@ -4176,7 +4162,7 @@ int main() {
struct tm *tp; tp->tm_sec; struct tm *tp; tp->tm_sec;
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:4180: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then if { (eval echo configure:4166: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest* rm -rf conftest*
ac_cv_struct_tm=time.h ac_cv_struct_tm=time.h
else else
...@@ -4196,47 +4182,46 @@ EOF ...@@ -4196,47 +4182,46 @@ EOF
fi fi
echo $ac_n "checking for member tm_zone in aggregate type struct tm""... $ac_c" 1>&6 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
echo "configure:4201: checking for member tm_zone in aggregate type struct tm" >&5 echo "configure:4187: checking for tm_zone in struct tm" >&5
if eval "test \"\${ac_cv_c_struct_member_tm_zone+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 4206 "configure" #line 4192 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <sys/types.h> #include <sys/types.h>
#include <$ac_cv_struct_tm> #include <$ac_cv_struct_tm>
int main() { int main() {
struct tm foo; foo.tm_zone; struct tm tm; tm.tm_zone;
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:4214: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then if { (eval echo configure:4200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest* rm -rf conftest*
ac_cv_c_struct_member_tm_zone=yes ac_cv_struct_tm_zone=yes
else else
echo "configure: failed program was:" >&5 echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5 cat conftest.$ac_ext >&5
rm -rf conftest* rm -rf conftest*
ac_cv_c_struct_member_tm_zone=no ac_cv_struct_tm_zone=no
fi fi
rm -f conftest* rm -f conftest*
fi fi
echo "$ac_t""$ac_cv_c_struct_member_tm_zone" 1>&6 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
tm_zone="$ac_cv_c_struct_member_tm_zone" if test "$ac_cv_struct_tm_zone" = yes; then
if test "$ac_cv_c_struct_member_tm_zone" = yes; then
cat >> confdefs.h <<\EOF cat >> confdefs.h <<\EOF
#define HAVE_TM_ZONE 1 #define HAVE_TM_ZONE 1
EOF EOF
else else
echo $ac_n "checking for tzname""... $ac_c" 1>&6 echo $ac_n "checking for tzname""... $ac_c" 1>&6
echo "configure:4235: checking for tzname" >&5 echo "configure:4220: checking for tzname" >&5
if eval "test \"\${ac_cv_var_tzname+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 4240 "configure" #line 4225 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <time.h> #include <time.h>
#ifndef tzname /* For SGI. */ #ifndef tzname /* For SGI. */
...@@ -4246,7 +4231,7 @@ int main() { ...@@ -4246,7 +4231,7 @@ int main() {
atoi(*tzname); atoi(*tzname);
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:4250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then if { (eval echo configure:4235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest* rm -rf conftest*
ac_cv_var_tzname=yes ac_cv_var_tzname=yes
else else
...@@ -4269,19 +4254,19 @@ fi ...@@ -4269,19 +4254,19 @@ fi
echo $ac_n "checking for time.h that defines altzone""... $ac_c" 1>&6 echo $ac_n "checking for time.h that defines altzone""... $ac_c" 1>&6
echo "configure:4273: checking for time.h that defines altzone" >&5 echo "configure:4258: checking for time.h that defines altzone" >&5
if eval "test \"\${ac_cv_header_time_altzone+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_header_time_altzone'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 4278 "configure" #line 4263 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <time.h> #include <time.h>
int main() { int main() {
return altzone; return altzone;
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:4285: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then if { (eval echo configure:4270: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest* rm -rf conftest*
ac_cv_header_time_altzone=yes ac_cv_header_time_altzone=yes
else else
...@@ -4303,9 +4288,9 @@ fi ...@@ -4303,9 +4288,9 @@ fi
was_it_defined=no was_it_defined=no
echo $ac_n "checking whether sys/select.h and sys/time.h may both be included""... $ac_c" 1>&6 echo $ac_n "checking whether sys/select.h and sys/time.h may both be included""... $ac_c" 1>&6
echo "configure:4307: checking whether sys/select.h and sys/time.h may both be included" >&5 echo "configure:4292: checking whether sys/select.h and sys/time.h may both be included" >&5
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 4309 "configure" #line 4294 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <sys/types.h> #include <sys/types.h>
...@@ -4316,7 +4301,7 @@ int main() { ...@@ -4316,7 +4301,7 @@ int main() {
; ;
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:4320: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then if { (eval echo configure:4305: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest* rm -rf conftest*
cat >> confdefs.h <<\EOF cat >> confdefs.h <<\EOF
#define SYS_SELECT_WITH_SYS_TIME 1 #define SYS_SELECT_WITH_SYS_TIME 1
...@@ -4332,14 +4317,14 @@ echo "$ac_t""$was_it_defined" 1>&6 ...@@ -4332,14 +4317,14 @@ echo "$ac_t""$was_it_defined" 1>&6
# checks for compiler characteristics # checks for compiler characteristics
echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
echo "configure:4336: checking whether char is unsigned" >&5 echo "configure:4321: checking whether char is unsigned" >&5
if eval "test \"\${ac_cv_c_char_unsigned+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
if test "$GCC" = yes; then if test "$GCC" = yes; then
# GCC predefines this symbol on systems where it applies. # GCC predefines this symbol on systems where it applies.
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 4343 "configure" #line 4328 "configure"
#include "confdefs.h" #include "confdefs.h"
#ifdef __CHAR_UNSIGNED__ #ifdef __CHAR_UNSIGNED__
yes yes
...@@ -4361,7 +4346,7 @@ if test "$cross_compiling" = yes; then ...@@ -4361,7 +4346,7 @@ if test "$cross_compiling" = yes; then
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 4365 "configure" #line 4350 "configure"
#include "confdefs.h" #include "confdefs.h"
/* volatile prevents gcc2 from optimizing the test away on sparcs. */ /* volatile prevents gcc2 from optimizing the test away on sparcs. */
#if !defined(__STDC__) || __STDC__ != 1 #if !defined(__STDC__) || __STDC__ != 1
...@@ -4371,7 +4356,7 @@ main() { ...@@ -4371,7 +4356,7 @@ main() {
volatile char c = 255; exit(c < 0); volatile char c = 255; exit(c < 0);
} }
EOF EOF
if { (eval echo configure:4375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null if { (eval echo configure:4360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then then
ac_cv_c_char_unsigned=yes ac_cv_c_char_unsigned=yes
else else
...@@ -4395,12 +4380,12 @@ EOF ...@@ -4395,12 +4380,12 @@ EOF
fi fi
echo $ac_n "checking for working const""... $ac_c" 1>&6 echo $ac_n "checking for working const""... $ac_c" 1>&6
echo "configure:4399: checking for working const" >&5 echo "configure:4384: checking for working const" >&5
if eval "test \"\${ac_cv_c_const+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 4404 "configure" #line 4389 "configure"
#include "confdefs.h" #include "confdefs.h"
int main() { int main() {
...@@ -4449,7 +4434,7 @@ ccp = (char const *const *) p; ...@@ -4449,7 +4434,7 @@ ccp = (char const *const *) p;
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:4453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then if { (eval echo configure:4438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest* rm -rf conftest*
ac_cv_c_const=yes ac_cv_c_const=yes
else else
...@@ -4470,21 +4455,21 @@ EOF ...@@ -4470,21 +4455,21 @@ EOF
fi fi
echo $ac_n "checking for inline""... $ac_c" 1>&6 echo $ac_n "checking for inline""... $ac_c" 1>&6
echo "configure:4474: checking for inline" >&5 echo "configure:4459: checking for inline" >&5
if eval "test \"\${ac_cv_c_inline+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
ac_cv_c_inline=no ac_cv_c_inline=no
for ac_kw in inline __inline__ __inline; do for ac_kw in inline __inline__ __inline; do
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 4481 "configure" #line 4466 "configure"
#include "confdefs.h" #include "confdefs.h"
int main() { int main() {
} $ac_kw foo() { } $ac_kw foo() {
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:4488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then if { (eval echo configure:4473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest* rm -rf conftest*
ac_cv_c_inline=$ac_kw; break ac_cv_c_inline=$ac_kw; break
else else
...@@ -4512,16 +4497,16 @@ esac ...@@ -4512,16 +4497,16 @@ esac
works=no works=no
echo $ac_n "checking for working volatile""... $ac_c" 1>&6 echo $ac_n "checking for working volatile""... $ac_c" 1>&6
echo "configure:4516: checking for working volatile" >&5 echo "configure:4501: checking for working volatile" >&5
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 4518 "configure" #line 4503 "configure"
#include "confdefs.h" #include "confdefs.h"
int main() { int main() {
volatile int x; x = 0; volatile int x; x = 0;
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:4525: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then if { (eval echo configure:4510: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest* rm -rf conftest*
works=yes works=yes
else else
...@@ -4538,16 +4523,16 @@ echo "$ac_t""$works" 1>&6 ...@@ -4538,16 +4523,16 @@ echo "$ac_t""$works" 1>&6
works=no works=no
echo $ac_n "checking for working signed char""... $ac_c" 1>&6 echo $ac_n "checking for working signed char""... $ac_c" 1>&6
echo "configure:4542: checking for working signed char" >&5 echo "configure:4527: checking for working signed char" >&5
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 4544 "configure" #line 4529 "configure"
#include "confdefs.h" #include "confdefs.h"
int main() { int main() {
signed char c; signed char c;
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:4551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then if { (eval echo configure:4536: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest* rm -rf conftest*
works=yes works=yes
else else
...@@ -4564,16 +4549,16 @@ echo "$ac_t""$works" 1>&6 ...@@ -4564,16 +4549,16 @@ echo "$ac_t""$works" 1>&6
have_prototypes=no have_prototypes=no
echo $ac_n "checking for prototypes""... $ac_c" 1>&6 echo $ac_n "checking for prototypes""... $ac_c" 1>&6
echo "configure:4568: checking for prototypes" >&5 echo "configure:4553: checking for prototypes" >&5
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 4570 "configure" #line 4555 "configure"
#include "confdefs.h" #include "confdefs.h"
int foo(int x) { return 0; } int foo(int x) { return 0; }
int main() { int main() {
return foo(10); return foo(10);
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:4577: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then if { (eval echo configure:4562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest* rm -rf conftest*
cat >> confdefs.h <<\EOF cat >> confdefs.h <<\EOF
#define HAVE_PROTOTYPES 1 #define HAVE_PROTOTYPES 1
...@@ -4588,9 +4573,9 @@ echo "$ac_t""$have_prototypes" 1>&6 ...@@ -4588,9 +4573,9 @@ echo "$ac_t""$have_prototypes" 1>&6
works=no works=no
echo $ac_n "checking for variable length prototypes and stdarg.h""... $ac_c" 1>&6 echo $ac_n "checking for variable length prototypes and stdarg.h""... $ac_c" 1>&6
echo "configure:4592: checking for variable length prototypes and stdarg.h" >&5 echo "configure:4577: checking for variable length prototypes and stdarg.h" >&5
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 4594 "configure" #line 4579 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <stdarg.h> #include <stdarg.h>
...@@ -4607,7 +4592,7 @@ int main() { ...@@ -4607,7 +4592,7 @@ int main() {
return foo(10, "", 3.14); return foo(10, "", 3.14);
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:4611: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then if { (eval echo configure:4596: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest* rm -rf conftest*
cat >> confdefs.h <<\EOF cat >> confdefs.h <<\EOF
#define HAVE_STDARG_PROTOTYPES 1 #define HAVE_STDARG_PROTOTYPES 1
...@@ -4623,16 +4608,16 @@ echo "$ac_t""$works" 1>&6 ...@@ -4623,16 +4608,16 @@ echo "$ac_t""$works" 1>&6
if test "$have_prototypes" = yes; then if test "$have_prototypes" = yes; then
bad_prototypes=no bad_prototypes=no
echo $ac_n "checking for bad exec* prototypes""... $ac_c" 1>&6 echo $ac_n "checking for bad exec* prototypes""... $ac_c" 1>&6
echo "configure:4627: checking for bad exec* prototypes" >&5 echo "configure:4612: checking for bad exec* prototypes" >&5
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 4629 "configure" #line 4614 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <unistd.h> #include <unistd.h>
int main() { int main() {
char **t;execve("@",t,t); char **t;execve("@",t,t);
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:4636: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then if { (eval echo configure:4621: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
: :
else else
echo "configure: failed program was:" >&5 echo "configure: failed program was:" >&5
...@@ -4649,12 +4634,12 @@ fi ...@@ -4649,12 +4634,12 @@ fi
bad_forward=no bad_forward=no
echo $ac_n "checking for bad static forward""... $ac_c" 1>&6 echo $ac_n "checking for bad static forward""... $ac_c" 1>&6
echo "configure:4653: checking for bad static forward" >&5 echo "configure:4638: checking for bad static forward" >&5
if test "$cross_compiling" = yes; then if test "$cross_compiling" = yes; then
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 4658 "configure" #line 4643 "configure"
#include "confdefs.h" #include "confdefs.h"
struct s { int a; int b; }; struct s { int a; int b; };
...@@ -4670,7 +4655,7 @@ main() { ...@@ -4670,7 +4655,7 @@ main() {
} }
EOF EOF
if { (eval echo configure:4674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null if { (eval echo configure:4659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then then
: :
else else
...@@ -4689,9 +4674,9 @@ echo "$ac_t""$bad_forward" 1>&6 ...@@ -4689,9 +4674,9 @@ echo "$ac_t""$bad_forward" 1>&6
va_list_is_array=no va_list_is_array=no
echo $ac_n "checking whether va_list is an array""... $ac_c" 1>&6 echo $ac_n "checking whether va_list is an array""... $ac_c" 1>&6
echo "configure:4693: checking whether va_list is an array" >&5 echo "configure:4678: checking whether va_list is an array" >&5
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 4695 "configure" #line 4680 "configure"
#include "confdefs.h" #include "confdefs.h"
#ifdef HAVE_STDARG_PROTOTYPES #ifdef HAVE_STDARG_PROTOTYPES
...@@ -4704,7 +4689,7 @@ int main() { ...@@ -4704,7 +4689,7 @@ int main() {
va_list list1, list2; list1 = list2; va_list list1, list2; list1 = list2;
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:4708: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then if { (eval echo configure:4693: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
: :
else else
echo "configure: failed program was:" >&5 echo "configure: failed program was:" >&5
...@@ -4720,12 +4705,12 @@ echo "$ac_t""$va_list_is_array" 1>&6 ...@@ -4720,12 +4705,12 @@ echo "$ac_t""$va_list_is_array" 1>&6
# sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-( # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
echo $ac_n "checking for gethostbyname_r""... $ac_c" 1>&6 echo $ac_n "checking for gethostbyname_r""... $ac_c" 1>&6
echo "configure:4724: checking for gethostbyname_r" >&5 echo "configure:4709: checking for gethostbyname_r" >&5
if eval "test \"\${ac_cv_func_gethostbyname_r+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_func_gethostbyname_r'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 4729 "configure" #line 4714 "configure"
#include "confdefs.h" #include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes, /* System header to define __stub macros and hopefully few prototypes,
which can conflict with char gethostbyname_r(); below. */ which can conflict with char gethostbyname_r(); below. */
...@@ -4734,7 +4719,6 @@ else ...@@ -4734,7 +4719,6 @@ else
/* We use char because int might match the return type of a gcc2 /* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */ builtin and then its argument prototype would still apply. */
char gethostbyname_r(); char gethostbyname_r();
char (*f)();
int main() { int main() {
...@@ -4744,12 +4728,12 @@ int main() { ...@@ -4744,12 +4728,12 @@ int main() {
#if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r) #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
choke me choke me
#else #else
f = gethostbyname_r; gethostbyname_r();
#endif #endif
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:4753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then if { (eval echo configure:4737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest* rm -rf conftest*
eval "ac_cv_func_gethostbyname_r=yes" eval "ac_cv_func_gethostbyname_r=yes"
else else
...@@ -4769,11 +4753,11 @@ if eval "test \"`echo '$ac_cv_func_'gethostbyname_r`\" = yes"; then ...@@ -4769,11 +4753,11 @@ if eval "test \"`echo '$ac_cv_func_'gethostbyname_r`\" = yes"; then
EOF EOF
echo $ac_n "checking gethostbyname_r with 6 args""... $ac_c" 1>&6 echo $ac_n "checking gethostbyname_r with 6 args""... $ac_c" 1>&6
echo "configure:4773: checking gethostbyname_r with 6 args" >&5 echo "configure:4757: checking gethostbyname_r with 6 args" >&5
OLD_CFLAGS=$CFLAGS OLD_CFLAGS=$CFLAGS
CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 4777 "configure" #line 4761 "configure"
#include "confdefs.h" #include "confdefs.h"
# include <netdb.h> # include <netdb.h>
...@@ -4790,7 +4774,7 @@ int main() { ...@@ -4790,7 +4774,7 @@ int main() {
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:4794: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then if { (eval echo configure:4778: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest* rm -rf conftest*
cat >> confdefs.h <<\EOF cat >> confdefs.h <<\EOF
...@@ -4810,9 +4794,9 @@ else ...@@ -4810,9 +4794,9 @@ else
echo "$ac_t""no" 1>&6 echo "$ac_t""no" 1>&6
echo $ac_n "checking gethostbyname_r with 5 args""... $ac_c" 1>&6 echo $ac_n "checking gethostbyname_r with 5 args""... $ac_c" 1>&6
echo "configure:4814: checking gethostbyname_r with 5 args" >&5 echo "configure:4798: checking gethostbyname_r with 5 args" >&5
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 4816 "configure" #line 4800 "configure"
#include "confdefs.h" #include "confdefs.h"
# include <netdb.h> # include <netdb.h>
...@@ -4829,7 +4813,7 @@ int main() { ...@@ -4829,7 +4813,7 @@ int main() {
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:4833: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then if { (eval echo configure:4817: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest* rm -rf conftest*
cat >> confdefs.h <<\EOF cat >> confdefs.h <<\EOF
...@@ -4849,9 +4833,9 @@ else ...@@ -4849,9 +4833,9 @@ else
echo "$ac_t""no" 1>&6 echo "$ac_t""no" 1>&6
echo $ac_n "checking gethostbyname_r with 3 args""... $ac_c" 1>&6 echo $ac_n "checking gethostbyname_r with 3 args""... $ac_c" 1>&6
echo "configure:4853: checking gethostbyname_r with 3 args" >&5 echo "configure:4837: checking gethostbyname_r with 3 args" >&5
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 4855 "configure" #line 4839 "configure"
#include "confdefs.h" #include "confdefs.h"
# include <netdb.h> # include <netdb.h>
...@@ -4866,7 +4850,7 @@ int main() { ...@@ -4866,7 +4850,7 @@ int main() {
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:4870: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then if { (eval echo configure:4854: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest* rm -rf conftest*
cat >> confdefs.h <<\EOF cat >> confdefs.h <<\EOF
...@@ -4900,12 +4884,12 @@ else ...@@ -4900,12 +4884,12 @@ else
echo "$ac_t""no" 1>&6 echo "$ac_t""no" 1>&6
echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
echo "configure:4904: checking for gethostbyname" >&5 echo "configure:4888: checking for gethostbyname" >&5
if eval "test \"\${ac_cv_func_gethostbyname+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 4909 "configure" #line 4893 "configure"
#include "confdefs.h" #include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes, /* System header to define __stub macros and hopefully few prototypes,
which can conflict with char gethostbyname(); below. */ which can conflict with char gethostbyname(); below. */
...@@ -4914,7 +4898,6 @@ else ...@@ -4914,7 +4898,6 @@ else
/* We use char because int might match the return type of a gcc2 /* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */ builtin and then its argument prototype would still apply. */
char gethostbyname(); char gethostbyname();
char (*f)();
int main() { int main() {
...@@ -4924,12 +4907,12 @@ int main() { ...@@ -4924,12 +4907,12 @@ int main() {
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
choke me choke me
#else #else
f = gethostbyname; gethostbyname();
#endif #endif
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:4933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then if { (eval echo configure:4916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest* rm -rf conftest*
eval "ac_cv_func_gethostbyname=yes" eval "ac_cv_func_gethostbyname=yes"
else else
...@@ -4965,15 +4948,15 @@ fi ...@@ -4965,15 +4948,15 @@ fi
# Linux requires this for correct f.p. operations # Linux requires this for correct f.p. operations
echo $ac_n "checking for __fpu_control in -lieee""... $ac_c" 1>&6 echo $ac_n "checking for __fpu_control in -lieee""... $ac_c" 1>&6
echo "configure:4969: checking for __fpu_control in -lieee" >&5 echo "configure:4952: checking for __fpu_control in -lieee" >&5
ac_lib_var=`echo ieee'_'__fpu_control | sed 'y%./+-%__p_%'` ac_lib_var=`echo ieee'_'__fpu_control | sed 'y%./+-%__p_%'`
if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
ac_save_LIBS="$LIBS" ac_save_LIBS="$LIBS"
LIBS="-lieee $LIBS" LIBS="-lieee $LIBS"
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 4977 "configure" #line 4960 "configure"
#include "confdefs.h" #include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */ /* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2 /* We use char because int might match the return type of a gcc2
...@@ -4984,7 +4967,7 @@ int main() { ...@@ -4984,7 +4967,7 @@ int main() {
__fpu_control() __fpu_control()
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:4988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then if { (eval echo configure:4971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest* rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes" eval "ac_cv_lib_$ac_lib_var=yes"
else else
...@@ -5014,7 +4997,7 @@ fi ...@@ -5014,7 +4997,7 @@ fi
# Check for --with-fpectl # Check for --with-fpectl
echo $ac_n "checking for --with-fpectl""... $ac_c" 1>&6 echo $ac_n "checking for --with-fpectl""... $ac_c" 1>&6
echo "configure:5018: checking for --with-fpectl" >&5 echo "configure:5001: checking for --with-fpectl" >&5
# Check whether --with-fpectl or --without-fpectl was given. # Check whether --with-fpectl or --without-fpectl was given.
if test "${with_fpectl+set}" = set; then if test "${with_fpectl+set}" = set; then
withval="$with_fpectl" withval="$with_fpectl"
...@@ -5039,7 +5022,7 @@ BeOS) ;; ...@@ -5039,7 +5022,7 @@ BeOS) ;;
*) LIBM=-lm *) LIBM=-lm
esac esac
echo $ac_n "checking for --with-libm=STRING""... $ac_c" 1>&6 echo $ac_n "checking for --with-libm=STRING""... $ac_c" 1>&6
echo "configure:5043: checking for --with-libm=STRING" >&5 echo "configure:5026: checking for --with-libm=STRING" >&5
# Check whether --with-libm or --without-libm was given. # Check whether --with-libm or --without-libm was given.
if test "${with_libm+set}" = set; then if test "${with_libm+set}" = set; then
withval="$with_libm" withval="$with_libm"
...@@ -5060,7 +5043,7 @@ fi ...@@ -5060,7 +5043,7 @@ fi
# check for --with-libc=... # check for --with-libc=...
echo $ac_n "checking for --with-libc=STRING""... $ac_c" 1>&6 echo $ac_n "checking for --with-libc=STRING""... $ac_c" 1>&6
echo "configure:5064: checking for --with-libc=STRING" >&5 echo "configure:5047: checking for --with-libc=STRING" >&5
# Check whether --with-libc or --without-libc was given. # Check whether --with-libc or --without-libc was given.
if test "${with_libc+set}" = set; then if test "${with_libc+set}" = set; then
withval="$with_libc" withval="$with_libc"
...@@ -5084,12 +5067,12 @@ LIBS="$LIBS $LIBM" ...@@ -5084,12 +5067,12 @@ LIBS="$LIBS $LIBM"
for ac_func in hypot for ac_func in hypot
do do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:5088: checking for $ac_func" >&5 echo "configure:5071: checking for $ac_func" >&5
if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 5093 "configure" #line 5076 "configure"
#include "confdefs.h" #include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes, /* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */ which can conflict with char $ac_func(); below. */
...@@ -5098,7 +5081,6 @@ else ...@@ -5098,7 +5081,6 @@ else
/* We use char because int might match the return type of a gcc2 /* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */ builtin and then its argument prototype would still apply. */
char $ac_func(); char $ac_func();
char (*f)();
int main() { int main() {
...@@ -5108,12 +5090,12 @@ int main() { ...@@ -5108,12 +5090,12 @@ int main() {
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me choke me
#else #else
f = $ac_func; $ac_func();
#endif #endif
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:5117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then if { (eval echo configure:5099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest* rm -rf conftest*
eval "ac_cv_func_$ac_func=yes" eval "ac_cv_func_$ac_func=yes"
else else
...@@ -5140,12 +5122,12 @@ done ...@@ -5140,12 +5122,12 @@ done
for ac_func in hypot for ac_func in hypot
do do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:5144: checking for $ac_func" >&5 echo "configure:5126: checking for $ac_func" >&5
if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 5149 "configure" #line 5131 "configure"
#include "confdefs.h" #include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes, /* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */ which can conflict with char $ac_func(); below. */
...@@ -5154,7 +5136,6 @@ else ...@@ -5154,7 +5136,6 @@ else
/* We use char because int might match the return type of a gcc2 /* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */ builtin and then its argument prototype would still apply. */
char $ac_func(); char $ac_func();
char (*f)();
int main() { int main() {
...@@ -5164,12 +5145,12 @@ int main() { ...@@ -5164,12 +5145,12 @@ int main() {
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me choke me
#else #else
f = $ac_func; $ac_func();
#endif #endif
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:5173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then if { (eval echo configure:5154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest* rm -rf conftest*
eval "ac_cv_func_$ac_func=yes" eval "ac_cv_func_$ac_func=yes"
else else
...@@ -5203,12 +5184,12 @@ LIBS="$LIBS $LIBM" ...@@ -5203,12 +5184,12 @@ LIBS="$LIBS $LIBM"
for ac_func in rint for ac_func in rint
do do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:5207: checking for $ac_func" >&5 echo "configure:5188: checking for $ac_func" >&5
if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 5212 "configure" #line 5193 "configure"
#include "confdefs.h" #include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes, /* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */ which can conflict with char $ac_func(); below. */
...@@ -5217,7 +5198,6 @@ else ...@@ -5217,7 +5198,6 @@ else
/* We use char because int might match the return type of a gcc2 /* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */ builtin and then its argument prototype would still apply. */
char $ac_func(); char $ac_func();
char (*f)();
int main() { int main() {
...@@ -5227,12 +5207,12 @@ int main() { ...@@ -5227,12 +5207,12 @@ int main() {
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me choke me
#else #else
f = $ac_func; $ac_func();
#endif #endif
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:5236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then if { (eval echo configure:5216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest* rm -rf conftest*
eval "ac_cv_func_$ac_func=yes" eval "ac_cv_func_$ac_func=yes"
else else
...@@ -5260,15 +5240,15 @@ LIBS=$LIBS_SAVE ...@@ -5260,15 +5240,15 @@ LIBS=$LIBS_SAVE
# check for getopt # check for getopt
echo $ac_n "checking for genuine getopt""... $ac_c" 1>&6 echo $ac_n "checking for genuine getopt""... $ac_c" 1>&6
echo "configure:5264: checking for genuine getopt" >&5 echo "configure:5244: checking for genuine getopt" >&5
if eval "test \"\${ac_cv_func_getopt+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_func_getopt'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
if test "$cross_compiling" = yes; then if test "$cross_compiling" = yes; then
ac_cv_func_getopt=no ac_cv_func_getopt=no
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 5272 "configure" #line 5252 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <stdio.h> #include <stdio.h>
extern int optind, opterr, getopt(); extern int optind, opterr, getopt();
...@@ -5280,7 +5260,7 @@ int main() { ...@@ -5280,7 +5260,7 @@ int main() {
exit(0); exit(0);
} }
EOF EOF
if { (eval echo configure:5284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null if { (eval echo configure:5264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then then
ac_cv_func_getopt=yes ac_cv_func_getopt=yes
else else
...@@ -5298,15 +5278,15 @@ test $ac_cv_func_getopt = no && LIBOBJS="$LIBOBJS getopt.o" ...@@ -5298,15 +5278,15 @@ test $ac_cv_func_getopt = no && LIBOBJS="$LIBOBJS getopt.o"
# check whether malloc(0) returns NULL or not # check whether malloc(0) returns NULL or not
echo $ac_n "checking what malloc(0) returns""... $ac_c" 1>&6 echo $ac_n "checking what malloc(0) returns""... $ac_c" 1>&6
echo "configure:5302: checking what malloc(0) returns" >&5 echo "configure:5282: checking what malloc(0) returns" >&5
if eval "test \"\${ac_cv_malloc_zero+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_malloc_zero'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
if test "$cross_compiling" = yes; then if test "$cross_compiling" = yes; then
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 5310 "configure" #line 5290 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <stdio.h> #include <stdio.h>
#ifdef HAVE_STDLIB #ifdef HAVE_STDLIB
...@@ -5325,7 +5305,7 @@ main() { ...@@ -5325,7 +5305,7 @@ main() {
exit(0); exit(0);
} }
EOF EOF
if { (eval echo configure:5329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null if { (eval echo configure:5309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then then
ac_cv_malloc_zero=nonnull ac_cv_malloc_zero=nonnull
else else
...@@ -5351,17 +5331,17 @@ fi ...@@ -5351,17 +5331,17 @@ fi
# check for wchar.h # check for wchar.h
ac_safe=`echo "wchar.h" | sed 'y%./+-%__p_%'` ac_safe=`echo "wchar.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for wchar.h""... $ac_c" 1>&6 echo $ac_n "checking for wchar.h""... $ac_c" 1>&6
echo "configure:5355: checking for wchar.h" >&5 echo "configure:5335: checking for wchar.h" >&5
if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 5360 "configure" #line 5340 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <wchar.h> #include <wchar.h>
EOF EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:5365: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } { (eval echo configure:5345: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then if test -z "$ac_err"; then
rm -rf conftest* rm -rf conftest*
...@@ -5391,12 +5371,12 @@ fi ...@@ -5391,12 +5371,12 @@ fi
# check for usable wchar_t # check for usable wchar_t
usable_wchar_t="unkown" usable_wchar_t="unkown"
echo $ac_n "checking for usable wchar_t""... $ac_c" 1>&6 echo $ac_n "checking for usable wchar_t""... $ac_c" 1>&6
echo "configure:5395: checking for usable wchar_t" >&5 echo "configure:5375: checking for usable wchar_t" >&5
if test "$cross_compiling" = yes; then if test "$cross_compiling" = yes; then
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 5400 "configure" #line 5380 "configure"
#include "confdefs.h" #include "confdefs.h"
#include "wchar.h" #include "wchar.h"
...@@ -5410,7 +5390,7 @@ main() { ...@@ -5410,7 +5390,7 @@ main() {
} }
EOF EOF
if { (eval echo configure:5414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null if { (eval echo configure:5394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then then
cat >> confdefs.h <<\EOF cat >> confdefs.h <<\EOF
#define HAVE_USABLE_WCHAR_T 1 #define HAVE_USABLE_WCHAR_T 1
...@@ -5429,14 +5409,14 @@ echo "$ac_t""$usable_wchar_t" 1>&6 ...@@ -5429,14 +5409,14 @@ echo "$ac_t""$usable_wchar_t" 1>&6
# check for endianness # check for endianness
echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
echo "configure:5433: checking whether byte ordering is bigendian" >&5 echo "configure:5413: checking whether byte ordering is bigendian" >&5
if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
ac_cv_c_bigendian=unknown ac_cv_c_bigendian=unknown
# See if sys/param.h defines the BYTE_ORDER macro. # See if sys/param.h defines the BYTE_ORDER macro.
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 5440 "configure" #line 5420 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <sys/types.h> #include <sys/types.h>
#include <sys/param.h> #include <sys/param.h>
...@@ -5447,11 +5427,11 @@ int main() { ...@@ -5447,11 +5427,11 @@ int main() {
#endif #endif
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:5451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then if { (eval echo configure:5431: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest* rm -rf conftest*
# It does; now see whether it defined to BIG_ENDIAN or not. # It does; now see whether it defined to BIG_ENDIAN or not.
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 5455 "configure" #line 5435 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <sys/types.h> #include <sys/types.h>
#include <sys/param.h> #include <sys/param.h>
...@@ -5462,7 +5442,7 @@ int main() { ...@@ -5462,7 +5442,7 @@ int main() {
#endif #endif
; return 0; } ; return 0; }
EOF EOF
if { (eval echo configure:5466: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then if { (eval echo configure:5446: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest* rm -rf conftest*
ac_cv_c_bigendian=yes ac_cv_c_bigendian=yes
else else
...@@ -5482,7 +5462,7 @@ if test "$cross_compiling" = yes; then ...@@ -5482,7 +5462,7 @@ if test "$cross_compiling" = yes; then
{ echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 5486 "configure" #line 5466 "configure"
#include "confdefs.h" #include "confdefs.h"
main () { main () {
/* Are we little or big endian? From Harbison&Steele. */ /* Are we little or big endian? From Harbison&Steele. */
...@@ -5495,7 +5475,7 @@ main () { ...@@ -5495,7 +5475,7 @@ main () {
exit (u.c[sizeof (long) - 1] == 1); exit (u.c[sizeof (long) - 1] == 1);
} }
EOF EOF
if { (eval echo configure:5499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null if { (eval echo configure:5479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then then
ac_cv_c_bigendian=no ac_cv_c_bigendian=no
else else
...@@ -5521,7 +5501,7 @@ fi ...@@ -5521,7 +5501,7 @@ fi
# Check for --with-wctype-functions # Check for --with-wctype-functions
echo $ac_n "checking for --with-wctype-functions""... $ac_c" 1>&6 echo $ac_n "checking for --with-wctype-functions""... $ac_c" 1>&6
echo "configure:5525: checking for --with-wctype-functions" >&5 echo "configure:5505: checking for --with-wctype-functions" >&5
# Check whether --with-wctype-functions or --without-wctype-functions was given. # Check whether --with-wctype-functions or --without-wctype-functions was given.
if test "${with_wctype_functions+set}" = set; then if test "${with_wctype_functions+set}" = set; then
withval="$with_wctype_functions" withval="$with_wctype_functions"
...@@ -5546,12 +5526,12 @@ cat >> confdefs.h <<\EOF ...@@ -5546,12 +5526,12 @@ cat >> confdefs.h <<\EOF
#endif #endif
EOF EOF
echo $ac_n "checking for socklen_t""... $ac_c" 1>&6 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
echo "configure:5550: checking for socklen_t" >&5 echo "configure:5530: checking for socklen_t" >&5
if eval "test \"\${ac_cv_type_socklen_t+set}\" = set"; then if eval "test \"`echo '$''{'ac_cv_type_socklen_t'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 5555 "configure" #line 5535 "configure"
#include "confdefs.h" #include "confdefs.h"
#include <sys/types.h> #include <sys/types.h>
#if STDC_HEADERS #if STDC_HEADERS
...@@ -5562,19 +5542,17 @@ EOF ...@@ -5562,19 +5542,17 @@ EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
egrep "(^|[^a-zA-Z_0-9])socklen_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then egrep "(^|[^a-zA-Z_0-9])socklen_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
rm -rf conftest* rm -rf conftest*
eval "ac_cv_type_socklen_t=yes" ac_cv_type_socklen_t=yes
else else
rm -rf conftest* rm -rf conftest*
eval "ac_cv_type_socklen_t=no" ac_cv_type_socklen_t=no
fi fi
rm -f conftest* rm -f conftest*
fi fi
if eval "test \"`echo '$ac_cv_type_'socklen_t`\" = yes"; then echo "$ac_t""$ac_cv_type_socklen_t" 1>&6
echo "$ac_t""yes" 1>&6 if test $ac_cv_type_socklen_t = no; then
else cat >> confdefs.h <<\EOF
echo "$ac_t""no" 1>&6
cat >> confdefs.h <<EOF
#define socklen_t int #define socklen_t int
EOF EOF
...@@ -5672,7 +5650,7 @@ do ...@@ -5672,7 +5650,7 @@ do
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
-version | --version | --versio | --versi | --vers | --ver | --ve | --v) -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
echo "$CONFIG_STATUS generated by autoconf version 2.14.1" echo "$CONFIG_STATUS generated by autoconf version 2.13"
exit 0 ;; exit 0 ;;
-help | --help | --hel | --he | --h) -help | --help | --hel | --he | --h)
echo "\$ac_cs_usage"; exit 0 ;; echo "\$ac_cs_usage"; exit 0 ;;
...@@ -5970,5 +5948,5 @@ exit 0 ...@@ -5970,5 +5948,5 @@ exit 0
EOF EOF
chmod +x $CONFIG_STATUS chmod +x $CONFIG_STATUS
rm -fr confdefs* $ac_clean_files rm -fr confdefs* $ac_clean_files
test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
...@@ -13,7 +13,7 @@ if test -f /usr/lib/NextStep/software_version -o -f /System/Library/CoreServices ...@@ -13,7 +13,7 @@ if test -f /usr/lib/NextStep/software_version -o -f /System/Library/CoreServices
AC_MSG_CHECKING(for --with-next-archs) AC_MSG_CHECKING(for --with-next-archs)
AC_ARG_WITH(next-archs, AC_ARG_WITH(next-archs,
[--with-next-archs='arch1 arch2 ..' build MAB binary], [ [ --with-next-archs='arch1 arch2 ..' build MAB binary], [
if test -n "$withval"; then if test -n "$withval"; then
ac_arch_flags=`/usr/lib/arch_tool -archify_list $withval` ac_arch_flags=`/usr/lib/arch_tool -archify_list $withval`
# GCC does not currently support multi archs on the NeXT # GCC does not currently support multi archs on the NeXT
...@@ -33,9 +33,9 @@ if test -f /usr/lib/NextStep/software_version -o -f /System/Library/CoreServices ...@@ -33,9 +33,9 @@ if test -f /usr/lib/NextStep/software_version -o -f /System/Library/CoreServices
fi fi
AC_ARG_WITH(next-framework, AC_ARG_WITH(next-framework,
[--with-next-framework Build (OpenStep|Rhapsody|MacOS10) framework],,) [ --with-next-framework Build (OpenStep|Rhapsody|MacOSX) framework],,)
AC_ARG_WITH(dyld, AC_ARG_WITH(dyld,
[--with-dyld Use (OpenStep|Rhapsody|MacOS10) dynamic linker],,) [ --with-dyld Use (OpenStep|Rhapsody|MacOSX) dynamic linker],,)
# Set name for machine-dependent library files # Set name for machine-dependent library files
AC_SUBST(MACHDEP) AC_SUBST(MACHDEP)
...@@ -99,7 +99,7 @@ AC_MSG_RESULT($MACHDEP) ...@@ -99,7 +99,7 @@ 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, [ --without-gcc never use gcc], [
case $withval in case $withval in
no) CC=cc no) CC=cc
without_gcc=yes;; without_gcc=yes;;
...@@ -156,7 +156,7 @@ AC_SUBST(SET_CXX) ...@@ -156,7 +156,7 @@ AC_SUBST(SET_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, [ --with-cxx=<compiler> enable C++ support],[
case $withval in case $withval in
no) CXX= no) CXX=
with_cxx=no;; with_cxx=no;;
...@@ -612,26 +612,27 @@ AC_CHECK_LIB(net, socket, [LIBS="-lnet $LIBS"], [], $LIBS) # BeOS ...@@ -612,26 +612,27 @@ AC_CHECK_LIB(net, socket, [LIBS="-lnet $LIBS"], [], $LIBS) # BeOS
esac esac
AC_MSG_CHECKING(for --with-libs) AC_MSG_CHECKING(for --with-libs)
AC_ARG_WITH(libs, [--with-libs='lib1 ...' link against additional libs], [ AC_ARG_WITH(libs,
[ --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))
AC_MSG_CHECKING(for --with(out)-readline) AC_MSG_CHECKING(for --with(out)-readline)
AC_ARG_WITH(readline, AC_ARG_WITH(readline,
[--with(out)-readline obsolete, edit Modules/Setup instead], [ --with(out)-readline obsolete, edit Modules/Setup instead],
[AC_MSG_RESULT($withval) [AC_MSG_RESULT($withval)
AC_ERROR(--with(out)-readline is obsolete, edit Modules/Setup instead)], AC_ERROR(--with(out)-readline is obsolete, edit Modules/Setup instead)],
[AC_MSG_RESULT(not specified.)]) [AC_MSG_RESULT(not specified.)])
AC_SUBST(USE_THREAD_MODULE) AC_SUBST(USE_THREAD_MODULE)
USE_THREAD_MODULE="#" 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], [ --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";
...@@ -639,70 +640,78 @@ fi], ...@@ -639,70 +640,78 @@ fi],
AC_MSG_RESULT(no)) AC_MSG_RESULT(no))
AC_MSG_CHECKING(for --with-threads) AC_MSG_CHECKING(for --with-threads)
AC_ARG_WITH(threads, [--with-threads alias for --with-thread], AC_ARG_WITH(threads,
[AC_MSG_RESULT($withval) [ --with(out)-threads[=DIRECTORY] disable/enable thread support])
if test "${with_thread+set}" != set; then
with_thread="$withval";
fi],
AC_MSG_RESULT(no))
AC_MSG_CHECKING(for --with-thread) # --with-thread is deprecated, but check for it anyway
AC_ARG_WITH(thread, [--with-thread[=DIRECTORY] make interpreter thread-safe], [ AC_ARG_WITH(thread,,[with_threads=$with_thread])
USE_THREAD_MODULE=
AC_MSG_RESULT($withval) if test -z "$with_threads"
if test -d "$withval" then with_threads="yes"
then LDFLAGS="$LDFLAGS -L$withval" fi
AC_MSG_RESULT($with_threads)
if test "$with_threads" = "no"
then
USE_THREAD_MODULE="#"
else
if test -d "$with_threads"
then LDFLAGS="$LDFLAGS -L$with_threads"
fi
if test -d "$withval"
then LDFLAGS="$LDFLAGS -L$withval"
fi
AC_DEFINE(_REENTRANT)
AC_CHECK_HEADER(mach/cthreads.h, [AC_DEFINE(WITH_THREAD)
AC_DEFINE(C_THREADS)
LIBOBJS="$LIBOBJS thread.o"],[
AC_CHECK_LIB(pth, pth_init, [AC_DEFINE(WITH_THREAD)
AC_DEFINE(_GNU_PTH)
LIBS="-lpth $LIBS"
LIBOBJS="$LIBOBJS thread.o"],[
AC_CHECK_LIB(pthread, pthread_create, [AC_DEFINE(WITH_THREAD)
AC_DEFINE(_POSIX_THREADS)
LIBS="-lpthread $LIBS"
LIBOBJS="$LIBOBJS thread.o"],[
AC_CHECK_FUNC(pthread_detach, [AC_DEFINE(WITH_THREAD)
AC_DEFINE(_POSIX_THREADS)
LIBOBJS="$LIBOBJS thread.o"],[
AC_CHECK_HEADER(kernel/OS.h, [AC_DEFINE(WITH_THREAD)
AC_DEFINE(BEOS_THREADS)
LIBOBJS="$LIBOBJS thread.o"],[
AC_CHECK_LIB(pthreads, pthread_create, [AC_DEFINE(WITH_THREAD)
AC_DEFINE(_POSIX_THREADS)
LIBS="$LIBS -lpthreads"
LIBOBJS="$LIBOBJS thread.o"], [
AC_CHECK_LIB(c_r, pthread_create, [AC_DEFINE(WITH_THREAD)
AC_DEFINE(_POSIX_THREADS)
LIBS="$LIBS -lc_r"
LIBOBJS="$LIBOBJS thread.o"], [
AC_CHECK_LIB(thread, __d6_pthread_create, [AC_DEFINE(WITH_THREAD)
AC_DEFINE(_POSIX_THREADS)
LIBS="$LIBS -lthread"
LIBOBJS="$LIBOBJS thread.o"], [
AC_CHECK_LIB(cma, pthread_create, [AC_DEFINE(WITH_THREAD)
AC_DEFINE(_POSIX_THREADS)
LIBS="$LIBS -lcma"
LIBOBJS="$LIBOBJS thread.o"])
])])])])])])])])
AC_CHECK_LIB(mpc, usconfig, [AC_DEFINE(WITH_THREAD)
LIBS="$LIBS -lmpc"
LIBOBJS="$LIBOBJS thread.o"])
AC_CHECK_LIB(thread, thr_create, [AC_DEFINE(WITH_THREAD)
LIBS="$LIBS -lthread"
LIBOBJS="$LIBOBJS thread.o"])
fi fi
AC_DEFINE(_REENTRANT)
AC_CHECK_HEADER(mach/cthreads.h, [AC_DEFINE(WITH_THREAD)
AC_DEFINE(C_THREADS)
LIBOBJS="$LIBOBJS thread.o"],[
AC_CHECK_LIB(pth, pth_init, [AC_DEFINE(WITH_THREAD)
AC_DEFINE(_GNU_PTH)
LIBS="-lpth $LIBS"
LIBOBJS="$LIBOBJS thread.o"],[
AC_CHECK_LIB(pthread, pthread_create, [AC_DEFINE(WITH_THREAD)
AC_DEFINE(_POSIX_THREADS)
LIBS="-lpthread $LIBS"
LIBOBJS="$LIBOBJS thread.o"],[
AC_CHECK_FUNC(pthread_detach, [AC_DEFINE(WITH_THREAD)
AC_DEFINE(_POSIX_THREADS)
LIBOBJS="$LIBOBJS thread.o"],[
AC_CHECK_HEADER(kernel/OS.h, [AC_DEFINE(WITH_THREAD)
AC_DEFINE(BEOS_THREADS)
LIBOBJS="$LIBOBJS thread.o"],[
AC_CHECK_LIB(pthreads, pthread_create, [AC_DEFINE(WITH_THREAD)
AC_DEFINE(_POSIX_THREADS)
LIBS="$LIBS -lpthreads"
LIBOBJS="$LIBOBJS thread.o"], [
AC_CHECK_LIB(c_r, pthread_create, [AC_DEFINE(WITH_THREAD)
AC_DEFINE(_POSIX_THREADS)
LIBS="$LIBS -lc_r"
LIBOBJS="$LIBOBJS thread.o"], [
AC_CHECK_LIB(thread, __d6_pthread_create, [AC_DEFINE(WITH_THREAD)
AC_DEFINE(_POSIX_THREADS)
LIBS="$LIBS -lthread"
LIBOBJS="$LIBOBJS thread.o"], [
AC_CHECK_LIB(cma, pthread_create, [AC_DEFINE(WITH_THREAD)
AC_DEFINE(_POSIX_THREADS)
LIBS="$LIBS -lcma"
LIBOBJS="$LIBOBJS thread.o"])
])])])])])])])])
AC_CHECK_LIB(mpc, usconfig, [AC_DEFINE(WITH_THREAD)
LIBS="$LIBS -lmpc"
LIBOBJS="$LIBOBJS thread.o"])
AC_CHECK_LIB(thread, thr_create, [AC_DEFINE(WITH_THREAD)
LIBS="$LIBS -lthread"
LIBOBJS="$LIBOBJS thread.o"])
], AC_MSG_RESULT(no))
# -I${DLINCLDIR} is added to the compile rule for importdl.o # -I${DLINCLDIR} is added to the compile rule for importdl.o
AC_SUBST(DLINCLDIR) AC_SUBST(DLINCLDIR)
DLINCLDIR=/ DLINCLDIR=/
AC_MSG_CHECKING(for --with-sgi-dl) AC_MSG_CHECKING(for --with-sgi-dl)
AC_ARG_WITH(sgi-dl, [--with-sgi-dl=DIRECTORY IRIX 4 dynamic linking], [ AC_ARG_WITH(sgi-dl,
[ --with-sgi-dl=DIRECTORY IRIX 4 dynamic linking], [
AC_MSG_RESULT($withval) AC_MSG_RESULT($withval)
AC_DEFINE(WITH_SGI_DL) AC_DEFINE(WITH_SGI_DL)
DYNLOADFILE="dynload_dl.o" DYNLOADFILE="dynload_dl.o"
...@@ -715,7 +724,7 @@ DLINCLDIR=${dldir} ...@@ -715,7 +724,7 @@ 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, [ --with-dl-dld=DL_DIR,DLD_DIR GNU dynamic linking], [
AC_MSG_RESULT($withval) AC_MSG_RESULT($withval)
AC_DEFINE(WITH_DL_DLD) AC_DEFINE(WITH_DL_DLD)
DYNLOADFILE="dynload_dl.o" DYNLOADFILE="dynload_dl.o"
...@@ -958,7 +967,8 @@ AC_CHECK_LIB(ieee, __fpu_control) ...@@ -958,7 +967,8 @@ AC_CHECK_LIB(ieee, __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, [--with-fpectl enable SIGFPE catching], [ AC_ARG_WITH(fpectl,
[ --with-fpectl enable SIGFPE catching], [
if test "$withval" != no if test "$withval" != no
then AC_DEFINE(WANT_SIGFPE_HANDLER) AC_MSG_RESULT(yes) then AC_DEFINE(WANT_SIGFPE_HANDLER) AC_MSG_RESULT(yes)
else AC_MSG_RESULT(no) else AC_MSG_RESULT(no)
...@@ -973,7 +983,7 @@ BeOS) ;; ...@@ -973,7 +983,7 @@ 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, [ --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)
...@@ -987,7 +997,7 @@ fi], ...@@ -987,7 +997,7 @@ fi],
# 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, [ --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)
...@@ -1082,7 +1092,7 @@ AC_C_BIGENDIAN ...@@ -1082,7 +1092,7 @@ AC_C_BIGENDIAN
# 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], [ [ --with-wctype-functions use wctype.h functions], [
if test "$withval" != no if test "$withval" != no
then AC_DEFINE(WANT_WCTYPE_FUNCTIONS) AC_MSG_RESULT(yes) then AC_DEFINE(WANT_WCTYPE_FUNCTIONS) AC_MSG_RESULT(yes)
else AC_MSG_RESULT(no) else AC_MSG_RESULT(no)
......
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