2 # From configure.in Revision: 79354 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for python 3.1.
6 # Report bugs to <http://bugs.python.org/>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be more Bourne compatible
17 DUALCASE
=1; export DUALCASE
# for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in
27 *posix
*) set -o posix
;;
36 # Avoid depending upon Character Ranges.
37 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits
='0123456789'
41 as_cr_alnum
=$as_cr_Letters$as_cr_digits
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45 echo "#! /bin/sh" >conf$$.sh
46 echo "exit 0" >>conf$$.sh
48 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
56 # Support unset when possible.
57 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
65 # We need space, tab and new line, in precisely that order. Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
73 # Find who we are. Look in the path if we contain no directory separator.
75 *[\\/]* ) as_myself
=$0 ;;
76 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
80 test -z "$as_dir" && as_dir
=.
81 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x
; then
92 if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var
in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
111 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C
; export $as_var
114 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
118 # Required to use basename.
119 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
126 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
133 # Name of the executable.
134 as_me
=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
139 sed '/^.*\/\([^/][^/]*\)\/*$/{
157 if test "x$CONFIG_SHELL" = x
; then
158 if (eval ":") 2>/dev
/null
; then
164 if test $as_have_required = yes && (eval ":
174 as_func_ret_success () {
177 as_func_ret_failure () {
182 if as_func_success; then
186 echo as_func_success failed.
189 if as_func_failure; then
191 echo as_func_failure succeeded.
194 if as_func_ret_success; then
198 echo as_func_ret_success failed.
201 if as_func_ret_failure; then
203 echo as_func_ret_failure succeeded.
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
210 echo positional parameters were not saved.
213 test \$exitcode = 0) || { (exit 1); exit 1; }
218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev
/null
; then
224 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
225 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
228 test -z "$as_dir" && as_dir
=.
231 for as_base
in sh bash ksh sh5
; do
232 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
239 for as_shell
in $as_candidate_shells $SHELL; do
240 # Try only shells that exist, to save several forks.
241 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
242 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247 # is contrary to our usage. Disable this feature.
248 alias -g '${1+"$@"}'='"$@"'
251 case `(set -o) 2>/dev/null` in
252 *posix
*) set -o posix
;;
261 CONFIG_SHELL
=$as_shell
263 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
272 case `(set -o) 2>/dev/null` in
273 *posix
*) set -o posix
;;
289 as_func_ret_success
() {
292 as_func_ret_failure
() {
297 if as_func_success
; then
301 echo as_func_success failed.
304 if as_func_failure
; then
306 echo as_func_failure succeeded.
309 if as_func_ret_success
; then
313 echo as_func_ret_success failed.
316 if as_func_ret_failure
; then
318 echo as_func_ret_failure succeeded.
321 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
325 echo positional parameters were not saved.
328 test $exitcode = 0) ||
{ (exit 1); exit 1; }
333 test "x$as_lineno_1" != "x$as_lineno_2" &&
334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
345 if test "x$CONFIG_SHELL" != x
; then
346 for as_var
in BASH_ENV ENV
347 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
354 if test $as_have_required = no
; then
355 echo This
script requires a shell
more modern than all the
356 echo shells that I found on your system. Please
install a
357 echo modern shell
, or manually run the
script under such a
358 echo shell
if you
do have one.
359 { (exit 1); exit 1; }
369 (eval "as_func_return () {
378 as_func_ret_success () {
381 as_func_ret_failure () {
386 if as_func_success; then
390 echo as_func_success failed.
393 if as_func_failure; then
395 echo as_func_failure succeeded.
398 if as_func_ret_success; then
402 echo as_func_ret_success failed.
405 if as_func_ret_failure; then
407 echo as_func_ret_failure succeeded.
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
414 echo positional parameters were not saved.
417 test \$exitcode = 0") ||
{
418 echo No shell found that supports shell functions.
419 echo Please tell autoconf@gnu.org about your system
,
420 echo including any error possibly output before this
428 test "x$as_lineno_1" != "x$as_lineno_2" &&
429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432 # uniformly replaced by the line number. The first 'sed' inserts a
433 # line-number line after each line using $LINENO; the second 'sed'
434 # does the real work. The second script uses 'N' to pair each
435 # line-number line with the line containing $LINENO, and appends
436 # trailing '-' during substitution so that $LINENO is not a special
438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439 # scripts with optimization help from Paolo Bonzini. Blame Lee
440 # E. McMahon (1931-1989) for sed's syntax. :-)
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
456 chmod +x
"$as_me.lineno" ||
457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458 { (exit 1); exit 1; }; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
464 # Exit status is that of the last command.
469 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
475 ECHO_C
= ECHO_N
= ECHO_T
=
479 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
486 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
493 rm -f conf$$ conf$$.exe conf$$.
file
494 if test -d conf$$.dir
; then
495 rm -f conf$$.dir
/conf$$.
file
501 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
503 # ... but there are two gotchas:
504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506 # In both cases, we have to default to `cp -p'.
507 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
509 elif ln conf$$.
file conf$$
2>/dev
/null
; then
514 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
515 rmdir conf$$.dir
2>/dev
/null
517 if mkdir
-p .
2>/dev
/null
; then
520 test -d .
/-p && rmdir .
/-p
524 if test -x / >/dev
/null
2>&1; then
527 if ls -dL / >/dev
/null
2>&1; then
534 if test -d "$1"; then
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
545 as_executable_p
=$as_test_x
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 exec 7<&0 </dev
/null
6>&1
558 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559 # so uname gets run too.
560 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
565 ac_default_prefix
=/usr
/local
567 ac_config_libobj_dir
=.
573 SHELL
=${CONFIG_SHELL-/bin/sh}
575 # Identity of this package.
576 PACKAGE_NAME
='python'
577 PACKAGE_TARNAME
='python'
578 PACKAGE_VERSION
='3.1'
579 PACKAGE_STRING
='python 3.1'
580 PACKAGE_BUGREPORT
='http://bugs.python.org/'
582 ac_unique_file
="Include/object.h"
583 # Factoring default headers for most tests.
584 ac_includes_default
="\
586 #ifdef HAVE_SYS_TYPES_H
587 # include <sys/types.h>
589 #ifdef HAVE_SYS_STAT_H
590 # include <sys/stat.h>
596 # ifdef HAVE_STDLIB_H
601 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
606 #ifdef HAVE_STRINGS_H
607 # include <strings.h>
609 #ifdef HAVE_INTTYPES_H
610 # include <inttypes.h>
628 program_transform_name
664 PYTHONFRAMEWORKIDENTIFIER
666 PYTHONFRAMEWORKPREFIX
667 PYTHONFRAMEWORKINSTALLDIR
668 FRAMEWORKINSTALLFIRST
670 FRAMEWORKALTINSTALLFIRST
671 FRAMEWORKALTINSTALLLAST
672 FRAMEWORKUNIXTOOLSPREFIX
675 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
676 EXPORT_MACOSX_DEPLOYMENT_TARGET
729 HAVE_GETHOSTBYNAME_R_6_ARG
730 HAVE_GETHOSTBYNAME_R_5_ARG
731 HAVE_GETHOSTBYNAME_R_3_ARG
740 ac_precious_vars
='build_alias
751 # Initialize some variables set by options.
753 ac_init_version
=false
754 # The variables have the same names as the options, with
755 # dashes changed to underlines.
763 program_transform_name
=s
,x
,x
,
771 # Installation directory options.
772 # These are left unexpanded so users can "make install exec_prefix=/foo"
773 # and all the variables that are supposed to be based on exec_prefix
774 # by default will actually change.
775 # Use braces instead of parens because sh, perl, etc. also accept them.
776 # (The list follows the same order as the GNU Coding Standards.)
777 bindir
='${exec_prefix}/bin'
778 sbindir
='${exec_prefix}/sbin'
779 libexecdir
='${exec_prefix}/libexec'
780 datarootdir
='${prefix}/share'
781 datadir
='${datarootdir}'
782 sysconfdir
='${prefix}/etc'
783 sharedstatedir
='${prefix}/com'
784 localstatedir
='${prefix}/var'
785 includedir
='${prefix}/include'
786 oldincludedir
='/usr/include'
787 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
788 infodir
='${datarootdir}/info'
793 libdir
='${exec_prefix}/lib'
794 localedir
='${datarootdir}/locale'
795 mandir
='${datarootdir}/man'
801 # If the previous option needs an argument, assign it.
802 if test -n "$ac_prev"; then
803 eval $ac_prev=\
$ac_option
809 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
813 # Accept the important Cygnus configure options, so we can diagnose typos.
815 case $ac_dashdash$ac_option in
819 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
821 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
824 -build |
--build |
--buil |
--bui |
--bu)
825 ac_prev
=build_alias
;;
826 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
827 build_alias
=$ac_optarg ;;
829 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
830 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
831 ac_prev
=cache_file
;;
832 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
833 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
834 cache_file
=$ac_optarg ;;
837 cache_file
=config.cache
;;
839 -datadir |
--datadir |
--datadi |
--datad)
841 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
842 datadir
=$ac_optarg ;;
844 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
845 |
--dataroo |
--dataro |
--datar)
846 ac_prev
=datarootdir
;;
847 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
848 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
849 datarootdir
=$ac_optarg ;;
851 -disable-* |
--disable-*)
852 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
853 # Reject names that are not valid shell variable names.
854 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
855 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
856 { (exit 1); exit 1; }; }
857 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
858 eval enable_
$ac_feature=no
;;
860 -docdir |
--docdir |
--docdi |
--doc |
--do)
862 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
865 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
867 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
870 -enable-* |
--enable-*)
871 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
872 # Reject names that are not valid shell variable names.
873 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
874 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
875 { (exit 1); exit 1; }; }
876 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
877 eval enable_
$ac_feature=\
$ac_optarg ;;
879 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
880 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
881 |
--exec |
--exe |
--ex)
882 ac_prev
=exec_prefix
;;
883 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
884 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
885 |
--exec=* |
--exe=* |
--ex=*)
886 exec_prefix
=$ac_optarg ;;
888 -gas |
--gas |
--ga |
--g)
889 # Obsolete; use --with-gas.
892 -help |
--help |
--hel |
--he |
-h)
894 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
895 ac_init_help
=recursive
;;
896 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
897 ac_init_help
=short
;;
899 -host |
--host |
--hos |
--ho)
900 ac_prev
=host_alias
;;
901 -host=* |
--host=* |
--hos=* |
--ho=*)
902 host_alias
=$ac_optarg ;;
904 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
906 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
908 htmldir
=$ac_optarg ;;
910 -includedir |
--includedir |
--includedi |
--included |
--include \
911 |
--includ |
--inclu |
--incl |
--inc)
912 ac_prev
=includedir
;;
913 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
914 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
915 includedir
=$ac_optarg ;;
917 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
919 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
920 infodir
=$ac_optarg ;;
922 -libdir |
--libdir |
--libdi |
--libd)
924 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
927 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
928 |
--libexe |
--libex |
--libe)
929 ac_prev
=libexecdir
;;
930 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
931 |
--libexe=* |
--libex=* |
--libe=*)
932 libexecdir
=$ac_optarg ;;
934 -localedir |
--localedir |
--localedi |
--localed |
--locale)
936 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
937 localedir
=$ac_optarg ;;
939 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
940 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
941 ac_prev
=localstatedir
;;
942 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
943 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
944 localstatedir
=$ac_optarg ;;
946 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
948 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
952 # Obsolete; use --without-fp.
955 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
956 |
--no-cr |
--no-c |
-n)
959 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
960 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
963 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
964 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
965 |
--oldin |
--oldi |
--old |
--ol |
--o)
966 ac_prev
=oldincludedir
;;
967 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
968 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
969 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
970 oldincludedir
=$ac_optarg ;;
972 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
974 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
977 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
978 |
--program-pre |
--program-pr |
--program-p)
979 ac_prev
=program_prefix
;;
980 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
981 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
982 program_prefix
=$ac_optarg ;;
984 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
985 |
--program-suf |
--program-su |
--program-s)
986 ac_prev
=program_suffix
;;
987 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
988 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
989 program_suffix
=$ac_optarg ;;
991 -program-transform-name |
--program-transform-name \
992 |
--program-transform-nam |
--program-transform-na \
993 |
--program-transform-n |
--program-transform- \
994 |
--program-transform |
--program-transfor \
995 |
--program-transfo |
--program-transf \
996 |
--program-trans |
--program-tran \
997 |
--progr-tra |
--program-tr |
--program-t)
998 ac_prev
=program_transform_name
;;
999 -program-transform-name=* |
--program-transform-name=* \
1000 |
--program-transform-nam=* |
--program-transform-na=* \
1001 |
--program-transform-n=* |
--program-transform-=* \
1002 |
--program-transform=* |
--program-transfor=* \
1003 |
--program-transfo=* |
--program-transf=* \
1004 |
--program-trans=* |
--program-tran=* \
1005 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1006 program_transform_name
=$ac_optarg ;;
1008 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1010 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1011 pdfdir
=$ac_optarg ;;
1013 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1015 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1018 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1019 |
-silent |
--silent |
--silen |
--sile |
--sil)
1022 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1024 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1026 sbindir
=$ac_optarg ;;
1028 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1029 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1030 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1032 ac_prev
=sharedstatedir
;;
1033 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1034 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1035 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1037 sharedstatedir
=$ac_optarg ;;
1039 -site |
--site |
--sit)
1041 -site=* |
--site=* |
--sit=*)
1044 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1046 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1047 srcdir
=$ac_optarg ;;
1049 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1050 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1051 ac_prev
=sysconfdir
;;
1052 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1053 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1054 sysconfdir
=$ac_optarg ;;
1056 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1057 ac_prev
=target_alias
;;
1058 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1059 target_alias
=$ac_optarg ;;
1061 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1064 -version |
--version |
--versio |
--versi |
--vers |
-V)
1065 ac_init_version
=: ;;
1068 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1071 { echo "$as_me: error: invalid package name: $ac_package" >&2
1072 { (exit 1); exit 1; }; }
1073 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1074 eval with_
$ac_package=\
$ac_optarg ;;
1076 -without-* |
--without-*)
1077 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1080 { echo "$as_me: error: invalid package name: $ac_package" >&2
1081 { (exit 1); exit 1; }; }
1082 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1083 eval with_
$ac_package=no
;;
1086 # Obsolete; use --with-x.
1089 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1090 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1091 ac_prev
=x_includes
;;
1092 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1093 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1094 x_includes
=$ac_optarg ;;
1096 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1097 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1098 ac_prev
=x_libraries
;;
1099 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1100 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1101 x_libraries
=$ac_optarg ;;
1103 -*) { echo "$as_me: error: unrecognized option: $ac_option
1104 Try \`$0 --help' for more information." >&2
1105 { (exit 1); exit 1; }; }
1109 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1112 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1113 { (exit 1); exit 1; }; }
1114 eval $ac_envvar=\
$ac_optarg
1115 export $ac_envvar ;;
1118 # FIXME: should be removed in autoconf 3.0.
1119 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1120 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1121 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1122 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1128 if test -n "$ac_prev"; then
1129 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1130 { echo "$as_me: error: missing argument to $ac_option" >&2
1131 { (exit 1); exit 1; }; }
1134 # Be sure to have absolute directory names.
1135 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1136 datadir sysconfdir sharedstatedir localstatedir includedir \
1137 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1138 libdir localedir mandir
1140 eval ac_val
=\$
$ac_var
1142 [\\/$
]* | ?
:[\\/]* ) continue;;
1143 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1145 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1146 { (exit 1); exit 1; }; }
1149 # There might be people who depend on the old broken behavior: `$host'
1150 # used to hold the argument of --host etc.
1151 # FIXME: To remove some day.
1154 target
=$target_alias
1156 # FIXME: To remove some day.
1157 if test "x$host_alias" != x
; then
1158 if test "x$build_alias" = x
; then
1159 cross_compiling
=maybe
1160 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1161 If a cross compiler is detected then cross compile mode will be used." >&2
1162 elif test "x$build_alias" != "x$host_alias"; then
1168 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1170 test "$silent" = yes && exec 6>/dev
/null
1173 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1174 ac_ls_di
=`ls -di .` &&
1175 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1176 { echo "$as_me: error: Working directory cannot be determined" >&2
1177 { (exit 1); exit 1; }; }
1178 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1179 { echo "$as_me: error: pwd does not report name of working directory" >&2
1180 { (exit 1); exit 1; }; }
1183 # Find the source files, if location was not specified.
1184 if test -z "$srcdir"; then
1185 ac_srcdir_defaulted
=yes
1186 # Try the directory containing this script, then the parent directory.
1187 ac_confdir
=`$as_dirname -- "$0" ||
1188 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1189 X"$0" : 'X\(//\)[^/]' \| \
1190 X"$0" : 'X\(//\)$' \| \
1191 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1211 if test ! -r "$srcdir/$ac_unique_file"; then
1215 ac_srcdir_defaulted
=no
1217 if test ! -r "$srcdir/$ac_unique_file"; then
1218 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1219 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1220 { (exit 1); exit 1; }; }
1222 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1224 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1225 { (exit 1); exit 1; }; }
1227 # When building in place, set srcdir=.
1228 if test "$ac_abs_confdir" = "$ac_pwd"; then
1231 # Remove unnecessary trailing slashes from srcdir.
1232 # Double slashes in file names in object file debugging info
1233 # mess up M-x gdb in Emacs.
1235 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1237 for ac_var
in $ac_precious_vars; do
1238 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1239 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1240 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1241 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1245 # Report the --help message.
1247 if test "$ac_init_help" = "long"; then
1248 # Omit some internal or obsolete options to make the list less imposing.
1249 # This message is too long to be a string in the A/UX 3.1 sh.
1251 \`configure' configures python 3.1 to adapt to many kinds of systems.
1253 Usage: $0 [OPTION]... [VAR=VALUE]...
1255 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1256 VAR=VALUE. See below for descriptions of some of the useful variables.
1258 Defaults for the options are specified in brackets.
1261 -h, --help display this help and exit
1262 --help=short display options specific to this package
1263 --help=recursive display the short help of all the included packages
1264 -V, --version display version information and exit
1265 -q, --quiet, --silent do not print \`checking...' messages
1266 --cache-file=FILE cache test results in FILE [disabled]
1267 -C, --config-cache alias for \`--cache-file=config.cache'
1268 -n, --no-create do not create output files
1269 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1271 Installation directories:
1272 --prefix=PREFIX install architecture-independent files in PREFIX
1273 [$ac_default_prefix]
1274 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1277 By default, \`make install' will install all the files in
1278 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1279 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1280 for instance \`--prefix=\$HOME'.
1282 For better control, use the options below.
1284 Fine tuning of the installation directories:
1285 --bindir=DIR user executables [EPREFIX/bin]
1286 --sbindir=DIR system admin executables [EPREFIX/sbin]
1287 --libexecdir=DIR program executables [EPREFIX/libexec]
1288 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1289 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1290 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1291 --libdir=DIR object code libraries [EPREFIX/lib]
1292 --includedir=DIR C header files [PREFIX/include]
1293 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1294 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1295 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1296 --infodir=DIR info documentation [DATAROOTDIR/info]
1297 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1298 --mandir=DIR man documentation [DATAROOTDIR/man]
1299 --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1300 --htmldir=DIR html documentation [DOCDIR]
1301 --dvidir=DIR dvi documentation [DOCDIR]
1302 --pdfdir=DIR pdf documentation [DOCDIR]
1303 --psdir=DIR ps documentation [DOCDIR]
1310 if test -n "$ac_init_help"; then
1311 case $ac_init_help in
1312 short | recursive
) echo "Configuration of python 3.1:";;
1317 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1318 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1319 --enable-universalsdk[=SDKDIR
]
1320 Build against Mac OS X
10.4u SDK
(ppc
/i386
)
1321 --enable-framework[=INSTALLDIR
]
1322 Build
(MacOSX|Darwin
) framework
1323 --enable-shared disable
/enable building shared python library
1324 --enable-profiling enable C-level code profiling
1325 --enable-ipv6 Enable ipv6
(with ipv4
) support
1326 --disable-ipv6 Disable ipv6 support
1327 --enable-big-digits[=BITS
]
1328 use big digits
for Python longs
[BITS
=30]
1331 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1332 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1333 --with-universal-archs=ARCH
1334 select architectures
for universal build
("32-bit",
1335 "64-bit", "3-way", "intel" or
"all")
1336 --with-framework-name=FRAMEWORK
1337 specify an alternate name of the framework built
1338 with
--enable-framework
1339 --without-gcc never use gcc
1340 --with-cxx-main=<compiler
>
1341 compile main
() and link python executable with C
++
1343 --with-suffix=.exe
set executable suffix
1344 --with-pydebug build with Py_DEBUG defined
1345 --with-libs='lib1 ...' link against additional libs
1346 --with-system-ffi build _ctypes module using an installed ffi library
1347 --with-dbmliborder=db1
:db2
:...
1348 order to check db backends
for dbm. Valid value is a
1349 colon separated string with the backend names
1350 `ndbm', `gdbm
' and `bdb'.
1351 --with-signal-module disable
/enable signal module
1352 --with-dec-threads use DEC Alpha
/OSF1 thread-safe libraries
1353 --with(out
)-threads[=DIRECTORY
]
1354 disable
/enable thread support
1355 --with(out
)-thread[=DIRECTORY
]
1356 deprecated
; use
--with(out
)-threads
1357 --with-pth use GNU pth threading libraries
1358 --with(out
)-doc-strings disable
/enable documentation
strings
1359 --with(out
)-tsc enable
/disable timestamp counter profile
1360 --with(out
)-pymalloc disable
/enable specialized mallocs
1361 --with-wctype-functions use wctype.h functions
1362 --with-fpectl enable SIGFPE catching
1363 --with-libm=STRING math library
1364 --with-libc=STRING C library
1365 --with-wide-unicode Use
4-byte Unicode characters
(default is
2 bytes
)
1366 --with-computed-gotos Use computed gotos
/ threaded dispatch
in evaluation
1367 loop
(not available on all compilers
)
1369 Some influential environment variables
:
1370 CC C compiler
command
1371 CFLAGS C compiler flags
1372 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1373 nonstandard directory
<lib dir
>
1374 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1375 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1376 you have headers
in a nonstandard directory
<include dir
>
1379 Use these variables to override the choices made by
`configure' or to help
1380 it to find libraries and programs with nonstandard names/locations.
1382 Report bugs to <http://bugs.python.org/>.
1387 if test "$ac_init_help" = "recursive"; then
1388 # If there are subdirs, report their specific --help.
1389 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1390 test -d "$ac_dir" || continue
1394 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1396 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1397 # A ".." for each directory in $ac_dir_suffix.
1398 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1399 case $ac_top_builddir_sub in
1400 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1401 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1404 ac_abs_top_builddir=$ac_pwd
1405 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1406 # for backward compatibility:
1407 ac_top_builddir=$ac_top_build_prefix
1410 .) # We are building in place.
1412 ac_top_srcdir=$ac_top_builddir_sub
1413 ac_abs_top_srcdir=$ac_pwd ;;
1414 [\\/]* | ?:[\\/]* ) # Absolute name.
1415 ac_srcdir=$srcdir$ac_dir_suffix;
1416 ac_top_srcdir=$srcdir
1417 ac_abs_top_srcdir=$srcdir ;;
1419 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1420 ac_top_srcdir=$ac_top_build_prefix$srcdir
1421 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1423 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1425 cd "$ac_dir" || { ac_status=$?; continue; }
1426 # Check for guested configure.
1427 if test -f "$ac_srcdir/configure.gnu"; then
1429 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1430 elif test -f "$ac_srcdir/configure"; then
1432 $SHELL "$ac_srcdir/configure" --help=recursive
1434 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1436 cd "$ac_pwd" || { ac_status=$?; break; }
1440 test -n "$ac_init_help" && exit $ac_status
1441 if $ac_init_version; then
1443 python configure 3.1
1444 generated by GNU Autoconf 2.61
1446 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1447 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1448 This configure script is free software; the Free Software Foundation
1449 gives unlimited permission to copy, distribute and modify it.
1453 cat >config.log <<_ACEOF
1454 This file contains any messages produced by compilers while
1455 running configure, to aid debugging if configure makes a mistake.
1457 It was created by python $as_me 3.1, which was
1458 generated by GNU Autoconf 2.61. Invocation command line was
1470 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1471 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1472 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1473 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1474 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1476 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1477 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1479 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1480 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1481 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1482 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1483 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1484 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1485 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1493 test -z "$as_dir" && as_dir=.
1494 echo "PATH: $as_dir"
1510 # Keep a trace of the command line.
1511 # Strip out --no-create and --no-recursion so they do not pile up.
1512 # Strip out --silent because we don't want to record it for future runs.
1513 # Also quote any args containing shell meta-characters.
1514 # Make two passes to allow for proper duplicate-argument suppression.
1518 ac_must_keep_next=false
1524 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1525 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1526 | -silent | --silent | --silen | --sile | --sil)
1529 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1532 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1534 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1535 if test $ac_must_keep_next = true; then
1536 ac_must_keep_next=false # Got value, back to normal.
1539 *=* | --config-cache | -C | -disable-* | --disable-* \
1540 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1541 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1542 | -with-* | --with-* | -without-* | --without-* | --x)
1543 case "$ac_configure_args0 " in
1544 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1547 -* ) ac_must_keep_next=true ;;
1550 ac_configure_args="$ac_configure_args '$ac_arg'"
1555 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1556 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1558 # When interrupted or exit'd, cleanup temporary files, and complete
1559 # config.log. We remove comments because anyway the quotes in there
1560 # would cause problems or look ugly.
1561 # WARNING: Use '\'' to represent an apostrophe within the trap.
1562 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1563 trap 'exit_status=$?
1564 # Save into config.log some information that might help in debugging.
1569 ## ---------------- ##
1570 ## Cache variables. ##
1571 ## ---------------- ##
1574 # The following way of writing the cache mishandles newlines in values,
1576 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1577 eval ac_val=\$$ac_var
1581 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1582 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1585 _ | IFS | as_nl) ;; #(
1586 *) $as_unset $ac_var ;;
1591 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1592 *${as_nl}ac_space=\ *)
1594 "s/'\''/'\''\\\\'\'''\''/g;
1595 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1598 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1606 ## ----------------- ##
1607 ## Output variables. ##
1608 ## ----------------- ##
1611 for ac_var in $ac_subst_vars
1613 eval ac_val=\$$ac_var
1615 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1617 echo "$ac_var='\''$ac_val'\''"
1621 if test -n "$ac_subst_files"; then
1623 ## ------------------- ##
1624 ## File substitutions. ##
1625 ## ------------------- ##
1628 for ac_var in $ac_subst_files
1630 eval ac_val=\$$ac_var
1632 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1634 echo "$ac_var='\''$ac_val'\''"
1639 if test -s confdefs.h; then
1649 test "$ac_signal" != 0 &&
1650 echo "$as_me: caught signal $ac_signal"
1651 echo "$as_me: exit $exit_status"
1653 rm -f core *.core core.conftest.* &&
1654 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1657 for ac_signal in 1 2 13 15; do
1658 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1662 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1663 rm -f -r conftest* confdefs.h
1665 # Predefined preprocessor variables.
1667 cat >>confdefs.h <<_ACEOF
1668 #define PACKAGE_NAME "$PACKAGE_NAME"
1672 cat >>confdefs.h <<_ACEOF
1673 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1677 cat >>confdefs.h <<_ACEOF
1678 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1682 cat >>confdefs.h <<_ACEOF
1683 #define PACKAGE_STRING "$PACKAGE_STRING"
1687 cat >>confdefs.h <<_ACEOF
1688 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1692 # Let the site file select an alternate cache file if it wants to.
1693 # Prefer explicitly selected file to automatically selected ones.
1694 if test -n "$CONFIG_SITE"; then
1695 set x "$CONFIG_SITE"
1696 elif test "x$prefix" != xNONE; then
1697 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1699 set x "$ac_default_prefix/share/config.site" \
1700 "$ac_default_prefix/etc/config.site"
1705 if test -r "$ac_site_file"; then
1706 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1707 echo "$as_me: loading site script $ac_site_file" >&6;}
1708 sed 's/^/| /' "$ac_site_file" >&5
1713 if test -r "$cache_file"; then
1714 # Some versions of bash will fail to source /dev/null (special
1715 # files actually), so we avoid doing that.
1716 if test -f "$cache_file"; then
1717 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1718 echo "$as_me: loading cache $cache_file" >&6;}
1720 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1721 *) . "./$cache_file";;
1725 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1726 echo "$as_me: creating cache $cache_file" >&6;}
1730 # Check that the precious variables saved in the cache have kept the same
1732 ac_cache_corrupted=false
1733 for ac_var in $ac_precious_vars; do
1734 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1735 eval ac_new_set=\$ac_env_${ac_var}_set
1736 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1737 eval ac_new_val=\$ac_env_${ac_var}_value
1738 case $ac_old_set,$ac_new_set in
1740 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1741 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1742 ac_cache_corrupted=: ;;
1744 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1745 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1746 ac_cache_corrupted=: ;;
1749 if test "x$ac_old_val" != "x$ac_new_val"; then
1750 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1751 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1752 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1753 echo "$as_me: former value
: $ac_old_val" >&2;}
1754 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1755 echo "$as_me: current value
: $ac_new_val" >&2;}
1756 ac_cache_corrupted=:
1759 # Pass precious variables to config.status.
1760 if test "$ac_new_set" = set; then
1762 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1763 *) ac_arg=$ac_var=$ac_new_val ;;
1765 case " $ac_configure_args " in
1766 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1767 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1771 if $ac_cache_corrupted; then
1772 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1773 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1774 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1775 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1776 { (exit 1); exit 1; }; }
1804 ac_cpp='$CPP $CPPFLAGS'
1805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1811 ac_config_headers="$ac_config_headers pyconfig.h"
1815 if test "$prefix" != "/"; then
1816 prefix=`echo "$prefix" |
sed -e 's/\/$//g'`
1824 # We don't use PACKAGE_ variables, and they cause conflicts
1825 # with other autoconf-based packages that include Python.h
1826 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1828 mv confdefs.h.new confdefs.h
1836 # The later defininition of _XOPEN_SOURCE disables certain features
1837 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1839 cat >>confdefs.h <<\_ACEOF
1840 #define _GNU_SOURCE 1
1844 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1845 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1848 cat >>confdefs.h <<\_ACEOF
1849 #define _NETBSD_SOURCE 1
1853 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1854 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1857 cat >>confdefs.h <<\_ACEOF
1858 #define __BSD_VISIBLE 1
1862 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1863 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1865 cat >>confdefs.h <<\_ACEOF
1866 #define _BSD_TYPES 1
1870 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1871 # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
1874 cat >>confdefs.h <<\_ACEOF
1875 #define _DARWIN_C_SOURCE 1
1880 define_xopen_source=yes
1882 # Arguments passed to configure.
1884 CONFIG_ARGS="$ac_configure_args"
1886 { echo "$as_me:$LINENO: checking for --enable-universalsdk" >&5
1887 echo $ECHO_N "checking for --enable-universalsdk... $ECHO_C" >&6; }
1888 # Check whether --enable-universalsdk was given.
1889 if test "${enable_universalsdk+set}" = set; then
1890 enableval=$enable_universalsdk;
1893 enableval=/Developer/SDKs/MacOSX10.4u.sdk
1894 if test ! -d "${enableval}"
1903 enable_universalsdk=
1906 UNIVERSALSDK=$enableval
1907 if test ! -d "${UNIVERSALSDK}"
1909 { { echo "$as_me:$LINENO: error: --enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" >&5
1910 echo "$as_me: error: --enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" >&2;}
1911 { (exit 1); exit 1; }; }
1920 enable_universalsdk=
1924 if test -n "${UNIVERSALSDK}"
1926 { echo "$as_me:$LINENO: result: ${UNIVERSALSDK}" >&5
1927 echo "${ECHO_T}${UNIVERSALSDK}" >&6; }
1929 { echo "$as_me:$LINENO: result: no" >&5
1930 echo "${ECHO_T}no" >&6; }
1936 UNIVERSAL_ARCHS="32-bit"
1939 { echo "$as_me:$LINENO: checking for --with-universal-archs" >&5
1940 echo $ECHO_N "checking for --with-universal-archs... $ECHO_C" >&6; }
1942 # Check whether --with-universal-archs was given.
1943 if test "${with_universal_archs+set}" = set; then
1944 withval=$with_universal_archs;
1945 { echo "$as_me:$LINENO: result: $withval" >&5
1946 echo "${ECHO_T}$withval" >&6; }
1947 UNIVERSAL_ARCHS="$withval"
1951 { echo "$as_me:$LINENO: result: 32-bit" >&5
1952 echo "${ECHO_T}32-bit" >&6; }
1960 # Check whether --with-framework-name was given.
1961 if test "${with_framework_name+set}" = set; then
1962 withval=$with_framework_name;
1963 PYTHONFRAMEWORK=${withval}
1964 PYTHONFRAMEWORKDIR=${withval}.framework
1965 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval |
tr 'A-Z' 'a-z'`
1969 PYTHONFRAMEWORK=Python
1970 PYTHONFRAMEWORKDIR=Python.framework
1971 PYTHONFRAMEWORKIDENTIFIER=org.python.python
1975 # Check whether --enable-framework was given.
1976 if test "${enable_framework+set}" = set; then
1977 enableval=$enable_framework;
1980 enableval=/Library/Frameworks
1985 PYTHONFRAMEWORKDIR=no-framework
1986 PYTHONFRAMEWORKPREFIX=
1987 PYTHONFRAMEWORKINSTALLDIR=
1988 FRAMEWORKINSTALLFIRST=
1989 FRAMEWORKINSTALLLAST=
1990 FRAMEWORKALTINSTALLFIRST=
1991 FRAMEWORKALTINSTALLLAST=
1992 if test "x${prefix}" = "xNONE"; then
1993 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1995 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2000 PYTHONFRAMEWORKPREFIX=$enableval
2001 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
2002 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
2003 FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure "
2004 case "${UNIVERSAL_ARCHS}" in
2006 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkinstallunixtools4way"
2007 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkaltinstallunixtools4way"
2010 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
2011 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
2015 if test "x${prefix}" = "xNONE" ; then
2016 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2018 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2020 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
2022 # Add files for Mac specific code to the list of output
2024 ac_config_files="$ac_config_files Mac/Makefile"
2026 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
2028 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
2030 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
2037 PYTHONFRAMEWORKDIR=no-framework
2038 PYTHONFRAMEWORKPREFIX=
2039 PYTHONFRAMEWORKINSTALLDIR=
2040 FRAMEWORKINSTALLFIRST=
2041 FRAMEWORKINSTALLLAST=
2042 FRAMEWORKALTINSTALLFIRST=
2043 FRAMEWORKALTINSTALLLAST=
2044 if test "x${prefix}" = "xNONE" ; then
2045 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2047 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2051 if test "$UNIVERSAL_ARCHS" = "all"
2053 FRAMEWORKINSTALLLAST=update4wayuniversal
2054 FRAMEWORKALTINSTALLLAST=update4wayuniversal
2071 ## AC_HELP_STRING(--with-dyld,
2072 ## Use (OpenStep|Rhapsody) dynamic linker))
2074 # Set name for machine-dependent library files
2076 { echo "$as_me:$LINENO: checking MACHDEP" >&5
2077 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; }
2078 if test -z "$MACHDEP"
2080 ac_sys_system=`uname
-s`
2081 if test "$ac_sys_system" = "AIX" \
2082 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
2083 ac_sys_release=`uname
-v`
2085 ac_sys_release=`uname
-r`
2087 ac_md_system=`echo $ac_sys_system |
2088 tr -d '/ ' |
tr '[A-Z]' '[a-z]'`
2089 ac_md_release=`echo $ac_sys_release |
2090 tr -d '/ ' |
sed 's/^[A-Z]\.//' |
sed 's/\..*//'`
2091 MACHDEP="$ac_md_system$ac_md_release"
2094 cygwin*) MACHDEP="cygwin";;
2095 darwin*) MACHDEP="darwin";;
2096 atheos*) MACHDEP="atheos";;
2097 irix646) MACHDEP="irix6";;
2098 '') MACHDEP="unknown";;
2102 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
2103 # disable features if it is defined, without any means to access these
2104 # features as extensions. For these systems, we skip the definition of
2105 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
2106 # some feature, make sure there is no alternative way to access this
2107 # feature. Also, when using wildcards, make sure you have verified the
2108 # need for not defining _XOPEN_SOURCE on all systems matching the
2109 # wildcard, and that the wildcard does not include future systems
2110 # (which may remove their limitations).
2111 case $ac_sys_system/$ac_sys_release in
2112 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
2113 # even though select is a POSIX function. Reported by J. Ribbens.
2114 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
2115 # In addition, Stefan Krah confirms that issue #1244610 exists through
2116 # OpenBSD 4.6, but is fixed in 4.7.
2117 OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123456])
2118 define_xopen_source=no
2119 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2120 # also defined. This can be overridden by defining _BSD_SOURCE
2121 # As this has a different meaning on Linux, only define it on OpenBSD
2123 cat >>confdefs.h <<\_ACEOF
2124 #define _BSD_SOURCE 1
2129 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2130 # also defined. This can be overridden by defining _BSD_SOURCE
2131 # As this has a different meaning on Linux, only define it on OpenBSD
2133 cat >>confdefs.h <<\_ACEOF
2134 #define _BSD_SOURCE 1
2138 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
2139 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
2141 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
2142 define_xopen_source=no;;
2143 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
2144 # of union __?sigval. Reported by Stuart Bishop.
2146 define_xopen_source=no;;
2147 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
2148 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
2149 # Reconfirmed for 7.1.4 by Martin v. Loewis.
2150 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
2151 define_xopen_source=no;;
2152 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
2153 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
2155 define_xopen_source=no;;
2156 # On FreeBSD 4, the math functions C89 does not cover are never defined
2157 # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them.
2159 define_xopen_source=no;;
2160 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
2161 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
2162 # identifies itself as Darwin/7.*
2163 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2164 # disables platform specific features beyond repair.
2165 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2166 # has no effect, don't bother defining them
2168 define_xopen_source=no;;
2170 define_xopen_source=no;;
2171 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
2172 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
2173 # or has another value. By not (re)defining it, the defaults come in place.
2175 define_xopen_source=no;;
2177 if test `uname
-r` -eq 1; then
2178 define_xopen_source=no
2181 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
2182 # defining NI_NUMERICHOST.
2184 define_xopen_source=no
2189 if test $define_xopen_source = yes
2191 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
2192 # defined precisely as g++ defines it
2193 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
2195 case $ac_sys_system/$ac_sys_release in
2196 SunOS/5.8|SunOS/5.9|SunOS/5.10)
2198 cat >>confdefs.h <<\_ACEOF
2199 #define _XOPEN_SOURCE 500
2205 cat >>confdefs.h <<\_ACEOF
2206 #define _XOPEN_SOURCE 600
2212 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
2213 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
2214 # several APIs are not declared. Since this is also needed in some
2215 # cases for HP-UX, we define it globally.
2216 # except for Solaris 10, where it must not be defined,
2217 # as it implies XPG4.2
2218 case $ac_sys_system/$ac_sys_release in
2223 cat >>confdefs.h <<\_ACEOF
2224 #define _XOPEN_SOURCE_EXTENDED 1
2231 cat >>confdefs.h <<\_ACEOF
2232 #define _POSIX_C_SOURCE 200112L
2239 # SGI compilers allow the specification of the both the ABI and the
2240 # ISA on the command line. Depending on the values of these switches,
2241 # different and often incompatable code will be generated.
2243 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
2244 # thus supply support for various ABI/ISA combinations. The MACHDEP
2245 # variable is also adjusted.
2248 if test ! -z "$SGI_ABI"
2251 LDFLAGS="$SGI_ABI $LDFLAGS"
2252 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" |
sed 's/ *//g'`
2254 { echo "$as_me:$LINENO: result: $MACHDEP" >&5
2255 echo "${ECHO_T}$MACHDEP" >&6; }
2257 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
2258 # it may influence the way we can build extensions, so distutils
2262 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
2263 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
2265 { echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5
2266 echo $ECHO_N "checking machine type as reported by uname -m... $ECHO_C" >&6; }
2267 ac_sys_machine=`uname
-m`
2268 { echo "$as_me:$LINENO: result: $ac_sys_machine" >&5
2269 echo "${ECHO_T}$ac_sys_machine" >&6; }
2271 # checks for alternative programs
2273 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
2274 # for debug/optimization stuff. BASECFLAGS is for flags that are required
2275 # just to get things to compile and link. Users are free to override OPT
2276 # when running configure or make. The build should not break if they do.
2277 # BASECFLAGS should generally not be messed with, however.
2279 # XXX shouldn't some/most/all of this code be merged with the stuff later
2280 # on that fiddles with OPT and BASECFLAGS?
2281 { echo "$as_me:$LINENO: checking for --without-gcc" >&5
2282 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; }
2284 # Check whether --with-gcc was given.
2285 if test "${with_gcc+set}" = set; then
2293 without_gcc=$withval;;
2297 case $ac_sys_system in
2304 { echo "$as_me:$LINENO: result: $without_gcc" >&5
2305 echo "${ECHO_T}$without_gcc" >&6; }
2307 # If the user switches compilers, we can't believe the cache
2308 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
2310 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
2311 (it is also a good idea to do 'make clean' before compiling)" >&5
2312 echo "$as_me: error: cached CC is different -- throw away $cache_file
2313 (it is also a good idea to do 'make clean' before compiling)" >&2;}
2314 { (exit 1); exit 1; }; }
2318 ac_cpp='$CPP $CPPFLAGS'
2319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2322 if test -n "$ac_tool_prefix"; then
2323 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2324 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2327 if test "${ac_cv_prog_CC+set}" = set; then
2328 echo $ECHO_N "(cached) $ECHO_C" >&6
2330 if test -n "$CC"; then
2331 ac_cv_prog_CC="$CC" # Let the user override the test.
2333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2337 test -z "$as_dir" && as_dir=.
2338 for ac_exec_ext in '' $ac_executable_extensions; do
2339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2340 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2351 if test -n "$CC"; then
2352 { echo "$as_me:$LINENO: result: $CC" >&5
2353 echo "${ECHO_T}$CC" >&6; }
2355 { echo "$as_me:$LINENO: result: no" >&5
2356 echo "${ECHO_T}no" >&6; }
2361 if test -z "$ac_cv_prog_CC"; then
2363 # Extract the first word of "gcc", so it can be a program name with args.
2364 set dummy gcc; ac_word=$2
2365 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2367 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2368 echo $ECHO_N "(cached) $ECHO_C" >&6
2370 if test -n "$ac_ct_CC"; then
2371 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2377 test -z "$as_dir" && as_dir=.
2378 for ac_exec_ext in '' $ac_executable_extensions; do
2379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2380 ac_cv_prog_ac_ct_CC="gcc"
2381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2390 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2391 if test -n "$ac_ct_CC"; then
2392 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2393 echo "${ECHO_T}$ac_ct_CC" >&6; }
2395 { echo "$as_me:$LINENO: result: no" >&5
2396 echo "${ECHO_T}no" >&6; }
2399 if test "x$ac_ct_CC" = x; then
2402 case $cross_compiling:$ac_tool_warned in
2404 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2405 whose name does not start with the host triplet. If you think this
2406 configuration is useful to you, please write to autoconf@gnu.org." >&5
2407 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2408 whose name does not start with the host triplet. If you think this
2409 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2410 ac_tool_warned=yes ;;
2418 if test -z "$CC"; then
2419 if test -n "$ac_tool_prefix"; then
2420 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2421 set dummy ${ac_tool_prefix}cc; ac_word=$2
2422 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2424 if test "${ac_cv_prog_CC+set}" = set; then
2425 echo $ECHO_N "(cached) $ECHO_C" >&6
2427 if test -n "$CC"; then
2428 ac_cv_prog_CC="$CC" # Let the user override the test.
2430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2434 test -z "$as_dir" && as_dir=.
2435 for ac_exec_ext in '' $ac_executable_extensions; do
2436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2437 ac_cv_prog_CC="${ac_tool_prefix}cc"
2438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2448 if test -n "$CC"; then
2449 { echo "$as_me:$LINENO: result: $CC" >&5
2450 echo "${ECHO_T}$CC" >&6; }
2452 { echo "$as_me:$LINENO: result: no" >&5
2453 echo "${ECHO_T}no" >&6; }
2459 if test -z "$CC"; then
2460 # Extract the first word of "cc", so it can be a program name with args.
2461 set dummy cc; ac_word=$2
2462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2464 if test "${ac_cv_prog_CC+set}" = set; then
2465 echo $ECHO_N "(cached) $ECHO_C" >&6
2467 if test -n "$CC"; then
2468 ac_cv_prog_CC="$CC" # Let the user override the test.
2471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2475 test -z "$as_dir" && as_dir=.
2476 for ac_exec_ext in '' $ac_executable_extensions; do
2477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2478 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2479 ac_prog_rejected=yes
2483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2490 if test $ac_prog_rejected = yes; then
2491 # We found a bogon in the path, so make sure we never use it.
2492 set dummy $ac_cv_prog_CC
2494 if test $# != 0; then
2495 # We chose a different compiler from the bogus one.
2496 # However, it has the same basename, so the bogon will be chosen
2497 # first if we set CC to just the basename; use the full file name.
2499 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2505 if test -n "$CC"; then
2506 { echo "$as_me:$LINENO: result: $CC" >&5
2507 echo "${ECHO_T}$CC" >&6; }
2509 { echo "$as_me:$LINENO: result: no" >&5
2510 echo "${ECHO_T}no" >&6; }
2515 if test -z "$CC"; then
2516 if test -n "$ac_tool_prefix"; then
2517 for ac_prog in cl.exe
2519 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2520 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2521 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2523 if test "${ac_cv_prog_CC+set}" = set; then
2524 echo $ECHO_N "(cached) $ECHO_C" >&6
2526 if test -n "$CC"; then
2527 ac_cv_prog_CC="$CC" # Let the user override the test.
2529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2533 test -z "$as_dir" && as_dir=.
2534 for ac_exec_ext in '' $ac_executable_extensions; do
2535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2536 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2547 if test -n "$CC"; then
2548 { echo "$as_me:$LINENO: result: $CC" >&5
2549 echo "${ECHO_T}$CC" >&6; }
2551 { echo "$as_me:$LINENO: result: no" >&5
2552 echo "${ECHO_T}no" >&6; }
2556 test -n "$CC" && break
2559 if test -z "$CC"; then
2561 for ac_prog in cl.exe
2563 # Extract the first word of "$ac_prog", so it can be a program name with args.
2564 set dummy $ac_prog; ac_word=$2
2565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2567 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2568 echo $ECHO_N "(cached) $ECHO_C" >&6
2570 if test -n "$ac_ct_CC"; then
2571 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2577 test -z "$as_dir" && as_dir=.
2578 for ac_exec_ext in '' $ac_executable_extensions; do
2579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2580 ac_cv_prog_ac_ct_CC="$ac_prog"
2581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2590 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2591 if test -n "$ac_ct_CC"; then
2592 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2593 echo "${ECHO_T}$ac_ct_CC" >&6; }
2595 { echo "$as_me:$LINENO: result: no" >&5
2596 echo "${ECHO_T}no" >&6; }
2600 test -n "$ac_ct_CC" && break
2603 if test "x$ac_ct_CC" = x; then
2606 case $cross_compiling:$ac_tool_warned in
2608 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2609 whose name does not start with the host triplet. If you think this
2610 configuration is useful to you, please write to autoconf@gnu.org." >&5
2611 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2612 whose name does not start with the host triplet. If you think this
2613 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2614 ac_tool_warned=yes ;;
2623 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2624 See \`config.log
' for more details." >&5
2625 echo "$as_me: error: no acceptable C compiler found in \$PATH
2626 See \`config.log' for more details.
" >&2;}
2627 { (exit 1); exit 1; }; }
2629 # Provide some information about the compiler.
2630 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2631 ac_compiler=`set X $ac_compile; echo $2`
2632 { (ac_try="$ac_compiler --version >&5"
2634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2635 *) ac_try_echo=$ac_try;;
2637 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2638 (eval "$ac_compiler --version >&5") 2>&5
2640 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2641 (exit $ac_status); }
2642 { (ac_try="$ac_compiler -v >&5"
2644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2645 *) ac_try_echo=$ac_try;;
2647 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2648 (eval "$ac_compiler -v >&5") 2>&5
2650 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2651 (exit $ac_status); }
2652 { (ac_try="$ac_compiler -V >&5"
2654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2655 *) ac_try_echo=$ac_try;;
2657 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2658 (eval "$ac_compiler -V >&5") 2>&5
2660 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2661 (exit $ac_status); }
2663 cat >conftest.$ac_ext <<_ACEOF
2666 cat confdefs.h >>conftest.$ac_ext
2667 cat >>conftest.$ac_ext <<_ACEOF
2668 /* end confdefs.h. */
2678 ac_clean_files_save=$ac_clean_files
2679 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2680 # Try to create an executable without -o first, disregard a.out.
2681 # It will help us diagnose broken compilers, and finding out an intuition
2683 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2684 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2685 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2687 # List of possible output files, starting from the most likely.
2688 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2689 # only as a last resort. b.out is created by i960 compilers.
2690 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2692 # The IRIX 6 linker writes into existing files which may not be
2693 # executable, retaining their permissions. Remove them first so a
2694 # subsequent execution test works.
2696 for ac_file in $ac_files
2699 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2700 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2705 if { (ac_try="$ac_link_default"
2707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2708 *) ac_try_echo=$ac_try;;
2710 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2711 (eval "$ac_link_default") 2>&5
2713 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2714 (exit $ac_status); }; then
2715 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2716 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2717 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2718 # so that the user can short-circuit this test for compilers unknown to
2720 for ac_file in $ac_files ''
2722 test -f "$ac_file" || continue
2724 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2727 # We found the default executable, but exeext='' is most
2731 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2733 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2735 # We set ac_cv_exeext here because the later test for it is not
2736 # safe: cross compilers may not add the suffix if given an `-o'
2737 # argument, so we may need to know it at that point already.
2738 # Even if this section looks crufty: it has the advantage of
2745 test "$ac_cv_exeext" = no && ac_cv_exeext=
2751 { echo "$as_me:$LINENO: result
: $ac_file" >&5
2752 echo "${ECHO_T}$ac_file" >&6; }
2753 if test -z "$ac_file"; then
2754 echo "$as_me: failed program was
:" >&5
2755 sed 's/^/| /' conftest.$ac_ext >&5
2757 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2758 See \
`config.log' for more details." >&5
2759 echo "$as_me: error: C compiler cannot create executables
2760 See \`config.log
' for more details." >&2;}
2761 { (exit 77); exit 77; }; }
2764 ac_exeext=$ac_cv_exeext
2766 # Check that the compiler produces executables we can run. If not, either
2767 # the compiler is broken, or we cross compile.
2768 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2769 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2770 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2771 # If not cross compiling, check that we can run a simple program.
2772 if test "$cross_compiling" != yes; then
2773 if { ac_try='.
/$ac_file'
2774 { (case "(($ac_try" in
2775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2776 *) ac_try_echo=$ac_try;;
2778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2779 (eval "$ac_try") 2>&5
2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); }; }; then
2785 if test "$cross_compiling" = maybe; then
2788 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2789 If you meant to cross compile, use \`--host'.
2790 See \
`config.log' for more details." >&5
2791 echo "$as_me: error: cannot run C compiled programs.
2792 If you meant to cross compile, use \`--host'.
2793 See \`config.log' for more details.
" >&2;}
2794 { (exit 1); exit 1; }; }
2798 { echo "$as_me:$LINENO: result
: yes" >&5
2799 echo "${ECHO_T}yes" >&6; }
2801 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2802 ac_clean_files=$ac_clean_files_save
2803 # Check that the compiler produces executables we can run. If not, either
2804 # the compiler is broken, or we cross compile.
2805 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2806 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2807 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2808 echo "${ECHO_T}$cross_compiling" >&6; }
2810 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2811 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2812 if { (ac_try="$ac_link"
2814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2815 *) ac_try_echo=$ac_try;;
2817 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2818 (eval "$ac_link") 2>&5
2820 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2821 (exit $ac_status); }; then
2822 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2823 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2824 # work properly (i.e., refer to `conftest.exe'), while it won't with
2826 for ac_file in conftest.exe conftest conftest.*; do
2827 test -f "$ac_file" || continue
2829 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2830 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2836 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2837 See \
`config.log' for more details." >&5
2838 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2839 See \`config.log
' for more details." >&2;}
2840 { (exit 1); exit 1; }; }
2843 rm -f conftest$ac_cv_exeext
2844 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2845 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2847 rm -f conftest.$ac_ext
2848 EXEEXT=$ac_cv_exeext
2850 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2851 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2852 if test "${ac_cv_objext+set}" = set; then
2853 echo $ECHO_N "(cached) $ECHO_C" >&6
2855 cat >conftest.$ac_ext <<_ACEOF
2858 cat confdefs.h >>conftest.$ac_ext
2859 cat >>conftest.$ac_ext <<_ACEOF
2860 /* end confdefs.h. */
2870 rm -f conftest.o conftest.obj
2871 if { (ac_try="$ac_compile"
2873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2874 *) ac_try_echo=$ac_try;;
2876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2877 (eval "$ac_compile") 2>&5
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); }; then
2881 for ac_file in conftest.o conftest.obj conftest.*; do
2882 test -f "$ac_file" || continue;
2884 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2885 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2890 echo "$as_me: failed program was:" >&5
2891 sed 's
/^
/|
/' conftest.$ac_ext >&5
2893 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2894 See \`config.log' for more details.
" >&5
2895 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
2896 See \
`config.log' for more details." >&2;}
2897 { (exit 1); exit 1; }; }
2900 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2902 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2903 echo "${ECHO_T}$ac_cv_objext" >&6; }
2904 OBJEXT=$ac_cv_objext
2906 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2907 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2908 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2909 echo $ECHO_N "(cached) $ECHO_C" >&6
2911 cat >conftest.$ac_ext <<_ACEOF
2914 cat confdefs.h >>conftest.$ac_ext
2915 cat >>conftest.$ac_ext <<_ACEOF
2916 /* end confdefs.h. */
2929 rm -f conftest.$ac_objext
2930 if { (ac_try="$ac_compile"
2932 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2933 *) ac_try_echo
=$ac_try;;
2935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2936 (eval "$ac_compile") 2>conftest.er1
2938 grep -v '^ *+' conftest.er1
>conftest.err
2940 cat conftest.err
>&5
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); } && {
2943 test -z "$ac_c_werror_flag" ||
2944 test ! -s conftest.err
2945 } && test -s conftest.
$ac_objext; then
2948 echo "$as_me: failed program was:" >&5
2949 sed 's/^/| /' conftest.
$ac_ext >&5
2954 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2955 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2958 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2959 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2960 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2961 ac_test_CFLAGS
=${CFLAGS+set}
2962 ac_save_CFLAGS
=$CFLAGS
2963 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2964 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2965 if test "${ac_cv_prog_cc_g+set}" = set; then
2966 echo $ECHO_N "(cached) $ECHO_C" >&6
2968 ac_save_c_werror_flag
=$ac_c_werror_flag
2969 ac_c_werror_flag
=yes
2972 cat >conftest.
$ac_ext <<_ACEOF
2975 cat confdefs.h
>>conftest.
$ac_ext
2976 cat >>conftest.
$ac_ext <<_ACEOF
2977 /* end confdefs.h. */
2987 rm -f conftest.
$ac_objext
2988 if { (ac_try
="$ac_compile"
2990 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2991 *) ac_try_echo=$ac_try;;
2993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2994 (eval "$ac_compile") 2>conftest.er1
2996 grep -v '^ *+' conftest.er1 >conftest.err
2998 cat conftest.err >&5
2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000 (exit $ac_status); } && {
3001 test -z "$ac_c_werror_flag" ||
3002 test ! -s conftest.err
3003 } && test -s conftest.$ac_objext; then
3006 echo "$as_me: failed program was:" >&5
3007 sed 's/^/| /' conftest.$ac_ext >&5
3010 cat >conftest.$ac_ext <<_ACEOF
3013 cat confdefs.h >>conftest.$ac_ext
3014 cat >>conftest.$ac_ext <<_ACEOF
3015 /* end confdefs.h. */
3025 rm -f conftest.$ac_objext
3026 if { (ac_try="$ac_compile"
3028 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3029 *) ac_try_echo
=$ac_try;;
3031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3032 (eval "$ac_compile") 2>conftest.er1
3034 grep -v '^ *+' conftest.er1
>conftest.err
3036 cat conftest.err
>&5
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); } && {
3039 test -z "$ac_c_werror_flag" ||
3040 test ! -s conftest.err
3041 } && test -s conftest.
$ac_objext; then
3044 echo "$as_me: failed program was:" >&5
3045 sed 's/^/| /' conftest.
$ac_ext >&5
3047 ac_c_werror_flag
=$ac_save_c_werror_flag
3049 cat >conftest.
$ac_ext <<_ACEOF
3052 cat confdefs.h
>>conftest.
$ac_ext
3053 cat >>conftest.
$ac_ext <<_ACEOF
3054 /* end confdefs.h. */
3064 rm -f conftest.
$ac_objext
3065 if { (ac_try
="$ac_compile"
3067 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3068 *) ac_try_echo=$ac_try;;
3070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3071 (eval "$ac_compile") 2>conftest.er1
3073 grep -v '^ *+' conftest.er1 >conftest.err
3075 cat conftest.err >&5
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); } && {
3078 test -z "$ac_c_werror_flag" ||
3079 test ! -s conftest.err
3080 } && test -s conftest.$ac_objext; then
3083 echo "$as_me: failed program was:" >&5
3084 sed 's/^/| /' conftest.$ac_ext >&5
3089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3096 ac_c_werror_flag=$ac_save_c_werror_flag
3098 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3099 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3100 if test "$ac_test_CFLAGS" = set; then
3101 CFLAGS=$ac_save_CFLAGS
3102 elif test $ac_cv_prog_cc_g = yes; then
3103 if test "$GCC" = yes; then
3109 if test "$GCC" = yes; then
3115 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3116 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3117 if test "${ac_cv_prog_cc_c89+set}" = set; then
3118 echo $ECHO_N "(cached) $ECHO_C" >&6
3120 ac_cv_prog_cc_c89=no
3122 cat >conftest.$ac_ext <<_ACEOF
3125 cat confdefs.h >>conftest.$ac_ext
3126 cat >>conftest.$ac_ext <<_ACEOF
3127 /* end confdefs.h. */
3130 #include <sys/types.h>
3131 #include <sys/stat.h>
3132 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3133 struct buf { int x; };
3134 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3135 static char *e (p, i)
3141 static char *f (char * (*g) (char **, int), char **p, ...)
3146 s = g (p, va_arg (v,int));
3151 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3152 function prototypes and stuff, but not '\xHH' hex character constants.
3153 These don't provoke an error unfortunately, instead are silently treated
3154 as 'x'. The following induces an error, until -std is added to get
3155 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3156 array size at least. It's necessary to write '\x00'==0 to get something
3157 that's true only with -std. */
3158 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3160 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3161 inside strings and character constants. */
3163 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3165 int test (int i, double x);
3166 struct s1 {int (*f) (int a);};
3167 struct s2 {int (*f) (double a);};
3168 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3174 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3179 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3180 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3182 CC="$ac_save_CC $ac_arg"
3183 rm -f conftest.$ac_objext
3184 if { (ac_try="$ac_compile"
3186 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3187 *) ac_try_echo
=$ac_try;;
3189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3190 (eval "$ac_compile") 2>conftest.er1
3192 grep -v '^ *+' conftest.er1
>conftest.err
3194 cat conftest.err
>&5
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); } && {
3197 test -z "$ac_c_werror_flag" ||
3198 test ! -s conftest.err
3199 } && test -s conftest.
$ac_objext; then
3200 ac_cv_prog_cc_c89
=$ac_arg
3202 echo "$as_me: failed program was:" >&5
3203 sed 's/^/| /' conftest.
$ac_ext >&5
3208 rm -f core conftest.err conftest.
$ac_objext
3209 test "x$ac_cv_prog_cc_c89" != "xno" && break
3211 rm -f conftest.
$ac_ext
3216 case "x$ac_cv_prog_cc_c89" in
3218 { echo "$as_me:$LINENO: result: none needed" >&5
3219 echo "${ECHO_T}none needed" >&6; } ;;
3221 { echo "$as_me:$LINENO: result: unsupported" >&5
3222 echo "${ECHO_T}unsupported" >&6; } ;;
3224 CC
="$CC $ac_cv_prog_cc_c89"
3225 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3226 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3231 ac_cpp
='$CPP $CPPFLAGS'
3232 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3233 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3234 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3239 { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
3240 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; }
3242 # Check whether --with-cxx_main was given.
3243 if test "${with_cxx_main+set}" = set; then
3244 withval
=$with_cxx_main;
3247 no
) with_cxx_main
=no
3249 yes) with_cxx_main
=yes
3251 *) with_cxx_main
=yes
3265 { echo "$as_me:$LINENO: result: $with_cxx_main" >&5
3266 echo "${ECHO_T}$with_cxx_main" >&6; }
3272 gcc
) # Extract the first word of "g++", so it can be a program name with args.
3273 set dummy g
++; ac_word
=$2
3274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3276 if test "${ac_cv_path_CXX+set}" = set; then
3277 echo $ECHO_N "(cached) $ECHO_C" >&6
3281 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
3284 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3285 for as_dir
in notfound
3288 test -z "$as_dir" && as_dir
=.
3289 for ac_exec_ext
in '' $ac_executable_extensions; do
3290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3291 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
3292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3299 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="g++"
3304 if test -n "$CXX"; then
3305 { echo "$as_me:$LINENO: result: $CXX" >&5
3306 echo "${ECHO_T}$CXX" >&6; }
3308 { echo "$as_me:$LINENO: result: no" >&5
3309 echo "${ECHO_T}no" >&6; }
3313 cc
) # Extract the first word of "c++", so it can be a program name with args.
3314 set dummy c
++; ac_word
=$2
3315 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3317 if test "${ac_cv_path_CXX+set}" = set; then
3318 echo $ECHO_N "(cached) $ECHO_C" >&6
3322 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
3325 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3326 for as_dir
in notfound
3329 test -z "$as_dir" && as_dir
=.
3330 for ac_exec_ext
in '' $ac_executable_extensions; do
3331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3332 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
3333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3340 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="c++"
3345 if test -n "$CXX"; then
3346 { echo "$as_me:$LINENO: result: $CXX" >&5
3347 echo "${ECHO_T}$CXX" >&6; }
3349 { echo "$as_me:$LINENO: result: no" >&5
3350 echo "${ECHO_T}no" >&6; }
3355 if test "$CXX" = "notfound"
3362 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
3364 # Extract the first word of "$ac_prog", so it can be a program name with args.
3365 set dummy
$ac_prog; ac_word
=$2
3366 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3368 if test "${ac_cv_prog_CXX+set}" = set; then
3369 echo $ECHO_N "(cached) $ECHO_C" >&6
3371 if test -n "$CXX"; then
3372 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
3374 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3378 test -z "$as_dir" && as_dir
=.
3379 for ac_exec_ext
in '' $ac_executable_extensions; do
3380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3381 ac_cv_prog_CXX
="$ac_prog"
3382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3392 if test -n "$CXX"; then
3393 { echo "$as_me:$LINENO: result: $CXX" >&5
3394 echo "${ECHO_T}$CXX" >&6; }
3396 { echo "$as_me:$LINENO: result: no" >&5
3397 echo "${ECHO_T}no" >&6; }
3401 test -n "$CXX" && break
3403 test -n "$CXX" || CXX
="notfound"
3405 if test "$CXX" = "notfound"
3410 if test "$preset_cxx" != "$CXX"
3412 { echo "$as_me:$LINENO: WARNING:
3414 By default, distutils will build C++ extension modules with \"$CXX\".
3415 If this is not intended, then set CXX on the configure command line.
3417 echo "$as_me: WARNING:
3419 By default, distutils will build C++ extension modules with \"$CXX\".
3420 If this is not intended, then set CXX on the configure command line.
3425 # checks for UNIX variants that set C preprocessor variables
3428 ac_cpp
='$CPP $CPPFLAGS'
3429 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3430 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3431 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3432 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3433 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3434 # On Suns, sometimes $CPP names a directory.
3435 if test -n "$CPP" && test -d "$CPP"; then
3438 if test -z "$CPP"; then
3439 if test "${ac_cv_prog_CPP+set}" = set; then
3440 echo $ECHO_N "(cached) $ECHO_C" >&6
3442 # Double quotes because CPP needs to be expanded
3443 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3446 for ac_c_preproc_warn_flag
in '' yes
3448 # Use a header file that comes with gcc, so configuring glibc
3449 # with a fresh cross-compiler works.
3450 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3451 # <limits.h> exists even on freestanding compilers.
3452 # On the NeXT, cc -E runs the code through the compiler's parser,
3453 # not just through cpp. "Syntax error" is here to catch this case.
3454 cat >conftest.
$ac_ext <<_ACEOF
3457 cat confdefs.h
>>conftest.
$ac_ext
3458 cat >>conftest.
$ac_ext <<_ACEOF
3459 /* end confdefs.h. */
3461 # include <limits.h>
3463 # include <assert.h>
3467 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3469 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3470 *) ac_try_echo=$ac_try;;
3472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3473 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3475 grep -v '^ *+' conftest.er1 >conftest.err
3477 cat conftest.err >&5
3478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479 (exit $ac_status); } >/dev/null && {
3480 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3481 test ! -s conftest.err
3485 echo "$as_me: failed program was:" >&5
3486 sed 's/^/| /' conftest.$ac_ext >&5
3488 # Broken: fails on valid input.
3492 rm -f conftest.err conftest.$ac_ext
3494 # OK, works on sane cases. Now check whether nonexistent headers
3495 # can be detected and how.
3496 cat >conftest.$ac_ext <<_ACEOF
3499 cat confdefs.h >>conftest.$ac_ext
3500 cat >>conftest.$ac_ext <<_ACEOF
3501 /* end confdefs.h. */
3502 #include <ac_nonexistent.h>
3504 if { (ac_try="$ac_cpp conftest.$ac_ext"
3506 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3507 *) ac_try_echo
=$ac_try;;
3509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3510 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3512 grep -v '^ *+' conftest.er1
>conftest.err
3514 cat conftest.err
>&5
3515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516 (exit $ac_status); } >/dev
/null
&& {
3517 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3518 test ! -s conftest.err
3520 # Broken: success on invalid input.
3523 echo "$as_me: failed program was:" >&5
3524 sed 's/^/| /' conftest.
$ac_ext >&5
3526 # Passes both tests.
3531 rm -f conftest.err conftest.
$ac_ext
3534 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3535 rm -f conftest.err conftest.
$ac_ext
3536 if $ac_preproc_ok; then
3548 { echo "$as_me:$LINENO: result: $CPP" >&5
3549 echo "${ECHO_T}$CPP" >&6; }
3551 for ac_c_preproc_warn_flag
in '' yes
3553 # Use a header file that comes with gcc, so configuring glibc
3554 # with a fresh cross-compiler works.
3555 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3556 # <limits.h> exists even on freestanding compilers.
3557 # On the NeXT, cc -E runs the code through the compiler's parser,
3558 # not just through cpp. "Syntax error" is here to catch this case.
3559 cat >conftest.
$ac_ext <<_ACEOF
3562 cat confdefs.h
>>conftest.
$ac_ext
3563 cat >>conftest.
$ac_ext <<_ACEOF
3564 /* end confdefs.h. */
3566 # include <limits.h>
3568 # include <assert.h>
3572 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3574 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3575 *) ac_try_echo=$ac_try;;
3577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3578 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3580 grep -v '^ *+' conftest.er1 >conftest.err
3582 cat conftest.err >&5
3583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584 (exit $ac_status); } >/dev/null && {
3585 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3586 test ! -s conftest.err
3590 echo "$as_me: failed program was:" >&5
3591 sed 's/^/| /' conftest.$ac_ext >&5
3593 # Broken: fails on valid input.
3597 rm -f conftest.err conftest.$ac_ext
3599 # OK, works on sane cases. Now check whether nonexistent headers
3600 # can be detected and how.
3601 cat >conftest.$ac_ext <<_ACEOF
3604 cat confdefs.h >>conftest.$ac_ext
3605 cat >>conftest.$ac_ext <<_ACEOF
3606 /* end confdefs.h. */
3607 #include <ac_nonexistent.h>
3609 if { (ac_try="$ac_cpp conftest.$ac_ext"
3611 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3612 *) ac_try_echo
=$ac_try;;
3614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3615 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3617 grep -v '^ *+' conftest.er1
>conftest.err
3619 cat conftest.err
>&5
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); } >/dev
/null
&& {
3622 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3623 test ! -s conftest.err
3625 # Broken: success on invalid input.
3628 echo "$as_me: failed program was:" >&5
3629 sed 's/^/| /' conftest.
$ac_ext >&5
3631 # Passes both tests.
3636 rm -f conftest.err conftest.
$ac_ext
3639 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3640 rm -f conftest.err conftest.
$ac_ext
3641 if $ac_preproc_ok; then
3644 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3645 See \`config.log' for more details." >&5
3646 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3647 See \`config.log' for more details." >&2;}
3648 { (exit 1); exit 1; }; }
3652 ac_cpp
='$CPP $CPPFLAGS'
3653 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3654 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3655 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3658 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3659 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3660 if test "${ac_cv_path_GREP+set}" = set; then
3661 echo $ECHO_N "(cached) $ECHO_C" >&6
3663 # Extract the first word of "grep ggrep" to use in msg output
3664 if test -z "$GREP"; then
3665 set dummy
grep ggrep
; ac_prog_name
=$2
3666 if test "${ac_cv_path_GREP+set}" = set; then
3667 echo $ECHO_N "(cached) $ECHO_C" >&6
3669 ac_path_GREP_found
=false
3670 # Loop through the user's path and test for each of PROGNAME-LIST
3671 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3672 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3675 test -z "$as_dir" && as_dir
=.
3676 for ac_prog
in grep ggrep
; do
3677 for ac_exec_ext
in '' $ac_executable_extensions; do
3678 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3679 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3680 # Check for GNU ac_path_GREP and select it if it is found.
3681 # Check for GNU $ac_path_GREP
3682 case `"$ac_path_GREP" --version 2>&1` in
3684 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3687 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3690 cat "conftest.in" "conftest.in" >"conftest.tmp"
3691 mv "conftest.tmp" "conftest.in"
3692 cp "conftest.in" "conftest.nl"
3693 echo 'GREP' >> "conftest.nl"
3694 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3695 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3696 ac_count
=`expr $ac_count + 1`
3697 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3698 # Best one so far, save it but keep looking for a better one
3699 ac_cv_path_GREP
="$ac_path_GREP"
3700 ac_path_GREP_max
=$ac_count
3702 # 10*(2^10) chars as input seems more than enough
3703 test $ac_count -gt 10 && break
3705 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3709 $ac_path_GREP_found && break 3
3719 GREP
="$ac_cv_path_GREP"
3720 if test -z "$GREP"; then
3721 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3722 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3723 { (exit 1); exit 1; }; }
3727 ac_cv_path_GREP
=$GREP
3732 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3733 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3734 GREP
="$ac_cv_path_GREP"
3737 { echo "$as_me:$LINENO: checking for egrep" >&5
3738 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3739 if test "${ac_cv_path_EGREP+set}" = set; then
3740 echo $ECHO_N "(cached) $ECHO_C" >&6
3742 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3743 then ac_cv_path_EGREP
="$GREP -E"
3745 # Extract the first word of "egrep" to use in msg output
3746 if test -z "$EGREP"; then
3747 set dummy
egrep; ac_prog_name
=$2
3748 if test "${ac_cv_path_EGREP+set}" = set; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3751 ac_path_EGREP_found
=false
3752 # Loop through the user's path and test for each of PROGNAME-LIST
3753 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3754 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3757 test -z "$as_dir" && as_dir
=.
3758 for ac_prog
in egrep; do
3759 for ac_exec_ext
in '' $ac_executable_extensions; do
3760 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3761 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3762 # Check for GNU ac_path_EGREP and select it if it is found.
3763 # Check for GNU $ac_path_EGREP
3764 case `"$ac_path_EGREP" --version 2>&1` in
3766 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3769 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3772 cat "conftest.in" "conftest.in" >"conftest.tmp"
3773 mv "conftest.tmp" "conftest.in"
3774 cp "conftest.in" "conftest.nl"
3775 echo 'EGREP' >> "conftest.nl"
3776 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3777 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3778 ac_count
=`expr $ac_count + 1`
3779 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3780 # Best one so far, save it but keep looking for a better one
3781 ac_cv_path_EGREP
="$ac_path_EGREP"
3782 ac_path_EGREP_max
=$ac_count
3784 # 10*(2^10) chars as input seems more than enough
3785 test $ac_count -gt 10 && break
3787 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3791 $ac_path_EGREP_found && break 3
3801 EGREP
="$ac_cv_path_EGREP"
3802 if test -z "$EGREP"; then
3803 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3804 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3805 { (exit 1); exit 1; }; }
3809 ac_cv_path_EGREP
=$EGREP
3815 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3816 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3817 EGREP
="$ac_cv_path_EGREP"
3821 { echo "$as_me:$LINENO: checking for AIX" >&5
3822 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3823 cat >conftest.
$ac_ext <<_ACEOF
3826 cat confdefs.h
>>conftest.
$ac_ext
3827 cat >>conftest.
$ac_ext <<_ACEOF
3828 /* end confdefs.h. */
3834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3835 $EGREP "yes" >/dev
/null
2>&1; then
3836 { echo "$as_me:$LINENO: result: yes" >&5
3837 echo "${ECHO_T}yes" >&6; }
3838 cat >>confdefs.h
<<\_ACEOF
3839 #define _ALL_SOURCE 1
3843 { echo "$as_me:$LINENO: result: no" >&5
3844 echo "${ECHO_T}no" >&6; }
3850 # Check for unsupported systems
3851 case $ac_sys_system/$ac_sys_release in
3853 echo This system \
($ac_sys_system/$ac_sys_release\
) is no longer supported.
3854 echo See README
for details.
3859 { echo "$as_me:$LINENO: checking for --with-suffix" >&5
3860 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; }
3862 # Check whether --with-suffix was given.
3863 if test "${with_suffix+set}" = set; then
3864 withval
=$with_suffix;
3868 *) EXEEXT
=$withval;;
3872 { echo "$as_me:$LINENO: result: $EXEEXT" >&5
3873 echo "${ECHO_T}$EXEEXT" >&6; }
3875 # Test whether we're running on a non-case-sensitive system, in which
3876 # case we give a warning if no ext is given
3878 { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3879 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; }
3880 if test ! -d CaseSensitiveTestDir
; then
3881 mkdir CaseSensitiveTestDir
3884 if test -d casesensitivetestdir
3886 { echo "$as_me:$LINENO: result: yes" >&5
3887 echo "${ECHO_T}yes" >&6; }
3890 { echo "$as_me:$LINENO: result: no" >&5
3891 echo "${ECHO_T}no" >&6; }
3894 rmdir CaseSensitiveTestDir
3899 gcc
) CC
="$CC -D_HAVE_BSDI";;
3903 case $ac_sys_system in
3906 cc|
*/cc
) CC
="$CC -Ae";;
3909 # Some functions have a prototype only with that define, e.g. confstr
3911 cat >>confdefs.h
<<\_ACEOF
3912 #define __EXTENSIONS__ 1
3920 { echo "$as_me:$LINENO: checking LIBRARY" >&5
3921 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; }
3922 if test -z "$LIBRARY"
3924 LIBRARY
='libpython$(VERSION).a'
3926 { echo "$as_me:$LINENO: result: $LIBRARY" >&5
3927 echo "${ECHO_T}$LIBRARY" >&6; }
3929 # LDLIBRARY is the name of the library to link against (as opposed to the
3930 # name of the library into which to insert object files). BLDLIBRARY is also
3931 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3932 # is blank as the main program is not linked directly against LDLIBRARY.
3933 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3934 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3935 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3936 # DLLLIBRARY is the shared (i.e., DLL) library.
3938 # RUNSHARED is used to run shared python without installed libraries
3940 # INSTSONAME is the name of the shared library that will be use to install
3941 # on the system - some systems like version suffix, others don't
3948 LDLIBRARY
="$LIBRARY"
3949 BLDLIBRARY
='$(LDLIBRARY)'
3950 INSTSONAME
='$(LDLIBRARY)'
3955 # LINKCC is the command that links the python executable -- default is $(CC).
3956 # If CXX is set, and if it is needed to link a main function that was
3957 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3958 # python might then depend on the C++ runtime
3959 # This is altered for AIX in order to build the export list before
3962 { echo "$as_me:$LINENO: checking LINKCC" >&5
3963 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; }
3964 if test -z "$LINKCC"
3966 LINKCC
='$(PURIFY) $(MAINCC)'
3967 case $ac_sys_system in
3970 if test $ac_sys_release -ge 5 -o \
3971 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3974 LINKCC
="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3976 # qcc must be used because the other compilers do not
3981 { echo "$as_me:$LINENO: result: $LINKCC" >&5
3982 echo "${ECHO_T}$LINKCC" >&6; }
3984 # GNULD is set to "yes" if the GNU linker is used. If this goes wrong
3985 # make sure we default having it set to "no": this is used by
3986 # distutils.unixccompiler to know if it should add --enable-new-dtags
3987 # to linker command lines, and failing to detect GNU ld simply results
3988 # in the same bahaviour as before.
3990 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3991 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3993 if test "$GCC" = yes; then
3994 ac_prog
=`$CC -print-prog-name=ld`
3996 case `"$ac_prog" -V 2>&1 < /dev/null` in
4002 { echo "$as_me:$LINENO: result: $GNULD" >&5
4003 echo "${ECHO_T}$GNULD" >&6; }
4005 { echo "$as_me:$LINENO: checking for --enable-shared" >&5
4006 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; }
4007 # Check whether --enable-shared was given.
4008 if test "${enable_shared+set}" = set; then
4009 enableval
=$enable_shared;
4013 if test -z "$enable_shared"
4015 case $ac_sys_system in
4017 enable_shared
="yes";;
4019 enable_shared
="no";;
4022 { echo "$as_me:$LINENO: result: $enable_shared" >&5
4023 echo "${ECHO_T}$enable_shared" >&6; }
4025 { echo "$as_me:$LINENO: checking for --enable-profiling" >&5
4026 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; }
4027 # Check whether --enable-profiling was given.
4028 if test "${enable_profiling+set}" = set; then
4029 enableval
=$enable_profiling; ac_save_cc
="$CC"
4031 if test "$cross_compiling" = yes; then
4032 ac_enable_profiling
="no"
4034 cat >conftest.
$ac_ext <<_ACEOF
4037 cat confdefs.h
>>conftest.
$ac_ext
4038 cat >>conftest.
$ac_ext <<_ACEOF
4039 /* end confdefs.h. */
4040 int main() { return 0; }
4042 rm -f conftest
$ac_exeext
4043 if { (ac_try
="$ac_link"
4045 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4046 *) ac_try_echo=$ac_try;;
4048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4049 (eval "$ac_link") 2>&5
4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4053 { (case "(($ac_try" in
4054 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4055 *) ac_try_echo
=$ac_try;;
4057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4058 (eval "$ac_try") 2>&5
4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061 (exit $ac_status); }; }; then
4062 ac_enable_profiling
="yes"
4064 echo "$as_me: program exited with status $ac_status" >&5
4065 echo "$as_me: failed program was:" >&5
4066 sed 's/^/| /' conftest.
$ac_ext >&5
4069 ac_enable_profiling
="no"
4071 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4078 { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
4079 echo "${ECHO_T}$ac_enable_profiling" >&6; }
4081 case "$ac_enable_profiling" in
4083 BASECFLAGS
="-pg $BASECFLAGS"
4084 LDFLAGS
="-pg $LDFLAGS"
4088 { echo "$as_me:$LINENO: checking LDLIBRARY" >&5
4089 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; }
4091 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
4092 # library that we build, but we do not want to link against it (we
4093 # will find it with a -framework option). For this reason there is an
4094 # extra variable BLDLIBRARY against which Python and the extension
4095 # modules are linked, BLDLIBRARY. This is normally the same as
4096 # LDLIBRARY, but empty for MacOSX framework builds.
4097 if test "$enable_framework"
4099 LDLIBRARY
='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
4100 RUNSHARED
=DYLD_FRAMEWORK_PATH
="`pwd`:$DYLD_FRAMEWORK_PATH"
4103 BLDLIBRARY
='$(LDLIBRARY)'
4106 # Other platforms follow
4107 if test $enable_shared = "yes"; then
4109 cat >>confdefs.h
<<\_ACEOF
4110 #define Py_ENABLE_SHARED 1
4113 case $ac_sys_system in
4115 LDLIBRARY
='libpython$(VERSION).dll.a'
4116 DLLLIBRARY
='libpython$(VERSION).dll'
4119 LDLIBRARY
='libpython$(VERSION).so'
4120 BLDLIBRARY
='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
4121 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4122 INSTSONAME
="$LDLIBRARY".
$SOVERSION
4124 Linux
*|GNU
*|NetBSD
*|FreeBSD
*|DragonFly
*)
4125 LDLIBRARY
='libpython$(VERSION).so'
4126 BLDLIBRARY
='-L. -lpython$(VERSION)'
4127 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4128 case $ac_sys_system in
4130 SOVERSION
=`echo $SOVERSION|cut -d "." -f 1`
4133 INSTSONAME
="$LDLIBRARY".
$SOVERSION
4138 LDLIBRARY
='libpython$(VERSION).so'
4141 LDLIBRARY
='libpython$(VERSION).sl'
4144 BLDLIBRARY
='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
4145 RUNSHARED
=SHLIB_PATH
=`pwd`:${SHLIB_PATH}
4148 LDLIBRARY
='libpython$(VERSION).so'
4149 BLDLIBRARY
='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
4150 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4153 LDLIBRARY
='libpython$(VERSION).so'
4154 BLDLIBRARY
='-L. -lpython$(VERSION)'
4155 RUNSHARED
=DLL_PATH
=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
4158 LDLIBRARY
='libpython$(VERSION).dylib'
4159 BLDLIBRARY
='-L. -lpython$(VERSION)'
4160 RUNSHARED
='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}'
4164 else # shared is disabled
4165 case $ac_sys_system in
4167 BLDLIBRARY
='$(LIBRARY)'
4168 LDLIBRARY
='libpython$(VERSION).dll.a'
4173 { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
4174 echo "${ECHO_T}$LDLIBRARY" >&6; }
4176 if test -n "$ac_tool_prefix"; then
4177 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4178 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4181 if test "${ac_cv_prog_RANLIB+set}" = set; then
4182 echo $ECHO_N "(cached) $ECHO_C" >&6
4184 if test -n "$RANLIB"; then
4185 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4187 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4191 test -z "$as_dir" && as_dir
=.
4192 for ac_exec_ext
in '' $ac_executable_extensions; do
4193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4194 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4204 RANLIB
=$ac_cv_prog_RANLIB
4205 if test -n "$RANLIB"; then
4206 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4207 echo "${ECHO_T}$RANLIB" >&6; }
4209 { echo "$as_me:$LINENO: result: no" >&5
4210 echo "${ECHO_T}no" >&6; }
4215 if test -z "$ac_cv_prog_RANLIB"; then
4216 ac_ct_RANLIB
=$RANLIB
4217 # Extract the first word of "ranlib", so it can be a program name with args.
4218 set dummy ranlib
; ac_word
=$2
4219 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4221 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4222 echo $ECHO_N "(cached) $ECHO_C" >&6
4224 if test -n "$ac_ct_RANLIB"; then
4225 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4227 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4231 test -z "$as_dir" && as_dir
=.
4232 for ac_exec_ext
in '' $ac_executable_extensions; do
4233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4234 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4244 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4245 if test -n "$ac_ct_RANLIB"; then
4246 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4247 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4249 { echo "$as_me:$LINENO: result: no" >&5
4250 echo "${ECHO_T}no" >&6; }
4253 if test "x$ac_ct_RANLIB" = x
; then
4256 case $cross_compiling:$ac_tool_warned in
4258 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4259 whose name does not start with the host triplet. If you think this
4260 configuration is useful to you, please write to autoconf@gnu.org." >&5
4261 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4262 whose name does not start with the host triplet. If you think this
4263 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4264 ac_tool_warned
=yes ;;
4266 RANLIB
=$ac_ct_RANLIB
4269 RANLIB
="$ac_cv_prog_RANLIB"
4273 for ac_prog
in ar aal
4275 # Extract the first word of "$ac_prog", so it can be a program name with args.
4276 set dummy
$ac_prog; ac_word
=$2
4277 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4279 if test "${ac_cv_prog_AR+set}" = set; then
4280 echo $ECHO_N "(cached) $ECHO_C" >&6
4282 if test -n "$AR"; then
4283 ac_cv_prog_AR
="$AR" # Let the user override the test.
4285 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4289 test -z "$as_dir" && as_dir
=.
4290 for ac_exec_ext
in '' $ac_executable_extensions; do
4291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4292 ac_cv_prog_AR
="$ac_prog"
4293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4303 if test -n "$AR"; then
4304 { echo "$as_me:$LINENO: result: $AR" >&5
4305 echo "${ECHO_T}$AR" >&6; }
4307 { echo "$as_me:$LINENO: result: no" >&5
4308 echo "${ECHO_T}no" >&6; }
4312 test -n "$AR" && break
4314 test -n "$AR" || AR
="ar"
4317 # tweak ARFLAGS only if the user didn't set it on the command line
4319 if test -z "$ARFLAGS"
4325 # Extract the first word of "svnversion", so it can be a program name with args.
4326 set dummy svnversion
; ac_word
=$2
4327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4329 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
4330 echo $ECHO_N "(cached) $ECHO_C" >&6
4332 if test -n "$SVNVERSION"; then
4333 ac_cv_prog_SVNVERSION
="$SVNVERSION" # Let the user override the test.
4335 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4339 test -z "$as_dir" && as_dir
=.
4340 for ac_exec_ext
in '' $ac_executable_extensions; do
4341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4342 ac_cv_prog_SVNVERSION
="found"
4343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4350 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION
="not-found"
4353 SVNVERSION
=$ac_cv_prog_SVNVERSION
4354 if test -n "$SVNVERSION"; then
4355 { echo "$as_me:$LINENO: result: $SVNVERSION" >&5
4356 echo "${ECHO_T}$SVNVERSION" >&6; }
4358 { echo "$as_me:$LINENO: result: no" >&5
4359 echo "${ECHO_T}no" >&6; }
4363 if test $SVNVERSION = found
4365 SVNVERSION
="svnversion \$(srcdir)"
4367 SVNVERSION
="echo Unversioned directory"
4372 # install -d does not work on BSDI or HP-UX
4373 if test -z "$INSTALL"
4375 INSTALL
="${srcdir}/install-sh -c"
4379 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4380 if test -f "$ac_dir/install-sh"; then
4382 ac_install_sh
="$ac_aux_dir/install-sh -c"
4384 elif test -f "$ac_dir/install.sh"; then
4386 ac_install_sh
="$ac_aux_dir/install.sh -c"
4388 elif test -f "$ac_dir/shtool"; then
4390 ac_install_sh
="$ac_aux_dir/shtool install -c"
4394 if test -z "$ac_aux_dir"; then
4395 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4396 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4397 { (exit 1); exit 1; }; }
4400 # These three variables are undocumented and unsupported,
4401 # and are intended to be withdrawn in a future Autoconf release.
4402 # They can cause serious problems if a builder's source tree is in a directory
4403 # whose full name contains unusual characters.
4404 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4405 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4406 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4409 # Find a good install program. We prefer a C program (faster),
4410 # so one script is as good as another. But avoid the broken or
4411 # incompatible versions:
4412 # SysV /etc/install, /usr/sbin/install
4413 # SunOS /usr/etc/install
4414 # IRIX /sbin/install
4416 # AmigaOS /C/install, which installs bootblocks on floppy discs
4417 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4418 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4419 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4420 # OS/2's system install, which has a completely different semantic
4421 # ./install, which can be erroneously created by make from ./install.sh.
4422 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4423 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4424 if test -z "$INSTALL"; then
4425 if test "${ac_cv_path_install+set}" = set; then
4426 echo $ECHO_N "(cached) $ECHO_C" >&6
4428 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4432 test -z "$as_dir" && as_dir
=.
4433 # Account for people who put trailing slashes in PATH elements.
4435 .
/ | .
// |
/cC
/* | \
4436 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4437 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4440 # OSF1 and SCO ODT 3.0 have their own names for install.
4441 # Don't use installbsd from OSF since it installs stuff as root
4443 for ac_prog
in ginstall scoinst
install; do
4444 for ac_exec_ext
in '' $ac_executable_extensions; do
4445 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4446 if test $ac_prog = install &&
4447 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4448 # AIX install. It has an incompatible calling convention.
4450 elif test $ac_prog = install &&
4451 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4452 # program-specific install script used by HP pwplus--don't use.
4455 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4468 if test "${ac_cv_path_install+set}" = set; then
4469 INSTALL
=$ac_cv_path_install
4471 # As a last resort, use the slow shell script. Don't cache a
4472 # value for INSTALL within a source directory, because that will
4473 # break other packages using the cache if that directory is
4474 # removed, or if the value is a relative name.
4475 INSTALL
=$ac_install_sh
4478 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4479 echo "${ECHO_T}$INSTALL" >&6; }
4481 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4482 # It thinks the first close brace ends the variable substitution.
4483 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4485 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4487 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4490 # Not every filesystem supports hard links
4492 if test -z "$LN" ; then
4493 case $ac_sys_system in
4494 CYGWIN
*) LN
="ln -s";;
4495 atheos
*) LN
="ln -s";;
4500 # Check for --with-pydebug
4501 { echo "$as_me:$LINENO: checking for --with-pydebug" >&5
4502 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; }
4504 # Check whether --with-pydebug was given.
4505 if test "${with_pydebug+set}" = set; then
4506 withval
=$with_pydebug;
4507 if test "$withval" != no
4510 cat >>confdefs.h
<<\_ACEOF
4514 { echo "$as_me:$LINENO: result: yes" >&5
4515 echo "${ECHO_T}yes" >&6; };
4517 else { echo "$as_me:$LINENO: result: no" >&5
4518 echo "${ECHO_T}no" >&6; }; Py_DEBUG
='false'
4521 { echo "$as_me:$LINENO: result: no" >&5
4522 echo "${ECHO_T}no" >&6; }
4526 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
4527 # merged with this chunk of code?
4529 # Optimizer/debugger flags
4530 # ------------------------
4531 # (The following bit of code is complicated enough - please keep things
4532 # indented properly. Just pretend you're editing Python code. ;-)
4534 # There are two parallel sets of case statements below, one that checks to
4535 # see if OPT was set and one that does BASECFLAGS setting based upon
4536 # compiler and platform. BASECFLAGS tweaks need to be made even if the
4539 # tweak OPT based on compiler and platform, only if the user didn't set
4540 # it on the command line
4542 if test "${OPT-unset}" = "unset"
4546 if test "$CC" != 'g++' ; then
4547 STRICT_PROTO
="-Wstrict-prototypes"
4549 # For gcc 4.x we need to use -fwrapv so lets check if its supported
4550 if "$CC" -v --help 2>/dev
/null |
grep -- -fwrapv > /dev
/null
; then
4553 case $ac_cv_prog_cc_g in
4555 if test "$Py_DEBUG" = 'true' ; then
4556 # Optimization messes up debuggers, so turn it off for
4558 OPT
="-g -Wall $STRICT_PROTO"
4560 OPT
="-g $WRAP -O3 -Wall $STRICT_PROTO"
4564 OPT
="-O3 -Wall $STRICT_PROTO"
4567 case $ac_sys_system in
4568 SCO_SV
*) OPT
="$OPT -m486 -DSCO5"
4581 # The -arch flags for universal builds on OSX
4582 UNIVERSAL_ARCH_FLAGS
=
4585 # tweak BASECFLAGS based on compiler and platform
4588 # Python violates C99 rules, by casting between incompatible
4589 # pointer types. GCC may generate bad code as a result of that,
4590 # so use -fno-strict-aliasing if supported.
4591 { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
4592 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; }
4594 CC
="$CC -fno-strict-aliasing"
4595 if test "$cross_compiling" = yes; then
4596 ac_cv_no_strict_aliasing_ok
=no
4598 cat >conftest.
$ac_ext <<_ACEOF
4601 cat confdefs.h
>>conftest.
$ac_ext
4602 cat >>conftest.
$ac_ext <<_ACEOF
4603 /* end confdefs.h. */
4604 int main() { return 0; }
4606 rm -f conftest
$ac_exeext
4607 if { (ac_try
="$ac_link"
4609 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4610 *) ac_try_echo=$ac_try;;
4612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4613 (eval "$ac_link") 2>&5
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4617 { (case "(($ac_try" in
4618 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4619 *) ac_try_echo
=$ac_try;;
4621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4622 (eval "$ac_try") 2>&5
4624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625 (exit $ac_status); }; }; then
4626 ac_cv_no_strict_aliasing_ok
=yes
4628 echo "$as_me: program exited with status $ac_status" >&5
4629 echo "$as_me: failed program was:" >&5
4630 sed 's/^/| /' conftest.
$ac_ext >&5
4633 ac_cv_no_strict_aliasing_ok
=no
4635 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4640 { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
4641 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; }
4642 if test $ac_cv_no_strict_aliasing_ok = yes
4644 BASECFLAGS
="$BASECFLAGS -fno-strict-aliasing"
4647 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
4648 # support. Without this, treatment of subnormals doesn't follow
4650 case $ac_sys_machine in
4652 BASECFLAGS
="$BASECFLAGS -mieee"
4656 case $ac_sys_system in
4658 BASECFLAGS
="$BASECFLAGS -m486 -DSCO5"
4660 # is there any other compiler on Darwin besides gcc?
4662 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
4663 # used to be here, but non-Apple gcc doesn't accept them.
4664 if test "${CC}" = gcc
4666 { echo "$as_me:$LINENO: checking which compiler should be used" >&5
4667 echo $ECHO_N "checking which compiler should be used... $ECHO_C" >&6; }
4668 case "${UNIVERSALSDK}" in
4670 # Build using 10.4 SDK, force usage of gcc when the
4671 # compiler is gcc, otherwise the user will get very
4672 # confusing error messages when building on OSX 10.6
4677 { echo "$as_me:$LINENO: result: $CC" >&5
4678 echo "${ECHO_T}$CC" >&6; }
4682 if test "${enable_universalsdk}"; then
4683 UNIVERSAL_ARCH_FLAGS
=""
4684 if test "$UNIVERSAL_ARCHS" = "32-bit" ; then
4686 UNIVERSAL_ARCH_FLAGS
="-arch ppc -arch i386"
4688 elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then
4689 ARCH_RUN_32BIT
="true"
4690 UNIVERSAL_ARCH_FLAGS
="-arch ppc64 -arch x86_64"
4692 elif test "$UNIVERSAL_ARCHS" = "all" ; then
4693 ARCH_RUN_32BIT
="/usr/bin/arch -i386 -ppc"
4694 UNIVERSAL_ARCH_FLAGS
="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
4695 LIPO_32BIT_FLAGS
="-extract i386 -extract ppc7400"
4696 LIPO_64BIT_FLAGS
="-extract x86_64 -extract ppc64"
4698 elif test "$UNIVERSAL_ARCHS" = "intel" ; then
4699 ARCH_RUN_32BIT
="/usr/bin/arch -i386"
4700 UNIVERSAL_ARCH_FLAGS
="-arch i386 -arch x86_64"
4701 LIPO_32BIT_FLAGS
="-extract i386"
4702 LIPO_64BIT_FLAGS
="-extract x86_64"
4704 elif test "$UNIVERSAL_ARCHS" = "3-way" ; then
4705 ARCH_RUN_32BIT
="/usr/bin/arch -i386 -ppc"
4706 UNIVERSAL_ARCH_FLAGS
="-arch i386 -arch ppc -arch x86_64"
4707 LIPO_32BIT_FLAGS
="-extract i386 -extract ppc7400"
4708 LIPO_64BIT_FLAGS
="-extract x86_64"
4711 { { echo "$as_me:$LINENO: error: proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" >&5
4712 echo "$as_me: error: proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" >&2;}
4713 { (exit 1); exit 1; }; }
4718 CFLAGS
="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
4719 if test "${UNIVERSALSDK}" != "/"
4721 CFLAGS
="-isysroot ${UNIVERSALSDK} ${CFLAGS}"
4722 LDFLAGS
="-isysroot ${UNIVERSALSDK} ${LDFLAGS}"
4723 CPPFLAGSFLAGS
="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}"
4727 # Calculate the right deployment target for this build.
4729 cur_target
=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4730 if test ${cur_target} '>' 10.2; then
4732 if test ${enable_universalsdk}; then
4733 if test "${UNIVERSAL_ARCHS}" = "all"; then
4734 # Ensure that the default platform for a
4735 # 4-way universal build is OSX 10.5,
4736 # that's the first OS release where
4737 # 4-way builds make sense.
4740 elif test "${UNIVERSAL_ARCHS}" = "3-way"; then
4743 elif test "${UNIVERSAL_ARCHS}" = "intel"; then
4746 elif test "${UNIVERSAL_ARCHS}" = "64-bit"; then
4750 if test `/usr/bin/arch` = "i386"; then
4751 # On Intel macs default to a deployment
4752 # target of 10.4, that's the first OSX
4753 # release with Intel support.
4758 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
4760 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
4761 # environment with a value that is the same as what we'll use
4762 # in the Makefile to ensure that we'll get the same compiler
4763 # environment during configure and build time.
4764 MACOSX_DEPLOYMENT_TARGET
="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
4765 export MACOSX_DEPLOYMENT_TARGET
4766 EXPORT_MACOSX_DEPLOYMENT_TARGET
=''
4770 BASECFLAGS
="$BASECFLAGS -mieee"
4776 case $ac_sys_system in
4777 OpenUNIX
*|UnixWare
*)
4778 BASECFLAGS
="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
4781 BASECFLAGS
="$BASECFLAGS -ieee -std"
4784 BASECFLAGS
="$BASECFLAGS -belf -Ki486 -DSCO5"
4790 if test "$Py_DEBUG" = 'true'; then
4796 if test "$ac_arch_flags"
4798 BASECFLAGS
="$BASECFLAGS $ac_arch_flags"
4801 # disable check for icc since it seems to pass, but generates a warning
4804 ac_cv_opt_olimit_ok
=no
4807 { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
4808 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; }
4809 if test "${ac_cv_opt_olimit_ok+set}" = set; then
4810 echo $ECHO_N "(cached) $ECHO_C" >&6
4813 CC
="$CC -OPT:Olimit=0"
4814 if test "$cross_compiling" = yes; then
4815 ac_cv_opt_olimit_ok
=no
4817 cat >conftest.
$ac_ext <<_ACEOF
4820 cat confdefs.h
>>conftest.
$ac_ext
4821 cat >>conftest.
$ac_ext <<_ACEOF
4822 /* end confdefs.h. */
4823 int main() { return 0; }
4825 rm -f conftest
$ac_exeext
4826 if { (ac_try
="$ac_link"
4828 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4829 *) ac_try_echo=$ac_try;;
4831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4832 (eval "$ac_link") 2>&5
4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4836 { (case "(($ac_try" in
4837 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4838 *) ac_try_echo
=$ac_try;;
4840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4841 (eval "$ac_try") 2>&5
4843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844 (exit $ac_status); }; }; then
4845 ac_cv_opt_olimit_ok
=yes
4847 echo "$as_me: program exited with status $ac_status" >&5
4848 echo "$as_me: failed program was:" >&5
4849 sed 's/^/| /' conftest.
$ac_ext >&5
4852 ac_cv_opt_olimit_ok
=no
4854 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4861 { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
4862 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; }
4863 if test $ac_cv_opt_olimit_ok = yes; then
4864 case $ac_sys_system in
4865 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
4866 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
4871 BASECFLAGS
="$BASECFLAGS -OPT:Olimit=0"
4875 { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
4876 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; }
4877 if test "${ac_cv_olimit_ok+set}" = set; then
4878 echo $ECHO_N "(cached) $ECHO_C" >&6
4881 CC
="$CC -Olimit 1500"
4882 if test "$cross_compiling" = yes; then
4885 cat >conftest.
$ac_ext <<_ACEOF
4888 cat confdefs.h
>>conftest.
$ac_ext
4889 cat >>conftest.
$ac_ext <<_ACEOF
4890 /* end confdefs.h. */
4891 int main() { return 0; }
4893 rm -f conftest
$ac_exeext
4894 if { (ac_try
="$ac_link"
4896 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4897 *) ac_try_echo=$ac_try;;
4899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4900 (eval "$ac_link") 2>&5
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4904 { (case "(($ac_try" in
4905 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4906 *) ac_try_echo
=$ac_try;;
4908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4909 (eval "$ac_try") 2>&5
4911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912 (exit $ac_status); }; }; then
4915 echo "$as_me: program exited with status $ac_status" >&5
4916 echo "$as_me: failed program was:" >&5
4917 sed 's/^/| /' conftest.
$ac_ext >&5
4922 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4929 { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4930 echo "${ECHO_T}$ac_cv_olimit_ok" >&6; }
4931 if test $ac_cv_olimit_ok = yes; then
4932 BASECFLAGS
="$BASECFLAGS -Olimit 1500"
4936 # Check whether GCC supports PyArg_ParseTuple format
4937 if test "$GCC" = "yes"
4939 { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
4940 echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; }
4942 CFLAGS
="$CFLAGS -Werror"
4943 cat >conftest.
$ac_ext <<_ACEOF
4946 cat confdefs.h
>>conftest.
$ac_ext
4947 cat >>conftest.
$ac_ext <<_ACEOF
4948 /* end confdefs.h. */
4950 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
4960 rm -f conftest.
$ac_objext
4961 if { (ac_try
="$ac_compile"
4963 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4964 *) ac_try_echo=$ac_try;;
4966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4967 (eval "$ac_compile") 2>conftest.er1
4969 grep -v '^ *+' conftest.er1 >conftest.err
4971 cat conftest.err >&5
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); } && {
4974 test -z "$ac_c_werror_flag" ||
4975 test ! -s conftest.err
4976 } && test -s conftest.$ac_objext; then
4978 cat >>confdefs.h <<\_ACEOF
4979 #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
4982 { echo "$as_me:$LINENO: result: yes" >&5
4983 echo "${ECHO_T}yes" >&6; }
4985 echo "$as_me: failed program was:" >&5
4986 sed 's/^/| /' conftest.$ac_ext >&5
4988 { echo "$as_me:$LINENO: result: no" >&5
4989 echo "${ECHO_T}no" >&6; }
4993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4997 # On some compilers, pthreads are available without further options
4998 # (e.g. MacOS X). On some of these systems, the compiler will not
4999 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
5000 # So we have to see first whether pthreads are available without
5001 # options before we can check whether -Kpthread improves anything.
5002 { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
5003 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; }
5004 if test "${ac_cv_pthread_is_default+set}" = set; then
5005 echo $ECHO_N "(cached) $ECHO_C" >&6
5007 if test "$cross_compiling" = yes; then
5008 ac_cv_pthread_is_default=no
5010 cat >conftest.$ac_ext <<_ACEOF
5013 cat confdefs.h >>conftest.$ac_ext
5014 cat >>conftest.$ac_ext <<_ACEOF
5015 /* end confdefs.h. */
5017 #include <pthread.h>
5019 void* routine(void* p){return NULL;}
5023 if(pthread_create(&p,NULL,routine,NULL)!=0)
5025 (void)pthread_detach(p);
5030 rm -f conftest$ac_exeext
5031 if { (ac_try="$ac_link"
5033 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5034 *) ac_try_echo
=$ac_try;;
5036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5037 (eval "$ac_link") 2>&5
5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5041 { (case "(($ac_try" in
5042 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5043 *) ac_try_echo=$ac_try;;
5045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5046 (eval "$ac_try") 2>&5
5048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049 (exit $ac_status); }; }; then
5051 ac_cv_pthread_is_default=yes
5056 echo "$as_me: program exited with status $ac_status" >&5
5057 echo "$as_me: failed program was:" >&5
5058 sed 's/^/| /' conftest.$ac_ext >&5
5061 ac_cv_pthread_is_default=no
5063 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5070 { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
5071 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; }
5074 if test $ac_cv_pthread_is_default = yes
5078 # -Kpthread, if available, provides the right #defines
5079 # and linker options to make pthread_create available
5080 # Some compilers won't report that they do not support -Kpthread,
5081 # so we need to run a program to see whether it really made the
5082 # function available.
5083 { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
5084 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; }
5085 if test "${ac_cv_kpthread+set}" = set; then
5086 echo $ECHO_N "(cached) $ECHO_C" >&6
5090 if test "$cross_compiling" = yes; then
5093 cat >conftest.$ac_ext <<_ACEOF
5096 cat confdefs.h >>conftest.$ac_ext
5097 cat >>conftest.$ac_ext <<_ACEOF
5098 /* end confdefs.h. */
5100 #include <pthread.h>
5102 void* routine(void* p){return NULL;}
5106 if(pthread_create(&p,NULL,routine,NULL)!=0)
5108 (void)pthread_detach(p);
5113 rm -f conftest$ac_exeext
5114 if { (ac_try="$ac_link"
5116 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5117 *) ac_try_echo
=$ac_try;;
5119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5120 (eval "$ac_link") 2>&5
5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5124 { (case "(($ac_try" in
5125 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5126 *) ac_try_echo=$ac_try;;
5128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5129 (eval "$ac_try") 2>&5
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); }; }; then
5135 echo "$as_me: program exited with status $ac_status" >&5
5136 echo "$as_me: failed program was:" >&5
5137 sed 's/^/| /' conftest.$ac_ext >&5
5142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5149 { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
5150 echo "${ECHO_T}$ac_cv_kpthread" >&6; }
5153 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
5155 # -Kthread, if available, provides the right #defines
5156 # and linker options to make pthread_create available
5157 # Some compilers won't report that they do not support -Kthread,
5158 # so we need to run a program to see whether it really made the
5159 # function available.
5160 { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
5161 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; }
5162 if test "${ac_cv_kthread+set}" = set; then
5163 echo $ECHO_N "(cached) $ECHO_C" >&6
5167 if test "$cross_compiling" = yes; then
5170 cat >conftest.$ac_ext <<_ACEOF
5173 cat confdefs.h >>conftest.$ac_ext
5174 cat >>conftest.$ac_ext <<_ACEOF
5175 /* end confdefs.h. */
5177 #include <pthread.h>
5179 void* routine(void* p){return NULL;}
5183 if(pthread_create(&p,NULL,routine,NULL)!=0)
5185 (void)pthread_detach(p);
5190 rm -f conftest$ac_exeext
5191 if { (ac_try="$ac_link"
5193 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5194 *) ac_try_echo
=$ac_try;;
5196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5197 (eval "$ac_link") 2>&5
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5201 { (case "(($ac_try" in
5202 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5203 *) ac_try_echo=$ac_try;;
5205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5206 (eval "$ac_try") 2>&5
5208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209 (exit $ac_status); }; }; then
5212 echo "$as_me: program exited with status $ac_status" >&5
5213 echo "$as_me: failed program was:" >&5
5214 sed 's/^/| /' conftest.$ac_ext >&5
5219 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5226 { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
5227 echo "${ECHO_T}$ac_cv_kthread" >&6; }
5230 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
5232 # -pthread, if available, provides the right #defines
5233 # and linker options to make pthread_create available
5234 # Some compilers won't report that they do not support -pthread,
5235 # so we need to run a program to see whether it really made the
5236 # function available.
5237 { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
5238 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; }
5239 if test "${ac_cv_thread+set}" = set; then
5240 echo $ECHO_N "(cached) $ECHO_C" >&6
5244 if test "$cross_compiling" = yes; then
5247 cat >conftest.$ac_ext <<_ACEOF
5250 cat confdefs.h >>conftest.$ac_ext
5251 cat >>conftest.$ac_ext <<_ACEOF
5252 /* end confdefs.h. */
5254 #include <pthread.h>
5256 void* routine(void* p){return NULL;}
5260 if(pthread_create(&p,NULL,routine,NULL)!=0)
5262 (void)pthread_detach(p);
5267 rm -f conftest$ac_exeext
5268 if { (ac_try="$ac_link"
5270 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5271 *) ac_try_echo
=$ac_try;;
5273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5274 (eval "$ac_link") 2>&5
5276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5278 { (case "(($ac_try" in
5279 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5280 *) ac_try_echo=$ac_try;;
5282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5283 (eval "$ac_try") 2>&5
5285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286 (exit $ac_status); }; }; then
5289 echo "$as_me: program exited with status $ac_status" >&5
5290 echo "$as_me: failed program was:" >&5
5291 sed 's/^/| /' conftest.$ac_ext >&5
5296 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5303 { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
5304 echo "${ECHO_T}$ac_cv_pthread" >&6; }
5307 # If we have set a CC compiler flag for thread support then
5308 # check if it works for CXX, too.
5312 { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
5313 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; }
5316 if test "$ac_cv_kpthread" = "yes"
5318 CXX="$CXX -Kpthread"
5319 ac_cv_cxx_thread=yes
5320 elif test "$ac_cv_kthread" = "yes"
5323 ac_cv_cxx_thread=yes
5324 elif test "$ac_cv_pthread" = "yes"
5327 ac_cv_cxx_thread=yes
5330 if test $ac_cv_cxx_thread = yes
5332 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
5333 $CXX -c conftest.$ac_ext 2>&5
5334 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
5335 && test -s conftest$ac_exeext && ./conftest$ac_exeext
5337 ac_cv_cxx_thread=yes
5343 { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
5344 echo "${ECHO_T}$ac_cv_cxx_thread" >&6; }
5349 # checks for header files
5350 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5351 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5352 if test "${ac_cv_header_stdc+set}" = set; then
5353 echo $ECHO_N "(cached) $ECHO_C" >&6
5355 cat >conftest.$ac_ext <<_ACEOF
5358 cat confdefs.h >>conftest.$ac_ext
5359 cat >>conftest.$ac_ext <<_ACEOF
5360 /* end confdefs.h. */
5374 rm -f conftest.$ac_objext
5375 if { (ac_try="$ac_compile"
5377 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5378 *) ac_try_echo
=$ac_try;;
5380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5381 (eval "$ac_compile") 2>conftest.er1
5383 grep -v '^ *+' conftest.er1
>conftest.err
5385 cat conftest.err
>&5
5386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387 (exit $ac_status); } && {
5388 test -z "$ac_c_werror_flag" ||
5389 test ! -s conftest.err
5390 } && test -s conftest.
$ac_objext; then
5391 ac_cv_header_stdc
=yes
5393 echo "$as_me: failed program was:" >&5
5394 sed 's/^/| /' conftest.
$ac_ext >&5
5396 ac_cv_header_stdc
=no
5399 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5401 if test $ac_cv_header_stdc = yes; then
5402 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5403 cat >conftest.
$ac_ext <<_ACEOF
5406 cat confdefs.h
>>conftest.
$ac_ext
5407 cat >>conftest.
$ac_ext <<_ACEOF
5408 /* end confdefs.h. */
5412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5413 $EGREP "memchr" >/dev
/null
2>&1; then
5416 ac_cv_header_stdc
=no
5422 if test $ac_cv_header_stdc = yes; then
5423 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5424 cat >conftest.
$ac_ext <<_ACEOF
5427 cat confdefs.h
>>conftest.
$ac_ext
5428 cat >>conftest.
$ac_ext <<_ACEOF
5429 /* end confdefs.h. */
5433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5434 $EGREP "free" >/dev
/null
2>&1; then
5437 ac_cv_header_stdc
=no
5443 if test $ac_cv_header_stdc = yes; then
5444 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5445 if test "$cross_compiling" = yes; then
5448 cat >conftest.
$ac_ext <<_ACEOF
5451 cat confdefs.h
>>conftest.
$ac_ext
5452 cat >>conftest.
$ac_ext <<_ACEOF
5453 /* end confdefs.h. */
5456 #if ((' ' & 0x0FF) == 0x020)
5457 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5458 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5460 # define ISLOWER(c) \
5461 (('a' <= (c) && (c) <= 'i') \
5462 || ('j' <= (c) && (c) <= 'r') \
5463 || ('s' <= (c) && (c) <= 'z'))
5464 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5467 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5472 for (i = 0; i < 256; i++)
5473 if (XOR (islower (i), ISLOWER (i))
5474 || toupper (i) != TOUPPER (i))
5479 rm -f conftest
$ac_exeext
5480 if { (ac_try
="$ac_link"
5482 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5483 *) ac_try_echo=$ac_try;;
5485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5486 (eval "$ac_link") 2>&5
5488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5490 { (case "(($ac_try" in
5491 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5492 *) ac_try_echo
=$ac_try;;
5494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5495 (eval "$ac_try") 2>&5
5497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498 (exit $ac_status); }; }; then
5501 echo "$as_me: program exited with status $ac_status" >&5
5502 echo "$as_me: failed program was:" >&5
5503 sed 's/^/| /' conftest.
$ac_ext >&5
5506 ac_cv_header_stdc
=no
5508 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5514 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5515 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5516 if test $ac_cv_header_stdc = yes; then
5518 cat >>confdefs.h
<<\_ACEOF
5519 #define STDC_HEADERS 1
5524 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5534 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5535 inttypes.h stdint.h unistd.h
5537 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5538 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5540 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5541 echo $ECHO_N "(cached) $ECHO_C" >&6
5543 cat >conftest.
$ac_ext <<_ACEOF
5546 cat confdefs.h
>>conftest.
$ac_ext
5547 cat >>conftest.
$ac_ext <<_ACEOF
5548 /* end confdefs.h. */
5549 $ac_includes_default
5551 #include <$ac_header>
5553 rm -f conftest.
$ac_objext
5554 if { (ac_try
="$ac_compile"
5556 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5557 *) ac_try_echo=$ac_try;;
5559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5560 (eval "$ac_compile") 2>conftest.er1
5562 grep -v '^ *+' conftest.er1 >conftest.err
5564 cat conftest.err >&5
5565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566 (exit $ac_status); } && {
5567 test -z "$ac_c_werror_flag" ||
5568 test ! -s conftest.err
5569 } && test -s conftest.$ac_objext; then
5570 eval "$as_ac_Header=yes"
5572 echo "$as_me: failed program was:" >&5
5573 sed 's/^/| /' conftest.$ac_ext >&5
5575 eval "$as_ac_Header=no"
5578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5580 ac_res=`eval echo '${'$as_ac_Header'}'`
5581 { echo "$as_me:$LINENO: result: $ac_res" >&5
5582 echo "${ECHO_T}$ac_res" >&6; }
5583 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5584 cat >>confdefs.h <<_ACEOF
5585 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5647 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
5649 ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
5650 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
5652 sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
5653 sys/lock.h sys/mkdev.h sys/modem.h \
5654 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
5655 sys/termio.h sys/time.h \
5656 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
5657 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
5658 bluetooth/bluetooth.h linux/tipc.h
5660 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5661 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5662 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5664 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5665 echo $ECHO_N "(cached) $ECHO_C" >&6
5667 ac_res=`eval echo '${'$as_ac_Header'}'`
5668 { echo "$as_me:$LINENO: result: $ac_res" >&5
5669 echo "${ECHO_T}$ac_res" >&6; }
5671 # Is the header compilable?
5672 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5673 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5674 cat >conftest.$ac_ext <<_ACEOF
5677 cat confdefs.h >>conftest.$ac_ext
5678 cat >>conftest.$ac_ext <<_ACEOF
5679 /* end confdefs.h. */
5680 $ac_includes_default
5681 #include <$ac_header>
5683 rm -f conftest.$ac_objext
5684 if { (ac_try="$ac_compile"
5686 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5687 *) ac_try_echo
=$ac_try;;
5689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5690 (eval "$ac_compile") 2>conftest.er1
5692 grep -v '^ *+' conftest.er1
>conftest.err
5694 cat conftest.err
>&5
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); } && {
5697 test -z "$ac_c_werror_flag" ||
5698 test ! -s conftest.err
5699 } && test -s conftest.
$ac_objext; then
5700 ac_header_compiler
=yes
5702 echo "$as_me: failed program was:" >&5
5703 sed 's/^/| /' conftest.
$ac_ext >&5
5705 ac_header_compiler
=no
5708 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5709 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5710 echo "${ECHO_T}$ac_header_compiler" >&6; }
5712 # Is the header present?
5713 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5714 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5715 cat >conftest.
$ac_ext <<_ACEOF
5718 cat confdefs.h
>>conftest.
$ac_ext
5719 cat >>conftest.
$ac_ext <<_ACEOF
5720 /* end confdefs.h. */
5721 #include <$ac_header>
5723 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5725 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5726 *) ac_try_echo=$ac_try;;
5728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5729 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5731 grep -v '^ *+' conftest.er1 >conftest.err
5733 cat conftest.err >&5
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); } >/dev/null && {
5736 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5737 test ! -s conftest.err
5739 ac_header_preproc=yes
5741 echo "$as_me: failed program was:" >&5
5742 sed 's/^/| /' conftest.$ac_ext >&5
5744 ac_header_preproc=no
5747 rm -f conftest.err conftest.$ac_ext
5748 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5749 echo "${ECHO_T}$ac_header_preproc" >&6; }
5751 # So? What about this header?
5752 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5754 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5755 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5756 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5757 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5758 ac_header_preproc=yes
5761 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5762 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5763 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5764 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5765 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5766 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5767 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5768 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5769 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5770 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5771 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5772 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5774 ## -------------------------------------- ##
5775 ## Report this to http://bugs.python.org/ ##
5776 ## -------------------------------------- ##
5778 ) | sed "s/^/$as_me: WARNING: /" >&2
5781 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5784 echo $ECHO_N "(cached) $ECHO_C" >&6
5786 eval "$as_ac_Header=\$ac_header_preproc"
5788 ac_res=`eval echo '${'$as_ac_Header'}'`
5789 { echo "$as_me:$LINENO: result: $ac_res" >&5
5790 echo "${ECHO_T}$ac_res" >&6; }
5793 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5794 cat >>confdefs.h <<_ACEOF
5795 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5808 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5809 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" |
$as_tr_sh`
5810 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5811 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5812 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5813 echo $ECHO_N "(cached) $ECHO_C" >&6
5815 cat >conftest.$ac_ext <<_ACEOF
5818 cat confdefs.h >>conftest.$ac_ext
5819 cat >>conftest.$ac_ext <<_ACEOF
5820 /* end confdefs.h. */
5821 #include <sys/types.h>
5833 rm -f conftest.$ac_objext
5834 if { (ac_try="$ac_compile"
5836 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5837 *) ac_try_echo
=$ac_try;;
5839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5840 (eval "$ac_compile") 2>conftest.er1
5842 grep -v '^ *+' conftest.er1
>conftest.err
5844 cat conftest.err
>&5
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); } && {
5847 test -z "$ac_c_werror_flag" ||
5848 test ! -s conftest.err
5849 } && test -s conftest.
$ac_objext; then
5850 eval "$as_ac_Header=yes"
5852 echo "$as_me: failed program was:" >&5
5853 sed 's/^/| /' conftest.
$ac_ext >&5
5855 eval "$as_ac_Header=no"
5858 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5860 ac_res
=`eval echo '${'$as_ac_Header'}'`
5861 { echo "$as_me:$LINENO: result: $ac_res" >&5
5862 echo "${ECHO_T}$ac_res" >&6; }
5863 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5864 cat >>confdefs.h
<<_ACEOF
5865 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5868 ac_header_dirent
=$ac_hdr; break
5872 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5873 if test $ac_header_dirent = dirent.h
; then
5874 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5875 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5876 if test "${ac_cv_search_opendir+set}" = set; then
5877 echo $ECHO_N "(cached) $ECHO_C" >&6
5879 ac_func_search_save_LIBS
=$LIBS
5880 cat >conftest.
$ac_ext <<_ACEOF
5883 cat confdefs.h
>>conftest.
$ac_ext
5884 cat >>conftest.
$ac_ext <<_ACEOF
5885 /* end confdefs.h. */
5887 /* Override any GCC internal prototype to avoid an error.
5888 Use char because int might match the return type of a GCC
5889 builtin and then its argument prototype would still apply. */
5902 for ac_lib
in '' dir
; do
5903 if test -z "$ac_lib"; then
5904 ac_res
="none required"
5907 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5909 rm -f conftest.
$ac_objext conftest
$ac_exeext
5910 if { (ac_try
="$ac_link"
5912 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5913 *) ac_try_echo=$ac_try;;
5915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5916 (eval "$ac_link") 2>conftest.er1
5918 grep -v '^ *+' conftest.er1 >conftest.err
5920 cat conftest.err >&5
5921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922 (exit $ac_status); } && {
5923 test -z "$ac_c_werror_flag" ||
5924 test ! -s conftest.err
5925 } && test -s conftest$ac_exeext &&
5926 $as_test_x conftest$ac_exeext; then
5927 ac_cv_search_opendir=$ac_res
5929 echo "$as_me: failed program was:" >&5
5930 sed 's/^/| /' conftest.$ac_ext >&5
5935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5937 if test "${ac_cv_search_opendir+set}" = set; then
5941 if test "${ac_cv_search_opendir+set}" = set; then
5944 ac_cv_search_opendir=no
5947 LIBS=$ac_func_search_save_LIBS
5949 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5950 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5951 ac_res=$ac_cv_search_opendir
5952 if test "$ac_res" != no; then
5953 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5958 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5959 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5960 if test "${ac_cv_search_opendir+set}" = set; then
5961 echo $ECHO_N "(cached) $ECHO_C" >&6
5963 ac_func_search_save_LIBS=$LIBS
5964 cat >conftest.$ac_ext <<_ACEOF
5967 cat confdefs.h >>conftest.$ac_ext
5968 cat >>conftest.$ac_ext <<_ACEOF
5969 /* end confdefs.h. */
5971 /* Override any GCC internal prototype to avoid an error.
5972 Use char because int might match the return type of a GCC
5973 builtin and then its argument prototype would still apply. */
5986 for ac_lib in '' x; do
5987 if test -z "$ac_lib"; then
5988 ac_res="none required"
5991 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5993 rm -f conftest.$ac_objext conftest$ac_exeext
5994 if { (ac_try="$ac_link"
5996 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5997 *) ac_try_echo
=$ac_try;;
5999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6000 (eval "$ac_link") 2>conftest.er1
6002 grep -v '^ *+' conftest.er1
>conftest.err
6004 cat conftest.err
>&5
6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); } && {
6007 test -z "$ac_c_werror_flag" ||
6008 test ! -s conftest.err
6009 } && test -s conftest
$ac_exeext &&
6010 $as_test_x conftest
$ac_exeext; then
6011 ac_cv_search_opendir
=$ac_res
6013 echo "$as_me: failed program was:" >&5
6014 sed 's/^/| /' conftest.
$ac_ext >&5
6019 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6021 if test "${ac_cv_search_opendir+set}" = set; then
6025 if test "${ac_cv_search_opendir+set}" = set; then
6028 ac_cv_search_opendir
=no
6031 LIBS
=$ac_func_search_save_LIBS
6033 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6034 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
6035 ac_res
=$ac_cv_search_opendir
6036 if test "$ac_res" != no
; then
6037 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6043 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
6044 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
6045 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
6046 echo $ECHO_N "(cached) $ECHO_C" >&6
6048 cat >conftest.
$ac_ext <<_ACEOF
6051 cat confdefs.h
>>conftest.
$ac_ext
6052 cat >>conftest.
$ac_ext <<_ACEOF
6053 /* end confdefs.h. */
6054 #include <sys/types.h>
6058 return makedev(0, 0);
6063 rm -f conftest.
$ac_objext conftest
$ac_exeext
6064 if { (ac_try
="$ac_link"
6066 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6067 *) ac_try_echo=$ac_try;;
6069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6070 (eval "$ac_link") 2>conftest.er1
6072 grep -v '^ *+' conftest.er1 >conftest.err
6074 cat conftest.err >&5
6075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076 (exit $ac_status); } && {
6077 test -z "$ac_c_werror_flag" ||
6078 test ! -s conftest.err
6079 } && test -s conftest$ac_exeext &&
6080 $as_test_x conftest$ac_exeext; then
6081 ac_cv_header_sys_types_h_makedev=yes
6083 echo "$as_me: failed program was:" >&5
6084 sed 's/^/| /' conftest.$ac_ext >&5
6086 ac_cv_header_sys_types_h_makedev=no
6089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6090 conftest$ac_exeext conftest.$ac_ext
6093 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
6094 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
6096 if test $ac_cv_header_sys_types_h_makedev = no; then
6097 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6098 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6099 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6100 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6101 echo $ECHO_N "(cached) $ECHO_C" >&6
6103 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6104 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6106 # Is the header compilable?
6107 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
6108 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
6109 cat >conftest.$ac_ext <<_ACEOF
6112 cat confdefs.h >>conftest.$ac_ext
6113 cat >>conftest.$ac_ext <<_ACEOF
6114 /* end confdefs.h. */
6115 $ac_includes_default
6116 #include <sys/mkdev.h>
6118 rm -f conftest.$ac_objext
6119 if { (ac_try="$ac_compile"
6121 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6122 *) ac_try_echo
=$ac_try;;
6124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6125 (eval "$ac_compile") 2>conftest.er1
6127 grep -v '^ *+' conftest.er1
>conftest.err
6129 cat conftest.err
>&5
6130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131 (exit $ac_status); } && {
6132 test -z "$ac_c_werror_flag" ||
6133 test ! -s conftest.err
6134 } && test -s conftest.
$ac_objext; then
6135 ac_header_compiler
=yes
6137 echo "$as_me: failed program was:" >&5
6138 sed 's/^/| /' conftest.
$ac_ext >&5
6140 ac_header_compiler
=no
6143 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6144 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6145 echo "${ECHO_T}$ac_header_compiler" >&6; }
6147 # Is the header present?
6148 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
6149 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
6150 cat >conftest.
$ac_ext <<_ACEOF
6153 cat confdefs.h
>>conftest.
$ac_ext
6154 cat >>conftest.
$ac_ext <<_ACEOF
6155 /* end confdefs.h. */
6156 #include <sys/mkdev.h>
6158 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6160 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6161 *) ac_try_echo=$ac_try;;
6163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6164 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6166 grep -v '^ *+' conftest.er1 >conftest.err
6168 cat conftest.err >&5
6169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170 (exit $ac_status); } >/dev/null && {
6171 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6172 test ! -s conftest.err
6174 ac_header_preproc=yes
6176 echo "$as_me: failed program was:" >&5
6177 sed 's/^/| /' conftest.$ac_ext >&5
6179 ac_header_preproc=no
6182 rm -f conftest.err conftest.$ac_ext
6183 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6184 echo "${ECHO_T}$ac_header_preproc" >&6; }
6186 # So? What about this header?
6187 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6189 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6190 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6191 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
6192 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
6193 ac_header_preproc=yes
6196 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6197 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6198 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6199 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6200 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
6201 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
6202 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
6203 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
6204 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6205 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6206 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
6207 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
6209 ## -------------------------------------- ##
6210 ## Report this to http://bugs.python.org/ ##
6211 ## -------------------------------------- ##
6213 ) | sed "s/^/$as_me: WARNING: /" >&2
6216 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6217 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6218 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6219 echo $ECHO_N "(cached) $ECHO_C" >&6
6221 ac_cv_header_sys_mkdev_h=$ac_header_preproc
6223 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6224 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6227 if test $ac_cv_header_sys_mkdev_h = yes; then
6229 cat >>confdefs.h <<\_ACEOF
6230 #define MAJOR_IN_MKDEV 1
6237 if test $ac_cv_header_sys_mkdev_h = no; then
6238 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6239 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6240 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6241 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6242 echo $ECHO_N "(cached) $ECHO_C" >&6
6244 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6245 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6247 # Is the header compilable?
6248 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6249 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
6250 cat >conftest.$ac_ext <<_ACEOF
6253 cat confdefs.h >>conftest.$ac_ext
6254 cat >>conftest.$ac_ext <<_ACEOF
6255 /* end confdefs.h. */
6256 $ac_includes_default
6257 #include <sys/sysmacros.h>
6259 rm -f conftest.$ac_objext
6260 if { (ac_try="$ac_compile"
6262 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6263 *) ac_try_echo
=$ac_try;;
6265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6266 (eval "$ac_compile") 2>conftest.er1
6268 grep -v '^ *+' conftest.er1
>conftest.err
6270 cat conftest.err
>&5
6271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272 (exit $ac_status); } && {
6273 test -z "$ac_c_werror_flag" ||
6274 test ! -s conftest.err
6275 } && test -s conftest.
$ac_objext; then
6276 ac_header_compiler
=yes
6278 echo "$as_me: failed program was:" >&5
6279 sed 's/^/| /' conftest.
$ac_ext >&5
6281 ac_header_compiler
=no
6284 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6285 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6286 echo "${ECHO_T}$ac_header_compiler" >&6; }
6288 # Is the header present?
6289 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6290 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
6291 cat >conftest.
$ac_ext <<_ACEOF
6294 cat confdefs.h
>>conftest.
$ac_ext
6295 cat >>conftest.
$ac_ext <<_ACEOF
6296 /* end confdefs.h. */
6297 #include <sys/sysmacros.h>
6299 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6301 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6302 *) ac_try_echo=$ac_try;;
6304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6305 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6307 grep -v '^ *+' conftest.er1 >conftest.err
6309 cat conftest.err >&5
6310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); } >/dev/null && {
6312 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6313 test ! -s conftest.err
6315 ac_header_preproc=yes
6317 echo "$as_me: failed program was:" >&5
6318 sed 's/^/| /' conftest.$ac_ext >&5
6320 ac_header_preproc=no
6323 rm -f conftest.err conftest.$ac_ext
6324 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6325 echo "${ECHO_T}$ac_header_preproc" >&6; }
6327 # So? What about this header?
6328 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6330 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6331 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6332 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6333 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
6334 ac_header_preproc=yes
6337 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6338 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6339 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6340 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6341 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6342 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6343 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
6344 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
6345 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6346 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
6347 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6348 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
6350 ## -------------------------------------- ##
6351 ## Report this to http://bugs.python.org/ ##
6352 ## -------------------------------------- ##
6354 ) | sed "s/^/$as_me: WARNING: /" >&2
6357 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6358 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6359 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6360 echo $ECHO_N "(cached) $ECHO_C" >&6
6362 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
6364 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6365 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6368 if test $ac_cv_header_sys_sysmacros_h = yes; then
6370 cat >>confdefs.h <<\_ACEOF
6371 #define MAJOR_IN_SYSMACROS 1
6381 # On Solaris, term.h requires curses.h
6383 for ac_header in term.h
6385 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6386 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6388 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6389 echo $ECHO_N "(cached) $ECHO_C" >&6
6391 cat >conftest.$ac_ext <<_ACEOF
6394 cat confdefs.h >>conftest.$ac_ext
6395 cat >>conftest.$ac_ext <<_ACEOF
6396 /* end confdefs.h. */
6398 #ifdef HAVE_CURSES_H
6403 #include <$ac_header>
6405 rm -f conftest.$ac_objext
6406 if { (ac_try="$ac_compile"
6408 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6409 *) ac_try_echo
=$ac_try;;
6411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6412 (eval "$ac_compile") 2>conftest.er1
6414 grep -v '^ *+' conftest.er1
>conftest.err
6416 cat conftest.err
>&5
6417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418 (exit $ac_status); } && {
6419 test -z "$ac_c_werror_flag" ||
6420 test ! -s conftest.err
6421 } && test -s conftest.
$ac_objext; then
6422 eval "$as_ac_Header=yes"
6424 echo "$as_me: failed program was:" >&5
6425 sed 's/^/| /' conftest.
$ac_ext >&5
6427 eval "$as_ac_Header=no"
6430 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6432 ac_res
=`eval echo '${'$as_ac_Header'}'`
6433 { echo "$as_me:$LINENO: result: $ac_res" >&5
6434 echo "${ECHO_T}$ac_res" >&6; }
6435 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6436 cat >>confdefs.h
<<_ACEOF
6437 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6445 # On Linux, netlink.h requires asm/types.h
6447 for ac_header
in linux
/netlink.h
6449 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6450 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6452 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6453 echo $ECHO_N "(cached) $ECHO_C" >&6
6455 cat >conftest.
$ac_ext <<_ACEOF
6458 cat confdefs.h
>>conftest.
$ac_ext
6459 cat >>conftest.
$ac_ext <<_ACEOF
6460 /* end confdefs.h. */
6462 #ifdef HAVE_ASM_TYPES_H
6463 #include <asm/types.h>
6465 #ifdef HAVE_SYS_SOCKET_H
6466 #include <sys/socket.h>
6470 #include <$ac_header>
6472 rm -f conftest.
$ac_objext
6473 if { (ac_try
="$ac_compile"
6475 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6476 *) ac_try_echo=$ac_try;;
6478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6479 (eval "$ac_compile") 2>conftest.er1
6481 grep -v '^ *+' conftest.er1 >conftest.err
6483 cat conftest.err >&5
6484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485 (exit $ac_status); } && {
6486 test -z "$ac_c_werror_flag" ||
6487 test ! -s conftest.err
6488 } && test -s conftest.$ac_objext; then
6489 eval "$as_ac_Header=yes"
6491 echo "$as_me: failed program was:" >&5
6492 sed 's/^/| /' conftest.$ac_ext >&5
6494 eval "$as_ac_Header=no"
6497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6499 ac_res=`eval echo '${'$as_ac_Header'}'`
6500 { echo "$as_me:$LINENO: result: $ac_res" >&5
6501 echo "${ECHO_T}$ac_res" >&6; }
6502 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6503 cat >>confdefs.h <<_ACEOF
6504 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6512 # checks for typedefs
6514 { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
6515 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6; }
6516 cat >conftest.$ac_ext <<_ACEOF
6519 cat confdefs.h >>conftest.$ac_ext
6520 cat >>conftest.$ac_ext <<_ACEOF
6521 /* end confdefs.h. */
6525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6526 $EGREP "clock_t" >/dev/null 2>&1; then
6531 cat >>confdefs.h <<\_ACEOF
6532 #define clock_t long
6539 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
6540 echo "${ECHO_T}$was_it_defined" >&6; }
6542 # Check whether using makedev requires defining _OSF_SOURCE
6543 { echo "$as_me:$LINENO: checking for makedev" >&5
6544 echo $ECHO_N "checking for makedev... $ECHO_C" >&6; }
6545 cat >conftest.$ac_ext <<_ACEOF
6548 cat confdefs.h >>conftest.$ac_ext
6549 cat >>conftest.$ac_ext <<_ACEOF
6550 /* end confdefs.h. */
6551 #include <sys/types.h>
6560 rm -f conftest.$ac_objext conftest$ac_exeext
6561 if { (ac_try="$ac_link"
6563 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6564 *) ac_try_echo
=$ac_try;;
6566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6567 (eval "$ac_link") 2>conftest.er1
6569 grep -v '^ *+' conftest.er1
>conftest.err
6571 cat conftest.err
>&5
6572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573 (exit $ac_status); } && {
6574 test -z "$ac_c_werror_flag" ||
6575 test ! -s conftest.err
6576 } && test -s conftest
$ac_exeext &&
6577 $as_test_x conftest
$ac_exeext; then
6578 ac_cv_has_makedev
=yes
6580 echo "$as_me: failed program was:" >&5
6581 sed 's/^/| /' conftest.
$ac_ext >&5
6583 ac_cv_has_makedev
=no
6586 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6587 conftest
$ac_exeext conftest.
$ac_ext
6588 if test "$ac_cv_has_makedev" = "no"; then
6589 # we didn't link, try if _OSF_SOURCE will allow us to link
6590 cat >conftest.
$ac_ext <<_ACEOF
6593 cat confdefs.h
>>conftest.
$ac_ext
6594 cat >>conftest.
$ac_ext <<_ACEOF
6595 /* end confdefs.h. */
6597 #define _OSF_SOURCE 1
6598 #include <sys/types.h>
6608 rm -f conftest.
$ac_objext conftest
$ac_exeext
6609 if { (ac_try
="$ac_link"
6611 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6612 *) ac_try_echo=$ac_try;;
6614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6615 (eval "$ac_link") 2>conftest.er1
6617 grep -v '^ *+' conftest.er1 >conftest.err
6619 cat conftest.err >&5
6620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621 (exit $ac_status); } && {
6622 test -z "$ac_c_werror_flag" ||
6623 test ! -s conftest.err
6624 } && test -s conftest$ac_exeext &&
6625 $as_test_x conftest$ac_exeext; then
6626 ac_cv_has_makedev=yes
6628 echo "$as_me: failed program was:" >&5
6629 sed 's/^/| /' conftest.$ac_ext >&5
6631 ac_cv_has_makedev=no
6634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6635 conftest$ac_exeext conftest.$ac_ext
6636 if test "$ac_cv_has_makedev" = "yes"; then
6638 cat >>confdefs.h <<\_ACEOF
6639 #define _OSF_SOURCE 1
6644 { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
6645 echo "${ECHO_T}$ac_cv_has_makedev" >&6; }
6646 if test "$ac_cv_has_makedev" = "yes"; then
6648 cat >>confdefs.h <<\_ACEOF
6649 #define HAVE_MAKEDEV 1
6654 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
6655 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
6656 # defined, but the compiler does not support pragma redefine_extname,
6657 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
6658 # structures (such as rlimit64) without declaring them. As a
6659 # work-around, disable LFS on such configurations
6662 { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
6663 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; }
6664 cat >conftest.$ac_ext <<_ACEOF
6667 cat confdefs.h >>conftest.$ac_ext
6668 cat >>conftest.$ac_ext <<_ACEOF
6669 /* end confdefs.h. */
6671 #define _LARGEFILE_SOURCE 1
6672 #define _FILE_OFFSET_BITS 64
6673 #include <sys/resource.h>
6683 rm -f conftest.$ac_objext
6684 if { (ac_try="$ac_compile"
6686 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6687 *) ac_try_echo
=$ac_try;;
6689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6690 (eval "$ac_compile") 2>conftest.er1
6692 grep -v '^ *+' conftest.er1
>conftest.err
6694 cat conftest.err
>&5
6695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696 (exit $ac_status); } && {
6697 test -z "$ac_c_werror_flag" ||
6698 test ! -s conftest.err
6699 } && test -s conftest.
$ac_objext; then
6702 echo "$as_me: failed program was:" >&5
6703 sed 's/^/| /' conftest.
$ac_ext >&5
6708 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6709 { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
6710 echo "${ECHO_T}$sol_lfs_bug" >&6; }
6711 if test "$sol_lfs_bug" = "yes"; then
6715 if test "$use_lfs" = "yes"; then
6716 # Two defines needed to enable largefile support on various platforms
6717 # These may affect some typedefs
6719 cat >>confdefs.h
<<\_ACEOF
6720 #define _LARGEFILE_SOURCE 1
6724 cat >>confdefs.h
<<\_ACEOF
6725 #define _FILE_OFFSET_BITS 64
6730 # Add some code to confdefs.h so that the test for off_t works on SCO
6731 cat >> confdefs.h
<<\EOF
6737 # Type availability checks
6738 { echo "$as_me:$LINENO: checking for mode_t" >&5
6739 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
6740 if test "${ac_cv_type_mode_t+set}" = set; then
6741 echo $ECHO_N "(cached) $ECHO_C" >&6
6743 cat >conftest.
$ac_ext <<_ACEOF
6746 cat confdefs.h
>>conftest.
$ac_ext
6747 cat >>conftest.
$ac_ext <<_ACEOF
6748 /* end confdefs.h. */
6749 $ac_includes_default
6750 typedef mode_t ac__type_new_;
6754 if ((ac__type_new_ *) 0)
6756 if (sizeof (ac__type_new_))
6762 rm -f conftest.
$ac_objext
6763 if { (ac_try
="$ac_compile"
6765 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6766 *) ac_try_echo=$ac_try;;
6768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6769 (eval "$ac_compile") 2>conftest.er1
6771 grep -v '^ *+' conftest.er1 >conftest.err
6773 cat conftest.err >&5
6774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775 (exit $ac_status); } && {
6776 test -z "$ac_c_werror_flag" ||
6777 test ! -s conftest.err
6778 } && test -s conftest.$ac_objext; then
6779 ac_cv_type_mode_t=yes
6781 echo "$as_me: failed program was:" >&5
6782 sed 's/^/| /' conftest.$ac_ext >&5
6784 ac_cv_type_mode_t=no
6787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6789 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6790 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
6791 if test $ac_cv_type_mode_t = yes; then
6795 cat >>confdefs.h <<_ACEOF
6801 { echo "$as_me:$LINENO: checking for off_t" >&5
6802 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6803 if test "${ac_cv_type_off_t+set}" = set; then
6804 echo $ECHO_N "(cached) $ECHO_C" >&6
6806 cat >conftest.$ac_ext <<_ACEOF
6809 cat confdefs.h >>conftest.$ac_ext
6810 cat >>conftest.$ac_ext <<_ACEOF
6811 /* end confdefs.h. */
6812 $ac_includes_default
6813 typedef off_t ac__type_new_;
6817 if ((ac__type_new_ *) 0)
6819 if (sizeof (ac__type_new_))
6825 rm -f conftest.$ac_objext
6826 if { (ac_try="$ac_compile"
6828 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6829 *) ac_try_echo
=$ac_try;;
6831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6832 (eval "$ac_compile") 2>conftest.er1
6834 grep -v '^ *+' conftest.er1
>conftest.err
6836 cat conftest.err
>&5
6837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838 (exit $ac_status); } && {
6839 test -z "$ac_c_werror_flag" ||
6840 test ! -s conftest.err
6841 } && test -s conftest.
$ac_objext; then
6842 ac_cv_type_off_t
=yes
6844 echo "$as_me: failed program was:" >&5
6845 sed 's/^/| /' conftest.
$ac_ext >&5
6850 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6852 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6853 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6854 if test $ac_cv_type_off_t = yes; then
6858 cat >>confdefs.h
<<_ACEOF
6859 #define off_t long int
6864 { echo "$as_me:$LINENO: checking for pid_t" >&5
6865 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
6866 if test "${ac_cv_type_pid_t+set}" = set; then
6867 echo $ECHO_N "(cached) $ECHO_C" >&6
6869 cat >conftest.
$ac_ext <<_ACEOF
6872 cat confdefs.h
>>conftest.
$ac_ext
6873 cat >>conftest.
$ac_ext <<_ACEOF
6874 /* end confdefs.h. */
6875 $ac_includes_default
6876 typedef pid_t ac__type_new_;
6880 if ((ac__type_new_ *) 0)
6882 if (sizeof (ac__type_new_))
6888 rm -f conftest.
$ac_objext
6889 if { (ac_try
="$ac_compile"
6891 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6892 *) ac_try_echo=$ac_try;;
6894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6895 (eval "$ac_compile") 2>conftest.er1
6897 grep -v '^ *+' conftest.er1 >conftest.err
6899 cat conftest.err >&5
6900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901 (exit $ac_status); } && {
6902 test -z "$ac_c_werror_flag" ||
6903 test ! -s conftest.err
6904 } && test -s conftest.$ac_objext; then
6905 ac_cv_type_pid_t=yes
6907 echo "$as_me: failed program was:" >&5
6908 sed 's/^/| /' conftest.$ac_ext >&5
6913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6915 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6916 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
6917 if test $ac_cv_type_pid_t = yes; then
6921 cat >>confdefs.h <<_ACEOF
6927 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6928 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6929 if test "${ac_cv_type_signal+set}" = set; then
6930 echo $ECHO_N "(cached) $ECHO_C" >&6
6932 cat >conftest.$ac_ext <<_ACEOF
6935 cat confdefs.h >>conftest.$ac_ext
6936 cat >>conftest.$ac_ext <<_ACEOF
6937 /* end confdefs.h. */
6938 #include <sys/types.h>
6944 return *(signal (0, 0)) (0) == 1;
6949 rm -f conftest.$ac_objext
6950 if { (ac_try="$ac_compile"
6952 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6953 *) ac_try_echo
=$ac_try;;
6955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6956 (eval "$ac_compile") 2>conftest.er1
6958 grep -v '^ *+' conftest.er1
>conftest.err
6960 cat conftest.err
>&5
6961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962 (exit $ac_status); } && {
6963 test -z "$ac_c_werror_flag" ||
6964 test ! -s conftest.err
6965 } && test -s conftest.
$ac_objext; then
6966 ac_cv_type_signal
=int
6968 echo "$as_me: failed program was:" >&5
6969 sed 's/^/| /' conftest.
$ac_ext >&5
6971 ac_cv_type_signal
=void
6974 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6976 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6977 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6979 cat >>confdefs.h
<<_ACEOF
6980 #define RETSIGTYPE $ac_cv_type_signal
6984 { echo "$as_me:$LINENO: checking for size_t" >&5
6985 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6986 if test "${ac_cv_type_size_t+set}" = set; then
6987 echo $ECHO_N "(cached) $ECHO_C" >&6
6989 cat >conftest.
$ac_ext <<_ACEOF
6992 cat confdefs.h
>>conftest.
$ac_ext
6993 cat >>conftest.
$ac_ext <<_ACEOF
6994 /* end confdefs.h. */
6995 $ac_includes_default
6996 typedef size_t ac__type_new_;
7000 if ((ac__type_new_ *) 0)
7002 if (sizeof (ac__type_new_))
7008 rm -f conftest.
$ac_objext
7009 if { (ac_try
="$ac_compile"
7011 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7012 *) ac_try_echo=$ac_try;;
7014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7015 (eval "$ac_compile") 2>conftest.er1
7017 grep -v '^ *+' conftest.er1 >conftest.err
7019 cat conftest.err >&5
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); } && {
7022 test -z "$ac_c_werror_flag" ||
7023 test ! -s conftest.err
7024 } && test -s conftest.$ac_objext; then
7025 ac_cv_type_size_t=yes
7027 echo "$as_me: failed program was:" >&5
7028 sed 's/^/| /' conftest.$ac_ext >&5
7030 ac_cv_type_size_t=no
7033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7035 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7036 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
7037 if test $ac_cv_type_size_t = yes; then
7041 cat >>confdefs.h <<_ACEOF
7042 #define size_t unsigned int
7047 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7048 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
7049 if test "${ac_cv_type_uid_t+set}" = set; then
7050 echo $ECHO_N "(cached) $ECHO_C" >&6
7052 cat >conftest.$ac_ext <<_ACEOF
7055 cat confdefs.h >>conftest.$ac_ext
7056 cat >>conftest.$ac_ext <<_ACEOF
7057 /* end confdefs.h. */
7058 #include <sys/types.h>
7061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7062 $EGREP "uid_t" >/dev/null 2>&1; then
7063 ac_cv_type_uid_t=yes
7070 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7071 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7072 if test $ac_cv_type_uid_t = no; then
7074 cat >>confdefs.h <<\_ACEOF
7079 cat >>confdefs.h <<\_ACEOF
7086 { echo "$as_me:$LINENO: checking for uint32_t" >&5
7087 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
7088 if test "${ac_cv_c_uint32_t+set}" = set; then
7089 echo $ECHO_N "(cached) $ECHO_C" >&6
7092 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
7093 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7094 cat >conftest.$ac_ext <<_ACEOF
7097 cat confdefs.h >>conftest.$ac_ext
7098 cat >>conftest.$ac_ext <<_ACEOF
7099 /* end confdefs.h. */
7100 $ac_includes_default
7104 static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
7111 rm -f conftest.$ac_objext
7112 if { (ac_try="$ac_compile"
7114 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7115 *) ac_try_echo
=$ac_try;;
7117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7118 (eval "$ac_compile") 2>conftest.er1
7120 grep -v '^ *+' conftest.er1
>conftest.err
7122 cat conftest.err
>&5
7123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); } && {
7125 test -z "$ac_c_werror_flag" ||
7126 test ! -s conftest.err
7127 } && test -s conftest.
$ac_objext; then
7129 uint32_t
) ac_cv_c_uint32_t
=yes ;;
7130 *) ac_cv_c_uint32_t
=$ac_type ;;
7134 echo "$as_me: failed program was:" >&5
7135 sed 's/^/| /' conftest.
$ac_ext >&5
7140 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7141 test "$ac_cv_c_uint32_t" != no
&& break
7144 { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
7145 echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
7146 case $ac_cv_c_uint32_t in #(
7150 cat >>confdefs.h
<<\_ACEOF
7155 cat >>confdefs.h
<<_ACEOF
7156 #define uint32_t $ac_cv_c_uint32_t
7162 { echo "$as_me:$LINENO: checking for uint64_t" >&5
7163 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
7164 if test "${ac_cv_c_uint64_t+set}" = set; then
7165 echo $ECHO_N "(cached) $ECHO_C" >&6
7168 for ac_type
in 'uint64_t' 'unsigned int' 'unsigned long int' \
7169 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7170 cat >conftest.
$ac_ext <<_ACEOF
7173 cat confdefs.h
>>conftest.
$ac_ext
7174 cat >>conftest.
$ac_ext <<_ACEOF
7175 /* end confdefs.h. */
7176 $ac_includes_default
7180 static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
7187 rm -f conftest.
$ac_objext
7188 if { (ac_try
="$ac_compile"
7190 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7191 *) ac_try_echo=$ac_try;;
7193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7194 (eval "$ac_compile") 2>conftest.er1
7196 grep -v '^ *+' conftest.er1 >conftest.err
7198 cat conftest.err >&5
7199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7200 (exit $ac_status); } && {
7201 test -z "$ac_c_werror_flag" ||
7202 test ! -s conftest.err
7203 } && test -s conftest.$ac_objext; then
7205 uint64_t) ac_cv_c_uint64_t=yes ;;
7206 *) ac_cv_c_uint64_t=$ac_type ;;
7210 echo "$as_me: failed program was:" >&5
7211 sed 's/^/| /' conftest.$ac_ext >&5
7216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7217 test "$ac_cv_c_uint64_t" != no && break
7220 { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
7221 echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
7222 case $ac_cv_c_uint64_t in #(
7226 cat >>confdefs.h <<\_ACEOF
7231 cat >>confdefs.h <<_ACEOF
7232 #define uint64_t $ac_cv_c_uint64_t
7238 { echo "$as_me:$LINENO: checking for int32_t" >&5
7239 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
7240 if test "${ac_cv_c_int32_t+set}" = set; then
7241 echo $ECHO_N "(cached) $ECHO_C" >&6
7244 for ac_type in 'int32_t' 'int' 'long int' \
7245 'long long int' 'short int' 'signed char'; do
7246 cat >conftest.$ac_ext <<_ACEOF
7249 cat confdefs.h >>conftest.$ac_ext
7250 cat >>conftest.$ac_ext <<_ACEOF
7251 /* end confdefs.h. */
7252 $ac_includes_default
7256 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
7263 rm -f conftest.$ac_objext
7264 if { (ac_try="$ac_compile"
7266 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7267 *) ac_try_echo
=$ac_try;;
7269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7270 (eval "$ac_compile") 2>conftest.er1
7272 grep -v '^ *+' conftest.er1
>conftest.err
7274 cat conftest.err
>&5
7275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276 (exit $ac_status); } && {
7277 test -z "$ac_c_werror_flag" ||
7278 test ! -s conftest.err
7279 } && test -s conftest.
$ac_objext; then
7280 cat >conftest.
$ac_ext <<_ACEOF
7283 cat confdefs.h
>>conftest.
$ac_ext
7284 cat >>conftest.
$ac_ext <<_ACEOF
7285 /* end confdefs.h. */
7286 $ac_includes_default
7290 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
7291 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
7298 rm -f conftest.
$ac_objext
7299 if { (ac_try
="$ac_compile"
7301 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7302 *) ac_try_echo=$ac_try;;
7304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7305 (eval "$ac_compile") 2>conftest.er1
7307 grep -v '^ *+' conftest.er1 >conftest.err
7309 cat conftest.err >&5
7310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7311 (exit $ac_status); } && {
7312 test -z "$ac_c_werror_flag" ||
7313 test ! -s conftest.err
7314 } && test -s conftest.$ac_objext; then
7317 echo "$as_me: failed program was:" >&5
7318 sed 's/^/| /' conftest.$ac_ext >&5
7321 int32_t) ac_cv_c_int32_t=yes ;;
7322 *) ac_cv_c_int32_t=$ac_type ;;
7327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7329 echo "$as_me: failed program was:" >&5
7330 sed 's/^/| /' conftest.$ac_ext >&5
7335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7336 test "$ac_cv_c_int32_t" != no && break
7339 { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
7340 echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
7341 case $ac_cv_c_int32_t in #(
7345 cat >>confdefs.h <<_ACEOF
7346 #define int32_t $ac_cv_c_int32_t
7352 { echo "$as_me:$LINENO: checking for int64_t" >&5
7353 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
7354 if test "${ac_cv_c_int64_t+set}" = set; then
7355 echo $ECHO_N "(cached) $ECHO_C" >&6
7358 for ac_type in 'int64_t' 'int' 'long int' \
7359 'long long int' 'short int' 'signed char'; do
7360 cat >conftest.$ac_ext <<_ACEOF
7363 cat confdefs.h >>conftest.$ac_ext
7364 cat >>conftest.$ac_ext <<_ACEOF
7365 /* end confdefs.h. */
7366 $ac_includes_default
7370 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
7377 rm -f conftest.$ac_objext
7378 if { (ac_try="$ac_compile"
7380 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7381 *) ac_try_echo
=$ac_try;;
7383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7384 (eval "$ac_compile") 2>conftest.er1
7386 grep -v '^ *+' conftest.er1
>conftest.err
7388 cat conftest.err
>&5
7389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390 (exit $ac_status); } && {
7391 test -z "$ac_c_werror_flag" ||
7392 test ! -s conftest.err
7393 } && test -s conftest.
$ac_objext; then
7394 cat >conftest.
$ac_ext <<_ACEOF
7397 cat confdefs.h
>>conftest.
$ac_ext
7398 cat >>conftest.
$ac_ext <<_ACEOF
7399 /* end confdefs.h. */
7400 $ac_includes_default
7404 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
7405 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
7412 rm -f conftest.
$ac_objext
7413 if { (ac_try
="$ac_compile"
7415 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7416 *) ac_try_echo=$ac_try;;
7418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7419 (eval "$ac_compile") 2>conftest.er1
7421 grep -v '^ *+' conftest.er1 >conftest.err
7423 cat conftest.err >&5
7424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7425 (exit $ac_status); } && {
7426 test -z "$ac_c_werror_flag" ||
7427 test ! -s conftest.err
7428 } && test -s conftest.$ac_objext; then
7431 echo "$as_me: failed program was:" >&5
7432 sed 's/^/| /' conftest.$ac_ext >&5
7435 int64_t) ac_cv_c_int64_t=yes ;;
7436 *) ac_cv_c_int64_t=$ac_type ;;
7441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7443 echo "$as_me: failed program was:" >&5
7444 sed 's/^/| /' conftest.$ac_ext >&5
7449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7450 test "$ac_cv_c_int64_t" != no && break
7453 { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
7454 echo "${ECHO_T}$ac_cv_c_int64_t" >&6; }
7455 case $ac_cv_c_int64_t in #(
7459 cat >>confdefs.h <<_ACEOF
7460 #define int64_t $ac_cv_c_int64_t
7465 { echo "$as_me:$LINENO: checking for ssize_t" >&5
7466 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
7467 if test "${ac_cv_type_ssize_t+set}" = set; then
7468 echo $ECHO_N "(cached) $ECHO_C" >&6
7470 cat >conftest.$ac_ext <<_ACEOF
7473 cat confdefs.h >>conftest.$ac_ext
7474 cat >>conftest.$ac_ext <<_ACEOF
7475 /* end confdefs.h. */
7476 $ac_includes_default
7477 typedef ssize_t ac__type_new_;
7481 if ((ac__type_new_ *) 0)
7483 if (sizeof (ac__type_new_))
7489 rm -f conftest.$ac_objext
7490 if { (ac_try="$ac_compile"
7492 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7493 *) ac_try_echo
=$ac_try;;
7495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7496 (eval "$ac_compile") 2>conftest.er1
7498 grep -v '^ *+' conftest.er1
>conftest.err
7500 cat conftest.err
>&5
7501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7502 (exit $ac_status); } && {
7503 test -z "$ac_c_werror_flag" ||
7504 test ! -s conftest.err
7505 } && test -s conftest.
$ac_objext; then
7506 ac_cv_type_ssize_t
=yes
7508 echo "$as_me: failed program was:" >&5
7509 sed 's/^/| /' conftest.
$ac_ext >&5
7511 ac_cv_type_ssize_t
=no
7514 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7516 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7517 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
7518 if test $ac_cv_type_ssize_t = yes; then
7520 cat >>confdefs.h
<<\_ACEOF
7521 #define HAVE_SSIZE_T 1
7527 # Sizes of various common basic types
7528 # ANSI C requires sizeof(char) == 1, so no need to check it
7529 { echo "$as_me:$LINENO: checking for int" >&5
7530 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
7531 if test "${ac_cv_type_int+set}" = set; then
7532 echo $ECHO_N "(cached) $ECHO_C" >&6
7534 cat >conftest.
$ac_ext <<_ACEOF
7537 cat confdefs.h
>>conftest.
$ac_ext
7538 cat >>conftest.
$ac_ext <<_ACEOF
7539 /* end confdefs.h. */
7540 $ac_includes_default
7541 typedef int ac__type_new_;
7545 if ((ac__type_new_ *) 0)
7547 if (sizeof (ac__type_new_))
7553 rm -f conftest.
$ac_objext
7554 if { (ac_try
="$ac_compile"
7556 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7557 *) ac_try_echo=$ac_try;;
7559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7560 (eval "$ac_compile") 2>conftest.er1
7562 grep -v '^ *+' conftest.er1 >conftest.err
7564 cat conftest.err >&5
7565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566 (exit $ac_status); } && {
7567 test -z "$ac_c_werror_flag" ||
7568 test ! -s conftest.err
7569 } && test -s conftest.$ac_objext; then
7572 echo "$as_me: failed program was:" >&5
7573 sed 's/^/| /' conftest.$ac_ext >&5
7578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7580 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7581 echo "${ECHO_T}$ac_cv_type_int" >&6; }
7583 # The cast to long int works around a bug in the HP C Compiler
7584 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7585 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
7586 # This bug is HP SR number 8606223364.
7587 { echo "$as_me:$LINENO: checking size of int" >&5
7588 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
7589 if test "${ac_cv_sizeof_int+set}" = set; then
7590 echo $ECHO_N "(cached) $ECHO_C" >&6
7592 if test "$cross_compiling" = yes; then
7593 # Depending upon the size, compute the lo and hi bounds.
7594 cat >conftest.$ac_ext <<_ACEOF
7597 cat confdefs.h >>conftest.$ac_ext
7598 cat >>conftest.$ac_ext <<_ACEOF
7599 /* end confdefs.h. */
7600 $ac_includes_default
7601 typedef int ac__type_sizeof_;
7605 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7612 rm -f conftest.$ac_objext
7613 if { (ac_try="$ac_compile"
7615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7616 *) ac_try_echo=$ac_try;;
7618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7619 (eval "$ac_compile") 2>conftest.er1
7621 grep -v '^
*+' conftest.er1 >conftest.err
7623 cat conftest.err >&5
7624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625 (exit $ac_status); } && {
7626 test -z "$ac_c_werror_flag" ||
7627 test ! -s conftest.err
7628 } && test -s conftest.$ac_objext; then
7631 cat >conftest.$ac_ext <<_ACEOF
7634 cat confdefs.h >>conftest.$ac_ext
7635 cat >>conftest.$ac_ext <<_ACEOF
7636 /* end confdefs.h. */
7637 $ac_includes_default
7638 typedef int ac__type_sizeof_;
7642 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7649 rm -f conftest.$ac_objext
7650 if { (ac_try="$ac_compile"
7652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7653 *) ac_try_echo=$ac_try;;
7655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7656 (eval "$ac_compile") 2>conftest.er1
7658 grep -v '^
*+' conftest.er1 >conftest.err
7660 cat conftest.err >&5
7661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662 (exit $ac_status); } && {
7663 test -z "$ac_c_werror_flag" ||
7664 test ! -s conftest.err
7665 } && test -s conftest.$ac_objext; then
7666 ac_hi=$ac_mid; break
7668 echo "$as_me: failed program was:" >&5
7669 sed 's
/^
/|
/' conftest.$ac_ext >&5
7671 ac_lo=`expr $ac_mid + 1`
7672 if test $ac_lo -le $ac_mid; then
7676 ac_mid=`expr 2 '*' $ac_mid + 1`
7679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7682 echo "$as_me: failed program was:" >&5
7683 sed 's
/^
/|
/' conftest.$ac_ext >&5
7685 cat >conftest.$ac_ext <<_ACEOF
7688 cat confdefs.h >>conftest.$ac_ext
7689 cat >>conftest.$ac_ext <<_ACEOF
7690 /* end confdefs.h. */
7691 $ac_includes_default
7692 typedef int ac__type_sizeof_;
7696 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7703 rm -f conftest.$ac_objext
7704 if { (ac_try="$ac_compile"
7706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7707 *) ac_try_echo=$ac_try;;
7709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7710 (eval "$ac_compile") 2>conftest.er1
7712 grep -v '^
*+' conftest.er1 >conftest.err
7714 cat conftest.err >&5
7715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716 (exit $ac_status); } && {
7717 test -z "$ac_c_werror_flag" ||
7718 test ! -s conftest.err
7719 } && test -s conftest.$ac_objext; then
7722 cat >conftest.$ac_ext <<_ACEOF
7725 cat confdefs.h >>conftest.$ac_ext
7726 cat >>conftest.$ac_ext <<_ACEOF
7727 /* end confdefs.h. */
7728 $ac_includes_default
7729 typedef int ac__type_sizeof_;
7733 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7740 rm -f conftest.$ac_objext
7741 if { (ac_try="$ac_compile"
7743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7744 *) ac_try_echo=$ac_try;;
7746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7747 (eval "$ac_compile") 2>conftest.er1
7749 grep -v '^
*+' conftest.er1 >conftest.err
7751 cat conftest.err >&5
7752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7753 (exit $ac_status); } && {
7754 test -z "$ac_c_werror_flag" ||
7755 test ! -s conftest.err
7756 } && test -s conftest.$ac_objext; then
7757 ac_lo=$ac_mid; break
7759 echo "$as_me: failed program was:" >&5
7760 sed 's
/^
/|
/' conftest.$ac_ext >&5
7762 ac_hi=`expr '(' $ac_mid ')' - 1`
7763 if test $ac_mid -le $ac_hi; then
7767 ac_mid=`expr 2 '*' $ac_mid`
7770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7773 echo "$as_me: failed program was:" >&5
7774 sed 's
/^
/|
/' conftest.$ac_ext >&5
7779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7783 # Binary search between lo and hi bounds.
7784 while test "x$ac_lo" != "x$ac_hi"; do
7785 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7786 cat >conftest.$ac_ext <<_ACEOF
7789 cat confdefs.h >>conftest.$ac_ext
7790 cat >>conftest.$ac_ext <<_ACEOF
7791 /* end confdefs.h. */
7792 $ac_includes_default
7793 typedef int ac__type_sizeof_;
7797 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7804 rm -f conftest.$ac_objext
7805 if { (ac_try="$ac_compile"
7807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7808 *) ac_try_echo=$ac_try;;
7810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7811 (eval "$ac_compile") 2>conftest.er1
7813 grep -v '^
*+' conftest.er1 >conftest.err
7815 cat conftest.err >&5
7816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7817 (exit $ac_status); } && {
7818 test -z "$ac_c_werror_flag" ||
7819 test ! -s conftest.err
7820 } && test -s conftest.$ac_objext; then
7823 echo "$as_me: failed program was:" >&5
7824 sed 's
/^
/|
/' conftest.$ac_ext >&5
7826 ac_lo=`expr '(' $ac_mid ')' + 1`
7829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7832 ?*) ac_cv_sizeof_int=$ac_lo;;
7833 '') if test "$ac_cv_type_int" = yes; then
7834 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7835 See \`config.log' for more details.
" >&5
7836 echo "$as_me: error
: cannot compute sizeof
(int
)
7837 See \
`config.log' for more details." >&2;}
7838 { (exit 77); exit 77; }; }
7844 cat >conftest.$ac_ext <<_ACEOF
7847 cat confdefs.h >>conftest.$ac_ext
7848 cat >>conftest.$ac_ext <<_ACEOF
7849 /* end confdefs.h. */
7850 $ac_includes_default
7851 typedef int ac__type_sizeof_;
7852 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7853 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7860 FILE *f = fopen ("conftest.val", "w");
7863 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7865 long int i = longval ();
7866 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7868 fprintf (f, "%ld\n", i);
7872 unsigned long int i = ulongval ();
7873 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7875 fprintf (f, "%lu\n", i);
7877 return ferror (f) || fclose (f) != 0;
7883 rm -f conftest$ac_exeext
7884 if { (ac_try="$ac_link"
7886 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7887 *) ac_try_echo
=$ac_try;;
7889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7890 (eval "$ac_link") 2>&5
7892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7894 { (case "(($ac_try" in
7895 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7896 *) ac_try_echo=$ac_try;;
7898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7899 (eval "$ac_try") 2>&5
7901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902 (exit $ac_status); }; }; then
7903 ac_cv_sizeof_int=`cat conftest.val
`
7905 echo "$as_me: program exited with status $ac_status" >&5
7906 echo "$as_me: failed program was:" >&5
7907 sed 's/^/| /' conftest.$ac_ext >&5
7910 if test "$ac_cv_type_int" = yes; then
7911 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7912 See \`config.log
' for more details." >&5
7913 echo "$as_me: error: cannot compute sizeof (int)
7914 See \`config.log' for more details.
" >&2;}
7915 { (exit 77); exit 77; }; }
7920 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7924 { echo "$as_me:$LINENO: result
: $ac_cv_sizeof_int" >&5
7925 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7929 cat >>confdefs.h <<_ACEOF
7930 #define SIZEOF_INT $ac_cv_sizeof_int
7934 { echo "$as_me:$LINENO: checking
for long
" >&5
7935 echo $ECHO_N "checking
for long...
$ECHO_C" >&6; }
7936 if test "${ac_cv_type_long+set}" = set; then
7937 echo $ECHO_N "(cached
) $ECHO_C" >&6
7939 cat >conftest.$ac_ext <<_ACEOF
7942 cat confdefs.h >>conftest.$ac_ext
7943 cat >>conftest.$ac_ext <<_ACEOF
7944 /* end confdefs.h. */
7945 $ac_includes_default
7946 typedef long ac__type_new_;
7950 if ((ac__type_new_ *) 0)
7952 if (sizeof (ac__type_new_))
7958 rm -f conftest.$ac_objext
7959 if { (ac_try="$ac_compile"
7961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7962 *) ac_try_echo=$ac_try;;
7964 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7965 (eval "$ac_compile") 2>conftest.er1
7967 grep -v '^ *+' conftest.er1 >conftest.err
7969 cat conftest.err >&5
7970 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7971 (exit $ac_status); } && {
7972 test -z "$ac_c_werror_flag" ||
7973 test ! -s conftest.err
7974 } && test -s conftest.$ac_objext; then
7977 echo "$as_me: failed program was
:" >&5
7978 sed 's/^/| /' conftest.$ac_ext >&5
7983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7985 { echo "$as_me:$LINENO: result
: $ac_cv_type_long" >&5
7986 echo "${ECHO_T}$ac_cv_type_long" >&6; }
7988 # The cast to long int works around a bug in the HP C Compiler
7989 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7990 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7991 # This bug is HP SR number 8606223364.
7992 { echo "$as_me:$LINENO: checking size of long
" >&5
7993 echo $ECHO_N "checking size of long...
$ECHO_C" >&6; }
7994 if test "${ac_cv_sizeof_long+set}" = set; then
7995 echo $ECHO_N "(cached
) $ECHO_C" >&6
7997 if test "$cross_compiling" = yes; then
7998 # Depending upon the size, compute the lo and hi bounds.
7999 cat >conftest.$ac_ext <<_ACEOF
8002 cat confdefs.h >>conftest.$ac_ext
8003 cat >>conftest.$ac_ext <<_ACEOF
8004 /* end confdefs.h. */
8005 $ac_includes_default
8006 typedef long ac__type_sizeof_;
8010 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8017 rm -f conftest.$ac_objext
8018 if { (ac_try="$ac_compile"
8020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8021 *) ac_try_echo=$ac_try;;
8023 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8024 (eval "$ac_compile") 2>conftest.er1
8026 grep -v '^ *+' conftest.er1 >conftest.err
8028 cat conftest.err >&5
8029 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8030 (exit $ac_status); } && {
8031 test -z "$ac_c_werror_flag" ||
8032 test ! -s conftest.err
8033 } && test -s conftest.$ac_objext; then
8036 cat >conftest.$ac_ext <<_ACEOF
8039 cat confdefs.h >>conftest.$ac_ext
8040 cat >>conftest.$ac_ext <<_ACEOF
8041 /* end confdefs.h. */
8042 $ac_includes_default
8043 typedef long ac__type_sizeof_;
8047 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8054 rm -f conftest.$ac_objext
8055 if { (ac_try="$ac_compile"
8057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8058 *) ac_try_echo=$ac_try;;
8060 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8061 (eval "$ac_compile") 2>conftest.er1
8063 grep -v '^ *+' conftest.er1 >conftest.err
8065 cat conftest.err >&5
8066 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8067 (exit $ac_status); } && {
8068 test -z "$ac_c_werror_flag" ||
8069 test ! -s conftest.err
8070 } && test -s conftest.$ac_objext; then
8071 ac_hi=$ac_mid; break
8073 echo "$as_me: failed program was
:" >&5
8074 sed 's/^/| /' conftest.$ac_ext >&5
8076 ac_lo=`expr $ac_mid + 1`
8077 if test $ac_lo -le $ac_mid; then
8081 ac_mid=`expr 2 '*' $ac_mid + 1`
8084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8087 echo "$as_me: failed program was
:" >&5
8088 sed 's/^/| /' conftest.$ac_ext >&5
8090 cat >conftest.$ac_ext <<_ACEOF
8093 cat confdefs.h >>conftest.$ac_ext
8094 cat >>conftest.$ac_ext <<_ACEOF
8095 /* end confdefs.h. */
8096 $ac_includes_default
8097 typedef long ac__type_sizeof_;
8101 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8108 rm -f conftest.$ac_objext
8109 if { (ac_try="$ac_compile"
8111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8112 *) ac_try_echo=$ac_try;;
8114 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8115 (eval "$ac_compile") 2>conftest.er1
8117 grep -v '^ *+' conftest.er1 >conftest.err
8119 cat conftest.err >&5
8120 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8121 (exit $ac_status); } && {
8122 test -z "$ac_c_werror_flag" ||
8123 test ! -s conftest.err
8124 } && test -s conftest.$ac_objext; then
8127 cat >conftest.$ac_ext <<_ACEOF
8130 cat confdefs.h >>conftest.$ac_ext
8131 cat >>conftest.$ac_ext <<_ACEOF
8132 /* end confdefs.h. */
8133 $ac_includes_default
8134 typedef long ac__type_sizeof_;
8138 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8145 rm -f conftest.$ac_objext
8146 if { (ac_try="$ac_compile"
8148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8149 *) ac_try_echo=$ac_try;;
8151 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8152 (eval "$ac_compile") 2>conftest.er1
8154 grep -v '^ *+' conftest.er1 >conftest.err
8156 cat conftest.err >&5
8157 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8158 (exit $ac_status); } && {
8159 test -z "$ac_c_werror_flag" ||
8160 test ! -s conftest.err
8161 } && test -s conftest.$ac_objext; then
8162 ac_lo=$ac_mid; break
8164 echo "$as_me: failed program was
:" >&5
8165 sed 's/^/| /' conftest.$ac_ext >&5
8167 ac_hi=`expr '(' $ac_mid ')' - 1`
8168 if test $ac_mid -le $ac_hi; then
8172 ac_mid=`expr 2 '*' $ac_mid`
8175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8178 echo "$as_me: failed program was
:" >&5
8179 sed 's/^/| /' conftest.$ac_ext >&5
8184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8188 # Binary search between lo and hi bounds.
8189 while test "x
$ac_lo" != "x
$ac_hi"; do
8190 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8191 cat >conftest.$ac_ext <<_ACEOF
8194 cat confdefs.h >>conftest.$ac_ext
8195 cat >>conftest.$ac_ext <<_ACEOF
8196 /* end confdefs.h. */
8197 $ac_includes_default
8198 typedef long ac__type_sizeof_;
8202 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8209 rm -f conftest.$ac_objext
8210 if { (ac_try="$ac_compile"
8212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8213 *) ac_try_echo=$ac_try;;
8215 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8216 (eval "$ac_compile") 2>conftest.er1
8218 grep -v '^ *+' conftest.er1 >conftest.err
8220 cat conftest.err >&5
8221 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8222 (exit $ac_status); } && {
8223 test -z "$ac_c_werror_flag" ||
8224 test ! -s conftest.err
8225 } && test -s conftest.$ac_objext; then
8228 echo "$as_me: failed program was
:" >&5
8229 sed 's/^/| /' conftest.$ac_ext >&5
8231 ac_lo=`expr '(' $ac_mid ')' + 1`
8234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8237 ?*) ac_cv_sizeof_long=$ac_lo;;
8238 '') if test "$ac_cv_type_long" = yes; then
8239 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long
)
8240 See \
`config.log' for more details." >&5
8241 echo "$as_me: error: cannot compute sizeof (long)
8242 See \`config.log
' for more details." >&2;}
8243 { (exit 77); exit 77; }; }
8249 cat >conftest.$ac_ext <<_ACEOF
8252 cat confdefs.h >>conftest.$ac_ext
8253 cat >>conftest.$ac_ext <<_ACEOF
8254 /* end confdefs.h. */
8255 $ac_includes_default
8256 typedef long ac__type_sizeof_;
8257 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8258 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8265 FILE *f = fopen ("conftest.val", "w");
8268 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8270 long int i = longval ();
8271 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8273 fprintf (f, "%ld\n", i);
8277 unsigned long int i = ulongval ();
8278 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8280 fprintf (f, "%lu\n", i);
8282 return ferror (f) || fclose (f) != 0;
8288 rm -f conftest$ac_exeext
8289 if { (ac_try="$ac_link"
8291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8292 *) ac_try_echo=$ac_try;;
8294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8295 (eval "$ac_link") 2>&5
8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
8299 { (case "(($ac_try" in
8300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8301 *) ac_try_echo=$ac_try;;
8303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8304 (eval "$ac_try") 2>&5
8306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307 (exit $ac_status); }; }; then
8308 ac_cv_sizeof_long=`cat conftest.val`
8310 echo "$as_me: program exited with status $ac_status" >&5
8311 echo "$as_me: failed program was:" >&5
8312 sed 's
/^
/|
/' conftest.$ac_ext >&5
8315 if test "$ac_cv_type_long" = yes; then
8316 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8317 See \`config.log' for more details.
" >&5
8318 echo "$as_me: error
: cannot compute sizeof
(long
)
8319 See \
`config.log' for more details." >&2;}
8320 { (exit 77); exit 77; }; }
8325 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8329 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8330 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
8334 cat >>confdefs.h <<_ACEOF
8335 #define SIZEOF_LONG $ac_cv_sizeof_long
8339 { echo "$as_me:$LINENO: checking for void *" >&5
8340 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
8341 if test "${ac_cv_type_void_p+set}" = set; then
8342 echo $ECHO_N "(cached) $ECHO_C" >&6
8344 cat >conftest.$ac_ext <<_ACEOF
8347 cat confdefs.h >>conftest.$ac_ext
8348 cat >>conftest.$ac_ext <<_ACEOF
8349 /* end confdefs.h. */
8350 $ac_includes_default
8351 typedef void * ac__type_new_;
8355 if ((ac__type_new_ *) 0)
8357 if (sizeof (ac__type_new_))
8363 rm -f conftest.$ac_objext
8364 if { (ac_try="$ac_compile"
8366 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8367 *) ac_try_echo
=$ac_try;;
8369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8370 (eval "$ac_compile") 2>conftest.er1
8372 grep -v '^ *+' conftest.er1
>conftest.err
8374 cat conftest.err
>&5
8375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 (exit $ac_status); } && {
8377 test -z "$ac_c_werror_flag" ||
8378 test ! -s conftest.err
8379 } && test -s conftest.
$ac_objext; then
8380 ac_cv_type_void_p
=yes
8382 echo "$as_me: failed program was:" >&5
8383 sed 's/^/| /' conftest.
$ac_ext >&5
8385 ac_cv_type_void_p
=no
8388 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8390 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
8391 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
8393 # The cast to long int works around a bug in the HP C Compiler
8394 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8395 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8396 # This bug is HP SR number 8606223364.
8397 { echo "$as_me:$LINENO: checking size of void *" >&5
8398 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
8399 if test "${ac_cv_sizeof_void_p+set}" = set; then
8400 echo $ECHO_N "(cached) $ECHO_C" >&6
8402 if test "$cross_compiling" = yes; then
8403 # Depending upon the size, compute the lo and hi bounds.
8404 cat >conftest.
$ac_ext <<_ACEOF
8407 cat confdefs.h
>>conftest.
$ac_ext
8408 cat >>conftest.
$ac_ext <<_ACEOF
8409 /* end confdefs.h. */
8410 $ac_includes_default
8411 typedef void * ac__type_sizeof_;
8415 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8422 rm -f conftest.
$ac_objext
8423 if { (ac_try
="$ac_compile"
8425 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8426 *) ac_try_echo=$ac_try;;
8428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8429 (eval "$ac_compile") 2>conftest.er1
8431 grep -v '^ *+' conftest.er1 >conftest.err
8433 cat conftest.err >&5
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); } && {
8436 test -z "$ac_c_werror_flag" ||
8437 test ! -s conftest.err
8438 } && test -s conftest.$ac_objext; then
8441 cat >conftest.$ac_ext <<_ACEOF
8444 cat confdefs.h >>conftest.$ac_ext
8445 cat >>conftest.$ac_ext <<_ACEOF
8446 /* end confdefs.h. */
8447 $ac_includes_default
8448 typedef void * ac__type_sizeof_;
8452 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8459 rm -f conftest.$ac_objext
8460 if { (ac_try="$ac_compile"
8462 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8463 *) ac_try_echo
=$ac_try;;
8465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8466 (eval "$ac_compile") 2>conftest.er1
8468 grep -v '^ *+' conftest.er1
>conftest.err
8470 cat conftest.err
>&5
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); } && {
8473 test -z "$ac_c_werror_flag" ||
8474 test ! -s conftest.err
8475 } && test -s conftest.
$ac_objext; then
8476 ac_hi
=$ac_mid; break
8478 echo "$as_me: failed program was:" >&5
8479 sed 's/^/| /' conftest.
$ac_ext >&5
8481 ac_lo
=`expr $ac_mid + 1`
8482 if test $ac_lo -le $ac_mid; then
8486 ac_mid
=`expr 2 '*' $ac_mid + 1`
8489 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8492 echo "$as_me: failed program was:" >&5
8493 sed 's/^/| /' conftest.
$ac_ext >&5
8495 cat >conftest.
$ac_ext <<_ACEOF
8498 cat confdefs.h
>>conftest.
$ac_ext
8499 cat >>conftest.
$ac_ext <<_ACEOF
8500 /* end confdefs.h. */
8501 $ac_includes_default
8502 typedef void * ac__type_sizeof_;
8506 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8513 rm -f conftest.
$ac_objext
8514 if { (ac_try
="$ac_compile"
8516 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8517 *) ac_try_echo=$ac_try;;
8519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8520 (eval "$ac_compile") 2>conftest.er1
8522 grep -v '^ *+' conftest.er1 >conftest.err
8524 cat conftest.err >&5
8525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526 (exit $ac_status); } && {
8527 test -z "$ac_c_werror_flag" ||
8528 test ! -s conftest.err
8529 } && test -s conftest.$ac_objext; then
8532 cat >conftest.$ac_ext <<_ACEOF
8535 cat confdefs.h >>conftest.$ac_ext
8536 cat >>conftest.$ac_ext <<_ACEOF
8537 /* end confdefs.h. */
8538 $ac_includes_default
8539 typedef void * ac__type_sizeof_;
8543 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8550 rm -f conftest.$ac_objext
8551 if { (ac_try="$ac_compile"
8553 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8554 *) ac_try_echo
=$ac_try;;
8556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8557 (eval "$ac_compile") 2>conftest.er1
8559 grep -v '^ *+' conftest.er1
>conftest.err
8561 cat conftest.err
>&5
8562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563 (exit $ac_status); } && {
8564 test -z "$ac_c_werror_flag" ||
8565 test ! -s conftest.err
8566 } && test -s conftest.
$ac_objext; then
8567 ac_lo
=$ac_mid; break
8569 echo "$as_me: failed program was:" >&5
8570 sed 's/^/| /' conftest.
$ac_ext >&5
8572 ac_hi
=`expr '(' $ac_mid ')' - 1`
8573 if test $ac_mid -le $ac_hi; then
8577 ac_mid
=`expr 2 '*' $ac_mid`
8580 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8583 echo "$as_me: failed program was:" >&5
8584 sed 's/^/| /' conftest.
$ac_ext >&5
8589 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8592 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8593 # Binary search between lo and hi bounds.
8594 while test "x$ac_lo" != "x$ac_hi"; do
8595 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8596 cat >conftest.
$ac_ext <<_ACEOF
8599 cat confdefs.h
>>conftest.
$ac_ext
8600 cat >>conftest.
$ac_ext <<_ACEOF
8601 /* end confdefs.h. */
8602 $ac_includes_default
8603 typedef void * ac__type_sizeof_;
8607 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8614 rm -f conftest.
$ac_objext
8615 if { (ac_try
="$ac_compile"
8617 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8618 *) ac_try_echo=$ac_try;;
8620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8621 (eval "$ac_compile") 2>conftest.er1
8623 grep -v '^ *+' conftest.er1 >conftest.err
8625 cat conftest.err >&5
8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 (exit $ac_status); } && {
8628 test -z "$ac_c_werror_flag" ||
8629 test ! -s conftest.err
8630 } && test -s conftest.$ac_objext; then
8633 echo "$as_me: failed program was:" >&5
8634 sed 's/^/| /' conftest.$ac_ext >&5
8636 ac_lo=`expr '(' $ac_mid ')' + 1`
8639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8642 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8643 '') if test "$ac_cv_type_void_p" = yes; then
8644 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8645 See \`config.log
' for more details." >&5
8646 echo "$as_me: error: cannot compute sizeof (void *)
8647 See \`config.log' for more details.
" >&2;}
8648 { (exit 77); exit 77; }; }
8650 ac_cv_sizeof_void_p=0
8654 cat >conftest.$ac_ext <<_ACEOF
8657 cat confdefs.h >>conftest.$ac_ext
8658 cat >>conftest.$ac_ext <<_ACEOF
8659 /* end confdefs.h. */
8660 $ac_includes_default
8661 typedef void * ac__type_sizeof_;
8662 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8663 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8670 FILE *f = fopen ("conftest.val
", "w
");
8673 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8675 long int i = longval ();
8676 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8678 fprintf (f, "%ld
\n", i);
8682 unsigned long int i = ulongval ();
8683 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8685 fprintf (f, "%lu
\n", i);
8687 return ferror (f) || fclose (f) != 0;
8693 rm -f conftest$ac_exeext
8694 if { (ac_try="$ac_link"
8696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8697 *) ac_try_echo=$ac_try;;
8699 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8700 (eval "$ac_link") 2>&5
8702 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8703 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8704 { (case "(($ac_try" in
8705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8706 *) ac_try_echo=$ac_try;;
8708 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8709 (eval "$ac_try") 2>&5
8711 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8712 (exit $ac_status); }; }; then
8713 ac_cv_sizeof_void_p=`cat conftest.val`
8715 echo "$as_me: program exited with status
$ac_status" >&5
8716 echo "$as_me: failed program was
:" >&5
8717 sed 's/^/| /' conftest.$ac_ext >&5
8720 if test "$ac_cv_type_void_p" = yes; then
8721 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(void
*)
8722 See \
`config.log' for more details." >&5
8723 echo "$as_me: error: cannot compute sizeof (void *)
8724 See \`config.log
' for more details." >&2;}
8725 { (exit 77); exit 77; }; }
8727 ac_cv_sizeof_void_p=0
8730 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8734 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8735 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8739 cat >>confdefs.h <<_ACEOF
8740 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8744 { echo "$as_me:$LINENO: checking for short" >&5
8745 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
8746 if test "${ac_cv_type_short+set}" = set; then
8747 echo $ECHO_N "(cached) $ECHO_C" >&6
8749 cat >conftest.$ac_ext <<_ACEOF
8752 cat confdefs.h >>conftest.$ac_ext
8753 cat >>conftest.$ac_ext <<_ACEOF
8754 /* end confdefs.h. */
8755 $ac_includes_default
8756 typedef short ac__type_new_;
8760 if ((ac__type_new_ *) 0)
8762 if (sizeof (ac__type_new_))
8768 rm -f conftest.$ac_objext
8769 if { (ac_try="$ac_compile"
8771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8772 *) ac_try_echo=$ac_try;;
8774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8775 (eval "$ac_compile") 2>conftest.er1
8777 grep -v '^
*+' conftest.er1 >conftest.err
8779 cat conftest.err >&5
8780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781 (exit $ac_status); } && {
8782 test -z "$ac_c_werror_flag" ||
8783 test ! -s conftest.err
8784 } && test -s conftest.$ac_objext; then
8785 ac_cv_type_short=yes
8787 echo "$as_me: failed program was:" >&5
8788 sed 's
/^
/|
/' conftest.$ac_ext >&5
8793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8795 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8796 echo "${ECHO_T}$ac_cv_type_short" >&6; }
8798 # The cast to long int works around a bug in the HP C Compiler
8799 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8800 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8801 # This bug is HP SR number 8606223364.
8802 { echo "$as_me:$LINENO: checking size of short" >&5
8803 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8804 if test "${ac_cv_sizeof_short+set}" = set; then
8805 echo $ECHO_N "(cached) $ECHO_C" >&6
8807 if test "$cross_compiling" = yes; then
8808 # Depending upon the size, compute the lo and hi bounds.
8809 cat >conftest.
$ac_ext <<_ACEOF
8812 cat confdefs.h
>>conftest.
$ac_ext
8813 cat >>conftest.
$ac_ext <<_ACEOF
8814 /* end confdefs.h. */
8815 $ac_includes_default
8816 typedef short ac__type_sizeof_;
8820 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8827 rm -f conftest.
$ac_objext
8828 if { (ac_try
="$ac_compile"
8830 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8831 *) ac_try_echo=$ac_try;;
8833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8834 (eval "$ac_compile") 2>conftest.er1
8836 grep -v '^ *+' conftest.er1 >conftest.err
8838 cat conftest.err >&5
8839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840 (exit $ac_status); } && {
8841 test -z "$ac_c_werror_flag" ||
8842 test ! -s conftest.err
8843 } && test -s conftest.$ac_objext; then
8846 cat >conftest.$ac_ext <<_ACEOF
8849 cat confdefs.h >>conftest.$ac_ext
8850 cat >>conftest.$ac_ext <<_ACEOF
8851 /* end confdefs.h. */
8852 $ac_includes_default
8853 typedef short ac__type_sizeof_;
8857 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8864 rm -f conftest.$ac_objext
8865 if { (ac_try="$ac_compile"
8867 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8868 *) ac_try_echo
=$ac_try;;
8870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8871 (eval "$ac_compile") 2>conftest.er1
8873 grep -v '^ *+' conftest.er1
>conftest.err
8875 cat conftest.err
>&5
8876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877 (exit $ac_status); } && {
8878 test -z "$ac_c_werror_flag" ||
8879 test ! -s conftest.err
8880 } && test -s conftest.
$ac_objext; then
8881 ac_hi
=$ac_mid; break
8883 echo "$as_me: failed program was:" >&5
8884 sed 's/^/| /' conftest.
$ac_ext >&5
8886 ac_lo
=`expr $ac_mid + 1`
8887 if test $ac_lo -le $ac_mid; then
8891 ac_mid
=`expr 2 '*' $ac_mid + 1`
8894 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8897 echo "$as_me: failed program was:" >&5
8898 sed 's/^/| /' conftest.
$ac_ext >&5
8900 cat >conftest.
$ac_ext <<_ACEOF
8903 cat confdefs.h
>>conftest.
$ac_ext
8904 cat >>conftest.
$ac_ext <<_ACEOF
8905 /* end confdefs.h. */
8906 $ac_includes_default
8907 typedef short ac__type_sizeof_;
8911 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8918 rm -f conftest.
$ac_objext
8919 if { (ac_try
="$ac_compile"
8921 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8922 *) ac_try_echo=$ac_try;;
8924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8925 (eval "$ac_compile") 2>conftest.er1
8927 grep -v '^ *+' conftest.er1 >conftest.err
8929 cat conftest.err >&5
8930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931 (exit $ac_status); } && {
8932 test -z "$ac_c_werror_flag" ||
8933 test ! -s conftest.err
8934 } && test -s conftest.$ac_objext; then
8937 cat >conftest.$ac_ext <<_ACEOF
8940 cat confdefs.h >>conftest.$ac_ext
8941 cat >>conftest.$ac_ext <<_ACEOF
8942 /* end confdefs.h. */
8943 $ac_includes_default
8944 typedef short ac__type_sizeof_;
8948 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8955 rm -f conftest.$ac_objext
8956 if { (ac_try="$ac_compile"
8958 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8959 *) ac_try_echo
=$ac_try;;
8961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8962 (eval "$ac_compile") 2>conftest.er1
8964 grep -v '^ *+' conftest.er1
>conftest.err
8966 cat conftest.err
>&5
8967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968 (exit $ac_status); } && {
8969 test -z "$ac_c_werror_flag" ||
8970 test ! -s conftest.err
8971 } && test -s conftest.
$ac_objext; then
8972 ac_lo
=$ac_mid; break
8974 echo "$as_me: failed program was:" >&5
8975 sed 's/^/| /' conftest.
$ac_ext >&5
8977 ac_hi
=`expr '(' $ac_mid ')' - 1`
8978 if test $ac_mid -le $ac_hi; then
8982 ac_mid
=`expr 2 '*' $ac_mid`
8985 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8988 echo "$as_me: failed program was:" >&5
8989 sed 's/^/| /' conftest.
$ac_ext >&5
8994 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8997 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8998 # Binary search between lo and hi bounds.
8999 while test "x$ac_lo" != "x$ac_hi"; do
9000 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9001 cat >conftest.
$ac_ext <<_ACEOF
9004 cat confdefs.h
>>conftest.
$ac_ext
9005 cat >>conftest.
$ac_ext <<_ACEOF
9006 /* end confdefs.h. */
9007 $ac_includes_default
9008 typedef short ac__type_sizeof_;
9012 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9019 rm -f conftest.
$ac_objext
9020 if { (ac_try
="$ac_compile"
9022 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9023 *) ac_try_echo=$ac_try;;
9025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9026 (eval "$ac_compile") 2>conftest.er1
9028 grep -v '^ *+' conftest.er1 >conftest.err
9030 cat conftest.err >&5
9031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9032 (exit $ac_status); } && {
9033 test -z "$ac_c_werror_flag" ||
9034 test ! -s conftest.err
9035 } && test -s conftest.$ac_objext; then
9038 echo "$as_me: failed program was:" >&5
9039 sed 's/^/| /' conftest.$ac_ext >&5
9041 ac_lo=`expr '(' $ac_mid ')' + 1`
9044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9047 ?*) ac_cv_sizeof_short=$ac_lo;;
9048 '') if test "$ac_cv_type_short" = yes; then
9049 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
9050 See \`config.log
' for more details." >&5
9051 echo "$as_me: error: cannot compute sizeof (short)
9052 See \`config.log' for more details.
" >&2;}
9053 { (exit 77); exit 77; }; }
9055 ac_cv_sizeof_short=0
9059 cat >conftest.$ac_ext <<_ACEOF
9062 cat confdefs.h >>conftest.$ac_ext
9063 cat >>conftest.$ac_ext <<_ACEOF
9064 /* end confdefs.h. */
9065 $ac_includes_default
9066 typedef short ac__type_sizeof_;
9067 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9068 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9075 FILE *f = fopen ("conftest.val
", "w
");
9078 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9080 long int i = longval ();
9081 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9083 fprintf (f, "%ld
\n", i);
9087 unsigned long int i = ulongval ();
9088 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9090 fprintf (f, "%lu
\n", i);
9092 return ferror (f) || fclose (f) != 0;
9098 rm -f conftest$ac_exeext
9099 if { (ac_try="$ac_link"
9101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9102 *) ac_try_echo=$ac_try;;
9104 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9105 (eval "$ac_link") 2>&5
9107 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9108 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9109 { (case "(($ac_try" in
9110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9111 *) ac_try_echo=$ac_try;;
9113 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9114 (eval "$ac_try") 2>&5
9116 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9117 (exit $ac_status); }; }; then
9118 ac_cv_sizeof_short=`cat conftest.val`
9120 echo "$as_me: program exited with status
$ac_status" >&5
9121 echo "$as_me: failed program was
:" >&5
9122 sed 's/^/| /' conftest.$ac_ext >&5
9125 if test "$ac_cv_type_short" = yes; then
9126 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(short
)
9127 See \
`config.log' for more details." >&5
9128 echo "$as_me: error: cannot compute sizeof (short)
9129 See \`config.log
' for more details." >&2;}
9130 { (exit 77); exit 77; }; }
9132 ac_cv_sizeof_short=0
9135 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9139 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
9140 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
9144 cat >>confdefs.h <<_ACEOF
9145 #define SIZEOF_SHORT $ac_cv_sizeof_short
9149 { echo "$as_me:$LINENO: checking for float" >&5
9150 echo $ECHO_N "checking for float... $ECHO_C" >&6; }
9151 if test "${ac_cv_type_float+set}" = set; then
9152 echo $ECHO_N "(cached) $ECHO_C" >&6
9154 cat >conftest.$ac_ext <<_ACEOF
9157 cat confdefs.h >>conftest.$ac_ext
9158 cat >>conftest.$ac_ext <<_ACEOF
9159 /* end confdefs.h. */
9160 $ac_includes_default
9161 typedef float ac__type_new_;
9165 if ((ac__type_new_ *) 0)
9167 if (sizeof (ac__type_new_))
9173 rm -f conftest.$ac_objext
9174 if { (ac_try="$ac_compile"
9176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9177 *) ac_try_echo=$ac_try;;
9179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9180 (eval "$ac_compile") 2>conftest.er1
9182 grep -v '^
*+' conftest.er1 >conftest.err
9184 cat conftest.err >&5
9185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186 (exit $ac_status); } && {
9187 test -z "$ac_c_werror_flag" ||
9188 test ! -s conftest.err
9189 } && test -s conftest.$ac_objext; then
9190 ac_cv_type_float=yes
9192 echo "$as_me: failed program was:" >&5
9193 sed 's
/^
/|
/' conftest.$ac_ext >&5
9198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9200 { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
9201 echo "${ECHO_T}$ac_cv_type_float" >&6; }
9203 # The cast to long int works around a bug in the HP C Compiler
9204 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9205 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9206 # This bug is HP SR number 8606223364.
9207 { echo "$as_me:$LINENO: checking size of float" >&5
9208 echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
9209 if test "${ac_cv_sizeof_float+set}" = set; then
9210 echo $ECHO_N "(cached) $ECHO_C" >&6
9212 if test "$cross_compiling" = yes; then
9213 # Depending upon the size, compute the lo and hi bounds.
9214 cat >conftest.
$ac_ext <<_ACEOF
9217 cat confdefs.h
>>conftest.
$ac_ext
9218 cat >>conftest.
$ac_ext <<_ACEOF
9219 /* end confdefs.h. */
9220 $ac_includes_default
9221 typedef float ac__type_sizeof_;
9225 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9232 rm -f conftest.
$ac_objext
9233 if { (ac_try
="$ac_compile"
9235 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9236 *) ac_try_echo=$ac_try;;
9238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9239 (eval "$ac_compile") 2>conftest.er1
9241 grep -v '^ *+' conftest.er1 >conftest.err
9243 cat conftest.err >&5
9244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9245 (exit $ac_status); } && {
9246 test -z "$ac_c_werror_flag" ||
9247 test ! -s conftest.err
9248 } && test -s conftest.$ac_objext; then
9251 cat >conftest.$ac_ext <<_ACEOF
9254 cat confdefs.h >>conftest.$ac_ext
9255 cat >>conftest.$ac_ext <<_ACEOF
9256 /* end confdefs.h. */
9257 $ac_includes_default
9258 typedef float ac__type_sizeof_;
9262 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9269 rm -f conftest.$ac_objext
9270 if { (ac_try="$ac_compile"
9272 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9273 *) ac_try_echo
=$ac_try;;
9275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9276 (eval "$ac_compile") 2>conftest.er1
9278 grep -v '^ *+' conftest.er1
>conftest.err
9280 cat conftest.err
>&5
9281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9282 (exit $ac_status); } && {
9283 test -z "$ac_c_werror_flag" ||
9284 test ! -s conftest.err
9285 } && test -s conftest.
$ac_objext; then
9286 ac_hi
=$ac_mid; break
9288 echo "$as_me: failed program was:" >&5
9289 sed 's/^/| /' conftest.
$ac_ext >&5
9291 ac_lo
=`expr $ac_mid + 1`
9292 if test $ac_lo -le $ac_mid; then
9296 ac_mid
=`expr 2 '*' $ac_mid + 1`
9299 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9302 echo "$as_me: failed program was:" >&5
9303 sed 's/^/| /' conftest.
$ac_ext >&5
9305 cat >conftest.
$ac_ext <<_ACEOF
9308 cat confdefs.h
>>conftest.
$ac_ext
9309 cat >>conftest.
$ac_ext <<_ACEOF
9310 /* end confdefs.h. */
9311 $ac_includes_default
9312 typedef float ac__type_sizeof_;
9316 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9323 rm -f conftest.
$ac_objext
9324 if { (ac_try
="$ac_compile"
9326 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9327 *) ac_try_echo=$ac_try;;
9329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9330 (eval "$ac_compile") 2>conftest.er1
9332 grep -v '^ *+' conftest.er1 >conftest.err
9334 cat conftest.err >&5
9335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336 (exit $ac_status); } && {
9337 test -z "$ac_c_werror_flag" ||
9338 test ! -s conftest.err
9339 } && test -s conftest.$ac_objext; then
9342 cat >conftest.$ac_ext <<_ACEOF
9345 cat confdefs.h >>conftest.$ac_ext
9346 cat >>conftest.$ac_ext <<_ACEOF
9347 /* end confdefs.h. */
9348 $ac_includes_default
9349 typedef float ac__type_sizeof_;
9353 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9360 rm -f conftest.$ac_objext
9361 if { (ac_try="$ac_compile"
9363 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9364 *) ac_try_echo
=$ac_try;;
9366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9367 (eval "$ac_compile") 2>conftest.er1
9369 grep -v '^ *+' conftest.er1
>conftest.err
9371 cat conftest.err
>&5
9372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373 (exit $ac_status); } && {
9374 test -z "$ac_c_werror_flag" ||
9375 test ! -s conftest.err
9376 } && test -s conftest.
$ac_objext; then
9377 ac_lo
=$ac_mid; break
9379 echo "$as_me: failed program was:" >&5
9380 sed 's/^/| /' conftest.
$ac_ext >&5
9382 ac_hi
=`expr '(' $ac_mid ')' - 1`
9383 if test $ac_mid -le $ac_hi; then
9387 ac_mid
=`expr 2 '*' $ac_mid`
9390 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9393 echo "$as_me: failed program was:" >&5
9394 sed 's/^/| /' conftest.
$ac_ext >&5
9399 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9402 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9403 # Binary search between lo and hi bounds.
9404 while test "x$ac_lo" != "x$ac_hi"; do
9405 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9406 cat >conftest.
$ac_ext <<_ACEOF
9409 cat confdefs.h
>>conftest.
$ac_ext
9410 cat >>conftest.
$ac_ext <<_ACEOF
9411 /* end confdefs.h. */
9412 $ac_includes_default
9413 typedef float ac__type_sizeof_;
9417 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9424 rm -f conftest.
$ac_objext
9425 if { (ac_try
="$ac_compile"
9427 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9428 *) ac_try_echo=$ac_try;;
9430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9431 (eval "$ac_compile") 2>conftest.er1
9433 grep -v '^ *+' conftest.er1 >conftest.err
9435 cat conftest.err >&5
9436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437 (exit $ac_status); } && {
9438 test -z "$ac_c_werror_flag" ||
9439 test ! -s conftest.err
9440 } && test -s conftest.$ac_objext; then
9443 echo "$as_me: failed program was:" >&5
9444 sed 's/^/| /' conftest.$ac_ext >&5
9446 ac_lo=`expr '(' $ac_mid ')' + 1`
9449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9452 ?*) ac_cv_sizeof_float=$ac_lo;;
9453 '') if test "$ac_cv_type_float" = yes; then
9454 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
9455 See \`config.log
' for more details." >&5
9456 echo "$as_me: error: cannot compute sizeof (float)
9457 See \`config.log' for more details.
" >&2;}
9458 { (exit 77); exit 77; }; }
9460 ac_cv_sizeof_float=0
9464 cat >conftest.$ac_ext <<_ACEOF
9467 cat confdefs.h >>conftest.$ac_ext
9468 cat >>conftest.$ac_ext <<_ACEOF
9469 /* end confdefs.h. */
9470 $ac_includes_default
9471 typedef float ac__type_sizeof_;
9472 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9473 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9480 FILE *f = fopen ("conftest.val
", "w
");
9483 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9485 long int i = longval ();
9486 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9488 fprintf (f, "%ld
\n", i);
9492 unsigned long int i = ulongval ();
9493 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9495 fprintf (f, "%lu
\n", i);
9497 return ferror (f) || fclose (f) != 0;
9503 rm -f conftest$ac_exeext
9504 if { (ac_try="$ac_link"
9506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9507 *) ac_try_echo=$ac_try;;
9509 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9510 (eval "$ac_link") 2>&5
9512 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9513 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9514 { (case "(($ac_try" in
9515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9516 *) ac_try_echo=$ac_try;;
9518 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9519 (eval "$ac_try") 2>&5
9521 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9522 (exit $ac_status); }; }; then
9523 ac_cv_sizeof_float=`cat conftest.val`
9525 echo "$as_me: program exited with status
$ac_status" >&5
9526 echo "$as_me: failed program was
:" >&5
9527 sed 's/^/| /' conftest.$ac_ext >&5
9530 if test "$ac_cv_type_float" = yes; then
9531 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(float
)
9532 See \
`config.log' for more details." >&5
9533 echo "$as_me: error: cannot compute sizeof (float)
9534 See \`config.log
' for more details." >&2;}
9535 { (exit 77); exit 77; }; }
9537 ac_cv_sizeof_float=0
9540 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9544 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
9545 echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
9549 cat >>confdefs.h <<_ACEOF
9550 #define SIZEOF_FLOAT $ac_cv_sizeof_float
9554 { echo "$as_me:$LINENO: checking for double" >&5
9555 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
9556 if test "${ac_cv_type_double+set}" = set; then
9557 echo $ECHO_N "(cached) $ECHO_C" >&6
9559 cat >conftest.$ac_ext <<_ACEOF
9562 cat confdefs.h >>conftest.$ac_ext
9563 cat >>conftest.$ac_ext <<_ACEOF
9564 /* end confdefs.h. */
9565 $ac_includes_default
9566 typedef double ac__type_new_;
9570 if ((ac__type_new_ *) 0)
9572 if (sizeof (ac__type_new_))
9578 rm -f conftest.$ac_objext
9579 if { (ac_try="$ac_compile"
9581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9582 *) ac_try_echo=$ac_try;;
9584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9585 (eval "$ac_compile") 2>conftest.er1
9587 grep -v '^
*+' conftest.er1 >conftest.err
9589 cat conftest.err >&5
9590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591 (exit $ac_status); } && {
9592 test -z "$ac_c_werror_flag" ||
9593 test ! -s conftest.err
9594 } && test -s conftest.$ac_objext; then
9595 ac_cv_type_double=yes
9597 echo "$as_me: failed program was:" >&5
9598 sed 's
/^
/|
/' conftest.$ac_ext >&5
9600 ac_cv_type_double=no
9603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9605 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
9606 echo "${ECHO_T}$ac_cv_type_double" >&6; }
9608 # The cast to long int works around a bug in the HP C Compiler
9609 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9610 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9611 # This bug is HP SR number 8606223364.
9612 { echo "$as_me:$LINENO: checking size of double" >&5
9613 echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
9614 if test "${ac_cv_sizeof_double+set}" = set; then
9615 echo $ECHO_N "(cached) $ECHO_C" >&6
9617 if test "$cross_compiling" = yes; then
9618 # Depending upon the size, compute the lo and hi bounds.
9619 cat >conftest.
$ac_ext <<_ACEOF
9622 cat confdefs.h
>>conftest.
$ac_ext
9623 cat >>conftest.
$ac_ext <<_ACEOF
9624 /* end confdefs.h. */
9625 $ac_includes_default
9626 typedef double ac__type_sizeof_;
9630 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9637 rm -f conftest.
$ac_objext
9638 if { (ac_try
="$ac_compile"
9640 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9641 *) ac_try_echo=$ac_try;;
9643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9644 (eval "$ac_compile") 2>conftest.er1
9646 grep -v '^ *+' conftest.er1 >conftest.err
9648 cat conftest.err >&5
9649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650 (exit $ac_status); } && {
9651 test -z "$ac_c_werror_flag" ||
9652 test ! -s conftest.err
9653 } && test -s conftest.$ac_objext; then
9656 cat >conftest.$ac_ext <<_ACEOF
9659 cat confdefs.h >>conftest.$ac_ext
9660 cat >>conftest.$ac_ext <<_ACEOF
9661 /* end confdefs.h. */
9662 $ac_includes_default
9663 typedef double ac__type_sizeof_;
9667 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9674 rm -f conftest.$ac_objext
9675 if { (ac_try="$ac_compile"
9677 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9678 *) ac_try_echo
=$ac_try;;
9680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9681 (eval "$ac_compile") 2>conftest.er1
9683 grep -v '^ *+' conftest.er1
>conftest.err
9685 cat conftest.err
>&5
9686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687 (exit $ac_status); } && {
9688 test -z "$ac_c_werror_flag" ||
9689 test ! -s conftest.err
9690 } && test -s conftest.
$ac_objext; then
9691 ac_hi
=$ac_mid; break
9693 echo "$as_me: failed program was:" >&5
9694 sed 's/^/| /' conftest.
$ac_ext >&5
9696 ac_lo
=`expr $ac_mid + 1`
9697 if test $ac_lo -le $ac_mid; then
9701 ac_mid
=`expr 2 '*' $ac_mid + 1`
9704 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9707 echo "$as_me: failed program was:" >&5
9708 sed 's/^/| /' conftest.
$ac_ext >&5
9710 cat >conftest.
$ac_ext <<_ACEOF
9713 cat confdefs.h
>>conftest.
$ac_ext
9714 cat >>conftest.
$ac_ext <<_ACEOF
9715 /* end confdefs.h. */
9716 $ac_includes_default
9717 typedef double ac__type_sizeof_;
9721 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9728 rm -f conftest.
$ac_objext
9729 if { (ac_try
="$ac_compile"
9731 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9732 *) ac_try_echo=$ac_try;;
9734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9735 (eval "$ac_compile") 2>conftest.er1
9737 grep -v '^ *+' conftest.er1 >conftest.err
9739 cat conftest.err >&5
9740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741 (exit $ac_status); } && {
9742 test -z "$ac_c_werror_flag" ||
9743 test ! -s conftest.err
9744 } && test -s conftest.$ac_objext; then
9747 cat >conftest.$ac_ext <<_ACEOF
9750 cat confdefs.h >>conftest.$ac_ext
9751 cat >>conftest.$ac_ext <<_ACEOF
9752 /* end confdefs.h. */
9753 $ac_includes_default
9754 typedef double ac__type_sizeof_;
9758 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9765 rm -f conftest.$ac_objext
9766 if { (ac_try="$ac_compile"
9768 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9769 *) ac_try_echo
=$ac_try;;
9771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9772 (eval "$ac_compile") 2>conftest.er1
9774 grep -v '^ *+' conftest.er1
>conftest.err
9776 cat conftest.err
>&5
9777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9778 (exit $ac_status); } && {
9779 test -z "$ac_c_werror_flag" ||
9780 test ! -s conftest.err
9781 } && test -s conftest.
$ac_objext; then
9782 ac_lo
=$ac_mid; break
9784 echo "$as_me: failed program was:" >&5
9785 sed 's/^/| /' conftest.
$ac_ext >&5
9787 ac_hi
=`expr '(' $ac_mid ')' - 1`
9788 if test $ac_mid -le $ac_hi; then
9792 ac_mid
=`expr 2 '*' $ac_mid`
9795 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9798 echo "$as_me: failed program was:" >&5
9799 sed 's/^/| /' conftest.
$ac_ext >&5
9804 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9807 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9808 # Binary search between lo and hi bounds.
9809 while test "x$ac_lo" != "x$ac_hi"; do
9810 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9811 cat >conftest.
$ac_ext <<_ACEOF
9814 cat confdefs.h
>>conftest.
$ac_ext
9815 cat >>conftest.
$ac_ext <<_ACEOF
9816 /* end confdefs.h. */
9817 $ac_includes_default
9818 typedef double ac__type_sizeof_;
9822 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9829 rm -f conftest.
$ac_objext
9830 if { (ac_try
="$ac_compile"
9832 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9833 *) ac_try_echo=$ac_try;;
9835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9836 (eval "$ac_compile") 2>conftest.er1
9838 grep -v '^ *+' conftest.er1 >conftest.err
9840 cat conftest.err >&5
9841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842 (exit $ac_status); } && {
9843 test -z "$ac_c_werror_flag" ||
9844 test ! -s conftest.err
9845 } && test -s conftest.$ac_objext; then
9848 echo "$as_me: failed program was:" >&5
9849 sed 's/^/| /' conftest.$ac_ext >&5
9851 ac_lo=`expr '(' $ac_mid ')' + 1`
9854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9857 ?*) ac_cv_sizeof_double=$ac_lo;;
9858 '') if test "$ac_cv_type_double" = yes; then
9859 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9860 See \`config.log
' for more details." >&5
9861 echo "$as_me: error: cannot compute sizeof (double)
9862 See \`config.log' for more details.
" >&2;}
9863 { (exit 77); exit 77; }; }
9865 ac_cv_sizeof_double=0
9869 cat >conftest.$ac_ext <<_ACEOF
9872 cat confdefs.h >>conftest.$ac_ext
9873 cat >>conftest.$ac_ext <<_ACEOF
9874 /* end confdefs.h. */
9875 $ac_includes_default
9876 typedef double ac__type_sizeof_;
9877 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9878 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9885 FILE *f = fopen ("conftest.val
", "w
");
9888 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9890 long int i = longval ();
9891 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9893 fprintf (f, "%ld
\n", i);
9897 unsigned long int i = ulongval ();
9898 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9900 fprintf (f, "%lu
\n", i);
9902 return ferror (f) || fclose (f) != 0;
9908 rm -f conftest$ac_exeext
9909 if { (ac_try="$ac_link"
9911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9912 *) ac_try_echo=$ac_try;;
9914 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9915 (eval "$ac_link") 2>&5
9917 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9918 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9919 { (case "(($ac_try" in
9920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9921 *) ac_try_echo=$ac_try;;
9923 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9924 (eval "$ac_try") 2>&5
9926 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9927 (exit $ac_status); }; }; then
9928 ac_cv_sizeof_double=`cat conftest.val`
9930 echo "$as_me: program exited with status
$ac_status" >&5
9931 echo "$as_me: failed program was
:" >&5
9932 sed 's/^/| /' conftest.$ac_ext >&5
9935 if test "$ac_cv_type_double" = yes; then
9936 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(double
)
9937 See \
`config.log' for more details." >&5
9938 echo "$as_me: error: cannot compute sizeof (double)
9939 See \`config.log
' for more details." >&2;}
9940 { (exit 77); exit 77; }; }
9942 ac_cv_sizeof_double=0
9945 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9949 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
9950 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
9954 cat >>confdefs.h <<_ACEOF
9955 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
9959 { echo "$as_me:$LINENO: checking for fpos_t" >&5
9960 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; }
9961 if test "${ac_cv_type_fpos_t+set}" = set; then
9962 echo $ECHO_N "(cached) $ECHO_C" >&6
9964 cat >conftest.$ac_ext <<_ACEOF
9967 cat confdefs.h >>conftest.$ac_ext
9968 cat >>conftest.$ac_ext <<_ACEOF
9969 /* end confdefs.h. */
9970 $ac_includes_default
9971 typedef fpos_t ac__type_new_;
9975 if ((ac__type_new_ *) 0)
9977 if (sizeof (ac__type_new_))
9983 rm -f conftest.$ac_objext
9984 if { (ac_try="$ac_compile"
9986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9987 *) ac_try_echo=$ac_try;;
9989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9990 (eval "$ac_compile") 2>conftest.er1
9992 grep -v '^
*+' conftest.er1 >conftest.err
9994 cat conftest.err >&5
9995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996 (exit $ac_status); } && {
9997 test -z "$ac_c_werror_flag" ||
9998 test ! -s conftest.err
9999 } && test -s conftest.$ac_objext; then
10000 ac_cv_type_fpos_t=yes
10002 echo "$as_me: failed program was:" >&5
10003 sed 's
/^
/|
/' conftest.$ac_ext >&5
10005 ac_cv_type_fpos_t=no
10008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10010 { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
10011 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; }
10013 # The cast to long int works around a bug in the HP C Compiler
10014 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10015 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10016 # This bug is HP SR number 8606223364.
10017 { echo "$as_me:$LINENO: checking size of fpos_t" >&5
10018 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; }
10019 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
10020 echo $ECHO_N "(cached) $ECHO_C" >&6
10022 if test "$cross_compiling" = yes; then
10023 # Depending upon the size, compute the lo and hi bounds.
10024 cat >conftest.
$ac_ext <<_ACEOF
10027 cat confdefs.h
>>conftest.
$ac_ext
10028 cat >>conftest.
$ac_ext <<_ACEOF
10029 /* end confdefs.h. */
10030 $ac_includes_default
10031 typedef fpos_t ac__type_sizeof_;
10035 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10042 rm -f conftest.
$ac_objext
10043 if { (ac_try
="$ac_compile"
10044 case "(($ac_try" in
10045 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10046 *) ac_try_echo=$ac_try;;
10048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10049 (eval "$ac_compile") 2>conftest.er1
10051 grep -v '^ *+' conftest.er1 >conftest.err
10053 cat conftest.err >&5
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); } && {
10056 test -z "$ac_c_werror_flag" ||
10057 test ! -s conftest.err
10058 } && test -s conftest.$ac_objext; then
10061 cat >conftest.$ac_ext <<_ACEOF
10064 cat confdefs.h >>conftest.$ac_ext
10065 cat >>conftest.$ac_ext <<_ACEOF
10066 /* end confdefs.h. */
10067 $ac_includes_default
10068 typedef fpos_t ac__type_sizeof_;
10072 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10079 rm -f conftest.$ac_objext
10080 if { (ac_try="$ac_compile"
10081 case "(($ac_try" in
10082 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10083 *) ac_try_echo
=$ac_try;;
10085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10086 (eval "$ac_compile") 2>conftest.er1
10088 grep -v '^ *+' conftest.er1
>conftest.err
10090 cat conftest.err
>&5
10091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092 (exit $ac_status); } && {
10093 test -z "$ac_c_werror_flag" ||
10094 test ! -s conftest.err
10095 } && test -s conftest.
$ac_objext; then
10096 ac_hi
=$ac_mid; break
10098 echo "$as_me: failed program was:" >&5
10099 sed 's/^/| /' conftest.
$ac_ext >&5
10101 ac_lo
=`expr $ac_mid + 1`
10102 if test $ac_lo -le $ac_mid; then
10106 ac_mid
=`expr 2 '*' $ac_mid + 1`
10109 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10112 echo "$as_me: failed program was:" >&5
10113 sed 's/^/| /' conftest.
$ac_ext >&5
10115 cat >conftest.
$ac_ext <<_ACEOF
10118 cat confdefs.h
>>conftest.
$ac_ext
10119 cat >>conftest.
$ac_ext <<_ACEOF
10120 /* end confdefs.h. */
10121 $ac_includes_default
10122 typedef fpos_t ac__type_sizeof_;
10126 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10133 rm -f conftest.
$ac_objext
10134 if { (ac_try
="$ac_compile"
10135 case "(($ac_try" in
10136 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10137 *) ac_try_echo=$ac_try;;
10139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10140 (eval "$ac_compile") 2>conftest.er1
10142 grep -v '^ *+' conftest.er1 >conftest.err
10144 cat conftest.err >&5
10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 (exit $ac_status); } && {
10147 test -z "$ac_c_werror_flag" ||
10148 test ! -s conftest.err
10149 } && test -s conftest.$ac_objext; then
10152 cat >conftest.$ac_ext <<_ACEOF
10155 cat confdefs.h >>conftest.$ac_ext
10156 cat >>conftest.$ac_ext <<_ACEOF
10157 /* end confdefs.h. */
10158 $ac_includes_default
10159 typedef fpos_t ac__type_sizeof_;
10163 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10170 rm -f conftest.$ac_objext
10171 if { (ac_try="$ac_compile"
10172 case "(($ac_try" in
10173 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10174 *) ac_try_echo
=$ac_try;;
10176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10177 (eval "$ac_compile") 2>conftest.er1
10179 grep -v '^ *+' conftest.er1
>conftest.err
10181 cat conftest.err
>&5
10182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183 (exit $ac_status); } && {
10184 test -z "$ac_c_werror_flag" ||
10185 test ! -s conftest.err
10186 } && test -s conftest.
$ac_objext; then
10187 ac_lo
=$ac_mid; break
10189 echo "$as_me: failed program was:" >&5
10190 sed 's/^/| /' conftest.
$ac_ext >&5
10192 ac_hi
=`expr '(' $ac_mid ')' - 1`
10193 if test $ac_mid -le $ac_hi; then
10197 ac_mid
=`expr 2 '*' $ac_mid`
10200 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10203 echo "$as_me: failed program was:" >&5
10204 sed 's/^/| /' conftest.
$ac_ext >&5
10209 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10212 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10213 # Binary search between lo and hi bounds.
10214 while test "x$ac_lo" != "x$ac_hi"; do
10215 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10216 cat >conftest.
$ac_ext <<_ACEOF
10219 cat confdefs.h
>>conftest.
$ac_ext
10220 cat >>conftest.
$ac_ext <<_ACEOF
10221 /* end confdefs.h. */
10222 $ac_includes_default
10223 typedef fpos_t ac__type_sizeof_;
10227 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10234 rm -f conftest.
$ac_objext
10235 if { (ac_try
="$ac_compile"
10236 case "(($ac_try" in
10237 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10238 *) ac_try_echo=$ac_try;;
10240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10241 (eval "$ac_compile") 2>conftest.er1
10243 grep -v '^ *+' conftest.er1 >conftest.err
10245 cat conftest.err >&5
10246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10247 (exit $ac_status); } && {
10248 test -z "$ac_c_werror_flag" ||
10249 test ! -s conftest.err
10250 } && test -s conftest.$ac_objext; then
10253 echo "$as_me: failed program was:" >&5
10254 sed 's/^/| /' conftest.$ac_ext >&5
10256 ac_lo=`expr '(' $ac_mid ')' + 1`
10259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10262 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
10263 '') if test "$ac_cv_type_fpos_t" = yes; then
10264 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
10265 See \`config.log
' for more details." >&5
10266 echo "$as_me: error: cannot compute sizeof (fpos_t)
10267 See \`config.log' for more details.
" >&2;}
10268 { (exit 77); exit 77; }; }
10270 ac_cv_sizeof_fpos_t=0
10274 cat >conftest.$ac_ext <<_ACEOF
10277 cat confdefs.h >>conftest.$ac_ext
10278 cat >>conftest.$ac_ext <<_ACEOF
10279 /* end confdefs.h. */
10280 $ac_includes_default
10281 typedef fpos_t ac__type_sizeof_;
10282 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10283 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10285 #include <stdlib.h>
10290 FILE *f = fopen ("conftest.val
", "w
");
10293 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10295 long int i = longval ();
10296 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10298 fprintf (f, "%ld
\n", i);
10302 unsigned long int i = ulongval ();
10303 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10305 fprintf (f, "%lu
\n", i);
10307 return ferror (f) || fclose (f) != 0;
10313 rm -f conftest$ac_exeext
10314 if { (ac_try="$ac_link"
10315 case "(($ac_try" in
10316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10317 *) ac_try_echo=$ac_try;;
10319 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10320 (eval "$ac_link") 2>&5
10322 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10323 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10324 { (case "(($ac_try" in
10325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10326 *) ac_try_echo=$ac_try;;
10328 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10329 (eval "$ac_try") 2>&5
10331 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10332 (exit $ac_status); }; }; then
10333 ac_cv_sizeof_fpos_t=`cat conftest.val`
10335 echo "$as_me: program exited with status
$ac_status" >&5
10336 echo "$as_me: failed program was
:" >&5
10337 sed 's/^/| /' conftest.$ac_ext >&5
10339 ( exit $ac_status )
10340 if test "$ac_cv_type_fpos_t" = yes; then
10341 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(fpos_t
)
10342 See \
`config.log' for more details." >&5
10343 echo "$as_me: error: cannot compute sizeof (fpos_t)
10344 See \`config.log
' for more details." >&2;}
10345 { (exit 77); exit 77; }; }
10347 ac_cv_sizeof_fpos_t=0
10350 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10354 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
10355 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; }
10359 cat >>confdefs.h <<_ACEOF
10360 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
10364 { echo "$as_me:$LINENO: checking for size_t" >&5
10365 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
10366 if test "${ac_cv_type_size_t+set}" = set; then
10367 echo $ECHO_N "(cached) $ECHO_C" >&6
10369 cat >conftest.$ac_ext <<_ACEOF
10372 cat confdefs.h >>conftest.$ac_ext
10373 cat >>conftest.$ac_ext <<_ACEOF
10374 /* end confdefs.h. */
10375 $ac_includes_default
10376 typedef size_t ac__type_new_;
10380 if ((ac__type_new_ *) 0)
10382 if (sizeof (ac__type_new_))
10388 rm -f conftest.$ac_objext
10389 if { (ac_try="$ac_compile"
10390 case "(($ac_try" in
10391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10392 *) ac_try_echo=$ac_try;;
10394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10395 (eval "$ac_compile") 2>conftest.er1
10397 grep -v '^
*+' conftest.er1 >conftest.err
10399 cat conftest.err >&5
10400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401 (exit $ac_status); } && {
10402 test -z "$ac_c_werror_flag" ||
10403 test ! -s conftest.err
10404 } && test -s conftest.$ac_objext; then
10405 ac_cv_type_size_t=yes
10407 echo "$as_me: failed program was:" >&5
10408 sed 's
/^
/|
/' conftest.$ac_ext >&5
10410 ac_cv_type_size_t=no
10413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10415 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10416 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
10418 # The cast to long int works around a bug in the HP C Compiler
10419 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10420 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10421 # This bug is HP SR number 8606223364.
10422 { echo "$as_me:$LINENO: checking size of size_t" >&5
10423 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
10424 if test "${ac_cv_sizeof_size_t+set}" = set; then
10425 echo $ECHO_N "(cached) $ECHO_C" >&6
10427 if test "$cross_compiling" = yes; then
10428 # Depending upon the size, compute the lo and hi bounds.
10429 cat >conftest.
$ac_ext <<_ACEOF
10432 cat confdefs.h
>>conftest.
$ac_ext
10433 cat >>conftest.
$ac_ext <<_ACEOF
10434 /* end confdefs.h. */
10435 $ac_includes_default
10436 typedef size_t ac__type_sizeof_;
10440 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10447 rm -f conftest.
$ac_objext
10448 if { (ac_try
="$ac_compile"
10449 case "(($ac_try" in
10450 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10451 *) ac_try_echo=$ac_try;;
10453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10454 (eval "$ac_compile") 2>conftest.er1
10456 grep -v '^ *+' conftest.er1 >conftest.err
10458 cat conftest.err >&5
10459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460 (exit $ac_status); } && {
10461 test -z "$ac_c_werror_flag" ||
10462 test ! -s conftest.err
10463 } && test -s conftest.$ac_objext; then
10466 cat >conftest.$ac_ext <<_ACEOF
10469 cat confdefs.h >>conftest.$ac_ext
10470 cat >>conftest.$ac_ext <<_ACEOF
10471 /* end confdefs.h. */
10472 $ac_includes_default
10473 typedef size_t ac__type_sizeof_;
10477 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10484 rm -f conftest.$ac_objext
10485 if { (ac_try="$ac_compile"
10486 case "(($ac_try" in
10487 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10488 *) ac_try_echo
=$ac_try;;
10490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10491 (eval "$ac_compile") 2>conftest.er1
10493 grep -v '^ *+' conftest.er1
>conftest.err
10495 cat conftest.err
>&5
10496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497 (exit $ac_status); } && {
10498 test -z "$ac_c_werror_flag" ||
10499 test ! -s conftest.err
10500 } && test -s conftest.
$ac_objext; then
10501 ac_hi
=$ac_mid; break
10503 echo "$as_me: failed program was:" >&5
10504 sed 's/^/| /' conftest.
$ac_ext >&5
10506 ac_lo
=`expr $ac_mid + 1`
10507 if test $ac_lo -le $ac_mid; then
10511 ac_mid
=`expr 2 '*' $ac_mid + 1`
10514 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10517 echo "$as_me: failed program was:" >&5
10518 sed 's/^/| /' conftest.
$ac_ext >&5
10520 cat >conftest.
$ac_ext <<_ACEOF
10523 cat confdefs.h
>>conftest.
$ac_ext
10524 cat >>conftest.
$ac_ext <<_ACEOF
10525 /* end confdefs.h. */
10526 $ac_includes_default
10527 typedef size_t ac__type_sizeof_;
10531 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10538 rm -f conftest.
$ac_objext
10539 if { (ac_try
="$ac_compile"
10540 case "(($ac_try" in
10541 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10542 *) ac_try_echo=$ac_try;;
10544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10545 (eval "$ac_compile") 2>conftest.er1
10547 grep -v '^ *+' conftest.er1 >conftest.err
10549 cat conftest.err >&5
10550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551 (exit $ac_status); } && {
10552 test -z "$ac_c_werror_flag" ||
10553 test ! -s conftest.err
10554 } && test -s conftest.$ac_objext; then
10557 cat >conftest.$ac_ext <<_ACEOF
10560 cat confdefs.h >>conftest.$ac_ext
10561 cat >>conftest.$ac_ext <<_ACEOF
10562 /* end confdefs.h. */
10563 $ac_includes_default
10564 typedef size_t ac__type_sizeof_;
10568 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10575 rm -f conftest.$ac_objext
10576 if { (ac_try="$ac_compile"
10577 case "(($ac_try" in
10578 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10579 *) ac_try_echo
=$ac_try;;
10581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10582 (eval "$ac_compile") 2>conftest.er1
10584 grep -v '^ *+' conftest.er1
>conftest.err
10586 cat conftest.err
>&5
10587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10588 (exit $ac_status); } && {
10589 test -z "$ac_c_werror_flag" ||
10590 test ! -s conftest.err
10591 } && test -s conftest.
$ac_objext; then
10592 ac_lo
=$ac_mid; break
10594 echo "$as_me: failed program was:" >&5
10595 sed 's/^/| /' conftest.
$ac_ext >&5
10597 ac_hi
=`expr '(' $ac_mid ')' - 1`
10598 if test $ac_mid -le $ac_hi; then
10602 ac_mid
=`expr 2 '*' $ac_mid`
10605 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10608 echo "$as_me: failed program was:" >&5
10609 sed 's/^/| /' conftest.
$ac_ext >&5
10614 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10617 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10618 # Binary search between lo and hi bounds.
10619 while test "x$ac_lo" != "x$ac_hi"; do
10620 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10621 cat >conftest.
$ac_ext <<_ACEOF
10624 cat confdefs.h
>>conftest.
$ac_ext
10625 cat >>conftest.
$ac_ext <<_ACEOF
10626 /* end confdefs.h. */
10627 $ac_includes_default
10628 typedef size_t ac__type_sizeof_;
10632 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10639 rm -f conftest.
$ac_objext
10640 if { (ac_try
="$ac_compile"
10641 case "(($ac_try" in
10642 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10643 *) ac_try_echo=$ac_try;;
10645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10646 (eval "$ac_compile") 2>conftest.er1
10648 grep -v '^ *+' conftest.er1 >conftest.err
10650 cat conftest.err >&5
10651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652 (exit $ac_status); } && {
10653 test -z "$ac_c_werror_flag" ||
10654 test ! -s conftest.err
10655 } && test -s conftest.$ac_objext; then
10658 echo "$as_me: failed program was:" >&5
10659 sed 's/^/| /' conftest.$ac_ext >&5
10661 ac_lo=`expr '(' $ac_mid ')' + 1`
10664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10667 ?*) ac_cv_sizeof_size_t=$ac_lo;;
10668 '') if test "$ac_cv_type_size_t" = yes; then
10669 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10670 See \`config.log
' for more details." >&5
10671 echo "$as_me: error: cannot compute sizeof (size_t)
10672 See \`config.log' for more details.
" >&2;}
10673 { (exit 77); exit 77; }; }
10675 ac_cv_sizeof_size_t=0
10679 cat >conftest.$ac_ext <<_ACEOF
10682 cat confdefs.h >>conftest.$ac_ext
10683 cat >>conftest.$ac_ext <<_ACEOF
10684 /* end confdefs.h. */
10685 $ac_includes_default
10686 typedef size_t ac__type_sizeof_;
10687 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10688 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10690 #include <stdlib.h>
10695 FILE *f = fopen ("conftest.val
", "w
");
10698 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10700 long int i = longval ();
10701 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10703 fprintf (f, "%ld
\n", i);
10707 unsigned long int i = ulongval ();
10708 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10710 fprintf (f, "%lu
\n", i);
10712 return ferror (f) || fclose (f) != 0;
10718 rm -f conftest$ac_exeext
10719 if { (ac_try="$ac_link"
10720 case "(($ac_try" in
10721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10722 *) ac_try_echo=$ac_try;;
10724 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10725 (eval "$ac_link") 2>&5
10727 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10728 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10729 { (case "(($ac_try" in
10730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10731 *) ac_try_echo=$ac_try;;
10733 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10734 (eval "$ac_try") 2>&5
10736 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10737 (exit $ac_status); }; }; then
10738 ac_cv_sizeof_size_t=`cat conftest.val`
10740 echo "$as_me: program exited with status
$ac_status" >&5
10741 echo "$as_me: failed program was
:" >&5
10742 sed 's/^/| /' conftest.$ac_ext >&5
10744 ( exit $ac_status )
10745 if test "$ac_cv_type_size_t" = yes; then
10746 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(size_t
)
10747 See \
`config.log' for more details." >&5
10748 echo "$as_me: error: cannot compute sizeof (size_t)
10749 See \`config.log
' for more details." >&2;}
10750 { (exit 77); exit 77; }; }
10752 ac_cv_sizeof_size_t=0
10755 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10759 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10760 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
10764 cat >>confdefs.h <<_ACEOF
10765 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10769 { echo "$as_me:$LINENO: checking for pid_t" >&5
10770 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10771 if test "${ac_cv_type_pid_t+set}" = set; then
10772 echo $ECHO_N "(cached) $ECHO_C" >&6
10774 cat >conftest.$ac_ext <<_ACEOF
10777 cat confdefs.h >>conftest.$ac_ext
10778 cat >>conftest.$ac_ext <<_ACEOF
10779 /* end confdefs.h. */
10780 $ac_includes_default
10781 typedef pid_t ac__type_new_;
10785 if ((ac__type_new_ *) 0)
10787 if (sizeof (ac__type_new_))
10793 rm -f conftest.$ac_objext
10794 if { (ac_try="$ac_compile"
10795 case "(($ac_try" in
10796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10797 *) ac_try_echo=$ac_try;;
10799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10800 (eval "$ac_compile") 2>conftest.er1
10802 grep -v '^
*+' conftest.er1 >conftest.err
10804 cat conftest.err >&5
10805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10806 (exit $ac_status); } && {
10807 test -z "$ac_c_werror_flag" ||
10808 test ! -s conftest.err
10809 } && test -s conftest.$ac_objext; then
10810 ac_cv_type_pid_t=yes
10812 echo "$as_me: failed program was:" >&5
10813 sed 's
/^
/|
/' conftest.$ac_ext >&5
10815 ac_cv_type_pid_t=no
10818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10820 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10821 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10823 # The cast to long int works around a bug in the HP C Compiler
10824 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10825 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10826 # This bug is HP SR number 8606223364.
10827 { echo "$as_me:$LINENO: checking size of pid_t" >&5
10828 echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; }
10829 if test "${ac_cv_sizeof_pid_t+set}" = set; then
10830 echo $ECHO_N "(cached) $ECHO_C" >&6
10832 if test "$cross_compiling" = yes; then
10833 # Depending upon the size, compute the lo and hi bounds.
10834 cat >conftest.
$ac_ext <<_ACEOF
10837 cat confdefs.h
>>conftest.
$ac_ext
10838 cat >>conftest.
$ac_ext <<_ACEOF
10839 /* end confdefs.h. */
10840 $ac_includes_default
10841 typedef pid_t ac__type_sizeof_;
10845 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10852 rm -f conftest.
$ac_objext
10853 if { (ac_try
="$ac_compile"
10854 case "(($ac_try" in
10855 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10856 *) ac_try_echo=$ac_try;;
10858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10859 (eval "$ac_compile") 2>conftest.er1
10861 grep -v '^ *+' conftest.er1 >conftest.err
10863 cat conftest.err >&5
10864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10865 (exit $ac_status); } && {
10866 test -z "$ac_c_werror_flag" ||
10867 test ! -s conftest.err
10868 } && test -s conftest.$ac_objext; then
10871 cat >conftest.$ac_ext <<_ACEOF
10874 cat confdefs.h >>conftest.$ac_ext
10875 cat >>conftest.$ac_ext <<_ACEOF
10876 /* end confdefs.h. */
10877 $ac_includes_default
10878 typedef pid_t ac__type_sizeof_;
10882 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10889 rm -f conftest.$ac_objext
10890 if { (ac_try="$ac_compile"
10891 case "(($ac_try" in
10892 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10893 *) ac_try_echo
=$ac_try;;
10895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10896 (eval "$ac_compile") 2>conftest.er1
10898 grep -v '^ *+' conftest.er1
>conftest.err
10900 cat conftest.err
>&5
10901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902 (exit $ac_status); } && {
10903 test -z "$ac_c_werror_flag" ||
10904 test ! -s conftest.err
10905 } && test -s conftest.
$ac_objext; then
10906 ac_hi
=$ac_mid; break
10908 echo "$as_me: failed program was:" >&5
10909 sed 's/^/| /' conftest.
$ac_ext >&5
10911 ac_lo
=`expr $ac_mid + 1`
10912 if test $ac_lo -le $ac_mid; then
10916 ac_mid
=`expr 2 '*' $ac_mid + 1`
10919 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10922 echo "$as_me: failed program was:" >&5
10923 sed 's/^/| /' conftest.
$ac_ext >&5
10925 cat >conftest.
$ac_ext <<_ACEOF
10928 cat confdefs.h
>>conftest.
$ac_ext
10929 cat >>conftest.
$ac_ext <<_ACEOF
10930 /* end confdefs.h. */
10931 $ac_includes_default
10932 typedef pid_t ac__type_sizeof_;
10936 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10943 rm -f conftest.
$ac_objext
10944 if { (ac_try
="$ac_compile"
10945 case "(($ac_try" in
10946 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10947 *) ac_try_echo=$ac_try;;
10949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10950 (eval "$ac_compile") 2>conftest.er1
10952 grep -v '^ *+' conftest.er1 >conftest.err
10954 cat conftest.err >&5
10955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956 (exit $ac_status); } && {
10957 test -z "$ac_c_werror_flag" ||
10958 test ! -s conftest.err
10959 } && test -s conftest.$ac_objext; then
10962 cat >conftest.$ac_ext <<_ACEOF
10965 cat confdefs.h >>conftest.$ac_ext
10966 cat >>conftest.$ac_ext <<_ACEOF
10967 /* end confdefs.h. */
10968 $ac_includes_default
10969 typedef pid_t ac__type_sizeof_;
10973 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10980 rm -f conftest.$ac_objext
10981 if { (ac_try="$ac_compile"
10982 case "(($ac_try" in
10983 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10984 *) ac_try_echo
=$ac_try;;
10986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10987 (eval "$ac_compile") 2>conftest.er1
10989 grep -v '^ *+' conftest.er1
>conftest.err
10991 cat conftest.err
>&5
10992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993 (exit $ac_status); } && {
10994 test -z "$ac_c_werror_flag" ||
10995 test ! -s conftest.err
10996 } && test -s conftest.
$ac_objext; then
10997 ac_lo
=$ac_mid; break
10999 echo "$as_me: failed program was:" >&5
11000 sed 's/^/| /' conftest.
$ac_ext >&5
11002 ac_hi
=`expr '(' $ac_mid ')' - 1`
11003 if test $ac_mid -le $ac_hi; then
11007 ac_mid
=`expr 2 '*' $ac_mid`
11010 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11013 echo "$as_me: failed program was:" >&5
11014 sed 's/^/| /' conftest.
$ac_ext >&5
11019 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11022 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11023 # Binary search between lo and hi bounds.
11024 while test "x$ac_lo" != "x$ac_hi"; do
11025 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11026 cat >conftest.
$ac_ext <<_ACEOF
11029 cat confdefs.h
>>conftest.
$ac_ext
11030 cat >>conftest.
$ac_ext <<_ACEOF
11031 /* end confdefs.h. */
11032 $ac_includes_default
11033 typedef pid_t ac__type_sizeof_;
11037 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11044 rm -f conftest.
$ac_objext
11045 if { (ac_try
="$ac_compile"
11046 case "(($ac_try" in
11047 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11048 *) ac_try_echo=$ac_try;;
11050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11051 (eval "$ac_compile") 2>conftest.er1
11053 grep -v '^ *+' conftest.er1 >conftest.err
11055 cat conftest.err >&5
11056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057 (exit $ac_status); } && {
11058 test -z "$ac_c_werror_flag" ||
11059 test ! -s conftest.err
11060 } && test -s conftest.$ac_objext; then
11063 echo "$as_me: failed program was:" >&5
11064 sed 's/^/| /' conftest.$ac_ext >&5
11066 ac_lo=`expr '(' $ac_mid ')' + 1`
11069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11072 ?*) ac_cv_sizeof_pid_t=$ac_lo;;
11073 '') if test "$ac_cv_type_pid_t" = yes; then
11074 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
11075 See \`config.log
' for more details." >&5
11076 echo "$as_me: error: cannot compute sizeof (pid_t)
11077 See \`config.log' for more details.
" >&2;}
11078 { (exit 77); exit 77; }; }
11080 ac_cv_sizeof_pid_t=0
11084 cat >conftest.$ac_ext <<_ACEOF
11087 cat confdefs.h >>conftest.$ac_ext
11088 cat >>conftest.$ac_ext <<_ACEOF
11089 /* end confdefs.h. */
11090 $ac_includes_default
11091 typedef pid_t ac__type_sizeof_;
11092 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11093 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11095 #include <stdlib.h>
11100 FILE *f = fopen ("conftest.val
", "w
");
11103 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11105 long int i = longval ();
11106 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11108 fprintf (f, "%ld
\n", i);
11112 unsigned long int i = ulongval ();
11113 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11115 fprintf (f, "%lu
\n", i);
11117 return ferror (f) || fclose (f) != 0;
11123 rm -f conftest$ac_exeext
11124 if { (ac_try="$ac_link"
11125 case "(($ac_try" in
11126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11127 *) ac_try_echo=$ac_try;;
11129 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11130 (eval "$ac_link") 2>&5
11132 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11133 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11134 { (case "(($ac_try" in
11135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11136 *) ac_try_echo=$ac_try;;
11138 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11139 (eval "$ac_try") 2>&5
11141 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11142 (exit $ac_status); }; }; then
11143 ac_cv_sizeof_pid_t=`cat conftest.val`
11145 echo "$as_me: program exited with status
$ac_status" >&5
11146 echo "$as_me: failed program was
:" >&5
11147 sed 's/^/| /' conftest.$ac_ext >&5
11149 ( exit $ac_status )
11150 if test "$ac_cv_type_pid_t" = yes; then
11151 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(pid_t
)
11152 See \
`config.log' for more details." >&5
11153 echo "$as_me: error: cannot compute sizeof (pid_t)
11154 See \`config.log
' for more details." >&2;}
11155 { (exit 77); exit 77; }; }
11157 ac_cv_sizeof_pid_t=0
11160 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11164 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
11165 echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; }
11169 cat >>confdefs.h <<_ACEOF
11170 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
11175 { echo "$as_me:$LINENO: checking for long long support" >&5
11176 echo $ECHO_N "checking for long long support... $ECHO_C" >&6; }
11178 cat >conftest.$ac_ext <<_ACEOF
11181 cat confdefs.h >>conftest.$ac_ext
11182 cat >>conftest.$ac_ext <<_ACEOF
11183 /* end confdefs.h. */
11188 long long x; x = (long long)0;
11193 rm -f conftest.$ac_objext
11194 if { (ac_try="$ac_compile"
11195 case "(($ac_try" in
11196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11197 *) ac_try_echo=$ac_try;;
11199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11200 (eval "$ac_compile") 2>conftest.er1
11202 grep -v '^
*+' conftest.er1 >conftest.err
11204 cat conftest.err >&5
11205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206 (exit $ac_status); } && {
11207 test -z "$ac_c_werror_flag" ||
11208 test ! -s conftest.err
11209 } && test -s conftest.$ac_objext; then
11212 cat >>confdefs.h <<\_ACEOF
11213 #define HAVE_LONG_LONG 1
11219 echo "$as_me: failed program was:" >&5
11220 sed 's
/^
/|
/' conftest.$ac_ext >&5
11225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11226 { echo "$as_me:$LINENO: result: $have_long_long" >&5
11227 echo "${ECHO_T}$have_long_long" >&6; }
11228 if test "$have_long_long" = yes ; then
11229 { echo "$as_me:$LINENO: checking for long long" >&5
11230 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
11231 if test "${ac_cv_type_long_long+set}" = set; then
11232 echo $ECHO_N "(cached) $ECHO_C" >&6
11234 cat >conftest.$ac_ext <<_ACEOF
11237 cat confdefs.h >>conftest.$ac_ext
11238 cat >>conftest.$ac_ext <<_ACEOF
11239 /* end confdefs.h. */
11240 $ac_includes_default
11241 typedef long long ac__type_new_;
11245 if ((ac__type_new_ *) 0)
11247 if (sizeof (ac__type_new_))
11253 rm -f conftest.$ac_objext
11254 if { (ac_try="$ac_compile"
11255 case "(($ac_try" in
11256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11257 *) ac_try_echo=$ac_try;;
11259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11260 (eval "$ac_compile") 2>conftest.er1
11262 grep -v '^
*+' conftest.er1 >conftest.err
11264 cat conftest.err >&5
11265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11266 (exit $ac_status); } && {
11267 test -z "$ac_c_werror_flag" ||
11268 test ! -s conftest.err
11269 } && test -s conftest.$ac_objext; then
11270 ac_cv_type_long_long=yes
11272 echo "$as_me: failed program was:" >&5
11273 sed 's
/^
/|
/' conftest.$ac_ext >&5
11275 ac_cv_type_long_long=no
11278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11280 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11281 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
11283 # The cast to long int works around a bug in the HP C Compiler
11284 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11285 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11286 # This bug is HP SR number 8606223364.
11287 { echo "$as_me:$LINENO: checking size of long long" >&5
11288 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
11289 if test "${ac_cv_sizeof_long_long+set}" = set; then
11290 echo $ECHO_N "(cached) $ECHO_C" >&6
11292 if test "$cross_compiling" = yes; then
11293 # Depending upon the size, compute the lo and hi bounds.
11294 cat >conftest.
$ac_ext <<_ACEOF
11297 cat confdefs.h
>>conftest.
$ac_ext
11298 cat >>conftest.
$ac_ext <<_ACEOF
11299 /* end confdefs.h. */
11300 $ac_includes_default
11301 typedef long long ac__type_sizeof_;
11305 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11312 rm -f conftest.
$ac_objext
11313 if { (ac_try
="$ac_compile"
11314 case "(($ac_try" in
11315 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11316 *) ac_try_echo=$ac_try;;
11318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11319 (eval "$ac_compile") 2>conftest.er1
11321 grep -v '^ *+' conftest.er1 >conftest.err
11323 cat conftest.err >&5
11324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11325 (exit $ac_status); } && {
11326 test -z "$ac_c_werror_flag" ||
11327 test ! -s conftest.err
11328 } && test -s conftest.$ac_objext; then
11331 cat >conftest.$ac_ext <<_ACEOF
11334 cat confdefs.h >>conftest.$ac_ext
11335 cat >>conftest.$ac_ext <<_ACEOF
11336 /* end confdefs.h. */
11337 $ac_includes_default
11338 typedef long long ac__type_sizeof_;
11342 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11349 rm -f conftest.$ac_objext
11350 if { (ac_try="$ac_compile"
11351 case "(($ac_try" in
11352 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11353 *) ac_try_echo
=$ac_try;;
11355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11356 (eval "$ac_compile") 2>conftest.er1
11358 grep -v '^ *+' conftest.er1
>conftest.err
11360 cat conftest.err
>&5
11361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11362 (exit $ac_status); } && {
11363 test -z "$ac_c_werror_flag" ||
11364 test ! -s conftest.err
11365 } && test -s conftest.
$ac_objext; then
11366 ac_hi
=$ac_mid; break
11368 echo "$as_me: failed program was:" >&5
11369 sed 's/^/| /' conftest.
$ac_ext >&5
11371 ac_lo
=`expr $ac_mid + 1`
11372 if test $ac_lo -le $ac_mid; then
11376 ac_mid
=`expr 2 '*' $ac_mid + 1`
11379 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11382 echo "$as_me: failed program was:" >&5
11383 sed 's/^/| /' conftest.
$ac_ext >&5
11385 cat >conftest.
$ac_ext <<_ACEOF
11388 cat confdefs.h
>>conftest.
$ac_ext
11389 cat >>conftest.
$ac_ext <<_ACEOF
11390 /* end confdefs.h. */
11391 $ac_includes_default
11392 typedef long long ac__type_sizeof_;
11396 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11403 rm -f conftest.
$ac_objext
11404 if { (ac_try
="$ac_compile"
11405 case "(($ac_try" in
11406 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11407 *) ac_try_echo=$ac_try;;
11409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11410 (eval "$ac_compile") 2>conftest.er1
11412 grep -v '^ *+' conftest.er1 >conftest.err
11414 cat conftest.err >&5
11415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416 (exit $ac_status); } && {
11417 test -z "$ac_c_werror_flag" ||
11418 test ! -s conftest.err
11419 } && test -s conftest.$ac_objext; then
11422 cat >conftest.$ac_ext <<_ACEOF
11425 cat confdefs.h >>conftest.$ac_ext
11426 cat >>conftest.$ac_ext <<_ACEOF
11427 /* end confdefs.h. */
11428 $ac_includes_default
11429 typedef long long ac__type_sizeof_;
11433 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11440 rm -f conftest.$ac_objext
11441 if { (ac_try="$ac_compile"
11442 case "(($ac_try" in
11443 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11444 *) ac_try_echo
=$ac_try;;
11446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11447 (eval "$ac_compile") 2>conftest.er1
11449 grep -v '^ *+' conftest.er1
>conftest.err
11451 cat conftest.err
>&5
11452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453 (exit $ac_status); } && {
11454 test -z "$ac_c_werror_flag" ||
11455 test ! -s conftest.err
11456 } && test -s conftest.
$ac_objext; then
11457 ac_lo
=$ac_mid; break
11459 echo "$as_me: failed program was:" >&5
11460 sed 's/^/| /' conftest.
$ac_ext >&5
11462 ac_hi
=`expr '(' $ac_mid ')' - 1`
11463 if test $ac_mid -le $ac_hi; then
11467 ac_mid
=`expr 2 '*' $ac_mid`
11470 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11473 echo "$as_me: failed program was:" >&5
11474 sed 's/^/| /' conftest.
$ac_ext >&5
11479 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11482 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11483 # Binary search between lo and hi bounds.
11484 while test "x$ac_lo" != "x$ac_hi"; do
11485 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11486 cat >conftest.
$ac_ext <<_ACEOF
11489 cat confdefs.h
>>conftest.
$ac_ext
11490 cat >>conftest.
$ac_ext <<_ACEOF
11491 /* end confdefs.h. */
11492 $ac_includes_default
11493 typedef long long ac__type_sizeof_;
11497 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11504 rm -f conftest.
$ac_objext
11505 if { (ac_try
="$ac_compile"
11506 case "(($ac_try" in
11507 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11508 *) ac_try_echo=$ac_try;;
11510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11511 (eval "$ac_compile") 2>conftest.er1
11513 grep -v '^ *+' conftest.er1 >conftest.err
11515 cat conftest.err >&5
11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517 (exit $ac_status); } && {
11518 test -z "$ac_c_werror_flag" ||
11519 test ! -s conftest.err
11520 } && test -s conftest.$ac_objext; then
11523 echo "$as_me: failed program was:" >&5
11524 sed 's/^/| /' conftest.$ac_ext >&5
11526 ac_lo=`expr '(' $ac_mid ')' + 1`
11529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11532 ?*) ac_cv_sizeof_long_long=$ac_lo;;
11533 '') if test "$ac_cv_type_long_long" = yes; then
11534 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11535 See \`config.log
' for more details." >&5
11536 echo "$as_me: error: cannot compute sizeof (long long)
11537 See \`config.log' for more details.
" >&2;}
11538 { (exit 77); exit 77; }; }
11540 ac_cv_sizeof_long_long=0
11544 cat >conftest.$ac_ext <<_ACEOF
11547 cat confdefs.h >>conftest.$ac_ext
11548 cat >>conftest.$ac_ext <<_ACEOF
11549 /* end confdefs.h. */
11550 $ac_includes_default
11551 typedef long long ac__type_sizeof_;
11552 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11553 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11555 #include <stdlib.h>
11560 FILE *f = fopen ("conftest.val
", "w
");
11563 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11565 long int i = longval ();
11566 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11568 fprintf (f, "%ld
\n", i);
11572 unsigned long int i = ulongval ();
11573 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11575 fprintf (f, "%lu
\n", i);
11577 return ferror (f) || fclose (f) != 0;
11583 rm -f conftest$ac_exeext
11584 if { (ac_try="$ac_link"
11585 case "(($ac_try" in
11586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11587 *) ac_try_echo=$ac_try;;
11589 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11590 (eval "$ac_link") 2>&5
11592 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11593 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11594 { (case "(($ac_try" in
11595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11596 *) ac_try_echo=$ac_try;;
11598 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11599 (eval "$ac_try") 2>&5
11601 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11602 (exit $ac_status); }; }; then
11603 ac_cv_sizeof_long_long=`cat conftest.val`
11605 echo "$as_me: program exited with status
$ac_status" >&5
11606 echo "$as_me: failed program was
:" >&5
11607 sed 's/^/| /' conftest.$ac_ext >&5
11609 ( exit $ac_status )
11610 if test "$ac_cv_type_long_long" = yes; then
11611 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long long
)
11612 See \
`config.log' for more details." >&5
11613 echo "$as_me: error: cannot compute sizeof (long long)
11614 See \`config.log
' for more details." >&2;}
11615 { (exit 77); exit 77; }; }
11617 ac_cv_sizeof_long_long=0
11620 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11624 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11625 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
11629 cat >>confdefs.h <<_ACEOF
11630 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11636 { echo "$as_me:$LINENO: checking for long double support" >&5
11637 echo $ECHO_N "checking for long double support... $ECHO_C" >&6; }
11638 have_long_double=no
11639 cat >conftest.$ac_ext <<_ACEOF
11642 cat confdefs.h >>conftest.$ac_ext
11643 cat >>conftest.$ac_ext <<_ACEOF
11644 /* end confdefs.h. */
11649 long double x; x = (long double)0;
11654 rm -f conftest.$ac_objext
11655 if { (ac_try="$ac_compile"
11656 case "(($ac_try" in
11657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11658 *) ac_try_echo=$ac_try;;
11660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11661 (eval "$ac_compile") 2>conftest.er1
11663 grep -v '^
*+' conftest.er1 >conftest.err
11665 cat conftest.err >&5
11666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667 (exit $ac_status); } && {
11668 test -z "$ac_c_werror_flag" ||
11669 test ! -s conftest.err
11670 } && test -s conftest.$ac_objext; then
11673 cat >>confdefs.h <<\_ACEOF
11674 #define HAVE_LONG_DOUBLE 1
11677 have_long_double=yes
11680 echo "$as_me: failed program was:" >&5
11681 sed 's
/^
/|
/' conftest.$ac_ext >&5
11686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11687 { echo "$as_me:$LINENO: result: $have_long_double" >&5
11688 echo "${ECHO_T}$have_long_double" >&6; }
11689 if test "$have_long_double" = yes ; then
11690 { echo "$as_me:$LINENO: checking for long double" >&5
11691 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
11692 if test "${ac_cv_type_long_double+set}" = set; then
11693 echo $ECHO_N "(cached) $ECHO_C" >&6
11695 cat >conftest.$ac_ext <<_ACEOF
11698 cat confdefs.h >>conftest.$ac_ext
11699 cat >>conftest.$ac_ext <<_ACEOF
11700 /* end confdefs.h. */
11701 $ac_includes_default
11702 typedef long double ac__type_new_;
11706 if ((ac__type_new_ *) 0)
11708 if (sizeof (ac__type_new_))
11714 rm -f conftest.$ac_objext
11715 if { (ac_try="$ac_compile"
11716 case "(($ac_try" in
11717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11718 *) ac_try_echo=$ac_try;;
11720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11721 (eval "$ac_compile") 2>conftest.er1
11723 grep -v '^
*+' conftest.er1 >conftest.err
11725 cat conftest.err >&5
11726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727 (exit $ac_status); } && {
11728 test -z "$ac_c_werror_flag" ||
11729 test ! -s conftest.err
11730 } && test -s conftest.$ac_objext; then
11731 ac_cv_type_long_double=yes
11733 echo "$as_me: failed program was:" >&5
11734 sed 's
/^
/|
/' conftest.$ac_ext >&5
11736 ac_cv_type_long_double=no
11739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11741 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
11742 echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
11744 # The cast to long int works around a bug in the HP C Compiler
11745 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11746 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11747 # This bug is HP SR number 8606223364.
11748 { echo "$as_me:$LINENO: checking size of long double" >&5
11749 echo $ECHO_N "checking size of long double... $ECHO_C" >&6; }
11750 if test "${ac_cv_sizeof_long_double+set}" = set; then
11751 echo $ECHO_N "(cached) $ECHO_C" >&6
11753 if test "$cross_compiling" = yes; then
11754 # Depending upon the size, compute the lo and hi bounds.
11755 cat >conftest.
$ac_ext <<_ACEOF
11758 cat confdefs.h
>>conftest.
$ac_ext
11759 cat >>conftest.
$ac_ext <<_ACEOF
11760 /* end confdefs.h. */
11761 $ac_includes_default
11762 typedef long double ac__type_sizeof_;
11766 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11773 rm -f conftest.
$ac_objext
11774 if { (ac_try
="$ac_compile"
11775 case "(($ac_try" in
11776 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11777 *) ac_try_echo=$ac_try;;
11779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11780 (eval "$ac_compile") 2>conftest.er1
11782 grep -v '^ *+' conftest.er1 >conftest.err
11784 cat conftest.err >&5
11785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786 (exit $ac_status); } && {
11787 test -z "$ac_c_werror_flag" ||
11788 test ! -s conftest.err
11789 } && test -s conftest.$ac_objext; then
11792 cat >conftest.$ac_ext <<_ACEOF
11795 cat confdefs.h >>conftest.$ac_ext
11796 cat >>conftest.$ac_ext <<_ACEOF
11797 /* end confdefs.h. */
11798 $ac_includes_default
11799 typedef long double ac__type_sizeof_;
11803 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11810 rm -f conftest.$ac_objext
11811 if { (ac_try="$ac_compile"
11812 case "(($ac_try" in
11813 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11814 *) ac_try_echo
=$ac_try;;
11816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11817 (eval "$ac_compile") 2>conftest.er1
11819 grep -v '^ *+' conftest.er1
>conftest.err
11821 cat conftest.err
>&5
11822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823 (exit $ac_status); } && {
11824 test -z "$ac_c_werror_flag" ||
11825 test ! -s conftest.err
11826 } && test -s conftest.
$ac_objext; then
11827 ac_hi
=$ac_mid; break
11829 echo "$as_me: failed program was:" >&5
11830 sed 's/^/| /' conftest.
$ac_ext >&5
11832 ac_lo
=`expr $ac_mid + 1`
11833 if test $ac_lo -le $ac_mid; then
11837 ac_mid
=`expr 2 '*' $ac_mid + 1`
11840 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11843 echo "$as_me: failed program was:" >&5
11844 sed 's/^/| /' conftest.
$ac_ext >&5
11846 cat >conftest.
$ac_ext <<_ACEOF
11849 cat confdefs.h
>>conftest.
$ac_ext
11850 cat >>conftest.
$ac_ext <<_ACEOF
11851 /* end confdefs.h. */
11852 $ac_includes_default
11853 typedef long double ac__type_sizeof_;
11857 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11864 rm -f conftest.
$ac_objext
11865 if { (ac_try
="$ac_compile"
11866 case "(($ac_try" in
11867 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11868 *) ac_try_echo=$ac_try;;
11870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11871 (eval "$ac_compile") 2>conftest.er1
11873 grep -v '^ *+' conftest.er1 >conftest.err
11875 cat conftest.err >&5
11876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11877 (exit $ac_status); } && {
11878 test -z "$ac_c_werror_flag" ||
11879 test ! -s conftest.err
11880 } && test -s conftest.$ac_objext; then
11883 cat >conftest.$ac_ext <<_ACEOF
11886 cat confdefs.h >>conftest.$ac_ext
11887 cat >>conftest.$ac_ext <<_ACEOF
11888 /* end confdefs.h. */
11889 $ac_includes_default
11890 typedef long double ac__type_sizeof_;
11894 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11901 rm -f conftest.$ac_objext
11902 if { (ac_try="$ac_compile"
11903 case "(($ac_try" in
11904 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11905 *) ac_try_echo
=$ac_try;;
11907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11908 (eval "$ac_compile") 2>conftest.er1
11910 grep -v '^ *+' conftest.er1
>conftest.err
11912 cat conftest.err
>&5
11913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914 (exit $ac_status); } && {
11915 test -z "$ac_c_werror_flag" ||
11916 test ! -s conftest.err
11917 } && test -s conftest.
$ac_objext; then
11918 ac_lo
=$ac_mid; break
11920 echo "$as_me: failed program was:" >&5
11921 sed 's/^/| /' conftest.
$ac_ext >&5
11923 ac_hi
=`expr '(' $ac_mid ')' - 1`
11924 if test $ac_mid -le $ac_hi; then
11928 ac_mid
=`expr 2 '*' $ac_mid`
11931 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11934 echo "$as_me: failed program was:" >&5
11935 sed 's/^/| /' conftest.
$ac_ext >&5
11940 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11943 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11944 # Binary search between lo and hi bounds.
11945 while test "x$ac_lo" != "x$ac_hi"; do
11946 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11947 cat >conftest.
$ac_ext <<_ACEOF
11950 cat confdefs.h
>>conftest.
$ac_ext
11951 cat >>conftest.
$ac_ext <<_ACEOF
11952 /* end confdefs.h. */
11953 $ac_includes_default
11954 typedef long double ac__type_sizeof_;
11958 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11965 rm -f conftest.
$ac_objext
11966 if { (ac_try
="$ac_compile"
11967 case "(($ac_try" in
11968 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11969 *) ac_try_echo=$ac_try;;
11971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11972 (eval "$ac_compile") 2>conftest.er1
11974 grep -v '^ *+' conftest.er1 >conftest.err
11976 cat conftest.err >&5
11977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978 (exit $ac_status); } && {
11979 test -z "$ac_c_werror_flag" ||
11980 test ! -s conftest.err
11981 } && test -s conftest.$ac_objext; then
11984 echo "$as_me: failed program was:" >&5
11985 sed 's/^/| /' conftest.$ac_ext >&5
11987 ac_lo=`expr '(' $ac_mid ')' + 1`
11990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11993 ?*) ac_cv_sizeof_long_double=$ac_lo;;
11994 '') if test "$ac_cv_type_long_double" = yes; then
11995 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
11996 See \`config.log
' for more details." >&5
11997 echo "$as_me: error: cannot compute sizeof (long double)
11998 See \`config.log' for more details.
" >&2;}
11999 { (exit 77); exit 77; }; }
12001 ac_cv_sizeof_long_double=0
12005 cat >conftest.$ac_ext <<_ACEOF
12008 cat confdefs.h >>conftest.$ac_ext
12009 cat >>conftest.$ac_ext <<_ACEOF
12010 /* end confdefs.h. */
12011 $ac_includes_default
12012 typedef long double ac__type_sizeof_;
12013 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12014 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12016 #include <stdlib.h>
12021 FILE *f = fopen ("conftest.val
", "w
");
12024 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12026 long int i = longval ();
12027 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12029 fprintf (f, "%ld
\n", i);
12033 unsigned long int i = ulongval ();
12034 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12036 fprintf (f, "%lu
\n", i);
12038 return ferror (f) || fclose (f) != 0;
12044 rm -f conftest$ac_exeext
12045 if { (ac_try="$ac_link"
12046 case "(($ac_try" in
12047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12048 *) ac_try_echo=$ac_try;;
12050 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12051 (eval "$ac_link") 2>&5
12053 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12054 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12055 { (case "(($ac_try" in
12056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12057 *) ac_try_echo=$ac_try;;
12059 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12060 (eval "$ac_try") 2>&5
12062 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12063 (exit $ac_status); }; }; then
12064 ac_cv_sizeof_long_double=`cat conftest.val`
12066 echo "$as_me: program exited with status
$ac_status" >&5
12067 echo "$as_me: failed program was
:" >&5
12068 sed 's/^/| /' conftest.$ac_ext >&5
12070 ( exit $ac_status )
12071 if test "$ac_cv_type_long_double" = yes; then
12072 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long double
)
12073 See \
`config.log' for more details." >&5
12074 echo "$as_me: error: cannot compute sizeof (long double)
12075 See \`config.log
' for more details." >&2;}
12076 { (exit 77); exit 77; }; }
12078 ac_cv_sizeof_long_double=0
12081 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12085 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
12086 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; }
12090 cat >>confdefs.h <<_ACEOF
12091 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
12098 { echo "$as_me:$LINENO: checking for _Bool support" >&5
12099 echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; }
12101 cat >conftest.$ac_ext <<_ACEOF
12104 cat confdefs.h >>conftest.$ac_ext
12105 cat >>conftest.$ac_ext <<_ACEOF
12106 /* end confdefs.h. */
12111 _Bool x; x = (_Bool)0;
12116 rm -f conftest.$ac_objext
12117 if { (ac_try="$ac_compile"
12118 case "(($ac_try" in
12119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12120 *) ac_try_echo=$ac_try;;
12122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12123 (eval "$ac_compile") 2>conftest.er1
12125 grep -v '^
*+' conftest.er1 >conftest.err
12127 cat conftest.err >&5
12128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129 (exit $ac_status); } && {
12130 test -z "$ac_c_werror_flag" ||
12131 test ! -s conftest.err
12132 } && test -s conftest.$ac_objext; then
12135 cat >>confdefs.h <<\_ACEOF
12136 #define HAVE_C99_BOOL 1
12142 echo "$as_me: failed program was:" >&5
12143 sed 's
/^
/|
/' conftest.$ac_ext >&5
12148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12149 { echo "$as_me:$LINENO: result: $have_c99_bool" >&5
12150 echo "${ECHO_T}$have_c99_bool" >&6; }
12151 if test "$have_c99_bool" = yes ; then
12152 { echo "$as_me:$LINENO: checking for _Bool" >&5
12153 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
12154 if test "${ac_cv_type__Bool+set}" = set; then
12155 echo $ECHO_N "(cached) $ECHO_C" >&6
12157 cat >conftest.$ac_ext <<_ACEOF
12160 cat confdefs.h >>conftest.$ac_ext
12161 cat >>conftest.$ac_ext <<_ACEOF
12162 /* end confdefs.h. */
12163 $ac_includes_default
12164 typedef _Bool ac__type_new_;
12168 if ((ac__type_new_ *) 0)
12170 if (sizeof (ac__type_new_))
12176 rm -f conftest.$ac_objext
12177 if { (ac_try="$ac_compile"
12178 case "(($ac_try" in
12179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12180 *) ac_try_echo=$ac_try;;
12182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12183 (eval "$ac_compile") 2>conftest.er1
12185 grep -v '^
*+' conftest.er1 >conftest.err
12187 cat conftest.err >&5
12188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12189 (exit $ac_status); } && {
12190 test -z "$ac_c_werror_flag" ||
12191 test ! -s conftest.err
12192 } && test -s conftest.$ac_objext; then
12193 ac_cv_type__Bool=yes
12195 echo "$as_me: failed program was:" >&5
12196 sed 's
/^
/|
/' conftest.$ac_ext >&5
12198 ac_cv_type__Bool=no
12201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12203 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
12204 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
12206 # The cast to long int works around a bug in the HP C Compiler
12207 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12208 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12209 # This bug is HP SR number 8606223364.
12210 { echo "$as_me:$LINENO: checking size of _Bool" >&5
12211 echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; }
12212 if test "${ac_cv_sizeof__Bool+set}" = set; then
12213 echo $ECHO_N "(cached) $ECHO_C" >&6
12215 if test "$cross_compiling" = yes; then
12216 # Depending upon the size, compute the lo and hi bounds.
12217 cat >conftest.
$ac_ext <<_ACEOF
12220 cat confdefs.h
>>conftest.
$ac_ext
12221 cat >>conftest.
$ac_ext <<_ACEOF
12222 /* end confdefs.h. */
12223 $ac_includes_default
12224 typedef _Bool ac__type_sizeof_;
12228 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12235 rm -f conftest.
$ac_objext
12236 if { (ac_try
="$ac_compile"
12237 case "(($ac_try" in
12238 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12239 *) ac_try_echo=$ac_try;;
12241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12242 (eval "$ac_compile") 2>conftest.er1
12244 grep -v '^ *+' conftest.er1 >conftest.err
12246 cat conftest.err >&5
12247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248 (exit $ac_status); } && {
12249 test -z "$ac_c_werror_flag" ||
12250 test ! -s conftest.err
12251 } && test -s conftest.$ac_objext; then
12254 cat >conftest.$ac_ext <<_ACEOF
12257 cat confdefs.h >>conftest.$ac_ext
12258 cat >>conftest.$ac_ext <<_ACEOF
12259 /* end confdefs.h. */
12260 $ac_includes_default
12261 typedef _Bool ac__type_sizeof_;
12265 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12272 rm -f conftest.$ac_objext
12273 if { (ac_try="$ac_compile"
12274 case "(($ac_try" in
12275 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12276 *) ac_try_echo
=$ac_try;;
12278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12279 (eval "$ac_compile") 2>conftest.er1
12281 grep -v '^ *+' conftest.er1
>conftest.err
12283 cat conftest.err
>&5
12284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285 (exit $ac_status); } && {
12286 test -z "$ac_c_werror_flag" ||
12287 test ! -s conftest.err
12288 } && test -s conftest.
$ac_objext; then
12289 ac_hi
=$ac_mid; break
12291 echo "$as_me: failed program was:" >&5
12292 sed 's/^/| /' conftest.
$ac_ext >&5
12294 ac_lo
=`expr $ac_mid + 1`
12295 if test $ac_lo -le $ac_mid; then
12299 ac_mid
=`expr 2 '*' $ac_mid + 1`
12302 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12305 echo "$as_me: failed program was:" >&5
12306 sed 's/^/| /' conftest.
$ac_ext >&5
12308 cat >conftest.
$ac_ext <<_ACEOF
12311 cat confdefs.h
>>conftest.
$ac_ext
12312 cat >>conftest.
$ac_ext <<_ACEOF
12313 /* end confdefs.h. */
12314 $ac_includes_default
12315 typedef _Bool ac__type_sizeof_;
12319 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12326 rm -f conftest.
$ac_objext
12327 if { (ac_try
="$ac_compile"
12328 case "(($ac_try" in
12329 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12330 *) ac_try_echo=$ac_try;;
12332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12333 (eval "$ac_compile") 2>conftest.er1
12335 grep -v '^ *+' conftest.er1 >conftest.err
12337 cat conftest.err >&5
12338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339 (exit $ac_status); } && {
12340 test -z "$ac_c_werror_flag" ||
12341 test ! -s conftest.err
12342 } && test -s conftest.$ac_objext; then
12345 cat >conftest.$ac_ext <<_ACEOF
12348 cat confdefs.h >>conftest.$ac_ext
12349 cat >>conftest.$ac_ext <<_ACEOF
12350 /* end confdefs.h. */
12351 $ac_includes_default
12352 typedef _Bool ac__type_sizeof_;
12356 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12363 rm -f conftest.$ac_objext
12364 if { (ac_try="$ac_compile"
12365 case "(($ac_try" in
12366 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12367 *) ac_try_echo
=$ac_try;;
12369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12370 (eval "$ac_compile") 2>conftest.er1
12372 grep -v '^ *+' conftest.er1
>conftest.err
12374 cat conftest.err
>&5
12375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376 (exit $ac_status); } && {
12377 test -z "$ac_c_werror_flag" ||
12378 test ! -s conftest.err
12379 } && test -s conftest.
$ac_objext; then
12380 ac_lo
=$ac_mid; break
12382 echo "$as_me: failed program was:" >&5
12383 sed 's/^/| /' conftest.
$ac_ext >&5
12385 ac_hi
=`expr '(' $ac_mid ')' - 1`
12386 if test $ac_mid -le $ac_hi; then
12390 ac_mid
=`expr 2 '*' $ac_mid`
12393 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12396 echo "$as_me: failed program was:" >&5
12397 sed 's/^/| /' conftest.
$ac_ext >&5
12402 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12405 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12406 # Binary search between lo and hi bounds.
12407 while test "x$ac_lo" != "x$ac_hi"; do
12408 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12409 cat >conftest.
$ac_ext <<_ACEOF
12412 cat confdefs.h
>>conftest.
$ac_ext
12413 cat >>conftest.
$ac_ext <<_ACEOF
12414 /* end confdefs.h. */
12415 $ac_includes_default
12416 typedef _Bool ac__type_sizeof_;
12420 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12427 rm -f conftest.
$ac_objext
12428 if { (ac_try
="$ac_compile"
12429 case "(($ac_try" in
12430 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12431 *) ac_try_echo=$ac_try;;
12433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12434 (eval "$ac_compile") 2>conftest.er1
12436 grep -v '^ *+' conftest.er1 >conftest.err
12438 cat conftest.err >&5
12439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440 (exit $ac_status); } && {
12441 test -z "$ac_c_werror_flag" ||
12442 test ! -s conftest.err
12443 } && test -s conftest.$ac_objext; then
12446 echo "$as_me: failed program was:" >&5
12447 sed 's/^/| /' conftest.$ac_ext >&5
12449 ac_lo=`expr '(' $ac_mid ')' + 1`
12452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12455 ?*) ac_cv_sizeof__Bool=$ac_lo;;
12456 '') if test "$ac_cv_type__Bool" = yes; then
12457 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12458 See \`config.log
' for more details." >&5
12459 echo "$as_me: error: cannot compute sizeof (_Bool)
12460 See \`config.log' for more details.
" >&2;}
12461 { (exit 77); exit 77; }; }
12463 ac_cv_sizeof__Bool=0
12467 cat >conftest.$ac_ext <<_ACEOF
12470 cat confdefs.h >>conftest.$ac_ext
12471 cat >>conftest.$ac_ext <<_ACEOF
12472 /* end confdefs.h. */
12473 $ac_includes_default
12474 typedef _Bool ac__type_sizeof_;
12475 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12476 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12478 #include <stdlib.h>
12483 FILE *f = fopen ("conftest.val
", "w
");
12486 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12488 long int i = longval ();
12489 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12491 fprintf (f, "%ld
\n", i);
12495 unsigned long int i = ulongval ();
12496 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12498 fprintf (f, "%lu
\n", i);
12500 return ferror (f) || fclose (f) != 0;
12506 rm -f conftest$ac_exeext
12507 if { (ac_try="$ac_link"
12508 case "(($ac_try" in
12509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12510 *) ac_try_echo=$ac_try;;
12512 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12513 (eval "$ac_link") 2>&5
12515 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12516 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12517 { (case "(($ac_try" in
12518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12519 *) ac_try_echo=$ac_try;;
12521 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12522 (eval "$ac_try") 2>&5
12524 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12525 (exit $ac_status); }; }; then
12526 ac_cv_sizeof__Bool=`cat conftest.val`
12528 echo "$as_me: program exited with status
$ac_status" >&5
12529 echo "$as_me: failed program was
:" >&5
12530 sed 's/^/| /' conftest.$ac_ext >&5
12532 ( exit $ac_status )
12533 if test "$ac_cv_type__Bool" = yes; then
12534 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(_Bool
)
12535 See \
`config.log' for more details." >&5
12536 echo "$as_me: error: cannot compute sizeof (_Bool)
12537 See \`config.log
' for more details." >&2;}
12538 { (exit 77); exit 77; }; }
12540 ac_cv_sizeof__Bool=0
12543 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12547 { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
12548 echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; }
12552 cat >>confdefs.h <<_ACEOF
12553 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
12559 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12560 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12561 if test "${ac_cv_type_uintptr_t+set}" = set; then
12562 echo $ECHO_N "(cached) $ECHO_C" >&6
12564 cat >conftest.$ac_ext <<_ACEOF
12567 cat confdefs.h >>conftest.$ac_ext
12568 cat >>conftest.$ac_ext <<_ACEOF
12569 /* end confdefs.h. */
12570 #ifdef HAVE_STDINT_H
12571 #include <stdint.h>
12574 typedef uintptr_t ac__type_new_;
12578 if ((ac__type_new_ *) 0)
12580 if (sizeof (ac__type_new_))
12586 rm -f conftest.$ac_objext
12587 if { (ac_try="$ac_compile"
12588 case "(($ac_try" in
12589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12590 *) ac_try_echo=$ac_try;;
12592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12593 (eval "$ac_compile") 2>conftest.er1
12595 grep -v '^
*+' conftest.er1 >conftest.err
12597 cat conftest.err >&5
12598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599 (exit $ac_status); } && {
12600 test -z "$ac_c_werror_flag" ||
12601 test ! -s conftest.err
12602 } && test -s conftest.$ac_objext; then
12603 ac_cv_type_uintptr_t=yes
12605 echo "$as_me: failed program was:" >&5
12606 sed 's
/^
/|
/' conftest.$ac_ext >&5
12608 ac_cv_type_uintptr_t=no
12611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12613 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12614 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12615 if test $ac_cv_type_uintptr_t = yes; then
12617 cat >>confdefs.h <<_ACEOF
12618 #define HAVE_UINTPTR_T 1
12621 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12622 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12623 if test "${ac_cv_type_uintptr_t+set}" = set; then
12624 echo $ECHO_N "(cached) $ECHO_C" >&6
12626 cat >conftest.$ac_ext <<_ACEOF
12629 cat confdefs.h >>conftest.$ac_ext
12630 cat >>conftest.$ac_ext <<_ACEOF
12631 /* end confdefs.h. */
12632 $ac_includes_default
12633 typedef uintptr_t ac__type_new_;
12637 if ((ac__type_new_ *) 0)
12639 if (sizeof (ac__type_new_))
12645 rm -f conftest.$ac_objext
12646 if { (ac_try="$ac_compile"
12647 case "(($ac_try" in
12648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12649 *) ac_try_echo=$ac_try;;
12651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12652 (eval "$ac_compile") 2>conftest.er1
12654 grep -v '^
*+' conftest.er1 >conftest.err
12656 cat conftest.err >&5
12657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 (exit $ac_status); } && {
12659 test -z "$ac_c_werror_flag" ||
12660 test ! -s conftest.err
12661 } && test -s conftest.$ac_objext; then
12662 ac_cv_type_uintptr_t=yes
12664 echo "$as_me: failed program was:" >&5
12665 sed 's
/^
/|
/' conftest.$ac_ext >&5
12667 ac_cv_type_uintptr_t=no
12670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12672 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12673 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12675 # The cast to long int works around a bug in the HP C Compiler
12676 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12677 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12678 # This bug is HP SR number 8606223364.
12679 { echo "$as_me:$LINENO: checking size of uintptr_t" >&5
12680 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; }
12681 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
12682 echo $ECHO_N "(cached) $ECHO_C" >&6
12684 if test "$cross_compiling" = yes; then
12685 # Depending upon the size, compute the lo and hi bounds.
12686 cat >conftest.
$ac_ext <<_ACEOF
12689 cat confdefs.h
>>conftest.
$ac_ext
12690 cat >>conftest.
$ac_ext <<_ACEOF
12691 /* end confdefs.h. */
12692 $ac_includes_default
12693 typedef uintptr_t ac__type_sizeof_;
12697 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12704 rm -f conftest.
$ac_objext
12705 if { (ac_try
="$ac_compile"
12706 case "(($ac_try" in
12707 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12708 *) ac_try_echo=$ac_try;;
12710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12711 (eval "$ac_compile") 2>conftest.er1
12713 grep -v '^ *+' conftest.er1 >conftest.err
12715 cat conftest.err >&5
12716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717 (exit $ac_status); } && {
12718 test -z "$ac_c_werror_flag" ||
12719 test ! -s conftest.err
12720 } && test -s conftest.$ac_objext; then
12723 cat >conftest.$ac_ext <<_ACEOF
12726 cat confdefs.h >>conftest.$ac_ext
12727 cat >>conftest.$ac_ext <<_ACEOF
12728 /* end confdefs.h. */
12729 $ac_includes_default
12730 typedef uintptr_t ac__type_sizeof_;
12734 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12741 rm -f conftest.$ac_objext
12742 if { (ac_try="$ac_compile"
12743 case "(($ac_try" in
12744 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12745 *) ac_try_echo
=$ac_try;;
12747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12748 (eval "$ac_compile") 2>conftest.er1
12750 grep -v '^ *+' conftest.er1
>conftest.err
12752 cat conftest.err
>&5
12753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754 (exit $ac_status); } && {
12755 test -z "$ac_c_werror_flag" ||
12756 test ! -s conftest.err
12757 } && test -s conftest.
$ac_objext; then
12758 ac_hi
=$ac_mid; break
12760 echo "$as_me: failed program was:" >&5
12761 sed 's/^/| /' conftest.
$ac_ext >&5
12763 ac_lo
=`expr $ac_mid + 1`
12764 if test $ac_lo -le $ac_mid; then
12768 ac_mid
=`expr 2 '*' $ac_mid + 1`
12771 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12774 echo "$as_me: failed program was:" >&5
12775 sed 's/^/| /' conftest.
$ac_ext >&5
12777 cat >conftest.
$ac_ext <<_ACEOF
12780 cat confdefs.h
>>conftest.
$ac_ext
12781 cat >>conftest.
$ac_ext <<_ACEOF
12782 /* end confdefs.h. */
12783 $ac_includes_default
12784 typedef uintptr_t ac__type_sizeof_;
12788 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12795 rm -f conftest.
$ac_objext
12796 if { (ac_try
="$ac_compile"
12797 case "(($ac_try" in
12798 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12799 *) ac_try_echo=$ac_try;;
12801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12802 (eval "$ac_compile") 2>conftest.er1
12804 grep -v '^ *+' conftest.er1 >conftest.err
12806 cat conftest.err >&5
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); } && {
12809 test -z "$ac_c_werror_flag" ||
12810 test ! -s conftest.err
12811 } && test -s conftest.$ac_objext; then
12814 cat >conftest.$ac_ext <<_ACEOF
12817 cat confdefs.h >>conftest.$ac_ext
12818 cat >>conftest.$ac_ext <<_ACEOF
12819 /* end confdefs.h. */
12820 $ac_includes_default
12821 typedef uintptr_t ac__type_sizeof_;
12825 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12832 rm -f conftest.$ac_objext
12833 if { (ac_try="$ac_compile"
12834 case "(($ac_try" in
12835 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12836 *) ac_try_echo
=$ac_try;;
12838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12839 (eval "$ac_compile") 2>conftest.er1
12841 grep -v '^ *+' conftest.er1
>conftest.err
12843 cat conftest.err
>&5
12844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845 (exit $ac_status); } && {
12846 test -z "$ac_c_werror_flag" ||
12847 test ! -s conftest.err
12848 } && test -s conftest.
$ac_objext; then
12849 ac_lo
=$ac_mid; break
12851 echo "$as_me: failed program was:" >&5
12852 sed 's/^/| /' conftest.
$ac_ext >&5
12854 ac_hi
=`expr '(' $ac_mid ')' - 1`
12855 if test $ac_mid -le $ac_hi; then
12859 ac_mid
=`expr 2 '*' $ac_mid`
12862 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12865 echo "$as_me: failed program was:" >&5
12866 sed 's/^/| /' conftest.
$ac_ext >&5
12871 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12874 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12875 # Binary search between lo and hi bounds.
12876 while test "x$ac_lo" != "x$ac_hi"; do
12877 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12878 cat >conftest.
$ac_ext <<_ACEOF
12881 cat confdefs.h
>>conftest.
$ac_ext
12882 cat >>conftest.
$ac_ext <<_ACEOF
12883 /* end confdefs.h. */
12884 $ac_includes_default
12885 typedef uintptr_t ac__type_sizeof_;
12889 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12896 rm -f conftest.
$ac_objext
12897 if { (ac_try
="$ac_compile"
12898 case "(($ac_try" in
12899 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12900 *) ac_try_echo=$ac_try;;
12902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12903 (eval "$ac_compile") 2>conftest.er1
12905 grep -v '^ *+' conftest.er1 >conftest.err
12907 cat conftest.err >&5
12908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909 (exit $ac_status); } && {
12910 test -z "$ac_c_werror_flag" ||
12911 test ! -s conftest.err
12912 } && test -s conftest.$ac_objext; then
12915 echo "$as_me: failed program was:" >&5
12916 sed 's/^/| /' conftest.$ac_ext >&5
12918 ac_lo=`expr '(' $ac_mid ')' + 1`
12921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12924 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
12925 '') if test "$ac_cv_type_uintptr_t" = yes; then
12926 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
12927 See \`config.log
' for more details." >&5
12928 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12929 See \`config.log' for more details.
" >&2;}
12930 { (exit 77); exit 77; }; }
12932 ac_cv_sizeof_uintptr_t=0
12936 cat >conftest.$ac_ext <<_ACEOF
12939 cat confdefs.h >>conftest.$ac_ext
12940 cat >>conftest.$ac_ext <<_ACEOF
12941 /* end confdefs.h. */
12942 $ac_includes_default
12943 typedef uintptr_t ac__type_sizeof_;
12944 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12945 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12947 #include <stdlib.h>
12952 FILE *f = fopen ("conftest.val
", "w
");
12955 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12957 long int i = longval ();
12958 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12960 fprintf (f, "%ld
\n", i);
12964 unsigned long int i = ulongval ();
12965 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12967 fprintf (f, "%lu
\n", i);
12969 return ferror (f) || fclose (f) != 0;
12975 rm -f conftest$ac_exeext
12976 if { (ac_try="$ac_link"
12977 case "(($ac_try" in
12978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12979 *) ac_try_echo=$ac_try;;
12981 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12982 (eval "$ac_link") 2>&5
12984 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12985 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12986 { (case "(($ac_try" in
12987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12988 *) ac_try_echo=$ac_try;;
12990 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12991 (eval "$ac_try") 2>&5
12993 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12994 (exit $ac_status); }; }; then
12995 ac_cv_sizeof_uintptr_t=`cat conftest.val`
12997 echo "$as_me: program exited with status
$ac_status" >&5
12998 echo "$as_me: failed program was
:" >&5
12999 sed 's/^/| /' conftest.$ac_ext >&5
13001 ( exit $ac_status )
13002 if test "$ac_cv_type_uintptr_t" = yes; then
13003 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(uintptr_t
)
13004 See \
`config.log' for more details." >&5
13005 echo "$as_me: error: cannot compute sizeof (uintptr_t)
13006 See \`config.log
' for more details." >&2;}
13007 { (exit 77); exit 77; }; }
13009 ac_cv_sizeof_uintptr_t=0
13012 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13016 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
13017 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; }
13021 cat >>confdefs.h <<_ACEOF
13022 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
13030 # Hmph. AC_CHECK_SIZEOF() doesn't include
<sys
/types.h
>.
13031 { echo "$as_me:$LINENO: checking size of off_t" >&5
13032 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
13033 if test "${ac_cv_sizeof_off_t+set}" = set; then
13034 echo $ECHO_N "(cached) $ECHO_C" >&6
13036 if test "$cross_compiling" = yes; then
13037 ac_cv_sizeof_off_t
=4
13039 cat >conftest.
$ac_ext <<_ACEOF
13042 cat confdefs.h
>>conftest.
$ac_ext
13043 cat >>conftest.
$ac_ext <<_ACEOF
13044 /* end confdefs.h. */
13046 #include <sys/types.h>
13049 FILE *f=fopen("conftestval", "w");
13051 fprintf(f, "%d\n", sizeof(off_t));
13055 rm -f conftest
$ac_exeext
13056 if { (ac_try
="$ac_link"
13057 case "(($ac_try" in
13058 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13059 *) ac_try_echo=$ac_try;;
13061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13062 (eval "$ac_link") 2>&5
13064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13066 { (case "(($ac_try" in
13067 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13068 *) ac_try_echo
=$ac_try;;
13070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13071 (eval "$ac_try") 2>&5
13073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13074 (exit $ac_status); }; }; then
13075 ac_cv_sizeof_off_t
=`cat conftestval`
13077 echo "$as_me: program exited with status $ac_status" >&5
13078 echo "$as_me: failed program was:" >&5
13079 sed 's/^/| /' conftest.
$ac_ext >&5
13081 ( exit $ac_status )
13082 ac_cv_sizeof_off_t
=0
13084 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13091 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
13092 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
13094 cat >>confdefs.h
<<_ACEOF
13095 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
13099 { echo "$as_me:$LINENO: checking whether to enable large file support" >&5
13100 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; }
13101 if test "$have_long_long" = yes
13103 if test "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
13104 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
13106 cat >>confdefs.h
<<\_ACEOF
13107 #define HAVE_LARGEFILE_SUPPORT 1
13110 { echo "$as_me:$LINENO: result: yes" >&5
13111 echo "${ECHO_T}yes" >&6; }
13113 { echo "$as_me:$LINENO: result: no" >&5
13114 echo "${ECHO_T}no" >&6; }
13117 { echo "$as_me:$LINENO: result: no" >&5
13118 echo "${ECHO_T}no" >&6; }
13121 # AC_CHECK_SIZEOF() doesn't include <time.h>.
13122 { echo "$as_me:$LINENO: checking size of time_t" >&5
13123 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
13124 if test "${ac_cv_sizeof_time_t+set}" = set; then
13125 echo $ECHO_N "(cached) $ECHO_C" >&6
13127 if test "$cross_compiling" = yes; then
13128 ac_cv_sizeof_time_t
=4
13130 cat >conftest.
$ac_ext <<_ACEOF
13133 cat confdefs.h
>>conftest.
$ac_ext
13134 cat >>conftest.
$ac_ext <<_ACEOF
13135 /* end confdefs.h. */
13140 FILE *f=fopen("conftestval", "w");
13142 fprintf(f, "%d\n", sizeof(time_t));
13146 rm -f conftest
$ac_exeext
13147 if { (ac_try
="$ac_link"
13148 case "(($ac_try" in
13149 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13150 *) ac_try_echo=$ac_try;;
13152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13153 (eval "$ac_link") 2>&5
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13157 { (case "(($ac_try" in
13158 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13159 *) ac_try_echo
=$ac_try;;
13161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13162 (eval "$ac_try") 2>&5
13164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13165 (exit $ac_status); }; }; then
13166 ac_cv_sizeof_time_t
=`cat conftestval`
13168 echo "$as_me: program exited with status $ac_status" >&5
13169 echo "$as_me: failed program was:" >&5
13170 sed 's/^/| /' conftest.
$ac_ext >&5
13172 ( exit $ac_status )
13173 ac_cv_sizeof_time_t
=0
13175 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13182 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
13183 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
13185 cat >>confdefs.h
<<_ACEOF
13186 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
13191 # if have pthread_t then define SIZEOF_PTHREAD_T
13193 if test "$ac_cv_kpthread" = "yes"
13194 then CC
="$CC -Kpthread"
13195 elif test "$ac_cv_kthread" = "yes"
13196 then CC
="$CC -Kthread"
13197 elif test "$ac_cv_pthread" = "yes"
13198 then CC
="$CC -pthread"
13200 { echo "$as_me:$LINENO: checking for pthread_t" >&5
13201 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
13203 cat >conftest.
$ac_ext <<_ACEOF
13206 cat confdefs.h
>>conftest.
$ac_ext
13207 cat >>conftest.
$ac_ext <<_ACEOF
13208 /* end confdefs.h. */
13209 #include <pthread.h>
13213 pthread_t x; x = *(pthread_t*)0;
13218 rm -f conftest.
$ac_objext
13219 if { (ac_try
="$ac_compile"
13220 case "(($ac_try" in
13221 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13222 *) ac_try_echo=$ac_try;;
13224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13225 (eval "$ac_compile") 2>conftest.er1
13227 grep -v '^ *+' conftest.er1 >conftest.err
13229 cat conftest.err >&5
13230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231 (exit $ac_status); } && {
13232 test -z "$ac_c_werror_flag" ||
13233 test ! -s conftest.err
13234 } && test -s conftest.$ac_objext; then
13237 echo "$as_me: failed program was:" >&5
13238 sed 's/^/| /' conftest.$ac_ext >&5
13243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13244 { echo "$as_me:$LINENO: result: $have_pthread_t" >&5
13245 echo "${ECHO_T}$have_pthread_t" >&6; }
13246 if test "$have_pthread_t" = yes ; then
13247 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
13248 { echo "$as_me:$LINENO: checking size of pthread_t" >&5
13249 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; }
13250 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
13251 echo $ECHO_N "(cached) $ECHO_C" >&6
13253 if test "$cross_compiling" = yes; then
13254 ac_cv_sizeof_pthread_t=4
13256 cat >conftest.$ac_ext <<_ACEOF
13259 cat confdefs.h >>conftest.$ac_ext
13260 cat >>conftest.$ac_ext <<_ACEOF
13261 /* end confdefs.h. */
13263 #include <pthread.h>
13266 FILE *f=fopen("conftestval", "w");
13268 fprintf(f, "%d\n", sizeof(pthread_t));
13272 rm -f conftest$ac_exeext
13273 if { (ac_try="$ac_link"
13274 case "(($ac_try" in
13275 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13276 *) ac_try_echo
=$ac_try;;
13278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13279 (eval "$ac_link") 2>&5
13281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13282 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13283 { (case "(($ac_try" in
13284 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13285 *) ac_try_echo=$ac_try;;
13287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13288 (eval "$ac_try") 2>&5
13290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291 (exit $ac_status); }; }; then
13292 ac_cv_sizeof_pthread_t=`cat conftestval
`
13294 echo "$as_me: program exited with status $ac_status" >&5
13295 echo "$as_me: failed program was:" >&5
13296 sed 's/^/| /' conftest.$ac_ext >&5
13298 ( exit $ac_status )
13299 ac_cv_sizeof_pthread_t=0
13301 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13308 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
13309 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; }
13311 cat >>confdefs.h <<_ACEOF
13312 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
13321 case $ac_sys_system/$ac_sys_release in
13322 Darwin/[01567]\..*)
13323 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
13326 OTHER_LIBTOOL_OPT=""
13333 case $ac_sys_system/$ac_sys_release in
13334 Darwin/[01567]\..*)
13335 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
13336 if test "${enable_universalsdk}"; then
13339 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr
/bin
/arch
`"
13341 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13342 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
13344 gcc_version=`gcc
-dumpversion`
13345 if test ${gcc_version} '<' 4.0
13347 LIBTOOL_CRUFT="-lcc_dynamic"
13351 if test "$cross_compiling" = yes; then
13354 cat >conftest.$ac_ext <<_ACEOF
13357 cat confdefs.h >>conftest.$ac_ext
13358 cat >>conftest.$ac_ext <<_ACEOF
13359 /* end confdefs.h. */
13361 #include <unistd.h>
13362 int main(int argc, char*argv[])
13364 if (sizeof(long) == 4) {
13372 rm -f conftest$ac_exeext
13373 if { (ac_try="$ac_link"
13374 case "(($ac_try" in
13375 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13376 *) ac_try_echo
=$ac_try;;
13378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13379 (eval "$ac_link") 2>&5
13381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13383 { (case "(($ac_try" in
13384 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13385 *) ac_try_echo=$ac_try;;
13387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13388 (eval "$ac_try") 2>&5
13390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391 (exit $ac_status); }; }; then
13394 echo "$as_me: program exited with status $ac_status" >&5
13395 echo "$as_me: failed program was:" >&5
13396 sed 's/^/| /' conftest.$ac_ext >&5
13398 ( exit $ac_status )
13401 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13406 if test "${ac_osx_32bit}" = "yes"; then
13407 case `/usr
/bin
/arch
` in
13409 MACOSX_DEFAULT_ARCH="i386"
13412 MACOSX_DEFAULT_ARCH="ppc"
13415 { { echo "$as_me:$LINENO: error: Unexpected output of 'arch' on OSX" >&5
13416 echo "$as_me: error: Unexpected output of 'arch' on OSX" >&2;}
13417 { (exit 1); exit 1; }; }
13421 case `/usr
/bin
/arch
` in
13423 MACOSX_DEFAULT_ARCH="x86_64"
13426 MACOSX_DEFAULT_ARCH="ppc64"
13429 { { echo "$as_me:$LINENO: error: Unexpected output of 'arch' on OSX" >&5
13430 echo "$as_me: error: Unexpected output of 'arch' on OSX" >&2;}
13431 { (exit 1); exit 1; }; }
13435 #ARCH_RUN_32BIT="true"
13438 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}"
13439 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13440 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
13443 { echo "$as_me:$LINENO: checking for --enable-framework" >&5
13444 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; }
13445 if test "$enable_framework"
13447 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
13448 # -F. is needed to allow linking to the framework while
13449 # in the build location.
13451 cat >>confdefs.h <<\_ACEOF
13452 #define WITH_NEXT_FRAMEWORK 1
13455 { echo "$as_me:$LINENO: result: yes" >&5
13456 echo "${ECHO_T}yes" >&6; }
13457 if test $enable_shared = "yes"
13459 { { echo "$as_me:$LINENO: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" >&5
13460 echo "$as_me: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" >&2;}
13461 { (exit 1); exit 1; }; }
13464 { echo "$as_me:$LINENO: result: no" >&5
13465 echo "${ECHO_T}no" >&6; }
13468 { echo "$as_me:$LINENO: checking for dyld" >&5
13469 echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
13470 case $ac_sys_system/$ac_sys_release in
13473 cat >>confdefs.h <<\_ACEOF
13474 #define WITH_DYLD 1
13477 { echo "$as_me:$LINENO: result: always on for Darwin" >&5
13478 echo "${ECHO_T}always on for Darwin" >&6; }
13481 { echo "$as_me:$LINENO: result: no" >&5
13482 echo "${ECHO_T}no" >&6; }
13486 # Set info about shared libraries.
13492 # SO is the extension of shared libraries `(including the dot
!)
13493 # -- usually .so, .sl on HP-UX, .dll on Cygwin
13494 { echo "$as_me:$LINENO: checking SO" >&5
13495 echo $ECHO_N "checking SO... $ECHO_C" >&6; }
13498 case $ac_sys_system in
13509 # this might also be a termcap variable, see #610332
13511 echo '====================================================================='
13513 echo '+ WARNING: You have set SO in your environment. +'
13514 echo '+ Do you really mean to change the extension for shared libraries? +'
13515 echo '+ Continuing in 10 seconds to let you to ponder. +'
13517 echo '====================================================================='
13520 { echo "$as_me:$LINENO: result: $SO" >&5
13521 echo "${ECHO_T}$SO" >&6; }
13524 cat >>confdefs.h
<<_ACEOF
13525 #define SHLIB_EXT "$SO"
13528 # LDSHARED is the ld *command* used to create shared library
13529 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
13530 # (Shared libraries in this instance are shared modules to be loaded into
13531 # Python, as opposed to building Python itself as a shared library.)
13532 { echo "$as_me:$LINENO: checking LDSHARED" >&5
13533 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
13534 if test -z "$LDSHARED"
13536 case $ac_sys_system/$ac_sys_release in
13538 BLDSHARED
="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
13539 LDSHARED
="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
13541 IRIX
/5*) LDSHARED
="ld -shared";;
13542 IRIX
*/6*) LDSHARED
="ld ${SGI_ABI} -shared -all";;
13544 if test "$GCC" = "yes"
13545 then LDSHARED
='$(CC) -shared'
13546 else LDSHARED
='$(CC) -G';
13549 if test "$GCC" = "yes"
13550 then LDSHARED
='$(CC) -shared'
13551 else LDSHARED
='ld -b';
13553 OSF
*) LDSHARED
="ld -shared -expect_unresolved \"*\"";;
13555 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
13556 if test "$enable_framework" ; then
13557 # Link against the framework. All externals should be defined.
13558 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13559 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13561 # No framework. Ignore undefined symbols, assuming they come from Python
13562 LDSHARED
="$LDSHARED -undefined suppress"
13564 Darwin
/1.4*|Darwin
/5.
*|Darwin
/6.
*)
13565 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
13566 if test "$enable_framework" ; then
13567 # Link against the framework. All externals should be defined.
13568 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13569 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13571 # No framework, use the Python app as bundle-loader
13572 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13573 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13576 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
13577 # This allows an extension to be used in any Python
13579 if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2
13581 if test "${enable_universalsdk}"; then
13582 LDFLAGS
="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
13584 LDSHARED
='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
13585 BLDSHARED
="$LDSHARED"
13587 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
13588 if test "$enable_framework" ; then
13589 # Link against the framework. All externals should be defined.
13590 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13591 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13593 # No framework, use the Python app as bundle-loader
13594 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13595 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13599 Linux
*|GNU
*|QNX
*) LDSHARED
='$(CC) -shared';;
13600 BSD
/OS
*/4*) LDSHARED
="gcc -shared";;
13602 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13604 LDSHARED
="$CC -shared ${LDFLAGS}"
13606 LDSHARED
="ld -Bshareable ${LDFLAGS}"
13609 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13611 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13614 [01].
* |
2.
[0-7] |
2.
[0-7].
*)
13615 LDSHARED
="ld -Bshareable ${LDFLAGS}"
13618 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13622 NetBSD
*|DragonFly
*) LDSHARED
="cc -shared ${LDFLAGS}";;
13623 OpenUNIX
*|UnixWare
*)
13624 if test "$GCC" = "yes"
13625 then LDSHARED
='$(CC) -shared'
13626 else LDSHARED
='$(CC) -G'
13628 SCO_SV
*) LDSHARED
='$(CC) -Wl,-G,-Bexport';;
13629 CYGWIN
*) LDSHARED
="gcc -shared -Wl,--enable-auto-image-base";;
13630 atheos
*) LDSHARED
="gcc -shared";;
13634 { echo "$as_me:$LINENO: result: $LDSHARED" >&5
13635 echo "${ECHO_T}$LDSHARED" >&6; }
13636 BLDSHARED
=${BLDSHARED-$LDSHARED}
13637 # CCSHARED are the C *flags* used to create objects to go into a shared
13638 # library (module) -- this is only needed for a few systems
13639 { echo "$as_me:$LINENO: checking CCSHARED" >&5
13640 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
13641 if test -z "$CCSHARED"
13643 case $ac_sys_system/$ac_sys_release in
13644 SunOS
*) if test "$GCC" = yes;
13645 then CCSHARED
="-fPIC";
13646 elif test `uname -p` = sparc
;
13647 then CCSHARED
="-xcode=pic32";
13648 else CCSHARED
="-Kpic";
13650 hp
*|HP
*) if test "$GCC" = yes;
13651 then CCSHARED
="-fPIC";
13652 else CCSHARED
="+z";
13654 Linux
*|GNU
*) CCSHARED
="-fPIC";;
13655 BSD
/OS
*/4*) CCSHARED
="-fpic";;
13656 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*) CCSHARED
="-fPIC";;
13657 OpenUNIX
*|UnixWare
*)
13658 if test "$GCC" = "yes"
13659 then CCSHARED
="-fPIC"
13660 else CCSHARED
="-KPIC"
13663 if test "$GCC" = "yes"
13664 then CCSHARED
="-fPIC"
13665 else CCSHARED
="-Kpic -belf"
13667 IRIX
*/6*) case $CC in
13668 *gcc
*) CCSHARED
="-shared";;
13671 atheos
*) CCSHARED
="-fPIC";;
13674 { echo "$as_me:$LINENO: result: $CCSHARED" >&5
13675 echo "${ECHO_T}$CCSHARED" >&6; }
13676 # LINKFORSHARED are the flags passed to the $(CC) command that links
13677 # the python executable -- this is only needed for a few systems
13678 { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
13679 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
13680 if test -z "$LINKFORSHARED"
13682 case $ac_sys_system/$ac_sys_release in
13683 AIX
*) LINKFORSHARED
='-Wl,-bE:Modules/python.exp -lld';;
13685 LINKFORSHARED
="-Wl,-E -Wl,+s";;
13686 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
13687 BSD
/OS
/4*) LINKFORSHARED
="-Xlinker -export-dynamic";;
13688 Linux
*|GNU
*) LINKFORSHARED
="-Xlinker -export-dynamic";;
13689 # -u libsys_s pulls in all symbols in libsys
13691 LINKFORSHARED
="$extra_undefs -framework CoreFoundation"
13692 if test "$enable_framework"
13694 LINKFORSHARED
="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13696 LINKFORSHARED
="$LINKFORSHARED";;
13697 OpenUNIX
*|UnixWare
*) LINKFORSHARED
="-Wl,-Bexport";;
13698 SCO_SV
*) LINKFORSHARED
="-Wl,-Bexport";;
13699 ReliantUNIX
*) LINKFORSHARED
="-W1 -Blargedynsym";;
13700 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*)
13701 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13703 LINKFORSHARED
="-Wl,--export-dynamic"
13705 SunOS
/5*) case $CC in
13707 if $CC -Xlinker --help 2>&1 |
grep export-dynamic
>/dev
/null
13709 LINKFORSHARED
="-Xlinker --export-dynamic"
13713 if test $enable_shared = "no"
13715 LINKFORSHARED
='-Wl,--out-implib=$(LDLIBRARY)'
13718 # -Wl,-E causes the symbols to be added to the dynamic
13719 # symbol table so that they can be found when a module
13720 # is loaded. -N 2048K causes the stack size to be set
13721 # to 2048 kilobytes so that the stack doesn't overflow
13722 # when running test_compile.py.
13723 LINKFORSHARED
='-Wl,-E -N 2048K';;
13726 { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
13727 echo "${ECHO_T}$LINKFORSHARED" >&6; }
13731 { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
13732 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
13733 if test ! "$LIBRARY" = "$LDLIBRARY"
13735 case $ac_sys_system in
13737 # Cygwin needs CCSHARED when building extension DLLs
13738 # but not when building the interpreter DLL.
13739 CFLAGSFORSHARED
='';;
13741 CFLAGSFORSHARED
='$(CCSHARED)'
13744 { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
13745 echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
13747 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
13748 # library (with --enable-shared).
13749 # For platforms on which shared libraries are not allowed to have unresolved
13750 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
13751 # if it is not required, since it creates a dependency of the shared library
13752 # to LIBS. This, in turn, means that applications linking the shared libpython
13753 # don't need to link LIBS explicitly. The default should be only changed
13754 # on systems where this approach causes problems.
13756 { echo "$as_me:$LINENO: checking SHLIBS" >&5
13757 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
13758 case "$ac_sys_system" in
13762 { echo "$as_me:$LINENO: result: $SHLIBS" >&5
13763 echo "${ECHO_T}$SHLIBS" >&6; }
13766 # checks for libraries
13768 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13769 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13770 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13771 echo $ECHO_N "(cached) $ECHO_C" >&6
13773 ac_check_lib_save_LIBS
=$LIBS
13775 cat >conftest.
$ac_ext <<_ACEOF
13778 cat confdefs.h
>>conftest.
$ac_ext
13779 cat >>conftest.
$ac_ext <<_ACEOF
13780 /* end confdefs.h. */
13782 /* Override any GCC internal prototype to avoid an error.
13783 Use char because int might match the return type of a GCC
13784 builtin and then its argument prototype would still apply. */
13797 rm -f conftest.
$ac_objext conftest
$ac_exeext
13798 if { (ac_try
="$ac_link"
13799 case "(($ac_try" in
13800 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13801 *) ac_try_echo=$ac_try;;
13803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13804 (eval "$ac_link") 2>conftest.er1
13806 grep -v '^ *+' conftest.er1 >conftest.err
13808 cat conftest.err >&5
13809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810 (exit $ac_status); } && {
13811 test -z "$ac_c_werror_flag" ||
13812 test ! -s conftest.err
13813 } && test -s conftest$ac_exeext &&
13814 $as_test_x conftest$ac_exeext; then
13815 ac_cv_lib_dl_dlopen=yes
13817 echo "$as_me: failed program was:" >&5
13818 sed 's/^/| /' conftest.$ac_ext >&5
13820 ac_cv_lib_dl_dlopen=no
13823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13824 conftest$ac_exeext conftest.$ac_ext
13825 LIBS=$ac_check_lib_save_LIBS
13827 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13828 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13829 if test $ac_cv_lib_dl_dlopen = yes; then
13830 cat >>confdefs.h <<_ACEOF
13831 #define HAVE_LIBDL 1
13837 # Dynamic linking for SunOS/Solaris and SYSV
13839 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13840 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
13841 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13842 echo $ECHO_N "(cached) $ECHO_C" >&6
13844 ac_check_lib_save_LIBS=$LIBS
13846 cat >conftest.$ac_ext <<_ACEOF
13849 cat confdefs.h >>conftest.$ac_ext
13850 cat >>conftest.$ac_ext <<_ACEOF
13851 /* end confdefs.h. */
13853 /* Override any GCC internal prototype to avoid an error.
13854 Use char because int might match the return type of a GCC
13855 builtin and then its argument prototype would still apply. */
13863 return shl_load ();
13868 rm -f conftest.$ac_objext conftest$ac_exeext
13869 if { (ac_try="$ac_link"
13870 case "(($ac_try" in
13871 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13872 *) ac_try_echo
=$ac_try;;
13874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13875 (eval "$ac_link") 2>conftest.er1
13877 grep -v '^ *+' conftest.er1
>conftest.err
13879 cat conftest.err
>&5
13880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881 (exit $ac_status); } && {
13882 test -z "$ac_c_werror_flag" ||
13883 test ! -s conftest.err
13884 } && test -s conftest
$ac_exeext &&
13885 $as_test_x conftest
$ac_exeext; then
13886 ac_cv_lib_dld_shl_load
=yes
13888 echo "$as_me: failed program was:" >&5
13889 sed 's/^/| /' conftest.
$ac_ext >&5
13891 ac_cv_lib_dld_shl_load
=no
13894 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13895 conftest
$ac_exeext conftest.
$ac_ext
13896 LIBS
=$ac_check_lib_save_LIBS
13898 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13899 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
13900 if test $ac_cv_lib_dld_shl_load = yes; then
13901 cat >>confdefs.h
<<_ACEOF
13902 #define HAVE_LIBDLD 1
13908 # Dynamic linking for HP-UX
13910 # only check for sem_init if thread support is requested
13911 if test "$with_threads" = "yes" -o -z "$with_threads"; then
13912 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
13913 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
13914 if test "${ac_cv_search_sem_init+set}" = set; then
13915 echo $ECHO_N "(cached) $ECHO_C" >&6
13917 ac_func_search_save_LIBS
=$LIBS
13918 cat >conftest.
$ac_ext <<_ACEOF
13921 cat confdefs.h
>>conftest.
$ac_ext
13922 cat >>conftest.
$ac_ext <<_ACEOF
13923 /* end confdefs.h. */
13925 /* Override any GCC internal prototype to avoid an error.
13926 Use char because int might match the return type of a GCC
13927 builtin and then its argument prototype would still apply. */
13935 return sem_init ();
13940 for ac_lib
in '' pthread rt posix4
; do
13941 if test -z "$ac_lib"; then
13942 ac_res
="none required"
13945 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13947 rm -f conftest.
$ac_objext conftest
$ac_exeext
13948 if { (ac_try
="$ac_link"
13949 case "(($ac_try" in
13950 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13951 *) ac_try_echo=$ac_try;;
13953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13954 (eval "$ac_link") 2>conftest.er1
13956 grep -v '^ *+' conftest.er1 >conftest.err
13958 cat conftest.err >&5
13959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13960 (exit $ac_status); } && {
13961 test -z "$ac_c_werror_flag" ||
13962 test ! -s conftest.err
13963 } && test -s conftest$ac_exeext &&
13964 $as_test_x conftest$ac_exeext; then
13965 ac_cv_search_sem_init=$ac_res
13967 echo "$as_me: failed program was:" >&5
13968 sed 's/^/| /' conftest.$ac_ext >&5
13973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13975 if test "${ac_cv_search_sem_init+set}" = set; then
13979 if test "${ac_cv_search_sem_init+set}" = set; then
13982 ac_cv_search_sem_init=no
13984 rm conftest.$ac_ext
13985 LIBS=$ac_func_search_save_LIBS
13987 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
13988 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
13989 ac_res=$ac_cv_search_sem_init
13990 if test "$ac_res" != no; then
13991 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13994 # 'Real Time' functions on Solaris
13995 # posix4 on Solaris 2.6
13996 # pthread (first!) on Linux
13999 # check if we need libintl for locale functions
14000 { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
14001 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
14002 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
14003 echo $ECHO_N "(cached) $ECHO_C" >&6
14005 ac_check_lib_save_LIBS=$LIBS
14006 LIBS="-lintl $LIBS"
14007 cat >conftest.$ac_ext <<_ACEOF
14010 cat confdefs.h >>conftest.$ac_ext
14011 cat >>conftest.$ac_ext <<_ACEOF
14012 /* end confdefs.h. */
14014 /* Override any GCC internal prototype to avoid an error.
14015 Use char because int might match the return type of a GCC
14016 builtin and then its argument prototype would still apply. */
14020 char textdomain ();
14024 return textdomain ();
14029 rm -f conftest.$ac_objext conftest$ac_exeext
14030 if { (ac_try="$ac_link"
14031 case "(($ac_try" in
14032 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14033 *) ac_try_echo
=$ac_try;;
14035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14036 (eval "$ac_link") 2>conftest.er1
14038 grep -v '^ *+' conftest.er1
>conftest.err
14040 cat conftest.err
>&5
14041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042 (exit $ac_status); } && {
14043 test -z "$ac_c_werror_flag" ||
14044 test ! -s conftest.err
14045 } && test -s conftest
$ac_exeext &&
14046 $as_test_x conftest
$ac_exeext; then
14047 ac_cv_lib_intl_textdomain
=yes
14049 echo "$as_me: failed program was:" >&5
14050 sed 's/^/| /' conftest.
$ac_ext >&5
14052 ac_cv_lib_intl_textdomain
=no
14055 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14056 conftest
$ac_exeext conftest.
$ac_ext
14057 LIBS
=$ac_check_lib_save_LIBS
14059 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
14060 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
14061 if test $ac_cv_lib_intl_textdomain = yes; then
14063 cat >>confdefs.h
<<\_ACEOF
14064 #define WITH_LIBINTL 1
14067 LIBS
="-lintl $LIBS"
14071 # checks for system dependent C++ extensions support
14072 case "$ac_sys_system" in
14073 AIX
*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
14074 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
14075 cat >conftest.
$ac_ext <<_ACEOF
14078 cat confdefs.h
>>conftest.
$ac_ext
14079 cat >>conftest.
$ac_ext <<_ACEOF
14080 /* end confdefs.h. */
14081 #include "/usr/lpp/xlC/include/load.h"
14085 loadAndInit("", 0, "")
14090 rm -f conftest.
$ac_objext conftest
$ac_exeext
14091 if { (ac_try
="$ac_link"
14092 case "(($ac_try" in
14093 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14094 *) ac_try_echo=$ac_try;;
14096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14097 (eval "$ac_link") 2>conftest.er1
14099 grep -v '^ *+' conftest.er1 >conftest.err
14101 cat conftest.err >&5
14102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103 (exit $ac_status); } && {
14104 test -z "$ac_c_werror_flag" ||
14105 test ! -s conftest.err
14106 } && test -s conftest$ac_exeext &&
14107 $as_test_x conftest$ac_exeext; then
14109 cat >>confdefs.h <<\_ACEOF
14110 #define AIX_GENUINE_CPLUSPLUS 1
14113 { echo "$as_me:$LINENO: result: yes" >&5
14114 echo "${ECHO_T}yes" >&6; }
14116 echo "$as_me: failed program was:" >&5
14117 sed 's/^/| /' conftest.$ac_ext >&5
14119 { echo "$as_me:$LINENO: result: no" >&5
14120 echo "${ECHO_T}no" >&6; }
14123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14124 conftest$ac_exeext conftest.$ac_ext;;
14128 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
14129 { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
14130 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
14131 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
14132 echo $ECHO_N "(cached) $ECHO_C" >&6
14134 ac_check_lib_save_LIBS=$LIBS
14136 cat >conftest.$ac_ext <<_ACEOF
14139 cat confdefs.h >>conftest.$ac_ext
14140 cat >>conftest.$ac_ext <<_ACEOF
14141 /* end confdefs.h. */
14143 /* Override any GCC internal prototype to avoid an error.
14144 Use char because int might match the return type of a GCC
14145 builtin and then its argument prototype would still apply. */
14158 rm -f conftest.$ac_objext conftest$ac_exeext
14159 if { (ac_try="$ac_link"
14160 case "(($ac_try" in
14161 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14162 *) ac_try_echo
=$ac_try;;
14164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14165 (eval "$ac_link") 2>conftest.er1
14167 grep -v '^ *+' conftest.er1
>conftest.err
14169 cat conftest.err
>&5
14170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171 (exit $ac_status); } && {
14172 test -z "$ac_c_werror_flag" ||
14173 test ! -s conftest.err
14174 } && test -s conftest
$ac_exeext &&
14175 $as_test_x conftest
$ac_exeext; then
14176 ac_cv_lib_nsl_t_open
=yes
14178 echo "$as_me: failed program was:" >&5
14179 sed 's/^/| /' conftest.
$ac_ext >&5
14181 ac_cv_lib_nsl_t_open
=no
14184 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14185 conftest
$ac_exeext conftest.
$ac_ext
14186 LIBS
=$ac_check_lib_save_LIBS
14188 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
14189 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
14190 if test $ac_cv_lib_nsl_t_open = yes; then
14194 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14195 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
14196 if test "${ac_cv_lib_socket_socket+set}" = set; then
14197 echo $ECHO_N "(cached) $ECHO_C" >&6
14199 ac_check_lib_save_LIBS
=$LIBS
14200 LIBS
="-lsocket $LIBS $LIBS"
14201 cat >conftest.
$ac_ext <<_ACEOF
14204 cat confdefs.h
>>conftest.
$ac_ext
14205 cat >>conftest.
$ac_ext <<_ACEOF
14206 /* end confdefs.h. */
14208 /* Override any GCC internal prototype to avoid an error.
14209 Use char because int might match the return type of a GCC
14210 builtin and then its argument prototype would still apply. */
14223 rm -f conftest.
$ac_objext conftest
$ac_exeext
14224 if { (ac_try
="$ac_link"
14225 case "(($ac_try" in
14226 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14227 *) ac_try_echo=$ac_try;;
14229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14230 (eval "$ac_link") 2>conftest.er1
14232 grep -v '^ *+' conftest.er1 >conftest.err
14234 cat conftest.err >&5
14235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236 (exit $ac_status); } && {
14237 test -z "$ac_c_werror_flag" ||
14238 test ! -s conftest.err
14239 } && test -s conftest$ac_exeext &&
14240 $as_test_x conftest$ac_exeext; then
14241 ac_cv_lib_socket_socket=yes
14243 echo "$as_me: failed program was:" >&5
14244 sed 's/^/| /' conftest.$ac_ext >&5
14246 ac_cv_lib_socket_socket=no
14249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14250 conftest$ac_exeext conftest.$ac_ext
14251 LIBS=$ac_check_lib_save_LIBS
14253 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
14254 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
14255 if test $ac_cv_lib_socket_socket = yes; then
14256 LIBS="-lsocket $LIBS"
14260 { echo "$as_me:$LINENO: checking for --with-libs" >&5
14261 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
14263 # Check whether --with-libs was given.
14264 if test "${with_libs+set}" = set; then
14265 withval=$with_libs;
14266 { echo "$as_me:$LINENO: result: $withval" >&5
14267 echo "${ECHO_T}$withval" >&6; }
14268 LIBS="$withval $LIBS"
14271 { echo "$as_me:$LINENO: result: no" >&5
14272 echo "${ECHO_T}no" >&6; }
14276 # Check for use of the system libffi library
14277 { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
14278 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
14280 # Check whether --with-system_ffi was given.
14281 if test "${with_system_ffi+set}" = set; then
14282 withval=$with_system_ffi;
14286 { echo "$as_me:$LINENO: result: $with_system_ffi" >&5
14287 echo "${ECHO_T}$with_system_ffi" >&6; }
14289 # Check for --with-dbmliborder
14290 { echo "$as_me:$LINENO: checking for --with-dbmliborder" >&5
14291 echo $ECHO_N "checking for --with-dbmliborder... $ECHO_C" >&6; }
14293 # Check whether --with-dbmliborder was given.
14294 if test "${with_dbmliborder+set}" = set; then
14295 withval=$with_dbmliborder;
14296 if test x$with_dbmliborder = xyes
14298 { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
14299 echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
14300 { (exit 1); exit 1; }; }
14302 for db in `echo $with_dbmliborder |
sed 's/:/ /g'`; do
14303 if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb
14305 { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
14306 echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
14307 { (exit 1); exit 1; }; }
14313 { echo "$as_me:$LINENO: result: $with_dbmliborder" >&5
14314 echo "${ECHO_T}$with_dbmliborder" >&6; }
14316 # Determine if signalmodule should be used.
14319 { echo "$as_me:$LINENO: checking for --with-signal-module" >&5
14320 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; }
14322 # Check whether --with-signal-module was given.
14323 if test "${with_signal_module+set}" = set; then
14324 withval=$with_signal_module;
14328 if test -z "$with_signal_module"
14329 then with_signal_module="yes"
14331 { echo "$as_me:$LINENO: result: $with_signal_module" >&5
14332 echo "${ECHO_T}$with_signal_module" >&6; }
14334 if test "${with_signal_module}" = "yes"; then
14335 USE_SIGNAL_MODULE=""
14338 USE_SIGNAL_MODULE="#"
14339 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
14342 # This is used to generate Setup.config
14344 USE_THREAD_MODULE=""
14346 { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
14347 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; }
14350 # Check whether --with-dec-threads was given.
14351 if test "${with_dec_threads+set}" = set; then
14352 withval=$with_dec_threads;
14353 { echo "$as_me:$LINENO: result: $withval" >&5
14354 echo "${ECHO_T}$withval" >&6; }
14356 if test "${with_thread+set}" != set; then
14357 with_thread="$withval";
14360 { echo "$as_me:$LINENO: result: no" >&5
14361 echo "${ECHO_T}no" >&6; }
14365 # Templates for things AC_DEFINEd more than once.
14366 # For a single AC_DEFINE, no template is needed.
14374 { echo "$as_me:$LINENO: checking for --with-threads" >&5
14375 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; }
14377 # Check whether --with-threads was given.
14378 if test "${with_threads+set}" = set; then
14379 withval=$with_threads;
14383 # --with-thread is deprecated, but check for it anyway
14385 # Check whether --with-thread was given.
14386 if test "${with_thread+set}" = set; then
14387 withval=$with_thread; with_threads=$with_thread
14391 if test -z "$with_threads"
14392 then with_threads="yes"
14394 { echo "$as_me:$LINENO: result: $with_threads" >&5
14395 echo "${ECHO_T}$with_threads" >&6; }
14398 if test "$with_threads" = "no"
14400 USE_THREAD_MODULE="#"
14401 elif test "$ac_cv_pthread_is_default" = yes
14403 cat >>confdefs.h <<\_ACEOF
14404 #define WITH_THREAD 1
14407 # Defining _REENTRANT on system with POSIX threads should not hurt.
14408 cat >>confdefs.h <<\_ACEOF
14409 #define _REENTRANT 1
14413 THREADOBJ="Python/thread.o"
14414 elif test "$ac_cv_kpthread" = "yes"
14417 if test "$ac_cv_cxx_thread" = "yes"; then
14418 CXX="$CXX -Kpthread"
14420 cat >>confdefs.h <<\_ACEOF
14421 #define WITH_THREAD 1
14425 THREADOBJ="Python/thread.o"
14426 elif test "$ac_cv_kthread" = "yes"
14429 if test "$ac_cv_cxx_thread" = "yes"; then
14430 CXX="$CXX -Kthread"
14432 cat >>confdefs.h <<\_ACEOF
14433 #define WITH_THREAD 1
14437 THREADOBJ="Python/thread.o"
14438 elif test "$ac_cv_pthread" = "yes"
14441 if test "$ac_cv_cxx_thread" = "yes"; then
14442 CXX="$CXX -pthread"
14444 cat >>confdefs.h <<\_ACEOF
14445 #define WITH_THREAD 1
14449 THREADOBJ="Python/thread.o"
14451 if test ! -z "$with_threads" -a -d "$with_threads"
14452 then LDFLAGS="$LDFLAGS -L$with_threads"
14454 if test ! -z "$withval" -a -d "$withval"
14455 then LDFLAGS="$LDFLAGS -L$withval"
14458 # According to the POSIX spec, a pthreads implementation must
14459 # define _POSIX_THREADS in unistd.h. Some apparently don't
14460 # (e.g. gnu pth with pthread emulation)
14461 { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
14462 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; }
14463 cat >conftest.$ac_ext <<_ACEOF
14466 cat confdefs.h >>conftest.$ac_ext
14467 cat >>conftest.$ac_ext <<_ACEOF
14468 /* end confdefs.h. */
14470 #include <unistd.h>
14471 #ifdef _POSIX_THREADS
14476 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14477 $EGREP "yes" >/dev/null 2>&1; then
14478 unistd_defines_pthreads=yes
14480 unistd_defines_pthreads=no
14484 { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
14485 echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
14487 cat >>confdefs.h <<\_ACEOF
14488 #define _REENTRANT 1
14491 if test "${ac_cv_header_cthreads_h+set}" = set; then
14492 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
14493 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
14494 if test "${ac_cv_header_cthreads_h+set}" = set; then
14495 echo $ECHO_N "(cached) $ECHO_C" >&6
14497 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14498 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
14500 # Is the header compilable?
14501 { echo "$as_me:$LINENO: checking cthreads.h usability" >&5
14502 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; }
14503 cat >conftest.$ac_ext <<_ACEOF
14506 cat confdefs.h >>conftest.$ac_ext
14507 cat >>conftest.$ac_ext <<_ACEOF
14508 /* end confdefs.h. */
14509 $ac_includes_default
14510 #include <cthreads.h>
14512 rm -f conftest.$ac_objext
14513 if { (ac_try="$ac_compile"
14514 case "(($ac_try" in
14515 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14516 *) ac_try_echo
=$ac_try;;
14518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14519 (eval "$ac_compile") 2>conftest.er1
14521 grep -v '^ *+' conftest.er1
>conftest.err
14523 cat conftest.err
>&5
14524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525 (exit $ac_status); } && {
14526 test -z "$ac_c_werror_flag" ||
14527 test ! -s conftest.err
14528 } && test -s conftest.
$ac_objext; then
14529 ac_header_compiler
=yes
14531 echo "$as_me: failed program was:" >&5
14532 sed 's/^/| /' conftest.
$ac_ext >&5
14534 ac_header_compiler
=no
14537 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14538 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14539 echo "${ECHO_T}$ac_header_compiler" >&6; }
14541 # Is the header present?
14542 { echo "$as_me:$LINENO: checking cthreads.h presence" >&5
14543 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; }
14544 cat >conftest.
$ac_ext <<_ACEOF
14547 cat confdefs.h
>>conftest.
$ac_ext
14548 cat >>conftest.
$ac_ext <<_ACEOF
14549 /* end confdefs.h. */
14550 #include <cthreads.h>
14552 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14553 case "(($ac_try" in
14554 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14555 *) ac_try_echo=$ac_try;;
14557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14558 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14560 grep -v '^ *+' conftest.er1 >conftest.err
14562 cat conftest.err >&5
14563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564 (exit $ac_status); } >/dev/null && {
14565 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14566 test ! -s conftest.err
14568 ac_header_preproc=yes
14570 echo "$as_me: failed program was:" >&5
14571 sed 's/^/| /' conftest.$ac_ext >&5
14573 ac_header_preproc=no
14576 rm -f conftest.err conftest.$ac_ext
14577 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14578 echo "${ECHO_T}$ac_header_preproc" >&6; }
14580 # So? What about this header?
14581 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14583 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14584 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14585 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
14586 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
14587 ac_header_preproc=yes
14590 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
14591 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
14592 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
14593 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
14594 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
14595 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
14596 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14597 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14598 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
14599 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
14600 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
14601 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
14603 ## -------------------------------------- ##
14604 ## Report this to http://bugs.python.org/ ##
14605 ## -------------------------------------- ##
14607 ) | sed "s/^/$as_me: WARNING: /" >&2
14610 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
14611 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
14612 if test "${ac_cv_header_cthreads_h+set}" = set; then
14613 echo $ECHO_N "(cached) $ECHO_C" >&6
14615 ac_cv_header_cthreads_h=$ac_header_preproc
14617 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14618 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
14621 if test $ac_cv_header_cthreads_h = yes; then
14622 cat >>confdefs.h <<\_ACEOF
14623 #define WITH_THREAD 1
14626 cat >>confdefs.h <<\_ACEOF
14627 #define C_THREADS 1
14631 cat >>confdefs.h <<\_ACEOF
14632 #define HURD_C_THREADS 1
14635 LIBS="$LIBS -lthreads"
14636 THREADOBJ="Python/thread.o"
14639 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14640 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14641 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
14642 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14643 echo $ECHO_N "(cached) $ECHO_C" >&6
14645 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14646 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
14648 # Is the header compilable?
14649 { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
14650 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; }
14651 cat >conftest.$ac_ext <<_ACEOF
14654 cat confdefs.h >>conftest.$ac_ext
14655 cat >>conftest.$ac_ext <<_ACEOF
14656 /* end confdefs.h. */
14657 $ac_includes_default
14658 #include <mach/cthreads.h>
14660 rm -f conftest.$ac_objext
14661 if { (ac_try="$ac_compile"
14662 case "(($ac_try" in
14663 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14664 *) ac_try_echo
=$ac_try;;
14666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14667 (eval "$ac_compile") 2>conftest.er1
14669 grep -v '^ *+' conftest.er1
>conftest.err
14671 cat conftest.err
>&5
14672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673 (exit $ac_status); } && {
14674 test -z "$ac_c_werror_flag" ||
14675 test ! -s conftest.err
14676 } && test -s conftest.
$ac_objext; then
14677 ac_header_compiler
=yes
14679 echo "$as_me: failed program was:" >&5
14680 sed 's/^/| /' conftest.
$ac_ext >&5
14682 ac_header_compiler
=no
14685 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14686 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14687 echo "${ECHO_T}$ac_header_compiler" >&6; }
14689 # Is the header present?
14690 { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
14691 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; }
14692 cat >conftest.
$ac_ext <<_ACEOF
14695 cat confdefs.h
>>conftest.
$ac_ext
14696 cat >>conftest.
$ac_ext <<_ACEOF
14697 /* end confdefs.h. */
14698 #include <mach/cthreads.h>
14700 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14701 case "(($ac_try" in
14702 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14703 *) ac_try_echo=$ac_try;;
14705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14706 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14708 grep -v '^ *+' conftest.er1 >conftest.err
14710 cat conftest.err >&5
14711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712 (exit $ac_status); } >/dev/null && {
14713 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14714 test ! -s conftest.err
14716 ac_header_preproc=yes
14718 echo "$as_me: failed program was:" >&5
14719 sed 's/^/| /' conftest.$ac_ext >&5
14721 ac_header_preproc=no
14724 rm -f conftest.err conftest.$ac_ext
14725 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14726 echo "${ECHO_T}$ac_header_preproc" >&6; }
14728 # So? What about this header?
14729 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14731 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14732 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14733 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
14734 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
14735 ac_header_preproc=yes
14738 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
14739 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
14740 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
14741 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
14742 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
14743 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
14744 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14745 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14746 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
14747 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
14748 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
14749 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
14751 ## -------------------------------------- ##
14752 ## Report this to http://bugs.python.org/ ##
14753 ## -------------------------------------- ##
14755 ) | sed "s/^/$as_me: WARNING: /" >&2
14758 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14759 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
14760 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14761 echo $ECHO_N "(cached) $ECHO_C" >&6
14763 ac_cv_header_mach_cthreads_h=$ac_header_preproc
14765 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14766 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
14769 if test $ac_cv_header_mach_cthreads_h = yes; then
14770 cat >>confdefs.h <<\_ACEOF
14771 #define WITH_THREAD 1
14774 cat >>confdefs.h <<\_ACEOF
14775 #define C_THREADS 1
14779 cat >>confdefs.h <<\_ACEOF
14780 #define MACH_C_THREADS 1
14783 THREADOBJ="Python/thread.o"
14786 { echo "$as_me:$LINENO: checking for --with-pth" >&5
14787 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; }
14789 # Check whether --with-pth was given.
14790 if test "${with_pth+set}" = set; then
14791 withval=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5
14792 echo "${ECHO_T}$withval" >&6; }
14793 cat >>confdefs.h <<\_ACEOF
14794 #define WITH_THREAD 1
14798 cat >>confdefs.h <<\_ACEOF
14803 THREADOBJ="Python/thread.o"
14805 { echo "$as_me:$LINENO: result: no" >&5
14806 echo "${ECHO_T}no" >&6; }
14808 # Just looking for pthread_create in libpthread is not enough:
14809 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
14810 # So we really have to include pthread.h, and then link.
14812 LIBS="$LIBS -lpthread"
14813 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
14814 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
14815 cat >conftest.$ac_ext <<_ACEOF
14818 cat confdefs.h >>conftest.$ac_ext
14819 cat >>conftest.$ac_ext <<_ACEOF
14820 /* end confdefs.h. */
14821 #include <pthread.h>
14823 void * start_routine (void *arg) { exit (0); }
14828 pthread_create (NULL, NULL, start_routine, NULL)
14833 rm -f conftest.$ac_objext conftest$ac_exeext
14834 if { (ac_try="$ac_link"
14835 case "(($ac_try" in
14836 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14837 *) ac_try_echo
=$ac_try;;
14839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14840 (eval "$ac_link") 2>conftest.er1
14842 grep -v '^ *+' conftest.er1
>conftest.err
14844 cat conftest.err
>&5
14845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14846 (exit $ac_status); } && {
14847 test -z "$ac_c_werror_flag" ||
14848 test ! -s conftest.err
14849 } && test -s conftest
$ac_exeext &&
14850 $as_test_x conftest
$ac_exeext; then
14852 { echo "$as_me:$LINENO: result: yes" >&5
14853 echo "${ECHO_T}yes" >&6; }
14854 cat >>confdefs.h
<<\_ACEOF
14855 #define WITH_THREAD 1
14859 THREADOBJ
="Python/thread.o"
14861 echo "$as_me: failed program was:" >&5
14862 sed 's/^/| /' conftest.
$ac_ext >&5
14866 { echo "$as_me:$LINENO: checking for pthread_detach" >&5
14867 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; }
14868 if test "${ac_cv_func_pthread_detach+set}" = set; then
14869 echo $ECHO_N "(cached) $ECHO_C" >&6
14871 cat >conftest.
$ac_ext <<_ACEOF
14874 cat confdefs.h
>>conftest.
$ac_ext
14875 cat >>conftest.
$ac_ext <<_ACEOF
14876 /* end confdefs.h. */
14877 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
14878 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14879 #define pthread_detach innocuous_pthread_detach
14881 /* System header to define __stub macros and hopefully few prototypes,
14882 which can conflict with char pthread_detach (); below.
14883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14884 <limits.h> exists even on freestanding compilers. */
14887 # include <limits.h>
14889 # include <assert.h>
14892 #undef pthread_detach
14894 /* Override any GCC internal prototype to avoid an error.
14895 Use char because int might match the return type of a GCC
14896 builtin and then its argument prototype would still apply. */
14900 char pthread_detach ();
14901 /* The GNU C library defines this for functions which it implements
14902 to always fail with ENOSYS. Some functions are actually named
14903 something starting with __ and the normal name is an alias. */
14904 #if defined __stub_pthread_detach || defined __stub___pthread_detach
14911 return pthread_detach ();
14916 rm -f conftest.
$ac_objext conftest
$ac_exeext
14917 if { (ac_try
="$ac_link"
14918 case "(($ac_try" in
14919 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14920 *) ac_try_echo=$ac_try;;
14922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14923 (eval "$ac_link") 2>conftest.er1
14925 grep -v '^ *+' conftest.er1 >conftest.err
14927 cat conftest.err >&5
14928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14929 (exit $ac_status); } && {
14930 test -z "$ac_c_werror_flag" ||
14931 test ! -s conftest.err
14932 } && test -s conftest$ac_exeext &&
14933 $as_test_x conftest$ac_exeext; then
14934 ac_cv_func_pthread_detach=yes
14936 echo "$as_me: failed program was:" >&5
14937 sed 's/^/| /' conftest.$ac_ext >&5
14939 ac_cv_func_pthread_detach=no
14942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14943 conftest$ac_exeext conftest.$ac_ext
14945 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
14946 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; }
14947 if test $ac_cv_func_pthread_detach = yes; then
14948 cat >>confdefs.h <<\_ACEOF
14949 #define WITH_THREAD 1
14953 THREADOBJ="Python/thread.o"
14956 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14957 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
14958 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
14959 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14960 echo $ECHO_N "(cached) $ECHO_C" >&6
14962 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
14963 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
14965 # Is the header compilable?
14966 { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
14967 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; }
14968 cat >conftest.$ac_ext <<_ACEOF
14971 cat confdefs.h >>conftest.$ac_ext
14972 cat >>conftest.$ac_ext <<_ACEOF
14973 /* end confdefs.h. */
14974 $ac_includes_default
14975 #include <atheos/threads.h>
14977 rm -f conftest.$ac_objext
14978 if { (ac_try="$ac_compile"
14979 case "(($ac_try" in
14980 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14981 *) ac_try_echo
=$ac_try;;
14983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14984 (eval "$ac_compile") 2>conftest.er1
14986 grep -v '^ *+' conftest.er1
>conftest.err
14988 cat conftest.err
>&5
14989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990 (exit $ac_status); } && {
14991 test -z "$ac_c_werror_flag" ||
14992 test ! -s conftest.err
14993 } && test -s conftest.
$ac_objext; then
14994 ac_header_compiler
=yes
14996 echo "$as_me: failed program was:" >&5
14997 sed 's/^/| /' conftest.
$ac_ext >&5
14999 ac_header_compiler
=no
15002 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15003 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15004 echo "${ECHO_T}$ac_header_compiler" >&6; }
15006 # Is the header present?
15007 { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
15008 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; }
15009 cat >conftest.
$ac_ext <<_ACEOF
15012 cat confdefs.h
>>conftest.
$ac_ext
15013 cat >>conftest.
$ac_ext <<_ACEOF
15014 /* end confdefs.h. */
15015 #include <atheos/threads.h>
15017 if { (ac_try
="$ac_cpp conftest.$ac_ext"
15018 case "(($ac_try" in
15019 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15020 *) ac_try_echo=$ac_try;;
15022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15023 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15025 grep -v '^ *+' conftest.er1 >conftest.err
15027 cat conftest.err >&5
15028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15029 (exit $ac_status); } >/dev/null && {
15030 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15031 test ! -s conftest.err
15033 ac_header_preproc=yes
15035 echo "$as_me: failed program was:" >&5
15036 sed 's/^/| /' conftest.$ac_ext >&5
15038 ac_header_preproc=no
15041 rm -f conftest.err conftest.$ac_ext
15042 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15043 echo "${ECHO_T}$ac_header_preproc" >&6; }
15045 # So? What about this header?
15046 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15048 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
15049 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15050 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
15051 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
15052 ac_header_preproc=yes
15055 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
15056 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
15057 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
15058 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
15059 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
15060 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
15061 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
15062 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
15063 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
15064 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
15065 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
15066 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
15068 ## -------------------------------------- ##
15069 ## Report this to http://bugs.python.org/ ##
15070 ## -------------------------------------- ##
15072 ) | sed "s/^/$as_me: WARNING: /" >&2
15075 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
15076 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
15077 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
15078 echo $ECHO_N "(cached) $ECHO_C" >&6
15080 ac_cv_header_atheos_threads_h=$ac_header_preproc
15082 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
15083 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
15086 if test $ac_cv_header_atheos_threads_h = yes; then
15087 cat >>confdefs.h <<\_ACEOF
15088 #define WITH_THREAD 1
15092 cat >>confdefs.h <<\_ACEOF
15093 #define ATHEOS_THREADS 1
15096 THREADOBJ="Python/thread.o"
15099 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
15100 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
15101 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
15102 echo $ECHO_N "(cached) $ECHO_C" >&6
15104 ac_check_lib_save_LIBS=$LIBS
15105 LIBS="-lpthreads $LIBS"
15106 cat >conftest.$ac_ext <<_ACEOF
15109 cat confdefs.h >>conftest.$ac_ext
15110 cat >>conftest.$ac_ext <<_ACEOF
15111 /* end confdefs.h. */
15113 /* Override any GCC internal prototype to avoid an error.
15114 Use char because int might match the return type of a GCC
15115 builtin and then its argument prototype would still apply. */
15119 char pthread_create ();
15123 return pthread_create ();
15128 rm -f conftest.$ac_objext conftest$ac_exeext
15129 if { (ac_try="$ac_link"
15130 case "(($ac_try" in
15131 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15132 *) ac_try_echo
=$ac_try;;
15134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15135 (eval "$ac_link") 2>conftest.er1
15137 grep -v '^ *+' conftest.er1
>conftest.err
15139 cat conftest.err
>&5
15140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15141 (exit $ac_status); } && {
15142 test -z "$ac_c_werror_flag" ||
15143 test ! -s conftest.err
15144 } && test -s conftest
$ac_exeext &&
15145 $as_test_x conftest
$ac_exeext; then
15146 ac_cv_lib_pthreads_pthread_create
=yes
15148 echo "$as_me: failed program was:" >&5
15149 sed 's/^/| /' conftest.
$ac_ext >&5
15151 ac_cv_lib_pthreads_pthread_create
=no
15154 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15155 conftest
$ac_exeext conftest.
$ac_ext
15156 LIBS
=$ac_check_lib_save_LIBS
15158 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
15159 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
15160 if test $ac_cv_lib_pthreads_pthread_create = yes; then
15161 cat >>confdefs.h
<<\_ACEOF
15162 #define WITH_THREAD 1
15166 LIBS
="$LIBS -lpthreads"
15167 THREADOBJ
="Python/thread.o"
15170 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
15171 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
15172 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
15173 echo $ECHO_N "(cached) $ECHO_C" >&6
15175 ac_check_lib_save_LIBS
=$LIBS
15177 cat >conftest.
$ac_ext <<_ACEOF
15180 cat confdefs.h
>>conftest.
$ac_ext
15181 cat >>conftest.
$ac_ext <<_ACEOF
15182 /* end confdefs.h. */
15184 /* Override any GCC internal prototype to avoid an error.
15185 Use char because int might match the return type of a GCC
15186 builtin and then its argument prototype would still apply. */
15190 char pthread_create ();
15194 return pthread_create ();
15199 rm -f conftest.
$ac_objext conftest
$ac_exeext
15200 if { (ac_try
="$ac_link"
15201 case "(($ac_try" in
15202 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15203 *) ac_try_echo=$ac_try;;
15205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15206 (eval "$ac_link") 2>conftest.er1
15208 grep -v '^ *+' conftest.er1 >conftest.err
15210 cat conftest.err >&5
15211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212 (exit $ac_status); } && {
15213 test -z "$ac_c_werror_flag" ||
15214 test ! -s conftest.err
15215 } && test -s conftest$ac_exeext &&
15216 $as_test_x conftest$ac_exeext; then
15217 ac_cv_lib_c_r_pthread_create=yes
15219 echo "$as_me: failed program was:" >&5
15220 sed 's/^/| /' conftest.$ac_ext >&5
15222 ac_cv_lib_c_r_pthread_create=no
15225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15226 conftest$ac_exeext conftest.$ac_ext
15227 LIBS=$ac_check_lib_save_LIBS
15229 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
15230 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
15231 if test $ac_cv_lib_c_r_pthread_create = yes; then
15232 cat >>confdefs.h <<\_ACEOF
15233 #define WITH_THREAD 1
15238 THREADOBJ="Python/thread.o"
15241 { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
15242 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
15243 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
15244 echo $ECHO_N "(cached) $ECHO_C" >&6
15246 ac_check_lib_save_LIBS=$LIBS
15247 LIBS="-lpthread $LIBS"
15248 cat >conftest.$ac_ext <<_ACEOF
15251 cat confdefs.h >>conftest.$ac_ext
15252 cat >>conftest.$ac_ext <<_ACEOF
15253 /* end confdefs.h. */
15255 /* Override any GCC internal prototype to avoid an error.
15256 Use char because int might match the return type of a GCC
15257 builtin and then its argument prototype would still apply. */
15261 char __pthread_create_system ();
15265 return __pthread_create_system ();
15270 rm -f conftest.$ac_objext conftest$ac_exeext
15271 if { (ac_try="$ac_link"
15272 case "(($ac_try" in
15273 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15274 *) ac_try_echo
=$ac_try;;
15276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15277 (eval "$ac_link") 2>conftest.er1
15279 grep -v '^ *+' conftest.er1
>conftest.err
15281 cat conftest.err
>&5
15282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15283 (exit $ac_status); } && {
15284 test -z "$ac_c_werror_flag" ||
15285 test ! -s conftest.err
15286 } && test -s conftest
$ac_exeext &&
15287 $as_test_x conftest
$ac_exeext; then
15288 ac_cv_lib_pthread___pthread_create_system
=yes
15290 echo "$as_me: failed program was:" >&5
15291 sed 's/^/| /' conftest.
$ac_ext >&5
15293 ac_cv_lib_pthread___pthread_create_system
=no
15296 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15297 conftest
$ac_exeext conftest.
$ac_ext
15298 LIBS
=$ac_check_lib_save_LIBS
15300 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
15301 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
15302 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
15303 cat >>confdefs.h
<<\_ACEOF
15304 #define WITH_THREAD 1
15308 LIBS
="$LIBS -lpthread"
15309 THREADOBJ
="Python/thread.o"
15312 { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
15313 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
15314 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
15315 echo $ECHO_N "(cached) $ECHO_C" >&6
15317 ac_check_lib_save_LIBS
=$LIBS
15319 cat >conftest.
$ac_ext <<_ACEOF
15322 cat confdefs.h
>>conftest.
$ac_ext
15323 cat >>conftest.
$ac_ext <<_ACEOF
15324 /* end confdefs.h. */
15326 /* Override any GCC internal prototype to avoid an error.
15327 Use char because int might match the return type of a GCC
15328 builtin and then its argument prototype would still apply. */
15332 char pthread_create ();
15336 return pthread_create ();
15341 rm -f conftest.
$ac_objext conftest
$ac_exeext
15342 if { (ac_try
="$ac_link"
15343 case "(($ac_try" in
15344 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15345 *) ac_try_echo=$ac_try;;
15347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15348 (eval "$ac_link") 2>conftest.er1
15350 grep -v '^ *+' conftest.er1 >conftest.err
15352 cat conftest.err >&5
15353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354 (exit $ac_status); } && {
15355 test -z "$ac_c_werror_flag" ||
15356 test ! -s conftest.err
15357 } && test -s conftest$ac_exeext &&
15358 $as_test_x conftest$ac_exeext; then
15359 ac_cv_lib_cma_pthread_create=yes
15361 echo "$as_me: failed program was:" >&5
15362 sed 's/^/| /' conftest.$ac_ext >&5
15364 ac_cv_lib_cma_pthread_create=no
15367 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15368 conftest$ac_exeext conftest.$ac_ext
15369 LIBS=$ac_check_lib_save_LIBS
15371 { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
15372 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
15373 if test $ac_cv_lib_cma_pthread_create = yes; then
15374 cat >>confdefs.h <<\_ACEOF
15375 #define WITH_THREAD 1
15380 THREADOBJ="Python/thread.o"
15383 USE_THREAD_MODULE="#"
15400 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15401 conftest$ac_exeext conftest.$ac_ext
15411 { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
15412 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
15413 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
15414 echo $ECHO_N "(cached) $ECHO_C" >&6
15416 ac_check_lib_save_LIBS=$LIBS
15418 cat >conftest.$ac_ext <<_ACEOF
15421 cat confdefs.h >>conftest.$ac_ext
15422 cat >>conftest.$ac_ext <<_ACEOF
15423 /* end confdefs.h. */
15425 /* Override any GCC internal prototype to avoid an error.
15426 Use char because int might match the return type of a GCC
15427 builtin and then its argument prototype would still apply. */
15435 return usconfig ();
15440 rm -f conftest.$ac_objext conftest$ac_exeext
15441 if { (ac_try="$ac_link"
15442 case "(($ac_try" in
15443 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15444 *) ac_try_echo
=$ac_try;;
15446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15447 (eval "$ac_link") 2>conftest.er1
15449 grep -v '^ *+' conftest.er1
>conftest.err
15451 cat conftest.err
>&5
15452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15453 (exit $ac_status); } && {
15454 test -z "$ac_c_werror_flag" ||
15455 test ! -s conftest.err
15456 } && test -s conftest
$ac_exeext &&
15457 $as_test_x conftest
$ac_exeext; then
15458 ac_cv_lib_mpc_usconfig
=yes
15460 echo "$as_me: failed program was:" >&5
15461 sed 's/^/| /' conftest.
$ac_ext >&5
15463 ac_cv_lib_mpc_usconfig
=no
15466 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15467 conftest
$ac_exeext conftest.
$ac_ext
15468 LIBS
=$ac_check_lib_save_LIBS
15470 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
15471 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
15472 if test $ac_cv_lib_mpc_usconfig = yes; then
15473 cat >>confdefs.h
<<\_ACEOF
15474 #define WITH_THREAD 1
15478 THREADOBJ
="Python/thread.o"
15479 USE_THREAD_MODULE
=""
15483 if test "$posix_threads" != "yes"; then
15484 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
15485 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
15486 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
15487 echo $ECHO_N "(cached) $ECHO_C" >&6
15489 ac_check_lib_save_LIBS
=$LIBS
15490 LIBS
="-lthread $LIBS"
15491 cat >conftest.
$ac_ext <<_ACEOF
15494 cat confdefs.h
>>conftest.
$ac_ext
15495 cat >>conftest.
$ac_ext <<_ACEOF
15496 /* end confdefs.h. */
15498 /* Override any GCC internal prototype to avoid an error.
15499 Use char because int might match the return type of a GCC
15500 builtin and then its argument prototype would still apply. */
15504 char thr_create ();
15508 return thr_create ();
15513 rm -f conftest.
$ac_objext conftest
$ac_exeext
15514 if { (ac_try
="$ac_link"
15515 case "(($ac_try" in
15516 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15517 *) ac_try_echo=$ac_try;;
15519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15520 (eval "$ac_link") 2>conftest.er1
15522 grep -v '^ *+' conftest.er1 >conftest.err
15524 cat conftest.err >&5
15525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15526 (exit $ac_status); } && {
15527 test -z "$ac_c_werror_flag" ||
15528 test ! -s conftest.err
15529 } && test -s conftest$ac_exeext &&
15530 $as_test_x conftest$ac_exeext; then
15531 ac_cv_lib_thread_thr_create=yes
15533 echo "$as_me: failed program was:" >&5
15534 sed 's/^/| /' conftest.$ac_ext >&5
15536 ac_cv_lib_thread_thr_create=no
15539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15540 conftest$ac_exeext conftest.$ac_ext
15541 LIBS=$ac_check_lib_save_LIBS
15543 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
15544 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
15545 if test $ac_cv_lib_thread_thr_create = yes; then
15546 cat >>confdefs.h <<\_ACEOF
15547 #define WITH_THREAD 1
15550 LIBS="$LIBS -lthread"
15551 THREADOBJ="Python/thread.o"
15552 USE_THREAD_MODULE=""
15557 if test "$USE_THREAD_MODULE" != "#"
15559 # If the above checks didn't disable threads, (at least) OSF1
15560 # needs this '-threads' argument during linking.
15561 case $ac_sys_system in
15562 OSF1) LDLAST=-threads;;
15567 if test "$posix_threads" = "yes"; then
15568 if test "$unistd_defines_pthreads" = "no"; then
15570 cat >>confdefs.h <<\_ACEOF
15571 #define _POSIX_THREADS 1
15576 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
15577 case $ac_sys_system/$ac_sys_release in
15579 cat >>confdefs.h <<\_ACEOF
15580 #define HAVE_PTHREAD_DESTRUCTOR 1
15585 cat >>confdefs.h <<\_ACEOF
15586 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
15591 cat >>confdefs.h <<\_ACEOF
15592 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
15598 { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
15599 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
15600 if test "${ac_cv_pthread_system_supported+set}" = set; then
15601 echo $ECHO_N "(cached) $ECHO_C" >&6
15603 if test "$cross_compiling" = yes; then
15604 ac_cv_pthread_system_supported=no
15606 cat >conftest.$ac_ext <<_ACEOF
15609 cat confdefs.h >>conftest.$ac_ext
15610 cat >>conftest.$ac_ext <<_ACEOF
15611 /* end confdefs.h. */
15612 #include <pthread.h>
15613 void *foo(void *parm) {
15617 pthread_attr_t attr;
15619 if (pthread_attr_init(&attr)) exit(-1);
15620 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
15621 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
15625 rm -f conftest$ac_exeext
15626 if { (ac_try="$ac_link"
15627 case "(($ac_try" in
15628 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15629 *) ac_try_echo
=$ac_try;;
15631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15632 (eval "$ac_link") 2>&5
15634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15635 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15636 { (case "(($ac_try" in
15637 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15638 *) ac_try_echo=$ac_try;;
15640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15641 (eval "$ac_try") 2>&5
15643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15644 (exit $ac_status); }; }; then
15645 ac_cv_pthread_system_supported=yes
15647 echo "$as_me: program exited with status $ac_status" >&5
15648 echo "$as_me: failed program was:" >&5
15649 sed 's/^/| /' conftest.$ac_ext >&5
15651 ( exit $ac_status )
15652 ac_cv_pthread_system_supported=no
15654 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15661 { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
15662 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
15663 if test "$ac_cv_pthread_system_supported" = "yes"; then
15665 cat >>confdefs.h <<\_ACEOF
15666 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
15671 for ac_func in pthread_sigmask
15673 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
15674 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15675 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15676 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15677 echo $ECHO_N "(cached) $ECHO_C" >&6
15679 cat >conftest.$ac_ext <<_ACEOF
15682 cat confdefs.h >>conftest.$ac_ext
15683 cat >>conftest.$ac_ext <<_ACEOF
15684 /* end confdefs.h. */
15685 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15687 #define $ac_func innocuous_$ac_func
15689 /* System header to define __stub macros and hopefully few prototypes,
15690 which can conflict with char $ac_func (); below.
15691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15692 <limits.h> exists even on freestanding compilers. */
15695 # include <limits.h>
15697 # include <assert.h>
15702 /* Override any GCC internal prototype to avoid an error.
15703 Use char because int might match the return type of a GCC
15704 builtin and then its argument prototype would still apply. */
15709 /* The GNU C library defines this for functions which it implements
15710 to always fail with ENOSYS. Some functions are actually named
15711 something starting with __ and the normal name is an alias. */
15712 #if defined __stub_$ac_func || defined __stub___$ac_func
15719 return $ac_func ();
15724 rm -f conftest.$ac_objext conftest$ac_exeext
15725 if { (ac_try="$ac_link"
15726 case "(($ac_try" in
15727 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15728 *) ac_try_echo
=$ac_try;;
15730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15731 (eval "$ac_link") 2>conftest.er1
15733 grep -v '^ *+' conftest.er1
>conftest.err
15735 cat conftest.err
>&5
15736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737 (exit $ac_status); } && {
15738 test -z "$ac_c_werror_flag" ||
15739 test ! -s conftest.err
15740 } && test -s conftest
$ac_exeext &&
15741 $as_test_x conftest
$ac_exeext; then
15742 eval "$as_ac_var=yes"
15744 echo "$as_me: failed program was:" >&5
15745 sed 's/^/| /' conftest.
$ac_ext >&5
15747 eval "$as_ac_var=no"
15750 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15751 conftest
$ac_exeext conftest.
$ac_ext
15753 ac_res
=`eval echo '${'$as_ac_var'}'`
15754 { echo "$as_me:$LINENO: result: $ac_res" >&5
15755 echo "${ECHO_T}$ac_res" >&6; }
15756 if test `eval echo '${'$as_ac_var'}'` = yes; then
15757 cat >>confdefs.h
<<_ACEOF
15758 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15760 case $ac_sys_system in
15763 cat >>confdefs.h
<<\_ACEOF
15764 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
15775 # Check for enable-ipv6
15778 { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
15779 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
15780 # Check whether --enable-ipv6 was given.
15781 if test "${enable_ipv6+set}" = set; then
15782 enableval
=$enable_ipv6; case "$enableval" in
15784 { echo "$as_me:$LINENO: result: no" >&5
15785 echo "${ECHO_T}no" >&6; }
15788 *) { echo "$as_me:$LINENO: result: yes" >&5
15789 echo "${ECHO_T}yes" >&6; }
15790 cat >>confdefs.h
<<\_ACEOF
15791 #define ENABLE_IPV6 1
15799 if test "$cross_compiling" = yes; then
15800 { echo "$as_me:$LINENO: result: no" >&5
15801 echo "${ECHO_T}no" >&6; }
15805 cat >conftest.
$ac_ext <<_ACEOF
15808 cat confdefs.h
>>conftest.
$ac_ext
15809 cat >>conftest.
$ac_ext <<_ACEOF
15810 /* end confdefs.h. */
15811 /* AF_INET6 available check */
15812 #include <sys/types.h>
15813 #include <sys/socket.h>
15816 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
15823 rm -f conftest
$ac_exeext
15824 if { (ac_try
="$ac_link"
15825 case "(($ac_try" in
15826 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15827 *) ac_try_echo=$ac_try;;
15829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15830 (eval "$ac_link") 2>&5
15832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15834 { (case "(($ac_try" in
15835 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15836 *) ac_try_echo
=$ac_try;;
15838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15839 (eval "$ac_try") 2>&5
15841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842 (exit $ac_status); }; }; then
15843 { echo "$as_me:$LINENO: result: yes" >&5
15844 echo "${ECHO_T}yes" >&6; }
15847 echo "$as_me: program exited with status $ac_status" >&5
15848 echo "$as_me: failed program was:" >&5
15849 sed 's/^/| /' conftest.
$ac_ext >&5
15851 ( exit $ac_status )
15852 { echo "$as_me:$LINENO: result: no" >&5
15853 echo "${ECHO_T}no" >&6; }
15856 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15861 if test "$ipv6" = "yes"; then
15862 { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
15863 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; }
15864 cat >conftest.
$ac_ext <<_ACEOF
15867 cat confdefs.h
>>conftest.
$ac_ext
15868 cat >>conftest.
$ac_ext <<_ACEOF
15869 /* end confdefs.h. */
15870 #include <sys/types.h>
15871 #include <netinet/in.h>
15875 struct sockaddr_in6 x;
15881 rm -f conftest.
$ac_objext
15882 if { (ac_try
="$ac_compile"
15883 case "(($ac_try" in
15884 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15885 *) ac_try_echo=$ac_try;;
15887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15888 (eval "$ac_compile") 2>conftest.er1
15890 grep -v '^ *+' conftest.er1 >conftest.err
15892 cat conftest.err >&5
15893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15894 (exit $ac_status); } && {
15895 test -z "$ac_c_werror_flag" ||
15896 test ! -s conftest.err
15897 } && test -s conftest.$ac_objext; then
15898 { echo "$as_me:$LINENO: result: yes" >&5
15899 echo "${ECHO_T}yes" >&6; }
15902 echo "$as_me: failed program was:" >&5
15903 sed 's/^/| /' conftest.$ac_ext >&5
15905 { echo "$as_me:$LINENO: result: no" >&5
15906 echo "${ECHO_T}no" >&6; }
15910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15913 if test "$ipv6" = "yes"; then
15914 cat >>confdefs.h <<\_ACEOF
15915 #define ENABLE_IPV6 1
15927 if test "$ipv6" = "yes"; then
15928 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
15929 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
15930 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
15934 cat >conftest.$ac_ext <<_ACEOF
15937 cat confdefs.h >>conftest.$ac_ext
15938 cat >>conftest.$ac_ext <<_ACEOF
15939 /* end confdefs.h. */
15941 #include <netinet/in.h>
15942 #ifdef IPV6_INRIA_VERSION
15946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15947 $EGREP "yes" >/dev/null 2>&1; then
15954 cat >conftest.$ac_ext <<_ACEOF
15957 cat confdefs.h >>conftest.$ac_ext
15958 cat >>conftest.$ac_ext <<_ACEOF
15959 /* end confdefs.h. */
15961 #include <netinet/in.h>
15966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15967 $EGREP "yes" >/dev/null 2>&1; then
15970 ipv6libdir=/usr/local/v6/lib
15977 cat >conftest.$ac_ext <<_ACEOF
15980 cat confdefs.h >>conftest.$ac_ext
15981 cat >>conftest.$ac_ext <<_ACEOF
15982 /* end confdefs.h. */
15984 #include <features.h>
15985 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
15989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15990 $EGREP "yes" >/dev/null 2>&1; then
15998 if test -d /usr/inet6; then
16001 ipv6libdir=/usr/inet6/lib
16002 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
16006 if test -f /etc/netconfig; then
16007 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
16014 cat >conftest.$ac_ext <<_ACEOF
16017 cat confdefs.h >>conftest.$ac_ext
16018 cat >>conftest.$ac_ext <<_ACEOF
16019 /* end confdefs.h. */
16021 #include <sys/param.h>
16022 #ifdef _TOSHIBA_INET6
16026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16027 $EGREP "yes" >/dev/null 2>&1; then
16030 ipv6libdir=/usr/local/v6/lib
16036 cat >conftest.$ac_ext <<_ACEOF
16039 cat confdefs.h >>conftest.$ac_ext
16040 cat >>conftest.$ac_ext <<_ACEOF
16041 /* end confdefs.h. */
16043 #include </usr/local/v6/include/sys/v6config.h>
16048 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16049 $EGREP "yes" >/dev/null 2>&1; then
16052 ipv6libdir=/usr/local/v6/lib;
16053 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
16059 cat >conftest.$ac_ext <<_ACEOF
16062 cat confdefs.h >>conftest.$ac_ext
16063 cat >>conftest.$ac_ext <<_ACEOF
16064 /* end confdefs.h. */
16066 #include <sys/param.h>
16067 #ifdef _ZETA_MINAMI_INET6
16071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16072 $EGREP "yes" >/dev/null 2>&1; then
16075 ipv6libdir=/usr/local/v6/lib
16081 if test "$ipv6type" != "unknown"; then
16085 { echo "$as_me:$LINENO: result: $ipv6type" >&5
16086 echo "${ECHO_T}$ipv6type" >&6; }
16089 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
16090 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
16091 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
16092 echo "using lib$ipv6lib"
16094 if test $ipv6trylibc = "yes"; then
16097 echo 'Fatal: no $ipv6lib library found. cannot continue.'
16098 echo "You need to fetch lib$ipv6lib.a from appropriate"
16099 echo 'ipv6 kit and compile beforehand.'
16105 { echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5
16106 echo $ECHO_N "checking for OSX 10.5 SDK or later... $ECHO_C" >&6; }
16107 cat >conftest.$ac_ext <<_ACEOF
16110 cat confdefs.h >>conftest.$ac_ext
16111 cat >>conftest.$ac_ext <<_ACEOF
16112 /* end confdefs.h. */
16113 #include <Carbon/Carbon.h>
16117 FSIORefNum fRef = 0
16122 rm -f conftest.$ac_objext
16123 if { (ac_try="$ac_compile"
16124 case "(($ac_try" in
16125 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16126 *) ac_try_echo
=$ac_try;;
16128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16129 (eval "$ac_compile") 2>conftest.er1
16131 grep -v '^ *+' conftest.er1
>conftest.err
16133 cat conftest.err
>&5
16134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16135 (exit $ac_status); } && {
16136 test -z "$ac_c_werror_flag" ||
16137 test ! -s conftest.err
16138 } && test -s conftest.
$ac_objext; then
16140 cat >>confdefs.h
<<\_ACEOF
16141 #define HAVE_OSX105_SDK 1
16144 { echo "$as_me:$LINENO: result: yes" >&5
16145 echo "${ECHO_T}yes" >&6; }
16147 echo "$as_me: failed program was:" >&5
16148 sed 's/^/| /' conftest.
$ac_ext >&5
16150 { echo "$as_me:$LINENO: result: no" >&5
16151 echo "${ECHO_T}no" >&6; }
16155 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16157 # Check for --with-doc-strings
16158 { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
16159 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
16161 # Check whether --with-doc-strings was given.
16162 if test "${with_doc_strings+set}" = set; then
16163 withval
=$with_doc_strings;
16167 if test -z "$with_doc_strings"
16168 then with_doc_strings
="yes"
16170 if test "$with_doc_strings" != "no"
16173 cat >>confdefs.h
<<\_ACEOF
16174 #define WITH_DOC_STRINGS 1
16178 { echo "$as_me:$LINENO: result: $with_doc_strings" >&5
16179 echo "${ECHO_T}$with_doc_strings" >&6; }
16181 # Check for Python-specific malloc support
16182 { echo "$as_me:$LINENO: checking for --with-tsc" >&5
16183 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
16185 # Check whether --with-tsc was given.
16186 if test "${with_tsc+set}" = set; then
16188 if test "$withval" != no
16191 cat >>confdefs.h
<<\_ACEOF
16195 { echo "$as_me:$LINENO: result: yes" >&5
16196 echo "${ECHO_T}yes" >&6; }
16197 else { echo "$as_me:$LINENO: result: no" >&5
16198 echo "${ECHO_T}no" >&6; }
16201 { echo "$as_me:$LINENO: result: no" >&5
16202 echo "${ECHO_T}no" >&6; }
16206 # Check for Python-specific malloc support
16207 { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
16208 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
16210 # Check whether --with-pymalloc was given.
16211 if test "${with_pymalloc+set}" = set; then
16212 withval
=$with_pymalloc;
16216 if test -z "$with_pymalloc"
16217 then with_pymalloc
="yes"
16219 if test "$with_pymalloc" != "no"
16222 cat >>confdefs.h
<<\_ACEOF
16223 #define WITH_PYMALLOC 1
16227 { echo "$as_me:$LINENO: result: $with_pymalloc" >&5
16228 echo "${ECHO_T}$with_pymalloc" >&6; }
16230 # Check for --with-wctype-functions
16231 { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
16232 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
16234 # Check whether --with-wctype-functions was given.
16235 if test "${with_wctype_functions+set}" = set; then
16236 withval
=$with_wctype_functions;
16237 if test "$withval" != no
16240 cat >>confdefs.h
<<\_ACEOF
16241 #define WANT_WCTYPE_FUNCTIONS 1
16244 { echo "$as_me:$LINENO: result: yes" >&5
16245 echo "${ECHO_T}yes" >&6; }
16246 else { echo "$as_me:$LINENO: result: no" >&5
16247 echo "${ECHO_T}no" >&6; }
16250 { echo "$as_me:$LINENO: result: no" >&5
16251 echo "${ECHO_T}no" >&6; }
16255 # -I${DLINCLDIR} is added to the compile rule for importdl.o
16259 # the dlopen() function means we might want to use dynload_shlib.o. some
16260 # platforms, such as AIX, have dlopen(), but don't want to use it.
16262 for ac_func
in dlopen
16264 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16265 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16266 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16267 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16268 echo $ECHO_N "(cached) $ECHO_C" >&6
16270 cat >conftest.
$ac_ext <<_ACEOF
16273 cat confdefs.h
>>conftest.
$ac_ext
16274 cat >>conftest.
$ac_ext <<_ACEOF
16275 /* end confdefs.h. */
16276 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16277 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16278 #define $ac_func innocuous_$ac_func
16280 /* System header to define __stub macros and hopefully few prototypes,
16281 which can conflict with char $ac_func (); below.
16282 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16283 <limits.h> exists even on freestanding compilers. */
16286 # include <limits.h>
16288 # include <assert.h>
16293 /* Override any GCC internal prototype to avoid an error.
16294 Use char because int might match the return type of a GCC
16295 builtin and then its argument prototype would still apply. */
16300 /* The GNU C library defines this for functions which it implements
16301 to always fail with ENOSYS. Some functions are actually named
16302 something starting with __ and the normal name is an alias. */
16303 #if defined __stub_$ac_func || defined __stub___$ac_func
16310 return $ac_func ();
16315 rm -f conftest.
$ac_objext conftest
$ac_exeext
16316 if { (ac_try
="$ac_link"
16317 case "(($ac_try" in
16318 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16319 *) ac_try_echo=$ac_try;;
16321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16322 (eval "$ac_link") 2>conftest.er1
16324 grep -v '^ *+' conftest.er1 >conftest.err
16326 cat conftest.err >&5
16327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16328 (exit $ac_status); } && {
16329 test -z "$ac_c_werror_flag" ||
16330 test ! -s conftest.err
16331 } && test -s conftest$ac_exeext &&
16332 $as_test_x conftest$ac_exeext; then
16333 eval "$as_ac_var=yes"
16335 echo "$as_me: failed program was:" >&5
16336 sed 's/^/| /' conftest.$ac_ext >&5
16338 eval "$as_ac_var=no"
16341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16342 conftest$ac_exeext conftest.$ac_ext
16344 ac_res=`eval echo '${'$as_ac_var'}'`
16345 { echo "$as_me:$LINENO: result: $ac_res" >&5
16346 echo "${ECHO_T}$ac_res" >&6; }
16347 if test `eval echo '${'$as_ac_var'}'` = yes; then
16348 cat >>confdefs.h <<_ACEOF
16349 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
16356 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
16357 # loading of modules.
16359 { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
16360 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
16361 if test -z "$DYNLOADFILE"
16363 case $ac_sys_system/$ac_sys_release in
16364 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
16365 if test "$ac_cv_func_dlopen" = yes
16366 then DYNLOADFILE="dynload_shlib.o"
16367 else DYNLOADFILE="dynload_aix.o"
16370 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
16371 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
16372 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
16373 atheos*) DYNLOADFILE="dynload_atheos.o";;
16375 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
16376 # out any dynamic loading
16377 if test "$ac_cv_func_dlopen" = yes
16378 then DYNLOADFILE="dynload_shlib.o"
16379 else DYNLOADFILE="dynload_stub.o"
16384 { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
16385 echo "${ECHO_T}$DYNLOADFILE" >&6; }
16386 if test "$DYNLOADFILE" != "dynload_stub.o"
16389 cat >>confdefs.h <<\_ACEOF
16390 #define HAVE_DYNAMIC_LOADING 1
16395 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
16398 { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
16399 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
16400 if test -z "$MACHDEP_OBJS"
16402 MACHDEP_OBJS=$extra_machdep_objs
16404 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
16406 { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
16407 echo "${ECHO_T}MACHDEP_OBJS" >&6; }
16409 # checks for library functions
16499 for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \
16500 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
16501 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
16502 getpriority getpwent getspnam getspent getsid getwd \
16503 kill killpg lchmod lchown lstat mbrtowc mkfifo mknod mktime \
16504 mremap nice pathconf pause plock poll pthread_init \
16505 putenv readlink realpath \
16506 select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \
16508 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
16509 sigaction siginterrupt sigrelse strftime strlcpy \
16510 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
16511 truncate uname unsetenv utimes waitpid wait3 wait4 \
16512 wcscoll wcsftime wcsxfrm _getpty
16514 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
16515 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16516 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16517 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16518 echo $ECHO_N "(cached) $ECHO_C" >&6
16520 cat >conftest.$ac_ext <<_ACEOF
16523 cat confdefs.h >>conftest.$ac_ext
16524 cat >>conftest.$ac_ext <<_ACEOF
16525 /* end confdefs.h. */
16526 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16527 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16528 #define $ac_func innocuous_$ac_func
16530 /* System header to define __stub macros and hopefully few prototypes,
16531 which can conflict with char $ac_func (); below.
16532 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16533 <limits.h> exists even on freestanding compilers. */
16536 # include <limits.h>
16538 # include <assert.h>
16543 /* Override any GCC internal prototype to avoid an error.
16544 Use char because int might match the return type of a GCC
16545 builtin and then its argument prototype would still apply. */
16550 /* The GNU C library defines this for functions which it implements
16551 to always fail with ENOSYS. Some functions are actually named
16552 something starting with __ and the normal name is an alias. */
16553 #if defined __stub_$ac_func || defined __stub___$ac_func
16560 return $ac_func ();
16565 rm -f conftest.$ac_objext conftest$ac_exeext
16566 if { (ac_try="$ac_link"
16567 case "(($ac_try" in
16568 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16569 *) ac_try_echo
=$ac_try;;
16571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16572 (eval "$ac_link") 2>conftest.er1
16574 grep -v '^ *+' conftest.er1
>conftest.err
16576 cat conftest.err
>&5
16577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16578 (exit $ac_status); } && {
16579 test -z "$ac_c_werror_flag" ||
16580 test ! -s conftest.err
16581 } && test -s conftest
$ac_exeext &&
16582 $as_test_x conftest
$ac_exeext; then
16583 eval "$as_ac_var=yes"
16585 echo "$as_me: failed program was:" >&5
16586 sed 's/^/| /' conftest.
$ac_ext >&5
16588 eval "$as_ac_var=no"
16591 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16592 conftest
$ac_exeext conftest.
$ac_ext
16594 ac_res
=`eval echo '${'$as_ac_var'}'`
16595 { echo "$as_me:$LINENO: result: $ac_res" >&5
16596 echo "${ECHO_T}$ac_res" >&6; }
16597 if test `eval echo '${'$as_ac_var'}'` = yes; then
16598 cat >>confdefs.h
<<_ACEOF
16599 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16606 # For some functions, having a definition is not sufficient, since
16607 # we want to take their address.
16608 { echo "$as_me:$LINENO: checking for chroot" >&5
16609 echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
16610 cat >conftest.
$ac_ext <<_ACEOF
16613 cat confdefs.h
>>conftest.
$ac_ext
16614 cat >>conftest.
$ac_ext <<_ACEOF
16615 /* end confdefs.h. */
16616 #include <unistd.h>
16625 rm -f conftest.
$ac_objext
16626 if { (ac_try
="$ac_compile"
16627 case "(($ac_try" in
16628 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16629 *) ac_try_echo=$ac_try;;
16631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16632 (eval "$ac_compile") 2>conftest.er1
16634 grep -v '^ *+' conftest.er1 >conftest.err
16636 cat conftest.err >&5
16637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16638 (exit $ac_status); } && {
16639 test -z "$ac_c_werror_flag" ||
16640 test ! -s conftest.err
16641 } && test -s conftest.$ac_objext; then
16643 cat >>confdefs.h <<\_ACEOF
16644 #define HAVE_CHROOT 1
16647 { echo "$as_me:$LINENO: result: yes" >&5
16648 echo "${ECHO_T}yes" >&6; }
16650 echo "$as_me: failed program was:" >&5
16651 sed 's/^/| /' conftest.$ac_ext >&5
16653 { echo "$as_me:$LINENO: result: no" >&5
16654 echo "${ECHO_T}no" >&6; }
16658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16659 { echo "$as_me:$LINENO: checking for link" >&5
16660 echo $ECHO_N "checking for link... $ECHO_C" >&6; }
16661 cat >conftest.$ac_ext <<_ACEOF
16664 cat confdefs.h >>conftest.$ac_ext
16665 cat >>conftest.$ac_ext <<_ACEOF
16666 /* end confdefs.h. */
16667 #include <unistd.h>
16676 rm -f conftest.$ac_objext
16677 if { (ac_try="$ac_compile"
16678 case "(($ac_try" in
16679 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16680 *) ac_try_echo
=$ac_try;;
16682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16683 (eval "$ac_compile") 2>conftest.er1
16685 grep -v '^ *+' conftest.er1
>conftest.err
16687 cat conftest.err
>&5
16688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16689 (exit $ac_status); } && {
16690 test -z "$ac_c_werror_flag" ||
16691 test ! -s conftest.err
16692 } && test -s conftest.
$ac_objext; then
16694 cat >>confdefs.h
<<\_ACEOF
16695 #define HAVE_LINK 1
16698 { echo "$as_me:$LINENO: result: yes" >&5
16699 echo "${ECHO_T}yes" >&6; }
16701 echo "$as_me: failed program was:" >&5
16702 sed 's/^/| /' conftest.
$ac_ext >&5
16704 { echo "$as_me:$LINENO: result: no" >&5
16705 echo "${ECHO_T}no" >&6; }
16709 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16710 { echo "$as_me:$LINENO: checking for symlink" >&5
16711 echo $ECHO_N "checking for symlink... $ECHO_C" >&6; }
16712 cat >conftest.
$ac_ext <<_ACEOF
16715 cat confdefs.h
>>conftest.
$ac_ext
16716 cat >>conftest.
$ac_ext <<_ACEOF
16717 /* end confdefs.h. */
16718 #include <unistd.h>
16727 rm -f conftest.
$ac_objext
16728 if { (ac_try
="$ac_compile"
16729 case "(($ac_try" in
16730 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16731 *) ac_try_echo=$ac_try;;
16733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16734 (eval "$ac_compile") 2>conftest.er1
16736 grep -v '^ *+' conftest.er1 >conftest.err
16738 cat conftest.err >&5
16739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740 (exit $ac_status); } && {
16741 test -z "$ac_c_werror_flag" ||
16742 test ! -s conftest.err
16743 } && test -s conftest.$ac_objext; then
16745 cat >>confdefs.h <<\_ACEOF
16746 #define HAVE_SYMLINK 1
16749 { echo "$as_me:$LINENO: result: yes" >&5
16750 echo "${ECHO_T}yes" >&6; }
16752 echo "$as_me: failed program was:" >&5
16753 sed 's/^/| /' conftest.$ac_ext >&5
16755 { echo "$as_me:$LINENO: result: no" >&5
16756 echo "${ECHO_T}no" >&6; }
16760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16761 { echo "$as_me:$LINENO: checking for fchdir" >&5
16762 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
16763 cat >conftest.$ac_ext <<_ACEOF
16766 cat confdefs.h >>conftest.$ac_ext
16767 cat >>conftest.$ac_ext <<_ACEOF
16768 /* end confdefs.h. */
16769 #include <unistd.h>
16778 rm -f conftest.$ac_objext
16779 if { (ac_try="$ac_compile"
16780 case "(($ac_try" in
16781 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16782 *) ac_try_echo
=$ac_try;;
16784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16785 (eval "$ac_compile") 2>conftest.er1
16787 grep -v '^ *+' conftest.er1
>conftest.err
16789 cat conftest.err
>&5
16790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791 (exit $ac_status); } && {
16792 test -z "$ac_c_werror_flag" ||
16793 test ! -s conftest.err
16794 } && test -s conftest.
$ac_objext; then
16796 cat >>confdefs.h
<<\_ACEOF
16797 #define HAVE_FCHDIR 1
16800 { echo "$as_me:$LINENO: result: yes" >&5
16801 echo "${ECHO_T}yes" >&6; }
16803 echo "$as_me: failed program was:" >&5
16804 sed 's/^/| /' conftest.
$ac_ext >&5
16806 { echo "$as_me:$LINENO: result: no" >&5
16807 echo "${ECHO_T}no" >&6; }
16811 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16812 { echo "$as_me:$LINENO: checking for fsync" >&5
16813 echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
16814 cat >conftest.
$ac_ext <<_ACEOF
16817 cat confdefs.h
>>conftest.
$ac_ext
16818 cat >>conftest.
$ac_ext <<_ACEOF
16819 /* end confdefs.h. */
16820 #include <unistd.h>
16829 rm -f conftest.
$ac_objext
16830 if { (ac_try
="$ac_compile"
16831 case "(($ac_try" in
16832 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16833 *) ac_try_echo=$ac_try;;
16835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16836 (eval "$ac_compile") 2>conftest.er1
16838 grep -v '^ *+' conftest.er1 >conftest.err
16840 cat conftest.err >&5
16841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842 (exit $ac_status); } && {
16843 test -z "$ac_c_werror_flag" ||
16844 test ! -s conftest.err
16845 } && test -s conftest.$ac_objext; then
16847 cat >>confdefs.h <<\_ACEOF
16848 #define HAVE_FSYNC 1
16851 { echo "$as_me:$LINENO: result: yes" >&5
16852 echo "${ECHO_T}yes" >&6; }
16854 echo "$as_me: failed program was:" >&5
16855 sed 's/^/| /' conftest.$ac_ext >&5
16857 { echo "$as_me:$LINENO: result: no" >&5
16858 echo "${ECHO_T}no" >&6; }
16862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16863 { echo "$as_me:$LINENO: checking for fdatasync" >&5
16864 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
16865 cat >conftest.$ac_ext <<_ACEOF
16868 cat confdefs.h >>conftest.$ac_ext
16869 cat >>conftest.$ac_ext <<_ACEOF
16870 /* end confdefs.h. */
16871 #include <unistd.h>
16880 rm -f conftest.$ac_objext
16881 if { (ac_try="$ac_compile"
16882 case "(($ac_try" in
16883 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16884 *) ac_try_echo
=$ac_try;;
16886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16887 (eval "$ac_compile") 2>conftest.er1
16889 grep -v '^ *+' conftest.er1
>conftest.err
16891 cat conftest.err
>&5
16892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16893 (exit $ac_status); } && {
16894 test -z "$ac_c_werror_flag" ||
16895 test ! -s conftest.err
16896 } && test -s conftest.
$ac_objext; then
16898 cat >>confdefs.h
<<\_ACEOF
16899 #define HAVE_FDATASYNC 1
16902 { echo "$as_me:$LINENO: result: yes" >&5
16903 echo "${ECHO_T}yes" >&6; }
16905 echo "$as_me: failed program was:" >&5
16906 sed 's/^/| /' conftest.
$ac_ext >&5
16908 { echo "$as_me:$LINENO: result: no" >&5
16909 echo "${ECHO_T}no" >&6; }
16913 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16914 { echo "$as_me:$LINENO: checking for epoll" >&5
16915 echo $ECHO_N "checking for epoll... $ECHO_C" >&6; }
16916 cat >conftest.
$ac_ext <<_ACEOF
16919 cat confdefs.h
>>conftest.
$ac_ext
16920 cat >>conftest.
$ac_ext <<_ACEOF
16921 /* end confdefs.h. */
16922 #include <sys/epoll.h>
16926 void *x=epoll_create
16931 rm -f conftest.
$ac_objext
16932 if { (ac_try
="$ac_compile"
16933 case "(($ac_try" in
16934 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16935 *) ac_try_echo=$ac_try;;
16937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16938 (eval "$ac_compile") 2>conftest.er1
16940 grep -v '^ *+' conftest.er1 >conftest.err
16942 cat conftest.err >&5
16943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944 (exit $ac_status); } && {
16945 test -z "$ac_c_werror_flag" ||
16946 test ! -s conftest.err
16947 } && test -s conftest.$ac_objext; then
16949 cat >>confdefs.h <<\_ACEOF
16950 #define HAVE_EPOLL 1
16953 { echo "$as_me:$LINENO: result: yes" >&5
16954 echo "${ECHO_T}yes" >&6; }
16956 echo "$as_me: failed program was:" >&5
16957 sed 's/^/| /' conftest.$ac_ext >&5
16959 { echo "$as_me:$LINENO: result: no" >&5
16960 echo "${ECHO_T}no" >&6; }
16964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16965 { echo "$as_me:$LINENO: checking for kqueue" >&5
16966 echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; }
16967 cat >conftest.$ac_ext <<_ACEOF
16970 cat confdefs.h >>conftest.$ac_ext
16971 cat >>conftest.$ac_ext <<_ACEOF
16972 /* end confdefs.h. */
16974 #include <sys/types.h>
16975 #include <sys/event.h>
16985 rm -f conftest.$ac_objext
16986 if { (ac_try="$ac_compile"
16987 case "(($ac_try" in
16988 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16989 *) ac_try_echo
=$ac_try;;
16991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16992 (eval "$ac_compile") 2>conftest.er1
16994 grep -v '^ *+' conftest.er1
>conftest.err
16996 cat conftest.err
>&5
16997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998 (exit $ac_status); } && {
16999 test -z "$ac_c_werror_flag" ||
17000 test ! -s conftest.err
17001 } && test -s conftest.
$ac_objext; then
17003 cat >>confdefs.h
<<\_ACEOF
17004 #define HAVE_KQUEUE 1
17007 { echo "$as_me:$LINENO: result: yes" >&5
17008 echo "${ECHO_T}yes" >&6; }
17010 echo "$as_me: failed program was:" >&5
17011 sed 's/^/| /' conftest.
$ac_ext >&5
17013 { echo "$as_me:$LINENO: result: no" >&5
17014 echo "${ECHO_T}no" >&6; }
17018 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17019 # On some systems (eg. FreeBSD 5), we would find a definition of the
17020 # functions ctermid_r, setgroups in the library, but no prototype
17021 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
17022 # address to avoid compiler warnings and potential miscompilations
17023 # because of the missing prototypes.
17025 { echo "$as_me:$LINENO: checking for ctermid_r" >&5
17026 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; }
17027 cat >conftest.
$ac_ext <<_ACEOF
17030 cat confdefs.h
>>conftest.
$ac_ext
17031 cat >>conftest.
$ac_ext <<_ACEOF
17032 /* end confdefs.h. */
17034 #include "confdefs.h"
17040 void* p = ctermid_r
17045 rm -f conftest.
$ac_objext
17046 if { (ac_try
="$ac_compile"
17047 case "(($ac_try" in
17048 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17049 *) ac_try_echo=$ac_try;;
17051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17052 (eval "$ac_compile") 2>conftest.er1
17054 grep -v '^ *+' conftest.er1 >conftest.err
17056 cat conftest.err >&5
17057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17058 (exit $ac_status); } && {
17059 test -z "$ac_c_werror_flag" ||
17060 test ! -s conftest.err
17061 } && test -s conftest.$ac_objext; then
17063 cat >>confdefs.h <<\_ACEOF
17064 #define HAVE_CTERMID_R 1
17067 { echo "$as_me:$LINENO: result: yes" >&5
17068 echo "${ECHO_T}yes" >&6; }
17070 echo "$as_me: failed program was:" >&5
17071 sed 's/^/| /' conftest.$ac_ext >&5
17073 { echo "$as_me:$LINENO: result: no" >&5
17074 echo "${ECHO_T}no" >&6; }
17078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17080 { echo "$as_me:$LINENO: checking for flock" >&5
17081 echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
17082 cat >conftest.$ac_ext <<_ACEOF
17085 cat confdefs.h >>conftest.$ac_ext
17086 cat >>conftest.$ac_ext <<_ACEOF
17087 /* end confdefs.h. */
17089 #include "confdefs.h"
17090 #include <sys/file.h>
17100 rm -f conftest.$ac_objext
17101 if { (ac_try="$ac_compile"
17102 case "(($ac_try" in
17103 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17104 *) ac_try_echo
=$ac_try;;
17106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17107 (eval "$ac_compile") 2>conftest.er1
17109 grep -v '^ *+' conftest.er1
>conftest.err
17111 cat conftest.err
>&5
17112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17113 (exit $ac_status); } && {
17114 test -z "$ac_c_werror_flag" ||
17115 test ! -s conftest.err
17116 } && test -s conftest.
$ac_objext; then
17118 cat >>confdefs.h
<<\_ACEOF
17119 #define HAVE_FLOCK 1
17122 { echo "$as_me:$LINENO: result: yes" >&5
17123 echo "${ECHO_T}yes" >&6; }
17125 echo "$as_me: failed program was:" >&5
17126 sed 's/^/| /' conftest.
$ac_ext >&5
17128 { echo "$as_me:$LINENO: result: no" >&5
17129 echo "${ECHO_T}no" >&6; }
17133 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17135 { echo "$as_me:$LINENO: checking for getpagesize" >&5
17136 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
17137 cat >conftest.
$ac_ext <<_ACEOF
17140 cat confdefs.h
>>conftest.
$ac_ext
17141 cat >>conftest.
$ac_ext <<_ACEOF
17142 /* end confdefs.h. */
17144 #include "confdefs.h"
17145 #include <unistd.h>
17150 void* p = getpagesize
17155 rm -f conftest.
$ac_objext
17156 if { (ac_try
="$ac_compile"
17157 case "(($ac_try" in
17158 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17159 *) ac_try_echo=$ac_try;;
17161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17162 (eval "$ac_compile") 2>conftest.er1
17164 grep -v '^ *+' conftest.er1 >conftest.err
17166 cat conftest.err >&5
17167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168 (exit $ac_status); } && {
17169 test -z "$ac_c_werror_flag" ||
17170 test ! -s conftest.err
17171 } && test -s conftest.$ac_objext; then
17173 cat >>confdefs.h <<\_ACEOF
17174 #define HAVE_GETPAGESIZE 1
17177 { echo "$as_me:$LINENO: result: yes" >&5
17178 echo "${ECHO_T}yes" >&6; }
17180 echo "$as_me: failed program was:" >&5
17181 sed 's/^/| /' conftest.$ac_ext >&5
17183 { echo "$as_me:$LINENO: result: no" >&5
17184 echo "${ECHO_T}no" >&6; }
17188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17190 for ac_prog in true
17192 # Extract the first word of "$ac_prog", so it can be a program name with args.
17193 set dummy $ac_prog; ac_word=$2
17194 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17196 if test "${ac_cv_prog_TRUE+set}" = set; then
17197 echo $ECHO_N "(cached) $ECHO_C" >&6
17199 if test -n "$TRUE"; then
17200 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
17202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17203 for as_dir in $PATH
17206 test -z "$as_dir" && as_dir=.
17207 for ac_exec_ext in '' $ac_executable_extensions; do
17208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17209 ac_cv_prog_TRUE="$ac_prog"
17210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17219 TRUE=$ac_cv_prog_TRUE
17220 if test -n "$TRUE"; then
17221 { echo "$as_me:$LINENO: result: $TRUE" >&5
17222 echo "${ECHO_T}$TRUE" >&6; }
17224 { echo "$as_me:$LINENO: result: no" >&5
17225 echo "${ECHO_T}no" >&6; }
17229 test -n "$TRUE" && break
17231 test -n "$TRUE" || TRUE="/bin/true"
17234 { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
17235 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
17236 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
17237 echo $ECHO_N "(cached) $ECHO_C" >&6
17239 ac_check_lib_save_LIBS=$LIBS
17241 cat >conftest.$ac_ext <<_ACEOF
17244 cat confdefs.h >>conftest.$ac_ext
17245 cat >>conftest.$ac_ext <<_ACEOF
17246 /* end confdefs.h. */
17248 /* Override any GCC internal prototype to avoid an error.
17249 Use char because int might match the return type of a GCC
17250 builtin and then its argument prototype would still apply. */
17258 return inet_aton ();
17263 rm -f conftest.$ac_objext conftest$ac_exeext
17264 if { (ac_try="$ac_link"
17265 case "(($ac_try" in
17266 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17267 *) ac_try_echo
=$ac_try;;
17269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17270 (eval "$ac_link") 2>conftest.er1
17272 grep -v '^ *+' conftest.er1
>conftest.err
17274 cat conftest.err
>&5
17275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276 (exit $ac_status); } && {
17277 test -z "$ac_c_werror_flag" ||
17278 test ! -s conftest.err
17279 } && test -s conftest
$ac_exeext &&
17280 $as_test_x conftest
$ac_exeext; then
17281 ac_cv_lib_c_inet_aton
=yes
17283 echo "$as_me: failed program was:" >&5
17284 sed 's/^/| /' conftest.
$ac_ext >&5
17286 ac_cv_lib_c_inet_aton
=no
17289 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17290 conftest
$ac_exeext conftest.
$ac_ext
17291 LIBS
=$ac_check_lib_save_LIBS
17293 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
17294 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
17295 if test $ac_cv_lib_c_inet_aton = yes; then
17299 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
17300 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
17301 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
17302 echo $ECHO_N "(cached) $ECHO_C" >&6
17304 ac_check_lib_save_LIBS
=$LIBS
17305 LIBS
="-lresolv $LIBS"
17306 cat >conftest.
$ac_ext <<_ACEOF
17309 cat confdefs.h
>>conftest.
$ac_ext
17310 cat >>conftest.
$ac_ext <<_ACEOF
17311 /* end confdefs.h. */
17313 /* Override any GCC internal prototype to avoid an error.
17314 Use char because int might match the return type of a GCC
17315 builtin and then its argument prototype would still apply. */
17323 return inet_aton ();
17328 rm -f conftest.
$ac_objext conftest
$ac_exeext
17329 if { (ac_try
="$ac_link"
17330 case "(($ac_try" in
17331 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17332 *) ac_try_echo=$ac_try;;
17334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17335 (eval "$ac_link") 2>conftest.er1
17337 grep -v '^ *+' conftest.er1 >conftest.err
17339 cat conftest.err >&5
17340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17341 (exit $ac_status); } && {
17342 test -z "$ac_c_werror_flag" ||
17343 test ! -s conftest.err
17344 } && test -s conftest$ac_exeext &&
17345 $as_test_x conftest$ac_exeext; then
17346 ac_cv_lib_resolv_inet_aton=yes
17348 echo "$as_me: failed program was:" >&5
17349 sed 's/^/| /' conftest.$ac_ext >&5
17351 ac_cv_lib_resolv_inet_aton=no
17354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17355 conftest$ac_exeext conftest.$ac_ext
17356 LIBS=$ac_check_lib_save_LIBS
17358 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
17359 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
17360 if test $ac_cv_lib_resolv_inet_aton = yes; then
17361 cat >>confdefs.h <<_ACEOF
17362 #define HAVE_LIBRESOLV 1
17365 LIBS="-lresolv $LIBS"
17373 # On Tru64, chflags seems to be present, but calling it will
17375 { echo "$as_me:$LINENO: checking for chflags" >&5
17376 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
17377 if test "${ac_cv_have_chflags+set}" = set; then
17378 echo $ECHO_N "(cached) $ECHO_C" >&6
17380 if test "$cross_compiling" = yes; then
17381 ac_cv_have_chflags=cross
17383 cat >conftest.$ac_ext <<_ACEOF
17386 cat confdefs.h >>conftest.$ac_ext
17387 cat >>conftest.$ac_ext <<_ACEOF
17388 /* end confdefs.h. */
17390 #include <sys/stat.h>
17391 #include <unistd.h>
17392 int main(int argc, char*argv[])
17394 if(chflags(argv[0], 0) != 0)
17400 rm -f conftest$ac_exeext
17401 if { (ac_try="$ac_link"
17402 case "(($ac_try" in
17403 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17404 *) ac_try_echo
=$ac_try;;
17406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17407 (eval "$ac_link") 2>&5
17409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17410 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17411 { (case "(($ac_try" in
17412 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17413 *) ac_try_echo=$ac_try;;
17415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17416 (eval "$ac_try") 2>&5
17418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17419 (exit $ac_status); }; }; then
17420 ac_cv_have_chflags=yes
17422 echo "$as_me: program exited with status $ac_status" >&5
17423 echo "$as_me: failed program was:" >&5
17424 sed 's/^/| /' conftest.$ac_ext >&5
17426 ( exit $ac_status )
17427 ac_cv_have_chflags=no
17429 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17435 { echo "$as_me:$LINENO: result: $ac_cv_have_chflags" >&5
17436 echo "${ECHO_T}$ac_cv_have_chflags" >&6; }
17437 if test "$ac_cv_have_chflags" = cross ; then
17438 { echo "$as_me:$LINENO: checking for chflags" >&5
17439 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
17440 if test "${ac_cv_func_chflags+set}" = set; then
17441 echo $ECHO_N "(cached) $ECHO_C" >&6
17443 cat >conftest.$ac_ext <<_ACEOF
17446 cat confdefs.h >>conftest.$ac_ext
17447 cat >>conftest.$ac_ext <<_ACEOF
17448 /* end confdefs.h. */
17449 /* Define chflags to an innocuous variant, in case <limits.h> declares chflags.
17450 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17451 #define chflags innocuous_chflags
17453 /* System header to define __stub macros and hopefully few prototypes,
17454 which can conflict with char chflags (); below.
17455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17456 <limits.h> exists even on freestanding compilers. */
17459 # include <limits.h>
17461 # include <assert.h>
17466 /* Override any GCC internal prototype to avoid an error.
17467 Use char because int might match the return type of a GCC
17468 builtin and then its argument prototype would still apply. */
17473 /* The GNU C library defines this for functions which it implements
17474 to always fail with ENOSYS. Some functions are actually named
17475 something starting with __ and the normal name is an alias. */
17476 #if defined __stub_chflags || defined __stub___chflags
17488 rm -f conftest.$ac_objext conftest$ac_exeext
17489 if { (ac_try="$ac_link"
17490 case "(($ac_try" in
17491 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17492 *) ac_try_echo
=$ac_try;;
17494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17495 (eval "$ac_link") 2>conftest.er1
17497 grep -v '^ *+' conftest.er1
>conftest.err
17499 cat conftest.err
>&5
17500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501 (exit $ac_status); } && {
17502 test -z "$ac_c_werror_flag" ||
17503 test ! -s conftest.err
17504 } && test -s conftest
$ac_exeext &&
17505 $as_test_x conftest
$ac_exeext; then
17506 ac_cv_func_chflags
=yes
17508 echo "$as_me: failed program was:" >&5
17509 sed 's/^/| /' conftest.
$ac_ext >&5
17511 ac_cv_func_chflags
=no
17514 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17515 conftest
$ac_exeext conftest.
$ac_ext
17517 { echo "$as_me:$LINENO: result: $ac_cv_func_chflags" >&5
17518 echo "${ECHO_T}$ac_cv_func_chflags" >&6; }
17519 if test $ac_cv_func_chflags = yes; then
17520 ac_cv_have_chflags
="yes"
17522 ac_cv_have_chflags
="no"
17526 if test "$ac_cv_have_chflags" = yes ; then
17528 cat >>confdefs.h
<<\_ACEOF
17529 #define HAVE_CHFLAGS 1
17534 { echo "$as_me:$LINENO: checking for lchflags" >&5
17535 echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
17536 if test "${ac_cv_have_lchflags+set}" = set; then
17537 echo $ECHO_N "(cached) $ECHO_C" >&6
17539 if test "$cross_compiling" = yes; then
17540 ac_cv_have_lchflags
=cross
17542 cat >conftest.
$ac_ext <<_ACEOF
17545 cat confdefs.h
>>conftest.
$ac_ext
17546 cat >>conftest.
$ac_ext <<_ACEOF
17547 /* end confdefs.h. */
17549 #include <sys/stat.h>
17550 #include <unistd.h>
17551 int main(int argc, char*argv[])
17553 if(lchflags(argv[0], 0) != 0)
17559 rm -f conftest
$ac_exeext
17560 if { (ac_try
="$ac_link"
17561 case "(($ac_try" in
17562 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17563 *) ac_try_echo=$ac_try;;
17565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17566 (eval "$ac_link") 2>&5
17568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17570 { (case "(($ac_try" in
17571 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17572 *) ac_try_echo
=$ac_try;;
17574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17575 (eval "$ac_try") 2>&5
17577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17578 (exit $ac_status); }; }; then
17579 ac_cv_have_lchflags
=yes
17581 echo "$as_me: program exited with status $ac_status" >&5
17582 echo "$as_me: failed program was:" >&5
17583 sed 's/^/| /' conftest.
$ac_ext >&5
17585 ( exit $ac_status )
17586 ac_cv_have_lchflags
=no
17588 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17594 { echo "$as_me:$LINENO: result: $ac_cv_have_lchflags" >&5
17595 echo "${ECHO_T}$ac_cv_have_lchflags" >&6; }
17596 if test "$ac_cv_have_lchflags" = cross
; then
17597 { echo "$as_me:$LINENO: checking for lchflags" >&5
17598 echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
17599 if test "${ac_cv_func_lchflags+set}" = set; then
17600 echo $ECHO_N "(cached) $ECHO_C" >&6
17602 cat >conftest.
$ac_ext <<_ACEOF
17605 cat confdefs.h
>>conftest.
$ac_ext
17606 cat >>conftest.
$ac_ext <<_ACEOF
17607 /* end confdefs.h. */
17608 /* Define lchflags to an innocuous variant, in case <limits.h> declares lchflags.
17609 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17610 #define lchflags innocuous_lchflags
17612 /* System header to define __stub macros and hopefully few prototypes,
17613 which can conflict with char lchflags (); below.
17614 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17615 <limits.h> exists even on freestanding compilers. */
17618 # include <limits.h>
17620 # include <assert.h>
17625 /* Override any GCC internal prototype to avoid an error.
17626 Use char because int might match the return type of a GCC
17627 builtin and then its argument prototype would still apply. */
17632 /* The GNU C library defines this for functions which it implements
17633 to always fail with ENOSYS. Some functions are actually named
17634 something starting with __ and the normal name is an alias. */
17635 #if defined __stub_lchflags || defined __stub___lchflags
17642 return lchflags ();
17647 rm -f conftest.
$ac_objext conftest
$ac_exeext
17648 if { (ac_try
="$ac_link"
17649 case "(($ac_try" in
17650 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17651 *) ac_try_echo=$ac_try;;
17653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17654 (eval "$ac_link") 2>conftest.er1
17656 grep -v '^ *+' conftest.er1 >conftest.err
17658 cat conftest.err >&5
17659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17660 (exit $ac_status); } && {
17661 test -z "$ac_c_werror_flag" ||
17662 test ! -s conftest.err
17663 } && test -s conftest$ac_exeext &&
17664 $as_test_x conftest$ac_exeext; then
17665 ac_cv_func_lchflags=yes
17667 echo "$as_me: failed program was:" >&5
17668 sed 's/^/| /' conftest.$ac_ext >&5
17670 ac_cv_func_lchflags=no
17673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17674 conftest$ac_exeext conftest.$ac_ext
17676 { echo "$as_me:$LINENO: result: $ac_cv_func_lchflags" >&5
17677 echo "${ECHO_T}$ac_cv_func_lchflags" >&6; }
17678 if test $ac_cv_func_lchflags = yes; then
17679 ac_cv_have_lchflags="yes"
17681 ac_cv_have_lchflags="no"
17685 if test "$ac_cv_have_lchflags" = yes ; then
17687 cat >>confdefs.h <<\_ACEOF
17688 #define HAVE_LCHFLAGS 1
17693 case $ac_sys_system/$ac_sys_release in
17695 _CUR_CFLAGS="${CFLAGS}"
17696 _CUR_LDFLAGS="${LDFLAGS}"
17697 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
17698 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
17702 { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
17703 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
17704 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
17705 echo $ECHO_N "(cached) $ECHO_C" >&6
17707 ac_check_lib_save_LIBS=$LIBS
17709 cat >conftest.$ac_ext <<_ACEOF
17712 cat confdefs.h >>conftest.$ac_ext
17713 cat >>conftest.$ac_ext <<_ACEOF
17714 /* end confdefs.h. */
17716 /* Override any GCC internal prototype to avoid an error.
17717 Use char because int might match the return type of a GCC
17718 builtin and then its argument prototype would still apply. */
17722 char inflateCopy ();
17726 return inflateCopy ();
17731 rm -f conftest.$ac_objext conftest$ac_exeext
17732 if { (ac_try="$ac_link"
17733 case "(($ac_try" in
17734 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17735 *) ac_try_echo
=$ac_try;;
17737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17738 (eval "$ac_link") 2>conftest.er1
17740 grep -v '^ *+' conftest.er1
>conftest.err
17742 cat conftest.err
>&5
17743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17744 (exit $ac_status); } && {
17745 test -z "$ac_c_werror_flag" ||
17746 test ! -s conftest.err
17747 } && test -s conftest
$ac_exeext &&
17748 $as_test_x conftest
$ac_exeext; then
17749 ac_cv_lib_z_inflateCopy
=yes
17751 echo "$as_me: failed program was:" >&5
17752 sed 's/^/| /' conftest.
$ac_ext >&5
17754 ac_cv_lib_z_inflateCopy
=no
17757 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17758 conftest
$ac_exeext conftest.
$ac_ext
17759 LIBS
=$ac_check_lib_save_LIBS
17761 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
17762 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
17763 if test $ac_cv_lib_z_inflateCopy = yes; then
17765 cat >>confdefs.h
<<\_ACEOF
17766 #define HAVE_ZLIB_COPY 1
17772 case $ac_sys_system/$ac_sys_release in
17774 CFLAGS
="${_CUR_CFLAGS}"
17775 LDFLAGS
="${_CUR_LDFLAGS}"
17779 { echo "$as_me:$LINENO: checking for hstrerror" >&5
17780 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
17781 cat >conftest.
$ac_ext <<_ACEOF
17784 cat confdefs.h
>>conftest.
$ac_ext
17785 cat >>conftest.
$ac_ext <<_ACEOF
17786 /* end confdefs.h. */
17788 #include "confdefs.h"
17794 void* p = hstrerror; hstrerror(0)
17799 rm -f conftest.
$ac_objext conftest
$ac_exeext
17800 if { (ac_try
="$ac_link"
17801 case "(($ac_try" in
17802 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17803 *) ac_try_echo=$ac_try;;
17805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17806 (eval "$ac_link") 2>conftest.er1
17808 grep -v '^ *+' conftest.er1 >conftest.err
17810 cat conftest.err >&5
17811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17812 (exit $ac_status); } && {
17813 test -z "$ac_c_werror_flag" ||
17814 test ! -s conftest.err
17815 } && test -s conftest$ac_exeext &&
17816 $as_test_x conftest$ac_exeext; then
17818 cat >>confdefs.h <<\_ACEOF
17819 #define HAVE_HSTRERROR 1
17822 { echo "$as_me:$LINENO: result: yes" >&5
17823 echo "${ECHO_T}yes" >&6; }
17825 echo "$as_me: failed program was:" >&5
17826 sed 's/^/| /' conftest.$ac_ext >&5
17828 { echo "$as_me:$LINENO: result: no" >&5
17829 echo "${ECHO_T}no" >&6; }
17833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17834 conftest$ac_exeext conftest.$ac_ext
17836 { echo "$as_me:$LINENO: checking for inet_aton" >&5
17837 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
17838 cat >conftest.$ac_ext <<_ACEOF
17841 cat confdefs.h >>conftest.$ac_ext
17842 cat >>conftest.$ac_ext <<_ACEOF
17843 /* end confdefs.h. */
17845 #include "confdefs.h"
17846 #include <sys/types.h>
17847 #include <sys/socket.h>
17848 #include <netinet/in.h>
17849 #include <arpa/inet.h>
17854 void* p = inet_aton;inet_aton(0,0)
17859 rm -f conftest.$ac_objext conftest$ac_exeext
17860 if { (ac_try="$ac_link"
17861 case "(($ac_try" in
17862 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17863 *) ac_try_echo
=$ac_try;;
17865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17866 (eval "$ac_link") 2>conftest.er1
17868 grep -v '^ *+' conftest.er1
>conftest.err
17870 cat conftest.err
>&5
17871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17872 (exit $ac_status); } && {
17873 test -z "$ac_c_werror_flag" ||
17874 test ! -s conftest.err
17875 } && test -s conftest
$ac_exeext &&
17876 $as_test_x conftest
$ac_exeext; then
17878 cat >>confdefs.h
<<\_ACEOF
17879 #define HAVE_INET_ATON 1
17882 { echo "$as_me:$LINENO: result: yes" >&5
17883 echo "${ECHO_T}yes" >&6; }
17885 echo "$as_me: failed program was:" >&5
17886 sed 's/^/| /' conftest.
$ac_ext >&5
17888 { echo "$as_me:$LINENO: result: no" >&5
17889 echo "${ECHO_T}no" >&6; }
17893 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17894 conftest
$ac_exeext conftest.
$ac_ext
17896 { echo "$as_me:$LINENO: checking for inet_pton" >&5
17897 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
17898 cat >conftest.
$ac_ext <<_ACEOF
17901 cat confdefs.h
>>conftest.
$ac_ext
17902 cat >>conftest.
$ac_ext <<_ACEOF
17903 /* end confdefs.h. */
17905 #include "confdefs.h"
17906 #include <sys/types.h>
17907 #include <sys/socket.h>
17908 #include <netinet/in.h>
17909 #include <arpa/inet.h>
17914 void* p = inet_pton
17919 rm -f conftest.
$ac_objext
17920 if { (ac_try
="$ac_compile"
17921 case "(($ac_try" in
17922 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17923 *) ac_try_echo=$ac_try;;
17925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17926 (eval "$ac_compile") 2>conftest.er1
17928 grep -v '^ *+' conftest.er1 >conftest.err
17930 cat conftest.err >&5
17931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17932 (exit $ac_status); } && {
17933 test -z "$ac_c_werror_flag" ||
17934 test ! -s conftest.err
17935 } && test -s conftest.$ac_objext; then
17937 cat >>confdefs.h <<\_ACEOF
17938 #define HAVE_INET_PTON 1
17941 { echo "$as_me:$LINENO: result: yes" >&5
17942 echo "${ECHO_T}yes" >&6; }
17944 echo "$as_me: failed program was:" >&5
17945 sed 's/^/| /' conftest.$ac_ext >&5
17947 { echo "$as_me:$LINENO: result: no" >&5
17948 echo "${ECHO_T}no" >&6; }
17952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17954 # On some systems, setgroups is in unistd.h, on others, in grp.h
17955 { echo "$as_me:$LINENO: checking for setgroups" >&5
17956 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
17957 cat >conftest.$ac_ext <<_ACEOF
17960 cat confdefs.h >>conftest.$ac_ext
17961 cat >>conftest.$ac_ext <<_ACEOF
17962 /* end confdefs.h. */
17964 #include "confdefs.h"
17965 #include <unistd.h>
17973 void* p = setgroups
17978 rm -f conftest.$ac_objext
17979 if { (ac_try="$ac_compile"
17980 case "(($ac_try" in
17981 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17982 *) ac_try_echo
=$ac_try;;
17984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17985 (eval "$ac_compile") 2>conftest.er1
17987 grep -v '^ *+' conftest.er1
>conftest.err
17989 cat conftest.err
>&5
17990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17991 (exit $ac_status); } && {
17992 test -z "$ac_c_werror_flag" ||
17993 test ! -s conftest.err
17994 } && test -s conftest.
$ac_objext; then
17996 cat >>confdefs.h
<<\_ACEOF
17997 #define HAVE_SETGROUPS 1
18000 { echo "$as_me:$LINENO: result: yes" >&5
18001 echo "${ECHO_T}yes" >&6; }
18003 echo "$as_me: failed program was:" >&5
18004 sed 's/^/| /' conftest.
$ac_ext >&5
18006 { echo "$as_me:$LINENO: result: no" >&5
18007 echo "${ECHO_T}no" >&6; }
18011 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18013 # check for openpty and forkpty
18016 for ac_func
in openpty
18018 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18019 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18020 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18021 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18022 echo $ECHO_N "(cached) $ECHO_C" >&6
18024 cat >conftest.
$ac_ext <<_ACEOF
18027 cat confdefs.h
>>conftest.
$ac_ext
18028 cat >>conftest.
$ac_ext <<_ACEOF
18029 /* end confdefs.h. */
18030 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18031 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18032 #define $ac_func innocuous_$ac_func
18034 /* System header to define __stub macros and hopefully few prototypes,
18035 which can conflict with char $ac_func (); below.
18036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18037 <limits.h> exists even on freestanding compilers. */
18040 # include <limits.h>
18042 # include <assert.h>
18047 /* Override any GCC internal prototype to avoid an error.
18048 Use char because int might match the return type of a GCC
18049 builtin and then its argument prototype would still apply. */
18054 /* The GNU C library defines this for functions which it implements
18055 to always fail with ENOSYS. Some functions are actually named
18056 something starting with __ and the normal name is an alias. */
18057 #if defined __stub_$ac_func || defined __stub___$ac_func
18064 return $ac_func ();
18069 rm -f conftest.
$ac_objext conftest
$ac_exeext
18070 if { (ac_try
="$ac_link"
18071 case "(($ac_try" in
18072 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18073 *) ac_try_echo=$ac_try;;
18075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18076 (eval "$ac_link") 2>conftest.er1
18078 grep -v '^ *+' conftest.er1 >conftest.err
18080 cat conftest.err >&5
18081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18082 (exit $ac_status); } && {
18083 test -z "$ac_c_werror_flag" ||
18084 test ! -s conftest.err
18085 } && test -s conftest$ac_exeext &&
18086 $as_test_x conftest$ac_exeext; then
18087 eval "$as_ac_var=yes"
18089 echo "$as_me: failed program was:" >&5
18090 sed 's/^/| /' conftest.$ac_ext >&5
18092 eval "$as_ac_var=no"
18095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18096 conftest$ac_exeext conftest.$ac_ext
18098 ac_res=`eval echo '${'$as_ac_var'}'`
18099 { echo "$as_me:$LINENO: result: $ac_res" >&5
18100 echo "${ECHO_T}$ac_res" >&6; }
18101 if test `eval echo '${'$as_ac_var'}'` = yes; then
18102 cat >>confdefs.h <<_ACEOF
18103 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18107 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
18108 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
18109 if test "${ac_cv_lib_util_openpty+set}" = set; then
18110 echo $ECHO_N "(cached) $ECHO_C" >&6
18112 ac_check_lib_save_LIBS=$LIBS
18113 LIBS="-lutil $LIBS"
18114 cat >conftest.$ac_ext <<_ACEOF
18117 cat confdefs.h >>conftest.$ac_ext
18118 cat >>conftest.$ac_ext <<_ACEOF
18119 /* end confdefs.h. */
18121 /* Override any GCC internal prototype to avoid an error.
18122 Use char because int might match the return type of a GCC
18123 builtin and then its argument prototype would still apply. */
18136 rm -f conftest.$ac_objext conftest$ac_exeext
18137 if { (ac_try="$ac_link"
18138 case "(($ac_try" in
18139 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18140 *) ac_try_echo
=$ac_try;;
18142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18143 (eval "$ac_link") 2>conftest.er1
18145 grep -v '^ *+' conftest.er1
>conftest.err
18147 cat conftest.err
>&5
18148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18149 (exit $ac_status); } && {
18150 test -z "$ac_c_werror_flag" ||
18151 test ! -s conftest.err
18152 } && test -s conftest
$ac_exeext &&
18153 $as_test_x conftest
$ac_exeext; then
18154 ac_cv_lib_util_openpty
=yes
18156 echo "$as_me: failed program was:" >&5
18157 sed 's/^/| /' conftest.
$ac_ext >&5
18159 ac_cv_lib_util_openpty
=no
18162 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18163 conftest
$ac_exeext conftest.
$ac_ext
18164 LIBS
=$ac_check_lib_save_LIBS
18166 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
18167 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
18168 if test $ac_cv_lib_util_openpty = yes; then
18169 cat >>confdefs.h
<<\_ACEOF
18170 #define HAVE_OPENPTY 1
18172 LIBS
="$LIBS -lutil"
18174 { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
18175 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
18176 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
18177 echo $ECHO_N "(cached) $ECHO_C" >&6
18179 ac_check_lib_save_LIBS
=$LIBS
18181 cat >conftest.
$ac_ext <<_ACEOF
18184 cat confdefs.h
>>conftest.
$ac_ext
18185 cat >>conftest.
$ac_ext <<_ACEOF
18186 /* end confdefs.h. */
18188 /* Override any GCC internal prototype to avoid an error.
18189 Use char because int might match the return type of a GCC
18190 builtin and then its argument prototype would still apply. */
18203 rm -f conftest.
$ac_objext conftest
$ac_exeext
18204 if { (ac_try
="$ac_link"
18205 case "(($ac_try" in
18206 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18207 *) ac_try_echo=$ac_try;;
18209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18210 (eval "$ac_link") 2>conftest.er1
18212 grep -v '^ *+' conftest.er1 >conftest.err
18214 cat conftest.err >&5
18215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216 (exit $ac_status); } && {
18217 test -z "$ac_c_werror_flag" ||
18218 test ! -s conftest.err
18219 } && test -s conftest$ac_exeext &&
18220 $as_test_x conftest$ac_exeext; then
18221 ac_cv_lib_bsd_openpty=yes
18223 echo "$as_me: failed program was:" >&5
18224 sed 's/^/| /' conftest.$ac_ext >&5
18226 ac_cv_lib_bsd_openpty=no
18229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18230 conftest$ac_exeext conftest.$ac_ext
18231 LIBS=$ac_check_lib_save_LIBS
18233 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
18234 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
18235 if test $ac_cv_lib_bsd_openpty = yes; then
18236 cat >>confdefs.h <<\_ACEOF
18237 #define HAVE_OPENPTY 1
18250 for ac_func in forkpty
18252 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18253 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18254 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18255 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18256 echo $ECHO_N "(cached) $ECHO_C" >&6
18258 cat >conftest.$ac_ext <<_ACEOF
18261 cat confdefs.h >>conftest.$ac_ext
18262 cat >>conftest.$ac_ext <<_ACEOF
18263 /* end confdefs.h. */
18264 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18265 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18266 #define $ac_func innocuous_$ac_func
18268 /* System header to define __stub macros and hopefully few prototypes,
18269 which can conflict with char $ac_func (); below.
18270 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18271 <limits.h> exists even on freestanding compilers. */
18274 # include <limits.h>
18276 # include <assert.h>
18281 /* Override any GCC internal prototype to avoid an error.
18282 Use char because int might match the return type of a GCC
18283 builtin and then its argument prototype would still apply. */
18288 /* The GNU C library defines this for functions which it implements
18289 to always fail with ENOSYS. Some functions are actually named
18290 something starting with __ and the normal name is an alias. */
18291 #if defined __stub_$ac_func || defined __stub___$ac_func
18298 return $ac_func ();
18303 rm -f conftest.$ac_objext conftest$ac_exeext
18304 if { (ac_try="$ac_link"
18305 case "(($ac_try" in
18306 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18307 *) ac_try_echo
=$ac_try;;
18309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18310 (eval "$ac_link") 2>conftest.er1
18312 grep -v '^ *+' conftest.er1
>conftest.err
18314 cat conftest.err
>&5
18315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18316 (exit $ac_status); } && {
18317 test -z "$ac_c_werror_flag" ||
18318 test ! -s conftest.err
18319 } && test -s conftest
$ac_exeext &&
18320 $as_test_x conftest
$ac_exeext; then
18321 eval "$as_ac_var=yes"
18323 echo "$as_me: failed program was:" >&5
18324 sed 's/^/| /' conftest.
$ac_ext >&5
18326 eval "$as_ac_var=no"
18329 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18330 conftest
$ac_exeext conftest.
$ac_ext
18332 ac_res
=`eval echo '${'$as_ac_var'}'`
18333 { echo "$as_me:$LINENO: result: $ac_res" >&5
18334 echo "${ECHO_T}$ac_res" >&6; }
18335 if test `eval echo '${'$as_ac_var'}'` = yes; then
18336 cat >>confdefs.h
<<_ACEOF
18337 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18341 { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
18342 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
18343 if test "${ac_cv_lib_util_forkpty+set}" = set; then
18344 echo $ECHO_N "(cached) $ECHO_C" >&6
18346 ac_check_lib_save_LIBS
=$LIBS
18347 LIBS
="-lutil $LIBS"
18348 cat >conftest.
$ac_ext <<_ACEOF
18351 cat confdefs.h
>>conftest.
$ac_ext
18352 cat >>conftest.
$ac_ext <<_ACEOF
18353 /* end confdefs.h. */
18355 /* Override any GCC internal prototype to avoid an error.
18356 Use char because int might match the return type of a GCC
18357 builtin and then its argument prototype would still apply. */
18370 rm -f conftest.
$ac_objext conftest
$ac_exeext
18371 if { (ac_try
="$ac_link"
18372 case "(($ac_try" in
18373 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18374 *) ac_try_echo=$ac_try;;
18376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18377 (eval "$ac_link") 2>conftest.er1
18379 grep -v '^ *+' conftest.er1 >conftest.err
18381 cat conftest.err >&5
18382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383 (exit $ac_status); } && {
18384 test -z "$ac_c_werror_flag" ||
18385 test ! -s conftest.err
18386 } && test -s conftest$ac_exeext &&
18387 $as_test_x conftest$ac_exeext; then
18388 ac_cv_lib_util_forkpty=yes
18390 echo "$as_me: failed program was:" >&5
18391 sed 's/^/| /' conftest.$ac_ext >&5
18393 ac_cv_lib_util_forkpty=no
18396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18397 conftest$ac_exeext conftest.$ac_ext
18398 LIBS=$ac_check_lib_save_LIBS
18400 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
18401 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
18402 if test $ac_cv_lib_util_forkpty = yes; then
18403 cat >>confdefs.h <<\_ACEOF
18404 #define HAVE_FORKPTY 1
18406 LIBS="$LIBS -lutil"
18408 { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
18409 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
18410 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
18411 echo $ECHO_N "(cached) $ECHO_C" >&6
18413 ac_check_lib_save_LIBS=$LIBS
18415 cat >conftest.$ac_ext <<_ACEOF
18418 cat confdefs.h >>conftest.$ac_ext
18419 cat >>conftest.$ac_ext <<_ACEOF
18420 /* end confdefs.h. */
18422 /* Override any GCC internal prototype to avoid an error.
18423 Use char because int might match the return type of a GCC
18424 builtin and then its argument prototype would still apply. */
18437 rm -f conftest.$ac_objext conftest$ac_exeext
18438 if { (ac_try="$ac_link"
18439 case "(($ac_try" in
18440 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18441 *) ac_try_echo
=$ac_try;;
18443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18444 (eval "$ac_link") 2>conftest.er1
18446 grep -v '^ *+' conftest.er1
>conftest.err
18448 cat conftest.err
>&5
18449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450 (exit $ac_status); } && {
18451 test -z "$ac_c_werror_flag" ||
18452 test ! -s conftest.err
18453 } && test -s conftest
$ac_exeext &&
18454 $as_test_x conftest
$ac_exeext; then
18455 ac_cv_lib_bsd_forkpty
=yes
18457 echo "$as_me: failed program was:" >&5
18458 sed 's/^/| /' conftest.
$ac_ext >&5
18460 ac_cv_lib_bsd_forkpty
=no
18463 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18464 conftest
$ac_exeext conftest.
$ac_ext
18465 LIBS
=$ac_check_lib_save_LIBS
18467 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
18468 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
18469 if test $ac_cv_lib_bsd_forkpty = yes; then
18470 cat >>confdefs.h
<<\_ACEOF
18471 #define HAVE_FORKPTY 1
18486 for ac_func
in memmove
18488 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18489 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18490 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18491 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18492 echo $ECHO_N "(cached) $ECHO_C" >&6
18494 cat >conftest.
$ac_ext <<_ACEOF
18497 cat confdefs.h
>>conftest.
$ac_ext
18498 cat >>conftest.
$ac_ext <<_ACEOF
18499 /* end confdefs.h. */
18500 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18501 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18502 #define $ac_func innocuous_$ac_func
18504 /* System header to define __stub macros and hopefully few prototypes,
18505 which can conflict with char $ac_func (); below.
18506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18507 <limits.h> exists even on freestanding compilers. */
18510 # include <limits.h>
18512 # include <assert.h>
18517 /* Override any GCC internal prototype to avoid an error.
18518 Use char because int might match the return type of a GCC
18519 builtin and then its argument prototype would still apply. */
18524 /* The GNU C library defines this for functions which it implements
18525 to always fail with ENOSYS. Some functions are actually named
18526 something starting with __ and the normal name is an alias. */
18527 #if defined __stub_$ac_func || defined __stub___$ac_func
18534 return $ac_func ();
18539 rm -f conftest.
$ac_objext conftest
$ac_exeext
18540 if { (ac_try
="$ac_link"
18541 case "(($ac_try" in
18542 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18543 *) ac_try_echo=$ac_try;;
18545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18546 (eval "$ac_link") 2>conftest.er1
18548 grep -v '^ *+' conftest.er1 >conftest.err
18550 cat conftest.err >&5
18551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18552 (exit $ac_status); } && {
18553 test -z "$ac_c_werror_flag" ||
18554 test ! -s conftest.err
18555 } && test -s conftest$ac_exeext &&
18556 $as_test_x conftest$ac_exeext; then
18557 eval "$as_ac_var=yes"
18559 echo "$as_me: failed program was:" >&5
18560 sed 's/^/| /' conftest.$ac_ext >&5
18562 eval "$as_ac_var=no"
18565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18566 conftest$ac_exeext conftest.$ac_ext
18568 ac_res=`eval echo '${'$as_ac_var'}'`
18569 { echo "$as_me:$LINENO: result: $ac_res" >&5
18570 echo "${ECHO_T}$ac_res" >&6; }
18571 if test `eval echo '${'$as_ac_var'}'` = yes; then
18572 cat >>confdefs.h <<_ACEOF
18573 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18580 # check for long file support functions
18587 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
18589 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18590 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18591 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18592 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18593 echo $ECHO_N "(cached) $ECHO_C" >&6
18595 cat >conftest.$ac_ext <<_ACEOF
18598 cat confdefs.h >>conftest.$ac_ext
18599 cat >>conftest.$ac_ext <<_ACEOF
18600 /* end confdefs.h. */
18601 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18602 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18603 #define $ac_func innocuous_$ac_func
18605 /* System header to define __stub macros and hopefully few prototypes,
18606 which can conflict with char $ac_func (); below.
18607 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18608 <limits.h> exists even on freestanding compilers. */
18611 # include <limits.h>
18613 # include <assert.h>
18618 /* Override any GCC internal prototype to avoid an error.
18619 Use char because int might match the return type of a GCC
18620 builtin and then its argument prototype would still apply. */
18625 /* The GNU C library defines this for functions which it implements
18626 to always fail with ENOSYS. Some functions are actually named
18627 something starting with __ and the normal name is an alias. */
18628 #if defined __stub_$ac_func || defined __stub___$ac_func
18635 return $ac_func ();
18640 rm -f conftest.$ac_objext conftest$ac_exeext
18641 if { (ac_try="$ac_link"
18642 case "(($ac_try" in
18643 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18644 *) ac_try_echo
=$ac_try;;
18646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18647 (eval "$ac_link") 2>conftest.er1
18649 grep -v '^ *+' conftest.er1
>conftest.err
18651 cat conftest.err
>&5
18652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18653 (exit $ac_status); } && {
18654 test -z "$ac_c_werror_flag" ||
18655 test ! -s conftest.err
18656 } && test -s conftest
$ac_exeext &&
18657 $as_test_x conftest
$ac_exeext; then
18658 eval "$as_ac_var=yes"
18660 echo "$as_me: failed program was:" >&5
18661 sed 's/^/| /' conftest.
$ac_ext >&5
18663 eval "$as_ac_var=no"
18666 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18667 conftest
$ac_exeext conftest.
$ac_ext
18669 ac_res
=`eval echo '${'$as_ac_var'}'`
18670 { echo "$as_me:$LINENO: result: $ac_res" >&5
18671 echo "${ECHO_T}$ac_res" >&6; }
18672 if test `eval echo '${'$as_ac_var'}'` = yes; then
18673 cat >>confdefs.h
<<_ACEOF
18674 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18684 for ac_func
in dup2 getcwd strdup
18686 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18687 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18688 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18689 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18690 echo $ECHO_N "(cached) $ECHO_C" >&6
18692 cat >conftest.
$ac_ext <<_ACEOF
18695 cat confdefs.h
>>conftest.
$ac_ext
18696 cat >>conftest.
$ac_ext <<_ACEOF
18697 /* end confdefs.h. */
18698 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18700 #define $ac_func innocuous_$ac_func
18702 /* System header to define __stub macros and hopefully few prototypes,
18703 which can conflict with char $ac_func (); below.
18704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18705 <limits.h> exists even on freestanding compilers. */
18708 # include <limits.h>
18710 # include <assert.h>
18715 /* Override any GCC internal prototype to avoid an error.
18716 Use char because int might match the return type of a GCC
18717 builtin and then its argument prototype would still apply. */
18722 /* The GNU C library defines this for functions which it implements
18723 to always fail with ENOSYS. Some functions are actually named
18724 something starting with __ and the normal name is an alias. */
18725 #if defined __stub_$ac_func || defined __stub___$ac_func
18732 return $ac_func ();
18737 rm -f conftest.
$ac_objext conftest
$ac_exeext
18738 if { (ac_try
="$ac_link"
18739 case "(($ac_try" in
18740 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18741 *) ac_try_echo=$ac_try;;
18743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18744 (eval "$ac_link") 2>conftest.er1
18746 grep -v '^ *+' conftest.er1 >conftest.err
18748 cat conftest.err >&5
18749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18750 (exit $ac_status); } && {
18751 test -z "$ac_c_werror_flag" ||
18752 test ! -s conftest.err
18753 } && test -s conftest$ac_exeext &&
18754 $as_test_x conftest$ac_exeext; then
18755 eval "$as_ac_var=yes"
18757 echo "$as_me: failed program was:" >&5
18758 sed 's/^/| /' conftest.$ac_ext >&5
18760 eval "$as_ac_var=no"
18763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18764 conftest$ac_exeext conftest.$ac_ext
18766 ac_res=`eval echo '${'$as_ac_var'}'`
18767 { echo "$as_me:$LINENO: result: $ac_res" >&5
18768 echo "${ECHO_T}$ac_res" >&6; }
18769 if test `eval echo '${'$as_ac_var'}'` = yes; then
18770 cat >>confdefs.h <<_ACEOF
18771 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18775 case " $LIBOBJS " in
18776 *" $ac_func.$ac_objext "* ) ;;
18777 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18786 for ac_func in getpgrp
18788 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18789 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18790 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18791 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18792 echo $ECHO_N "(cached) $ECHO_C" >&6
18794 cat >conftest.$ac_ext <<_ACEOF
18797 cat confdefs.h >>conftest.$ac_ext
18798 cat >>conftest.$ac_ext <<_ACEOF
18799 /* end confdefs.h. */
18800 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18802 #define $ac_func innocuous_$ac_func
18804 /* System header to define __stub macros and hopefully few prototypes,
18805 which can conflict with char $ac_func (); below.
18806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18807 <limits.h> exists even on freestanding compilers. */
18810 # include <limits.h>
18812 # include <assert.h>
18817 /* Override any GCC internal prototype to avoid an error.
18818 Use char because int might match the return type of a GCC
18819 builtin and then its argument prototype would still apply. */
18824 /* The GNU C library defines this for functions which it implements
18825 to always fail with ENOSYS. Some functions are actually named
18826 something starting with __ and the normal name is an alias. */
18827 #if defined __stub_$ac_func || defined __stub___$ac_func
18834 return $ac_func ();
18839 rm -f conftest.$ac_objext conftest$ac_exeext
18840 if { (ac_try="$ac_link"
18841 case "(($ac_try" in
18842 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18843 *) ac_try_echo
=$ac_try;;
18845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18846 (eval "$ac_link") 2>conftest.er1
18848 grep -v '^ *+' conftest.er1
>conftest.err
18850 cat conftest.err
>&5
18851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18852 (exit $ac_status); } && {
18853 test -z "$ac_c_werror_flag" ||
18854 test ! -s conftest.err
18855 } && test -s conftest
$ac_exeext &&
18856 $as_test_x conftest
$ac_exeext; then
18857 eval "$as_ac_var=yes"
18859 echo "$as_me: failed program was:" >&5
18860 sed 's/^/| /' conftest.
$ac_ext >&5
18862 eval "$as_ac_var=no"
18865 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18866 conftest
$ac_exeext conftest.
$ac_ext
18868 ac_res
=`eval echo '${'$as_ac_var'}'`
18869 { echo "$as_me:$LINENO: result: $ac_res" >&5
18870 echo "${ECHO_T}$ac_res" >&6; }
18871 if test `eval echo '${'$as_ac_var'}'` = yes; then
18872 cat >>confdefs.h
<<_ACEOF
18873 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18875 cat >conftest.
$ac_ext <<_ACEOF
18878 cat confdefs.h
>>conftest.
$ac_ext
18879 cat >>conftest.
$ac_ext <<_ACEOF
18880 /* end confdefs.h. */
18881 #include <unistd.h>
18890 rm -f conftest.
$ac_objext
18891 if { (ac_try
="$ac_compile"
18892 case "(($ac_try" in
18893 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18894 *) ac_try_echo=$ac_try;;
18896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18897 (eval "$ac_compile") 2>conftest.er1
18899 grep -v '^ *+' conftest.er1 >conftest.err
18901 cat conftest.err >&5
18902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18903 (exit $ac_status); } && {
18904 test -z "$ac_c_werror_flag" ||
18905 test ! -s conftest.err
18906 } && test -s conftest.$ac_objext; then
18908 cat >>confdefs.h <<\_ACEOF
18909 #define GETPGRP_HAVE_ARG 1
18914 echo "$as_me: failed program was:" >&5
18915 sed 's/^/| /' conftest.$ac_ext >&5
18920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18926 for ac_func in setpgrp
18928 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18929 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18930 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18931 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18932 echo $ECHO_N "(cached) $ECHO_C" >&6
18934 cat >conftest.$ac_ext <<_ACEOF
18937 cat confdefs.h >>conftest.$ac_ext
18938 cat >>conftest.$ac_ext <<_ACEOF
18939 /* end confdefs.h. */
18940 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18941 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18942 #define $ac_func innocuous_$ac_func
18944 /* System header to define __stub macros and hopefully few prototypes,
18945 which can conflict with char $ac_func (); below.
18946 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18947 <limits.h> exists even on freestanding compilers. */
18950 # include <limits.h>
18952 # include <assert.h>
18957 /* Override any GCC internal prototype to avoid an error.
18958 Use char because int might match the return type of a GCC
18959 builtin and then its argument prototype would still apply. */
18964 /* The GNU C library defines this for functions which it implements
18965 to always fail with ENOSYS. Some functions are actually named
18966 something starting with __ and the normal name is an alias. */
18967 #if defined __stub_$ac_func || defined __stub___$ac_func
18974 return $ac_func ();
18979 rm -f conftest.$ac_objext conftest$ac_exeext
18980 if { (ac_try="$ac_link"
18981 case "(($ac_try" in
18982 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18983 *) ac_try_echo
=$ac_try;;
18985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18986 (eval "$ac_link") 2>conftest.er1
18988 grep -v '^ *+' conftest.er1
>conftest.err
18990 cat conftest.err
>&5
18991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18992 (exit $ac_status); } && {
18993 test -z "$ac_c_werror_flag" ||
18994 test ! -s conftest.err
18995 } && test -s conftest
$ac_exeext &&
18996 $as_test_x conftest
$ac_exeext; then
18997 eval "$as_ac_var=yes"
18999 echo "$as_me: failed program was:" >&5
19000 sed 's/^/| /' conftest.
$ac_ext >&5
19002 eval "$as_ac_var=no"
19005 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19006 conftest
$ac_exeext conftest.
$ac_ext
19008 ac_res
=`eval echo '${'$as_ac_var'}'`
19009 { echo "$as_me:$LINENO: result: $ac_res" >&5
19010 echo "${ECHO_T}$ac_res" >&6; }
19011 if test `eval echo '${'$as_ac_var'}'` = yes; then
19012 cat >>confdefs.h
<<_ACEOF
19013 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19015 cat >conftest.
$ac_ext <<_ACEOF
19018 cat confdefs.h
>>conftest.
$ac_ext
19019 cat >>conftest.
$ac_ext <<_ACEOF
19020 /* end confdefs.h. */
19021 #include <unistd.h>
19030 rm -f conftest.
$ac_objext
19031 if { (ac_try
="$ac_compile"
19032 case "(($ac_try" in
19033 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19034 *) ac_try_echo=$ac_try;;
19036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19037 (eval "$ac_compile") 2>conftest.er1
19039 grep -v '^ *+' conftest.er1 >conftest.err
19041 cat conftest.err >&5
19042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19043 (exit $ac_status); } && {
19044 test -z "$ac_c_werror_flag" ||
19045 test ! -s conftest.err
19046 } && test -s conftest.$ac_objext; then
19048 cat >>confdefs.h <<\_ACEOF
19049 #define SETPGRP_HAVE_ARG 1
19054 echo "$as_me: failed program was:" >&5
19055 sed 's/^/| /' conftest.$ac_ext >&5
19060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19066 for ac_func in gettimeofday
19068 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
19069 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19070 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19071 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19072 echo $ECHO_N "(cached) $ECHO_C" >&6
19074 cat >conftest.$ac_ext <<_ACEOF
19077 cat confdefs.h >>conftest.$ac_ext
19078 cat >>conftest.$ac_ext <<_ACEOF
19079 /* end confdefs.h. */
19080 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19081 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19082 #define $ac_func innocuous_$ac_func
19084 /* System header to define __stub macros and hopefully few prototypes,
19085 which can conflict with char $ac_func (); below.
19086 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19087 <limits.h> exists even on freestanding compilers. */
19090 # include <limits.h>
19092 # include <assert.h>
19097 /* Override any GCC internal prototype to avoid an error.
19098 Use char because int might match the return type of a GCC
19099 builtin and then its argument prototype would still apply. */
19104 /* The GNU C library defines this for functions which it implements
19105 to always fail with ENOSYS. Some functions are actually named
19106 something starting with __ and the normal name is an alias. */
19107 #if defined __stub_$ac_func || defined __stub___$ac_func
19114 return $ac_func ();
19119 rm -f conftest.$ac_objext conftest$ac_exeext
19120 if { (ac_try="$ac_link"
19121 case "(($ac_try" in
19122 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19123 *) ac_try_echo
=$ac_try;;
19125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19126 (eval "$ac_link") 2>conftest.er1
19128 grep -v '^ *+' conftest.er1
>conftest.err
19130 cat conftest.err
>&5
19131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132 (exit $ac_status); } && {
19133 test -z "$ac_c_werror_flag" ||
19134 test ! -s conftest.err
19135 } && test -s conftest
$ac_exeext &&
19136 $as_test_x conftest
$ac_exeext; then
19137 eval "$as_ac_var=yes"
19139 echo "$as_me: failed program was:" >&5
19140 sed 's/^/| /' conftest.
$ac_ext >&5
19142 eval "$as_ac_var=no"
19145 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19146 conftest
$ac_exeext conftest.
$ac_ext
19148 ac_res
=`eval echo '${'$as_ac_var'}'`
19149 { echo "$as_me:$LINENO: result: $ac_res" >&5
19150 echo "${ECHO_T}$ac_res" >&6; }
19151 if test `eval echo '${'$as_ac_var'}'` = yes; then
19152 cat >>confdefs.h
<<_ACEOF
19153 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19155 cat >conftest.
$ac_ext <<_ACEOF
19158 cat confdefs.h
>>conftest.
$ac_ext
19159 cat >>conftest.
$ac_ext <<_ACEOF
19160 /* end confdefs.h. */
19161 #include <sys/time.h>
19165 gettimeofday((struct timeval*)0,(struct timezone*)0);
19170 rm -f conftest.
$ac_objext
19171 if { (ac_try
="$ac_compile"
19172 case "(($ac_try" in
19173 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19174 *) ac_try_echo=$ac_try;;
19176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19177 (eval "$ac_compile") 2>conftest.er1
19179 grep -v '^ *+' conftest.er1 >conftest.err
19181 cat conftest.err >&5
19182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19183 (exit $ac_status); } && {
19184 test -z "$ac_c_werror_flag" ||
19185 test ! -s conftest.err
19186 } && test -s conftest.$ac_objext; then
19189 echo "$as_me: failed program was:" >&5
19190 sed 's/^/| /' conftest.$ac_ext >&5
19193 cat >>confdefs.h <<\_ACEOF
19194 #define GETTIMEOFDAY_NO_TZ 1
19200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19206 { echo "$as_me:$LINENO: checking for major" >&5
19207 echo $ECHO_N "checking for major... $ECHO_C" >&6; }
19208 cat >conftest.$ac_ext <<_ACEOF
19211 cat confdefs.h >>conftest.$ac_ext
19212 cat >>conftest.$ac_ext <<_ACEOF
19213 /* end confdefs.h. */
19215 #if defined(MAJOR_IN_MKDEV)
19216 #include <sys/mkdev.h>
19217 #elif defined(MAJOR_IN_SYSMACROS)
19218 #include <sys/sysmacros.h>
19220 #include <sys/types.h>
19227 makedev(major(0),minor(0));
19233 rm -f conftest.$ac_objext conftest$ac_exeext
19234 if { (ac_try="$ac_link"
19235 case "(($ac_try" in
19236 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19237 *) ac_try_echo
=$ac_try;;
19239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19240 (eval "$ac_link") 2>conftest.er1
19242 grep -v '^ *+' conftest.er1
>conftest.err
19244 cat conftest.err
>&5
19245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19246 (exit $ac_status); } && {
19247 test -z "$ac_c_werror_flag" ||
19248 test ! -s conftest.err
19249 } && test -s conftest
$ac_exeext &&
19250 $as_test_x conftest
$ac_exeext; then
19253 cat >>confdefs.h
<<\_ACEOF
19254 #define HAVE_DEVICE_MACROS 1
19257 { echo "$as_me:$LINENO: result: yes" >&5
19258 echo "${ECHO_T}yes" >&6; }
19261 echo "$as_me: failed program was:" >&5
19262 sed 's/^/| /' conftest.
$ac_ext >&5
19265 { echo "$as_me:$LINENO: result: no" >&5
19266 echo "${ECHO_T}no" >&6; }
19270 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19271 conftest
$ac_exeext conftest.
$ac_ext
19273 # On OSF/1 V5.1, getaddrinfo is available, but a define
19274 # for [no]getaddrinfo in netdb.h.
19275 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
19276 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
19277 cat >conftest.
$ac_ext <<_ACEOF
19280 cat confdefs.h
>>conftest.
$ac_ext
19281 cat >>conftest.
$ac_ext <<_ACEOF
19282 /* end confdefs.h. */
19284 #include <sys/types.h>
19285 #include <sys/socket.h>
19293 getaddrinfo(NULL, NULL, NULL, NULL);
19299 rm -f conftest.
$ac_objext conftest
$ac_exeext
19300 if { (ac_try
="$ac_link"
19301 case "(($ac_try" in
19302 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19303 *) ac_try_echo=$ac_try;;
19305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19306 (eval "$ac_link") 2>conftest.er1
19308 grep -v '^ *+' conftest.er1 >conftest.err
19310 cat conftest.err >&5
19311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19312 (exit $ac_status); } && {
19313 test -z "$ac_c_werror_flag" ||
19314 test ! -s conftest.err
19315 } && test -s conftest$ac_exeext &&
19316 $as_test_x conftest$ac_exeext; then
19318 { echo "$as_me:$LINENO: result: yes" >&5
19319 echo "${ECHO_T}yes" >&6; }
19320 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
19321 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
19322 if test "$cross_compiling" = yes; then
19323 { echo "$as_me:$LINENO: result: buggy" >&5
19324 echo "${ECHO_T}buggy" >&6; }
19325 buggygetaddrinfo=yes
19327 cat >conftest.$ac_ext <<_ACEOF
19330 cat confdefs.h >>conftest.$ac_ext
19331 cat >>conftest.$ac_ext <<_ACEOF
19332 /* end confdefs.h. */
19334 #include <sys/types.h>
19336 #include <string.h>
19337 #include <sys/socket.h>
19338 #include <netinet/in.h>
19342 int passive, gaierr, inet4 = 0, inet6 = 0;
19343 struct addrinfo hints, *ai, *aitop;
19344 char straddr[INET6_ADDRSTRLEN], strport[16];
19346 for (passive = 0; passive <= 1; passive++) {
19347 memset(&hints, 0, sizeof(hints));
19348 hints.ai_family = AF_UNSPEC;
19349 hints.ai_flags = passive ? AI_PASSIVE : 0;
19350 hints.ai_socktype = SOCK_STREAM;
19351 hints.ai_protocol = IPPROTO_TCP;
19352 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
19353 (void)gai_strerror(gaierr);
19356 for (ai = aitop; ai; ai = ai->ai_next) {
19357 if (ai->ai_addr == NULL ||
19358 ai->ai_addrlen == 0 ||
19359 getnameinfo(ai->ai_addr, ai->ai_addrlen,
19360 straddr, sizeof(straddr), strport, sizeof(strport),
19361 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
19364 switch (ai->ai_family) {
19366 if (strcmp(strport, "54321") != 0) {
19370 if (strcmp(straddr, "0.0.0.0") != 0) {
19374 if (strcmp(straddr, "127.0.0.1") != 0) {
19381 if (strcmp(strport, "54321") != 0) {
19385 if (strcmp(straddr, "::") != 0) {
19389 if (strcmp(straddr, "::1") != 0) {
19399 /* another family support? */
19405 if (!(inet4 == 0 || inet4 == 2))
19407 if (!(inet6 == 0 || inet6 == 2))
19411 freeaddrinfo(aitop);
19416 freeaddrinfo(aitop);
19421 rm -f conftest$ac_exeext
19422 if { (ac_try="$ac_link"
19423 case "(($ac_try" in
19424 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19425 *) ac_try_echo
=$ac_try;;
19427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19428 (eval "$ac_link") 2>&5
19430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19432 { (case "(($ac_try" in
19433 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19434 *) ac_try_echo=$ac_try;;
19436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19437 (eval "$ac_try") 2>&5
19439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440 (exit $ac_status); }; }; then
19441 { echo "$as_me:$LINENO: result: good" >&5
19442 echo "${ECHO_T}good" >&6; }
19443 buggygetaddrinfo=no
19445 echo "$as_me: program exited with status $ac_status" >&5
19446 echo "$as_me: failed program was:" >&5
19447 sed 's/^/| /' conftest.$ac_ext >&5
19449 ( exit $ac_status )
19450 { echo "$as_me:$LINENO: result: buggy" >&5
19451 echo "${ECHO_T}buggy" >&6; }
19452 buggygetaddrinfo=yes
19454 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19459 echo "$as_me: failed program was:" >&5
19460 sed 's/^/| /' conftest.$ac_ext >&5
19463 { echo "$as_me:$LINENO: result: no" >&5
19464 echo "${ECHO_T}no" >&6; }
19465 buggygetaddrinfo=yes
19469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19470 conftest$ac_exeext conftest.$ac_ext
19472 if test "$buggygetaddrinfo" = "yes"; then
19473 if test "$ipv6" = "yes"; then
19474 echo 'Fatal: You must get working getaddrinfo() function.'
19475 echo ' or you can specify "--disable-ipv6"'.
19480 cat >>confdefs.h <<\_ACEOF
19481 #define HAVE_GETADDRINFO 1
19486 for ac_func in getnameinfo
19488 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
19489 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19490 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19491 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19492 echo $ECHO_N "(cached) $ECHO_C" >&6
19494 cat >conftest.$ac_ext <<_ACEOF
19497 cat confdefs.h >>conftest.$ac_ext
19498 cat >>conftest.$ac_ext <<_ACEOF
19499 /* end confdefs.h. */
19500 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19501 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19502 #define $ac_func innocuous_$ac_func
19504 /* System header to define __stub macros and hopefully few prototypes,
19505 which can conflict with char $ac_func (); below.
19506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19507 <limits.h> exists even on freestanding compilers. */
19510 # include <limits.h>
19512 # include <assert.h>
19517 /* Override any GCC internal prototype to avoid an error.
19518 Use char because int might match the return type of a GCC
19519 builtin and then its argument prototype would still apply. */
19524 /* The GNU C library defines this for functions which it implements
19525 to always fail with ENOSYS. Some functions are actually named
19526 something starting with __ and the normal name is an alias. */
19527 #if defined __stub_$ac_func || defined __stub___$ac_func
19534 return $ac_func ();
19539 rm -f conftest.$ac_objext conftest$ac_exeext
19540 if { (ac_try="$ac_link"
19541 case "(($ac_try" in
19542 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19543 *) ac_try_echo
=$ac_try;;
19545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19546 (eval "$ac_link") 2>conftest.er1
19548 grep -v '^ *+' conftest.er1
>conftest.err
19550 cat conftest.err
>&5
19551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19552 (exit $ac_status); } && {
19553 test -z "$ac_c_werror_flag" ||
19554 test ! -s conftest.err
19555 } && test -s conftest
$ac_exeext &&
19556 $as_test_x conftest
$ac_exeext; then
19557 eval "$as_ac_var=yes"
19559 echo "$as_me: failed program was:" >&5
19560 sed 's/^/| /' conftest.
$ac_ext >&5
19562 eval "$as_ac_var=no"
19565 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19566 conftest
$ac_exeext conftest.
$ac_ext
19568 ac_res
=`eval echo '${'$as_ac_var'}'`
19569 { echo "$as_me:$LINENO: result: $ac_res" >&5
19570 echo "${ECHO_T}$ac_res" >&6; }
19571 if test `eval echo '${'$as_ac_var'}'` = yes; then
19572 cat >>confdefs.h
<<_ACEOF
19573 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19580 # checks for structures
19581 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19582 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
19583 if test "${ac_cv_header_time+set}" = set; then
19584 echo $ECHO_N "(cached) $ECHO_C" >&6
19586 cat >conftest.
$ac_ext <<_ACEOF
19589 cat confdefs.h
>>conftest.
$ac_ext
19590 cat >>conftest.
$ac_ext <<_ACEOF
19591 /* end confdefs.h. */
19592 #include <sys/types.h>
19593 #include <sys/time.h>
19599 if ((struct tm *) 0)
19605 rm -f conftest.
$ac_objext
19606 if { (ac_try
="$ac_compile"
19607 case "(($ac_try" in
19608 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19609 *) ac_try_echo=$ac_try;;
19611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19612 (eval "$ac_compile") 2>conftest.er1
19614 grep -v '^ *+' conftest.er1 >conftest.err
19616 cat conftest.err >&5
19617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19618 (exit $ac_status); } && {
19619 test -z "$ac_c_werror_flag" ||
19620 test ! -s conftest.err
19621 } && test -s conftest.$ac_objext; then
19622 ac_cv_header_time=yes
19624 echo "$as_me: failed program was:" >&5
19625 sed 's/^/| /' conftest.$ac_ext >&5
19627 ac_cv_header_time=no
19630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19632 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19633 echo "${ECHO_T}$ac_cv_header_time" >&6; }
19634 if test $ac_cv_header_time = yes; then
19636 cat >>confdefs.h <<\_ACEOF
19637 #define TIME_WITH_SYS_TIME 1
19642 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19643 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
19644 if test "${ac_cv_struct_tm+set}" = set; then
19645 echo $ECHO_N "(cached) $ECHO_C" >&6
19647 cat >conftest.$ac_ext <<_ACEOF
19650 cat confdefs.h >>conftest.$ac_ext
19651 cat >>conftest.$ac_ext <<_ACEOF
19652 /* end confdefs.h. */
19653 #include <sys/types.h>
19660 int *p = &tm.tm_sec;
19666 rm -f conftest.$ac_objext
19667 if { (ac_try="$ac_compile"
19668 case "(($ac_try" in
19669 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19670 *) ac_try_echo
=$ac_try;;
19672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19673 (eval "$ac_compile") 2>conftest.er1
19675 grep -v '^ *+' conftest.er1
>conftest.err
19677 cat conftest.err
>&5
19678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19679 (exit $ac_status); } && {
19680 test -z "$ac_c_werror_flag" ||
19681 test ! -s conftest.err
19682 } && test -s conftest.
$ac_objext; then
19683 ac_cv_struct_tm
=time.h
19685 echo "$as_me: failed program was:" >&5
19686 sed 's/^/| /' conftest.
$ac_ext >&5
19688 ac_cv_struct_tm
=sys
/time.h
19691 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19693 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19694 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
19695 if test $ac_cv_struct_tm = sys
/time.h
; then
19697 cat >>confdefs.h
<<\_ACEOF
19698 #define TM_IN_SYS_TIME 1
19703 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
19704 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
19705 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
19706 echo $ECHO_N "(cached) $ECHO_C" >&6
19708 cat >conftest.
$ac_ext <<_ACEOF
19711 cat confdefs.h
>>conftest.
$ac_ext
19712 cat >>conftest.
$ac_ext <<_ACEOF
19713 /* end confdefs.h. */
19714 #include <sys/types.h>
19715 #include <$ac_cv_struct_tm>
19721 static struct tm ac_aggr;
19722 if (ac_aggr.tm_zone)
19728 rm -f conftest.
$ac_objext
19729 if { (ac_try
="$ac_compile"
19730 case "(($ac_try" in
19731 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19732 *) ac_try_echo=$ac_try;;
19734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19735 (eval "$ac_compile") 2>conftest.er1
19737 grep -v '^ *+' conftest.er1 >conftest.err
19739 cat conftest.err >&5
19740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741 (exit $ac_status); } && {
19742 test -z "$ac_c_werror_flag" ||
19743 test ! -s conftest.err
19744 } && test -s conftest.$ac_objext; then
19745 ac_cv_member_struct_tm_tm_zone=yes
19747 echo "$as_me: failed program was:" >&5
19748 sed 's/^/| /' conftest.$ac_ext >&5
19750 cat >conftest.$ac_ext <<_ACEOF
19753 cat confdefs.h >>conftest.$ac_ext
19754 cat >>conftest.$ac_ext <<_ACEOF
19755 /* end confdefs.h. */
19756 #include <sys/types.h>
19757 #include <$ac_cv_struct_tm>
19763 static struct tm ac_aggr;
19764 if (sizeof ac_aggr.tm_zone)
19770 rm -f conftest.$ac_objext
19771 if { (ac_try="$ac_compile"
19772 case "(($ac_try" in
19773 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19774 *) ac_try_echo
=$ac_try;;
19776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19777 (eval "$ac_compile") 2>conftest.er1
19779 grep -v '^ *+' conftest.er1
>conftest.err
19781 cat conftest.err
>&5
19782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19783 (exit $ac_status); } && {
19784 test -z "$ac_c_werror_flag" ||
19785 test ! -s conftest.err
19786 } && test -s conftest.
$ac_objext; then
19787 ac_cv_member_struct_tm_tm_zone
=yes
19789 echo "$as_me: failed program was:" >&5
19790 sed 's/^/| /' conftest.
$ac_ext >&5
19792 ac_cv_member_struct_tm_tm_zone
=no
19795 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19798 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19800 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
19801 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
19802 if test $ac_cv_member_struct_tm_tm_zone = yes; then
19804 cat >>confdefs.h
<<_ACEOF
19805 #define HAVE_STRUCT_TM_TM_ZONE 1
19811 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19813 cat >>confdefs.h
<<\_ACEOF
19814 #define HAVE_TM_ZONE 1
19818 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
19819 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
19820 if test "${ac_cv_have_decl_tzname+set}" = set; then
19821 echo $ECHO_N "(cached) $ECHO_C" >&6
19823 cat >conftest.
$ac_ext <<_ACEOF
19826 cat confdefs.h
>>conftest.
$ac_ext
19827 cat >>conftest.
$ac_ext <<_ACEOF
19828 /* end confdefs.h. */
19842 rm -f conftest.
$ac_objext
19843 if { (ac_try
="$ac_compile"
19844 case "(($ac_try" in
19845 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19846 *) ac_try_echo=$ac_try;;
19848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19849 (eval "$ac_compile") 2>conftest.er1
19851 grep -v '^ *+' conftest.er1 >conftest.err
19853 cat conftest.err >&5
19854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19855 (exit $ac_status); } && {
19856 test -z "$ac_c_werror_flag" ||
19857 test ! -s conftest.err
19858 } && test -s conftest.$ac_objext; then
19859 ac_cv_have_decl_tzname=yes
19861 echo "$as_me: failed program was:" >&5
19862 sed 's/^/| /' conftest.$ac_ext >&5
19864 ac_cv_have_decl_tzname=no
19867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19869 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
19870 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
19871 if test $ac_cv_have_decl_tzname = yes; then
19873 cat >>confdefs.h <<_ACEOF
19874 #define HAVE_DECL_TZNAME 1
19879 cat >>confdefs.h <<_ACEOF
19880 #define HAVE_DECL_TZNAME 0
19887 { echo "$as_me:$LINENO: checking for tzname" >&5
19888 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
19889 if test "${ac_cv_var_tzname+set}" = set; then
19890 echo $ECHO_N "(cached) $ECHO_C" >&6
19892 cat >conftest.$ac_ext <<_ACEOF
19895 cat confdefs.h >>conftest.$ac_ext
19896 cat >>conftest.$ac_ext <<_ACEOF
19897 /* end confdefs.h. */
19899 #if !HAVE_DECL_TZNAME
19900 extern char *tzname[];
19906 return tzname[0][0];
19911 rm -f conftest.$ac_objext conftest$ac_exeext
19912 if { (ac_try="$ac_link"
19913 case "(($ac_try" in
19914 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19915 *) ac_try_echo
=$ac_try;;
19917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19918 (eval "$ac_link") 2>conftest.er1
19920 grep -v '^ *+' conftest.er1
>conftest.err
19922 cat conftest.err
>&5
19923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19924 (exit $ac_status); } && {
19925 test -z "$ac_c_werror_flag" ||
19926 test ! -s conftest.err
19927 } && test -s conftest
$ac_exeext &&
19928 $as_test_x conftest
$ac_exeext; then
19929 ac_cv_var_tzname
=yes
19931 echo "$as_me: failed program was:" >&5
19932 sed 's/^/| /' conftest.
$ac_ext >&5
19934 ac_cv_var_tzname
=no
19937 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19938 conftest
$ac_exeext conftest.
$ac_ext
19940 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
19941 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
19942 if test $ac_cv_var_tzname = yes; then
19944 cat >>confdefs.h
<<\_ACEOF
19945 #define HAVE_TZNAME 1
19951 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
19952 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
19953 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
19954 echo $ECHO_N "(cached) $ECHO_C" >&6
19956 cat >conftest.
$ac_ext <<_ACEOF
19959 cat confdefs.h
>>conftest.
$ac_ext
19960 cat >>conftest.
$ac_ext <<_ACEOF
19961 /* end confdefs.h. */
19962 $ac_includes_default
19966 static struct stat ac_aggr;
19967 if (ac_aggr.st_rdev)
19973 rm -f conftest.
$ac_objext
19974 if { (ac_try
="$ac_compile"
19975 case "(($ac_try" in
19976 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19977 *) ac_try_echo=$ac_try;;
19979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19980 (eval "$ac_compile") 2>conftest.er1
19982 grep -v '^ *+' conftest.er1 >conftest.err
19984 cat conftest.err >&5
19985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19986 (exit $ac_status); } && {
19987 test -z "$ac_c_werror_flag" ||
19988 test ! -s conftest.err
19989 } && test -s conftest.$ac_objext; then
19990 ac_cv_member_struct_stat_st_rdev=yes
19992 echo "$as_me: failed program was:" >&5
19993 sed 's/^/| /' conftest.$ac_ext >&5
19995 cat >conftest.$ac_ext <<_ACEOF
19998 cat confdefs.h >>conftest.$ac_ext
19999 cat >>conftest.$ac_ext <<_ACEOF
20000 /* end confdefs.h. */
20001 $ac_includes_default
20005 static struct stat ac_aggr;
20006 if (sizeof ac_aggr.st_rdev)
20012 rm -f conftest.$ac_objext
20013 if { (ac_try="$ac_compile"
20014 case "(($ac_try" in
20015 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20016 *) ac_try_echo
=$ac_try;;
20018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20019 (eval "$ac_compile") 2>conftest.er1
20021 grep -v '^ *+' conftest.er1
>conftest.err
20023 cat conftest.err
>&5
20024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20025 (exit $ac_status); } && {
20026 test -z "$ac_c_werror_flag" ||
20027 test ! -s conftest.err
20028 } && test -s conftest.
$ac_objext; then
20029 ac_cv_member_struct_stat_st_rdev
=yes
20031 echo "$as_me: failed program was:" >&5
20032 sed 's/^/| /' conftest.
$ac_ext >&5
20034 ac_cv_member_struct_stat_st_rdev
=no
20037 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20040 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20042 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
20043 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
20044 if test $ac_cv_member_struct_stat_st_rdev = yes; then
20046 cat >>confdefs.h
<<_ACEOF
20047 #define HAVE_STRUCT_STAT_ST_RDEV 1
20053 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
20054 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
20055 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
20056 echo $ECHO_N "(cached) $ECHO_C" >&6
20058 cat >conftest.
$ac_ext <<_ACEOF
20061 cat confdefs.h
>>conftest.
$ac_ext
20062 cat >>conftest.
$ac_ext <<_ACEOF
20063 /* end confdefs.h. */
20064 $ac_includes_default
20068 static struct stat ac_aggr;
20069 if (ac_aggr.st_blksize)
20075 rm -f conftest.
$ac_objext
20076 if { (ac_try
="$ac_compile"
20077 case "(($ac_try" in
20078 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20079 *) ac_try_echo=$ac_try;;
20081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20082 (eval "$ac_compile") 2>conftest.er1
20084 grep -v '^ *+' conftest.er1 >conftest.err
20086 cat conftest.err >&5
20087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20088 (exit $ac_status); } && {
20089 test -z "$ac_c_werror_flag" ||
20090 test ! -s conftest.err
20091 } && test -s conftest.$ac_objext; then
20092 ac_cv_member_struct_stat_st_blksize=yes
20094 echo "$as_me: failed program was:" >&5
20095 sed 's/^/| /' conftest.$ac_ext >&5
20097 cat >conftest.$ac_ext <<_ACEOF
20100 cat confdefs.h >>conftest.$ac_ext
20101 cat >>conftest.$ac_ext <<_ACEOF
20102 /* end confdefs.h. */
20103 $ac_includes_default
20107 static struct stat ac_aggr;
20108 if (sizeof ac_aggr.st_blksize)
20114 rm -f conftest.$ac_objext
20115 if { (ac_try="$ac_compile"
20116 case "(($ac_try" in
20117 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20118 *) ac_try_echo
=$ac_try;;
20120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20121 (eval "$ac_compile") 2>conftest.er1
20123 grep -v '^ *+' conftest.er1
>conftest.err
20125 cat conftest.err
>&5
20126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20127 (exit $ac_status); } && {
20128 test -z "$ac_c_werror_flag" ||
20129 test ! -s conftest.err
20130 } && test -s conftest.
$ac_objext; then
20131 ac_cv_member_struct_stat_st_blksize
=yes
20133 echo "$as_me: failed program was:" >&5
20134 sed 's/^/| /' conftest.
$ac_ext >&5
20136 ac_cv_member_struct_stat_st_blksize
=no
20139 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20142 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20144 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
20145 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
20146 if test $ac_cv_member_struct_stat_st_blksize = yes; then
20148 cat >>confdefs.h
<<_ACEOF
20149 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
20155 { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
20156 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
20157 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
20158 echo $ECHO_N "(cached) $ECHO_C" >&6
20160 cat >conftest.
$ac_ext <<_ACEOF
20163 cat confdefs.h
>>conftest.
$ac_ext
20164 cat >>conftest.
$ac_ext <<_ACEOF
20165 /* end confdefs.h. */
20166 $ac_includes_default
20170 static struct stat ac_aggr;
20171 if (ac_aggr.st_flags)
20177 rm -f conftest.
$ac_objext
20178 if { (ac_try
="$ac_compile"
20179 case "(($ac_try" in
20180 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20181 *) ac_try_echo=$ac_try;;
20183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20184 (eval "$ac_compile") 2>conftest.er1
20186 grep -v '^ *+' conftest.er1 >conftest.err
20188 cat conftest.err >&5
20189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190 (exit $ac_status); } && {
20191 test -z "$ac_c_werror_flag" ||
20192 test ! -s conftest.err
20193 } && test -s conftest.$ac_objext; then
20194 ac_cv_member_struct_stat_st_flags=yes
20196 echo "$as_me: failed program was:" >&5
20197 sed 's/^/| /' conftest.$ac_ext >&5
20199 cat >conftest.$ac_ext <<_ACEOF
20202 cat confdefs.h >>conftest.$ac_ext
20203 cat >>conftest.$ac_ext <<_ACEOF
20204 /* end confdefs.h. */
20205 $ac_includes_default
20209 static struct stat ac_aggr;
20210 if (sizeof ac_aggr.st_flags)
20216 rm -f conftest.$ac_objext
20217 if { (ac_try="$ac_compile"
20218 case "(($ac_try" in
20219 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20220 *) ac_try_echo
=$ac_try;;
20222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20223 (eval "$ac_compile") 2>conftest.er1
20225 grep -v '^ *+' conftest.er1
>conftest.err
20227 cat conftest.err
>&5
20228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229 (exit $ac_status); } && {
20230 test -z "$ac_c_werror_flag" ||
20231 test ! -s conftest.err
20232 } && test -s conftest.
$ac_objext; then
20233 ac_cv_member_struct_stat_st_flags
=yes
20235 echo "$as_me: failed program was:" >&5
20236 sed 's/^/| /' conftest.
$ac_ext >&5
20238 ac_cv_member_struct_stat_st_flags
=no
20241 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20244 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20246 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
20247 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
20248 if test $ac_cv_member_struct_stat_st_flags = yes; then
20250 cat >>confdefs.h
<<_ACEOF
20251 #define HAVE_STRUCT_STAT_ST_FLAGS 1
20257 { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
20258 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
20259 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
20260 echo $ECHO_N "(cached) $ECHO_C" >&6
20262 cat >conftest.
$ac_ext <<_ACEOF
20265 cat confdefs.h
>>conftest.
$ac_ext
20266 cat >>conftest.
$ac_ext <<_ACEOF
20267 /* end confdefs.h. */
20268 $ac_includes_default
20272 static struct stat ac_aggr;
20273 if (ac_aggr.st_gen)
20279 rm -f conftest.
$ac_objext
20280 if { (ac_try
="$ac_compile"
20281 case "(($ac_try" in
20282 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20283 *) ac_try_echo=$ac_try;;
20285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20286 (eval "$ac_compile") 2>conftest.er1
20288 grep -v '^ *+' conftest.er1 >conftest.err
20290 cat conftest.err >&5
20291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292 (exit $ac_status); } && {
20293 test -z "$ac_c_werror_flag" ||
20294 test ! -s conftest.err
20295 } && test -s conftest.$ac_objext; then
20296 ac_cv_member_struct_stat_st_gen=yes
20298 echo "$as_me: failed program was:" >&5
20299 sed 's/^/| /' conftest.$ac_ext >&5
20301 cat >conftest.$ac_ext <<_ACEOF
20304 cat confdefs.h >>conftest.$ac_ext
20305 cat >>conftest.$ac_ext <<_ACEOF
20306 /* end confdefs.h. */
20307 $ac_includes_default
20311 static struct stat ac_aggr;
20312 if (sizeof ac_aggr.st_gen)
20318 rm -f conftest.$ac_objext
20319 if { (ac_try="$ac_compile"
20320 case "(($ac_try" in
20321 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20322 *) ac_try_echo
=$ac_try;;
20324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20325 (eval "$ac_compile") 2>conftest.er1
20327 grep -v '^ *+' conftest.er1
>conftest.err
20329 cat conftest.err
>&5
20330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20331 (exit $ac_status); } && {
20332 test -z "$ac_c_werror_flag" ||
20333 test ! -s conftest.err
20334 } && test -s conftest.
$ac_objext; then
20335 ac_cv_member_struct_stat_st_gen
=yes
20337 echo "$as_me: failed program was:" >&5
20338 sed 's/^/| /' conftest.
$ac_ext >&5
20340 ac_cv_member_struct_stat_st_gen
=no
20343 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20346 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20348 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
20349 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
20350 if test $ac_cv_member_struct_stat_st_gen = yes; then
20352 cat >>confdefs.h
<<_ACEOF
20353 #define HAVE_STRUCT_STAT_ST_GEN 1
20359 { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
20360 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
20361 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
20362 echo $ECHO_N "(cached) $ECHO_C" >&6
20364 cat >conftest.
$ac_ext <<_ACEOF
20367 cat confdefs.h
>>conftest.
$ac_ext
20368 cat >>conftest.
$ac_ext <<_ACEOF
20369 /* end confdefs.h. */
20370 $ac_includes_default
20374 static struct stat ac_aggr;
20375 if (ac_aggr.st_birthtime)
20381 rm -f conftest.
$ac_objext
20382 if { (ac_try
="$ac_compile"
20383 case "(($ac_try" in
20384 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20385 *) ac_try_echo=$ac_try;;
20387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20388 (eval "$ac_compile") 2>conftest.er1
20390 grep -v '^ *+' conftest.er1 >conftest.err
20392 cat conftest.err >&5
20393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394 (exit $ac_status); } && {
20395 test -z "$ac_c_werror_flag" ||
20396 test ! -s conftest.err
20397 } && test -s conftest.$ac_objext; then
20398 ac_cv_member_struct_stat_st_birthtime=yes
20400 echo "$as_me: failed program was:" >&5
20401 sed 's/^/| /' conftest.$ac_ext >&5
20403 cat >conftest.$ac_ext <<_ACEOF
20406 cat confdefs.h >>conftest.$ac_ext
20407 cat >>conftest.$ac_ext <<_ACEOF
20408 /* end confdefs.h. */
20409 $ac_includes_default
20413 static struct stat ac_aggr;
20414 if (sizeof ac_aggr.st_birthtime)
20420 rm -f conftest.$ac_objext
20421 if { (ac_try="$ac_compile"
20422 case "(($ac_try" in
20423 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20424 *) ac_try_echo
=$ac_try;;
20426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20427 (eval "$ac_compile") 2>conftest.er1
20429 grep -v '^ *+' conftest.er1
>conftest.err
20431 cat conftest.err
>&5
20432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20433 (exit $ac_status); } && {
20434 test -z "$ac_c_werror_flag" ||
20435 test ! -s conftest.err
20436 } && test -s conftest.
$ac_objext; then
20437 ac_cv_member_struct_stat_st_birthtime
=yes
20439 echo "$as_me: failed program was:" >&5
20440 sed 's/^/| /' conftest.
$ac_ext >&5
20442 ac_cv_member_struct_stat_st_birthtime
=no
20445 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20448 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20450 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
20451 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
20452 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
20454 cat >>confdefs.h
<<_ACEOF
20455 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
20461 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20462 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
20463 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20464 echo $ECHO_N "(cached) $ECHO_C" >&6
20466 cat >conftest.
$ac_ext <<_ACEOF
20469 cat confdefs.h
>>conftest.
$ac_ext
20470 cat >>conftest.
$ac_ext <<_ACEOF
20471 /* end confdefs.h. */
20472 $ac_includes_default
20476 static struct stat ac_aggr;
20477 if (ac_aggr.st_blocks)
20483 rm -f conftest.
$ac_objext
20484 if { (ac_try
="$ac_compile"
20485 case "(($ac_try" in
20486 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20487 *) ac_try_echo=$ac_try;;
20489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20490 (eval "$ac_compile") 2>conftest.er1
20492 grep -v '^ *+' conftest.er1 >conftest.err
20494 cat conftest.err >&5
20495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20496 (exit $ac_status); } && {
20497 test -z "$ac_c_werror_flag" ||
20498 test ! -s conftest.err
20499 } && test -s conftest.$ac_objext; then
20500 ac_cv_member_struct_stat_st_blocks=yes
20502 echo "$as_me: failed program was:" >&5
20503 sed 's/^/| /' conftest.$ac_ext >&5
20505 cat >conftest.$ac_ext <<_ACEOF
20508 cat confdefs.h >>conftest.$ac_ext
20509 cat >>conftest.$ac_ext <<_ACEOF
20510 /* end confdefs.h. */
20511 $ac_includes_default
20515 static struct stat ac_aggr;
20516 if (sizeof ac_aggr.st_blocks)
20522 rm -f conftest.$ac_objext
20523 if { (ac_try="$ac_compile"
20524 case "(($ac_try" in
20525 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20526 *) ac_try_echo
=$ac_try;;
20528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20529 (eval "$ac_compile") 2>conftest.er1
20531 grep -v '^ *+' conftest.er1
>conftest.err
20533 cat conftest.err
>&5
20534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535 (exit $ac_status); } && {
20536 test -z "$ac_c_werror_flag" ||
20537 test ! -s conftest.err
20538 } && test -s conftest.
$ac_objext; then
20539 ac_cv_member_struct_stat_st_blocks
=yes
20541 echo "$as_me: failed program was:" >&5
20542 sed 's/^/| /' conftest.
$ac_ext >&5
20544 ac_cv_member_struct_stat_st_blocks
=no
20547 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20550 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20552 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20553 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
20554 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20556 cat >>confdefs.h
<<_ACEOF
20557 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20561 cat >>confdefs.h
<<\_ACEOF
20562 #define HAVE_ST_BLOCKS 1
20566 case " $LIBOBJS " in
20567 *" fileblocks.$ac_objext "* ) ;;
20568 *) LIBOBJS
="$LIBOBJS fileblocks.$ac_objext"
20576 { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
20577 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
20578 if test "${ac_cv_header_time_altzone+set}" = set; then
20579 echo $ECHO_N "(cached) $ECHO_C" >&6
20581 cat >conftest.
$ac_ext <<_ACEOF
20584 cat confdefs.h
>>conftest.
$ac_ext
20585 cat >>conftest.
$ac_ext <<_ACEOF
20586 /* end confdefs.h. */
20596 rm -f conftest.
$ac_objext
20597 if { (ac_try
="$ac_compile"
20598 case "(($ac_try" in
20599 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20600 *) ac_try_echo=$ac_try;;
20602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20603 (eval "$ac_compile") 2>conftest.er1
20605 grep -v '^ *+' conftest.er1 >conftest.err
20607 cat conftest.err >&5
20608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20609 (exit $ac_status); } && {
20610 test -z "$ac_c_werror_flag" ||
20611 test ! -s conftest.err
20612 } && test -s conftest.$ac_objext; then
20613 ac_cv_header_time_altzone=yes
20615 echo "$as_me: failed program was:" >&5
20616 sed 's/^/| /' conftest.$ac_ext >&5
20618 ac_cv_header_time_altzone=no
20621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20624 { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
20625 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
20626 if test $ac_cv_header_time_altzone = yes; then
20628 cat >>confdefs.h <<\_ACEOF
20629 #define HAVE_ALTZONE 1
20635 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
20636 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
20637 cat >conftest.$ac_ext <<_ACEOF
20640 cat confdefs.h >>conftest.$ac_ext
20641 cat >>conftest.$ac_ext <<_ACEOF
20642 /* end confdefs.h. */
20644 #include <sys/types.h>
20645 #include <sys/select.h>
20646 #include <sys/time.h>
20656 rm -f conftest.$ac_objext
20657 if { (ac_try="$ac_compile"
20658 case "(($ac_try" in
20659 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20660 *) ac_try_echo
=$ac_try;;
20662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20663 (eval "$ac_compile") 2>conftest.er1
20665 grep -v '^ *+' conftest.er1
>conftest.err
20667 cat conftest.err
>&5
20668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669 (exit $ac_status); } && {
20670 test -z "$ac_c_werror_flag" ||
20671 test ! -s conftest.err
20672 } && test -s conftest.
$ac_objext; then
20675 cat >>confdefs.h
<<\_ACEOF
20676 #define SYS_SELECT_WITH_SYS_TIME 1
20682 echo "$as_me: failed program was:" >&5
20683 sed 's/^/| /' conftest.
$ac_ext >&5
20688 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20689 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
20690 echo "${ECHO_T}$was_it_defined" >&6; }
20692 { echo "$as_me:$LINENO: checking for addrinfo" >&5
20693 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
20694 if test "${ac_cv_struct_addrinfo+set}" = set; then
20695 echo $ECHO_N "(cached) $ECHO_C" >&6
20697 cat >conftest.
$ac_ext <<_ACEOF
20700 cat confdefs.h
>>conftest.
$ac_ext
20701 cat >>conftest.
$ac_ext <<_ACEOF
20702 /* end confdefs.h. */
20704 # include <netdb.h>
20713 rm -f conftest.
$ac_objext
20714 if { (ac_try
="$ac_compile"
20715 case "(($ac_try" in
20716 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20717 *) ac_try_echo=$ac_try;;
20719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20720 (eval "$ac_compile") 2>conftest.er1
20722 grep -v '^ *+' conftest.er1 >conftest.err
20724 cat conftest.err >&5
20725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20726 (exit $ac_status); } && {
20727 test -z "$ac_c_werror_flag" ||
20728 test ! -s conftest.err
20729 } && test -s conftest.$ac_objext; then
20730 ac_cv_struct_addrinfo=yes
20732 echo "$as_me: failed program was:" >&5
20733 sed 's/^/| /' conftest.$ac_ext >&5
20735 ac_cv_struct_addrinfo=no
20738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20741 { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
20742 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
20743 if test $ac_cv_struct_addrinfo = yes; then
20745 cat >>confdefs.h <<\_ACEOF
20746 #define HAVE_ADDRINFO 1
20751 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
20752 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
20753 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
20754 echo $ECHO_N "(cached) $ECHO_C" >&6
20756 cat >conftest.$ac_ext <<_ACEOF
20759 cat confdefs.h >>conftest.$ac_ext
20760 cat >>conftest.$ac_ext <<_ACEOF
20761 /* end confdefs.h. */
20763 # include <sys/types.h>
20764 # include <sys/socket.h>
20768 struct sockaddr_storage s
20773 rm -f conftest.$ac_objext
20774 if { (ac_try="$ac_compile"
20775 case "(($ac_try" in
20776 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20777 *) ac_try_echo
=$ac_try;;
20779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20780 (eval "$ac_compile") 2>conftest.er1
20782 grep -v '^ *+' conftest.er1
>conftest.err
20784 cat conftest.err
>&5
20785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20786 (exit $ac_status); } && {
20787 test -z "$ac_c_werror_flag" ||
20788 test ! -s conftest.err
20789 } && test -s conftest.
$ac_objext; then
20790 ac_cv_struct_sockaddr_storage
=yes
20792 echo "$as_me: failed program was:" >&5
20793 sed 's/^/| /' conftest.
$ac_ext >&5
20795 ac_cv_struct_sockaddr_storage
=no
20798 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20801 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
20802 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
20803 if test $ac_cv_struct_sockaddr_storage = yes; then
20805 cat >>confdefs.h
<<\_ACEOF
20806 #define HAVE_SOCKADDR_STORAGE 1
20811 # checks for compiler characteristics
20814 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
20815 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
20816 if test "${ac_cv_c_char_unsigned+set}" = set; then
20817 echo $ECHO_N "(cached) $ECHO_C" >&6
20819 cat >conftest.
$ac_ext <<_ACEOF
20822 cat confdefs.h
>>conftest.
$ac_ext
20823 cat >>conftest.
$ac_ext <<_ACEOF
20824 /* end confdefs.h. */
20825 $ac_includes_default
20829 static int test_array [1 - 2 * !(((char) -1) < 0)];
20836 rm -f conftest.
$ac_objext
20837 if { (ac_try
="$ac_compile"
20838 case "(($ac_try" in
20839 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20840 *) ac_try_echo=$ac_try;;
20842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20843 (eval "$ac_compile") 2>conftest.er1
20845 grep -v '^ *+' conftest.er1 >conftest.err
20847 cat conftest.err >&5
20848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849 (exit $ac_status); } && {
20850 test -z "$ac_c_werror_flag" ||
20851 test ! -s conftest.err
20852 } && test -s conftest.$ac_objext; then
20853 ac_cv_c_char_unsigned=no
20855 echo "$as_me: failed program was:" >&5
20856 sed 's/^/| /' conftest.$ac_ext >&5
20858 ac_cv_c_char_unsigned=yes
20861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20863 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
20864 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
20865 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
20866 cat >>confdefs.h <<\_ACEOF
20867 #define __CHAR_UNSIGNED__ 1
20872 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20873 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20874 if test "${ac_cv_c_const+set}" = set; then
20875 echo $ECHO_N "(cached) $ECHO_C" >&6
20877 cat >conftest.$ac_ext <<_ACEOF
20880 cat confdefs.h >>conftest.$ac_ext
20881 cat >>conftest.$ac_ext <<_ACEOF
20882 /* end confdefs.h. */
20887 /* FIXME: Include the comments suggested by Paul. */
20888 #ifndef __cplusplus
20889 /* Ultrix mips cc rejects this. */
20890 typedef int charset[2];
20892 /* SunOS 4.1.1 cc rejects this. */
20893 char const *const *pcpcc;
20895 /* NEC SVR4.0.2 mips cc rejects this. */
20896 struct point {int x, y;};
20897 static struct point const zero = {0,0};
20898 /* AIX XL C 1.02.0.0 rejects this.
20899 It does not let you subtract one const X* pointer from another in
20900 an arm of an if-expression whose if-part is not a constant
20902 const char *g = "string";
20903 pcpcc = &g + (g ? g-g : 0);
20904 /* HPUX 7.0 cc rejects these. */
20906 ppc = (char**) pcpcc;
20907 pcpcc = (char const *const *) ppc;
20908 { /* SCO 3.2v4 cc rejects this. */
20910 char const *s = 0 ? (char *) 0 : (char const *) 0;
20915 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20916 int x[] = {25, 17};
20917 const int *foo = &x[0];
20920 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20921 typedef const int *iptr;
20925 { /* AIX XL C 1.02.0.0 rejects this saying
20926 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20927 struct s { int j; const int *ap[3]; };
20928 struct s *b; b->j = 5;
20930 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20931 const int foo = 10;
20932 if (!foo) return 0;
20934 return !cs[0] && !zero.x;
20941 rm -f conftest.$ac_objext
20942 if { (ac_try="$ac_compile"
20943 case "(($ac_try" in
20944 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20945 *) ac_try_echo
=$ac_try;;
20947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20948 (eval "$ac_compile") 2>conftest.er1
20950 grep -v '^ *+' conftest.er1
>conftest.err
20952 cat conftest.err
>&5
20953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20954 (exit $ac_status); } && {
20955 test -z "$ac_c_werror_flag" ||
20956 test ! -s conftest.err
20957 } && test -s conftest.
$ac_objext; then
20960 echo "$as_me: failed program was:" >&5
20961 sed 's/^/| /' conftest.
$ac_ext >&5
20966 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20968 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20969 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20970 if test $ac_cv_c_const = no
; then
20972 cat >>confdefs.h
<<\_ACEOF
20980 { echo "$as_me:$LINENO: checking for working volatile" >&5
20981 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
20982 cat >conftest.
$ac_ext <<_ACEOF
20985 cat confdefs.h
>>conftest.
$ac_ext
20986 cat >>conftest.
$ac_ext <<_ACEOF
20987 /* end confdefs.h. */
20992 volatile int x; x = 0;
20997 rm -f conftest.
$ac_objext
20998 if { (ac_try
="$ac_compile"
20999 case "(($ac_try" in
21000 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21001 *) ac_try_echo=$ac_try;;
21003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21004 (eval "$ac_compile") 2>conftest.er1
21006 grep -v '^ *+' conftest.er1 >conftest.err
21008 cat conftest.err >&5
21009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21010 (exit $ac_status); } && {
21011 test -z "$ac_c_werror_flag" ||
21012 test ! -s conftest.err
21013 } && test -s conftest.$ac_objext; then
21016 echo "$as_me: failed program was:" >&5
21017 sed 's/^/| /' conftest.$ac_ext >&5
21020 cat >>confdefs.h <<\_ACEOF
21027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21028 { echo "$as_me:$LINENO: result: $works" >&5
21029 echo "${ECHO_T}$works" >&6; }
21032 { echo "$as_me:$LINENO: checking for working signed char" >&5
21033 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
21034 cat >conftest.$ac_ext <<_ACEOF
21037 cat confdefs.h >>conftest.$ac_ext
21038 cat >>conftest.$ac_ext <<_ACEOF
21039 /* end confdefs.h. */
21049 rm -f conftest.$ac_objext
21050 if { (ac_try="$ac_compile"
21051 case "(($ac_try" in
21052 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21053 *) ac_try_echo
=$ac_try;;
21055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21056 (eval "$ac_compile") 2>conftest.er1
21058 grep -v '^ *+' conftest.er1
>conftest.err
21060 cat conftest.err
>&5
21061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21062 (exit $ac_status); } && {
21063 test -z "$ac_c_werror_flag" ||
21064 test ! -s conftest.err
21065 } && test -s conftest.
$ac_objext; then
21068 echo "$as_me: failed program was:" >&5
21069 sed 's/^/| /' conftest.
$ac_ext >&5
21072 cat >>confdefs.h
<<\_ACEOF
21079 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21080 { echo "$as_me:$LINENO: result: $works" >&5
21081 echo "${ECHO_T}$works" >&6; }
21084 { echo "$as_me:$LINENO: checking for prototypes" >&5
21085 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
21086 cat >conftest.
$ac_ext <<_ACEOF
21089 cat confdefs.h
>>conftest.
$ac_ext
21090 cat >>conftest.
$ac_ext <<_ACEOF
21091 /* end confdefs.h. */
21092 int foo(int x) { return 0; }
21101 rm -f conftest.
$ac_objext
21102 if { (ac_try
="$ac_compile"
21103 case "(($ac_try" in
21104 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21105 *) ac_try_echo=$ac_try;;
21107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21108 (eval "$ac_compile") 2>conftest.er1
21110 grep -v '^ *+' conftest.er1 >conftest.err
21112 cat conftest.err >&5
21113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114 (exit $ac_status); } && {
21115 test -z "$ac_c_werror_flag" ||
21116 test ! -s conftest.err
21117 } && test -s conftest.$ac_objext; then
21120 cat >>confdefs.h <<\_ACEOF
21121 #define HAVE_PROTOTYPES 1
21124 have_prototypes=yes
21127 echo "$as_me: failed program was:" >&5
21128 sed 's/^/| /' conftest.$ac_ext >&5
21133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21134 { echo "$as_me:$LINENO: result: $have_prototypes" >&5
21135 echo "${ECHO_T}$have_prototypes" >&6; }
21138 { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
21139 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
21140 cat >conftest.$ac_ext <<_ACEOF
21143 cat confdefs.h >>conftest.$ac_ext
21144 cat >>conftest.$ac_ext <<_ACEOF
21145 /* end confdefs.h. */
21147 #include <stdarg.h>
21148 int foo(int x, ...) {
21152 va_arg(va, char *);
21153 va_arg(va, double);
21160 return foo(10, "", 3.14);
21165 rm -f conftest.$ac_objext
21166 if { (ac_try="$ac_compile"
21167 case "(($ac_try" in
21168 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21169 *) ac_try_echo
=$ac_try;;
21171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21172 (eval "$ac_compile") 2>conftest.er1
21174 grep -v '^ *+' conftest.er1
>conftest.err
21176 cat conftest.err
>&5
21177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21178 (exit $ac_status); } && {
21179 test -z "$ac_c_werror_flag" ||
21180 test ! -s conftest.err
21181 } && test -s conftest.
$ac_objext; then
21184 cat >>confdefs.h
<<\_ACEOF
21185 #define HAVE_STDARG_PROTOTYPES 1
21191 echo "$as_me: failed program was:" >&5
21192 sed 's/^/| /' conftest.
$ac_ext >&5
21197 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21198 { echo "$as_me:$LINENO: result: $works" >&5
21199 echo "${ECHO_T}$works" >&6; }
21201 # check for socketpair
21202 { echo "$as_me:$LINENO: checking for socketpair" >&5
21203 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
21204 cat >conftest.
$ac_ext <<_ACEOF
21207 cat confdefs.h
>>conftest.
$ac_ext
21208 cat >>conftest.
$ac_ext <<_ACEOF
21209 /* end confdefs.h. */
21211 #include <sys/types.h>
21212 #include <sys/socket.h>
21222 rm -f conftest.
$ac_objext
21223 if { (ac_try
="$ac_compile"
21224 case "(($ac_try" in
21225 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21226 *) ac_try_echo=$ac_try;;
21228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21229 (eval "$ac_compile") 2>conftest.er1
21231 grep -v '^ *+' conftest.er1 >conftest.err
21233 cat conftest.err >&5
21234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21235 (exit $ac_status); } && {
21236 test -z "$ac_c_werror_flag" ||
21237 test ! -s conftest.err
21238 } && test -s conftest.$ac_objext; then
21240 cat >>confdefs.h <<\_ACEOF
21241 #define HAVE_SOCKETPAIR 1
21244 { echo "$as_me:$LINENO: result: yes" >&5
21245 echo "${ECHO_T}yes" >&6; }
21247 echo "$as_me: failed program was:" >&5
21248 sed 's/^/| /' conftest.$ac_ext >&5
21250 { echo "$as_me:$LINENO: result: no" >&5
21251 echo "${ECHO_T}no" >&6; }
21255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21257 # check if sockaddr has sa_len member
21258 { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
21259 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; }
21260 cat >conftest.$ac_ext <<_ACEOF
21263 cat confdefs.h >>conftest.$ac_ext
21264 cat >>conftest.$ac_ext <<_ACEOF
21265 /* end confdefs.h. */
21266 #include <sys/types.h>
21267 #include <sys/socket.h>
21277 rm -f conftest.$ac_objext
21278 if { (ac_try="$ac_compile"
21279 case "(($ac_try" in
21280 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21281 *) ac_try_echo
=$ac_try;;
21283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21284 (eval "$ac_compile") 2>conftest.er1
21286 grep -v '^ *+' conftest.er1
>conftest.err
21288 cat conftest.err
>&5
21289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21290 (exit $ac_status); } && {
21291 test -z "$ac_c_werror_flag" ||
21292 test ! -s conftest.err
21293 } && test -s conftest.
$ac_objext; then
21294 { echo "$as_me:$LINENO: result: yes" >&5
21295 echo "${ECHO_T}yes" >&6; }
21297 cat >>confdefs.h
<<\_ACEOF
21298 #define HAVE_SOCKADDR_SA_LEN 1
21302 echo "$as_me: failed program was:" >&5
21303 sed 's/^/| /' conftest.
$ac_ext >&5
21305 { echo "$as_me:$LINENO: result: no" >&5
21306 echo "${ECHO_T}no" >&6; }
21309 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21311 va_list_is_array
=no
21312 { echo "$as_me:$LINENO: checking whether va_list is an array" >&5
21313 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
21314 cat >conftest.
$ac_ext <<_ACEOF
21317 cat confdefs.h
>>conftest.
$ac_ext
21318 cat >>conftest.
$ac_ext <<_ACEOF
21319 /* end confdefs.h. */
21321 #ifdef HAVE_STDARG_PROTOTYPES
21322 #include <stdarg.h>
21324 #include <varargs.h>
21330 va_list list1, list2; list1 = list2;
21335 rm -f conftest.
$ac_objext
21336 if { (ac_try
="$ac_compile"
21337 case "(($ac_try" in
21338 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21339 *) ac_try_echo=$ac_try;;
21341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21342 (eval "$ac_compile") 2>conftest.er1
21344 grep -v '^ *+' conftest.er1 >conftest.err
21346 cat conftest.err >&5
21347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21348 (exit $ac_status); } && {
21349 test -z "$ac_c_werror_flag" ||
21350 test ! -s conftest.err
21351 } && test -s conftest.$ac_objext; then
21354 echo "$as_me: failed program was:" >&5
21355 sed 's/^/| /' conftest.$ac_ext >&5
21359 cat >>confdefs.h <<\_ACEOF
21360 #define VA_LIST_IS_ARRAY 1
21363 va_list_is_array=yes
21367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21368 { echo "$as_me:$LINENO: result: $va_list_is_array" >&5
21369 echo "${ECHO_T}$va_list_is_array" >&6; }
21371 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
21375 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
21376 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
21377 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
21378 echo $ECHO_N "(cached) $ECHO_C" >&6
21380 cat >conftest.$ac_ext <<_ACEOF
21383 cat confdefs.h >>conftest.$ac_ext
21384 cat >>conftest.$ac_ext <<_ACEOF
21385 /* end confdefs.h. */
21386 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
21387 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21388 #define gethostbyname_r innocuous_gethostbyname_r
21390 /* System header to define __stub macros and hopefully few prototypes,
21391 which can conflict with char gethostbyname_r (); below.
21392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21393 <limits.h> exists even on freestanding compilers. */
21396 # include <limits.h>
21398 # include <assert.h>
21401 #undef gethostbyname_r
21403 /* Override any GCC internal prototype to avoid an error.
21404 Use char because int might match the return type of a GCC
21405 builtin and then its argument prototype would still apply. */
21409 char gethostbyname_r ();
21410 /* The GNU C library defines this for functions which it implements
21411 to always fail with ENOSYS. Some functions are actually named
21412 something starting with __ and the normal name is an alias. */
21413 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
21420 return gethostbyname_r ();
21425 rm -f conftest.$ac_objext conftest$ac_exeext
21426 if { (ac_try="$ac_link"
21427 case "(($ac_try" in
21428 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21429 *) ac_try_echo
=$ac_try;;
21431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21432 (eval "$ac_link") 2>conftest.er1
21434 grep -v '^ *+' conftest.er1
>conftest.err
21436 cat conftest.err
>&5
21437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21438 (exit $ac_status); } && {
21439 test -z "$ac_c_werror_flag" ||
21440 test ! -s conftest.err
21441 } && test -s conftest
$ac_exeext &&
21442 $as_test_x conftest
$ac_exeext; then
21443 ac_cv_func_gethostbyname_r
=yes
21445 echo "$as_me: failed program was:" >&5
21446 sed 's/^/| /' conftest.
$ac_ext >&5
21448 ac_cv_func_gethostbyname_r
=no
21451 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21452 conftest
$ac_exeext conftest.
$ac_ext
21454 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
21455 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
21456 if test $ac_cv_func_gethostbyname_r = yes; then
21458 cat >>confdefs.h
<<\_ACEOF
21459 #define HAVE_GETHOSTBYNAME_R 1
21462 { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
21463 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
21465 CFLAGS
="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
21466 cat >conftest.
$ac_ext <<_ACEOF
21469 cat confdefs.h
>>conftest.
$ac_ext
21470 cat >>conftest.
$ac_ext <<_ACEOF
21471 /* end confdefs.h. */
21473 # include <netdb.h>
21480 struct hostent *he, *res;
21485 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
21491 rm -f conftest.
$ac_objext
21492 if { (ac_try
="$ac_compile"
21493 case "(($ac_try" in
21494 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21495 *) ac_try_echo=$ac_try;;
21497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21498 (eval "$ac_compile") 2>conftest.er1
21500 grep -v '^ *+' conftest.er1 >conftest.err
21502 cat conftest.err >&5
21503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21504 (exit $ac_status); } && {
21505 test -z "$ac_c_werror_flag" ||
21506 test ! -s conftest.err
21507 } && test -s conftest.$ac_objext; then
21509 cat >>confdefs.h <<\_ACEOF
21510 #define HAVE_GETHOSTBYNAME_R 1
21514 cat >>confdefs.h <<\_ACEOF
21515 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
21518 { echo "$as_me:$LINENO: result: yes" >&5
21519 echo "${ECHO_T}yes" >&6; }
21522 echo "$as_me: failed program was:" >&5
21523 sed 's/^/| /' conftest.$ac_ext >&5
21526 { echo "$as_me:$LINENO: result: no" >&5
21527 echo "${ECHO_T}no" >&6; }
21528 { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
21529 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
21530 cat >conftest.$ac_ext <<_ACEOF
21533 cat confdefs.h >>conftest.$ac_ext
21534 cat >>conftest.$ac_ext <<_ACEOF
21535 /* end confdefs.h. */
21537 # include <netdb.h>
21544 struct hostent *he;
21549 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
21555 rm -f conftest.$ac_objext
21556 if { (ac_try="$ac_compile"
21557 case "(($ac_try" in
21558 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21559 *) ac_try_echo
=$ac_try;;
21561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21562 (eval "$ac_compile") 2>conftest.er1
21564 grep -v '^ *+' conftest.er1
>conftest.err
21566 cat conftest.err
>&5
21567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21568 (exit $ac_status); } && {
21569 test -z "$ac_c_werror_flag" ||
21570 test ! -s conftest.err
21571 } && test -s conftest.
$ac_objext; then
21573 cat >>confdefs.h
<<\_ACEOF
21574 #define HAVE_GETHOSTBYNAME_R 1
21578 cat >>confdefs.h
<<\_ACEOF
21579 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
21582 { echo "$as_me:$LINENO: result: yes" >&5
21583 echo "${ECHO_T}yes" >&6; }
21586 echo "$as_me: failed program was:" >&5
21587 sed 's/^/| /' conftest.
$ac_ext >&5
21590 { echo "$as_me:$LINENO: result: no" >&5
21591 echo "${ECHO_T}no" >&6; }
21592 { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
21593 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
21594 cat >conftest.
$ac_ext <<_ACEOF
21597 cat confdefs.h
>>conftest.
$ac_ext
21598 cat >>conftest.
$ac_ext <<_ACEOF
21599 /* end confdefs.h. */
21601 # include <netdb.h>
21608 struct hostent *he;
21609 struct hostent_data data;
21611 (void) gethostbyname_r(name, he, &data);
21617 rm -f conftest.
$ac_objext
21618 if { (ac_try
="$ac_compile"
21619 case "(($ac_try" in
21620 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21621 *) ac_try_echo=$ac_try;;
21623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21624 (eval "$ac_compile") 2>conftest.er1
21626 grep -v '^ *+' conftest.er1 >conftest.err
21628 cat conftest.err >&5
21629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21630 (exit $ac_status); } && {
21631 test -z "$ac_c_werror_flag" ||
21632 test ! -s conftest.err
21633 } && test -s conftest.$ac_objext; then
21635 cat >>confdefs.h <<\_ACEOF
21636 #define HAVE_GETHOSTBYNAME_R 1
21640 cat >>confdefs.h <<\_ACEOF
21641 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
21644 { echo "$as_me:$LINENO: result: yes" >&5
21645 echo "${ECHO_T}yes" >&6; }
21648 echo "$as_me: failed program was:" >&5
21649 sed 's/^/| /' conftest.$ac_ext >&5
21652 { echo "$as_me:$LINENO: result: no" >&5
21653 echo "${ECHO_T}no" >&6; }
21657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21671 for ac_func in gethostbyname
21673 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
21674 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21675 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21676 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21677 echo $ECHO_N "(cached) $ECHO_C" >&6
21679 cat >conftest.$ac_ext <<_ACEOF
21682 cat confdefs.h >>conftest.$ac_ext
21683 cat >>conftest.$ac_ext <<_ACEOF
21684 /* end confdefs.h. */
21685 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21687 #define $ac_func innocuous_$ac_func
21689 /* System header to define __stub macros and hopefully few prototypes,
21690 which can conflict with char $ac_func (); below.
21691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21692 <limits.h> exists even on freestanding compilers. */
21695 # include <limits.h>
21697 # include <assert.h>
21702 /* Override any GCC internal prototype to avoid an error.
21703 Use char because int might match the return type of a GCC
21704 builtin and then its argument prototype would still apply. */
21709 /* The GNU C library defines this for functions which it implements
21710 to always fail with ENOSYS. Some functions are actually named
21711 something starting with __ and the normal name is an alias. */
21712 #if defined __stub_$ac_func || defined __stub___$ac_func
21719 return $ac_func ();
21724 rm -f conftest.$ac_objext conftest$ac_exeext
21725 if { (ac_try="$ac_link"
21726 case "(($ac_try" in
21727 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21728 *) ac_try_echo
=$ac_try;;
21730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21731 (eval "$ac_link") 2>conftest.er1
21733 grep -v '^ *+' conftest.er1
>conftest.err
21735 cat conftest.err
>&5
21736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21737 (exit $ac_status); } && {
21738 test -z "$ac_c_werror_flag" ||
21739 test ! -s conftest.err
21740 } && test -s conftest
$ac_exeext &&
21741 $as_test_x conftest
$ac_exeext; then
21742 eval "$as_ac_var=yes"
21744 echo "$as_me: failed program was:" >&5
21745 sed 's/^/| /' conftest.
$ac_ext >&5
21747 eval "$as_ac_var=no"
21750 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21751 conftest
$ac_exeext conftest.
$ac_ext
21753 ac_res
=`eval echo '${'$as_ac_var'}'`
21754 { echo "$as_me:$LINENO: result: $ac_res" >&5
21755 echo "${ECHO_T}$ac_res" >&6; }
21756 if test `eval echo '${'$as_ac_var'}'` = yes; then
21757 cat >>confdefs.h
<<_ACEOF
21758 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21773 # checks for system services
21776 # Linux requires this for correct f.p. operations
21777 { echo "$as_me:$LINENO: checking for __fpu_control" >&5
21778 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
21779 if test "${ac_cv_func___fpu_control+set}" = set; then
21780 echo $ECHO_N "(cached) $ECHO_C" >&6
21782 cat >conftest.
$ac_ext <<_ACEOF
21785 cat confdefs.h
>>conftest.
$ac_ext
21786 cat >>conftest.
$ac_ext <<_ACEOF
21787 /* end confdefs.h. */
21788 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
21789 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21790 #define __fpu_control innocuous___fpu_control
21792 /* System header to define __stub macros and hopefully few prototypes,
21793 which can conflict with char __fpu_control (); below.
21794 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21795 <limits.h> exists even on freestanding compilers. */
21798 # include <limits.h>
21800 # include <assert.h>
21803 #undef __fpu_control
21805 /* Override any GCC internal prototype to avoid an error.
21806 Use char because int might match the return type of a GCC
21807 builtin and then its argument prototype would still apply. */
21811 char __fpu_control ();
21812 /* The GNU C library defines this for functions which it implements
21813 to always fail with ENOSYS. Some functions are actually named
21814 something starting with __ and the normal name is an alias. */
21815 #if defined __stub___fpu_control || defined __stub_____fpu_control
21822 return __fpu_control ();
21827 rm -f conftest.
$ac_objext conftest
$ac_exeext
21828 if { (ac_try
="$ac_link"
21829 case "(($ac_try" in
21830 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21831 *) ac_try_echo=$ac_try;;
21833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21834 (eval "$ac_link") 2>conftest.er1
21836 grep -v '^ *+' conftest.er1 >conftest.err
21838 cat conftest.err >&5
21839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21840 (exit $ac_status); } && {
21841 test -z "$ac_c_werror_flag" ||
21842 test ! -s conftest.err
21843 } && test -s conftest$ac_exeext &&
21844 $as_test_x conftest$ac_exeext; then
21845 ac_cv_func___fpu_control=yes
21847 echo "$as_me: failed program was:" >&5
21848 sed 's/^/| /' conftest.$ac_ext >&5
21850 ac_cv_func___fpu_control=no
21853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21854 conftest$ac_exeext conftest.$ac_ext
21856 { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
21857 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
21858 if test $ac_cv_func___fpu_control = yes; then
21862 { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
21863 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
21864 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
21865 echo $ECHO_N "(cached) $ECHO_C" >&6
21867 ac_check_lib_save_LIBS=$LIBS
21868 LIBS="-lieee $LIBS"
21869 cat >conftest.$ac_ext <<_ACEOF
21872 cat confdefs.h >>conftest.$ac_ext
21873 cat >>conftest.$ac_ext <<_ACEOF
21874 /* end confdefs.h. */
21876 /* Override any GCC internal prototype to avoid an error.
21877 Use char because int might match the return type of a GCC
21878 builtin and then its argument prototype would still apply. */
21882 char __fpu_control ();
21886 return __fpu_control ();
21891 rm -f conftest.$ac_objext conftest$ac_exeext
21892 if { (ac_try="$ac_link"
21893 case "(($ac_try" in
21894 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21895 *) ac_try_echo
=$ac_try;;
21897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21898 (eval "$ac_link") 2>conftest.er1
21900 grep -v '^ *+' conftest.er1
>conftest.err
21902 cat conftest.err
>&5
21903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21904 (exit $ac_status); } && {
21905 test -z "$ac_c_werror_flag" ||
21906 test ! -s conftest.err
21907 } && test -s conftest
$ac_exeext &&
21908 $as_test_x conftest
$ac_exeext; then
21909 ac_cv_lib_ieee___fpu_control
=yes
21911 echo "$as_me: failed program was:" >&5
21912 sed 's/^/| /' conftest.
$ac_ext >&5
21914 ac_cv_lib_ieee___fpu_control
=no
21917 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21918 conftest
$ac_exeext conftest.
$ac_ext
21919 LIBS
=$ac_check_lib_save_LIBS
21921 { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
21922 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
21923 if test $ac_cv_lib_ieee___fpu_control = yes; then
21924 cat >>confdefs.h
<<_ACEOF
21925 #define HAVE_LIBIEEE 1
21928 LIBS
="-lieee $LIBS"
21936 # Check for --with-fpectl
21937 { echo "$as_me:$LINENO: checking for --with-fpectl" >&5
21938 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
21940 # Check whether --with-fpectl was given.
21941 if test "${with_fpectl+set}" = set; then
21942 withval
=$with_fpectl;
21943 if test "$withval" != no
21946 cat >>confdefs.h
<<\_ACEOF
21947 #define WANT_SIGFPE_HANDLER 1
21950 { echo "$as_me:$LINENO: result: yes" >&5
21951 echo "${ECHO_T}yes" >&6; }
21952 else { echo "$as_me:$LINENO: result: no" >&5
21953 echo "${ECHO_T}no" >&6; }
21956 { echo "$as_me:$LINENO: result: no" >&5
21957 echo "${ECHO_T}no" >&6; }
21961 # check for --with-libm=...
21963 case $ac_sys_system in
21967 { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
21968 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
21970 # Check whether --with-libm was given.
21971 if test "${with_libm+set}" = set; then
21972 withval
=$with_libm;
21973 if test "$withval" = no
21975 { echo "$as_me:$LINENO: result: force LIBM empty" >&5
21976 echo "${ECHO_T}force LIBM empty" >&6; }
21977 elif test "$withval" != yes
21979 { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
21980 echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
21981 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
21982 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
21983 { (exit 1); exit 1; }; }
21986 { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
21987 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
21991 # check for --with-libc=...
21993 { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
21994 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
21996 # Check whether --with-libc was given.
21997 if test "${with_libc+set}" = set; then
21998 withval
=$with_libc;
21999 if test "$withval" = no
22001 { echo "$as_me:$LINENO: result: force LIBC empty" >&5
22002 echo "${ECHO_T}force LIBC empty" >&6; }
22003 elif test "$withval" != yes
22005 { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
22006 echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
22007 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
22008 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
22009 { (exit 1); exit 1; }; }
22012 { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
22013 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
22017 # **************************************************
22018 # * Check for various properties of floating point *
22019 # **************************************************
22021 { echo "$as_me:$LINENO: checking whether C doubles are little-endian IEEE 754 binary64" >&5
22022 echo $ECHO_N "checking whether C doubles are little-endian IEEE 754 binary64... $ECHO_C" >&6; }
22023 if test "${ac_cv_little_endian_double+set}" = set; then
22024 echo $ECHO_N "(cached) $ECHO_C" >&6
22027 if test "$cross_compiling" = yes; then
22028 ac_cv_little_endian_double
=no
22030 cat >conftest.
$ac_ext <<_ACEOF
22033 cat confdefs.h
>>conftest.
$ac_ext
22034 cat >>conftest.
$ac_ext <<_ACEOF
22035 /* end confdefs.h. */
22037 #include <string.h>
22039 double x = 9006104071832581.0;
22040 if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0)
22047 rm -f conftest
$ac_exeext
22048 if { (ac_try
="$ac_link"
22049 case "(($ac_try" in
22050 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22051 *) ac_try_echo=$ac_try;;
22053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22054 (eval "$ac_link") 2>&5
22056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22057 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22058 { (case "(($ac_try" in
22059 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22060 *) ac_try_echo
=$ac_try;;
22062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22063 (eval "$ac_try") 2>&5
22065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22066 (exit $ac_status); }; }; then
22067 ac_cv_little_endian_double
=yes
22069 echo "$as_me: program exited with status $ac_status" >&5
22070 echo "$as_me: failed program was:" >&5
22071 sed 's/^/| /' conftest.
$ac_ext >&5
22073 ( exit $ac_status )
22074 ac_cv_little_endian_double
=no
22076 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22082 { echo "$as_me:$LINENO: result: $ac_cv_little_endian_double" >&5
22083 echo "${ECHO_T}$ac_cv_little_endian_double" >&6; }
22084 if test "$ac_cv_little_endian_double" = yes
22087 cat >>confdefs.h
<<\_ACEOF
22088 #define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1
22093 { echo "$as_me:$LINENO: checking whether C doubles are big-endian IEEE 754 binary64" >&5
22094 echo $ECHO_N "checking whether C doubles are big-endian IEEE 754 binary64... $ECHO_C" >&6; }
22095 if test "${ac_cv_big_endian_double+set}" = set; then
22096 echo $ECHO_N "(cached) $ECHO_C" >&6
22099 if test "$cross_compiling" = yes; then
22100 ac_cv_big_endian_double
=no
22102 cat >conftest.
$ac_ext <<_ACEOF
22105 cat confdefs.h
>>conftest.
$ac_ext
22106 cat >>conftest.
$ac_ext <<_ACEOF
22107 /* end confdefs.h. */
22109 #include <string.h>
22111 double x = 9006104071832581.0;
22112 if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0)
22119 rm -f conftest
$ac_exeext
22120 if { (ac_try
="$ac_link"
22121 case "(($ac_try" in
22122 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22123 *) ac_try_echo=$ac_try;;
22125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22126 (eval "$ac_link") 2>&5
22128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22129 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22130 { (case "(($ac_try" in
22131 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22132 *) ac_try_echo
=$ac_try;;
22134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22135 (eval "$ac_try") 2>&5
22137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22138 (exit $ac_status); }; }; then
22139 ac_cv_big_endian_double
=yes
22141 echo "$as_me: program exited with status $ac_status" >&5
22142 echo "$as_me: failed program was:" >&5
22143 sed 's/^/| /' conftest.
$ac_ext >&5
22145 ( exit $ac_status )
22146 ac_cv_big_endian_double
=no
22148 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22154 { echo "$as_me:$LINENO: result: $ac_cv_big_endian_double" >&5
22155 echo "${ECHO_T}$ac_cv_big_endian_double" >&6; }
22156 if test "$ac_cv_big_endian_double" = yes
22159 cat >>confdefs.h
<<\_ACEOF
22160 #define DOUBLE_IS_BIG_ENDIAN_IEEE754 1
22165 # Some ARM platforms use a mixed-endian representation for doubles.
22166 # While Python doesn't currently have full support for these platforms
22167 # (see e.g., issue 1762561), we can at least make sure that float <-> string
22168 # conversions work.
22169 { echo "$as_me:$LINENO: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5
22170 echo $ECHO_N "checking whether C doubles are ARM mixed-endian IEEE 754 binary64... $ECHO_C" >&6; }
22171 if test "${ac_cv_mixed_endian_double+set}" = set; then
22172 echo $ECHO_N "(cached) $ECHO_C" >&6
22175 if test "$cross_compiling" = yes; then
22176 ac_cv_mixed_endian_double
=no
22178 cat >conftest.
$ac_ext <<_ACEOF
22181 cat confdefs.h
>>conftest.
$ac_ext
22182 cat >>conftest.
$ac_ext <<_ACEOF
22183 /* end confdefs.h. */
22185 #include <string.h>
22187 double x = 9006104071832581.0;
22188 if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0)
22195 rm -f conftest
$ac_exeext
22196 if { (ac_try
="$ac_link"
22197 case "(($ac_try" in
22198 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22199 *) ac_try_echo=$ac_try;;
22201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22202 (eval "$ac_link") 2>&5
22204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22205 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22206 { (case "(($ac_try" in
22207 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22208 *) ac_try_echo
=$ac_try;;
22210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22211 (eval "$ac_try") 2>&5
22213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22214 (exit $ac_status); }; }; then
22215 ac_cv_mixed_endian_double
=yes
22217 echo "$as_me: program exited with status $ac_status" >&5
22218 echo "$as_me: failed program was:" >&5
22219 sed 's/^/| /' conftest.
$ac_ext >&5
22221 ( exit $ac_status )
22222 ac_cv_mixed_endian_double
=no
22224 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22230 { echo "$as_me:$LINENO: result: $ac_cv_mixed_endian_double" >&5
22231 echo "${ECHO_T}$ac_cv_mixed_endian_double" >&6; }
22232 if test "$ac_cv_mixed_endian_double" = yes
22235 cat >>confdefs.h
<<\_ACEOF
22236 #define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1
22241 # The short float repr introduced in Python 3.1 requires the
22242 # correctly-rounded string <-> double conversion functions from
22243 # Python/dtoa.c, which in turn require that the FPU uses 53-bit
22244 # rounding; this is a problem on x86, where the x87 FPU has a default
22245 # rounding precision of 64 bits. For gcc/x86, we try to fix this by
22246 # using inline assembler to get and set the x87 FPU control word.
22247 if test "$GCC" = yes && test -n "`$CC -dM -E - </dev/null | grep i386`"
22249 # Check that it's okay to use gcc inline assembler to get and set
22250 # x87 control word. It should be, but you never know...
22251 { echo "$as_me:$LINENO: checking whether we can use gcc inline assembler to get and set x87 control word" >&5
22252 echo $ECHO_N "checking whether we can use gcc inline assembler to get and set x87 control word... $ECHO_C" >&6; }
22253 cat >conftest.
$ac_ext <<_ACEOF
22256 cat confdefs.h
>>conftest.
$ac_ext
22257 cat >>conftest.
$ac_ext <<_ACEOF
22258 /* end confdefs.h. */
22265 __asm__ __volatile__ ("fnstcw %0" : "=m" (cw));
22266 __asm__ __volatile__ ("fldcw %0" : : "m" (cw));
22272 rm -f conftest.
$ac_objext
22273 if { (ac_try
="$ac_compile"
22274 case "(($ac_try" in
22275 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22276 *) ac_try_echo=$ac_try;;
22278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22279 (eval "$ac_compile") 2>conftest.er1
22281 grep -v '^ *+' conftest.er1 >conftest.err
22283 cat conftest.err >&5
22284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22285 (exit $ac_status); } && {
22286 test -z "$ac_c_werror_flag" ||
22287 test ! -s conftest.err
22288 } && test -s conftest.$ac_objext; then
22289 have_gcc_asm_for_x87=yes
22291 echo "$as_me: failed program was:" >&5
22292 sed 's/^/| /' conftest.$ac_ext >&5
22294 have_gcc_asm_for_x87=no
22297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22298 { echo "$as_me:$LINENO: result: $have_gcc_asm_for_x87" >&5
22299 echo "${ECHO_T}$have_gcc_asm_for_x87" >&6; }
22300 if test "$have_gcc_asm_for_x87" = yes
22303 cat >>confdefs.h <<\_ACEOF
22304 #define HAVE_GCC_ASM_FOR_X87 1
22310 # Detect whether system arithmetic is subject to x87-style double
22311 # rounding issues. The result of this test has little meaning on non
22312 # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding
22313 # mode is round-to-nearest and double rounding issues are present, and
22314 # 0 otherwise. See http://bugs.python.org/issue2937 for more info.
22315 { echo "$as_me:$LINENO: checking for x87-style double rounding" >&5
22316 echo $ECHO_N "checking for x87-style double rounding... $ECHO_C" >&6; }
22317 # $BASECFLAGS may affect the result
22319 CC="$CC $BASECFLAGS"
22320 if test "$cross_compiling" = yes; then
22321 ac_cv_x87_double_rounding=no
22323 cat >conftest.$ac_ext <<_ACEOF
22326 cat confdefs.h >>conftest.$ac_ext
22327 cat >>conftest.$ac_ext <<_ACEOF
22328 /* end confdefs.h. */
22330 #include <stdlib.h>
22333 volatile double x, y, z;
22334 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
22335 x = 0.99999999999999989; /* 1-2**-53 */
22339 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
22345 /* both tests show evidence of double rounding */
22350 rm -f conftest$ac_exeext
22351 if { (ac_try="$ac_link"
22352 case "(($ac_try" in
22353 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22354 *) ac_try_echo
=$ac_try;;
22356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22357 (eval "$ac_link") 2>&5
22359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22360 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22361 { (case "(($ac_try" in
22362 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22363 *) ac_try_echo=$ac_try;;
22365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22366 (eval "$ac_try") 2>&5
22368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22369 (exit $ac_status); }; }; then
22370 ac_cv_x87_double_rounding=no
22372 echo "$as_me: program exited with status $ac_status" >&5
22373 echo "$as_me: failed program was:" >&5
22374 sed 's/^/| /' conftest.$ac_ext >&5
22376 ( exit $ac_status )
22377 ac_cv_x87_double_rounding=yes
22379 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22384 { echo "$as_me:$LINENO: result: $ac_cv_x87_double_rounding" >&5
22385 echo "${ECHO_T}$ac_cv_x87_double_rounding" >&6; }
22386 if test "$ac_cv_x87_double_rounding" = yes
22389 cat >>confdefs.h <<\_ACEOF
22390 #define X87_DOUBLE_ROUNDING 1
22395 # ************************************
22396 # * Check for mathematical functions *
22397 # ************************************
22402 # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
22403 # -0. on some architectures.
22404 { echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5
22405 echo $ECHO_N "checking whether tanh preserves the sign of zero... $ECHO_C" >&6; }
22406 if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then
22407 echo $ECHO_N "(cached) $ECHO_C" >&6
22410 if test "$cross_compiling" = yes; then
22411 ac_cv_tanh_preserves_zero_sign=no
22413 cat >conftest.$ac_ext <<_ACEOF
22416 cat confdefs.h >>conftest.$ac_ext
22417 cat >>conftest.$ac_ext <<_ACEOF
22418 /* end confdefs.h. */
22421 #include <stdlib.h>
22423 /* return 0 if either negative zeros don't exist
22424 on this platform or if negative zeros exist
22425 and tanh(-0.) == -0. */
22426 if (atan2(0., -1.) == atan2(-0., -1.) ||
22427 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
22432 rm -f conftest$ac_exeext
22433 if { (ac_try="$ac_link"
22434 case "(($ac_try" in
22435 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22436 *) ac_try_echo
=$ac_try;;
22438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22439 (eval "$ac_link") 2>&5
22441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22442 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22443 { (case "(($ac_try" in
22444 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22445 *) ac_try_echo=$ac_try;;
22447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22448 (eval "$ac_try") 2>&5
22450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22451 (exit $ac_status); }; }; then
22452 ac_cv_tanh_preserves_zero_sign=yes
22454 echo "$as_me: program exited with status $ac_status" >&5
22455 echo "$as_me: failed program was:" >&5
22456 sed 's/^/| /' conftest.$ac_ext >&5
22458 ( exit $ac_status )
22459 ac_cv_tanh_preserves_zero_sign=no
22461 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22467 { echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5
22468 echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; }
22469 if test "$ac_cv_tanh_preserves_zero_sign" = yes
22472 cat >>confdefs.h <<\_ACEOF
22473 #define TANH_PRESERVES_ZERO_SIGN 1
22487 for ac_func in acosh asinh atanh copysign expm1 finite hypot log1p round
22489 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
22490 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22491 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22492 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22493 echo $ECHO_N "(cached) $ECHO_C" >&6
22495 cat >conftest.$ac_ext <<_ACEOF
22498 cat confdefs.h >>conftest.$ac_ext
22499 cat >>conftest.$ac_ext <<_ACEOF
22500 /* end confdefs.h. */
22501 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22502 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22503 #define $ac_func innocuous_$ac_func
22505 /* System header to define __stub macros and hopefully few prototypes,
22506 which can conflict with char $ac_func (); below.
22507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22508 <limits.h> exists even on freestanding compilers. */
22511 # include <limits.h>
22513 # include <assert.h>
22518 /* Override any GCC internal prototype to avoid an error.
22519 Use char because int might match the return type of a GCC
22520 builtin and then its argument prototype would still apply. */
22525 /* The GNU C library defines this for functions which it implements
22526 to always fail with ENOSYS. Some functions are actually named
22527 something starting with __ and the normal name is an alias. */
22528 #if defined __stub_$ac_func || defined __stub___$ac_func
22535 return $ac_func ();
22540 rm -f conftest.$ac_objext conftest$ac_exeext
22541 if { (ac_try="$ac_link"
22542 case "(($ac_try" in
22543 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22544 *) ac_try_echo
=$ac_try;;
22546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22547 (eval "$ac_link") 2>conftest.er1
22549 grep -v '^ *+' conftest.er1
>conftest.err
22551 cat conftest.err
>&5
22552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22553 (exit $ac_status); } && {
22554 test -z "$ac_c_werror_flag" ||
22555 test ! -s conftest.err
22556 } && test -s conftest
$ac_exeext &&
22557 $as_test_x conftest
$ac_exeext; then
22558 eval "$as_ac_var=yes"
22560 echo "$as_me: failed program was:" >&5
22561 sed 's/^/| /' conftest.
$ac_ext >&5
22563 eval "$as_ac_var=no"
22566 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22567 conftest
$ac_exeext conftest.
$ac_ext
22569 ac_res
=`eval echo '${'$as_ac_var'}'`
22570 { echo "$as_me:$LINENO: result: $ac_res" >&5
22571 echo "${ECHO_T}$ac_res" >&6; }
22572 if test `eval echo '${'$as_ac_var'}'` = yes; then
22573 cat >>confdefs.h
<<_ACEOF
22574 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22580 { echo "$as_me:$LINENO: checking whether isinf is declared" >&5
22581 echo $ECHO_N "checking whether isinf is declared... $ECHO_C" >&6; }
22582 if test "${ac_cv_have_decl_isinf+set}" = set; then
22583 echo $ECHO_N "(cached) $ECHO_C" >&6
22585 cat >conftest.
$ac_ext <<_ACEOF
22588 cat confdefs.h
>>conftest.
$ac_ext
22589 cat >>conftest.
$ac_ext <<_ACEOF
22590 /* end confdefs.h. */
22604 rm -f conftest.
$ac_objext
22605 if { (ac_try
="$ac_compile"
22606 case "(($ac_try" in
22607 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22608 *) ac_try_echo=$ac_try;;
22610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22611 (eval "$ac_compile") 2>conftest.er1
22613 grep -v '^ *+' conftest.er1 >conftest.err
22615 cat conftest.err >&5
22616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22617 (exit $ac_status); } && {
22618 test -z "$ac_c_werror_flag" ||
22619 test ! -s conftest.err
22620 } && test -s conftest.$ac_objext; then
22621 ac_cv_have_decl_isinf=yes
22623 echo "$as_me: failed program was:" >&5
22624 sed 's/^/| /' conftest.$ac_ext >&5
22626 ac_cv_have_decl_isinf=no
22629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22631 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isinf" >&5
22632 echo "${ECHO_T}$ac_cv_have_decl_isinf" >&6; }
22633 if test $ac_cv_have_decl_isinf = yes; then
22635 cat >>confdefs.h <<_ACEOF
22636 #define HAVE_DECL_ISINF 1
22641 cat >>confdefs.h <<_ACEOF
22642 #define HAVE_DECL_ISINF 0
22647 { echo "$as_me:$LINENO: checking whether isnan is declared" >&5
22648 echo $ECHO_N "checking whether isnan is declared... $ECHO_C" >&6; }
22649 if test "${ac_cv_have_decl_isnan+set}" = set; then
22650 echo $ECHO_N "(cached) $ECHO_C" >&6
22652 cat >conftest.$ac_ext <<_ACEOF
22655 cat confdefs.h >>conftest.$ac_ext
22656 cat >>conftest.$ac_ext <<_ACEOF
22657 /* end confdefs.h. */
22671 rm -f conftest.$ac_objext
22672 if { (ac_try="$ac_compile"
22673 case "(($ac_try" in
22674 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22675 *) ac_try_echo
=$ac_try;;
22677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22678 (eval "$ac_compile") 2>conftest.er1
22680 grep -v '^ *+' conftest.er1
>conftest.err
22682 cat conftest.err
>&5
22683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22684 (exit $ac_status); } && {
22685 test -z "$ac_c_werror_flag" ||
22686 test ! -s conftest.err
22687 } && test -s conftest.
$ac_objext; then
22688 ac_cv_have_decl_isnan
=yes
22690 echo "$as_me: failed program was:" >&5
22691 sed 's/^/| /' conftest.
$ac_ext >&5
22693 ac_cv_have_decl_isnan
=no
22696 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22698 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isnan" >&5
22699 echo "${ECHO_T}$ac_cv_have_decl_isnan" >&6; }
22700 if test $ac_cv_have_decl_isnan = yes; then
22702 cat >>confdefs.h
<<_ACEOF
22703 #define HAVE_DECL_ISNAN 1
22708 cat >>confdefs.h
<<_ACEOF
22709 #define HAVE_DECL_ISNAN 0
22714 { echo "$as_me:$LINENO: checking whether isfinite is declared" >&5
22715 echo $ECHO_N "checking whether isfinite is declared... $ECHO_C" >&6; }
22716 if test "${ac_cv_have_decl_isfinite+set}" = set; then
22717 echo $ECHO_N "(cached) $ECHO_C" >&6
22719 cat >conftest.
$ac_ext <<_ACEOF
22722 cat confdefs.h
>>conftest.
$ac_ext
22723 cat >>conftest.
$ac_ext <<_ACEOF
22724 /* end confdefs.h. */
22738 rm -f conftest.
$ac_objext
22739 if { (ac_try
="$ac_compile"
22740 case "(($ac_try" in
22741 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22742 *) ac_try_echo=$ac_try;;
22744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22745 (eval "$ac_compile") 2>conftest.er1
22747 grep -v '^ *+' conftest.er1 >conftest.err
22749 cat conftest.err >&5
22750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22751 (exit $ac_status); } && {
22752 test -z "$ac_c_werror_flag" ||
22753 test ! -s conftest.err
22754 } && test -s conftest.$ac_objext; then
22755 ac_cv_have_decl_isfinite=yes
22757 echo "$as_me: failed program was:" >&5
22758 sed 's/^/| /' conftest.$ac_ext >&5
22760 ac_cv_have_decl_isfinite=no
22763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22765 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isfinite" >&5
22766 echo "${ECHO_T}$ac_cv_have_decl_isfinite" >&6; }
22767 if test $ac_cv_have_decl_isfinite = yes; then
22769 cat >>confdefs.h <<_ACEOF
22770 #define HAVE_DECL_ISFINITE 1
22775 cat >>confdefs.h <<_ACEOF
22776 #define HAVE_DECL_ISFINITE 0
22786 # For multiprocessing module, check that sem_open
22787 # actually works. For FreeBSD versions <= 7.2,
22788 # the kernel module that provides POSIX semaphores
22789 # isn't loaded by default, so an attempt to call
22790 # sem_open results in a 'Signal 12' error.
22791 { echo "$as_me:$LINENO: checking whether POSIX semaphores are enabled" >&5
22792 echo $ECHO_N "checking whether POSIX semaphores are enabled... $ECHO_C" >&6; }
22793 if test "${ac_cv_posix_semaphores_enabled+set}" = set; then
22794 echo $ECHO_N "(cached) $ECHO_C" >&6
22796 if test "$cross_compiling" = yes; then
22797 ac_cv_posix_semaphores_enabled=yes
22799 cat >conftest.$ac_ext <<_ACEOF
22802 cat confdefs.h >>conftest.$ac_ext
22803 cat >>conftest.$ac_ext <<_ACEOF
22804 /* end confdefs.h. */
22806 #include <unistd.h>
22809 #include <semaphore.h>
22810 #include <sys/stat.h>
22813 sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
22814 if (a == SEM_FAILED) {
22815 perror("sem_open");
22819 sem_unlink("/autoconf");
22824 rm -f conftest$ac_exeext
22825 if { (ac_try="$ac_link"
22826 case "(($ac_try" in
22827 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22828 *) ac_try_echo
=$ac_try;;
22830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22831 (eval "$ac_link") 2>&5
22833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22834 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22835 { (case "(($ac_try" in
22836 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22837 *) ac_try_echo=$ac_try;;
22839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22840 (eval "$ac_try") 2>&5
22842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22843 (exit $ac_status); }; }; then
22844 ac_cv_posix_semaphores_enabled=yes
22846 echo "$as_me: program exited with status $ac_status" >&5
22847 echo "$as_me: failed program was:" >&5
22848 sed 's/^/| /' conftest.$ac_ext >&5
22850 ( exit $ac_status )
22851 ac_cv_posix_semaphores_enabled=no
22853 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22860 { echo "$as_me:$LINENO: result: $ac_cv_posix_semaphores_enabled" >&5
22861 echo "${ECHO_T}$ac_cv_posix_semaphores_enabled" >&6; }
22862 if test $ac_cv_posix_semaphores_enabled = no
22865 cat >>confdefs.h <<\_ACEOF
22866 #define POSIX_SEMAPHORES_NOT_ENABLED 1
22871 # Multiprocessing check for broken sem_getvalue
22872 { echo "$as_me:$LINENO: checking for broken sem_getvalue" >&5
22873 echo $ECHO_N "checking for broken sem_getvalue... $ECHO_C" >&6; }
22874 if test "$cross_compiling" = yes; then
22875 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22876 See \`config.log
' for more details." >&5
22877 echo "$as_me: error: cannot run test program while cross compiling
22878 See \`config.log' for more details.
" >&2;}
22879 { (exit 1); exit 1; }; }
22881 cat >conftest.$ac_ext <<_ACEOF
22884 cat confdefs.h >>conftest.$ac_ext
22885 cat >>conftest.$ac_ext <<_ACEOF
22886 /* end confdefs.h. */
22888 #include <unistd.h>
22891 #include <semaphore.h>
22892 #include <sys/stat.h>
22895 sem_t *a = sem_open("/autocftw
", O_CREAT, S_IRUSR|S_IWUSR, 0);
22899 perror("sem_open
");
22903 res = sem_getvalue(a, &count);
22905 sem_unlink("/autocftw
");
22906 return res==-1 ? 1 : 0;
22911 rm -f conftest$ac_exeext
22912 if { (ac_try="$ac_link"
22913 case "(($ac_try" in
22914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22915 *) ac_try_echo=$ac_try;;
22917 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22918 (eval "$ac_link") 2>&5
22920 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22921 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22922 { (case "(($ac_try" in
22923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22924 *) ac_try_echo=$ac_try;;
22926 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22927 (eval "$ac_try") 2>&5
22929 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22930 (exit $ac_status); }; }; then
22931 { echo "$as_me:$LINENO: result
: no
" >&5
22932 echo "${ECHO_T}no
" >&6; }
22934 echo "$as_me: program exited with status
$ac_status" >&5
22935 echo "$as_me: failed program was
:" >&5
22936 sed 's/^/| /' conftest.$ac_ext >&5
22938 ( exit $ac_status )
22939 { echo "$as_me:$LINENO: result
: yes" >&5
22940 echo "${ECHO_T}yes" >&6; }
22942 cat >>confdefs.h <<\_ACEOF
22943 #define HAVE_BROKEN_SEM_GETVALUE 1
22948 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22953 # determine what size digit to use for Python's longs
22954 { echo "$as_me:$LINENO: checking digit size
for Python
's longs" >&5
22955 echo $ECHO_N "checking digit size for Python's longs...
$ECHO_C" >&6; }
22956 # Check whether --enable-big-digits was given.
22957 if test "${enable_big_digits+set}" = set; then
22958 enableval=$enable_big_digits; case $enable_big_digits in
22960 enable_big_digits=30 ;;
22962 enable_big_digits=15 ;;
22966 { { echo "$as_me:$LINENO: error
: bad value
$enable_big_digits for --enable-big-digits; value should be
15 or
30" >&5
22967 echo "$as_me: error
: bad value
$enable_big_digits for --enable-big-digits; value should be
15 or
30" >&2;}
22968 { (exit 1); exit 1; }; } ;;
22970 { echo "$as_me:$LINENO: result
: $enable_big_digits" >&5
22971 echo "${ECHO_T}$enable_big_digits" >&6; }
22973 cat >>confdefs.h <<_ACEOF
22974 #define PYLONG_BITS_IN_DIGIT $enable_big_digits
22979 { echo "$as_me:$LINENO: result
: no value specified
" >&5
22980 echo "${ECHO_T}no value specified
" >&6; }
22984 # check for wchar.h
22985 if test "${ac_cv_header_wchar_h+set}" = set; then
22986 { echo "$as_me:$LINENO: checking
for wchar.h
" >&5
22987 echo $ECHO_N "checking
for wchar.h...
$ECHO_C" >&6; }
22988 if test "${ac_cv_header_wchar_h+set}" = set; then
22989 echo $ECHO_N "(cached
) $ECHO_C" >&6
22991 { echo "$as_me:$LINENO: result
: $ac_cv_header_wchar_h" >&5
22992 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
22994 # Is the header compilable?
22995 { echo "$as_me:$LINENO: checking wchar.h usability
" >&5
22996 echo $ECHO_N "checking wchar.h usability...
$ECHO_C" >&6; }
22997 cat >conftest.$ac_ext <<_ACEOF
23000 cat confdefs.h >>conftest.$ac_ext
23001 cat >>conftest.$ac_ext <<_ACEOF
23002 /* end confdefs.h. */
23003 $ac_includes_default
23006 rm -f conftest.$ac_objext
23007 if { (ac_try="$ac_compile"
23008 case "(($ac_try" in
23009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23010 *) ac_try_echo=$ac_try;;
23012 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23013 (eval "$ac_compile") 2>conftest.er1
23015 grep -v '^ *+' conftest.er1 >conftest.err
23017 cat conftest.err >&5
23018 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23019 (exit $ac_status); } && {
23020 test -z "$ac_c_werror_flag" ||
23021 test ! -s conftest.err
23022 } && test -s conftest.$ac_objext; then
23023 ac_header_compiler=yes
23025 echo "$as_me: failed program was
:" >&5
23026 sed 's/^/| /' conftest.$ac_ext >&5
23028 ac_header_compiler=no
23031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23032 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23033 echo "${ECHO_T}$ac_header_compiler" >&6; }
23035 # Is the header present?
23036 { echo "$as_me:$LINENO: checking wchar.h presence
" >&5
23037 echo $ECHO_N "checking wchar.h presence...
$ECHO_C" >&6; }
23038 cat >conftest.$ac_ext <<_ACEOF
23041 cat confdefs.h >>conftest.$ac_ext
23042 cat >>conftest.$ac_ext <<_ACEOF
23043 /* end confdefs.h. */
23046 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23047 case "(($ac_try" in
23048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23049 *) ac_try_echo=$ac_try;;
23051 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23052 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23054 grep -v '^ *+' conftest.er1 >conftest.err
23056 cat conftest.err >&5
23057 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23058 (exit $ac_status); } >/dev/null && {
23059 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23060 test ! -s conftest.err
23062 ac_header_preproc=yes
23064 echo "$as_me: failed program was
:" >&5
23065 sed 's/^/| /' conftest.$ac_ext >&5
23067 ac_header_preproc=no
23070 rm -f conftest.err conftest.$ac_ext
23071 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23072 echo "${ECHO_T}$ac_header_preproc" >&6; }
23074 # So? What about this header?
23075 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23077 { echo "$as_me:$LINENO: WARNING
: wchar.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
23078 echo "$as_me: WARNING
: wchar.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23079 { echo "$as_me:$LINENO: WARNING
: wchar.h
: proceeding with the compiler
's result" >&5
23080 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result
" >&2;}
23081 ac_header_preproc=yes
23084 { echo "$as_me:$LINENO: WARNING
: wchar.h
: present but cannot be compiled
" >&5
23085 echo "$as_me: WARNING
: wchar.h
: present but cannot be compiled
" >&2;}
23086 { echo "$as_me:$LINENO: WARNING
: wchar.h
: check
for missing prerequisite headers?
" >&5
23087 echo "$as_me: WARNING
: wchar.h
: check
for missing prerequisite headers?
" >&2;}
23088 { echo "$as_me:$LINENO: WARNING
: wchar.h
: see the Autoconf documentation
" >&5
23089 echo "$as_me: WARNING
: wchar.h
: see the Autoconf documentation
" >&2;}
23090 { echo "$as_me:$LINENO: WARNING
: wchar.h
: section
\"Present But Cannot Be Compiled
\"" >&5
23091 echo "$as_me: WARNING
: wchar.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
23092 { echo "$as_me:$LINENO: WARNING
: wchar.h
: proceeding with the preprocessor
's result" >&5
23093 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result
" >&2;}
23094 { echo "$as_me:$LINENO: WARNING
: wchar.h
: in the future
, the compiler will take precedence
" >&5
23095 echo "$as_me: WARNING
: wchar.h
: in the future
, the compiler will take precedence
" >&2;}
23097 ## -------------------------------------- ##
23098 ## Report this to http://bugs.python.org/ ##
23099 ## -------------------------------------- ##
23101 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
23104 { echo "$as_me:$LINENO: checking
for wchar.h
" >&5
23105 echo $ECHO_N "checking
for wchar.h...
$ECHO_C" >&6; }
23106 if test "${ac_cv_header_wchar_h+set}" = set; then
23107 echo $ECHO_N "(cached
) $ECHO_C" >&6
23109 ac_cv_header_wchar_h=$ac_header_preproc
23111 { echo "$as_me:$LINENO: result
: $ac_cv_header_wchar_h" >&5
23112 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
23115 if test $ac_cv_header_wchar_h = yes; then
23118 cat >>confdefs.h <<\_ACEOF
23119 #define HAVE_WCHAR_H 1
23131 # determine wchar_t size
23132 if test "$wchar_h" = yes
23134 { echo "$as_me:$LINENO: checking
for wchar_t
" >&5
23135 echo $ECHO_N "checking
for wchar_t...
$ECHO_C" >&6; }
23136 if test "${ac_cv_type_wchar_t+set}" = set; then
23137 echo $ECHO_N "(cached
) $ECHO_C" >&6
23139 cat >conftest.$ac_ext <<_ACEOF
23142 cat confdefs.h >>conftest.$ac_ext
23143 cat >>conftest.$ac_ext <<_ACEOF
23144 /* end confdefs.h. */
23147 typedef wchar_t ac__type_new_;
23151 if ((ac__type_new_ *) 0)
23153 if (sizeof (ac__type_new_))
23159 rm -f conftest.$ac_objext
23160 if { (ac_try="$ac_compile"
23161 case "(($ac_try" in
23162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23163 *) ac_try_echo=$ac_try;;
23165 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23166 (eval "$ac_compile") 2>conftest.er1
23168 grep -v '^ *+' conftest.er1 >conftest.err
23170 cat conftest.err >&5
23171 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23172 (exit $ac_status); } && {
23173 test -z "$ac_c_werror_flag" ||
23174 test ! -s conftest.err
23175 } && test -s conftest.$ac_objext; then
23176 ac_cv_type_wchar_t=yes
23178 echo "$as_me: failed program was
:" >&5
23179 sed 's/^/| /' conftest.$ac_ext >&5
23181 ac_cv_type_wchar_t=no
23184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23186 { echo "$as_me:$LINENO: result
: $ac_cv_type_wchar_t" >&5
23187 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
23189 # The cast to long int works around a bug in the HP C Compiler
23190 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23191 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23192 # This bug is HP SR number 8606223364.
23193 { echo "$as_me:$LINENO: checking size of wchar_t
" >&5
23194 echo $ECHO_N "checking size of wchar_t...
$ECHO_C" >&6; }
23195 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
23196 echo $ECHO_N "(cached
) $ECHO_C" >&6
23198 if test "$cross_compiling" = yes; then
23199 # Depending upon the size, compute the lo and hi bounds.
23200 cat >conftest.$ac_ext <<_ACEOF
23203 cat confdefs.h >>conftest.$ac_ext
23204 cat >>conftest.$ac_ext <<_ACEOF
23205 /* end confdefs.h. */
23208 typedef wchar_t ac__type_sizeof_;
23212 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23219 rm -f conftest.$ac_objext
23220 if { (ac_try="$ac_compile"
23221 case "(($ac_try" in
23222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23223 *) ac_try_echo=$ac_try;;
23225 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23226 (eval "$ac_compile") 2>conftest.er1
23228 grep -v '^ *+' conftest.er1 >conftest.err
23230 cat conftest.err >&5
23231 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23232 (exit $ac_status); } && {
23233 test -z "$ac_c_werror_flag" ||
23234 test ! -s conftest.err
23235 } && test -s conftest.$ac_objext; then
23238 cat >conftest.$ac_ext <<_ACEOF
23241 cat confdefs.h >>conftest.$ac_ext
23242 cat >>conftest.$ac_ext <<_ACEOF
23243 /* end confdefs.h. */
23246 typedef wchar_t ac__type_sizeof_;
23250 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23257 rm -f conftest.$ac_objext
23258 if { (ac_try="$ac_compile"
23259 case "(($ac_try" in
23260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23261 *) ac_try_echo=$ac_try;;
23263 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23264 (eval "$ac_compile") 2>conftest.er1
23266 grep -v '^ *+' conftest.er1 >conftest.err
23268 cat conftest.err >&5
23269 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23270 (exit $ac_status); } && {
23271 test -z "$ac_c_werror_flag" ||
23272 test ! -s conftest.err
23273 } && test -s conftest.$ac_objext; then
23274 ac_hi=$ac_mid; break
23276 echo "$as_me: failed program was
:" >&5
23277 sed 's/^/| /' conftest.$ac_ext >&5
23279 ac_lo=`expr $ac_mid + 1`
23280 if test $ac_lo -le $ac_mid; then
23284 ac_mid=`expr 2 '*' $ac_mid + 1`
23287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23290 echo "$as_me: failed program was
:" >&5
23291 sed 's/^/| /' conftest.$ac_ext >&5
23293 cat >conftest.$ac_ext <<_ACEOF
23296 cat confdefs.h >>conftest.$ac_ext
23297 cat >>conftest.$ac_ext <<_ACEOF
23298 /* end confdefs.h. */
23301 typedef wchar_t ac__type_sizeof_;
23305 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23312 rm -f conftest.$ac_objext
23313 if { (ac_try="$ac_compile"
23314 case "(($ac_try" in
23315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23316 *) ac_try_echo=$ac_try;;
23318 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23319 (eval "$ac_compile") 2>conftest.er1
23321 grep -v '^ *+' conftest.er1 >conftest.err
23323 cat conftest.err >&5
23324 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23325 (exit $ac_status); } && {
23326 test -z "$ac_c_werror_flag" ||
23327 test ! -s conftest.err
23328 } && test -s conftest.$ac_objext; then
23331 cat >conftest.$ac_ext <<_ACEOF
23334 cat confdefs.h >>conftest.$ac_ext
23335 cat >>conftest.$ac_ext <<_ACEOF
23336 /* end confdefs.h. */
23339 typedef wchar_t ac__type_sizeof_;
23343 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23350 rm -f conftest.$ac_objext
23351 if { (ac_try="$ac_compile"
23352 case "(($ac_try" in
23353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23354 *) ac_try_echo=$ac_try;;
23356 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23357 (eval "$ac_compile") 2>conftest.er1
23359 grep -v '^ *+' conftest.er1 >conftest.err
23361 cat conftest.err >&5
23362 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23363 (exit $ac_status); } && {
23364 test -z "$ac_c_werror_flag" ||
23365 test ! -s conftest.err
23366 } && test -s conftest.$ac_objext; then
23367 ac_lo=$ac_mid; break
23369 echo "$as_me: failed program was
:" >&5
23370 sed 's/^/| /' conftest.$ac_ext >&5
23372 ac_hi=`expr '(' $ac_mid ')' - 1`
23373 if test $ac_mid -le $ac_hi; then
23377 ac_mid=`expr 2 '*' $ac_mid`
23380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23383 echo "$as_me: failed program was
:" >&5
23384 sed 's/^/| /' conftest.$ac_ext >&5
23389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23393 # Binary search between lo and hi bounds.
23394 while test "x
$ac_lo" != "x
$ac_hi"; do
23395 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23396 cat >conftest.$ac_ext <<_ACEOF
23399 cat confdefs.h >>conftest.$ac_ext
23400 cat >>conftest.$ac_ext <<_ACEOF
23401 /* end confdefs.h. */
23404 typedef wchar_t ac__type_sizeof_;
23408 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23415 rm -f conftest.$ac_objext
23416 if { (ac_try="$ac_compile"
23417 case "(($ac_try" in
23418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23419 *) ac_try_echo=$ac_try;;
23421 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23422 (eval "$ac_compile") 2>conftest.er1
23424 grep -v '^ *+' conftest.er1 >conftest.err
23426 cat conftest.err >&5
23427 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23428 (exit $ac_status); } && {
23429 test -z "$ac_c_werror_flag" ||
23430 test ! -s conftest.err
23431 } && test -s conftest.$ac_objext; then
23434 echo "$as_me: failed program was
:" >&5
23435 sed 's/^/| /' conftest.$ac_ext >&5
23437 ac_lo=`expr '(' $ac_mid ')' + 1`
23440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23443 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
23444 '') if test "$ac_cv_type_wchar_t" = yes; then
23445 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(wchar_t
)
23446 See \
`config.log' for more details." >&5
23447 echo "$as_me: error: cannot compute sizeof (wchar_t)
23448 See \`config.log
' for more details." >&2;}
23449 { (exit 77); exit 77; }; }
23451 ac_cv_sizeof_wchar_t=0
23455 cat >conftest.$ac_ext <<_ACEOF
23458 cat confdefs.h >>conftest.$ac_ext
23459 cat >>conftest.$ac_ext <<_ACEOF
23460 /* end confdefs.h. */
23463 typedef wchar_t ac__type_sizeof_;
23464 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23465 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23467 #include <stdlib.h>
23472 FILE *f = fopen ("conftest.val", "w");
23475 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23477 long int i = longval ();
23478 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23480 fprintf (f, "%ld\n", i);
23484 unsigned long int i = ulongval ();
23485 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23487 fprintf (f, "%lu\n", i);
23489 return ferror (f) || fclose (f) != 0;
23495 rm -f conftest$ac_exeext
23496 if { (ac_try="$ac_link"
23497 case "(($ac_try" in
23498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23499 *) ac_try_echo=$ac_try;;
23501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23502 (eval "$ac_link") 2>&5
23504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23505 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
23506 { (case "(($ac_try" in
23507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23508 *) ac_try_echo=$ac_try;;
23510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23511 (eval "$ac_try") 2>&5
23513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23514 (exit $ac_status); }; }; then
23515 ac_cv_sizeof_wchar_t=`cat conftest.val`
23517 echo "$as_me: program exited with status $ac_status" >&5
23518 echo "$as_me: failed program was:" >&5
23519 sed 's
/^
/|
/' conftest.$ac_ext >&5
23521 ( exit $ac_status )
23522 if test "$ac_cv_type_wchar_t" = yes; then
23523 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
23524 See \`config.log' for more details.
" >&5
23525 echo "$as_me: error
: cannot compute sizeof
(wchar_t
)
23526 See \
`config.log' for more details." >&2;}
23527 { (exit 77); exit 77; }; }
23529 ac_cv_sizeof_wchar_t=0
23532 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23536 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
23537 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
23541 cat >>confdefs.h <<_ACEOF
23542 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
23548 { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
23549 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6; }
23551 cat >conftest.$ac_ext <<_ACEOF
23554 cat confdefs.h >>conftest.$ac_ext
23555 cat >>conftest.$ac_ext <<_ACEOF
23556 /* end confdefs.h. */
23559 #if TCL_UTF_MAX != 6
23560 # error "NOT UCS4_TCL"
23570 rm -f conftest.$ac_objext
23571 if { (ac_try="$ac_compile"
23572 case "(($ac_try" in
23573 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23574 *) ac_try_echo
=$ac_try;;
23576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23577 (eval "$ac_compile") 2>conftest.er1
23579 grep -v '^ *+' conftest.er1
>conftest.err
23581 cat conftest.err
>&5
23582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23583 (exit $ac_status); } && {
23584 test -z "$ac_c_werror_flag" ||
23585 test ! -s conftest.err
23586 } && test -s conftest.
$ac_objext; then
23589 cat >>confdefs.h
<<\_ACEOF
23590 #define HAVE_UCS4_TCL 1
23596 echo "$as_me: failed program was:" >&5
23597 sed 's/^/| /' conftest.
$ac_ext >&5
23602 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23603 { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
23604 echo "${ECHO_T}$have_ucs4_tcl" >&6; }
23606 # check whether wchar_t is signed or not
23607 if test "$wchar_h" = yes
23609 # check whether wchar_t is signed or not
23610 { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
23611 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6; }
23612 if test "${ac_cv_wchar_t_signed+set}" = set; then
23613 echo $ECHO_N "(cached) $ECHO_C" >&6
23616 if test "$cross_compiling" = yes; then
23617 ac_cv_wchar_t_signed
=yes
23619 cat >conftest.
$ac_ext <<_ACEOF
23622 cat confdefs.h
>>conftest.
$ac_ext
23623 cat >>conftest.
$ac_ext <<_ACEOF
23624 /* end confdefs.h. */
23629 /* Success: exit code 0 */
23630 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
23634 rm -f conftest
$ac_exeext
23635 if { (ac_try
="$ac_link"
23636 case "(($ac_try" in
23637 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23638 *) ac_try_echo=$ac_try;;
23640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23641 (eval "$ac_link") 2>&5
23643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23644 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23645 { (case "(($ac_try" in
23646 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23647 *) ac_try_echo
=$ac_try;;
23649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23650 (eval "$ac_try") 2>&5
23652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23653 (exit $ac_status); }; }; then
23654 ac_cv_wchar_t_signed
=yes
23656 echo "$as_me: program exited with status $ac_status" >&5
23657 echo "$as_me: failed program was:" >&5
23658 sed 's/^/| /' conftest.
$ac_ext >&5
23660 ( exit $ac_status )
23661 ac_cv_wchar_t_signed
=no
23663 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
23669 { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
23670 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
23673 { echo "$as_me:$LINENO: checking what type to use for str" >&5
23674 echo $ECHO_N "checking what type to use for str... $ECHO_C" >&6; }
23676 # Check whether --with-wide-unicode was given.
23677 if test "${with_wide_unicode+set}" = set; then
23678 withval
=$with_wide_unicode;
23679 if test "$withval" != no
23680 then unicode_size
="4"
23681 else unicode_size
="2"
23686 case "$have_ucs4_tcl" in
23687 yes) unicode_size
="4" ;;
23688 *) unicode_size
="2" ;;
23696 case "$unicode_size" in
23697 4) cat >>confdefs.h
<<\_ACEOF
23698 #define Py_UNICODE_SIZE 4
23701 *) cat >>confdefs.h
<<\_ACEOF
23702 #define Py_UNICODE_SIZE 2
23710 # wchar_t is only usable if it maps to an unsigned type
23711 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
23712 -a "$ac_cv_wchar_t_signed" = "no"
23714 PY_UNICODE_TYPE
="wchar_t"
23716 cat >>confdefs.h
<<\_ACEOF
23717 #define HAVE_USABLE_WCHAR_T 1
23720 cat >>confdefs.h
<<\_ACEOF
23721 #define PY_UNICODE_TYPE wchar_t
23724 elif test "$ac_cv_sizeof_short" = "$unicode_size"
23726 PY_UNICODE_TYPE
="unsigned short"
23727 cat >>confdefs.h
<<\_ACEOF
23728 #define PY_UNICODE_TYPE unsigned short
23731 elif test "$ac_cv_sizeof_long" = "$unicode_size"
23733 PY_UNICODE_TYPE
="unsigned long"
23734 cat >>confdefs.h
<<\_ACEOF
23735 #define PY_UNICODE_TYPE unsigned long
23739 PY_UNICODE_TYPE
="no type found"
23741 { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
23742 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
23744 # check for endianness
23745 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
23746 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
23747 if test "${ac_cv_c_bigendian+set}" = set; then
23748 echo $ECHO_N "(cached) $ECHO_C" >&6
23750 # See if sys/param.h defines the BYTE_ORDER macro.
23751 cat >conftest.
$ac_ext <<_ACEOF
23754 cat confdefs.h
>>conftest.
$ac_ext
23755 cat >>conftest.
$ac_ext <<_ACEOF
23756 /* end confdefs.h. */
23757 #include <sys/types.h>
23758 #include <sys/param.h>
23763 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
23764 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
23765 bogus endian macros
23772 rm -f conftest.
$ac_objext
23773 if { (ac_try
="$ac_compile"
23774 case "(($ac_try" in
23775 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23776 *) ac_try_echo=$ac_try;;
23778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23779 (eval "$ac_compile") 2>conftest.er1
23781 grep -v '^ *+' conftest.er1 >conftest.err
23783 cat conftest.err >&5
23784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23785 (exit $ac_status); } && {
23786 test -z "$ac_c_werror_flag" ||
23787 test ! -s conftest.err
23788 } && test -s conftest.$ac_objext; then
23789 # It does; now see whether it defined to BIG_ENDIAN or not.
23790 cat >conftest.$ac_ext <<_ACEOF
23793 cat confdefs.h >>conftest.$ac_ext
23794 cat >>conftest.$ac_ext <<_ACEOF
23795 /* end confdefs.h. */
23796 #include <sys/types.h>
23797 #include <sys/param.h>
23802 #if BYTE_ORDER != BIG_ENDIAN
23810 rm -f conftest.$ac_objext
23811 if { (ac_try="$ac_compile"
23812 case "(($ac_try" in
23813 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23814 *) ac_try_echo
=$ac_try;;
23816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23817 (eval "$ac_compile") 2>conftest.er1
23819 grep -v '^ *+' conftest.er1
>conftest.err
23821 cat conftest.err
>&5
23822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23823 (exit $ac_status); } && {
23824 test -z "$ac_c_werror_flag" ||
23825 test ! -s conftest.err
23826 } && test -s conftest.
$ac_objext; then
23827 ac_cv_c_bigendian
=yes
23829 echo "$as_me: failed program was:" >&5
23830 sed 's/^/| /' conftest.
$ac_ext >&5
23832 ac_cv_c_bigendian
=no
23835 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23837 echo "$as_me: failed program was:" >&5
23838 sed 's/^/| /' conftest.
$ac_ext >&5
23840 # It does not; compile a test program.
23841 if test "$cross_compiling" = yes; then
23842 # try to guess the endianness by grepping values into an object file
23843 ac_cv_c_bigendian
=unknown
23844 cat >conftest.
$ac_ext <<_ACEOF
23847 cat confdefs.h
>>conftest.
$ac_ext
23848 cat >>conftest.
$ac_ext <<_ACEOF
23849 /* end confdefs.h. */
23850 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23851 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23852 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
23853 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23854 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23855 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
23859 _ascii (); _ebcdic ();
23864 rm -f conftest.
$ac_objext
23865 if { (ac_try
="$ac_compile"
23866 case "(($ac_try" in
23867 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23868 *) ac_try_echo=$ac_try;;
23870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23871 (eval "$ac_compile") 2>conftest.er1
23873 grep -v '^ *+' conftest.er1 >conftest.err
23875 cat conftest.err >&5
23876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23877 (exit $ac_status); } && {
23878 test -z "$ac_c_werror_flag" ||
23879 test ! -s conftest.err
23880 } && test -s conftest.$ac_objext; then
23881 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
23882 ac_cv_c_bigendian=yes
23884 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23885 if test "$ac_cv_c_bigendian" = unknown; then
23886 ac_cv_c_bigendian=no
23888 # finding both strings is unlikely to happen, but who knows?
23889 ac_cv_c_bigendian=unknown
23893 echo "$as_me: failed program was:" >&5
23894 sed 's/^/| /' conftest.$ac_ext >&5
23899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23901 cat >conftest.$ac_ext <<_ACEOF
23904 cat confdefs.h >>conftest.$ac_ext
23905 cat >>conftest.$ac_ext <<_ACEOF
23906 /* end confdefs.h. */
23907 $ac_includes_default
23912 /* Are we little or big endian? From Harbison&Steele. */
23916 char c[sizeof (long int)];
23919 return u.c[sizeof (long int) - 1] == 1;
23925 rm -f conftest$ac_exeext
23926 if { (ac_try="$ac_link"
23927 case "(($ac_try" in
23928 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23929 *) ac_try_echo
=$ac_try;;
23931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23932 (eval "$ac_link") 2>&5
23934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23935 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23936 { (case "(($ac_try" in
23937 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23938 *) ac_try_echo=$ac_try;;
23940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23941 (eval "$ac_try") 2>&5
23943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23944 (exit $ac_status); }; }; then
23945 ac_cv_c_bigendian=no
23947 echo "$as_me: program exited with status $ac_status" >&5
23948 echo "$as_me: failed program was:" >&5
23949 sed 's/^/| /' conftest.$ac_ext >&5
23951 ( exit $ac_status )
23952 ac_cv_c_bigendian=yes
23954 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23962 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
23963 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
23964 case $ac_cv_c_bigendian in
23967 cat >>confdefs.h <<\_ACEOF
23968 #define WORDS_BIGENDIAN 1
23974 { { echo "$as_me:$LINENO: error: unknown endianness
23975 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
23976 echo "$as_me: error: unknown endianness
23977 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
23978 { (exit 1); exit 1; }; } ;;
23982 # Check whether right shifting a negative integer extends the sign bit
23983 # or fills with zeros (like the Cray J90, according to Tim Peters).
23984 { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
23985 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6; }
23986 if test "${ac_cv_rshift_extends_sign+set}" = set; then
23987 echo $ECHO_N "(cached) $ECHO_C" >&6
23990 if test "$cross_compiling" = yes; then
23991 ac_cv_rshift_extends_sign=yes
23993 cat >conftest.$ac_ext <<_ACEOF
23996 cat confdefs.h >>conftest.$ac_ext
23997 cat >>conftest.$ac_ext <<_ACEOF
23998 /* end confdefs.h. */
24002 exit(((-1)>>3 == -1) ? 0 : 1);
24006 rm -f conftest$ac_exeext
24007 if { (ac_try="$ac_link"
24008 case "(($ac_try" in
24009 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24010 *) ac_try_echo
=$ac_try;;
24012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24013 (eval "$ac_link") 2>&5
24015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24016 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24017 { (case "(($ac_try" in
24018 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24019 *) ac_try_echo=$ac_try;;
24021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24022 (eval "$ac_try") 2>&5
24024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24025 (exit $ac_status); }; }; then
24026 ac_cv_rshift_extends_sign=yes
24028 echo "$as_me: program exited with status $ac_status" >&5
24029 echo "$as_me: failed program was:" >&5
24030 sed 's/^/| /' conftest.$ac_ext >&5
24032 ( exit $ac_status )
24033 ac_cv_rshift_extends_sign=no
24035 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24041 { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
24042 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
24043 if test "$ac_cv_rshift_extends_sign" = no
24046 cat >>confdefs.h <<\_ACEOF
24047 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
24052 # check for getc_unlocked and related locking functions
24053 { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
24054 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6; }
24055 if test "${ac_cv_have_getc_unlocked+set}" = set; then
24056 echo $ECHO_N "(cached) $ECHO_C" >&6
24059 cat >conftest.$ac_ext <<_ACEOF
24062 cat confdefs.h >>conftest.$ac_ext
24063 cat >>conftest.$ac_ext <<_ACEOF
24064 /* end confdefs.h. */
24070 FILE *f = fopen("/dev/null", "r");
24079 rm -f conftest.$ac_objext conftest$ac_exeext
24080 if { (ac_try="$ac_link"
24081 case "(($ac_try" in
24082 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24083 *) ac_try_echo
=$ac_try;;
24085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24086 (eval "$ac_link") 2>conftest.er1
24088 grep -v '^ *+' conftest.er1
>conftest.err
24090 cat conftest.err
>&5
24091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24092 (exit $ac_status); } && {
24093 test -z "$ac_c_werror_flag" ||
24094 test ! -s conftest.err
24095 } && test -s conftest
$ac_exeext &&
24096 $as_test_x conftest
$ac_exeext; then
24097 ac_cv_have_getc_unlocked
=yes
24099 echo "$as_me: failed program was:" >&5
24100 sed 's/^/| /' conftest.
$ac_ext >&5
24102 ac_cv_have_getc_unlocked
=no
24105 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24106 conftest
$ac_exeext conftest.
$ac_ext
24109 { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
24110 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
24111 if test "$ac_cv_have_getc_unlocked" = yes
24114 cat >>confdefs.h
<<\_ACEOF
24115 #define HAVE_GETC_UNLOCKED 1
24120 # check where readline lives
24121 # save the value of LIBS so we don't actually link Python with readline
24122 LIBS_no_readline
=$LIBS
24124 # On some systems we need to link readline to a termcap compatible
24125 # library. NOTE: Keep the precedence of listed libraries synchronised
24127 py_cv_lib_readline
=no
24128 { echo "$as_me:$LINENO: checking how to link readline libs" >&5
24129 echo $ECHO_N "checking how to link readline libs... $ECHO_C" >&6; }
24130 for py_libtermcap
in "" ncursesw ncurses curses termcap
; do
24131 if test -z "$py_libtermcap"; then
24132 READLINE_LIBS
="-lreadline"
24134 READLINE_LIBS
="-lreadline -l$py_libtermcap"
24136 LIBS
="$READLINE_LIBS $LIBS_no_readline"
24137 cat >conftest.
$ac_ext <<_ACEOF
24140 cat confdefs.h
>>conftest.
$ac_ext
24141 cat >>conftest.
$ac_ext <<_ACEOF
24142 /* end confdefs.h. */
24144 /* Override any GCC internal prototype to avoid an error.
24145 Use char because int might match the return type of a GCC
24146 builtin and then its argument prototype would still apply. */
24154 return readline ();
24159 rm -f conftest.
$ac_objext conftest
$ac_exeext
24160 if { (ac_try
="$ac_link"
24161 case "(($ac_try" in
24162 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24163 *) ac_try_echo=$ac_try;;
24165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24166 (eval "$ac_link") 2>conftest.er1
24168 grep -v '^ *+' conftest.er1 >conftest.err
24170 cat conftest.err >&5
24171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24172 (exit $ac_status); } && {
24173 test -z "$ac_c_werror_flag" ||
24174 test ! -s conftest.err
24175 } && test -s conftest$ac_exeext &&
24176 $as_test_x conftest$ac_exeext; then
24177 py_cv_lib_readline=yes
24179 echo "$as_me: failed program was:" >&5
24180 sed 's/^/| /' conftest.$ac_ext >&5
24185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24186 conftest$ac_exeext conftest.$ac_ext
24187 if test $py_cv_lib_readline = yes; then
24191 # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts
24192 #AC_SUBST([READLINE_LIBS])
24193 if test $py_cv_lib_readline = no; then
24194 { echo "$as_me:$LINENO: result: none" >&5
24195 echo "${ECHO_T}none" >&6; }
24197 { echo "$as_me:$LINENO: result: $READLINE_LIBS" >&5
24198 echo "${ECHO_T}$READLINE_LIBS" >&6; }
24200 cat >>confdefs.h <<\_ACEOF
24201 #define HAVE_LIBREADLINE 1
24206 # check for readline 2.1
24207 { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
24208 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6; }
24209 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
24210 echo $ECHO_N "(cached) $ECHO_C" >&6
24212 ac_check_lib_save_LIBS=$LIBS
24213 LIBS="-lreadline $READLINE_LIBS $LIBS"
24214 cat >conftest.$ac_ext <<_ACEOF
24217 cat confdefs.h >>conftest.$ac_ext
24218 cat >>conftest.$ac_ext <<_ACEOF
24219 /* end confdefs.h. */
24221 /* Override any GCC internal prototype to avoid an error.
24222 Use char because int might match the return type of a GCC
24223 builtin and then its argument prototype would still apply. */
24227 char rl_callback_handler_install ();
24231 return rl_callback_handler_install ();
24236 rm -f conftest.$ac_objext conftest$ac_exeext
24237 if { (ac_try="$ac_link"
24238 case "(($ac_try" in
24239 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24240 *) ac_try_echo
=$ac_try;;
24242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24243 (eval "$ac_link") 2>conftest.er1
24245 grep -v '^ *+' conftest.er1
>conftest.err
24247 cat conftest.err
>&5
24248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24249 (exit $ac_status); } && {
24250 test -z "$ac_c_werror_flag" ||
24251 test ! -s conftest.err
24252 } && test -s conftest
$ac_exeext &&
24253 $as_test_x conftest
$ac_exeext; then
24254 ac_cv_lib_readline_rl_callback_handler_install
=yes
24256 echo "$as_me: failed program was:" >&5
24257 sed 's/^/| /' conftest.
$ac_ext >&5
24259 ac_cv_lib_readline_rl_callback_handler_install
=no
24262 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24263 conftest
$ac_exeext conftest.
$ac_ext
24264 LIBS
=$ac_check_lib_save_LIBS
24266 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
24267 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
24268 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
24270 cat >>confdefs.h
<<\_ACEOF
24271 #define HAVE_RL_CALLBACK 1
24277 # check for readline 2.2
24278 cat >conftest.
$ac_ext <<_ACEOF
24281 cat confdefs.h
>>conftest.
$ac_ext
24282 cat >>conftest.
$ac_ext <<_ACEOF
24283 /* end confdefs.h. */
24284 #include <readline/readline.h>
24286 if { (ac_try
="$ac_cpp conftest.$ac_ext"
24287 case "(($ac_try" in
24288 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24289 *) ac_try_echo=$ac_try;;
24291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24292 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24294 grep -v '^ *+' conftest.er1 >conftest.err
24296 cat conftest.err >&5
24297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24298 (exit $ac_status); } >/dev/null && {
24299 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24300 test ! -s conftest.err
24304 echo "$as_me: failed program was:" >&5
24305 sed 's/^/| /' conftest.$ac_ext >&5
24310 rm -f conftest.err conftest.$ac_ext
24311 if test $have_readline = yes
24313 cat >conftest.$ac_ext <<_ACEOF
24316 cat confdefs.h >>conftest.$ac_ext
24317 cat >>conftest.$ac_ext <<_ACEOF
24318 /* end confdefs.h. */
24319 #include <readline/readline.h>
24322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24323 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
24325 cat >>confdefs.h <<\_ACEOF
24326 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
24332 cat >conftest.$ac_ext <<_ACEOF
24335 cat confdefs.h >>conftest.$ac_ext
24336 cat >>conftest.$ac_ext <<_ACEOF
24337 /* end confdefs.h. */
24338 #include <readline/readline.h>
24341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24342 $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then
24344 cat >>confdefs.h <<\_ACEOF
24345 #define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1
24353 # check for readline 4.0
24354 { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
24355 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6; }
24356 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
24357 echo $ECHO_N "(cached) $ECHO_C" >&6
24359 ac_check_lib_save_LIBS=$LIBS
24360 LIBS="-lreadline $READLINE_LIBS $LIBS"
24361 cat >conftest.$ac_ext <<_ACEOF
24364 cat confdefs.h >>conftest.$ac_ext
24365 cat >>conftest.$ac_ext <<_ACEOF
24366 /* end confdefs.h. */
24368 /* Override any GCC internal prototype to avoid an error.
24369 Use char because int might match the return type of a GCC
24370 builtin and then its argument prototype would still apply. */
24374 char rl_pre_input_hook ();
24378 return rl_pre_input_hook ();
24383 rm -f conftest.$ac_objext conftest$ac_exeext
24384 if { (ac_try="$ac_link"
24385 case "(($ac_try" in
24386 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24387 *) ac_try_echo
=$ac_try;;
24389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24390 (eval "$ac_link") 2>conftest.er1
24392 grep -v '^ *+' conftest.er1
>conftest.err
24394 cat conftest.err
>&5
24395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24396 (exit $ac_status); } && {
24397 test -z "$ac_c_werror_flag" ||
24398 test ! -s conftest.err
24399 } && test -s conftest
$ac_exeext &&
24400 $as_test_x conftest
$ac_exeext; then
24401 ac_cv_lib_readline_rl_pre_input_hook
=yes
24403 echo "$as_me: failed program was:" >&5
24404 sed 's/^/| /' conftest.
$ac_ext >&5
24406 ac_cv_lib_readline_rl_pre_input_hook
=no
24409 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24410 conftest
$ac_exeext conftest.
$ac_ext
24411 LIBS
=$ac_check_lib_save_LIBS
24413 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
24414 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
24415 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
24417 cat >>confdefs.h
<<\_ACEOF
24418 #define HAVE_RL_PRE_INPUT_HOOK 1
24425 { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5
24426 echo $ECHO_N "checking for rl_completion_display_matches_hook in -lreadline... $ECHO_C" >&6; }
24427 if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
24428 echo $ECHO_N "(cached) $ECHO_C" >&6
24430 ac_check_lib_save_LIBS
=$LIBS
24431 LIBS
="-lreadline $READLINE_LIBS $LIBS"
24432 cat >conftest.
$ac_ext <<_ACEOF
24435 cat confdefs.h
>>conftest.
$ac_ext
24436 cat >>conftest.
$ac_ext <<_ACEOF
24437 /* end confdefs.h. */
24439 /* Override any GCC internal prototype to avoid an error.
24440 Use char because int might match the return type of a GCC
24441 builtin and then its argument prototype would still apply. */
24445 char rl_completion_display_matches_hook ();
24449 return rl_completion_display_matches_hook ();
24454 rm -f conftest.
$ac_objext conftest
$ac_exeext
24455 if { (ac_try
="$ac_link"
24456 case "(($ac_try" in
24457 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24458 *) ac_try_echo=$ac_try;;
24460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24461 (eval "$ac_link") 2>conftest.er1
24463 grep -v '^ *+' conftest.er1 >conftest.err
24465 cat conftest.err >&5
24466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24467 (exit $ac_status); } && {
24468 test -z "$ac_c_werror_flag" ||
24469 test ! -s conftest.err
24470 } && test -s conftest$ac_exeext &&
24471 $as_test_x conftest$ac_exeext; then
24472 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
24474 echo "$as_me: failed program was:" >&5
24475 sed 's/^/| /' conftest.$ac_ext >&5
24477 ac_cv_lib_readline_rl_completion_display_matches_hook=no
24480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24481 conftest$ac_exeext conftest.$ac_ext
24482 LIBS=$ac_check_lib_save_LIBS
24484 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
24485 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
24486 if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then
24488 cat >>confdefs.h <<\_ACEOF
24489 #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
24495 # check for readline 4.2
24496 { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
24497 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; }
24498 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
24499 echo $ECHO_N "(cached) $ECHO_C" >&6
24501 ac_check_lib_save_LIBS=$LIBS
24502 LIBS="-lreadline $READLINE_LIBS $LIBS"
24503 cat >conftest.$ac_ext <<_ACEOF
24506 cat confdefs.h >>conftest.$ac_ext
24507 cat >>conftest.$ac_ext <<_ACEOF
24508 /* end confdefs.h. */
24510 /* Override any GCC internal prototype to avoid an error.
24511 Use char because int might match the return type of a GCC
24512 builtin and then its argument prototype would still apply. */
24516 char rl_completion_matches ();
24520 return rl_completion_matches ();
24525 rm -f conftest.$ac_objext conftest$ac_exeext
24526 if { (ac_try="$ac_link"
24527 case "(($ac_try" in
24528 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24529 *) ac_try_echo
=$ac_try;;
24531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24532 (eval "$ac_link") 2>conftest.er1
24534 grep -v '^ *+' conftest.er1
>conftest.err
24536 cat conftest.err
>&5
24537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24538 (exit $ac_status); } && {
24539 test -z "$ac_c_werror_flag" ||
24540 test ! -s conftest.err
24541 } && test -s conftest
$ac_exeext &&
24542 $as_test_x conftest
$ac_exeext; then
24543 ac_cv_lib_readline_rl_completion_matches
=yes
24545 echo "$as_me: failed program was:" >&5
24546 sed 's/^/| /' conftest.
$ac_ext >&5
24548 ac_cv_lib_readline_rl_completion_matches
=no
24551 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24552 conftest
$ac_exeext conftest.
$ac_ext
24553 LIBS
=$ac_check_lib_save_LIBS
24555 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
24556 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
24557 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
24559 cat >>confdefs.h
<<\_ACEOF
24560 #define HAVE_RL_COMPLETION_MATCHES 1
24566 # also in readline 4.2
24567 cat >conftest.
$ac_ext <<_ACEOF
24570 cat confdefs.h
>>conftest.
$ac_ext
24571 cat >>conftest.
$ac_ext <<_ACEOF
24572 /* end confdefs.h. */
24573 #include <readline/readline.h>
24575 if { (ac_try
="$ac_cpp conftest.$ac_ext"
24576 case "(($ac_try" in
24577 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24578 *) ac_try_echo=$ac_try;;
24580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24581 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24583 grep -v '^ *+' conftest.er1 >conftest.err
24585 cat conftest.err >&5
24586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24587 (exit $ac_status); } >/dev/null && {
24588 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24589 test ! -s conftest.err
24593 echo "$as_me: failed program was:" >&5
24594 sed 's/^/| /' conftest.$ac_ext >&5
24599 rm -f conftest.err conftest.$ac_ext
24600 if test $have_readline = yes
24602 cat >conftest.$ac_ext <<_ACEOF
24605 cat confdefs.h >>conftest.$ac_ext
24606 cat >>conftest.$ac_ext <<_ACEOF
24607 /* end confdefs.h. */
24608 #include <readline/readline.h>
24611 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24612 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
24614 cat >>confdefs.h <<\_ACEOF
24615 #define HAVE_RL_CATCH_SIGNAL 1
24623 # End of readline checks: restore LIBS
24624 LIBS=$LIBS_no_readline
24626 { echo "$as_me:$LINENO: checking for broken nice()" >&5
24627 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; }
24628 if test "${ac_cv_broken_nice+set}" = set; then
24629 echo $ECHO_N "(cached) $ECHO_C" >&6
24632 if test "$cross_compiling" = yes; then
24633 ac_cv_broken_nice=no
24635 cat >conftest.$ac_ext <<_ACEOF
24638 cat confdefs.h >>conftest.$ac_ext
24639 cat >>conftest.$ac_ext <<_ACEOF
24640 /* end confdefs.h. */
24644 int val1 = nice(1);
24645 if (val1 != -1 && val1 == nice(2))
24651 rm -f conftest$ac_exeext
24652 if { (ac_try="$ac_link"
24653 case "(($ac_try" in
24654 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24655 *) ac_try_echo
=$ac_try;;
24657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24658 (eval "$ac_link") 2>&5
24660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24661 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24662 { (case "(($ac_try" in
24663 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24664 *) ac_try_echo=$ac_try;;
24666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24667 (eval "$ac_try") 2>&5
24669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24670 (exit $ac_status); }; }; then
24671 ac_cv_broken_nice=yes
24673 echo "$as_me: program exited with status $ac_status" >&5
24674 echo "$as_me: failed program was:" >&5
24675 sed 's/^/| /' conftest.$ac_ext >&5
24677 ( exit $ac_status )
24678 ac_cv_broken_nice=no
24680 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24686 { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
24687 echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
24688 if test "$ac_cv_broken_nice" = yes
24691 cat >>confdefs.h <<\_ACEOF
24692 #define HAVE_BROKEN_NICE 1
24697 { echo "$as_me:$LINENO: checking for broken poll()" >&5
24698 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; }
24699 if test "$cross_compiling" = yes; then
24700 ac_cv_broken_poll=no
24702 cat >conftest.$ac_ext <<_ACEOF
24705 cat confdefs.h >>conftest.$ac_ext
24706 cat >>conftest.$ac_ext <<_ACEOF
24707 /* end confdefs.h. */
24713 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
24717 int poll_test = poll (&poll_struct, 1, 0);
24723 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
24734 rm -f conftest$ac_exeext
24735 if { (ac_try="$ac_link"
24736 case "(($ac_try" in
24737 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24738 *) ac_try_echo
=$ac_try;;
24740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24741 (eval "$ac_link") 2>&5
24743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24744 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24745 { (case "(($ac_try" in
24746 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24747 *) ac_try_echo=$ac_try;;
24749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24750 (eval "$ac_try") 2>&5
24752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24753 (exit $ac_status); }; }; then
24754 ac_cv_broken_poll=yes
24756 echo "$as_me: program exited with status $ac_status" >&5
24757 echo "$as_me: failed program was:" >&5
24758 sed 's/^/| /' conftest.$ac_ext >&5
24760 ( exit $ac_status )
24761 ac_cv_broken_poll=no
24763 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24767 { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
24768 echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
24769 if test "$ac_cv_broken_poll" = yes
24772 cat >>confdefs.h <<\_ACEOF
24773 #define HAVE_BROKEN_POLL 1
24778 # Before we can test tzset, we need to check if struct tm has a tm_zone
24779 # (which is not required by ISO C or UNIX spec) and/or if we support
24781 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
24782 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
24783 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
24784 echo $ECHO_N "(cached) $ECHO_C" >&6
24786 cat >conftest.$ac_ext <<_ACEOF
24789 cat confdefs.h >>conftest.$ac_ext
24790 cat >>conftest.$ac_ext <<_ACEOF
24791 /* end confdefs.h. */
24792 #include <sys/types.h>
24793 #include <$ac_cv_struct_tm>
24799 static struct tm ac_aggr;
24800 if (ac_aggr.tm_zone)
24806 rm -f conftest.$ac_objext
24807 if { (ac_try="$ac_compile"
24808 case "(($ac_try" in
24809 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24810 *) ac_try_echo
=$ac_try;;
24812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24813 (eval "$ac_compile") 2>conftest.er1
24815 grep -v '^ *+' conftest.er1
>conftest.err
24817 cat conftest.err
>&5
24818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24819 (exit $ac_status); } && {
24820 test -z "$ac_c_werror_flag" ||
24821 test ! -s conftest.err
24822 } && test -s conftest.
$ac_objext; then
24823 ac_cv_member_struct_tm_tm_zone
=yes
24825 echo "$as_me: failed program was:" >&5
24826 sed 's/^/| /' conftest.
$ac_ext >&5
24828 cat >conftest.
$ac_ext <<_ACEOF
24831 cat confdefs.h
>>conftest.
$ac_ext
24832 cat >>conftest.
$ac_ext <<_ACEOF
24833 /* end confdefs.h. */
24834 #include <sys/types.h>
24835 #include <$ac_cv_struct_tm>
24841 static struct tm ac_aggr;
24842 if (sizeof ac_aggr.tm_zone)
24848 rm -f conftest.
$ac_objext
24849 if { (ac_try
="$ac_compile"
24850 case "(($ac_try" in
24851 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24852 *) ac_try_echo=$ac_try;;
24854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24855 (eval "$ac_compile") 2>conftest.er1
24857 grep -v '^ *+' conftest.er1 >conftest.err
24859 cat conftest.err >&5
24860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24861 (exit $ac_status); } && {
24862 test -z "$ac_c_werror_flag" ||
24863 test ! -s conftest.err
24864 } && test -s conftest.$ac_objext; then
24865 ac_cv_member_struct_tm_tm_zone=yes
24867 echo "$as_me: failed program was:" >&5
24868 sed 's/^/| /' conftest.$ac_ext >&5
24870 ac_cv_member_struct_tm_tm_zone=no
24873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24878 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
24879 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
24880 if test $ac_cv_member_struct_tm_tm_zone = yes; then
24882 cat >>confdefs.h <<_ACEOF
24883 #define HAVE_STRUCT_TM_TM_ZONE 1
24889 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
24891 cat >>confdefs.h <<\_ACEOF
24892 #define HAVE_TM_ZONE 1
24896 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
24897 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
24898 if test "${ac_cv_have_decl_tzname+set}" = set; then
24899 echo $ECHO_N "(cached) $ECHO_C" >&6
24901 cat >conftest.$ac_ext <<_ACEOF
24904 cat confdefs.h >>conftest.$ac_ext
24905 cat >>conftest.$ac_ext <<_ACEOF
24906 /* end confdefs.h. */
24920 rm -f conftest.$ac_objext
24921 if { (ac_try="$ac_compile"
24922 case "(($ac_try" in
24923 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24924 *) ac_try_echo
=$ac_try;;
24926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24927 (eval "$ac_compile") 2>conftest.er1
24929 grep -v '^ *+' conftest.er1
>conftest.err
24931 cat conftest.err
>&5
24932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24933 (exit $ac_status); } && {
24934 test -z "$ac_c_werror_flag" ||
24935 test ! -s conftest.err
24936 } && test -s conftest.
$ac_objext; then
24937 ac_cv_have_decl_tzname
=yes
24939 echo "$as_me: failed program was:" >&5
24940 sed 's/^/| /' conftest.
$ac_ext >&5
24942 ac_cv_have_decl_tzname
=no
24945 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24947 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
24948 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
24949 if test $ac_cv_have_decl_tzname = yes; then
24951 cat >>confdefs.h
<<_ACEOF
24952 #define HAVE_DECL_TZNAME 1
24957 cat >>confdefs.h
<<_ACEOF
24958 #define HAVE_DECL_TZNAME 0
24965 { echo "$as_me:$LINENO: checking for tzname" >&5
24966 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
24967 if test "${ac_cv_var_tzname+set}" = set; then
24968 echo $ECHO_N "(cached) $ECHO_C" >&6
24970 cat >conftest.
$ac_ext <<_ACEOF
24973 cat confdefs.h
>>conftest.
$ac_ext
24974 cat >>conftest.
$ac_ext <<_ACEOF
24975 /* end confdefs.h. */
24977 #if !HAVE_DECL_TZNAME
24978 extern char *tzname[];
24984 return tzname[0][0];
24989 rm -f conftest.
$ac_objext conftest
$ac_exeext
24990 if { (ac_try
="$ac_link"
24991 case "(($ac_try" in
24992 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24993 *) ac_try_echo=$ac_try;;
24995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24996 (eval "$ac_link") 2>conftest.er1
24998 grep -v '^ *+' conftest.er1 >conftest.err
25000 cat conftest.err >&5
25001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25002 (exit $ac_status); } && {
25003 test -z "$ac_c_werror_flag" ||
25004 test ! -s conftest.err
25005 } && test -s conftest$ac_exeext &&
25006 $as_test_x conftest$ac_exeext; then
25007 ac_cv_var_tzname=yes
25009 echo "$as_me: failed program was:" >&5
25010 sed 's/^/| /' conftest.$ac_ext >&5
25012 ac_cv_var_tzname=no
25015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25016 conftest$ac_exeext conftest.$ac_ext
25018 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
25019 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
25020 if test $ac_cv_var_tzname = yes; then
25022 cat >>confdefs.h <<\_ACEOF
25023 #define HAVE_TZNAME 1
25030 # check tzset(3) exists and works like we expect it to
25031 { echo "$as_me:$LINENO: checking for working tzset()" >&5
25032 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; }
25033 if test "${ac_cv_working_tzset+set}" = set; then
25034 echo $ECHO_N "(cached) $ECHO_C" >&6
25037 if test "$cross_compiling" = yes; then
25038 ac_cv_working_tzset=no
25040 cat >conftest.$ac_ext <<_ACEOF
25043 cat confdefs.h >>conftest.$ac_ext
25044 cat >>conftest.$ac_ext <<_ACEOF
25045 /* end confdefs.h. */
25047 #include <stdlib.h>
25049 #include <string.h>
25052 extern char *tzname[];
25057 /* Note that we need to ensure that not only does tzset(3)
25058 do 'something' with localtime, but it works as documented
25059 in the library reference and as expected by the test suite.
25060 This includes making sure that tzname is set properly if
25061 tm->tm_zone does not exist since it is the alternative way
25062 of getting timezone info.
25064 Red Hat 6.2 doesn't understand the southern hemisphere
25065 after New Year's Day.
25068 time_t groundhogday = 1044144000; /* GMT-based */
25069 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
25071 putenv("TZ=UTC+0");
25073 if (localtime(&groundhogday)->tm_hour != 0)
25076 /* For UTC, tzname[1] is sometimes "", sometimes " " */
25077 if (strcmp(tzname[0], "UTC") ||
25078 (tzname[1][0] != 0 && tzname[1][0] != ' '))
25082 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
25084 if (localtime(&groundhogday)->tm_hour != 19)
25087 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
25091 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
25093 if (localtime(&groundhogday)->tm_hour != 11)
25096 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
25100 #if HAVE_STRUCT_TM_TM_ZONE
25101 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
25103 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
25111 rm -f conftest$ac_exeext
25112 if { (ac_try="$ac_link"
25113 case "(($ac_try" in
25114 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25115 *) ac_try_echo
=$ac_try;;
25117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25118 (eval "$ac_link") 2>&5
25120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25121 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
25122 { (case "(($ac_try" in
25123 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25124 *) ac_try_echo=$ac_try;;
25126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25127 (eval "$ac_try") 2>&5
25129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25130 (exit $ac_status); }; }; then
25131 ac_cv_working_tzset=yes
25133 echo "$as_me: program exited with status $ac_status" >&5
25134 echo "$as_me: failed program was:" >&5
25135 sed 's/^/| /' conftest.$ac_ext >&5
25137 ( exit $ac_status )
25138 ac_cv_working_tzset=no
25140 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25146 { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
25147 echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
25148 if test "$ac_cv_working_tzset" = yes
25151 cat >>confdefs.h <<\_ACEOF
25152 #define HAVE_WORKING_TZSET 1
25157 # Look for subsecond timestamps in struct stat
25158 { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
25159 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6; }
25160 if test "${ac_cv_stat_tv_nsec+set}" = set; then
25161 echo $ECHO_N "(cached) $ECHO_C" >&6
25163 cat >conftest.$ac_ext <<_ACEOF
25166 cat confdefs.h >>conftest.$ac_ext
25167 cat >>conftest.$ac_ext <<_ACEOF
25168 /* end confdefs.h. */
25169 #include <sys/stat.h>
25175 st.st_mtim.tv_nsec = 1;
25181 rm -f conftest.$ac_objext
25182 if { (ac_try="$ac_compile"
25183 case "(($ac_try" in
25184 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25185 *) ac_try_echo
=$ac_try;;
25187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25188 (eval "$ac_compile") 2>conftest.er1
25190 grep -v '^ *+' conftest.er1
>conftest.err
25192 cat conftest.err
>&5
25193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25194 (exit $ac_status); } && {
25195 test -z "$ac_c_werror_flag" ||
25196 test ! -s conftest.err
25197 } && test -s conftest.
$ac_objext; then
25198 ac_cv_stat_tv_nsec
=yes
25200 echo "$as_me: failed program was:" >&5
25201 sed 's/^/| /' conftest.
$ac_ext >&5
25203 ac_cv_stat_tv_nsec
=no
25206 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25209 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
25210 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
25211 if test "$ac_cv_stat_tv_nsec" = yes
25214 cat >>confdefs.h
<<\_ACEOF
25215 #define HAVE_STAT_TV_NSEC 1
25220 # Look for BSD style subsecond timestamps in struct stat
25221 { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
25222 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6; }
25223 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
25224 echo $ECHO_N "(cached) $ECHO_C" >&6
25226 cat >conftest.
$ac_ext <<_ACEOF
25229 cat confdefs.h
>>conftest.
$ac_ext
25230 cat >>conftest.
$ac_ext <<_ACEOF
25231 /* end confdefs.h. */
25232 #include <sys/stat.h>
25238 st.st_mtimespec.tv_nsec = 1;
25244 rm -f conftest.
$ac_objext
25245 if { (ac_try
="$ac_compile"
25246 case "(($ac_try" in
25247 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25248 *) ac_try_echo=$ac_try;;
25250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25251 (eval "$ac_compile") 2>conftest.er1
25253 grep -v '^ *+' conftest.er1 >conftest.err
25255 cat conftest.err >&5
25256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25257 (exit $ac_status); } && {
25258 test -z "$ac_c_werror_flag" ||
25259 test ! -s conftest.err
25260 } && test -s conftest.$ac_objext; then
25261 ac_cv_stat_tv_nsec2=yes
25263 echo "$as_me: failed program was:" >&5
25264 sed 's/^/| /' conftest.$ac_ext >&5
25266 ac_cv_stat_tv_nsec2=no
25269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25272 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
25273 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
25274 if test "$ac_cv_stat_tv_nsec2" = yes
25277 cat >>confdefs.h <<\_ACEOF
25278 #define HAVE_STAT_TV_NSEC2 1
25283 # On HP/UX 11.0, mvwdelch is a block with a return statement
25284 { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
25285 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6; }
25286 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
25287 echo $ECHO_N "(cached) $ECHO_C" >&6
25289 cat >conftest.$ac_ext <<_ACEOF
25292 cat confdefs.h >>conftest.$ac_ext
25293 cat >>conftest.$ac_ext <<_ACEOF
25294 /* end confdefs.h. */
25295 #include <curses.h>
25301 rtn = mvwdelch(0,0,0);
25307 rm -f conftest.$ac_objext
25308 if { (ac_try="$ac_compile"
25309 case "(($ac_try" in
25310 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25311 *) ac_try_echo
=$ac_try;;
25313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25314 (eval "$ac_compile") 2>conftest.er1
25316 grep -v '^ *+' conftest.er1
>conftest.err
25318 cat conftest.err
>&5
25319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25320 (exit $ac_status); } && {
25321 test -z "$ac_c_werror_flag" ||
25322 test ! -s conftest.err
25323 } && test -s conftest.
$ac_objext; then
25324 ac_cv_mvwdelch_is_expression
=yes
25326 echo "$as_me: failed program was:" >&5
25327 sed 's/^/| /' conftest.
$ac_ext >&5
25329 ac_cv_mvwdelch_is_expression
=no
25332 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25335 { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
25336 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
25338 if test "$ac_cv_mvwdelch_is_expression" = yes
25341 cat >>confdefs.h
<<\_ACEOF
25342 #define MVWDELCH_IS_EXPRESSION 1
25347 { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
25348 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6; }
25349 if test "${ac_cv_window_has_flags+set}" = set; then
25350 echo $ECHO_N "(cached) $ECHO_C" >&6
25352 cat >conftest.
$ac_ext <<_ACEOF
25355 cat confdefs.h
>>conftest.
$ac_ext
25356 cat >>conftest.
$ac_ext <<_ACEOF
25357 /* end confdefs.h. */
25358 #include <curses.h>
25370 rm -f conftest.
$ac_objext
25371 if { (ac_try
="$ac_compile"
25372 case "(($ac_try" in
25373 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25374 *) ac_try_echo=$ac_try;;
25376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25377 (eval "$ac_compile") 2>conftest.er1
25379 grep -v '^ *+' conftest.er1 >conftest.err
25381 cat conftest.err >&5
25382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25383 (exit $ac_status); } && {
25384 test -z "$ac_c_werror_flag" ||
25385 test ! -s conftest.err
25386 } && test -s conftest.$ac_objext; then
25387 ac_cv_window_has_flags=yes
25389 echo "$as_me: failed program was:" >&5
25390 sed 's/^/| /' conftest.$ac_ext >&5
25392 ac_cv_window_has_flags=no
25395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25398 { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
25399 echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
25402 if test "$ac_cv_window_has_flags" = yes
25405 cat >>confdefs.h <<\_ACEOF
25406 #define WINDOW_HAS_FLAGS 1
25411 { echo "$as_me:$LINENO: checking for is_term_resized" >&5
25412 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; }
25413 cat >conftest.$ac_ext <<_ACEOF
25416 cat confdefs.h >>conftest.$ac_ext
25417 cat >>conftest.$ac_ext <<_ACEOF
25418 /* end confdefs.h. */
25419 #include <curses.h>
25423 void *x=is_term_resized
25428 rm -f conftest.$ac_objext
25429 if { (ac_try="$ac_compile"
25430 case "(($ac_try" in
25431 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25432 *) ac_try_echo
=$ac_try;;
25434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25435 (eval "$ac_compile") 2>conftest.er1
25437 grep -v '^ *+' conftest.er1
>conftest.err
25439 cat conftest.err
>&5
25440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25441 (exit $ac_status); } && {
25442 test -z "$ac_c_werror_flag" ||
25443 test ! -s conftest.err
25444 } && test -s conftest.
$ac_objext; then
25446 cat >>confdefs.h
<<\_ACEOF
25447 #define HAVE_CURSES_IS_TERM_RESIZED 1
25450 { echo "$as_me:$LINENO: result: yes" >&5
25451 echo "${ECHO_T}yes" >&6; }
25453 echo "$as_me: failed program was:" >&5
25454 sed 's/^/| /' conftest.
$ac_ext >&5
25456 { echo "$as_me:$LINENO: result: no" >&5
25457 echo "${ECHO_T}no" >&6; }
25461 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25463 { echo "$as_me:$LINENO: checking for resize_term" >&5
25464 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; }
25465 cat >conftest.
$ac_ext <<_ACEOF
25468 cat confdefs.h
>>conftest.
$ac_ext
25469 cat >>conftest.
$ac_ext <<_ACEOF
25470 /* end confdefs.h. */
25471 #include <curses.h>
25475 void *x=resize_term
25480 rm -f conftest.
$ac_objext
25481 if { (ac_try
="$ac_compile"
25482 case "(($ac_try" in
25483 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25484 *) ac_try_echo=$ac_try;;
25486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25487 (eval "$ac_compile") 2>conftest.er1
25489 grep -v '^ *+' conftest.er1 >conftest.err
25491 cat conftest.err >&5
25492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25493 (exit $ac_status); } && {
25494 test -z "$ac_c_werror_flag" ||
25495 test ! -s conftest.err
25496 } && test -s conftest.$ac_objext; then
25498 cat >>confdefs.h <<\_ACEOF
25499 #define HAVE_CURSES_RESIZE_TERM 1
25502 { echo "$as_me:$LINENO: result: yes" >&5
25503 echo "${ECHO_T}yes" >&6; }
25505 echo "$as_me: failed program was:" >&5
25506 sed 's/^/| /' conftest.$ac_ext >&5
25508 { echo "$as_me:$LINENO: result: no" >&5
25509 echo "${ECHO_T}no" >&6; }
25513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25515 { echo "$as_me:$LINENO: checking for resizeterm" >&5
25516 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; }
25517 cat >conftest.$ac_ext <<_ACEOF
25520 cat confdefs.h >>conftest.$ac_ext
25521 cat >>conftest.$ac_ext <<_ACEOF
25522 /* end confdefs.h. */
25523 #include <curses.h>
25532 rm -f conftest.$ac_objext
25533 if { (ac_try="$ac_compile"
25534 case "(($ac_try" in
25535 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25536 *) ac_try_echo
=$ac_try;;
25538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25539 (eval "$ac_compile") 2>conftest.er1
25541 grep -v '^ *+' conftest.er1
>conftest.err
25543 cat conftest.err
>&5
25544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25545 (exit $ac_status); } && {
25546 test -z "$ac_c_werror_flag" ||
25547 test ! -s conftest.err
25548 } && test -s conftest.
$ac_objext; then
25550 cat >>confdefs.h
<<\_ACEOF
25551 #define HAVE_CURSES_RESIZETERM 1
25554 { echo "$as_me:$LINENO: result: yes" >&5
25555 echo "${ECHO_T}yes" >&6; }
25557 echo "$as_me: failed program was:" >&5
25558 sed 's/^/| /' conftest.
$ac_ext >&5
25560 { echo "$as_me:$LINENO: result: no" >&5
25561 echo "${ECHO_T}no" >&6; }
25565 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25567 { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
25568 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; }
25570 if test -r /dev
/ptmx
25572 { echo "$as_me:$LINENO: result: yes" >&5
25573 echo "${ECHO_T}yes" >&6; }
25575 cat >>confdefs.h
<<\_ACEOF
25576 #define HAVE_DEV_PTMX 1
25580 { echo "$as_me:$LINENO: result: no" >&5
25581 echo "${ECHO_T}no" >&6; }
25584 { echo "$as_me:$LINENO: checking for /dev/ptc" >&5
25585 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
25587 if test -r /dev
/ptc
25589 { echo "$as_me:$LINENO: result: yes" >&5
25590 echo "${ECHO_T}yes" >&6; }
25592 cat >>confdefs.h
<<\_ACEOF
25593 #define HAVE_DEV_PTC 1
25597 { echo "$as_me:$LINENO: result: no" >&5
25598 echo "${ECHO_T}no" >&6; }
25601 { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
25602 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; }
25603 if test "$cross_compiling" = yes; then
25604 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25605 See \`config.log' for more details." >&5
25606 echo "$as_me: error: cannot run test program while cross compiling
25607 See \`config.log' for more details." >&2;}
25608 { (exit 1); exit 1; }; }
25610 cat >conftest.
$ac_ext <<_ACEOF
25613 cat confdefs.h
>>conftest.
$ac_ext
25614 cat >>conftest.
$ac_ext <<_ACEOF
25615 /* end confdefs.h. */
25617 #include <stddef.h>
25618 #include <string.h>
25620 #ifdef HAVE_SYS_TYPES_H
25621 #include <sys/types.h>
25624 #ifdef HAVE_SSIZE_T
25625 typedef ssize_t Py_ssize_t;
25626 #elif SIZEOF_VOID_P == SIZEOF_LONG
25627 typedef long Py_ssize_t;
25629 typedef int Py_ssize_t;
25636 if(sprintf(buffer, "%zd", (size_t)123) < 0)
25639 if (strcmp(buffer, "123"))
25642 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
25645 if (strcmp(buffer, "-123"))
25651 rm -f conftest
$ac_exeext
25652 if { (ac_try
="$ac_link"
25653 case "(($ac_try" in
25654 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25655 *) ac_try_echo=$ac_try;;
25657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25658 (eval "$ac_link") 2>&5
25660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25661 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25662 { (case "(($ac_try" in
25663 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25664 *) ac_try_echo
=$ac_try;;
25666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25667 (eval "$ac_try") 2>&5
25669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25670 (exit $ac_status); }; }; then
25671 { echo "$as_me:$LINENO: result: yes" >&5
25672 echo "${ECHO_T}yes" >&6; }
25674 cat >>confdefs.h
<<\_ACEOF
25675 #define PY_FORMAT_SIZE_T "z"
25679 echo "$as_me: program exited with status $ac_status" >&5
25680 echo "$as_me: failed program was:" >&5
25681 sed 's/^/| /' conftest.
$ac_ext >&5
25683 ( exit $ac_status )
25684 { echo "$as_me:$LINENO: result: no" >&5
25685 echo "${ECHO_T}no" >&6; }
25687 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
25692 { echo "$as_me:$LINENO: checking for socklen_t" >&5
25693 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
25694 if test "${ac_cv_type_socklen_t+set}" = set; then
25695 echo $ECHO_N "(cached) $ECHO_C" >&6
25697 cat >conftest.
$ac_ext <<_ACEOF
25700 cat confdefs.h
>>conftest.
$ac_ext
25701 cat >>conftest.
$ac_ext <<_ACEOF
25702 /* end confdefs.h. */
25704 #ifdef HAVE_SYS_TYPES_H
25705 #include <sys/types.h>
25707 #ifdef HAVE_SYS_SOCKET_H
25708 #include <sys/socket.h>
25712 typedef socklen_t ac__type_new_;
25716 if ((ac__type_new_ *) 0)
25718 if (sizeof (ac__type_new_))
25724 rm -f conftest.
$ac_objext
25725 if { (ac_try
="$ac_compile"
25726 case "(($ac_try" in
25727 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25728 *) ac_try_echo=$ac_try;;
25730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25731 (eval "$ac_compile") 2>conftest.er1
25733 grep -v '^ *+' conftest.er1 >conftest.err
25735 cat conftest.err >&5
25736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25737 (exit $ac_status); } && {
25738 test -z "$ac_c_werror_flag" ||
25739 test ! -s conftest.err
25740 } && test -s conftest.$ac_objext; then
25741 ac_cv_type_socklen_t=yes
25743 echo "$as_me: failed program was:" >&5
25744 sed 's/^/| /' conftest.$ac_ext >&5
25746 ac_cv_type_socklen_t=no
25749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25751 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
25752 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
25753 if test $ac_cv_type_socklen_t = yes; then
25757 cat >>confdefs.h <<\_ACEOF
25758 #define socklen_t int
25764 { echo "$as_me:$LINENO: checking for broken mbstowcs" >&5
25765 echo $ECHO_N "checking for broken mbstowcs... $ECHO_C" >&6; }
25766 if test "$cross_compiling" = yes; then
25767 ac_cv_broken_mbstowcs=no
25769 cat >conftest.$ac_ext <<_ACEOF
25772 cat confdefs.h >>conftest.$ac_ext
25773 cat >>conftest.$ac_ext <<_ACEOF
25774 /* end confdefs.h. */
25779 const char *str = "text";
25780 len = mbstowcs(NULL, str, 0);
25785 rm -f conftest$ac_exeext
25786 if { (ac_try="$ac_link"
25787 case "(($ac_try" in
25788 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25789 *) ac_try_echo
=$ac_try;;
25791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25792 (eval "$ac_link") 2>&5
25794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25795 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
25796 { (case "(($ac_try" in
25797 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25798 *) ac_try_echo=$ac_try;;
25800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25801 (eval "$ac_try") 2>&5
25803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25804 (exit $ac_status); }; }; then
25805 ac_cv_broken_mbstowcs=no
25807 echo "$as_me: program exited with status $ac_status" >&5
25808 echo "$as_me: failed program was:" >&5
25809 sed 's/^/| /' conftest.$ac_ext >&5
25811 ( exit $ac_status )
25812 ac_cv_broken_mbstowcs=yes
25814 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25818 { echo "$as_me:$LINENO: result: $ac_cv_broken_mbstowcs" >&5
25819 echo "${ECHO_T}$ac_cv_broken_mbstowcs" >&6; }
25820 if test "$ac_cv_broken_mbstowcs" = yes
25823 cat >>confdefs.h <<\_ACEOF
25824 #define HAVE_BROKEN_MBSTOWCS 1
25829 # Check for --with-computed-gotos
25830 { echo "$as_me:$LINENO: checking for --with-computed-gotos" >&5
25831 echo $ECHO_N "checking for --with-computed-gotos... $ECHO_C" >&6; }
25833 # Check whether --with-computed-gotos was given.
25834 if test "${with_computed_gotos+set}" = set; then
25835 withval=$with_computed_gotos;
25836 if test "$withval" != no
25839 cat >>confdefs.h <<\_ACEOF
25840 #define USE_COMPUTED_GOTOS 1
25843 { echo "$as_me:$LINENO: result: yes" >&5
25844 echo "${ECHO_T}yes" >&6; }
25845 else { echo "$as_me:$LINENO: result: no" >&5
25846 echo "${ECHO_T}no" >&6; }
25849 { echo "$as_me:$LINENO: result: no" >&5
25850 echo "${ECHO_T}no" >&6; }
25854 if test $ac_sys_system = Darwin
25856 LIBS="$LIBS -framework CoreFoundation"
25863 for h in `(cd $srcdir;echo Python
/thread_
*.h
)`
25865 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
25869 SRCDIRS="Parser Grammar Objects Python Modules Mac"
25870 { echo "$as_me:$LINENO: checking for build directories" >&5
25871 echo $ECHO_N "checking for build directories... $ECHO_C" >&6; }
25872 for dir in $SRCDIRS; do
25873 if test ! -d $dir; then
25877 { echo "$as_me:$LINENO: result: done" >&5
25878 echo "${ECHO_T}done" >&6; }
25880 # generate output files
25881 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config Misc/python.pc"
25883 cat >confcache <<\_ACEOF
25884 # This file is a shell script that caches the results of configure
25885 # tests run on this system so they can be shared between configure
25886 # scripts and configure runs, see configure's option --config-cache.
25887 # It is not useful on other systems. If it contains results you don't
25888 # want to keep, you may remove or edit it.
25890 # config.status only pays attention to the cache file if you give it
25891 # the --recheck option to rerun configure.
25893 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
25894 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25895 # following values.
25899 # The following way of writing the cache mishandles newlines in values,
25900 # but we know of no workaround that is simple, portable, and efficient.
25901 # So, we kill variables containing newlines.
25902 # Ultrix sh set writes to stderr and can't be redirected directly,
25903 # and sets the high bit in the cache file unless we assign to the vars.
25905 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25906 eval ac_val
=\$
$ac_var
25910 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25911 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25914 _ | IFS | as_nl
) ;; #(
25915 *) $as_unset $ac_var ;;
25921 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25922 *${as_nl}ac_space
=\
*)
25923 # `set' does not quote correctly, so add quotes (double-quote
25924 # substitution turns \\\\ into \\, and sed turns \\ into \).
25927 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25930 # `set' quotes correctly as required by POSIX, so do not add quotes.
25931 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25940 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25942 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25944 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
25945 if test -w "$cache_file"; then
25946 test "x$cache_file" != "x/dev/null" &&
25947 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25948 echo "$as_me: updating cache $cache_file" >&6;}
25949 cat confcache
>$cache_file
25951 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25952 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25957 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
25958 # Let make expand exec_prefix.
25959 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
25961 DEFS
=-DHAVE_CONFIG_H
25965 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
25966 # 1. Remove the extension, and $U if already installed.
25967 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
25968 ac_i
=`echo "$ac_i" | sed "$ac_script"`
25969 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25970 # will be set to the directory where LIBOBJS objects are built.
25971 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25972 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25974 LIBOBJS
=$ac_libobjs
25976 LTLIBOBJS
=$ac_ltlibobjs
25980 : ${CONFIG_STATUS=./config.status}
25981 ac_clean_files_save
=$ac_clean_files
25982 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
25983 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25984 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25985 cat >$CONFIG_STATUS <<_ACEOF
25987 # Generated by $as_me.
25988 # Run this file to recreate the current configuration.
25989 # Compiler output produced by configure, useful for debugging
25990 # configure, is in config.log if it exists.
25993 ac_cs_recheck=false
25995 SHELL=\${CONFIG_SHELL-$SHELL}
25998 cat >>$CONFIG_STATUS <<\_ACEOF
25999 ## --------------------- ##
26000 ## M4sh Initialization. ##
26001 ## --------------------- ##
26003 # Be more Bourne compatible
26004 DUALCASE
=1; export DUALCASE
# for MKS sh
26005 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
26008 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26009 # is contrary to our usage. Disable this feature.
26010 alias -g '${1+"$@"}'='"$@"'
26011 setopt NO_GLOB_SUBST
26013 case `(set -o) 2>/dev/null` in
26014 *posix
*) set -o posix
;;
26023 # Avoid depending upon Character Ranges.
26024 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
26025 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26026 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
26027 as_cr_digits
='0123456789'
26028 as_cr_alnum
=$as_cr_Letters$as_cr_digits
26030 # The user is always right.
26031 if test "${PATH_SEPARATOR+set}" != set; then
26032 echo "#! /bin/sh" >conf$$.sh
26033 echo "exit 0" >>conf$$.sh
26035 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
26043 # Support unset when possible.
26044 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
26052 # We need space, tab and new line, in precisely that order. Quoting is
26053 # there to prevent editors from complaining about space-tab.
26054 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26055 # splitting by setting IFS to empty value.)
26060 # Find who we are. Look in the path if we contain no directory separator.
26062 *[\\/]* ) as_myself
=$0 ;;
26063 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
26064 for as_dir
in $PATH
26067 test -z "$as_dir" && as_dir
=.
26068 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
26074 # We did not find ourselves, most probably we were run as `sh COMMAND'
26075 # in which case we are not to be found in the path.
26076 if test "x$as_myself" = x
; then
26079 if test ! -f "$as_myself"; then
26080 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26081 { (exit 1); exit 1; }
26084 # Work around bugs in pre-3.0 UWIN ksh.
26085 for as_var
in ENV MAIL MAILPATH
26086 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
26094 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26095 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26096 LC_TELEPHONE LC_TIME
26098 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26099 eval $as_var=C
; export $as_var
26101 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
26105 # Required to use basename.
26106 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26107 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26113 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26114 as_basename
=basename
26120 # Name of the executable.
26121 as_me
=`$as_basename -- "$0" ||
26122 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26123 X"$0" : 'X\(//\)$' \| \
26124 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26126 sed '/^.*\/\([^/][^/]*\)\/*$/{
26145 as_lineno_1
=$LINENO
26146 as_lineno_2
=$LINENO
26147 test "x$as_lineno_1" != "x$as_lineno_2" &&
26148 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
26150 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26151 # uniformly replaced by the line number. The first 'sed' inserts a
26152 # line-number line after each line using $LINENO; the second 'sed'
26153 # does the real work. The second script uses 'N' to pair each
26154 # line-number line with the line containing $LINENO, and appends
26155 # trailing '-' during substitution so that $LINENO is not a special
26156 # case at line end.
26157 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26158 # scripts with optimization help from Paolo Bonzini. Blame Lee
26159 # E. McMahon (1931-1989) for sed's syntax. :-)
26171 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26174 ' >$as_me.lineno
&&
26175 chmod +x
"$as_me.lineno" ||
26176 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26177 { (exit 1); exit 1; }; }
26179 # Don't try to exec as it changes $[0], causing all sort of problems
26180 # (the dirname of $[0] is not the place where we might find the
26181 # original and so on. Autoconf is especially sensitive to this).
26182 .
"./$as_me.lineno"
26183 # Exit status is that of the last command.
26188 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
26194 ECHO_C
= ECHO_N
= ECHO_T
=
26195 case `echo -n x` in
26197 case `echo 'x\c'` in
26198 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
26205 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26206 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26212 rm -f conf$$ conf$$.exe conf$$.
file
26213 if test -d conf$$.dir
; then
26214 rm -f conf$$.dir
/conf$$.
file
26220 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
26222 # ... but there are two gotchas:
26223 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26224 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26225 # In both cases, we have to default to `cp -p'.
26226 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
26228 elif ln conf$$.
file conf$$
2>/dev
/null
; then
26233 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
26234 rmdir conf$$.dir
2>/dev
/null
26236 if mkdir
-p .
2>/dev
/null
; then
26239 test -d .
/-p && rmdir .
/-p
26243 if test -x / >/dev
/null
2>&1; then
26244 as_test_x
='test -x'
26246 if ls -dL / >/dev
/null
2>&1; then
26253 if test -d "$1"; then
26259 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26260 ???[sx]*):;;*)false;;esac;fi
26264 as_executable_p
=$as_test_x
26266 # Sed expression to map a string onto a valid CPP name.
26267 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26269 # Sed expression to map a string onto a valid variable name.
26270 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26275 # Save the log message, to keep $[0] and so on meaningful, and to
26276 # report actual input values of CONFIG_FILES etc. instead of their
26277 # values after options handling.
26279 This file was extended by python $as_me 3.1, which was
26280 generated by GNU Autoconf 2.61. Invocation command line was
26282 CONFIG_FILES = $CONFIG_FILES
26283 CONFIG_HEADERS = $CONFIG_HEADERS
26284 CONFIG_LINKS = $CONFIG_LINKS
26285 CONFIG_COMMANDS = $CONFIG_COMMANDS
26288 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26293 cat >>$CONFIG_STATUS <<_ACEOF
26294 # Files that config.status was made for.
26295 config_files="$ac_config_files"
26296 config_headers="$ac_config_headers"
26300 cat >>$CONFIG_STATUS <<\_ACEOF
26302 \`$as_me' instantiates files from templates according to the
26303 current configuration.
26305 Usage: $0 [OPTIONS] [FILE]...
26307 -h, --help print this help, then exit
26308 -V, --version print version number and configuration settings, then exit
26309 -q, --quiet do not print progress messages
26310 -d, --debug don't remove temporary files
26311 --recheck update $as_me by reconfiguring in the same conditions
26312 --file=FILE[:TEMPLATE]
26313 instantiate the configuration file FILE
26314 --header=FILE[:TEMPLATE]
26315 instantiate the configuration header FILE
26317 Configuration files:
26320 Configuration headers:
26323 Report bugs to <bug-autoconf@gnu.org>."
26326 cat >>$CONFIG_STATUS <<_ACEOF
26328 python config.status 3.1
26329 configured by $0, generated by GNU Autoconf 2.61,
26330 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26332 Copyright (C) 2006 Free Software Foundation, Inc.
26333 This config.status script is free software; the Free Software Foundation
26334 gives unlimited permission to copy, distribute and modify it."
26341 cat >>$CONFIG_STATUS <<\_ACEOF
26342 # If no file are specified by the user, then we need to provide default
26343 # value. By we need to know if files were specified by the user.
26349 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
26350 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
26361 # Handling of the options.
26362 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
26364 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
26365 echo "$ac_cs_version"; exit ;;
26366 --debug |
--debu |
--deb |
--de |
--d |
-d )
26368 --file |
--fil |
--fi |
--f )
26370 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
26371 ac_need_defaults
=false
;;
26372 --header |
--heade |
--head |
--hea )
26374 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
26375 ac_need_defaults
=false
;;
26377 # Conflict between --help and --header
26378 { echo "$as_me: error: ambiguous option: $1
26379 Try \`$0 --help' for more information." >&2
26380 { (exit 1); exit 1; }; };;
26381 --help |
--hel |
-h )
26382 echo "$ac_cs_usage"; exit ;;
26383 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
26384 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
26387 # This is an error.
26388 -*) { echo "$as_me: error: unrecognized option: $1
26389 Try \`$0 --help' for more information." >&2
26390 { (exit 1); exit 1; }; } ;;
26392 *) ac_config_targets
="$ac_config_targets $1"
26393 ac_need_defaults
=false
;;
26399 ac_configure_extra_args
=
26401 if $ac_cs_silent; then
26403 ac_configure_extra_args
="$ac_configure_extra_args --silent"
26407 cat >>$CONFIG_STATUS <<_ACEOF
26408 if \$ac_cs_recheck; then
26409 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26410 CONFIG_SHELL=$SHELL
26411 export CONFIG_SHELL
26412 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26416 cat >>$CONFIG_STATUS <<\_ACEOF
26420 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26421 ## Running $as_me. ##
26427 cat >>$CONFIG_STATUS <<_ACEOF
26430 cat >>$CONFIG_STATUS <<\_ACEOF
26432 # Handling of arguments.
26433 for ac_config_target
in $ac_config_targets
26435 case $ac_config_target in
26436 "pyconfig.h") CONFIG_HEADERS
="$CONFIG_HEADERS pyconfig.h" ;;
26437 "Mac/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/Makefile" ;;
26438 "Mac/PythonLauncher/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
26439 "Mac/Resources/framework/Info.plist") CONFIG_FILES
="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
26440 "Mac/Resources/app/Info.plist") CONFIG_FILES
="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
26441 "Makefile.pre") CONFIG_FILES
="$CONFIG_FILES Makefile.pre" ;;
26442 "Modules/Setup.config") CONFIG_FILES
="$CONFIG_FILES Modules/Setup.config" ;;
26443 "Misc/python.pc") CONFIG_FILES
="$CONFIG_FILES Misc/python.pc" ;;
26445 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26446 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26447 { (exit 1); exit 1; }; };;
26452 # If the user did not use the arguments to specify the items to instantiate,
26453 # then the envvar interface is used. Set only those that are not.
26454 # We use the long form for the default assignment because of an extremely
26455 # bizarre bug on SunOS 4.1.3.
26456 if $ac_need_defaults; then
26457 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
26458 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
26461 # Have a temporary directory for convenience. Make it in the build tree
26462 # simply because there is no reason against having it here, and in addition,
26463 # creating and moving files from /tmp can sometimes cause problems.
26464 # Hook for its removal unless debugging.
26465 # Note that there is a small window in which the directory will not be cleaned:
26466 # after its creation but before its name has been assigned to `$tmp'.
26470 trap 'exit_status=$?
26471 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26473 trap '{ (exit 1); exit 1; }' 1 2 13 15
26475 # Create a (secure) tmp directory for tmp files.
26478 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26479 test -n "$tmp" && test -d "$tmp"
26482 tmp
=.
/conf$$
-$RANDOM
26483 (umask 077 && mkdir
"$tmp")
26486 echo "$me: cannot create a temporary directory in ." >&2
26487 { (exit 1); exit 1; }
26491 # Set up the sed scripts for CONFIG_FILES section.
26494 # No need to generate the scripts if there are no CONFIG_FILES.
26495 # This happens for instance when ./config.status config.h
26496 if test -n "$CONFIG_FILES"; then
26503 for ac_last_try
in false false false false false
:; do
26504 cat >conf$
$subs.
sed <<_ACEOF
26505 SHELL!$SHELL$ac_delim
26506 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26507 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26508 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26509 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26510 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26511 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26512 exec_prefix!$exec_prefix$ac_delim
26513 prefix!$prefix$ac_delim
26514 program_transform_name!$program_transform_name$ac_delim
26515 bindir!$bindir$ac_delim
26516 sbindir!$sbindir$ac_delim
26517 libexecdir!$libexecdir$ac_delim
26518 datarootdir!$datarootdir$ac_delim
26519 datadir!$datadir$ac_delim
26520 sysconfdir!$sysconfdir$ac_delim
26521 sharedstatedir!$sharedstatedir$ac_delim
26522 localstatedir!$localstatedir$ac_delim
26523 includedir!$includedir$ac_delim
26524 oldincludedir!$oldincludedir$ac_delim
26525 docdir!$docdir$ac_delim
26526 infodir!$infodir$ac_delim
26527 htmldir!$htmldir$ac_delim
26528 dvidir!$dvidir$ac_delim
26529 pdfdir!$pdfdir$ac_delim
26530 psdir!$psdir$ac_delim
26531 libdir!$libdir$ac_delim
26532 localedir!$localedir$ac_delim
26533 mandir!$mandir$ac_delim
26534 DEFS!$DEFS$ac_delim
26535 ECHO_C!$ECHO_C$ac_delim
26536 ECHO_N!$ECHO_N$ac_delim
26537 ECHO_T!$ECHO_T$ac_delim
26538 LIBS!$LIBS$ac_delim
26539 build_alias!$build_alias$ac_delim
26540 host_alias!$host_alias$ac_delim
26541 target_alias!$target_alias$ac_delim
26542 VERSION!$VERSION$ac_delim
26543 SOVERSION!$SOVERSION$ac_delim
26544 CONFIG_ARGS!$CONFIG_ARGS$ac_delim
26545 UNIVERSALSDK!$UNIVERSALSDK$ac_delim
26546 ARCH_RUN_32BIT!$ARCH_RUN_32BIT$ac_delim
26547 LIPO_32BIT_FLAGS!$LIPO_32BIT_FLAGS$ac_delim
26548 LIPO_64BIT_FLAGS!$LIPO_64BIT_FLAGS$ac_delim
26549 PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
26550 PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim
26551 PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
26552 PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
26553 PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
26554 FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
26555 FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
26556 FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
26557 FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
26558 FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
26559 MACHDEP!$MACHDEP$ac_delim
26560 SGI_ABI!$SGI_ABI$ac_delim
26561 CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
26562 EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
26564 CFLAGS!$CFLAGS$ac_delim
26565 LDFLAGS!$LDFLAGS$ac_delim
26566 CPPFLAGS!$CPPFLAGS$ac_delim
26567 ac_ct_CC!$ac_ct_CC$ac_delim
26568 EXEEXT!$EXEEXT$ac_delim
26569 OBJEXT!$OBJEXT$ac_delim
26571 MAINCC!$MAINCC$ac_delim
26573 GREP!$GREP$ac_delim
26574 EGREP!$EGREP$ac_delim
26575 BUILDEXEEXT!$BUILDEXEEXT$ac_delim
26576 LIBRARY!$LIBRARY$ac_delim
26577 LDLIBRARY!$LDLIBRARY$ac_delim
26578 DLLLIBRARY!$DLLLIBRARY$ac_delim
26579 BLDLIBRARY!$BLDLIBRARY$ac_delim
26580 LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
26581 INSTSONAME!$INSTSONAME$ac_delim
26582 RUNSHARED!$RUNSHARED$ac_delim
26583 LINKCC!$LINKCC$ac_delim
26584 GNULD!$GNULD$ac_delim
26585 RANLIB!$RANLIB$ac_delim
26587 ARFLAGS!$ARFLAGS$ac_delim
26588 SVNVERSION!$SVNVERSION$ac_delim
26589 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
26590 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
26591 INSTALL_DATA!$INSTALL_DATA$ac_delim
26594 BASECFLAGS!$BASECFLAGS$ac_delim
26595 UNIVERSAL_ARCH_FLAGS!$UNIVERSAL_ARCH_FLAGS$ac_delim
26596 OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
26597 LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
26599 LDSHARED!$LDSHARED$ac_delim
26600 BLDSHARED!$BLDSHARED$ac_delim
26601 CCSHARED!$CCSHARED$ac_delim
26604 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26606 elif $ac_last_try; then
26607 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26608 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26609 { (exit 1); exit 1; }; }
26611 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
26615 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26616 if test -n "$ac_eof"; then
26617 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
26618 ac_eof
=`expr $ac_eof + 1`
26621 cat >>$CONFIG_STATUS <<_ACEOF
26622 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26623 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26626 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26627 s/^/s,@/; s/!/@,|#_!!_#|/
26630 s/'"$ac_delim"'$/,g/; t
26632 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26633 ' >>$CONFIG_STATUS <conf$
$subs.
sed
26634 rm -f conf$
$subs.
sed
26635 cat >>$CONFIG_STATUS <<_ACEOF
26641 for ac_last_try
in false false false false false
:; do
26642 cat >conf$
$subs.
sed <<_ACEOF
26643 LINKFORSHARED!$LINKFORSHARED$ac_delim
26644 CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
26645 SHLIBS!$SHLIBS$ac_delim
26646 USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
26647 SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
26648 USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
26649 LDLAST!$LDLAST$ac_delim
26650 THREADOBJ!$THREADOBJ$ac_delim
26651 DLINCLDIR!$DLINCLDIR$ac_delim
26652 DYNLOADFILE!$DYNLOADFILE$ac_delim
26653 MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
26654 TRUE!$TRUE$ac_delim
26655 LIBOBJS!$LIBOBJS$ac_delim
26656 HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
26657 HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
26658 HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
26659 HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
26660 HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
26661 LIBM!$LIBM$ac_delim
26662 LIBC!$LIBC$ac_delim
26663 THREADHEADERS!$THREADHEADERS$ac_delim
26664 SRCDIRS!$SRCDIRS$ac_delim
26665 LTLIBOBJS!$LTLIBOBJS$ac_delim
26668 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 23; then
26670 elif $ac_last_try; then
26671 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26672 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26673 { (exit 1); exit 1; }; }
26675 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
26679 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26680 if test -n "$ac_eof"; then
26681 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
26682 ac_eof
=`expr $ac_eof + 1`
26685 cat >>$CONFIG_STATUS <<_ACEOF
26686 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26687 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26690 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26691 s/^/s,@/; s/!/@,|#_!!_#|/
26694 s/'"$ac_delim"'$/,g/; t
26696 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26697 ' >>$CONFIG_STATUS <conf$
$subs.
sed
26698 rm -f conf$
$subs.
sed
26699 cat >>$CONFIG_STATUS <<_ACEOF
26706 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26707 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26708 # trailing colons and then remove the whole line if VPATH becomes empty
26709 # (actually we leave an empty line to preserve line numbers).
26710 if test "x$srcdir" = x.
; then
26711 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
26712 s/:*\$(srcdir):*/:/
26713 s/:*\${srcdir}:*/:/
26715 s/^\([^=]*=[ ]*\):*/\1/
26721 cat >>$CONFIG_STATUS <<\_ACEOF
26722 fi # test -n "$CONFIG_FILES"
26725 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
26728 :[FHLC
]) ac_mode
=$ac_tag; continue;;
26730 case $ac_mode$ac_tag in
26732 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26733 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26734 { (exit 1); exit 1; }; };;
26735 :[FH
]-) ac_tag
=-:-;;
26736 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
26753 -) ac_f
="$tmp/stdin";;
26754 *) # Look for the file first in the build tree, then in the source tree
26755 # (if the path is not absolute). The absolute path cannot be DOS-style,
26756 # because $ac_f cannot contain `:'.
26760 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
26762 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26763 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26764 { (exit 1); exit 1; }; };;
26766 ac_file_inputs
="$ac_file_inputs $ac_f"
26769 # Let's still pretend it is `configure' which instantiates (i.e., don't
26770 # use $as_me), people would be surprised to read:
26771 # /* config.h. Generated by config.status. */
26772 configure_input
="Generated from "`IFS=:
26773 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26774 if test x
"$ac_file" != x-
; then
26775 configure_input
="$ac_file. $configure_input"
26776 { echo "$as_me:$LINENO: creating $ac_file" >&5
26777 echo "$as_me: creating $ac_file" >&6;}
26781 *:-:* |
*:-) cat >"$tmp/stdin";;
26786 ac_dir
=`$as_dirname -- "$ac_file" ||
26787 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26788 X"$ac_file" : 'X\(//\)[^/]' \| \
26789 X"$ac_file" : 'X\(//\)$' \| \
26790 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26792 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26796 /^X\(\/\/\)[^/].*/{
26811 -*) as_dir
=.
/$as_dir;;
26813 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
26817 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26818 *) as_qdir
=$as_dir;;
26820 as_dirs
="'$as_qdir' $as_dirs"
26821 as_dir
=`$as_dirname -- "$as_dir" ||
26822 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26823 X"$as_dir" : 'X\(//\)[^/]' \| \
26824 X"$as_dir" : 'X\(//\)$' \| \
26825 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26827 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26831 /^X\(\/\/\)[^/].*/{
26844 test -d "$as_dir" && break
26846 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
26847 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26848 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26849 { (exit 1); exit 1; }; }; }
26853 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26855 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26856 # A ".." for each directory in $ac_dir_suffix.
26857 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26858 case $ac_top_builddir_sub in
26859 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26860 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
26863 ac_abs_top_builddir
=$ac_pwd
26864 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
26865 # for backward compatibility:
26866 ac_top_builddir
=$ac_top_build_prefix
26869 .
) # We are building in place.
26871 ac_top_srcdir
=$ac_top_builddir_sub
26872 ac_abs_top_srcdir
=$ac_pwd ;;
26873 [\\/]* | ?
:[\\/]* ) # Absolute name.
26874 ac_srcdir
=$srcdir$ac_dir_suffix;
26875 ac_top_srcdir
=$srcdir
26876 ac_abs_top_srcdir
=$srcdir ;;
26877 *) # Relative name.
26878 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
26879 ac_top_srcdir
=$ac_top_build_prefix$srcdir
26880 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
26882 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
26892 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
26893 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
26897 cat >>$CONFIG_STATUS <<\_ACEOF
26898 # If the template does not know about datarootdir, expand it.
26899 # FIXME: This hack should be removed a few years after 2.60.
26900 ac_datarootdir_hack
=; ac_datarootdir_seen
=
26902 case `sed -n '/datarootdir/ {
26911 ' $ac_file_inputs` in
26912 *datarootdir
*) ac_datarootdir_seen
=yes;;
26913 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
26914 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26915 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26917 cat >>$CONFIG_STATUS <<_ACEOF
26918 ac_datarootdir_hack='
26919 s&@datadir@&$datadir&g
26920 s&@docdir@&$docdir&g
26921 s&@infodir@&$infodir&g
26922 s&@localedir@&$localedir&g
26923 s&@mandir@&$mandir&g
26924 s&\\\${datarootdir}&$datarootdir&g' ;;
26928 # Neutralize VPATH when `$srcdir' = `.'.
26929 # Shell code in configure.ac might set extrasub.
26930 # FIXME: do we really want to maintain this feature?
26931 cat >>$CONFIG_STATUS <<_ACEOF
26935 cat >>$CONFIG_STATUS <<\_ACEOF
26937 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
26938 s
&@configure_input@
&$configure_input&;t t
26939 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
26940 s
&@srcdir@
&$ac_srcdir&;t t
26941 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
26942 s
&@top_srcdir@
&$ac_top_srcdir&;t t
26943 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
26944 s
&@builddir@
&$ac_builddir&;t t
26945 s
&@abs_builddir@
&$ac_abs_builddir&;t t
26946 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
26947 s
&@INSTALL@
&$ac_INSTALL&;t t
26948 $ac_datarootdir_hack
26949 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
26951 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26952 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
26953 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
26954 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
26955 which seems to be undefined. Please make sure it is defined." >&5
26956 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
26957 which seems to be undefined. Please make sure it is defined." >&2;}
26961 -) cat "$tmp/out"; rm -f "$tmp/out";;
26962 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
26971 # Transform confdefs.h into a sed script `conftest.defines', that
26972 # substitutes the proper values into config.h.in to produce config.h.
26973 rm -f conftest.defines conftest.
tail
26974 # First, append a space to every undef/define line, to ease matching.
26975 echo 's/$/ /' >conftest.defines
26976 # Then, protect against being on the right side of a sed subst, or in
26977 # an unquoted here document, in config.status. If some macros were
26978 # called several times there might be several #defines for the same
26979 # symbol, which is useless. But do not sort them, since the last
26980 # AC_DEFINE must be honored.
26981 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
26982 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
26983 # NAME is the cpp macro being defined, VALUE is the value it is being given.
26984 # PARAMS is the parameter list in the macro definition--in most cases, it's
26985 # just an empty string.
26986 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
26987 ac_dB
='\\)[ (].*,\\1define\\2'
26995 s/^[ ]*#[ ]*define[ ][ ]*//
27000 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27001 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27002 ' >>conftest.defines
27004 # Remove the space that was appended to ease matching.
27005 # Then replace #undef with comments. This is necessary, for
27006 # example, in the case of _POSIX_SOURCE, which is predefined and required
27007 # on some systems where configure will not decide to define it.
27008 # (The regexp can be short, since the line contains either #define or #undef.)
27010 s,^[ #]*u.*,/* & */,' >>conftest.defines
27012 # Break up conftest.defines:
27013 ac_max_sed_lines
=50
27015 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27016 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27017 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27019 ac_in
='$ac_file_inputs'
27020 ac_out
='"$tmp/out1"'
27021 ac_nxt
='"$tmp/out2"'
27025 # Write a here document:
27026 cat >>$CONFIG_STATUS <<_ACEOF
27027 # First, check the format of the line:
27028 cat >"\$tmp/defines.sed" <<\\CEOF
27029 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
27030 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
27034 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
27036 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27037 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
27038 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
27039 grep . conftest.
tail >/dev
/null ||
break
27040 rm -f conftest.defines
27041 mv conftest.
tail conftest.defines
27043 rm -f conftest.defines conftest.
tail
27045 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27046 cat >>$CONFIG_STATUS <<\_ACEOF
27047 if test x
"$ac_file" != x-
; then
27048 echo "/* $configure_input */" >"$tmp/config.h"
27049 cat "$ac_result" >>"$tmp/config.h"
27050 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
27051 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27052 echo "$as_me: $ac_file is unchanged" >&6;}
27055 mv "$tmp/config.h" $ac_file
27058 echo "/* $configure_input */"
27070 { (exit 0); exit 0; }
27072 chmod +x
$CONFIG_STATUS
27073 ac_clean_files
=$ac_clean_files_save
27076 # configure is writing to config.log, and then calls config.status.
27077 # config.status does its own redirection, appending to config.log.
27078 # Unfortunately, on DOS this fails, as config.log is still kept open
27079 # by configure, so config.status won't be able to write to it; its
27080 # output is simply discarded. So we exec the FD to /dev/null,
27081 # effectively closing config.log, so it can be properly (re)opened and
27082 # appended to by config.status. When coming back to configure, we
27083 # need to make the FD available again.
27084 if test "$no_create" != yes; then
27086 ac_config_status_args
=
27087 test "$silent" = yes &&
27088 ac_config_status_args
="$ac_config_status_args --quiet"
27090 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
27092 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27093 # would make configure fail if this is the last instruction.
27094 $ac_cs_success ||
{ (exit 1); exit 1; }
27098 echo "creating Modules/Setup"
27099 if test ! -f Modules
/Setup
27101 cp $srcdir/Modules
/Setup.dist Modules
/Setup
27104 echo "creating Modules/Setup.local"
27105 if test ! -f Modules
/Setup.
local
27107 echo "# Edit this file for local setup changes" >Modules
/Setup.
local
27110 echo "creating Makefile"
27111 $SHELL $srcdir/Modules
/makesetup
-c $srcdir/Modules
/config.c.
in \
27112 -s Modules Modules
/Setup.config \
27113 Modules
/Setup.
local Modules
/Setup
27114 mv config.c Modules