2 # From configure.in Revision: 70479 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for python 2.7.
6 # Report bugs to <http://www.python.org/python-bugs>.
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
='2.7'
579 PACKAGE_STRING
='python 2.7'
580 PACKAGE_BUGREPORT
='http://www.python.org/python-bugs'
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
662 PYTHONFRAMEWORKIDENTIFIER
664 PYTHONFRAMEWORKPREFIX
665 PYTHONFRAMEWORKINSTALLDIR
666 FRAMEWORKINSTALLFIRST
668 FRAMEWORKALTINSTALLFIRST
669 FRAMEWORKALTINSTALLLAST
670 FRAMEWORKUNIXTOOLSPREFIX
675 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
676 EXPORT_MACOSX_DEPLOYMENT_TARGET
727 HAVE_GETHOSTBYNAME_R_6_ARG
728 HAVE_GETHOSTBYNAME_R_5_ARG
729 HAVE_GETHOSTBYNAME_R_3_ARG
739 ac_precious_vars
='build_alias
750 # Initialize some variables set by options.
752 ac_init_version
=false
753 # The variables have the same names as the options, with
754 # dashes changed to underlines.
762 program_transform_name
=s
,x
,x
,
770 # Installation directory options.
771 # These are left unexpanded so users can "make install exec_prefix=/foo"
772 # and all the variables that are supposed to be based on exec_prefix
773 # by default will actually change.
774 # Use braces instead of parens because sh, perl, etc. also accept them.
775 # (The list follows the same order as the GNU Coding Standards.)
776 bindir
='${exec_prefix}/bin'
777 sbindir
='${exec_prefix}/sbin'
778 libexecdir
='${exec_prefix}/libexec'
779 datarootdir
='${prefix}/share'
780 datadir
='${datarootdir}'
781 sysconfdir
='${prefix}/etc'
782 sharedstatedir
='${prefix}/com'
783 localstatedir
='${prefix}/var'
784 includedir
='${prefix}/include'
785 oldincludedir
='/usr/include'
786 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
787 infodir
='${datarootdir}/info'
792 libdir
='${exec_prefix}/lib'
793 localedir
='${datarootdir}/locale'
794 mandir
='${datarootdir}/man'
800 # If the previous option needs an argument, assign it.
801 if test -n "$ac_prev"; then
802 eval $ac_prev=\
$ac_option
808 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
812 # Accept the important Cygnus configure options, so we can diagnose typos.
814 case $ac_dashdash$ac_option in
818 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
820 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
823 -build |
--build |
--buil |
--bui |
--bu)
824 ac_prev
=build_alias
;;
825 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
826 build_alias
=$ac_optarg ;;
828 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
829 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
830 ac_prev
=cache_file
;;
831 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
832 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
833 cache_file
=$ac_optarg ;;
836 cache_file
=config.cache
;;
838 -datadir |
--datadir |
--datadi |
--datad)
840 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
841 datadir
=$ac_optarg ;;
843 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
844 |
--dataroo |
--dataro |
--datar)
845 ac_prev
=datarootdir
;;
846 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
847 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
848 datarootdir
=$ac_optarg ;;
850 -disable-* |
--disable-*)
851 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
852 # Reject names that are not valid shell variable names.
853 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
854 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
855 { (exit 1); exit 1; }; }
856 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
857 eval enable_
$ac_feature=no
;;
859 -docdir |
--docdir |
--docdi |
--doc |
--do)
861 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
864 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
866 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
869 -enable-* |
--enable-*)
870 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
871 # Reject names that are not valid shell variable names.
872 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
873 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
874 { (exit 1); exit 1; }; }
875 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
876 eval enable_
$ac_feature=\
$ac_optarg ;;
878 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
879 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
880 |
--exec |
--exe |
--ex)
881 ac_prev
=exec_prefix
;;
882 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
883 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
884 |
--exec=* |
--exe=* |
--ex=*)
885 exec_prefix
=$ac_optarg ;;
887 -gas |
--gas |
--ga |
--g)
888 # Obsolete; use --with-gas.
891 -help |
--help |
--hel |
--he |
-h)
893 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
894 ac_init_help
=recursive
;;
895 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
896 ac_init_help
=short
;;
898 -host |
--host |
--hos |
--ho)
899 ac_prev
=host_alias
;;
900 -host=* |
--host=* |
--hos=* |
--ho=*)
901 host_alias
=$ac_optarg ;;
903 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
905 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
907 htmldir
=$ac_optarg ;;
909 -includedir |
--includedir |
--includedi |
--included |
--include \
910 |
--includ |
--inclu |
--incl |
--inc)
911 ac_prev
=includedir
;;
912 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
913 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
914 includedir
=$ac_optarg ;;
916 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
918 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
919 infodir
=$ac_optarg ;;
921 -libdir |
--libdir |
--libdi |
--libd)
923 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
926 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
927 |
--libexe |
--libex |
--libe)
928 ac_prev
=libexecdir
;;
929 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
930 |
--libexe=* |
--libex=* |
--libe=*)
931 libexecdir
=$ac_optarg ;;
933 -localedir |
--localedir |
--localedi |
--localed |
--locale)
935 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
936 localedir
=$ac_optarg ;;
938 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
939 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
940 ac_prev
=localstatedir
;;
941 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
942 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
943 localstatedir
=$ac_optarg ;;
945 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
947 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
951 # Obsolete; use --without-fp.
954 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
955 |
--no-cr |
--no-c |
-n)
958 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
959 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
962 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
963 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
964 |
--oldin |
--oldi |
--old |
--ol |
--o)
965 ac_prev
=oldincludedir
;;
966 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
967 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
968 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
969 oldincludedir
=$ac_optarg ;;
971 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
973 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
976 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
977 |
--program-pre |
--program-pr |
--program-p)
978 ac_prev
=program_prefix
;;
979 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
980 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
981 program_prefix
=$ac_optarg ;;
983 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
984 |
--program-suf |
--program-su |
--program-s)
985 ac_prev
=program_suffix
;;
986 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
987 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
988 program_suffix
=$ac_optarg ;;
990 -program-transform-name |
--program-transform-name \
991 |
--program-transform-nam |
--program-transform-na \
992 |
--program-transform-n |
--program-transform- \
993 |
--program-transform |
--program-transfor \
994 |
--program-transfo |
--program-transf \
995 |
--program-trans |
--program-tran \
996 |
--progr-tra |
--program-tr |
--program-t)
997 ac_prev
=program_transform_name
;;
998 -program-transform-name=* |
--program-transform-name=* \
999 |
--program-transform-nam=* |
--program-transform-na=* \
1000 |
--program-transform-n=* |
--program-transform-=* \
1001 |
--program-transform=* |
--program-transfor=* \
1002 |
--program-transfo=* |
--program-transf=* \
1003 |
--program-trans=* |
--program-tran=* \
1004 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1005 program_transform_name
=$ac_optarg ;;
1007 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1009 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1010 pdfdir
=$ac_optarg ;;
1012 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1014 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1017 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1018 |
-silent |
--silent |
--silen |
--sile |
--sil)
1021 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1023 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1025 sbindir
=$ac_optarg ;;
1027 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1028 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1029 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1031 ac_prev
=sharedstatedir
;;
1032 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1033 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1034 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1036 sharedstatedir
=$ac_optarg ;;
1038 -site |
--site |
--sit)
1040 -site=* |
--site=* |
--sit=*)
1043 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1045 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1046 srcdir
=$ac_optarg ;;
1048 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1049 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1050 ac_prev
=sysconfdir
;;
1051 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1052 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1053 sysconfdir
=$ac_optarg ;;
1055 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1056 ac_prev
=target_alias
;;
1057 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1058 target_alias
=$ac_optarg ;;
1060 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1063 -version |
--version |
--versio |
--versi |
--vers |
-V)
1064 ac_init_version
=: ;;
1067 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1068 # Reject names that are not valid shell variable names.
1069 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1070 { echo "$as_me: error: invalid package name: $ac_package" >&2
1071 { (exit 1); exit 1; }; }
1072 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1073 eval with_
$ac_package=\
$ac_optarg ;;
1075 -without-* |
--without-*)
1076 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1079 { echo "$as_me: error: invalid package name: $ac_package" >&2
1080 { (exit 1); exit 1; }; }
1081 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1082 eval with_
$ac_package=no
;;
1085 # Obsolete; use --with-x.
1088 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1089 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1090 ac_prev
=x_includes
;;
1091 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1092 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1093 x_includes
=$ac_optarg ;;
1095 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1096 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1097 ac_prev
=x_libraries
;;
1098 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1099 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1100 x_libraries
=$ac_optarg ;;
1102 -*) { echo "$as_me: error: unrecognized option: $ac_option
1103 Try \`$0 --help' for more information." >&2
1104 { (exit 1); exit 1; }; }
1108 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1109 # Reject names that are not valid shell variable names.
1110 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1111 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1112 { (exit 1); exit 1; }; }
1113 eval $ac_envvar=\
$ac_optarg
1114 export $ac_envvar ;;
1117 # FIXME: should be removed in autoconf 3.0.
1118 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1119 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1120 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1121 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1127 if test -n "$ac_prev"; then
1128 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1129 { echo "$as_me: error: missing argument to $ac_option" >&2
1130 { (exit 1); exit 1; }; }
1133 # Be sure to have absolute directory names.
1134 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1135 datadir sysconfdir sharedstatedir localstatedir includedir \
1136 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1137 libdir localedir mandir
1139 eval ac_val
=\$
$ac_var
1141 [\\/$
]* | ?
:[\\/]* ) continue;;
1142 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1144 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1145 { (exit 1); exit 1; }; }
1148 # There might be people who depend on the old broken behavior: `$host'
1149 # used to hold the argument of --host etc.
1150 # FIXME: To remove some day.
1153 target
=$target_alias
1155 # FIXME: To remove some day.
1156 if test "x$host_alias" != x
; then
1157 if test "x$build_alias" = x
; then
1158 cross_compiling
=maybe
1159 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1160 If a cross compiler is detected then cross compile mode will be used." >&2
1161 elif test "x$build_alias" != "x$host_alias"; then
1167 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1169 test "$silent" = yes && exec 6>/dev
/null
1172 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1173 ac_ls_di
=`ls -di .` &&
1174 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1175 { echo "$as_me: error: Working directory cannot be determined" >&2
1176 { (exit 1); exit 1; }; }
1177 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1178 { echo "$as_me: error: pwd does not report name of working directory" >&2
1179 { (exit 1); exit 1; }; }
1182 # Find the source files, if location was not specified.
1183 if test -z "$srcdir"; then
1184 ac_srcdir_defaulted
=yes
1185 # Try the directory containing this script, then the parent directory.
1186 ac_confdir
=`$as_dirname -- "$0" ||
1187 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1188 X"$0" : 'X\(//\)[^/]' \| \
1189 X"$0" : 'X\(//\)$' \| \
1190 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1192 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1210 if test ! -r "$srcdir/$ac_unique_file"; then
1214 ac_srcdir_defaulted
=no
1216 if test ! -r "$srcdir/$ac_unique_file"; then
1217 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1218 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1219 { (exit 1); exit 1; }; }
1221 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1223 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1224 { (exit 1); exit 1; }; }
1226 # When building in place, set srcdir=.
1227 if test "$ac_abs_confdir" = "$ac_pwd"; then
1230 # Remove unnecessary trailing slashes from srcdir.
1231 # Double slashes in file names in object file debugging info
1232 # mess up M-x gdb in Emacs.
1234 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1236 for ac_var
in $ac_precious_vars; do
1237 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1238 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1239 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1240 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1244 # Report the --help message.
1246 if test "$ac_init_help" = "long"; then
1247 # Omit some internal or obsolete options to make the list less imposing.
1248 # This message is too long to be a string in the A/UX 3.1 sh.
1250 \`configure' configures python 2.7 to adapt to many kinds of systems.
1252 Usage: $0 [OPTION]... [VAR=VALUE]...
1254 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1255 VAR=VALUE. See below for descriptions of some of the useful variables.
1257 Defaults for the options are specified in brackets.
1260 -h, --help display this help and exit
1261 --help=short display options specific to this package
1262 --help=recursive display the short help of all the included packages
1263 -V, --version display version information and exit
1264 -q, --quiet, --silent do not print \`checking...' messages
1265 --cache-file=FILE cache test results in FILE [disabled]
1266 -C, --config-cache alias for \`--cache-file=config.cache'
1267 -n, --no-create do not create output files
1268 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1270 Installation directories:
1271 --prefix=PREFIX install architecture-independent files in PREFIX
1272 [$ac_default_prefix]
1273 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1276 By default, \`make install' will install all the files in
1277 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1278 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1279 for instance \`--prefix=\$HOME'.
1281 For better control, use the options below.
1283 Fine tuning of the installation directories:
1284 --bindir=DIR user executables [EPREFIX/bin]
1285 --sbindir=DIR system admin executables [EPREFIX/sbin]
1286 --libexecdir=DIR program executables [EPREFIX/libexec]
1287 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1288 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1289 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1290 --libdir=DIR object code libraries [EPREFIX/lib]
1291 --includedir=DIR C header files [PREFIX/include]
1292 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1293 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1294 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1295 --infodir=DIR info documentation [DATAROOTDIR/info]
1296 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1297 --mandir=DIR man documentation [DATAROOTDIR/man]
1298 --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1299 --htmldir=DIR html documentation [DOCDIR]
1300 --dvidir=DIR dvi documentation [DOCDIR]
1301 --pdfdir=DIR pdf documentation [DOCDIR]
1302 --psdir=DIR ps documentation [DOCDIR]
1309 if test -n "$ac_init_help"; then
1310 case $ac_init_help in
1311 short | recursive
) echo "Configuration of python 2.7:";;
1316 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1317 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1318 --enable-universalsdk[=SDKDIR
]
1319 Build against Mac OS X
10.4u SDK
(ppc
/i386
)
1320 --enable-framework[=INSTALLDIR
]
1321 Build
(MacOSX|Darwin
) framework
1322 --enable-shared disable
/enable building shared python library
1323 --enable-profiling enable C-level code profiling
1324 --enable-toolbox-glue disable
/enable MacOSX glue code
for extensions
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]
1329 --enable-unicode[=ucs
[24]]
1330 Enable Unicode
strings (default is
yes)
1333 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1334 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1335 --with-universal-archs=ARCH
1336 select architectures
for universal build
("32-bit",
1338 --with-framework-name=FRAMEWORK
1339 specify an alternate name of the framework built
1340 with
--enable-framework
1341 --without-gcc never use gcc
1342 --with-cxx-main=<compiler
>
1343 compile main
() and link python executable with C
++
1345 --with-suffix=.exe
set executable suffix
1346 --with-pydebug build with Py_DEBUG defined
1347 --with-libs='lib1 ...' link against additional libs
1348 --with-system-ffi build _ctypes module using an installed ffi library
1349 --with-signal-module disable
/enable signal module
1350 --with-dec-threads use DEC Alpha
/OSF1 thread-safe libraries
1351 --with(out
)-threads[=DIRECTORY
]
1352 disable
/enable thread support
1353 --with(out
)-thread[=DIRECTORY
]
1354 deprecated
; use
--with(out
)-threads
1355 --with-pth use GNU pth threading libraries
1356 --with(out
)-doc-strings disable
/enable documentation
strings
1357 --with(out
)-tsc enable
/disable timestamp counter profile
1358 --with(out
)-pymalloc disable
/enable specialized mallocs
1359 --with-wctype-functions use wctype.h functions
1360 --with-fpectl enable SIGFPE catching
1361 --with-libm=STRING math library
1362 --with-libc=STRING C library
1364 Some influential environment variables
:
1365 CC C compiler
command
1366 CFLAGS C compiler flags
1367 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1368 nonstandard directory
<lib dir
>
1369 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1370 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1371 you have headers
in a nonstandard directory
<include dir
>
1374 Use these variables to override the choices made by
`configure' or to help
1375 it to find libraries and programs with nonstandard names/locations.
1377 Report bugs to <http://www.python.org/python-bugs>.
1382 if test "$ac_init_help" = "recursive"; then
1383 # If there are subdirs, report their specific --help.
1384 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1385 test -d "$ac_dir" || continue
1389 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1391 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1392 # A ".." for each directory in $ac_dir_suffix.
1393 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1394 case $ac_top_builddir_sub in
1395 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1396 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1399 ac_abs_top_builddir=$ac_pwd
1400 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1401 # for backward compatibility:
1402 ac_top_builddir=$ac_top_build_prefix
1405 .) # We are building in place.
1407 ac_top_srcdir=$ac_top_builddir_sub
1408 ac_abs_top_srcdir=$ac_pwd ;;
1409 [\\/]* | ?:[\\/]* ) # Absolute name.
1410 ac_srcdir=$srcdir$ac_dir_suffix;
1411 ac_top_srcdir=$srcdir
1412 ac_abs_top_srcdir=$srcdir ;;
1414 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1415 ac_top_srcdir=$ac_top_build_prefix$srcdir
1416 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1418 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1420 cd "$ac_dir" || { ac_status=$?; continue; }
1421 # Check for guested configure.
1422 if test -f "$ac_srcdir/configure.gnu"; then
1424 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1425 elif test -f "$ac_srcdir/configure"; then
1427 $SHELL "$ac_srcdir/configure" --help=recursive
1429 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1431 cd "$ac_pwd" || { ac_status=$?; break; }
1435 test -n "$ac_init_help" && exit $ac_status
1436 if $ac_init_version; then
1438 python configure 2.7
1439 generated by GNU Autoconf 2.61
1441 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1442 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1443 This configure script is free software; the Free Software Foundation
1444 gives unlimited permission to copy, distribute and modify it.
1448 cat >config.log <<_ACEOF
1449 This file contains any messages produced by compilers while
1450 running configure, to aid debugging if configure makes a mistake.
1452 It was created by python $as_me 2.7, which was
1453 generated by GNU Autoconf 2.61. Invocation command line was
1465 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1466 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1467 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1468 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1469 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1471 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1472 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1474 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1475 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1476 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1477 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1478 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1479 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1480 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1488 test -z "$as_dir" && as_dir=.
1489 echo "PATH: $as_dir"
1505 # Keep a trace of the command line.
1506 # Strip out --no-create and --no-recursion so they do not pile up.
1507 # Strip out --silent because we don't want to record it for future runs.
1508 # Also quote any args containing shell meta-characters.
1509 # Make two passes to allow for proper duplicate-argument suppression.
1513 ac_must_keep_next=false
1519 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1520 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1521 | -silent | --silent | --silen | --sile | --sil)
1524 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1527 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1529 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1530 if test $ac_must_keep_next = true; then
1531 ac_must_keep_next=false # Got value, back to normal.
1534 *=* | --config-cache | -C | -disable-* | --disable-* \
1535 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1536 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1537 | -with-* | --with-* | -without-* | --without-* | --x)
1538 case "$ac_configure_args0 " in
1539 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1542 -* ) ac_must_keep_next=true ;;
1545 ac_configure_args="$ac_configure_args '$ac_arg'"
1550 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1551 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1553 # When interrupted or exit'd, cleanup temporary files, and complete
1554 # config.log. We remove comments because anyway the quotes in there
1555 # would cause problems or look ugly.
1556 # WARNING: Use '\'' to represent an apostrophe within the trap.
1557 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1558 trap 'exit_status=$?
1559 # Save into config.log some information that might help in debugging.
1564 ## ---------------- ##
1565 ## Cache variables. ##
1566 ## ---------------- ##
1569 # The following way of writing the cache mishandles newlines in values,
1571 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1572 eval ac_val=\$$ac_var
1576 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1577 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1580 _ | IFS | as_nl) ;; #(
1581 *) $as_unset $ac_var ;;
1586 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1587 *${as_nl}ac_space=\ *)
1589 "s/'\''/'\''\\\\'\'''\''/g;
1590 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1593 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1601 ## ----------------- ##
1602 ## Output variables. ##
1603 ## ----------------- ##
1606 for ac_var in $ac_subst_vars
1608 eval ac_val=\$$ac_var
1610 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1612 echo "$ac_var='\''$ac_val'\''"
1616 if test -n "$ac_subst_files"; then
1618 ## ------------------- ##
1619 ## File substitutions. ##
1620 ## ------------------- ##
1623 for ac_var in $ac_subst_files
1625 eval ac_val=\$$ac_var
1627 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1629 echo "$ac_var='\''$ac_val'\''"
1634 if test -s confdefs.h; then
1644 test "$ac_signal" != 0 &&
1645 echo "$as_me: caught signal $ac_signal"
1646 echo "$as_me: exit $exit_status"
1648 rm -f core *.core core.conftest.* &&
1649 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1652 for ac_signal in 1 2 13 15; do
1653 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1657 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1658 rm -f -r conftest* confdefs.h
1660 # Predefined preprocessor variables.
1662 cat >>confdefs.h <<_ACEOF
1663 #define PACKAGE_NAME "$PACKAGE_NAME"
1667 cat >>confdefs.h <<_ACEOF
1668 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1672 cat >>confdefs.h <<_ACEOF
1673 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1677 cat >>confdefs.h <<_ACEOF
1678 #define PACKAGE_STRING "$PACKAGE_STRING"
1682 cat >>confdefs.h <<_ACEOF
1683 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1687 # Let the site file select an alternate cache file if it wants to.
1688 # Prefer explicitly selected file to automatically selected ones.
1689 if test -n "$CONFIG_SITE"; then
1690 set x "$CONFIG_SITE"
1691 elif test "x$prefix" != xNONE; then
1692 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1694 set x "$ac_default_prefix/share/config.site" \
1695 "$ac_default_prefix/etc/config.site"
1700 if test -r "$ac_site_file"; then
1701 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1702 echo "$as_me: loading site script $ac_site_file" >&6;}
1703 sed 's/^/| /' "$ac_site_file" >&5
1708 if test -r "$cache_file"; then
1709 # Some versions of bash will fail to source /dev/null (special
1710 # files actually), so we avoid doing that.
1711 if test -f "$cache_file"; then
1712 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1713 echo "$as_me: loading cache $cache_file" >&6;}
1715 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1716 *) . "./$cache_file";;
1720 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1721 echo "$as_me: creating cache $cache_file" >&6;}
1725 # Check that the precious variables saved in the cache have kept the same
1727 ac_cache_corrupted=false
1728 for ac_var in $ac_precious_vars; do
1729 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1730 eval ac_new_set=\$ac_env_${ac_var}_set
1731 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1732 eval ac_new_val=\$ac_env_${ac_var}_value
1733 case $ac_old_set,$ac_new_set in
1735 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1736 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1737 ac_cache_corrupted=: ;;
1739 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1740 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1741 ac_cache_corrupted=: ;;
1744 if test "x$ac_old_val" != "x$ac_new_val"; then
1745 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1746 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1747 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1748 echo "$as_me: former value
: $ac_old_val" >&2;}
1749 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1750 echo "$as_me: current value
: $ac_new_val" >&2;}
1751 ac_cache_corrupted=:
1754 # Pass precious variables to config.status.
1755 if test "$ac_new_set" = set; then
1757 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1758 *) ac_arg=$ac_var=$ac_new_val ;;
1760 case " $ac_configure_args " in
1761 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1762 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1766 if $ac_cache_corrupted; then
1767 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1768 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1769 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1770 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1771 { (exit 1); exit 1; }; }
1799 ac_cpp='$CPP $CPPFLAGS'
1800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1806 ac_config_headers="$ac_config_headers pyconfig.h"
1814 # We don't use PACKAGE_ variables, and they cause conflicts
1815 # with other autoconf-based packages that include Python.h
1816 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1818 mv confdefs.h.new confdefs.h
1826 # The later defininition of _XOPEN_SOURCE disables certain features
1827 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1829 cat >>confdefs.h <<\_ACEOF
1830 #define _GNU_SOURCE 1
1834 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1835 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1838 cat >>confdefs.h <<\_ACEOF
1839 #define _NETBSD_SOURCE 1
1843 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1844 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1847 cat >>confdefs.h <<\_ACEOF
1848 #define __BSD_VISIBLE 1
1852 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1853 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1855 cat >>confdefs.h <<\_ACEOF
1856 #define _BSD_TYPES 1
1860 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1861 # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
1864 cat >>confdefs.h <<\_ACEOF
1865 #define _DARWIN_C_SOURCE 1
1870 define_xopen_source=yes
1872 # Arguments passed to configure.
1874 CONFIG_ARGS="$ac_configure_args"
1876 # Check whether --enable-universalsdk was given.
1877 if test "${enable_universalsdk+set}" = set; then
1878 enableval=$enable_universalsdk;
1881 enableval=/Developer/SDKs/MacOSX10.4u.sdk
1887 enable_universalsdk=
1890 UNIVERSALSDK=$enableval
1897 enable_universalsdk=
1906 UNIVERSAL_ARCHS="32-bit"
1907 { echo "$as_me:$LINENO: checking for --with-universal-archs" >&5
1908 echo $ECHO_N "checking for --with-universal-archs... $ECHO_C" >&6; }
1910 # Check whether --with-universal-archs was given.
1911 if test "${with_universal_archs+set}" = set; then
1912 withval=$with_universal_archs;
1913 { echo "$as_me:$LINENO: result: $withval" >&5
1914 echo "${ECHO_T}$withval" >&6; }
1915 UNIVERSAL_ARCHS="$withval"
1919 { echo "$as_me:$LINENO: result: 32-bit" >&5
1920 echo "${ECHO_T}32-bit" >&6; }
1928 # Check whether --with-framework-name was given.
1929 if test "${with_framework_name+set}" = set; then
1930 withval=$with_framework_name;
1931 PYTHONFRAMEWORK=${withval}
1932 PYTHONFRAMEWORKDIR=${withval}.framework
1933 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval |
tr 'A-Z' 'a-z'`
1937 PYTHONFRAMEWORK=Python
1938 PYTHONFRAMEWORKDIR=Python.framework
1939 PYTHONFRAMEWORKIDENTIFIER=org.python.python
1943 # Check whether --enable-framework was given.
1944 if test "${enable_framework+set}" = set; then
1945 enableval=$enable_framework;
1948 enableval=/Library/Frameworks
1953 PYTHONFRAMEWORKDIR=no-framework
1954 PYTHONFRAMEWORKPREFIX=
1955 PYTHONFRAMEWORKINSTALLDIR=
1956 FRAMEWORKINSTALLFIRST=
1957 FRAMEWORKINSTALLLAST=
1958 FRAMEWORKALTINSTALLFIRST=
1959 FRAMEWORKALTINSTALLLAST=
1960 if test "x${prefix}" = "xNONE"; then
1961 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1963 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1968 PYTHONFRAMEWORKPREFIX=$enableval
1969 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1970 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
1971 FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall"
1972 if test "$UNIVERSAL_ARCHS" = "all"
1974 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkinstallunixtools4way"
1975 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkaltinstallunixtools4way"
1977 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
1978 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
1981 if test "x${prefix}" = "xNONE" ; then
1982 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1984 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1986 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
1988 # Add files for Mac specific code to the list of output
1990 ac_config_files="$ac_config_files Mac/Makefile"
1992 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
1994 ac_config_files="$ac_config_files Mac/IDLE/Makefile"
1996 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
1998 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
2005 PYTHONFRAMEWORKDIR=no-framework
2006 PYTHONFRAMEWORKPREFIX=
2007 PYTHONFRAMEWORKINSTALLDIR=
2008 FRAMEWORKINSTALLFIRST=
2009 FRAMEWORKINSTALLLAST=
2010 FRAMEWORKALTINSTALLFIRST=
2011 FRAMEWORKALTINSTALLLAST=
2012 if test "x${prefix}" = "xNONE" ; then
2013 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2015 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2019 if test "$UNIVERSAL_ARCHS" = "all"
2021 FRAMEWORKINSTALLLAST=update4wayuniversal
2022 FRAMEWORKALTINSTALLLAST=update4wayuniversal
2039 ## AC_HELP_STRING(--with-dyld,
2040 ## Use (OpenStep|Rhapsody) dynamic linker))
2042 # Set name for machine-dependent library files
2044 { echo "$as_me:$LINENO: checking MACHDEP" >&5
2045 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; }
2046 if test -z "$MACHDEP"
2048 ac_sys_system=`uname
-s`
2049 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
2050 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
2051 ac_sys_release=`uname
-v`
2053 ac_sys_release=`uname
-r`
2055 ac_md_system=`echo $ac_sys_system |
2056 tr -d '/ ' |
tr '[A-Z]' '[a-z]'`
2057 ac_md_release=`echo $ac_sys_release |
2058 tr -d '/ ' |
sed 's/^[A-Z]\.//' |
sed 's/\..*//'`
2059 MACHDEP="$ac_md_system$ac_md_release"
2062 cygwin*) MACHDEP="cygwin";;
2063 darwin*) MACHDEP="darwin";;
2064 atheos*) MACHDEP="atheos";;
2065 irix646) MACHDEP="irix6";;
2066 '') MACHDEP="unknown";;
2070 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
2071 # disable features if it is defined, without any means to access these
2072 # features as extensions. For these systems, we skip the definition of
2073 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
2074 # some feature, make sure there is no alternative way to access this
2075 # feature. Also, when using wildcards, make sure you have verified the
2076 # need for not defining _XOPEN_SOURCE on all systems matching the
2077 # wildcard, and that the wildcard does not include future systems
2078 # (which may remove their limitations).
2079 case $ac_sys_system/$ac_sys_release in
2080 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
2081 # even though select is a POSIX function. Reported by J. Ribbens.
2082 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
2083 OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123])
2084 define_xopen_source=no
2085 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2086 # also defined. This can be overridden by defining _BSD_SOURCE
2087 # As this has a different meaning on Linux, only define it on OpenBSD
2089 cat >>confdefs.h <<\_ACEOF
2090 #define _BSD_SOURCE 1
2094 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
2095 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
2097 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
2098 define_xopen_source=no;;
2099 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
2100 # of union __?sigval. Reported by Stuart Bishop.
2102 define_xopen_source=no;;
2103 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
2104 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
2105 # Reconfirmed for 7.1.4 by Martin v. Loewis.
2106 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
2107 define_xopen_source=no;;
2108 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
2109 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
2111 define_xopen_source=no;;
2112 # On FreeBSD 4, the math functions C89 does not cover are never defined
2113 # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them.
2115 define_xopen_source=no;;
2116 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
2117 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
2118 # identifies itself as Darwin/7.*
2119 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2120 # disables platform specific features beyond repair.
2121 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2122 # has no effect, don't bother defining them
2124 define_xopen_source=no;;
2125 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
2126 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
2127 # or has another value. By not (re)defining it, the defaults come in place.
2129 define_xopen_source=no;;
2131 if test `uname
-r` -eq 1; then
2132 define_xopen_source=no
2135 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
2136 # defining NI_NUMERICHOST.
2138 define_xopen_source=no
2143 if test $define_xopen_source = yes
2145 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
2146 # defined precisely as g++ defines it
2147 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
2149 case $ac_sys_system/$ac_sys_release in
2150 SunOS/5.8|SunOS/5.9|SunOS/5.10)
2152 cat >>confdefs.h <<\_ACEOF
2153 #define _XOPEN_SOURCE 500
2159 cat >>confdefs.h <<\_ACEOF
2160 #define _XOPEN_SOURCE 600
2166 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
2167 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
2168 # several APIs are not declared. Since this is also needed in some
2169 # cases for HP-UX, we define it globally.
2170 # except for Solaris 10, where it must not be defined,
2171 # as it implies XPG4.2
2172 case $ac_sys_system/$ac_sys_release in
2177 cat >>confdefs.h <<\_ACEOF
2178 #define _XOPEN_SOURCE_EXTENDED 1
2185 cat >>confdefs.h <<\_ACEOF
2186 #define _POSIX_C_SOURCE 200112L
2193 # SGI compilers allow the specification of the both the ABI and the
2194 # ISA on the command line. Depending on the values of these switches,
2195 # different and often incompatable code will be generated.
2197 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
2198 # thus supply support for various ABI/ISA combinations. The MACHDEP
2199 # variable is also adjusted.
2202 if test ! -z "$SGI_ABI"
2205 LDFLAGS="$SGI_ABI $LDFLAGS"
2206 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" |
sed 's/ *//g'`
2208 { echo "$as_me:$LINENO: result: $MACHDEP" >&5
2209 echo "${ECHO_T}$MACHDEP" >&6; }
2211 # And add extra plat-mac for darwin
2214 { echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
2215 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6; }
2216 if test -z "$EXTRAPLATDIR"
2220 EXTRAPLATDIR="\$(PLATMACDIRS)"
2221 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
2229 { echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
2230 echo "${ECHO_T}$EXTRAPLATDIR" >&6; }
2232 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
2233 # it may influence the way we can build extensions, so distutils
2237 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
2238 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
2240 { echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5
2241 echo $ECHO_N "checking machine type as reported by uname -m... $ECHO_C" >&6; }
2242 ac_sys_machine=`uname
-m`
2243 { echo "$as_me:$LINENO: result: $ac_sys_machine" >&5
2244 echo "${ECHO_T}$ac_sys_machine" >&6; }
2246 # checks for alternative programs
2248 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
2249 # for debug/optimization stuff. BASECFLAGS is for flags that are required
2250 # just to get things to compile and link. Users are free to override OPT
2251 # when running configure or make. The build should not break if they do.
2252 # BASECFLAGS should generally not be messed with, however.
2254 # XXX shouldn't some/most/all of this code be merged with the stuff later
2255 # on that fiddles with OPT and BASECFLAGS?
2256 { echo "$as_me:$LINENO: checking for --without-gcc" >&5
2257 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; }
2259 # Check whether --with-gcc was given.
2260 if test "${with_gcc+set}" = set; then
2268 without_gcc=$withval;;
2272 case $ac_sys_system in
2276 case $BE_HOST_CPU in
2280 BASECFLAGS="$BASECFLAGS -export pragma"
2282 LDFLAGS="$LDFLAGS -nodup"
2290 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
2291 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
2292 { (exit 1); exit 1; }; }
2295 AR="\$(srcdir)/Modules/ar_beos"
2305 { echo "$as_me:$LINENO: result: $without_gcc" >&5
2306 echo "${ECHO_T}$without_gcc" >&6; }
2308 # If the user switches compilers, we can't believe the cache
2309 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
2311 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
2312 (it is also a good idea to do 'make clean' before compiling)" >&5
2313 echo "$as_me: error: cached CC is different -- throw away $cache_file
2314 (it is also a good idea to do 'make clean' before compiling)" >&2;}
2315 { (exit 1); exit 1; }; }
2319 ac_cpp='$CPP $CPPFLAGS'
2320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2323 if test -n "$ac_tool_prefix"; then
2324 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2325 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2326 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2328 if test "${ac_cv_prog_CC+set}" = set; then
2329 echo $ECHO_N "(cached) $ECHO_C" >&6
2331 if test -n "$CC"; then
2332 ac_cv_prog_CC="$CC" # Let the user override the test.
2334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2338 test -z "$as_dir" && as_dir=.
2339 for ac_exec_ext in '' $ac_executable_extensions; do
2340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2341 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2352 if test -n "$CC"; then
2353 { echo "$as_me:$LINENO: result: $CC" >&5
2354 echo "${ECHO_T}$CC" >&6; }
2356 { echo "$as_me:$LINENO: result: no" >&5
2357 echo "${ECHO_T}no" >&6; }
2362 if test -z "$ac_cv_prog_CC"; then
2364 # Extract the first word of "gcc", so it can be a program name with args.
2365 set dummy gcc; ac_word=$2
2366 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2368 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2369 echo $ECHO_N "(cached) $ECHO_C" >&6
2371 if test -n "$ac_ct_CC"; then
2372 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2378 test -z "$as_dir" && as_dir=.
2379 for ac_exec_ext in '' $ac_executable_extensions; do
2380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2381 ac_cv_prog_ac_ct_CC="gcc"
2382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2391 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2392 if test -n "$ac_ct_CC"; then
2393 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2394 echo "${ECHO_T}$ac_ct_CC" >&6; }
2396 { echo "$as_me:$LINENO: result: no" >&5
2397 echo "${ECHO_T}no" >&6; }
2400 if test "x$ac_ct_CC" = x; then
2403 case $cross_compiling:$ac_tool_warned in
2405 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2406 whose name does not start with the host triplet. If you think this
2407 configuration is useful to you, please write to autoconf@gnu.org." >&5
2408 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2409 whose name does not start with the host triplet. If you think this
2410 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2411 ac_tool_warned=yes ;;
2419 if test -z "$CC"; then
2420 if test -n "$ac_tool_prefix"; then
2421 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2422 set dummy ${ac_tool_prefix}cc; ac_word=$2
2423 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2425 if test "${ac_cv_prog_CC+set}" = set; then
2426 echo $ECHO_N "(cached) $ECHO_C" >&6
2428 if test -n "$CC"; then
2429 ac_cv_prog_CC="$CC" # Let the user override the test.
2431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2435 test -z "$as_dir" && as_dir=.
2436 for ac_exec_ext in '' $ac_executable_extensions; do
2437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2438 ac_cv_prog_CC="${ac_tool_prefix}cc"
2439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2449 if test -n "$CC"; then
2450 { echo "$as_me:$LINENO: result: $CC" >&5
2451 echo "${ECHO_T}$CC" >&6; }
2453 { echo "$as_me:$LINENO: result: no" >&5
2454 echo "${ECHO_T}no" >&6; }
2460 if test -z "$CC"; then
2461 # Extract the first word of "cc", so it can be a program name with args.
2462 set dummy cc; ac_word=$2
2463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2465 if test "${ac_cv_prog_CC+set}" = set; then
2466 echo $ECHO_N "(cached) $ECHO_C" >&6
2468 if test -n "$CC"; then
2469 ac_cv_prog_CC="$CC" # Let the user override the test.
2472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2476 test -z "$as_dir" && as_dir=.
2477 for ac_exec_ext in '' $ac_executable_extensions; do
2478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2479 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2480 ac_prog_rejected=yes
2484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2491 if test $ac_prog_rejected = yes; then
2492 # We found a bogon in the path, so make sure we never use it.
2493 set dummy $ac_cv_prog_CC
2495 if test $# != 0; then
2496 # We chose a different compiler from the bogus one.
2497 # However, it has the same basename, so the bogon will be chosen
2498 # first if we set CC to just the basename; use the full file name.
2500 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2506 if test -n "$CC"; then
2507 { echo "$as_me:$LINENO: result: $CC" >&5
2508 echo "${ECHO_T}$CC" >&6; }
2510 { echo "$as_me:$LINENO: result: no" >&5
2511 echo "${ECHO_T}no" >&6; }
2516 if test -z "$CC"; then
2517 if test -n "$ac_tool_prefix"; then
2518 for ac_prog in cl.exe
2520 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2521 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2522 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2524 if test "${ac_cv_prog_CC+set}" = set; then
2525 echo $ECHO_N "(cached) $ECHO_C" >&6
2527 if test -n "$CC"; then
2528 ac_cv_prog_CC="$CC" # Let the user override the test.
2530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2534 test -z "$as_dir" && as_dir=.
2535 for ac_exec_ext in '' $ac_executable_extensions; do
2536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2537 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2548 if test -n "$CC"; then
2549 { echo "$as_me:$LINENO: result: $CC" >&5
2550 echo "${ECHO_T}$CC" >&6; }
2552 { echo "$as_me:$LINENO: result: no" >&5
2553 echo "${ECHO_T}no" >&6; }
2557 test -n "$CC" && break
2560 if test -z "$CC"; then
2562 for ac_prog in cl.exe
2564 # Extract the first word of "$ac_prog", so it can be a program name with args.
2565 set dummy $ac_prog; ac_word=$2
2566 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2568 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2569 echo $ECHO_N "(cached) $ECHO_C" >&6
2571 if test -n "$ac_ct_CC"; then
2572 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2578 test -z "$as_dir" && as_dir=.
2579 for ac_exec_ext in '' $ac_executable_extensions; do
2580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2581 ac_cv_prog_ac_ct_CC="$ac_prog"
2582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2591 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2592 if test -n "$ac_ct_CC"; then
2593 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2594 echo "${ECHO_T}$ac_ct_CC" >&6; }
2596 { echo "$as_me:$LINENO: result: no" >&5
2597 echo "${ECHO_T}no" >&6; }
2601 test -n "$ac_ct_CC" && break
2604 if test "x$ac_ct_CC" = x; then
2607 case $cross_compiling:$ac_tool_warned in
2609 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2610 whose name does not start with the host triplet. If you think this
2611 configuration is useful to you, please write to autoconf@gnu.org." >&5
2612 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2613 whose name does not start with the host triplet. If you think this
2614 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2615 ac_tool_warned=yes ;;
2624 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2625 See \`config.log
' for more details." >&5
2626 echo "$as_me: error: no acceptable C compiler found in \$PATH
2627 See \`config.log' for more details.
" >&2;}
2628 { (exit 1); exit 1; }; }
2630 # Provide some information about the compiler.
2631 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2632 ac_compiler=`set X $ac_compile; echo $2`
2633 { (ac_try="$ac_compiler --version >&5"
2635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2636 *) ac_try_echo=$ac_try;;
2638 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2639 (eval "$ac_compiler --version >&5") 2>&5
2641 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2642 (exit $ac_status); }
2643 { (ac_try="$ac_compiler -v >&5"
2645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2646 *) ac_try_echo=$ac_try;;
2648 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2649 (eval "$ac_compiler -v >&5") 2>&5
2651 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2652 (exit $ac_status); }
2653 { (ac_try="$ac_compiler -V >&5"
2655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2656 *) ac_try_echo=$ac_try;;
2658 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2659 (eval "$ac_compiler -V >&5") 2>&5
2661 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2662 (exit $ac_status); }
2664 cat >conftest.$ac_ext <<_ACEOF
2667 cat confdefs.h >>conftest.$ac_ext
2668 cat >>conftest.$ac_ext <<_ACEOF
2669 /* end confdefs.h. */
2679 ac_clean_files_save=$ac_clean_files
2680 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2681 # Try to create an executable without -o first, disregard a.out.
2682 # It will help us diagnose broken compilers, and finding out an intuition
2684 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2685 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2686 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2688 # List of possible output files, starting from the most likely.
2689 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2690 # only as a last resort. b.out is created by i960 compilers.
2691 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2693 # The IRIX 6 linker writes into existing files which may not be
2694 # executable, retaining their permissions. Remove them first so a
2695 # subsequent execution test works.
2697 for ac_file in $ac_files
2700 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2701 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2706 if { (ac_try="$ac_link_default"
2708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2709 *) ac_try_echo=$ac_try;;
2711 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2712 (eval "$ac_link_default") 2>&5
2714 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2715 (exit $ac_status); }; then
2716 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2717 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2718 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2719 # so that the user can short-circuit this test for compilers unknown to
2721 for ac_file in $ac_files ''
2723 test -f "$ac_file" || continue
2725 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2728 # We found the default executable, but exeext='' is most
2732 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2734 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2736 # We set ac_cv_exeext here because the later test for it is not
2737 # safe: cross compilers may not add the suffix if given an `-o'
2738 # argument, so we may need to know it at that point already.
2739 # Even if this section looks crufty: it has the advantage of
2746 test "$ac_cv_exeext" = no && ac_cv_exeext=
2752 { echo "$as_me:$LINENO: result
: $ac_file" >&5
2753 echo "${ECHO_T}$ac_file" >&6; }
2754 if test -z "$ac_file"; then
2755 echo "$as_me: failed program was
:" >&5
2756 sed 's/^/| /' conftest.$ac_ext >&5
2758 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2759 See \
`config.log' for more details." >&5
2760 echo "$as_me: error: C compiler cannot create executables
2761 See \`config.log
' for more details." >&2;}
2762 { (exit 77); exit 77; }; }
2765 ac_exeext=$ac_cv_exeext
2767 # Check that the compiler produces executables we can run. If not, either
2768 # the compiler is broken, or we cross compile.
2769 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2770 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2771 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2772 # If not cross compiling, check that we can run a simple program.
2773 if test "$cross_compiling" != yes; then
2774 if { ac_try='.
/$ac_file'
2775 { (case "(($ac_try" in
2776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2777 *) ac_try_echo=$ac_try;;
2779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2780 (eval "$ac_try") 2>&5
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); }; }; then
2786 if test "$cross_compiling" = maybe; then
2789 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2790 If you meant to cross compile, use \`--host'.
2791 See \
`config.log' for more details." >&5
2792 echo "$as_me: error: cannot run C compiled programs.
2793 If you meant to cross compile, use \`--host'.
2794 See \`config.log' for more details.
" >&2;}
2795 { (exit 1); exit 1; }; }
2799 { echo "$as_me:$LINENO: result
: yes" >&5
2800 echo "${ECHO_T}yes" >&6; }
2802 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2803 ac_clean_files=$ac_clean_files_save
2804 # Check that the compiler produces executables we can run. If not, either
2805 # the compiler is broken, or we cross compile.
2806 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2807 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2808 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2809 echo "${ECHO_T}$cross_compiling" >&6; }
2811 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2812 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2813 if { (ac_try="$ac_link"
2815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2816 *) ac_try_echo=$ac_try;;
2818 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2819 (eval "$ac_link") 2>&5
2821 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2822 (exit $ac_status); }; then
2823 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2824 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2825 # work properly (i.e., refer to `conftest.exe'), while it won't with
2827 for ac_file in conftest.exe conftest conftest.*; do
2828 test -f "$ac_file" || continue
2830 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2831 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2837 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2838 See \
`config.log' for more details." >&5
2839 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2840 See \`config.log
' for more details." >&2;}
2841 { (exit 1); exit 1; }; }
2844 rm -f conftest$ac_cv_exeext
2845 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2846 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2848 rm -f conftest.$ac_ext
2849 EXEEXT=$ac_cv_exeext
2851 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2852 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2853 if test "${ac_cv_objext+set}" = set; then
2854 echo $ECHO_N "(cached) $ECHO_C" >&6
2856 cat >conftest.$ac_ext <<_ACEOF
2859 cat confdefs.h >>conftest.$ac_ext
2860 cat >>conftest.$ac_ext <<_ACEOF
2861 /* end confdefs.h. */
2871 rm -f conftest.o conftest.obj
2872 if { (ac_try="$ac_compile"
2874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2875 *) ac_try_echo=$ac_try;;
2877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2878 (eval "$ac_compile") 2>&5
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); }; then
2882 for ac_file in conftest.o conftest.obj conftest.*; do
2883 test -f "$ac_file" || continue;
2885 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2886 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2891 echo "$as_me: failed program was:" >&5
2892 sed 's
/^
/|
/' conftest.$ac_ext >&5
2894 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2895 See \`config.log' for more details.
" >&5
2896 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
2897 See \
`config.log' for more details." >&2;}
2898 { (exit 1); exit 1; }; }
2901 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2903 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2904 echo "${ECHO_T}$ac_cv_objext" >&6; }
2905 OBJEXT=$ac_cv_objext
2907 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2908 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2909 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2910 echo $ECHO_N "(cached) $ECHO_C" >&6
2912 cat >conftest.$ac_ext <<_ACEOF
2915 cat confdefs.h >>conftest.$ac_ext
2916 cat >>conftest.$ac_ext <<_ACEOF
2917 /* end confdefs.h. */
2930 rm -f conftest.$ac_objext
2931 if { (ac_try="$ac_compile"
2933 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2934 *) ac_try_echo
=$ac_try;;
2936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2937 (eval "$ac_compile") 2>conftest.er1
2939 grep -v '^ *+' conftest.er1
>conftest.err
2941 cat conftest.err
>&5
2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); } && {
2944 test -z "$ac_c_werror_flag" ||
2945 test ! -s conftest.err
2946 } && test -s conftest.
$ac_objext; then
2949 echo "$as_me: failed program was:" >&5
2950 sed 's/^/| /' conftest.
$ac_ext >&5
2955 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2956 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2959 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2960 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2961 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2962 ac_test_CFLAGS
=${CFLAGS+set}
2963 ac_save_CFLAGS
=$CFLAGS
2964 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2965 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2966 if test "${ac_cv_prog_cc_g+set}" = set; then
2967 echo $ECHO_N "(cached) $ECHO_C" >&6
2969 ac_save_c_werror_flag
=$ac_c_werror_flag
2970 ac_c_werror_flag
=yes
2973 cat >conftest.
$ac_ext <<_ACEOF
2976 cat confdefs.h
>>conftest.
$ac_ext
2977 cat >>conftest.
$ac_ext <<_ACEOF
2978 /* end confdefs.h. */
2988 rm -f conftest.
$ac_objext
2989 if { (ac_try
="$ac_compile"
2991 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2992 *) ac_try_echo=$ac_try;;
2994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2995 (eval "$ac_compile") 2>conftest.er1
2997 grep -v '^ *+' conftest.er1 >conftest.err
2999 cat conftest.err >&5
3000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001 (exit $ac_status); } && {
3002 test -z "$ac_c_werror_flag" ||
3003 test ! -s conftest.err
3004 } && test -s conftest.$ac_objext; then
3007 echo "$as_me: failed program was:" >&5
3008 sed 's/^/| /' conftest.$ac_ext >&5
3011 cat >conftest.$ac_ext <<_ACEOF
3014 cat confdefs.h >>conftest.$ac_ext
3015 cat >>conftest.$ac_ext <<_ACEOF
3016 /* end confdefs.h. */
3026 rm -f conftest.$ac_objext
3027 if { (ac_try="$ac_compile"
3029 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3030 *) ac_try_echo
=$ac_try;;
3032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3033 (eval "$ac_compile") 2>conftest.er1
3035 grep -v '^ *+' conftest.er1
>conftest.err
3037 cat conftest.err
>&5
3038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039 (exit $ac_status); } && {
3040 test -z "$ac_c_werror_flag" ||
3041 test ! -s conftest.err
3042 } && test -s conftest.
$ac_objext; then
3045 echo "$as_me: failed program was:" >&5
3046 sed 's/^/| /' conftest.
$ac_ext >&5
3048 ac_c_werror_flag
=$ac_save_c_werror_flag
3050 cat >conftest.
$ac_ext <<_ACEOF
3053 cat confdefs.h
>>conftest.
$ac_ext
3054 cat >>conftest.
$ac_ext <<_ACEOF
3055 /* end confdefs.h. */
3065 rm -f conftest.
$ac_objext
3066 if { (ac_try
="$ac_compile"
3068 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3069 *) ac_try_echo=$ac_try;;
3071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3072 (eval "$ac_compile") 2>conftest.er1
3074 grep -v '^ *+' conftest.er1 >conftest.err
3076 cat conftest.err >&5
3077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078 (exit $ac_status); } && {
3079 test -z "$ac_c_werror_flag" ||
3080 test ! -s conftest.err
3081 } && test -s conftest.$ac_objext; then
3084 echo "$as_me: failed program was:" >&5
3085 sed 's/^/| /' conftest.$ac_ext >&5
3090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3097 ac_c_werror_flag=$ac_save_c_werror_flag
3099 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3100 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3101 if test "$ac_test_CFLAGS" = set; then
3102 CFLAGS=$ac_save_CFLAGS
3103 elif test $ac_cv_prog_cc_g = yes; then
3104 if test "$GCC" = yes; then
3110 if test "$GCC" = yes; then
3116 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3117 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3118 if test "${ac_cv_prog_cc_c89+set}" = set; then
3119 echo $ECHO_N "(cached) $ECHO_C" >&6
3121 ac_cv_prog_cc_c89=no
3123 cat >conftest.$ac_ext <<_ACEOF
3126 cat confdefs.h >>conftest.$ac_ext
3127 cat >>conftest.$ac_ext <<_ACEOF
3128 /* end confdefs.h. */
3131 #include <sys/types.h>
3132 #include <sys/stat.h>
3133 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3134 struct buf { int x; };
3135 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3136 static char *e (p, i)
3142 static char *f (char * (*g) (char **, int), char **p, ...)
3147 s = g (p, va_arg (v,int));
3152 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3153 function prototypes and stuff, but not '\xHH' hex character constants.
3154 These don't provoke an error unfortunately, instead are silently treated
3155 as 'x'. The following induces an error, until -std is added to get
3156 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3157 array size at least. It's necessary to write '\x00'==0 to get something
3158 that's true only with -std. */
3159 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3161 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3162 inside strings and character constants. */
3164 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3166 int test (int i, double x);
3167 struct s1 {int (*f) (int a);};
3168 struct s2 {int (*f) (double a);};
3169 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3175 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3180 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3181 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3183 CC="$ac_save_CC $ac_arg"
3184 rm -f conftest.$ac_objext
3185 if { (ac_try="$ac_compile"
3187 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3188 *) ac_try_echo
=$ac_try;;
3190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3191 (eval "$ac_compile") 2>conftest.er1
3193 grep -v '^ *+' conftest.er1
>conftest.err
3195 cat conftest.err
>&5
3196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); } && {
3198 test -z "$ac_c_werror_flag" ||
3199 test ! -s conftest.err
3200 } && test -s conftest.
$ac_objext; then
3201 ac_cv_prog_cc_c89
=$ac_arg
3203 echo "$as_me: failed program was:" >&5
3204 sed 's/^/| /' conftest.
$ac_ext >&5
3209 rm -f core conftest.err conftest.
$ac_objext
3210 test "x$ac_cv_prog_cc_c89" != "xno" && break
3212 rm -f conftest.
$ac_ext
3217 case "x$ac_cv_prog_cc_c89" in
3219 { echo "$as_me:$LINENO: result: none needed" >&5
3220 echo "${ECHO_T}none needed" >&6; } ;;
3222 { echo "$as_me:$LINENO: result: unsupported" >&5
3223 echo "${ECHO_T}unsupported" >&6; } ;;
3225 CC
="$CC $ac_cv_prog_cc_c89"
3226 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3227 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3232 ac_cpp
='$CPP $CPPFLAGS'
3233 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3234 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3235 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3240 { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
3241 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; }
3243 # Check whether --with-cxx_main was given.
3244 if test "${with_cxx_main+set}" = set; then
3245 withval
=$with_cxx_main;
3248 no
) with_cxx_main
=no
3250 yes) with_cxx_main
=yes
3252 *) with_cxx_main
=yes
3266 { echo "$as_me:$LINENO: result: $with_cxx_main" >&5
3267 echo "${ECHO_T}$with_cxx_main" >&6; }
3273 gcc
) # Extract the first word of "g++", so it can be a program name with args.
3274 set dummy g
++; ac_word
=$2
3275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3277 if test "${ac_cv_path_CXX+set}" = set; then
3278 echo $ECHO_N "(cached) $ECHO_C" >&6
3282 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
3285 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3286 for as_dir
in notfound
3289 test -z "$as_dir" && as_dir
=.
3290 for ac_exec_ext
in '' $ac_executable_extensions; do
3291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3292 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
3293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3300 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="g++"
3305 if test -n "$CXX"; then
3306 { echo "$as_me:$LINENO: result: $CXX" >&5
3307 echo "${ECHO_T}$CXX" >&6; }
3309 { echo "$as_me:$LINENO: result: no" >&5
3310 echo "${ECHO_T}no" >&6; }
3314 cc
) # Extract the first word of "c++", so it can be a program name with args.
3315 set dummy c
++; ac_word
=$2
3316 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3318 if test "${ac_cv_path_CXX+set}" = set; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
3323 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
3326 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3327 for as_dir
in notfound
3330 test -z "$as_dir" && as_dir
=.
3331 for ac_exec_ext
in '' $ac_executable_extensions; do
3332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3333 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
3334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3341 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="c++"
3346 if test -n "$CXX"; then
3347 { echo "$as_me:$LINENO: result: $CXX" >&5
3348 echo "${ECHO_T}$CXX" >&6; }
3350 { echo "$as_me:$LINENO: result: no" >&5
3351 echo "${ECHO_T}no" >&6; }
3356 if test "$CXX" = "notfound"
3363 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
3365 # Extract the first word of "$ac_prog", so it can be a program name with args.
3366 set dummy
$ac_prog; ac_word
=$2
3367 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3369 if test "${ac_cv_prog_CXX+set}" = set; then
3370 echo $ECHO_N "(cached) $ECHO_C" >&6
3372 if test -n "$CXX"; then
3373 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
3375 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3379 test -z "$as_dir" && as_dir
=.
3380 for ac_exec_ext
in '' $ac_executable_extensions; do
3381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3382 ac_cv_prog_CXX
="$ac_prog"
3383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3393 if test -n "$CXX"; then
3394 { echo "$as_me:$LINENO: result: $CXX" >&5
3395 echo "${ECHO_T}$CXX" >&6; }
3397 { echo "$as_me:$LINENO: result: no" >&5
3398 echo "${ECHO_T}no" >&6; }
3402 test -n "$CXX" && break
3404 test -n "$CXX" || CXX
="notfound"
3406 if test "$CXX" = "notfound"
3411 if test "$preset_cxx" != "$CXX"
3413 { echo "$as_me:$LINENO: WARNING:
3415 By default, distutils will build C++ extension modules with \"$CXX\".
3416 If this is not intended, then set CXX on the configure command line.
3418 echo "$as_me: WARNING:
3420 By default, distutils will build C++ extension modules with \"$CXX\".
3421 If this is not intended, then set CXX on the configure command line.
3426 # checks for UNIX variants that set C preprocessor variables
3429 ac_cpp
='$CPP $CPPFLAGS'
3430 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3431 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3432 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3433 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3434 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3435 # On Suns, sometimes $CPP names a directory.
3436 if test -n "$CPP" && test -d "$CPP"; then
3439 if test -z "$CPP"; then
3440 if test "${ac_cv_prog_CPP+set}" = set; then
3441 echo $ECHO_N "(cached) $ECHO_C" >&6
3443 # Double quotes because CPP needs to be expanded
3444 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3447 for ac_c_preproc_warn_flag
in '' yes
3449 # Use a header file that comes with gcc, so configuring glibc
3450 # with a fresh cross-compiler works.
3451 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3452 # <limits.h> exists even on freestanding compilers.
3453 # On the NeXT, cc -E runs the code through the compiler's parser,
3454 # not just through cpp. "Syntax error" is here to catch this case.
3455 cat >conftest.
$ac_ext <<_ACEOF
3458 cat confdefs.h
>>conftest.
$ac_ext
3459 cat >>conftest.
$ac_ext <<_ACEOF
3460 /* end confdefs.h. */
3462 # include <limits.h>
3464 # include <assert.h>
3468 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3470 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3471 *) ac_try_echo=$ac_try;;
3473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3474 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3476 grep -v '^ *+' conftest.er1 >conftest.err
3478 cat conftest.err >&5
3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480 (exit $ac_status); } >/dev/null && {
3481 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3482 test ! -s conftest.err
3486 echo "$as_me: failed program was:" >&5
3487 sed 's/^/| /' conftest.$ac_ext >&5
3489 # Broken: fails on valid input.
3493 rm -f conftest.err conftest.$ac_ext
3495 # OK, works on sane cases. Now check whether nonexistent headers
3496 # can be detected and how.
3497 cat >conftest.$ac_ext <<_ACEOF
3500 cat confdefs.h >>conftest.$ac_ext
3501 cat >>conftest.$ac_ext <<_ACEOF
3502 /* end confdefs.h. */
3503 #include <ac_nonexistent.h>
3505 if { (ac_try="$ac_cpp conftest.$ac_ext"
3507 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3508 *) ac_try_echo
=$ac_try;;
3510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3511 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3513 grep -v '^ *+' conftest.er1
>conftest.err
3515 cat conftest.err
>&5
3516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517 (exit $ac_status); } >/dev
/null
&& {
3518 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3519 test ! -s conftest.err
3521 # Broken: success on invalid input.
3524 echo "$as_me: failed program was:" >&5
3525 sed 's/^/| /' conftest.
$ac_ext >&5
3527 # Passes both tests.
3532 rm -f conftest.err conftest.
$ac_ext
3535 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3536 rm -f conftest.err conftest.
$ac_ext
3537 if $ac_preproc_ok; then
3549 { echo "$as_me:$LINENO: result: $CPP" >&5
3550 echo "${ECHO_T}$CPP" >&6; }
3552 for ac_c_preproc_warn_flag
in '' yes
3554 # Use a header file that comes with gcc, so configuring glibc
3555 # with a fresh cross-compiler works.
3556 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3557 # <limits.h> exists even on freestanding compilers.
3558 # On the NeXT, cc -E runs the code through the compiler's parser,
3559 # not just through cpp. "Syntax error" is here to catch this case.
3560 cat >conftest.
$ac_ext <<_ACEOF
3563 cat confdefs.h
>>conftest.
$ac_ext
3564 cat >>conftest.
$ac_ext <<_ACEOF
3565 /* end confdefs.h. */
3567 # include <limits.h>
3569 # include <assert.h>
3573 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3575 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3576 *) ac_try_echo=$ac_try;;
3578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3581 grep -v '^ *+' conftest.er1 >conftest.err
3583 cat conftest.err >&5
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); } >/dev/null && {
3586 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3587 test ! -s conftest.err
3591 echo "$as_me: failed program was:" >&5
3592 sed 's/^/| /' conftest.$ac_ext >&5
3594 # Broken: fails on valid input.
3598 rm -f conftest.err conftest.$ac_ext
3600 # OK, works on sane cases. Now check whether nonexistent headers
3601 # can be detected and how.
3602 cat >conftest.$ac_ext <<_ACEOF
3605 cat confdefs.h >>conftest.$ac_ext
3606 cat >>conftest.$ac_ext <<_ACEOF
3607 /* end confdefs.h. */
3608 #include <ac_nonexistent.h>
3610 if { (ac_try="$ac_cpp conftest.$ac_ext"
3612 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3613 *) ac_try_echo
=$ac_try;;
3615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3616 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3618 grep -v '^ *+' conftest.er1
>conftest.err
3620 cat conftest.err
>&5
3621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622 (exit $ac_status); } >/dev
/null
&& {
3623 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3624 test ! -s conftest.err
3626 # Broken: success on invalid input.
3629 echo "$as_me: failed program was:" >&5
3630 sed 's/^/| /' conftest.
$ac_ext >&5
3632 # Passes both tests.
3637 rm -f conftest.err conftest.
$ac_ext
3640 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3641 rm -f conftest.err conftest.
$ac_ext
3642 if $ac_preproc_ok; then
3645 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3646 See \`config.log' for more details." >&5
3647 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3648 See \`config.log' for more details." >&2;}
3649 { (exit 1); exit 1; }; }
3653 ac_cpp
='$CPP $CPPFLAGS'
3654 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3655 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3656 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3659 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3660 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3661 if test "${ac_cv_path_GREP+set}" = set; then
3662 echo $ECHO_N "(cached) $ECHO_C" >&6
3664 # Extract the first word of "grep ggrep" to use in msg output
3665 if test -z "$GREP"; then
3666 set dummy
grep ggrep
; ac_prog_name
=$2
3667 if test "${ac_cv_path_GREP+set}" = set; then
3668 echo $ECHO_N "(cached) $ECHO_C" >&6
3670 ac_path_GREP_found
=false
3671 # Loop through the user's path and test for each of PROGNAME-LIST
3672 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3673 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3676 test -z "$as_dir" && as_dir
=.
3677 for ac_prog
in grep ggrep
; do
3678 for ac_exec_ext
in '' $ac_executable_extensions; do
3679 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3680 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3681 # Check for GNU ac_path_GREP and select it if it is found.
3682 # Check for GNU $ac_path_GREP
3683 case `"$ac_path_GREP" --version 2>&1` in
3685 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3688 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3691 cat "conftest.in" "conftest.in" >"conftest.tmp"
3692 mv "conftest.tmp" "conftest.in"
3693 cp "conftest.in" "conftest.nl"
3694 echo 'GREP' >> "conftest.nl"
3695 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3696 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3697 ac_count
=`expr $ac_count + 1`
3698 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3699 # Best one so far, save it but keep looking for a better one
3700 ac_cv_path_GREP
="$ac_path_GREP"
3701 ac_path_GREP_max
=$ac_count
3703 # 10*(2^10) chars as input seems more than enough
3704 test $ac_count -gt 10 && break
3706 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3710 $ac_path_GREP_found && break 3
3720 GREP
="$ac_cv_path_GREP"
3721 if test -z "$GREP"; then
3722 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3723 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3724 { (exit 1); exit 1; }; }
3728 ac_cv_path_GREP
=$GREP
3733 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3734 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3735 GREP
="$ac_cv_path_GREP"
3738 { echo "$as_me:$LINENO: checking for egrep" >&5
3739 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3740 if test "${ac_cv_path_EGREP+set}" = set; then
3741 echo $ECHO_N "(cached) $ECHO_C" >&6
3743 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3744 then ac_cv_path_EGREP
="$GREP -E"
3746 # Extract the first word of "egrep" to use in msg output
3747 if test -z "$EGREP"; then
3748 set dummy
egrep; ac_prog_name
=$2
3749 if test "${ac_cv_path_EGREP+set}" = set; then
3750 echo $ECHO_N "(cached) $ECHO_C" >&6
3752 ac_path_EGREP_found
=false
3753 # Loop through the user's path and test for each of PROGNAME-LIST
3754 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3755 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3758 test -z "$as_dir" && as_dir
=.
3759 for ac_prog
in egrep; do
3760 for ac_exec_ext
in '' $ac_executable_extensions; do
3761 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3762 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3763 # Check for GNU ac_path_EGREP and select it if it is found.
3764 # Check for GNU $ac_path_EGREP
3765 case `"$ac_path_EGREP" --version 2>&1` in
3767 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3770 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3773 cat "conftest.in" "conftest.in" >"conftest.tmp"
3774 mv "conftest.tmp" "conftest.in"
3775 cp "conftest.in" "conftest.nl"
3776 echo 'EGREP' >> "conftest.nl"
3777 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3778 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3779 ac_count
=`expr $ac_count + 1`
3780 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3781 # Best one so far, save it but keep looking for a better one
3782 ac_cv_path_EGREP
="$ac_path_EGREP"
3783 ac_path_EGREP_max
=$ac_count
3785 # 10*(2^10) chars as input seems more than enough
3786 test $ac_count -gt 10 && break
3788 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3792 $ac_path_EGREP_found && break 3
3802 EGREP
="$ac_cv_path_EGREP"
3803 if test -z "$EGREP"; then
3804 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3805 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3806 { (exit 1); exit 1; }; }
3810 ac_cv_path_EGREP
=$EGREP
3816 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3817 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3818 EGREP
="$ac_cv_path_EGREP"
3822 { echo "$as_me:$LINENO: checking for AIX" >&5
3823 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3824 cat >conftest.
$ac_ext <<_ACEOF
3827 cat confdefs.h
>>conftest.
$ac_ext
3828 cat >>conftest.
$ac_ext <<_ACEOF
3829 /* end confdefs.h. */
3835 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3836 $EGREP "yes" >/dev
/null
2>&1; then
3837 { echo "$as_me:$LINENO: result: yes" >&5
3838 echo "${ECHO_T}yes" >&6; }
3839 cat >>confdefs.h
<<\_ACEOF
3840 #define _ALL_SOURCE 1
3844 { echo "$as_me:$LINENO: result: no" >&5
3845 echo "${ECHO_T}no" >&6; }
3851 # Check for unsupported systems
3852 case $ac_sys_system/$ac_sys_release in
3854 echo This system \
($ac_sys_system/$ac_sys_release\
) is no longer supported.
3855 echo See README
for details.
3860 { echo "$as_me:$LINENO: checking for --with-suffix" >&5
3861 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; }
3863 # Check whether --with-suffix was given.
3864 if test "${with_suffix+set}" = set; then
3865 withval
=$with_suffix;
3869 *) EXEEXT
=$withval;;
3873 { echo "$as_me:$LINENO: result: $EXEEXT" >&5
3874 echo "${ECHO_T}$EXEEXT" >&6; }
3876 # Test whether we're running on a non-case-sensitive system, in which
3877 # case we give a warning if no ext is given
3879 { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3880 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; }
3881 if test ! -d CaseSensitiveTestDir
; then
3882 mkdir CaseSensitiveTestDir
3885 if test -d casesensitivetestdir
3887 { echo "$as_me:$LINENO: result: yes" >&5
3888 echo "${ECHO_T}yes" >&6; }
3891 { echo "$as_me:$LINENO: result: no" >&5
3892 echo "${ECHO_T}no" >&6; }
3895 rmdir CaseSensitiveTestDir
3900 gcc
) CC
="$CC -D_HAVE_BSDI";;
3904 case $ac_sys_system in
3907 cc|
*/cc
) CC
="$CC -Ae";;
3911 cc
) CC
="$CC -Wl,-Bexport";;
3914 # Some functions have a prototype only with that define, e.g. confstr
3916 cat >>confdefs.h
<<\_ACEOF
3917 #define __EXTENSIONS__ 1
3925 { echo "$as_me:$LINENO: checking LIBRARY" >&5
3926 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; }
3927 if test -z "$LIBRARY"
3929 LIBRARY
='libpython$(VERSION).a'
3931 { echo "$as_me:$LINENO: result: $LIBRARY" >&5
3932 echo "${ECHO_T}$LIBRARY" >&6; }
3934 # LDLIBRARY is the name of the library to link against (as opposed to the
3935 # name of the library into which to insert object files). BLDLIBRARY is also
3936 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3937 # is blank as the main program is not linked directly against LDLIBRARY.
3938 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3939 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3940 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3941 # DLLLIBRARY is the shared (i.e., DLL) library.
3943 # RUNSHARED is used to run shared python without installed libraries
3945 # INSTSONAME is the name of the shared library that will be use to install
3946 # on the system - some systems like version suffix, others don't
3953 LDLIBRARY
="$LIBRARY"
3954 BLDLIBRARY
='$(LDLIBRARY)'
3955 INSTSONAME
='$(LDLIBRARY)'
3960 # LINKCC is the command that links the python executable -- default is $(CC).
3961 # If CXX is set, and if it is needed to link a main function that was
3962 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3963 # python might then depend on the C++ runtime
3964 # This is altered for AIX in order to build the export list before
3967 { echo "$as_me:$LINENO: checking LINKCC" >&5
3968 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; }
3969 if test -z "$LINKCC"
3971 LINKCC
='$(PURIFY) $(MAINCC)'
3972 case $ac_sys_system in
3975 if test $ac_sys_release -ge 5 -o \
3976 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3979 LINKCC
="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3981 LINKCC
="$LINKCC -L/usr/lib/ia64l64";;
3983 # qcc must be used because the other compilers do not
3988 { echo "$as_me:$LINENO: result: $LINKCC" >&5
3989 echo "${ECHO_T}$LINKCC" >&6; }
3991 { echo "$as_me:$LINENO: checking for --enable-shared" >&5
3992 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; }
3993 # Check whether --enable-shared was given.
3994 if test "${enable_shared+set}" = set; then
3995 enableval
=$enable_shared;
3999 if test -z "$enable_shared"
4001 case $ac_sys_system in
4003 enable_shared
="yes";;
4005 enable_shared
="no";;
4008 { echo "$as_me:$LINENO: result: $enable_shared" >&5
4009 echo "${ECHO_T}$enable_shared" >&6; }
4011 { echo "$as_me:$LINENO: checking for --enable-profiling" >&5
4012 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; }
4013 # Check whether --enable-profiling was given.
4014 if test "${enable_profiling+set}" = set; then
4015 enableval
=$enable_profiling; ac_save_cc
="$CC"
4017 if test "$cross_compiling" = yes; then
4018 ac_enable_profiling
="no"
4020 cat >conftest.
$ac_ext <<_ACEOF
4023 cat confdefs.h
>>conftest.
$ac_ext
4024 cat >>conftest.
$ac_ext <<_ACEOF
4025 /* end confdefs.h. */
4026 int main() { return 0; }
4028 rm -f conftest
$ac_exeext
4029 if { (ac_try
="$ac_link"
4031 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4032 *) ac_try_echo=$ac_try;;
4034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4035 (eval "$ac_link") 2>&5
4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4039 { (case "(($ac_try" in
4040 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4041 *) ac_try_echo
=$ac_try;;
4043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4044 (eval "$ac_try") 2>&5
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); }; }; then
4048 ac_enable_profiling
="yes"
4050 echo "$as_me: program exited with status $ac_status" >&5
4051 echo "$as_me: failed program was:" >&5
4052 sed 's/^/| /' conftest.
$ac_ext >&5
4055 ac_enable_profiling
="no"
4057 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4064 { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
4065 echo "${ECHO_T}$ac_enable_profiling" >&6; }
4067 case "$ac_enable_profiling" in
4069 BASECFLAGS
="-pg $BASECFLAGS"
4070 LDFLAGS
="-pg $LDFLAGS"
4074 { echo "$as_me:$LINENO: checking LDLIBRARY" >&5
4075 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; }
4077 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
4078 # library that we build, but we do not want to link against it (we
4079 # will find it with a -framework option). For this reason there is an
4080 # extra variable BLDLIBRARY against which Python and the extension
4081 # modules are linked, BLDLIBRARY. This is normally the same as
4082 # LDLIBRARY, but empty for MacOSX framework builds.
4083 if test "$enable_framework"
4085 LDLIBRARY
='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
4086 RUNSHARED
=DYLD_FRAMEWORK_PATH
="`pwd`:$DYLD_FRAMEWORK_PATH"
4089 BLDLIBRARY
='$(LDLIBRARY)'
4092 # Other platforms follow
4093 if test $enable_shared = "yes"; then
4095 cat >>confdefs.h
<<\_ACEOF
4096 #define Py_ENABLE_SHARED 1
4099 case $ac_sys_system in
4101 LDLIBRARY
='libpython$(VERSION).so'
4104 LDLIBRARY
='libpython$(VERSION).dll.a'
4105 DLLLIBRARY
='libpython$(VERSION).dll'
4108 LDLIBRARY
='libpython$(VERSION).so'
4109 BLDLIBRARY
='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
4110 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4111 INSTSONAME
="$LDLIBRARY".
$SOVERSION
4113 Linux
*|GNU
*|NetBSD
*|FreeBSD
*|DragonFly
*)
4114 LDLIBRARY
='libpython$(VERSION).so'
4115 BLDLIBRARY
='-L. -lpython$(VERSION)'
4116 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4117 case $ac_sys_system in
4119 SOVERSION
=`echo $SOVERSION|cut -d "." -f 1`
4122 INSTSONAME
="$LDLIBRARY".
$SOVERSION
4127 LDLIBRARY
='libpython$(VERSION).so'
4130 LDLIBRARY
='libpython$(VERSION).sl'
4133 BLDLIBRARY
='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
4134 RUNSHARED
=SHLIB_PATH
=`pwd`:${SHLIB_PATH}
4137 LDLIBRARY
='libpython$(VERSION).so'
4138 BLDLIBRARY
='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
4139 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4142 LDLIBRARY
='libpython$(VERSION).so'
4143 BLDLIBRARY
='-L. -lpython$(VERSION)'
4144 RUNSHARED
=DLL_PATH
=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
4147 LDLIBRARY
='libpython$(VERSION).dylib'
4148 BLDLIBRARY
='-L. -lpython$(VERSION)'
4149 RUNSHARED
='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}'
4153 else # shared is disabled
4154 case $ac_sys_system in
4156 BLDLIBRARY
='$(LIBRARY)'
4157 LDLIBRARY
='libpython$(VERSION).dll.a'
4162 { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
4163 echo "${ECHO_T}$LDLIBRARY" >&6; }
4165 if test -n "$ac_tool_prefix"; then
4166 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4167 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4168 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4170 if test "${ac_cv_prog_RANLIB+set}" = set; then
4171 echo $ECHO_N "(cached) $ECHO_C" >&6
4173 if test -n "$RANLIB"; then
4174 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4176 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4180 test -z "$as_dir" && as_dir
=.
4181 for ac_exec_ext
in '' $ac_executable_extensions; do
4182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4183 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4193 RANLIB
=$ac_cv_prog_RANLIB
4194 if test -n "$RANLIB"; then
4195 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4196 echo "${ECHO_T}$RANLIB" >&6; }
4198 { echo "$as_me:$LINENO: result: no" >&5
4199 echo "${ECHO_T}no" >&6; }
4204 if test -z "$ac_cv_prog_RANLIB"; then
4205 ac_ct_RANLIB
=$RANLIB
4206 # Extract the first word of "ranlib", so it can be a program name with args.
4207 set dummy ranlib
; ac_word
=$2
4208 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4210 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4211 echo $ECHO_N "(cached) $ECHO_C" >&6
4213 if test -n "$ac_ct_RANLIB"; then
4214 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4216 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4220 test -z "$as_dir" && as_dir
=.
4221 for ac_exec_ext
in '' $ac_executable_extensions; do
4222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4223 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4233 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4234 if test -n "$ac_ct_RANLIB"; then
4235 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4236 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4238 { echo "$as_me:$LINENO: result: no" >&5
4239 echo "${ECHO_T}no" >&6; }
4242 if test "x$ac_ct_RANLIB" = x
; then
4245 case $cross_compiling:$ac_tool_warned in
4247 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4248 whose name does not start with the host triplet. If you think this
4249 configuration is useful to you, please write to autoconf@gnu.org." >&5
4250 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4251 whose name does not start with the host triplet. If you think this
4252 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4253 ac_tool_warned
=yes ;;
4255 RANLIB
=$ac_ct_RANLIB
4258 RANLIB
="$ac_cv_prog_RANLIB"
4262 for ac_prog
in ar aal
4264 # Extract the first word of "$ac_prog", so it can be a program name with args.
4265 set dummy
$ac_prog; ac_word
=$2
4266 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4268 if test "${ac_cv_prog_AR+set}" = set; then
4269 echo $ECHO_N "(cached) $ECHO_C" >&6
4271 if test -n "$AR"; then
4272 ac_cv_prog_AR
="$AR" # Let the user override the test.
4274 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4278 test -z "$as_dir" && as_dir
=.
4279 for ac_exec_ext
in '' $ac_executable_extensions; do
4280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4281 ac_cv_prog_AR
="$ac_prog"
4282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4292 if test -n "$AR"; then
4293 { echo "$as_me:$LINENO: result: $AR" >&5
4294 echo "${ECHO_T}$AR" >&6; }
4296 { echo "$as_me:$LINENO: result: no" >&5
4297 echo "${ECHO_T}no" >&6; }
4301 test -n "$AR" && break
4303 test -n "$AR" || AR
="ar"
4307 # Extract the first word of "svnversion", so it can be a program name with args.
4308 set dummy svnversion
; ac_word
=$2
4309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4311 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
4312 echo $ECHO_N "(cached) $ECHO_C" >&6
4314 if test -n "$SVNVERSION"; then
4315 ac_cv_prog_SVNVERSION
="$SVNVERSION" # Let the user override the test.
4317 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4321 test -z "$as_dir" && as_dir
=.
4322 for ac_exec_ext
in '' $ac_executable_extensions; do
4323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4324 ac_cv_prog_SVNVERSION
="found"
4325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4332 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION
="not-found"
4335 SVNVERSION
=$ac_cv_prog_SVNVERSION
4336 if test -n "$SVNVERSION"; then
4337 { echo "$as_me:$LINENO: result: $SVNVERSION" >&5
4338 echo "${ECHO_T}$SVNVERSION" >&6; }
4340 { echo "$as_me:$LINENO: result: no" >&5
4341 echo "${ECHO_T}no" >&6; }
4345 if test $SVNVERSION = found
4347 SVNVERSION
="svnversion \$(srcdir)"
4349 SVNVERSION
="echo exported"
4354 # install -d does not work on BSDI or HP-UX
4355 if test -z "$INSTALL"
4357 INSTALL
="${srcdir}/install-sh -c"
4361 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4362 if test -f "$ac_dir/install-sh"; then
4364 ac_install_sh
="$ac_aux_dir/install-sh -c"
4366 elif test -f "$ac_dir/install.sh"; then
4368 ac_install_sh
="$ac_aux_dir/install.sh -c"
4370 elif test -f "$ac_dir/shtool"; then
4372 ac_install_sh
="$ac_aux_dir/shtool install -c"
4376 if test -z "$ac_aux_dir"; then
4377 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4378 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4379 { (exit 1); exit 1; }; }
4382 # These three variables are undocumented and unsupported,
4383 # and are intended to be withdrawn in a future Autoconf release.
4384 # They can cause serious problems if a builder's source tree is in a directory
4385 # whose full name contains unusual characters.
4386 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4387 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4388 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4391 # Find a good install program. We prefer a C program (faster),
4392 # so one script is as good as another. But avoid the broken or
4393 # incompatible versions:
4394 # SysV /etc/install, /usr/sbin/install
4395 # SunOS /usr/etc/install
4396 # IRIX /sbin/install
4398 # AmigaOS /C/install, which installs bootblocks on floppy discs
4399 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4400 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4401 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4402 # OS/2's system install, which has a completely different semantic
4403 # ./install, which can be erroneously created by make from ./install.sh.
4404 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4405 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4406 if test -z "$INSTALL"; then
4407 if test "${ac_cv_path_install+set}" = set; then
4408 echo $ECHO_N "(cached) $ECHO_C" >&6
4410 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4414 test -z "$as_dir" && as_dir
=.
4415 # Account for people who put trailing slashes in PATH elements.
4417 .
/ | .
// |
/cC
/* | \
4418 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4419 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4422 # OSF1 and SCO ODT 3.0 have their own names for install.
4423 # Don't use installbsd from OSF since it installs stuff as root
4425 for ac_prog
in ginstall scoinst
install; do
4426 for ac_exec_ext
in '' $ac_executable_extensions; do
4427 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4428 if test $ac_prog = install &&
4429 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4430 # AIX install. It has an incompatible calling convention.
4432 elif test $ac_prog = install &&
4433 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4434 # program-specific install script used by HP pwplus--don't use.
4437 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4450 if test "${ac_cv_path_install+set}" = set; then
4451 INSTALL
=$ac_cv_path_install
4453 # As a last resort, use the slow shell script. Don't cache a
4454 # value for INSTALL within a source directory, because that will
4455 # break other packages using the cache if that directory is
4456 # removed, or if the value is a relative name.
4457 INSTALL
=$ac_install_sh
4460 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4461 echo "${ECHO_T}$INSTALL" >&6; }
4463 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4464 # It thinks the first close brace ends the variable substitution.
4465 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4467 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4469 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4472 # Not every filesystem supports hard links
4474 if test -z "$LN" ; then
4475 case $ac_sys_system in
4477 CYGWIN
*) LN
="ln -s";;
4478 atheos
*) LN
="ln -s";;
4483 # Check for --with-pydebug
4484 { echo "$as_me:$LINENO: checking for --with-pydebug" >&5
4485 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; }
4487 # Check whether --with-pydebug was given.
4488 if test "${with_pydebug+set}" = set; then
4489 withval
=$with_pydebug;
4490 if test "$withval" != no
4493 cat >>confdefs.h
<<\_ACEOF
4497 { echo "$as_me:$LINENO: result: yes" >&5
4498 echo "${ECHO_T}yes" >&6; };
4500 else { echo "$as_me:$LINENO: result: no" >&5
4501 echo "${ECHO_T}no" >&6; }; Py_DEBUG
='false'
4504 { echo "$as_me:$LINENO: result: no" >&5
4505 echo "${ECHO_T}no" >&6; }
4509 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
4510 # merged with this chunk of code?
4512 # Optimizer/debugger flags
4513 # ------------------------
4514 # (The following bit of code is complicated enough - please keep things
4515 # indented properly. Just pretend you're editing Python code. ;-)
4517 # There are two parallel sets of case statements below, one that checks to
4518 # see if OPT was set and one that does BASECFLAGS setting based upon
4519 # compiler and platform. BASECFLAGS tweaks need to be made even if the
4522 # tweak OPT based on compiler and platform, only if the user didn't set
4523 # it on the command line
4529 if test "$CC" != 'g++' ; then
4530 STRICT_PROTO
="-Wstrict-prototypes"
4532 # For gcc 4.x we need to use -fwrapv so lets check if its supported
4533 if "$CC" -v --help 2>/dev
/null |
grep -- -fwrapv > /dev
/null
; then
4536 case $ac_cv_prog_cc_g in
4538 if test "$Py_DEBUG" = 'true' ; then
4539 # Optimization messes up debuggers, so turn it off for
4541 OPT
="-g -Wall $STRICT_PROTO"
4543 OPT
="-g $WRAP -O3 -Wall $STRICT_PROTO"
4547 OPT
="-O3 -Wall $STRICT_PROTO"
4550 case $ac_sys_system in
4551 SCO_SV
*) OPT
="$OPT -m486 -DSCO5"
4561 # The current (beta) Monterey compiler dies with optimizations
4562 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
4563 case $ac_sys_system in
4573 # The -arch flags for universal builds on OSX
4574 UNIVERSAL_ARCH_FLAGS
=
4577 # tweak BASECFLAGS based on compiler and platform
4580 # Python violates C99 rules, by casting between incompatible
4581 # pointer types. GCC may generate bad code as a result of that,
4582 # so use -fno-strict-aliasing if supported.
4583 { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
4584 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; }
4586 CC
="$CC -fno-strict-aliasing"
4587 if test "$cross_compiling" = yes; then
4588 ac_cv_no_strict_aliasing_ok
=no
4590 cat >conftest.
$ac_ext <<_ACEOF
4593 cat confdefs.h
>>conftest.
$ac_ext
4594 cat >>conftest.
$ac_ext <<_ACEOF
4595 /* end confdefs.h. */
4596 int main() { return 0; }
4598 rm -f conftest
$ac_exeext
4599 if { (ac_try
="$ac_link"
4601 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4602 *) ac_try_echo=$ac_try;;
4604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4605 (eval "$ac_link") 2>&5
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4609 { (case "(($ac_try" in
4610 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4611 *) ac_try_echo
=$ac_try;;
4613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4614 (eval "$ac_try") 2>&5
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); }; }; then
4618 ac_cv_no_strict_aliasing_ok
=yes
4620 echo "$as_me: program exited with status $ac_status" >&5
4621 echo "$as_me: failed program was:" >&5
4622 sed 's/^/| /' conftest.
$ac_ext >&5
4625 ac_cv_no_strict_aliasing_ok
=no
4627 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4632 { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
4633 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; }
4634 if test $ac_cv_no_strict_aliasing_ok = yes
4636 BASECFLAGS
="$BASECFLAGS -fno-strict-aliasing"
4639 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
4640 # support. Without this, treatment of subnormals doesn't follow
4642 case $ac_sys_machine in
4644 BASECFLAGS
="$BASECFLAGS -mieee"
4648 case $ac_sys_system in
4650 BASECFLAGS
="$BASECFLAGS -m486 -DSCO5"
4652 # is there any other compiler on Darwin besides gcc?
4654 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
4655 # used to be here, but non-Apple gcc doesn't accept them.
4658 if test "${enable_universalsdk}"; then
4659 UNIVERSAL_ARCH_FLAGS
=""
4660 if test "$UNIVERSAL_ARCHS" = "32-bit" ; then
4661 UNIVERSAL_ARCH_FLAGS
="-arch ppc -arch i386"
4664 elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then
4665 UNIVERSAL_ARCH_FLAGS
="-arch ppc64 -arch x86_64"
4667 elif test "$UNIVERSAL_ARCHS" = "all" ; then
4668 UNIVERSAL_ARCH_FLAGS
="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
4669 ARCH_RUN_32BIT
="arch -i386 -ppc"
4672 { { echo "$as_me:$LINENO: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&5
4673 echo "$as_me: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&2;}
4674 { (exit 1); exit 1; }; }
4679 BASECFLAGS
="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
4680 tgt
=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4681 if test "${UNIVERSALSDK}" != "/" -a "${tgt}" '>' '10.4' ; then
4682 CFLAGS
="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
4686 # Calculate the right deployment target for this build.
4688 cur_target
=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4689 if test ${cur_target} '>' 10.2; then
4692 if test "${UNIVERSAL_ARCHS}" = "all"; then
4693 # Ensure that the default platform for a 4-way
4694 # universal build is OSX 10.5, that's the first
4695 # OS release where 4-way builds make sense.
4698 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
4700 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
4701 # environment with a value that is the same as what we'll use
4702 # in the Makefile to ensure that we'll get the same compiler
4703 # environment during configure and build time.
4704 MACOSX_DEPLOYMENT_TARGET
="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
4705 export MACOSX_DEPLOYMENT_TARGET
4706 EXPORT_MACOSX_DEPLOYMENT_TARGET
=''
4710 BASECFLAGS
="$BASECFLAGS -mieee"
4716 case $ac_sys_system in
4717 OpenUNIX
*|UnixWare
*)
4718 BASECFLAGS
="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
4721 BASECFLAGS
="$BASECFLAGS -ieee -std"
4724 BASECFLAGS
="$BASECFLAGS -belf -Ki486 -DSCO5"
4730 if test "$Py_DEBUG" = 'true'; then
4736 if test "$ac_arch_flags"
4738 BASECFLAGS
="$BASECFLAGS $ac_arch_flags"
4741 # disable check for icc since it seems to pass, but generates a warning
4744 ac_cv_opt_olimit_ok
=no
4747 { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
4748 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; }
4749 if test "${ac_cv_opt_olimit_ok+set}" = set; then
4750 echo $ECHO_N "(cached) $ECHO_C" >&6
4753 CC
="$CC -OPT:Olimit=0"
4754 if test "$cross_compiling" = yes; then
4755 ac_cv_opt_olimit_ok
=no
4757 cat >conftest.
$ac_ext <<_ACEOF
4760 cat confdefs.h
>>conftest.
$ac_ext
4761 cat >>conftest.
$ac_ext <<_ACEOF
4762 /* end confdefs.h. */
4763 int main() { return 0; }
4765 rm -f conftest
$ac_exeext
4766 if { (ac_try
="$ac_link"
4768 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4769 *) ac_try_echo=$ac_try;;
4771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4772 (eval "$ac_link") 2>&5
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4776 { (case "(($ac_try" in
4777 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4778 *) ac_try_echo
=$ac_try;;
4780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4781 (eval "$ac_try") 2>&5
4783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784 (exit $ac_status); }; }; then
4785 ac_cv_opt_olimit_ok
=yes
4787 echo "$as_me: program exited with status $ac_status" >&5
4788 echo "$as_me: failed program was:" >&5
4789 sed 's/^/| /' conftest.
$ac_ext >&5
4792 ac_cv_opt_olimit_ok
=no
4794 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4801 { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
4802 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; }
4803 if test $ac_cv_opt_olimit_ok = yes; then
4804 case $ac_sys_system in
4805 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
4806 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
4811 BASECFLAGS
="$BASECFLAGS -OPT:Olimit=0"
4815 { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
4816 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; }
4817 if test "${ac_cv_olimit_ok+set}" = set; then
4818 echo $ECHO_N "(cached) $ECHO_C" >&6
4821 CC
="$CC -Olimit 1500"
4822 if test "$cross_compiling" = yes; then
4825 cat >conftest.
$ac_ext <<_ACEOF
4828 cat confdefs.h
>>conftest.
$ac_ext
4829 cat >>conftest.
$ac_ext <<_ACEOF
4830 /* end confdefs.h. */
4831 int main() { return 0; }
4833 rm -f conftest
$ac_exeext
4834 if { (ac_try
="$ac_link"
4836 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4837 *) ac_try_echo=$ac_try;;
4839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4840 (eval "$ac_link") 2>&5
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4844 { (case "(($ac_try" in
4845 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4846 *) ac_try_echo
=$ac_try;;
4848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4849 (eval "$ac_try") 2>&5
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); }; }; then
4855 echo "$as_me: program exited with status $ac_status" >&5
4856 echo "$as_me: failed program was:" >&5
4857 sed 's/^/| /' conftest.
$ac_ext >&5
4862 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4869 { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4870 echo "${ECHO_T}$ac_cv_olimit_ok" >&6; }
4871 if test $ac_cv_olimit_ok = yes; then
4872 BASECFLAGS
="$BASECFLAGS -Olimit 1500"
4876 # Check whether GCC supports PyArg_ParseTuple format
4877 if test "$GCC" = "yes"
4879 { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
4880 echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; }
4882 CFLAGS
="$CFLAGS -Werror"
4883 cat >conftest.
$ac_ext <<_ACEOF
4886 cat confdefs.h
>>conftest.
$ac_ext
4887 cat >>conftest.
$ac_ext <<_ACEOF
4888 /* end confdefs.h. */
4890 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
4900 rm -f conftest.
$ac_objext
4901 if { (ac_try
="$ac_compile"
4903 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4904 *) ac_try_echo=$ac_try;;
4906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4907 (eval "$ac_compile") 2>conftest.er1
4909 grep -v '^ *+' conftest.er1 >conftest.err
4911 cat conftest.err >&5
4912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913 (exit $ac_status); } && {
4914 test -z "$ac_c_werror_flag" ||
4915 test ! -s conftest.err
4916 } && test -s conftest.$ac_objext; then
4918 cat >>confdefs.h <<\_ACEOF
4919 #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
4922 { echo "$as_me:$LINENO: result: yes" >&5
4923 echo "${ECHO_T}yes" >&6; }
4925 echo "$as_me: failed program was:" >&5
4926 sed 's/^/| /' conftest.$ac_ext >&5
4928 { echo "$as_me:$LINENO: result: no" >&5
4929 echo "${ECHO_T}no" >&6; }
4933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4937 # On some compilers, pthreads are available without further options
4938 # (e.g. MacOS X). On some of these systems, the compiler will not
4939 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4940 # So we have to see first whether pthreads are available without
4941 # options before we can check whether -Kpthread improves anything.
4942 { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4943 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; }
4944 if test "${ac_cv_pthread_is_default+set}" = set; then
4945 echo $ECHO_N "(cached) $ECHO_C" >&6
4947 if test "$cross_compiling" = yes; then
4948 ac_cv_pthread_is_default=no
4950 cat >conftest.$ac_ext <<_ACEOF
4953 cat confdefs.h >>conftest.$ac_ext
4954 cat >>conftest.$ac_ext <<_ACEOF
4955 /* end confdefs.h. */
4957 #include <pthread.h>
4959 void* routine(void* p){return NULL;}
4963 if(pthread_create(&p,NULL,routine,NULL)!=0)
4965 (void)pthread_detach(p);
4970 rm -f conftest$ac_exeext
4971 if { (ac_try="$ac_link"
4973 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4974 *) ac_try_echo
=$ac_try;;
4976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4977 (eval "$ac_link") 2>&5
4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4981 { (case "(($ac_try" in
4982 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4983 *) ac_try_echo=$ac_try;;
4985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4986 (eval "$ac_try") 2>&5
4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); }; }; then
4991 ac_cv_pthread_is_default=yes
4996 echo "$as_me: program exited with status $ac_status" >&5
4997 echo "$as_me: failed program was:" >&5
4998 sed 's/^/| /' conftest.$ac_ext >&5
5001 ac_cv_pthread_is_default=no
5003 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5010 { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
5011 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; }
5014 if test $ac_cv_pthread_is_default = yes
5018 # -Kpthread, if available, provides the right #defines
5019 # and linker options to make pthread_create available
5020 # Some compilers won't report that they do not support -Kpthread,
5021 # so we need to run a program to see whether it really made the
5022 # function available.
5023 { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
5024 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; }
5025 if test "${ac_cv_kpthread+set}" = set; then
5026 echo $ECHO_N "(cached) $ECHO_C" >&6
5030 if test "$cross_compiling" = yes; then
5033 cat >conftest.$ac_ext <<_ACEOF
5036 cat confdefs.h >>conftest.$ac_ext
5037 cat >>conftest.$ac_ext <<_ACEOF
5038 /* end confdefs.h. */
5040 #include <pthread.h>
5042 void* routine(void* p){return NULL;}
5046 if(pthread_create(&p,NULL,routine,NULL)!=0)
5048 (void)pthread_detach(p);
5053 rm -f conftest$ac_exeext
5054 if { (ac_try="$ac_link"
5056 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5057 *) ac_try_echo
=$ac_try;;
5059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5060 (eval "$ac_link") 2>&5
5062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5064 { (case "(($ac_try" in
5065 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5066 *) ac_try_echo=$ac_try;;
5068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5069 (eval "$ac_try") 2>&5
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); }; }; then
5075 echo "$as_me: program exited with status $ac_status" >&5
5076 echo "$as_me: failed program was:" >&5
5077 sed 's/^/| /' conftest.$ac_ext >&5
5082 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5089 { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
5090 echo "${ECHO_T}$ac_cv_kpthread" >&6; }
5093 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
5095 # -Kthread, if available, provides the right #defines
5096 # and linker options to make pthread_create available
5097 # Some compilers won't report that they do not support -Kthread,
5098 # so we need to run a program to see whether it really made the
5099 # function available.
5100 { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
5101 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; }
5102 if test "${ac_cv_kthread+set}" = set; then
5103 echo $ECHO_N "(cached) $ECHO_C" >&6
5107 if test "$cross_compiling" = yes; then
5110 cat >conftest.$ac_ext <<_ACEOF
5113 cat confdefs.h >>conftest.$ac_ext
5114 cat >>conftest.$ac_ext <<_ACEOF
5115 /* end confdefs.h. */
5117 #include <pthread.h>
5119 void* routine(void* p){return NULL;}
5123 if(pthread_create(&p,NULL,routine,NULL)!=0)
5125 (void)pthread_detach(p);
5130 rm -f conftest$ac_exeext
5131 if { (ac_try="$ac_link"
5133 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5134 *) ac_try_echo
=$ac_try;;
5136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5137 (eval "$ac_link") 2>&5
5139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5141 { (case "(($ac_try" in
5142 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5143 *) ac_try_echo=$ac_try;;
5145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5146 (eval "$ac_try") 2>&5
5148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149 (exit $ac_status); }; }; then
5152 echo "$as_me: program exited with status $ac_status" >&5
5153 echo "$as_me: failed program was:" >&5
5154 sed 's/^/| /' conftest.$ac_ext >&5
5159 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5166 { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
5167 echo "${ECHO_T}$ac_cv_kthread" >&6; }
5170 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
5172 # -pthread, if available, provides the right #defines
5173 # and linker options to make pthread_create available
5174 # Some compilers won't report that they do not support -pthread,
5175 # so we need to run a program to see whether it really made the
5176 # function available.
5177 { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
5178 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; }
5179 if test "${ac_cv_thread+set}" = set; then
5180 echo $ECHO_N "(cached) $ECHO_C" >&6
5184 if test "$cross_compiling" = yes; then
5187 cat >conftest.$ac_ext <<_ACEOF
5190 cat confdefs.h >>conftest.$ac_ext
5191 cat >>conftest.$ac_ext <<_ACEOF
5192 /* end confdefs.h. */
5194 #include <pthread.h>
5196 void* routine(void* p){return NULL;}
5200 if(pthread_create(&p,NULL,routine,NULL)!=0)
5202 (void)pthread_detach(p);
5207 rm -f conftest$ac_exeext
5208 if { (ac_try="$ac_link"
5210 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5211 *) ac_try_echo
=$ac_try;;
5213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5214 (eval "$ac_link") 2>&5
5216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5218 { (case "(($ac_try" in
5219 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5220 *) ac_try_echo=$ac_try;;
5222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5223 (eval "$ac_try") 2>&5
5225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5226 (exit $ac_status); }; }; then
5229 echo "$as_me: program exited with status $ac_status" >&5
5230 echo "$as_me: failed program was:" >&5
5231 sed 's/^/| /' conftest.$ac_ext >&5
5236 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5243 { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
5244 echo "${ECHO_T}$ac_cv_pthread" >&6; }
5247 # If we have set a CC compiler flag for thread support then
5248 # check if it works for CXX, too.
5252 { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
5253 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; }
5256 if test "$ac_cv_kpthread" = "yes"
5258 CXX="$CXX -Kpthread"
5259 ac_cv_cxx_thread=yes
5260 elif test "$ac_cv_kthread" = "yes"
5263 ac_cv_cxx_thread=yes
5264 elif test "$ac_cv_pthread" = "yes"
5267 ac_cv_cxx_thread=yes
5270 if test $ac_cv_cxx_thread = yes
5272 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
5273 $CXX -c conftest.$ac_ext 2>&5
5274 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
5275 && test -s conftest$ac_exeext && ./conftest$ac_exeext
5277 ac_cv_cxx_thread=yes
5283 { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
5284 echo "${ECHO_T}$ac_cv_cxx_thread" >&6; }
5289 # checks for header files
5290 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5291 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5292 if test "${ac_cv_header_stdc+set}" = set; then
5293 echo $ECHO_N "(cached) $ECHO_C" >&6
5295 cat >conftest.$ac_ext <<_ACEOF
5298 cat confdefs.h >>conftest.$ac_ext
5299 cat >>conftest.$ac_ext <<_ACEOF
5300 /* end confdefs.h. */
5314 rm -f conftest.$ac_objext
5315 if { (ac_try="$ac_compile"
5317 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5318 *) ac_try_echo
=$ac_try;;
5320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5321 (eval "$ac_compile") 2>conftest.er1
5323 grep -v '^ *+' conftest.er1
>conftest.err
5325 cat conftest.err
>&5
5326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5327 (exit $ac_status); } && {
5328 test -z "$ac_c_werror_flag" ||
5329 test ! -s conftest.err
5330 } && test -s conftest.
$ac_objext; then
5331 ac_cv_header_stdc
=yes
5333 echo "$as_me: failed program was:" >&5
5334 sed 's/^/| /' conftest.
$ac_ext >&5
5336 ac_cv_header_stdc
=no
5339 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5341 if test $ac_cv_header_stdc = yes; then
5342 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5343 cat >conftest.
$ac_ext <<_ACEOF
5346 cat confdefs.h
>>conftest.
$ac_ext
5347 cat >>conftest.
$ac_ext <<_ACEOF
5348 /* end confdefs.h. */
5352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5353 $EGREP "memchr" >/dev
/null
2>&1; then
5356 ac_cv_header_stdc
=no
5362 if test $ac_cv_header_stdc = yes; then
5363 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5364 cat >conftest.
$ac_ext <<_ACEOF
5367 cat confdefs.h
>>conftest.
$ac_ext
5368 cat >>conftest.
$ac_ext <<_ACEOF
5369 /* end confdefs.h. */
5373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5374 $EGREP "free" >/dev
/null
2>&1; then
5377 ac_cv_header_stdc
=no
5383 if test $ac_cv_header_stdc = yes; then
5384 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5385 if test "$cross_compiling" = yes; then
5388 cat >conftest.
$ac_ext <<_ACEOF
5391 cat confdefs.h
>>conftest.
$ac_ext
5392 cat >>conftest.
$ac_ext <<_ACEOF
5393 /* end confdefs.h. */
5396 #if ((' ' & 0x0FF) == 0x020)
5397 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5398 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5400 # define ISLOWER(c) \
5401 (('a' <= (c) && (c) <= 'i') \
5402 || ('j' <= (c) && (c) <= 'r') \
5403 || ('s' <= (c) && (c) <= 'z'))
5404 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5407 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5412 for (i = 0; i < 256; i++)
5413 if (XOR (islower (i), ISLOWER (i))
5414 || toupper (i) != TOUPPER (i))
5419 rm -f conftest
$ac_exeext
5420 if { (ac_try
="$ac_link"
5422 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5423 *) ac_try_echo=$ac_try;;
5425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5426 (eval "$ac_link") 2>&5
5428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5430 { (case "(($ac_try" in
5431 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5432 *) ac_try_echo
=$ac_try;;
5434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5435 (eval "$ac_try") 2>&5
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); }; }; then
5441 echo "$as_me: program exited with status $ac_status" >&5
5442 echo "$as_me: failed program was:" >&5
5443 sed 's/^/| /' conftest.
$ac_ext >&5
5446 ac_cv_header_stdc
=no
5448 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5454 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5455 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5456 if test $ac_cv_header_stdc = yes; then
5458 cat >>confdefs.h
<<\_ACEOF
5459 #define STDC_HEADERS 1
5464 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5474 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5475 inttypes.h stdint.h unistd.h
5477 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5478 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5480 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5481 echo $ECHO_N "(cached) $ECHO_C" >&6
5483 cat >conftest.
$ac_ext <<_ACEOF
5486 cat confdefs.h
>>conftest.
$ac_ext
5487 cat >>conftest.
$ac_ext <<_ACEOF
5488 /* end confdefs.h. */
5489 $ac_includes_default
5491 #include <$ac_header>
5493 rm -f conftest.
$ac_objext
5494 if { (ac_try
="$ac_compile"
5496 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5497 *) ac_try_echo=$ac_try;;
5499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5500 (eval "$ac_compile") 2>conftest.er1
5502 grep -v '^ *+' conftest.er1 >conftest.err
5504 cat conftest.err >&5
5505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506 (exit $ac_status); } && {
5507 test -z "$ac_c_werror_flag" ||
5508 test ! -s conftest.err
5509 } && test -s conftest.$ac_objext; then
5510 eval "$as_ac_Header=yes"
5512 echo "$as_me: failed program was:" >&5
5513 sed 's/^/| /' conftest.$ac_ext >&5
5515 eval "$as_ac_Header=no"
5518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5520 ac_res=`eval echo '${'$as_ac_Header'}'`
5521 { echo "$as_me:$LINENO: result: $ac_res" >&5
5522 echo "${ECHO_T}$ac_res" >&6; }
5523 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5524 cat >>confdefs.h <<_ACEOF
5525 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5587 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
5589 ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
5590 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
5592 sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
5593 sys/lock.h sys/mkdev.h sys/modem.h \
5594 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
5595 sys/termio.h sys/time.h \
5596 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
5597 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
5598 bluetooth/bluetooth.h linux/tipc.h
5600 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5601 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5602 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5604 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5605 echo $ECHO_N "(cached) $ECHO_C" >&6
5607 ac_res=`eval echo '${'$as_ac_Header'}'`
5608 { echo "$as_me:$LINENO: result: $ac_res" >&5
5609 echo "${ECHO_T}$ac_res" >&6; }
5611 # Is the header compilable?
5612 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5613 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5614 cat >conftest.$ac_ext <<_ACEOF
5617 cat confdefs.h >>conftest.$ac_ext
5618 cat >>conftest.$ac_ext <<_ACEOF
5619 /* end confdefs.h. */
5620 $ac_includes_default
5621 #include <$ac_header>
5623 rm -f conftest.$ac_objext
5624 if { (ac_try="$ac_compile"
5626 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5627 *) ac_try_echo
=$ac_try;;
5629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5630 (eval "$ac_compile") 2>conftest.er1
5632 grep -v '^ *+' conftest.er1
>conftest.err
5634 cat conftest.err
>&5
5635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636 (exit $ac_status); } && {
5637 test -z "$ac_c_werror_flag" ||
5638 test ! -s conftest.err
5639 } && test -s conftest.
$ac_objext; then
5640 ac_header_compiler
=yes
5642 echo "$as_me: failed program was:" >&5
5643 sed 's/^/| /' conftest.
$ac_ext >&5
5645 ac_header_compiler
=no
5648 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5649 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5650 echo "${ECHO_T}$ac_header_compiler" >&6; }
5652 # Is the header present?
5653 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5654 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5655 cat >conftest.
$ac_ext <<_ACEOF
5658 cat confdefs.h
>>conftest.
$ac_ext
5659 cat >>conftest.
$ac_ext <<_ACEOF
5660 /* end confdefs.h. */
5661 #include <$ac_header>
5663 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5665 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5666 *) ac_try_echo=$ac_try;;
5668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5669 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5671 grep -v '^ *+' conftest.er1 >conftest.err
5673 cat conftest.err >&5
5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); } >/dev/null && {
5676 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5677 test ! -s conftest.err
5679 ac_header_preproc=yes
5681 echo "$as_me: failed program was:" >&5
5682 sed 's/^/| /' conftest.$ac_ext >&5
5684 ac_header_preproc=no
5687 rm -f conftest.err conftest.$ac_ext
5688 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5689 echo "${ECHO_T}$ac_header_preproc" >&6; }
5691 # So? What about this header?
5692 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5694 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5695 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5697 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5698 ac_header_preproc=yes
5701 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5702 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5703 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5704 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5705 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5706 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5707 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5708 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5709 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5710 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5711 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5712 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5714 ## ------------------------------------------------ ##
5715 ## Report this to http://www.python.org/python-bugs ##
5716 ## ------------------------------------------------ ##
5718 ) | sed "s/^/$as_me: WARNING: /" >&2
5721 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5723 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5724 echo $ECHO_N "(cached) $ECHO_C" >&6
5726 eval "$as_ac_Header=\$ac_header_preproc"
5728 ac_res=`eval echo '${'$as_ac_Header'}'`
5729 { echo "$as_me:$LINENO: result: $ac_res" >&5
5730 echo "${ECHO_T}$ac_res" >&6; }
5733 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5734 cat >>confdefs.h <<_ACEOF
5735 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5748 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5749 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" |
$as_tr_sh`
5750 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5751 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5752 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5753 echo $ECHO_N "(cached) $ECHO_C" >&6
5755 cat >conftest.$ac_ext <<_ACEOF
5758 cat confdefs.h >>conftest.$ac_ext
5759 cat >>conftest.$ac_ext <<_ACEOF
5760 /* end confdefs.h. */
5761 #include <sys/types.h>
5773 rm -f conftest.$ac_objext
5774 if { (ac_try="$ac_compile"
5776 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5777 *) ac_try_echo
=$ac_try;;
5779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5780 (eval "$ac_compile") 2>conftest.er1
5782 grep -v '^ *+' conftest.er1
>conftest.err
5784 cat conftest.err
>&5
5785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786 (exit $ac_status); } && {
5787 test -z "$ac_c_werror_flag" ||
5788 test ! -s conftest.err
5789 } && test -s conftest.
$ac_objext; then
5790 eval "$as_ac_Header=yes"
5792 echo "$as_me: failed program was:" >&5
5793 sed 's/^/| /' conftest.
$ac_ext >&5
5795 eval "$as_ac_Header=no"
5798 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5800 ac_res
=`eval echo '${'$as_ac_Header'}'`
5801 { echo "$as_me:$LINENO: result: $ac_res" >&5
5802 echo "${ECHO_T}$ac_res" >&6; }
5803 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5804 cat >>confdefs.h
<<_ACEOF
5805 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5808 ac_header_dirent
=$ac_hdr; break
5812 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5813 if test $ac_header_dirent = dirent.h
; then
5814 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5815 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5816 if test "${ac_cv_search_opendir+set}" = set; then
5817 echo $ECHO_N "(cached) $ECHO_C" >&6
5819 ac_func_search_save_LIBS
=$LIBS
5820 cat >conftest.
$ac_ext <<_ACEOF
5823 cat confdefs.h
>>conftest.
$ac_ext
5824 cat >>conftest.
$ac_ext <<_ACEOF
5825 /* end confdefs.h. */
5827 /* Override any GCC internal prototype to avoid an error.
5828 Use char because int might match the return type of a GCC
5829 builtin and then its argument prototype would still apply. */
5842 for ac_lib
in '' dir
; do
5843 if test -z "$ac_lib"; then
5844 ac_res
="none required"
5847 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5849 rm -f conftest.
$ac_objext conftest
$ac_exeext
5850 if { (ac_try
="$ac_link"
5852 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5853 *) ac_try_echo=$ac_try;;
5855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5856 (eval "$ac_link") 2>conftest.er1
5858 grep -v '^ *+' conftest.er1 >conftest.err
5860 cat conftest.err >&5
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); } && {
5863 test -z "$ac_c_werror_flag" ||
5864 test ! -s conftest.err
5865 } && test -s conftest$ac_exeext &&
5866 $as_test_x conftest$ac_exeext; then
5867 ac_cv_search_opendir=$ac_res
5869 echo "$as_me: failed program was:" >&5
5870 sed 's/^/| /' conftest.$ac_ext >&5
5875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5877 if test "${ac_cv_search_opendir+set}" = set; then
5881 if test "${ac_cv_search_opendir+set}" = set; then
5884 ac_cv_search_opendir=no
5887 LIBS=$ac_func_search_save_LIBS
5889 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5890 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5891 ac_res=$ac_cv_search_opendir
5892 if test "$ac_res" != no; then
5893 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5898 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5899 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5900 if test "${ac_cv_search_opendir+set}" = set; then
5901 echo $ECHO_N "(cached) $ECHO_C" >&6
5903 ac_func_search_save_LIBS=$LIBS
5904 cat >conftest.$ac_ext <<_ACEOF
5907 cat confdefs.h >>conftest.$ac_ext
5908 cat >>conftest.$ac_ext <<_ACEOF
5909 /* end confdefs.h. */
5911 /* Override any GCC internal prototype to avoid an error.
5912 Use char because int might match the return type of a GCC
5913 builtin and then its argument prototype would still apply. */
5926 for ac_lib in '' x; do
5927 if test -z "$ac_lib"; then
5928 ac_res="none required"
5931 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5933 rm -f conftest.$ac_objext conftest$ac_exeext
5934 if { (ac_try="$ac_link"
5936 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5937 *) ac_try_echo
=$ac_try;;
5939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5940 (eval "$ac_link") 2>conftest.er1
5942 grep -v '^ *+' conftest.er1
>conftest.err
5944 cat conftest.err
>&5
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); } && {
5947 test -z "$ac_c_werror_flag" ||
5948 test ! -s conftest.err
5949 } && test -s conftest
$ac_exeext &&
5950 $as_test_x conftest
$ac_exeext; then
5951 ac_cv_search_opendir
=$ac_res
5953 echo "$as_me: failed program was:" >&5
5954 sed 's/^/| /' conftest.
$ac_ext >&5
5959 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5961 if test "${ac_cv_search_opendir+set}" = set; then
5965 if test "${ac_cv_search_opendir+set}" = set; then
5968 ac_cv_search_opendir
=no
5971 LIBS
=$ac_func_search_save_LIBS
5973 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5974 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5975 ac_res
=$ac_cv_search_opendir
5976 if test "$ac_res" != no
; then
5977 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5983 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5984 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
5985 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5986 echo $ECHO_N "(cached) $ECHO_C" >&6
5988 cat >conftest.
$ac_ext <<_ACEOF
5991 cat confdefs.h
>>conftest.
$ac_ext
5992 cat >>conftest.
$ac_ext <<_ACEOF
5993 /* end confdefs.h. */
5994 #include <sys/types.h>
5998 return makedev(0, 0);
6003 rm -f conftest.
$ac_objext conftest
$ac_exeext
6004 if { (ac_try
="$ac_link"
6006 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6007 *) ac_try_echo=$ac_try;;
6009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6010 (eval "$ac_link") 2>conftest.er1
6012 grep -v '^ *+' conftest.er1 >conftest.err
6014 cat conftest.err >&5
6015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016 (exit $ac_status); } && {
6017 test -z "$ac_c_werror_flag" ||
6018 test ! -s conftest.err
6019 } && test -s conftest$ac_exeext &&
6020 $as_test_x conftest$ac_exeext; then
6021 ac_cv_header_sys_types_h_makedev=yes
6023 echo "$as_me: failed program was:" >&5
6024 sed 's/^/| /' conftest.$ac_ext >&5
6026 ac_cv_header_sys_types_h_makedev=no
6029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6030 conftest$ac_exeext conftest.$ac_ext
6033 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
6034 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
6036 if test $ac_cv_header_sys_types_h_makedev = no; then
6037 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6038 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6039 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6040 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6041 echo $ECHO_N "(cached) $ECHO_C" >&6
6043 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6044 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6046 # Is the header compilable?
6047 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
6048 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
6049 cat >conftest.$ac_ext <<_ACEOF
6052 cat confdefs.h >>conftest.$ac_ext
6053 cat >>conftest.$ac_ext <<_ACEOF
6054 /* end confdefs.h. */
6055 $ac_includes_default
6056 #include <sys/mkdev.h>
6058 rm -f conftest.$ac_objext
6059 if { (ac_try="$ac_compile"
6061 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6062 *) ac_try_echo
=$ac_try;;
6064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6065 (eval "$ac_compile") 2>conftest.er1
6067 grep -v '^ *+' conftest.er1
>conftest.err
6069 cat conftest.err
>&5
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); } && {
6072 test -z "$ac_c_werror_flag" ||
6073 test ! -s conftest.err
6074 } && test -s conftest.
$ac_objext; then
6075 ac_header_compiler
=yes
6077 echo "$as_me: failed program was:" >&5
6078 sed 's/^/| /' conftest.
$ac_ext >&5
6080 ac_header_compiler
=no
6083 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6084 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6085 echo "${ECHO_T}$ac_header_compiler" >&6; }
6087 # Is the header present?
6088 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
6089 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
6090 cat >conftest.
$ac_ext <<_ACEOF
6093 cat confdefs.h
>>conftest.
$ac_ext
6094 cat >>conftest.
$ac_ext <<_ACEOF
6095 /* end confdefs.h. */
6096 #include <sys/mkdev.h>
6098 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6100 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6101 *) ac_try_echo=$ac_try;;
6103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6104 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6106 grep -v '^ *+' conftest.er1 >conftest.err
6108 cat conftest.err >&5
6109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110 (exit $ac_status); } >/dev/null && {
6111 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6112 test ! -s conftest.err
6114 ac_header_preproc=yes
6116 echo "$as_me: failed program was:" >&5
6117 sed 's/^/| /' conftest.$ac_ext >&5
6119 ac_header_preproc=no
6122 rm -f conftest.err conftest.$ac_ext
6123 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6124 echo "${ECHO_T}$ac_header_preproc" >&6; }
6126 # So? What about this header?
6127 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6129 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6130 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6131 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
6132 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
6133 ac_header_preproc=yes
6136 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6137 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6138 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6139 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6140 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
6141 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
6142 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
6143 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
6144 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6145 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6146 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
6147 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
6149 ## ------------------------------------------------ ##
6150 ## Report this to http://www.python.org/python-bugs ##
6151 ## ------------------------------------------------ ##
6153 ) | sed "s/^/$as_me: WARNING: /" >&2
6156 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6157 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6158 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6159 echo $ECHO_N "(cached) $ECHO_C" >&6
6161 ac_cv_header_sys_mkdev_h=$ac_header_preproc
6163 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6164 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6167 if test $ac_cv_header_sys_mkdev_h = yes; then
6169 cat >>confdefs.h <<\_ACEOF
6170 #define MAJOR_IN_MKDEV 1
6177 if test $ac_cv_header_sys_mkdev_h = no; then
6178 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6179 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6180 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6181 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6182 echo $ECHO_N "(cached) $ECHO_C" >&6
6184 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6185 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6187 # Is the header compilable?
6188 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6189 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
6190 cat >conftest.$ac_ext <<_ACEOF
6193 cat confdefs.h >>conftest.$ac_ext
6194 cat >>conftest.$ac_ext <<_ACEOF
6195 /* end confdefs.h. */
6196 $ac_includes_default
6197 #include <sys/sysmacros.h>
6199 rm -f conftest.$ac_objext
6200 if { (ac_try="$ac_compile"
6202 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6203 *) ac_try_echo
=$ac_try;;
6205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6206 (eval "$ac_compile") 2>conftest.er1
6208 grep -v '^ *+' conftest.er1
>conftest.err
6210 cat conftest.err
>&5
6211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212 (exit $ac_status); } && {
6213 test -z "$ac_c_werror_flag" ||
6214 test ! -s conftest.err
6215 } && test -s conftest.
$ac_objext; then
6216 ac_header_compiler
=yes
6218 echo "$as_me: failed program was:" >&5
6219 sed 's/^/| /' conftest.
$ac_ext >&5
6221 ac_header_compiler
=no
6224 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6225 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6226 echo "${ECHO_T}$ac_header_compiler" >&6; }
6228 # Is the header present?
6229 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6230 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
6231 cat >conftest.
$ac_ext <<_ACEOF
6234 cat confdefs.h
>>conftest.
$ac_ext
6235 cat >>conftest.
$ac_ext <<_ACEOF
6236 /* end confdefs.h. */
6237 #include <sys/sysmacros.h>
6239 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6241 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6242 *) ac_try_echo=$ac_try;;
6244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6245 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6247 grep -v '^ *+' conftest.er1 >conftest.err
6249 cat conftest.err >&5
6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); } >/dev/null && {
6252 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6253 test ! -s conftest.err
6255 ac_header_preproc=yes
6257 echo "$as_me: failed program was:" >&5
6258 sed 's/^/| /' conftest.$ac_ext >&5
6260 ac_header_preproc=no
6263 rm -f conftest.err conftest.$ac_ext
6264 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6265 echo "${ECHO_T}$ac_header_preproc" >&6; }
6267 # So? What about this header?
6268 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6270 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6271 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6272 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6273 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
6274 ac_header_preproc=yes
6277 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6278 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6279 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6280 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6281 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6282 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6283 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
6284 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
6285 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6286 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
6287 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6288 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
6290 ## ------------------------------------------------ ##
6291 ## Report this to http://www.python.org/python-bugs ##
6292 ## ------------------------------------------------ ##
6294 ) | sed "s/^/$as_me: WARNING: /" >&2
6297 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6298 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6299 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6300 echo $ECHO_N "(cached) $ECHO_C" >&6
6302 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
6304 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6305 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6308 if test $ac_cv_header_sys_sysmacros_h = yes; then
6310 cat >>confdefs.h <<\_ACEOF
6311 #define MAJOR_IN_SYSMACROS 1
6321 # On Solaris, term.h requires curses.h
6323 for ac_header in term.h
6325 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6326 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6329 echo $ECHO_N "(cached) $ECHO_C" >&6
6331 cat >conftest.$ac_ext <<_ACEOF
6334 cat confdefs.h >>conftest.$ac_ext
6335 cat >>conftest.$ac_ext <<_ACEOF
6336 /* end confdefs.h. */
6338 #ifdef HAVE_CURSES_H
6343 #include <$ac_header>
6345 rm -f conftest.$ac_objext
6346 if { (ac_try="$ac_compile"
6348 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6349 *) ac_try_echo
=$ac_try;;
6351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6352 (eval "$ac_compile") 2>conftest.er1
6354 grep -v '^ *+' conftest.er1
>conftest.err
6356 cat conftest.err
>&5
6357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358 (exit $ac_status); } && {
6359 test -z "$ac_c_werror_flag" ||
6360 test ! -s conftest.err
6361 } && test -s conftest.
$ac_objext; then
6362 eval "$as_ac_Header=yes"
6364 echo "$as_me: failed program was:" >&5
6365 sed 's/^/| /' conftest.
$ac_ext >&5
6367 eval "$as_ac_Header=no"
6370 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6372 ac_res
=`eval echo '${'$as_ac_Header'}'`
6373 { echo "$as_me:$LINENO: result: $ac_res" >&5
6374 echo "${ECHO_T}$ac_res" >&6; }
6375 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6376 cat >>confdefs.h
<<_ACEOF
6377 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6385 # On Linux, netlink.h requires asm/types.h
6387 for ac_header
in linux
/netlink.h
6389 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6390 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6392 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6393 echo $ECHO_N "(cached) $ECHO_C" >&6
6395 cat >conftest.
$ac_ext <<_ACEOF
6398 cat confdefs.h
>>conftest.
$ac_ext
6399 cat >>conftest.
$ac_ext <<_ACEOF
6400 /* end confdefs.h. */
6402 #ifdef HAVE_ASM_TYPES_H
6403 #include <asm/types.h>
6405 #ifdef HAVE_SYS_SOCKET_H
6406 #include <sys/socket.h>
6410 #include <$ac_header>
6412 rm -f conftest.
$ac_objext
6413 if { (ac_try
="$ac_compile"
6415 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6416 *) ac_try_echo=$ac_try;;
6418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6419 (eval "$ac_compile") 2>conftest.er1
6421 grep -v '^ *+' conftest.er1 >conftest.err
6423 cat conftest.err >&5
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); } && {
6426 test -z "$ac_c_werror_flag" ||
6427 test ! -s conftest.err
6428 } && test -s conftest.$ac_objext; then
6429 eval "$as_ac_Header=yes"
6431 echo "$as_me: failed program was:" >&5
6432 sed 's/^/| /' conftest.$ac_ext >&5
6434 eval "$as_ac_Header=no"
6437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6439 ac_res=`eval echo '${'$as_ac_Header'}'`
6440 { echo "$as_me:$LINENO: result: $ac_res" >&5
6441 echo "${ECHO_T}$ac_res" >&6; }
6442 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6443 cat >>confdefs.h <<_ACEOF
6444 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6452 # checks for typedefs
6454 { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
6455 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6; }
6456 cat >conftest.$ac_ext <<_ACEOF
6459 cat confdefs.h >>conftest.$ac_ext
6460 cat >>conftest.$ac_ext <<_ACEOF
6461 /* end confdefs.h. */
6465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6466 $EGREP "clock_t" >/dev/null 2>&1; then
6471 cat >>confdefs.h <<\_ACEOF
6472 #define clock_t long
6479 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
6480 echo "${ECHO_T}$was_it_defined" >&6; }
6482 # Check whether using makedev requires defining _OSF_SOURCE
6483 { echo "$as_me:$LINENO: checking for makedev" >&5
6484 echo $ECHO_N "checking for makedev... $ECHO_C" >&6; }
6485 cat >conftest.$ac_ext <<_ACEOF
6488 cat confdefs.h >>conftest.$ac_ext
6489 cat >>conftest.$ac_ext <<_ACEOF
6490 /* end confdefs.h. */
6491 #include <sys/types.h>
6500 rm -f conftest.$ac_objext conftest$ac_exeext
6501 if { (ac_try="$ac_link"
6503 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6504 *) ac_try_echo
=$ac_try;;
6506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6507 (eval "$ac_link") 2>conftest.er1
6509 grep -v '^ *+' conftest.er1
>conftest.err
6511 cat conftest.err
>&5
6512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513 (exit $ac_status); } && {
6514 test -z "$ac_c_werror_flag" ||
6515 test ! -s conftest.err
6516 } && test -s conftest
$ac_exeext &&
6517 $as_test_x conftest
$ac_exeext; then
6518 ac_cv_has_makedev
=yes
6520 echo "$as_me: failed program was:" >&5
6521 sed 's/^/| /' conftest.
$ac_ext >&5
6523 ac_cv_has_makedev
=no
6526 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6527 conftest
$ac_exeext conftest.
$ac_ext
6528 if test "$ac_cv_has_makedev" = "no"; then
6529 # we didn't link, try if _OSF_SOURCE will allow us to link
6530 cat >conftest.
$ac_ext <<_ACEOF
6533 cat confdefs.h
>>conftest.
$ac_ext
6534 cat >>conftest.
$ac_ext <<_ACEOF
6535 /* end confdefs.h. */
6537 #define _OSF_SOURCE 1
6538 #include <sys/types.h>
6548 rm -f conftest.
$ac_objext conftest
$ac_exeext
6549 if { (ac_try
="$ac_link"
6551 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6552 *) ac_try_echo=$ac_try;;
6554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6555 (eval "$ac_link") 2>conftest.er1
6557 grep -v '^ *+' conftest.er1 >conftest.err
6559 cat conftest.err >&5
6560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561 (exit $ac_status); } && {
6562 test -z "$ac_c_werror_flag" ||
6563 test ! -s conftest.err
6564 } && test -s conftest$ac_exeext &&
6565 $as_test_x conftest$ac_exeext; then
6566 ac_cv_has_makedev=yes
6568 echo "$as_me: failed program was:" >&5
6569 sed 's/^/| /' conftest.$ac_ext >&5
6571 ac_cv_has_makedev=no
6574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6575 conftest$ac_exeext conftest.$ac_ext
6576 if test "$ac_cv_has_makedev" = "yes"; then
6578 cat >>confdefs.h <<\_ACEOF
6579 #define _OSF_SOURCE 1
6584 { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
6585 echo "${ECHO_T}$ac_cv_has_makedev" >&6; }
6586 if test "$ac_cv_has_makedev" = "yes"; then
6588 cat >>confdefs.h <<\_ACEOF
6589 #define HAVE_MAKEDEV 1
6594 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
6595 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
6596 # defined, but the compiler does not support pragma redefine_extname,
6597 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
6598 # structures (such as rlimit64) without declaring them. As a
6599 # work-around, disable LFS on such configurations
6602 { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
6603 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; }
6604 cat >conftest.$ac_ext <<_ACEOF
6607 cat confdefs.h >>conftest.$ac_ext
6608 cat >>conftest.$ac_ext <<_ACEOF
6609 /* end confdefs.h. */
6611 #define _LARGEFILE_SOURCE 1
6612 #define _FILE_OFFSET_BITS 64
6613 #include <sys/resource.h>
6623 rm -f conftest.$ac_objext
6624 if { (ac_try="$ac_compile"
6626 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6627 *) ac_try_echo
=$ac_try;;
6629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6630 (eval "$ac_compile") 2>conftest.er1
6632 grep -v '^ *+' conftest.er1
>conftest.err
6634 cat conftest.err
>&5
6635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636 (exit $ac_status); } && {
6637 test -z "$ac_c_werror_flag" ||
6638 test ! -s conftest.err
6639 } && test -s conftest.
$ac_objext; then
6642 echo "$as_me: failed program was:" >&5
6643 sed 's/^/| /' conftest.
$ac_ext >&5
6648 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6649 { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
6650 echo "${ECHO_T}$sol_lfs_bug" >&6; }
6651 if test "$sol_lfs_bug" = "yes"; then
6655 if test "$use_lfs" = "yes"; then
6656 # Two defines needed to enable largefile support on various platforms
6657 # These may affect some typedefs
6659 cat >>confdefs.h
<<\_ACEOF
6660 #define _LARGEFILE_SOURCE 1
6664 cat >>confdefs.h
<<\_ACEOF
6665 #define _FILE_OFFSET_BITS 64
6670 # Add some code to confdefs.h so that the test for off_t works on SCO
6671 cat >> confdefs.h
<<\EOF
6677 # Type availability checks
6678 { echo "$as_me:$LINENO: checking for mode_t" >&5
6679 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
6680 if test "${ac_cv_type_mode_t+set}" = set; then
6681 echo $ECHO_N "(cached) $ECHO_C" >&6
6683 cat >conftest.
$ac_ext <<_ACEOF
6686 cat confdefs.h
>>conftest.
$ac_ext
6687 cat >>conftest.
$ac_ext <<_ACEOF
6688 /* end confdefs.h. */
6689 $ac_includes_default
6690 typedef mode_t ac__type_new_;
6694 if ((ac__type_new_ *) 0)
6696 if (sizeof (ac__type_new_))
6702 rm -f conftest.
$ac_objext
6703 if { (ac_try
="$ac_compile"
6705 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6706 *) ac_try_echo=$ac_try;;
6708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6709 (eval "$ac_compile") 2>conftest.er1
6711 grep -v '^ *+' conftest.er1 >conftest.err
6713 cat conftest.err >&5
6714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6715 (exit $ac_status); } && {
6716 test -z "$ac_c_werror_flag" ||
6717 test ! -s conftest.err
6718 } && test -s conftest.$ac_objext; then
6719 ac_cv_type_mode_t=yes
6721 echo "$as_me: failed program was:" >&5
6722 sed 's/^/| /' conftest.$ac_ext >&5
6724 ac_cv_type_mode_t=no
6727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6729 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6730 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
6731 if test $ac_cv_type_mode_t = yes; then
6735 cat >>confdefs.h <<_ACEOF
6741 { echo "$as_me:$LINENO: checking for off_t" >&5
6742 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6743 if test "${ac_cv_type_off_t+set}" = set; then
6744 echo $ECHO_N "(cached) $ECHO_C" >&6
6746 cat >conftest.$ac_ext <<_ACEOF
6749 cat confdefs.h >>conftest.$ac_ext
6750 cat >>conftest.$ac_ext <<_ACEOF
6751 /* end confdefs.h. */
6752 $ac_includes_default
6753 typedef off_t ac__type_new_;
6757 if ((ac__type_new_ *) 0)
6759 if (sizeof (ac__type_new_))
6765 rm -f conftest.$ac_objext
6766 if { (ac_try="$ac_compile"
6768 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6769 *) ac_try_echo
=$ac_try;;
6771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6772 (eval "$ac_compile") 2>conftest.er1
6774 grep -v '^ *+' conftest.er1
>conftest.err
6776 cat conftest.err
>&5
6777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778 (exit $ac_status); } && {
6779 test -z "$ac_c_werror_flag" ||
6780 test ! -s conftest.err
6781 } && test -s conftest.
$ac_objext; then
6782 ac_cv_type_off_t
=yes
6784 echo "$as_me: failed program was:" >&5
6785 sed 's/^/| /' conftest.
$ac_ext >&5
6790 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6792 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6793 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6794 if test $ac_cv_type_off_t = yes; then
6798 cat >>confdefs.h
<<_ACEOF
6799 #define off_t long int
6804 { echo "$as_me:$LINENO: checking for pid_t" >&5
6805 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
6806 if test "${ac_cv_type_pid_t+set}" = set; then
6807 echo $ECHO_N "(cached) $ECHO_C" >&6
6809 cat >conftest.
$ac_ext <<_ACEOF
6812 cat confdefs.h
>>conftest.
$ac_ext
6813 cat >>conftest.
$ac_ext <<_ACEOF
6814 /* end confdefs.h. */
6815 $ac_includes_default
6816 typedef pid_t ac__type_new_;
6820 if ((ac__type_new_ *) 0)
6822 if (sizeof (ac__type_new_))
6828 rm -f conftest.
$ac_objext
6829 if { (ac_try
="$ac_compile"
6831 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6832 *) ac_try_echo=$ac_try;;
6834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6835 (eval "$ac_compile") 2>conftest.er1
6837 grep -v '^ *+' conftest.er1 >conftest.err
6839 cat conftest.err >&5
6840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841 (exit $ac_status); } && {
6842 test -z "$ac_c_werror_flag" ||
6843 test ! -s conftest.err
6844 } && test -s conftest.$ac_objext; then
6845 ac_cv_type_pid_t=yes
6847 echo "$as_me: failed program was:" >&5
6848 sed 's/^/| /' conftest.$ac_ext >&5
6853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6855 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6856 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
6857 if test $ac_cv_type_pid_t = yes; then
6861 cat >>confdefs.h <<_ACEOF
6867 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6868 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6869 if test "${ac_cv_type_signal+set}" = set; then
6870 echo $ECHO_N "(cached) $ECHO_C" >&6
6872 cat >conftest.$ac_ext <<_ACEOF
6875 cat confdefs.h >>conftest.$ac_ext
6876 cat >>conftest.$ac_ext <<_ACEOF
6877 /* end confdefs.h. */
6878 #include <sys/types.h>
6884 return *(signal (0, 0)) (0) == 1;
6889 rm -f conftest.$ac_objext
6890 if { (ac_try="$ac_compile"
6892 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6893 *) ac_try_echo
=$ac_try;;
6895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6896 (eval "$ac_compile") 2>conftest.er1
6898 grep -v '^ *+' conftest.er1
>conftest.err
6900 cat conftest.err
>&5
6901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902 (exit $ac_status); } && {
6903 test -z "$ac_c_werror_flag" ||
6904 test ! -s conftest.err
6905 } && test -s conftest.
$ac_objext; then
6906 ac_cv_type_signal
=int
6908 echo "$as_me: failed program was:" >&5
6909 sed 's/^/| /' conftest.
$ac_ext >&5
6911 ac_cv_type_signal
=void
6914 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6916 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6917 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6919 cat >>confdefs.h
<<_ACEOF
6920 #define RETSIGTYPE $ac_cv_type_signal
6924 { echo "$as_me:$LINENO: checking for size_t" >&5
6925 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6926 if test "${ac_cv_type_size_t+set}" = set; then
6927 echo $ECHO_N "(cached) $ECHO_C" >&6
6929 cat >conftest.
$ac_ext <<_ACEOF
6932 cat confdefs.h
>>conftest.
$ac_ext
6933 cat >>conftest.
$ac_ext <<_ACEOF
6934 /* end confdefs.h. */
6935 $ac_includes_default
6936 typedef size_t ac__type_new_;
6940 if ((ac__type_new_ *) 0)
6942 if (sizeof (ac__type_new_))
6948 rm -f conftest.
$ac_objext
6949 if { (ac_try
="$ac_compile"
6951 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6952 *) ac_try_echo=$ac_try;;
6954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6955 (eval "$ac_compile") 2>conftest.er1
6957 grep -v '^ *+' conftest.er1 >conftest.err
6959 cat conftest.err >&5
6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 (exit $ac_status); } && {
6962 test -z "$ac_c_werror_flag" ||
6963 test ! -s conftest.err
6964 } && test -s conftest.$ac_objext; then
6965 ac_cv_type_size_t=yes
6967 echo "$as_me: failed program was:" >&5
6968 sed 's/^/| /' conftest.$ac_ext >&5
6970 ac_cv_type_size_t=no
6973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6975 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6976 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
6977 if test $ac_cv_type_size_t = yes; then
6981 cat >>confdefs.h <<_ACEOF
6982 #define size_t unsigned int
6987 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6988 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
6989 if test "${ac_cv_type_uid_t+set}" = set; then
6990 echo $ECHO_N "(cached) $ECHO_C" >&6
6992 cat >conftest.$ac_ext <<_ACEOF
6995 cat confdefs.h >>conftest.$ac_ext
6996 cat >>conftest.$ac_ext <<_ACEOF
6997 /* end confdefs.h. */
6998 #include <sys/types.h>
7001 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7002 $EGREP "uid_t" >/dev/null 2>&1; then
7003 ac_cv_type_uid_t=yes
7010 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7011 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7012 if test $ac_cv_type_uid_t = no; then
7014 cat >>confdefs.h <<\_ACEOF
7019 cat >>confdefs.h <<\_ACEOF
7026 { echo "$as_me:$LINENO: checking for uint32_t" >&5
7027 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
7028 if test "${ac_cv_c_uint32_t+set}" = set; then
7029 echo $ECHO_N "(cached) $ECHO_C" >&6
7032 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
7033 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7034 cat >conftest.$ac_ext <<_ACEOF
7037 cat confdefs.h >>conftest.$ac_ext
7038 cat >>conftest.$ac_ext <<_ACEOF
7039 /* end confdefs.h. */
7040 $ac_includes_default
7044 static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
7051 rm -f conftest.$ac_objext
7052 if { (ac_try="$ac_compile"
7054 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7055 *) ac_try_echo
=$ac_try;;
7057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7058 (eval "$ac_compile") 2>conftest.er1
7060 grep -v '^ *+' conftest.er1
>conftest.err
7062 cat conftest.err
>&5
7063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064 (exit $ac_status); } && {
7065 test -z "$ac_c_werror_flag" ||
7066 test ! -s conftest.err
7067 } && test -s conftest.
$ac_objext; then
7069 uint32_t
) ac_cv_c_uint32_t
=yes ;;
7070 *) ac_cv_c_uint32_t
=$ac_type ;;
7074 echo "$as_me: failed program was:" >&5
7075 sed 's/^/| /' conftest.
$ac_ext >&5
7080 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7081 test "$ac_cv_c_uint32_t" != no
&& break
7084 { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
7085 echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
7086 case $ac_cv_c_uint32_t in #(
7090 cat >>confdefs.h
<<\_ACEOF
7095 cat >>confdefs.h
<<_ACEOF
7096 #define uint32_t $ac_cv_c_uint32_t
7102 { echo "$as_me:$LINENO: checking for uint64_t" >&5
7103 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
7104 if test "${ac_cv_c_uint64_t+set}" = set; then
7105 echo $ECHO_N "(cached) $ECHO_C" >&6
7108 for ac_type
in 'uint64_t' 'unsigned int' 'unsigned long int' \
7109 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7110 cat >conftest.
$ac_ext <<_ACEOF
7113 cat confdefs.h
>>conftest.
$ac_ext
7114 cat >>conftest.
$ac_ext <<_ACEOF
7115 /* end confdefs.h. */
7116 $ac_includes_default
7120 static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
7127 rm -f conftest.
$ac_objext
7128 if { (ac_try
="$ac_compile"
7130 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7131 *) ac_try_echo=$ac_try;;
7133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7134 (eval "$ac_compile") 2>conftest.er1
7136 grep -v '^ *+' conftest.er1 >conftest.err
7138 cat conftest.err >&5
7139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140 (exit $ac_status); } && {
7141 test -z "$ac_c_werror_flag" ||
7142 test ! -s conftest.err
7143 } && test -s conftest.$ac_objext; then
7145 uint64_t) ac_cv_c_uint64_t=yes ;;
7146 *) ac_cv_c_uint64_t=$ac_type ;;
7150 echo "$as_me: failed program was:" >&5
7151 sed 's/^/| /' conftest.$ac_ext >&5
7156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7157 test "$ac_cv_c_uint64_t" != no && break
7160 { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
7161 echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
7162 case $ac_cv_c_uint64_t in #(
7166 cat >>confdefs.h <<\_ACEOF
7171 cat >>confdefs.h <<_ACEOF
7172 #define uint64_t $ac_cv_c_uint64_t
7178 { echo "$as_me:$LINENO: checking for int32_t" >&5
7179 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
7180 if test "${ac_cv_c_int32_t+set}" = set; then
7181 echo $ECHO_N "(cached) $ECHO_C" >&6
7184 for ac_type in 'int32_t' 'int' 'long int' \
7185 'long long int' 'short int' 'signed char'; do
7186 cat >conftest.$ac_ext <<_ACEOF
7189 cat confdefs.h >>conftest.$ac_ext
7190 cat >>conftest.$ac_ext <<_ACEOF
7191 /* end confdefs.h. */
7192 $ac_includes_default
7196 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
7203 rm -f conftest.$ac_objext
7204 if { (ac_try="$ac_compile"
7206 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7207 *) ac_try_echo
=$ac_try;;
7209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7210 (eval "$ac_compile") 2>conftest.er1
7212 grep -v '^ *+' conftest.er1
>conftest.err
7214 cat conftest.err
>&5
7215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216 (exit $ac_status); } && {
7217 test -z "$ac_c_werror_flag" ||
7218 test ! -s conftest.err
7219 } && test -s conftest.
$ac_objext; then
7220 cat >conftest.
$ac_ext <<_ACEOF
7223 cat confdefs.h
>>conftest.
$ac_ext
7224 cat >>conftest.
$ac_ext <<_ACEOF
7225 /* end confdefs.h. */
7226 $ac_includes_default
7230 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
7231 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
7238 rm -f conftest.
$ac_objext
7239 if { (ac_try
="$ac_compile"
7241 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7242 *) ac_try_echo=$ac_try;;
7244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7245 (eval "$ac_compile") 2>conftest.er1
7247 grep -v '^ *+' conftest.er1 >conftest.err
7249 cat conftest.err >&5
7250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251 (exit $ac_status); } && {
7252 test -z "$ac_c_werror_flag" ||
7253 test ! -s conftest.err
7254 } && test -s conftest.$ac_objext; then
7257 echo "$as_me: failed program was:" >&5
7258 sed 's/^/| /' conftest.$ac_ext >&5
7261 int32_t) ac_cv_c_int32_t=yes ;;
7262 *) ac_cv_c_int32_t=$ac_type ;;
7267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7269 echo "$as_me: failed program was:" >&5
7270 sed 's/^/| /' conftest.$ac_ext >&5
7275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7276 test "$ac_cv_c_int32_t" != no && break
7279 { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
7280 echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
7281 case $ac_cv_c_int32_t in #(
7285 cat >>confdefs.h <<_ACEOF
7286 #define int32_t $ac_cv_c_int32_t
7292 { echo "$as_me:$LINENO: checking for int64_t" >&5
7293 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
7294 if test "${ac_cv_c_int64_t+set}" = set; then
7295 echo $ECHO_N "(cached) $ECHO_C" >&6
7298 for ac_type in 'int64_t' 'int' 'long int' \
7299 'long long int' 'short int' 'signed char'; do
7300 cat >conftest.$ac_ext <<_ACEOF
7303 cat confdefs.h >>conftest.$ac_ext
7304 cat >>conftest.$ac_ext <<_ACEOF
7305 /* end confdefs.h. */
7306 $ac_includes_default
7310 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
7317 rm -f conftest.$ac_objext
7318 if { (ac_try="$ac_compile"
7320 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7321 *) ac_try_echo
=$ac_try;;
7323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7324 (eval "$ac_compile") 2>conftest.er1
7326 grep -v '^ *+' conftest.er1
>conftest.err
7328 cat conftest.err
>&5
7329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330 (exit $ac_status); } && {
7331 test -z "$ac_c_werror_flag" ||
7332 test ! -s conftest.err
7333 } && test -s conftest.
$ac_objext; then
7334 cat >conftest.
$ac_ext <<_ACEOF
7337 cat confdefs.h
>>conftest.
$ac_ext
7338 cat >>conftest.
$ac_ext <<_ACEOF
7339 /* end confdefs.h. */
7340 $ac_includes_default
7344 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
7345 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
7352 rm -f conftest.
$ac_objext
7353 if { (ac_try
="$ac_compile"
7355 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7356 *) ac_try_echo=$ac_try;;
7358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7359 (eval "$ac_compile") 2>conftest.er1
7361 grep -v '^ *+' conftest.er1 >conftest.err
7363 cat conftest.err >&5
7364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365 (exit $ac_status); } && {
7366 test -z "$ac_c_werror_flag" ||
7367 test ! -s conftest.err
7368 } && test -s conftest.$ac_objext; then
7371 echo "$as_me: failed program was:" >&5
7372 sed 's/^/| /' conftest.$ac_ext >&5
7375 int64_t) ac_cv_c_int64_t=yes ;;
7376 *) ac_cv_c_int64_t=$ac_type ;;
7381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7383 echo "$as_me: failed program was:" >&5
7384 sed 's/^/| /' conftest.$ac_ext >&5
7389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7390 test "$ac_cv_c_int64_t" != no && break
7393 { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
7394 echo "${ECHO_T}$ac_cv_c_int64_t" >&6; }
7395 case $ac_cv_c_int64_t in #(
7399 cat >>confdefs.h <<_ACEOF
7400 #define int64_t $ac_cv_c_int64_t
7405 { echo "$as_me:$LINENO: checking for ssize_t" >&5
7406 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
7407 if test "${ac_cv_type_ssize_t+set}" = set; then
7408 echo $ECHO_N "(cached) $ECHO_C" >&6
7410 cat >conftest.$ac_ext <<_ACEOF
7413 cat confdefs.h >>conftest.$ac_ext
7414 cat >>conftest.$ac_ext <<_ACEOF
7415 /* end confdefs.h. */
7416 $ac_includes_default
7417 typedef ssize_t ac__type_new_;
7421 if ((ac__type_new_ *) 0)
7423 if (sizeof (ac__type_new_))
7429 rm -f conftest.$ac_objext
7430 if { (ac_try="$ac_compile"
7432 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7433 *) ac_try_echo
=$ac_try;;
7435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7436 (eval "$ac_compile") 2>conftest.er1
7438 grep -v '^ *+' conftest.er1
>conftest.err
7440 cat conftest.err
>&5
7441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7442 (exit $ac_status); } && {
7443 test -z "$ac_c_werror_flag" ||
7444 test ! -s conftest.err
7445 } && test -s conftest.
$ac_objext; then
7446 ac_cv_type_ssize_t
=yes
7448 echo "$as_me: failed program was:" >&5
7449 sed 's/^/| /' conftest.
$ac_ext >&5
7451 ac_cv_type_ssize_t
=no
7454 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7456 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7457 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
7458 if test $ac_cv_type_ssize_t = yes; then
7460 cat >>confdefs.h
<<\_ACEOF
7461 #define HAVE_SSIZE_T 1
7467 # Sizes of various common basic types
7468 # ANSI C requires sizeof(char) == 1, so no need to check it
7469 { echo "$as_me:$LINENO: checking for int" >&5
7470 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
7471 if test "${ac_cv_type_int+set}" = set; then
7472 echo $ECHO_N "(cached) $ECHO_C" >&6
7474 cat >conftest.
$ac_ext <<_ACEOF
7477 cat confdefs.h
>>conftest.
$ac_ext
7478 cat >>conftest.
$ac_ext <<_ACEOF
7479 /* end confdefs.h. */
7480 $ac_includes_default
7481 typedef int ac__type_new_;
7485 if ((ac__type_new_ *) 0)
7487 if (sizeof (ac__type_new_))
7493 rm -f conftest.
$ac_objext
7494 if { (ac_try
="$ac_compile"
7496 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7497 *) ac_try_echo=$ac_try;;
7499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7500 (eval "$ac_compile") 2>conftest.er1
7502 grep -v '^ *+' conftest.er1 >conftest.err
7504 cat conftest.err >&5
7505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7506 (exit $ac_status); } && {
7507 test -z "$ac_c_werror_flag" ||
7508 test ! -s conftest.err
7509 } && test -s conftest.$ac_objext; then
7512 echo "$as_me: failed program was:" >&5
7513 sed 's/^/| /' conftest.$ac_ext >&5
7518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7520 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7521 echo "${ECHO_T}$ac_cv_type_int" >&6; }
7523 # The cast to long int works around a bug in the HP C Compiler
7524 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7525 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
7526 # This bug is HP SR number 8606223364.
7527 { echo "$as_me:$LINENO: checking size of int" >&5
7528 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
7529 if test "${ac_cv_sizeof_int+set}" = set; then
7530 echo $ECHO_N "(cached) $ECHO_C" >&6
7532 if test "$cross_compiling" = yes; then
7533 # Depending upon the size, compute the lo and hi bounds.
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_sizeof_;
7545 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7552 rm -f conftest.$ac_objext
7553 if { (ac_try="$ac_compile"
7555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7556 *) ac_try_echo=$ac_try;;
7558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7559 (eval "$ac_compile") 2>conftest.er1
7561 grep -v '^
*+' conftest.er1 >conftest.err
7563 cat conftest.err >&5
7564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565 (exit $ac_status); } && {
7566 test -z "$ac_c_werror_flag" ||
7567 test ! -s conftest.err
7568 } && test -s conftest.$ac_objext; then
7571 cat >conftest.$ac_ext <<_ACEOF
7574 cat confdefs.h >>conftest.$ac_ext
7575 cat >>conftest.$ac_ext <<_ACEOF
7576 /* end confdefs.h. */
7577 $ac_includes_default
7578 typedef int ac__type_sizeof_;
7582 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7589 rm -f conftest.$ac_objext
7590 if { (ac_try="$ac_compile"
7592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7593 *) ac_try_echo=$ac_try;;
7595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7596 (eval "$ac_compile") 2>conftest.er1
7598 grep -v '^
*+' conftest.er1 >conftest.err
7600 cat conftest.err >&5
7601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602 (exit $ac_status); } && {
7603 test -z "$ac_c_werror_flag" ||
7604 test ! -s conftest.err
7605 } && test -s conftest.$ac_objext; then
7606 ac_hi=$ac_mid; break
7608 echo "$as_me: failed program was:" >&5
7609 sed 's
/^
/|
/' conftest.$ac_ext >&5
7611 ac_lo=`expr $ac_mid + 1`
7612 if test $ac_lo -le $ac_mid; then
7616 ac_mid=`expr 2 '*' $ac_mid + 1`
7619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7622 echo "$as_me: failed program was:" >&5
7623 sed 's
/^
/|
/' conftest.$ac_ext >&5
7625 cat >conftest.$ac_ext <<_ACEOF
7628 cat confdefs.h >>conftest.$ac_ext
7629 cat >>conftest.$ac_ext <<_ACEOF
7630 /* end confdefs.h. */
7631 $ac_includes_default
7632 typedef int ac__type_sizeof_;
7636 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7643 rm -f conftest.$ac_objext
7644 if { (ac_try="$ac_compile"
7646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7647 *) ac_try_echo=$ac_try;;
7649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7650 (eval "$ac_compile") 2>conftest.er1
7652 grep -v '^
*+' conftest.er1 >conftest.err
7654 cat conftest.err >&5
7655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656 (exit $ac_status); } && {
7657 test -z "$ac_c_werror_flag" ||
7658 test ! -s conftest.err
7659 } && test -s conftest.$ac_objext; then
7662 cat >conftest.$ac_ext <<_ACEOF
7665 cat confdefs.h >>conftest.$ac_ext
7666 cat >>conftest.$ac_ext <<_ACEOF
7667 /* end confdefs.h. */
7668 $ac_includes_default
7669 typedef int ac__type_sizeof_;
7673 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7680 rm -f conftest.$ac_objext
7681 if { (ac_try="$ac_compile"
7683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7684 *) ac_try_echo=$ac_try;;
7686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7687 (eval "$ac_compile") 2>conftest.er1
7689 grep -v '^
*+' conftest.er1 >conftest.err
7691 cat conftest.err >&5
7692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693 (exit $ac_status); } && {
7694 test -z "$ac_c_werror_flag" ||
7695 test ! -s conftest.err
7696 } && test -s conftest.$ac_objext; then
7697 ac_lo=$ac_mid; break
7699 echo "$as_me: failed program was:" >&5
7700 sed 's
/^
/|
/' conftest.$ac_ext >&5
7702 ac_hi=`expr '(' $ac_mid ')' - 1`
7703 if test $ac_mid -le $ac_hi; then
7707 ac_mid=`expr 2 '*' $ac_mid`
7710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7713 echo "$as_me: failed program was:" >&5
7714 sed 's
/^
/|
/' conftest.$ac_ext >&5
7719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7723 # Binary search between lo and hi bounds.
7724 while test "x$ac_lo" != "x$ac_hi"; do
7725 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7726 cat >conftest.$ac_ext <<_ACEOF
7729 cat confdefs.h >>conftest.$ac_ext
7730 cat >>conftest.$ac_ext <<_ACEOF
7731 /* end confdefs.h. */
7732 $ac_includes_default
7733 typedef int ac__type_sizeof_;
7737 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7744 rm -f conftest.$ac_objext
7745 if { (ac_try="$ac_compile"
7747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7748 *) ac_try_echo=$ac_try;;
7750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7751 (eval "$ac_compile") 2>conftest.er1
7753 grep -v '^
*+' conftest.er1 >conftest.err
7755 cat conftest.err >&5
7756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757 (exit $ac_status); } && {
7758 test -z "$ac_c_werror_flag" ||
7759 test ! -s conftest.err
7760 } && test -s conftest.$ac_objext; then
7763 echo "$as_me: failed program was:" >&5
7764 sed 's
/^
/|
/' conftest.$ac_ext >&5
7766 ac_lo=`expr '(' $ac_mid ')' + 1`
7769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7772 ?*) ac_cv_sizeof_int=$ac_lo;;
7773 '') if test "$ac_cv_type_int" = yes; then
7774 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7775 See \`config.log' for more details.
" >&5
7776 echo "$as_me: error
: cannot compute sizeof
(int
)
7777 See \
`config.log' for more details." >&2;}
7778 { (exit 77); exit 77; }; }
7784 cat >conftest.$ac_ext <<_ACEOF
7787 cat confdefs.h >>conftest.$ac_ext
7788 cat >>conftest.$ac_ext <<_ACEOF
7789 /* end confdefs.h. */
7790 $ac_includes_default
7791 typedef int ac__type_sizeof_;
7792 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7793 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7800 FILE *f = fopen ("conftest.val", "w");
7803 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7805 long int i = longval ();
7806 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7808 fprintf (f, "%ld\n", i);
7812 unsigned long int i = ulongval ();
7813 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7815 fprintf (f, "%lu\n", i);
7817 return ferror (f) || fclose (f) != 0;
7823 rm -f conftest$ac_exeext
7824 if { (ac_try="$ac_link"
7826 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7827 *) ac_try_echo
=$ac_try;;
7829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7830 (eval "$ac_link") 2>&5
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7834 { (case "(($ac_try" in
7835 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7836 *) ac_try_echo=$ac_try;;
7838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7839 (eval "$ac_try") 2>&5
7841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842 (exit $ac_status); }; }; then
7843 ac_cv_sizeof_int=`cat conftest.val
`
7845 echo "$as_me: program exited with status $ac_status" >&5
7846 echo "$as_me: failed program was:" >&5
7847 sed 's/^/| /' conftest.$ac_ext >&5
7850 if test "$ac_cv_type_int" = yes; then
7851 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7852 See \`config.log
' for more details." >&5
7853 echo "$as_me: error: cannot compute sizeof (int)
7854 See \`config.log' for more details.
" >&2;}
7855 { (exit 77); exit 77; }; }
7860 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7864 { echo "$as_me:$LINENO: result
: $ac_cv_sizeof_int" >&5
7865 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7869 cat >>confdefs.h <<_ACEOF
7870 #define SIZEOF_INT $ac_cv_sizeof_int
7874 { echo "$as_me:$LINENO: checking
for long
" >&5
7875 echo $ECHO_N "checking
for long...
$ECHO_C" >&6; }
7876 if test "${ac_cv_type_long+set}" = set; then
7877 echo $ECHO_N "(cached
) $ECHO_C" >&6
7879 cat >conftest.$ac_ext <<_ACEOF
7882 cat confdefs.h >>conftest.$ac_ext
7883 cat >>conftest.$ac_ext <<_ACEOF
7884 /* end confdefs.h. */
7885 $ac_includes_default
7886 typedef long ac__type_new_;
7890 if ((ac__type_new_ *) 0)
7892 if (sizeof (ac__type_new_))
7898 rm -f conftest.$ac_objext
7899 if { (ac_try="$ac_compile"
7901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7902 *) ac_try_echo=$ac_try;;
7904 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7905 (eval "$ac_compile") 2>conftest.er1
7907 grep -v '^ *+' conftest.er1 >conftest.err
7909 cat conftest.err >&5
7910 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7911 (exit $ac_status); } && {
7912 test -z "$ac_c_werror_flag" ||
7913 test ! -s conftest.err
7914 } && test -s conftest.$ac_objext; then
7917 echo "$as_me: failed program was
:" >&5
7918 sed 's/^/| /' conftest.$ac_ext >&5
7923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7925 { echo "$as_me:$LINENO: result
: $ac_cv_type_long" >&5
7926 echo "${ECHO_T}$ac_cv_type_long" >&6; }
7928 # The cast to long int works around a bug in the HP C Compiler
7929 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7930 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7931 # This bug is HP SR number 8606223364.
7932 { echo "$as_me:$LINENO: checking size of long
" >&5
7933 echo $ECHO_N "checking size of long...
$ECHO_C" >&6; }
7934 if test "${ac_cv_sizeof_long+set}" = set; then
7935 echo $ECHO_N "(cached
) $ECHO_C" >&6
7937 if test "$cross_compiling" = yes; then
7938 # Depending upon the size, compute the lo and hi bounds.
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_sizeof_;
7950 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7957 rm -f conftest.$ac_objext
7958 if { (ac_try="$ac_compile"
7960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7961 *) ac_try_echo=$ac_try;;
7963 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7964 (eval "$ac_compile") 2>conftest.er1
7966 grep -v '^ *+' conftest.er1 >conftest.err
7968 cat conftest.err >&5
7969 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7970 (exit $ac_status); } && {
7971 test -z "$ac_c_werror_flag" ||
7972 test ! -s conftest.err
7973 } && test -s conftest.$ac_objext; then
7976 cat >conftest.$ac_ext <<_ACEOF
7979 cat confdefs.h >>conftest.$ac_ext
7980 cat >>conftest.$ac_ext <<_ACEOF
7981 /* end confdefs.h. */
7982 $ac_includes_default
7983 typedef long ac__type_sizeof_;
7987 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7994 rm -f conftest.$ac_objext
7995 if { (ac_try="$ac_compile"
7997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7998 *) ac_try_echo=$ac_try;;
8000 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8001 (eval "$ac_compile") 2>conftest.er1
8003 grep -v '^ *+' conftest.er1 >conftest.err
8005 cat conftest.err >&5
8006 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8007 (exit $ac_status); } && {
8008 test -z "$ac_c_werror_flag" ||
8009 test ! -s conftest.err
8010 } && test -s conftest.$ac_objext; then
8011 ac_hi=$ac_mid; break
8013 echo "$as_me: failed program was
:" >&5
8014 sed 's/^/| /' conftest.$ac_ext >&5
8016 ac_lo=`expr $ac_mid + 1`
8017 if test $ac_lo -le $ac_mid; then
8021 ac_mid=`expr 2 '*' $ac_mid + 1`
8024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8027 echo "$as_me: failed program was
:" >&5
8028 sed 's/^/| /' conftest.$ac_ext >&5
8030 cat >conftest.$ac_ext <<_ACEOF
8033 cat confdefs.h >>conftest.$ac_ext
8034 cat >>conftest.$ac_ext <<_ACEOF
8035 /* end confdefs.h. */
8036 $ac_includes_default
8037 typedef long ac__type_sizeof_;
8041 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8048 rm -f conftest.$ac_objext
8049 if { (ac_try="$ac_compile"
8051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8052 *) ac_try_echo=$ac_try;;
8054 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8055 (eval "$ac_compile") 2>conftest.er1
8057 grep -v '^ *+' conftest.er1 >conftest.err
8059 cat conftest.err >&5
8060 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8061 (exit $ac_status); } && {
8062 test -z "$ac_c_werror_flag" ||
8063 test ! -s conftest.err
8064 } && test -s conftest.$ac_objext; then
8067 cat >conftest.$ac_ext <<_ACEOF
8070 cat confdefs.h >>conftest.$ac_ext
8071 cat >>conftest.$ac_ext <<_ACEOF
8072 /* end confdefs.h. */
8073 $ac_includes_default
8074 typedef long ac__type_sizeof_;
8078 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8085 rm -f conftest.$ac_objext
8086 if { (ac_try="$ac_compile"
8088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8089 *) ac_try_echo=$ac_try;;
8091 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8092 (eval "$ac_compile") 2>conftest.er1
8094 grep -v '^ *+' conftest.er1 >conftest.err
8096 cat conftest.err >&5
8097 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8098 (exit $ac_status); } && {
8099 test -z "$ac_c_werror_flag" ||
8100 test ! -s conftest.err
8101 } && test -s conftest.$ac_objext; then
8102 ac_lo=$ac_mid; break
8104 echo "$as_me: failed program was
:" >&5
8105 sed 's/^/| /' conftest.$ac_ext >&5
8107 ac_hi=`expr '(' $ac_mid ')' - 1`
8108 if test $ac_mid -le $ac_hi; then
8112 ac_mid=`expr 2 '*' $ac_mid`
8115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8118 echo "$as_me: failed program was
:" >&5
8119 sed 's/^/| /' conftest.$ac_ext >&5
8124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8128 # Binary search between lo and hi bounds.
8129 while test "x
$ac_lo" != "x
$ac_hi"; do
8130 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8131 cat >conftest.$ac_ext <<_ACEOF
8134 cat confdefs.h >>conftest.$ac_ext
8135 cat >>conftest.$ac_ext <<_ACEOF
8136 /* end confdefs.h. */
8137 $ac_includes_default
8138 typedef long ac__type_sizeof_;
8142 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8149 rm -f conftest.$ac_objext
8150 if { (ac_try="$ac_compile"
8152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8153 *) ac_try_echo=$ac_try;;
8155 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8156 (eval "$ac_compile") 2>conftest.er1
8158 grep -v '^ *+' conftest.er1 >conftest.err
8160 cat conftest.err >&5
8161 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8162 (exit $ac_status); } && {
8163 test -z "$ac_c_werror_flag" ||
8164 test ! -s conftest.err
8165 } && test -s conftest.$ac_objext; then
8168 echo "$as_me: failed program was
:" >&5
8169 sed 's/^/| /' conftest.$ac_ext >&5
8171 ac_lo=`expr '(' $ac_mid ')' + 1`
8174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8177 ?*) ac_cv_sizeof_long=$ac_lo;;
8178 '') if test "$ac_cv_type_long" = yes; then
8179 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long
)
8180 See \
`config.log' for more details." >&5
8181 echo "$as_me: error: cannot compute sizeof (long)
8182 See \`config.log
' for more details." >&2;}
8183 { (exit 77); exit 77; }; }
8189 cat >conftest.$ac_ext <<_ACEOF
8192 cat confdefs.h >>conftest.$ac_ext
8193 cat >>conftest.$ac_ext <<_ACEOF
8194 /* end confdefs.h. */
8195 $ac_includes_default
8196 typedef long ac__type_sizeof_;
8197 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8198 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8205 FILE *f = fopen ("conftest.val", "w");
8208 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8210 long int i = longval ();
8211 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8213 fprintf (f, "%ld\n", i);
8217 unsigned long int i = ulongval ();
8218 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8220 fprintf (f, "%lu\n", i);
8222 return ferror (f) || fclose (f) != 0;
8228 rm -f conftest$ac_exeext
8229 if { (ac_try="$ac_link"
8231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8232 *) ac_try_echo=$ac_try;;
8234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8235 (eval "$ac_link") 2>&5
8237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
8239 { (case "(($ac_try" in
8240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8241 *) ac_try_echo=$ac_try;;
8243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8244 (eval "$ac_try") 2>&5
8246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247 (exit $ac_status); }; }; then
8248 ac_cv_sizeof_long=`cat conftest.val`
8250 echo "$as_me: program exited with status $ac_status" >&5
8251 echo "$as_me: failed program was:" >&5
8252 sed 's
/^
/|
/' conftest.$ac_ext >&5
8255 if test "$ac_cv_type_long" = yes; then
8256 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8257 See \`config.log' for more details.
" >&5
8258 echo "$as_me: error
: cannot compute sizeof
(long
)
8259 See \
`config.log' for more details." >&2;}
8260 { (exit 77); exit 77; }; }
8265 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8269 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8270 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
8274 cat >>confdefs.h <<_ACEOF
8275 #define SIZEOF_LONG $ac_cv_sizeof_long
8279 { echo "$as_me:$LINENO: checking for void *" >&5
8280 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
8281 if test "${ac_cv_type_void_p+set}" = set; then
8282 echo $ECHO_N "(cached) $ECHO_C" >&6
8284 cat >conftest.$ac_ext <<_ACEOF
8287 cat confdefs.h >>conftest.$ac_ext
8288 cat >>conftest.$ac_ext <<_ACEOF
8289 /* end confdefs.h. */
8290 $ac_includes_default
8291 typedef void * ac__type_new_;
8295 if ((ac__type_new_ *) 0)
8297 if (sizeof (ac__type_new_))
8303 rm -f conftest.$ac_objext
8304 if { (ac_try="$ac_compile"
8306 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8307 *) ac_try_echo
=$ac_try;;
8309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8310 (eval "$ac_compile") 2>conftest.er1
8312 grep -v '^ *+' conftest.er1
>conftest.err
8314 cat conftest.err
>&5
8315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316 (exit $ac_status); } && {
8317 test -z "$ac_c_werror_flag" ||
8318 test ! -s conftest.err
8319 } && test -s conftest.
$ac_objext; then
8320 ac_cv_type_void_p
=yes
8322 echo "$as_me: failed program was:" >&5
8323 sed 's/^/| /' conftest.
$ac_ext >&5
8325 ac_cv_type_void_p
=no
8328 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8330 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
8331 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
8333 # The cast to long int works around a bug in the HP C Compiler
8334 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8335 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8336 # This bug is HP SR number 8606223364.
8337 { echo "$as_me:$LINENO: checking size of void *" >&5
8338 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
8339 if test "${ac_cv_sizeof_void_p+set}" = set; then
8340 echo $ECHO_N "(cached) $ECHO_C" >&6
8342 if test "$cross_compiling" = yes; then
8343 # Depending upon the size, compute the lo and hi bounds.
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_sizeof_;
8355 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8362 rm -f conftest.
$ac_objext
8363 if { (ac_try
="$ac_compile"
8365 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8366 *) ac_try_echo=$ac_try;;
8368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8369 (eval "$ac_compile") 2>conftest.er1
8371 grep -v '^ *+' conftest.er1 >conftest.err
8373 cat conftest.err >&5
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); } && {
8376 test -z "$ac_c_werror_flag" ||
8377 test ! -s conftest.err
8378 } && test -s conftest.$ac_objext; then
8381 cat >conftest.$ac_ext <<_ACEOF
8384 cat confdefs.h >>conftest.$ac_ext
8385 cat >>conftest.$ac_ext <<_ACEOF
8386 /* end confdefs.h. */
8387 $ac_includes_default
8388 typedef void * ac__type_sizeof_;
8392 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8399 rm -f conftest.$ac_objext
8400 if { (ac_try="$ac_compile"
8402 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8403 *) ac_try_echo
=$ac_try;;
8405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8406 (eval "$ac_compile") 2>conftest.er1
8408 grep -v '^ *+' conftest.er1
>conftest.err
8410 cat conftest.err
>&5
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); } && {
8413 test -z "$ac_c_werror_flag" ||
8414 test ! -s conftest.err
8415 } && test -s conftest.
$ac_objext; then
8416 ac_hi
=$ac_mid; break
8418 echo "$as_me: failed program was:" >&5
8419 sed 's/^/| /' conftest.
$ac_ext >&5
8421 ac_lo
=`expr $ac_mid + 1`
8422 if test $ac_lo -le $ac_mid; then
8426 ac_mid
=`expr 2 '*' $ac_mid + 1`
8429 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8432 echo "$as_me: failed program was:" >&5
8433 sed 's/^/| /' conftest.
$ac_ext >&5
8435 cat >conftest.
$ac_ext <<_ACEOF
8438 cat confdefs.h
>>conftest.
$ac_ext
8439 cat >>conftest.
$ac_ext <<_ACEOF
8440 /* end confdefs.h. */
8441 $ac_includes_default
8442 typedef void * ac__type_sizeof_;
8446 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8453 rm -f conftest.
$ac_objext
8454 if { (ac_try
="$ac_compile"
8456 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8457 *) ac_try_echo=$ac_try;;
8459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8460 (eval "$ac_compile") 2>conftest.er1
8462 grep -v '^ *+' conftest.er1 >conftest.err
8464 cat conftest.err >&5
8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 (exit $ac_status); } && {
8467 test -z "$ac_c_werror_flag" ||
8468 test ! -s conftest.err
8469 } && test -s conftest.$ac_objext; then
8472 cat >conftest.$ac_ext <<_ACEOF
8475 cat confdefs.h >>conftest.$ac_ext
8476 cat >>conftest.$ac_ext <<_ACEOF
8477 /* end confdefs.h. */
8478 $ac_includes_default
8479 typedef void * ac__type_sizeof_;
8483 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8490 rm -f conftest.$ac_objext
8491 if { (ac_try="$ac_compile"
8493 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8494 *) ac_try_echo
=$ac_try;;
8496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8497 (eval "$ac_compile") 2>conftest.er1
8499 grep -v '^ *+' conftest.er1
>conftest.err
8501 cat conftest.err
>&5
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); } && {
8504 test -z "$ac_c_werror_flag" ||
8505 test ! -s conftest.err
8506 } && test -s conftest.
$ac_objext; then
8507 ac_lo
=$ac_mid; break
8509 echo "$as_me: failed program was:" >&5
8510 sed 's/^/| /' conftest.
$ac_ext >&5
8512 ac_hi
=`expr '(' $ac_mid ')' - 1`
8513 if test $ac_mid -le $ac_hi; then
8517 ac_mid
=`expr 2 '*' $ac_mid`
8520 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8523 echo "$as_me: failed program was:" >&5
8524 sed 's/^/| /' conftest.
$ac_ext >&5
8529 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8532 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8533 # Binary search between lo and hi bounds.
8534 while test "x$ac_lo" != "x$ac_hi"; do
8535 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8536 cat >conftest.
$ac_ext <<_ACEOF
8539 cat confdefs.h
>>conftest.
$ac_ext
8540 cat >>conftest.
$ac_ext <<_ACEOF
8541 /* end confdefs.h. */
8542 $ac_includes_default
8543 typedef void * ac__type_sizeof_;
8547 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8554 rm -f conftest.
$ac_objext
8555 if { (ac_try
="$ac_compile"
8557 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8558 *) ac_try_echo=$ac_try;;
8560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8561 (eval "$ac_compile") 2>conftest.er1
8563 grep -v '^ *+' conftest.er1 >conftest.err
8565 cat conftest.err >&5
8566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567 (exit $ac_status); } && {
8568 test -z "$ac_c_werror_flag" ||
8569 test ! -s conftest.err
8570 } && test -s conftest.$ac_objext; then
8573 echo "$as_me: failed program was:" >&5
8574 sed 's/^/| /' conftest.$ac_ext >&5
8576 ac_lo=`expr '(' $ac_mid ')' + 1`
8579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8582 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8583 '') if test "$ac_cv_type_void_p" = yes; then
8584 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8585 See \`config.log
' for more details." >&5
8586 echo "$as_me: error: cannot compute sizeof (void *)
8587 See \`config.log' for more details.
" >&2;}
8588 { (exit 77); exit 77; }; }
8590 ac_cv_sizeof_void_p=0
8594 cat >conftest.$ac_ext <<_ACEOF
8597 cat confdefs.h >>conftest.$ac_ext
8598 cat >>conftest.$ac_ext <<_ACEOF
8599 /* end confdefs.h. */
8600 $ac_includes_default
8601 typedef void * ac__type_sizeof_;
8602 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8603 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8610 FILE *f = fopen ("conftest.val
", "w
");
8613 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8615 long int i = longval ();
8616 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8618 fprintf (f, "%ld
\n", i);
8622 unsigned long int i = ulongval ();
8623 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8625 fprintf (f, "%lu
\n", i);
8627 return ferror (f) || fclose (f) != 0;
8633 rm -f conftest$ac_exeext
8634 if { (ac_try="$ac_link"
8636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8637 *) ac_try_echo=$ac_try;;
8639 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8640 (eval "$ac_link") 2>&5
8642 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8643 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8644 { (case "(($ac_try" in
8645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8646 *) ac_try_echo=$ac_try;;
8648 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8649 (eval "$ac_try") 2>&5
8651 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8652 (exit $ac_status); }; }; then
8653 ac_cv_sizeof_void_p=`cat conftest.val`
8655 echo "$as_me: program exited with status
$ac_status" >&5
8656 echo "$as_me: failed program was
:" >&5
8657 sed 's/^/| /' conftest.$ac_ext >&5
8660 if test "$ac_cv_type_void_p" = yes; then
8661 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(void
*)
8662 See \
`config.log' for more details." >&5
8663 echo "$as_me: error: cannot compute sizeof (void *)
8664 See \`config.log
' for more details." >&2;}
8665 { (exit 77); exit 77; }; }
8667 ac_cv_sizeof_void_p=0
8670 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8674 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8675 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8679 cat >>confdefs.h <<_ACEOF
8680 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8684 { echo "$as_me:$LINENO: checking for short" >&5
8685 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
8686 if test "${ac_cv_type_short+set}" = set; then
8687 echo $ECHO_N "(cached) $ECHO_C" >&6
8689 cat >conftest.$ac_ext <<_ACEOF
8692 cat confdefs.h >>conftest.$ac_ext
8693 cat >>conftest.$ac_ext <<_ACEOF
8694 /* end confdefs.h. */
8695 $ac_includes_default
8696 typedef short ac__type_new_;
8700 if ((ac__type_new_ *) 0)
8702 if (sizeof (ac__type_new_))
8708 rm -f conftest.$ac_objext
8709 if { (ac_try="$ac_compile"
8711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8712 *) ac_try_echo=$ac_try;;
8714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8715 (eval "$ac_compile") 2>conftest.er1
8717 grep -v '^
*+' conftest.er1 >conftest.err
8719 cat conftest.err >&5
8720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721 (exit $ac_status); } && {
8722 test -z "$ac_c_werror_flag" ||
8723 test ! -s conftest.err
8724 } && test -s conftest.$ac_objext; then
8725 ac_cv_type_short=yes
8727 echo "$as_me: failed program was:" >&5
8728 sed 's
/^
/|
/' conftest.$ac_ext >&5
8733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8735 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8736 echo "${ECHO_T}$ac_cv_type_short" >&6; }
8738 # The cast to long int works around a bug in the HP C Compiler
8739 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8740 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8741 # This bug is HP SR number 8606223364.
8742 { echo "$as_me:$LINENO: checking size of short" >&5
8743 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8744 if test "${ac_cv_sizeof_short+set}" = set; then
8745 echo $ECHO_N "(cached) $ECHO_C" >&6
8747 if test "$cross_compiling" = yes; then
8748 # Depending upon the size, compute the lo and hi bounds.
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_sizeof_;
8760 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8767 rm -f conftest.
$ac_objext
8768 if { (ac_try
="$ac_compile"
8770 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8771 *) ac_try_echo=$ac_try;;
8773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8774 (eval "$ac_compile") 2>conftest.er1
8776 grep -v '^ *+' conftest.er1 >conftest.err
8778 cat conftest.err >&5
8779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780 (exit $ac_status); } && {
8781 test -z "$ac_c_werror_flag" ||
8782 test ! -s conftest.err
8783 } && test -s conftest.$ac_objext; then
8786 cat >conftest.$ac_ext <<_ACEOF
8789 cat confdefs.h >>conftest.$ac_ext
8790 cat >>conftest.$ac_ext <<_ACEOF
8791 /* end confdefs.h. */
8792 $ac_includes_default
8793 typedef short ac__type_sizeof_;
8797 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8804 rm -f conftest.$ac_objext
8805 if { (ac_try="$ac_compile"
8807 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8808 *) ac_try_echo
=$ac_try;;
8810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8811 (eval "$ac_compile") 2>conftest.er1
8813 grep -v '^ *+' conftest.er1
>conftest.err
8815 cat conftest.err
>&5
8816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817 (exit $ac_status); } && {
8818 test -z "$ac_c_werror_flag" ||
8819 test ! -s conftest.err
8820 } && test -s conftest.
$ac_objext; then
8821 ac_hi
=$ac_mid; break
8823 echo "$as_me: failed program was:" >&5
8824 sed 's/^/| /' conftest.
$ac_ext >&5
8826 ac_lo
=`expr $ac_mid + 1`
8827 if test $ac_lo -le $ac_mid; then
8831 ac_mid
=`expr 2 '*' $ac_mid + 1`
8834 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8837 echo "$as_me: failed program was:" >&5
8838 sed 's/^/| /' conftest.
$ac_ext >&5
8840 cat >conftest.
$ac_ext <<_ACEOF
8843 cat confdefs.h
>>conftest.
$ac_ext
8844 cat >>conftest.
$ac_ext <<_ACEOF
8845 /* end confdefs.h. */
8846 $ac_includes_default
8847 typedef short ac__type_sizeof_;
8851 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8858 rm -f conftest.
$ac_objext
8859 if { (ac_try
="$ac_compile"
8861 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8862 *) ac_try_echo=$ac_try;;
8864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8865 (eval "$ac_compile") 2>conftest.er1
8867 grep -v '^ *+' conftest.er1 >conftest.err
8869 cat conftest.err >&5
8870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871 (exit $ac_status); } && {
8872 test -z "$ac_c_werror_flag" ||
8873 test ! -s conftest.err
8874 } && test -s conftest.$ac_objext; then
8877 cat >conftest.$ac_ext <<_ACEOF
8880 cat confdefs.h >>conftest.$ac_ext
8881 cat >>conftest.$ac_ext <<_ACEOF
8882 /* end confdefs.h. */
8883 $ac_includes_default
8884 typedef short ac__type_sizeof_;
8888 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8895 rm -f conftest.$ac_objext
8896 if { (ac_try="$ac_compile"
8898 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8899 *) ac_try_echo
=$ac_try;;
8901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8902 (eval "$ac_compile") 2>conftest.er1
8904 grep -v '^ *+' conftest.er1
>conftest.err
8906 cat conftest.err
>&5
8907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908 (exit $ac_status); } && {
8909 test -z "$ac_c_werror_flag" ||
8910 test ! -s conftest.err
8911 } && test -s conftest.
$ac_objext; then
8912 ac_lo
=$ac_mid; break
8914 echo "$as_me: failed program was:" >&5
8915 sed 's/^/| /' conftest.
$ac_ext >&5
8917 ac_hi
=`expr '(' $ac_mid ')' - 1`
8918 if test $ac_mid -le $ac_hi; then
8922 ac_mid
=`expr 2 '*' $ac_mid`
8925 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8928 echo "$as_me: failed program was:" >&5
8929 sed 's/^/| /' conftest.
$ac_ext >&5
8934 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8937 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8938 # Binary search between lo and hi bounds.
8939 while test "x$ac_lo" != "x$ac_hi"; do
8940 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8941 cat >conftest.
$ac_ext <<_ACEOF
8944 cat confdefs.h
>>conftest.
$ac_ext
8945 cat >>conftest.
$ac_ext <<_ACEOF
8946 /* end confdefs.h. */
8947 $ac_includes_default
8948 typedef short ac__type_sizeof_;
8952 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8959 rm -f conftest.
$ac_objext
8960 if { (ac_try
="$ac_compile"
8962 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8963 *) ac_try_echo=$ac_try;;
8965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8966 (eval "$ac_compile") 2>conftest.er1
8968 grep -v '^ *+' conftest.er1 >conftest.err
8970 cat conftest.err >&5
8971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972 (exit $ac_status); } && {
8973 test -z "$ac_c_werror_flag" ||
8974 test ! -s conftest.err
8975 } && test -s conftest.$ac_objext; then
8978 echo "$as_me: failed program was:" >&5
8979 sed 's/^/| /' conftest.$ac_ext >&5
8981 ac_lo=`expr '(' $ac_mid ')' + 1`
8984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8987 ?*) ac_cv_sizeof_short=$ac_lo;;
8988 '') if test "$ac_cv_type_short" = yes; then
8989 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8990 See \`config.log
' for more details." >&5
8991 echo "$as_me: error: cannot compute sizeof (short)
8992 See \`config.log' for more details.
" >&2;}
8993 { (exit 77); exit 77; }; }
8995 ac_cv_sizeof_short=0
8999 cat >conftest.$ac_ext <<_ACEOF
9002 cat confdefs.h >>conftest.$ac_ext
9003 cat >>conftest.$ac_ext <<_ACEOF
9004 /* end confdefs.h. */
9005 $ac_includes_default
9006 typedef short ac__type_sizeof_;
9007 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9008 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9015 FILE *f = fopen ("conftest.val
", "w
");
9018 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9020 long int i = longval ();
9021 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9023 fprintf (f, "%ld
\n", i);
9027 unsigned long int i = ulongval ();
9028 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9030 fprintf (f, "%lu
\n", i);
9032 return ferror (f) || fclose (f) != 0;
9038 rm -f conftest$ac_exeext
9039 if { (ac_try="$ac_link"
9041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9042 *) ac_try_echo=$ac_try;;
9044 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9045 (eval "$ac_link") 2>&5
9047 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9048 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9049 { (case "(($ac_try" in
9050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9051 *) ac_try_echo=$ac_try;;
9053 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9054 (eval "$ac_try") 2>&5
9056 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9057 (exit $ac_status); }; }; then
9058 ac_cv_sizeof_short=`cat conftest.val`
9060 echo "$as_me: program exited with status
$ac_status" >&5
9061 echo "$as_me: failed program was
:" >&5
9062 sed 's/^/| /' conftest.$ac_ext >&5
9065 if test "$ac_cv_type_short" = yes; then
9066 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(short
)
9067 See \
`config.log' for more details." >&5
9068 echo "$as_me: error: cannot compute sizeof (short)
9069 See \`config.log
' for more details." >&2;}
9070 { (exit 77); exit 77; }; }
9072 ac_cv_sizeof_short=0
9075 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9079 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
9080 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
9084 cat >>confdefs.h <<_ACEOF
9085 #define SIZEOF_SHORT $ac_cv_sizeof_short
9089 { echo "$as_me:$LINENO: checking for float" >&5
9090 echo $ECHO_N "checking for float... $ECHO_C" >&6; }
9091 if test "${ac_cv_type_float+set}" = set; then
9092 echo $ECHO_N "(cached) $ECHO_C" >&6
9094 cat >conftest.$ac_ext <<_ACEOF
9097 cat confdefs.h >>conftest.$ac_ext
9098 cat >>conftest.$ac_ext <<_ACEOF
9099 /* end confdefs.h. */
9100 $ac_includes_default
9101 typedef float ac__type_new_;
9105 if ((ac__type_new_ *) 0)
9107 if (sizeof (ac__type_new_))
9113 rm -f conftest.$ac_objext
9114 if { (ac_try="$ac_compile"
9116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9117 *) ac_try_echo=$ac_try;;
9119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9120 (eval "$ac_compile") 2>conftest.er1
9122 grep -v '^
*+' conftest.er1 >conftest.err
9124 cat conftest.err >&5
9125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126 (exit $ac_status); } && {
9127 test -z "$ac_c_werror_flag" ||
9128 test ! -s conftest.err
9129 } && test -s conftest.$ac_objext; then
9130 ac_cv_type_float=yes
9132 echo "$as_me: failed program was:" >&5
9133 sed 's
/^
/|
/' conftest.$ac_ext >&5
9138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9140 { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
9141 echo "${ECHO_T}$ac_cv_type_float" >&6; }
9143 # The cast to long int works around a bug in the HP C Compiler
9144 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9145 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9146 # This bug is HP SR number 8606223364.
9147 { echo "$as_me:$LINENO: checking size of float" >&5
9148 echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
9149 if test "${ac_cv_sizeof_float+set}" = set; then
9150 echo $ECHO_N "(cached) $ECHO_C" >&6
9152 if test "$cross_compiling" = yes; then
9153 # Depending upon the size, compute the lo and hi bounds.
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_sizeof_;
9165 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9172 rm -f conftest.
$ac_objext
9173 if { (ac_try
="$ac_compile"
9175 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9176 *) ac_try_echo=$ac_try;;
9178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9179 (eval "$ac_compile") 2>conftest.er1
9181 grep -v '^ *+' conftest.er1 >conftest.err
9183 cat conftest.err >&5
9184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185 (exit $ac_status); } && {
9186 test -z "$ac_c_werror_flag" ||
9187 test ! -s conftest.err
9188 } && test -s conftest.$ac_objext; then
9191 cat >conftest.$ac_ext <<_ACEOF
9194 cat confdefs.h >>conftest.$ac_ext
9195 cat >>conftest.$ac_ext <<_ACEOF
9196 /* end confdefs.h. */
9197 $ac_includes_default
9198 typedef float ac__type_sizeof_;
9202 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9209 rm -f conftest.$ac_objext
9210 if { (ac_try="$ac_compile"
9212 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9213 *) ac_try_echo
=$ac_try;;
9215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9216 (eval "$ac_compile") 2>conftest.er1
9218 grep -v '^ *+' conftest.er1
>conftest.err
9220 cat conftest.err
>&5
9221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222 (exit $ac_status); } && {
9223 test -z "$ac_c_werror_flag" ||
9224 test ! -s conftest.err
9225 } && test -s conftest.
$ac_objext; then
9226 ac_hi
=$ac_mid; break
9228 echo "$as_me: failed program was:" >&5
9229 sed 's/^/| /' conftest.
$ac_ext >&5
9231 ac_lo
=`expr $ac_mid + 1`
9232 if test $ac_lo -le $ac_mid; then
9236 ac_mid
=`expr 2 '*' $ac_mid + 1`
9239 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9242 echo "$as_me: failed program was:" >&5
9243 sed 's/^/| /' conftest.
$ac_ext >&5
9245 cat >conftest.
$ac_ext <<_ACEOF
9248 cat confdefs.h
>>conftest.
$ac_ext
9249 cat >>conftest.
$ac_ext <<_ACEOF
9250 /* end confdefs.h. */
9251 $ac_includes_default
9252 typedef float ac__type_sizeof_;
9256 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9263 rm -f conftest.
$ac_objext
9264 if { (ac_try
="$ac_compile"
9266 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9267 *) ac_try_echo=$ac_try;;
9269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9270 (eval "$ac_compile") 2>conftest.er1
9272 grep -v '^ *+' conftest.er1 >conftest.err
9274 cat conftest.err >&5
9275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9276 (exit $ac_status); } && {
9277 test -z "$ac_c_werror_flag" ||
9278 test ! -s conftest.err
9279 } && test -s conftest.$ac_objext; then
9282 cat >conftest.$ac_ext <<_ACEOF
9285 cat confdefs.h >>conftest.$ac_ext
9286 cat >>conftest.$ac_ext <<_ACEOF
9287 /* end confdefs.h. */
9288 $ac_includes_default
9289 typedef float ac__type_sizeof_;
9293 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9300 rm -f conftest.$ac_objext
9301 if { (ac_try="$ac_compile"
9303 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9304 *) ac_try_echo
=$ac_try;;
9306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9307 (eval "$ac_compile") 2>conftest.er1
9309 grep -v '^ *+' conftest.er1
>conftest.err
9311 cat conftest.err
>&5
9312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313 (exit $ac_status); } && {
9314 test -z "$ac_c_werror_flag" ||
9315 test ! -s conftest.err
9316 } && test -s conftest.
$ac_objext; then
9317 ac_lo
=$ac_mid; break
9319 echo "$as_me: failed program was:" >&5
9320 sed 's/^/| /' conftest.
$ac_ext >&5
9322 ac_hi
=`expr '(' $ac_mid ')' - 1`
9323 if test $ac_mid -le $ac_hi; then
9327 ac_mid
=`expr 2 '*' $ac_mid`
9330 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9333 echo "$as_me: failed program was:" >&5
9334 sed 's/^/| /' conftest.
$ac_ext >&5
9339 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9342 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9343 # Binary search between lo and hi bounds.
9344 while test "x$ac_lo" != "x$ac_hi"; do
9345 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9346 cat >conftest.
$ac_ext <<_ACEOF
9349 cat confdefs.h
>>conftest.
$ac_ext
9350 cat >>conftest.
$ac_ext <<_ACEOF
9351 /* end confdefs.h. */
9352 $ac_includes_default
9353 typedef float ac__type_sizeof_;
9357 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9364 rm -f conftest.
$ac_objext
9365 if { (ac_try
="$ac_compile"
9367 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9368 *) ac_try_echo=$ac_try;;
9370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9371 (eval "$ac_compile") 2>conftest.er1
9373 grep -v '^ *+' conftest.er1 >conftest.err
9375 cat conftest.err >&5
9376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9377 (exit $ac_status); } && {
9378 test -z "$ac_c_werror_flag" ||
9379 test ! -s conftest.err
9380 } && test -s conftest.$ac_objext; then
9383 echo "$as_me: failed program was:" >&5
9384 sed 's/^/| /' conftest.$ac_ext >&5
9386 ac_lo=`expr '(' $ac_mid ')' + 1`
9389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9392 ?*) ac_cv_sizeof_float=$ac_lo;;
9393 '') if test "$ac_cv_type_float" = yes; then
9394 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
9395 See \`config.log
' for more details." >&5
9396 echo "$as_me: error: cannot compute sizeof (float)
9397 See \`config.log' for more details.
" >&2;}
9398 { (exit 77); exit 77; }; }
9400 ac_cv_sizeof_float=0
9404 cat >conftest.$ac_ext <<_ACEOF
9407 cat confdefs.h >>conftest.$ac_ext
9408 cat >>conftest.$ac_ext <<_ACEOF
9409 /* end confdefs.h. */
9410 $ac_includes_default
9411 typedef float ac__type_sizeof_;
9412 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9413 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9420 FILE *f = fopen ("conftest.val
", "w
");
9423 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9425 long int i = longval ();
9426 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9428 fprintf (f, "%ld
\n", i);
9432 unsigned long int i = ulongval ();
9433 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9435 fprintf (f, "%lu
\n", i);
9437 return ferror (f) || fclose (f) != 0;
9443 rm -f conftest$ac_exeext
9444 if { (ac_try="$ac_link"
9446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9447 *) ac_try_echo=$ac_try;;
9449 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9450 (eval "$ac_link") 2>&5
9452 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9453 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9454 { (case "(($ac_try" in
9455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9456 *) ac_try_echo=$ac_try;;
9458 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9459 (eval "$ac_try") 2>&5
9461 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9462 (exit $ac_status); }; }; then
9463 ac_cv_sizeof_float=`cat conftest.val`
9465 echo "$as_me: program exited with status
$ac_status" >&5
9466 echo "$as_me: failed program was
:" >&5
9467 sed 's/^/| /' conftest.$ac_ext >&5
9470 if test "$ac_cv_type_float" = yes; then
9471 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(float
)
9472 See \
`config.log' for more details." >&5
9473 echo "$as_me: error: cannot compute sizeof (float)
9474 See \`config.log
' for more details." >&2;}
9475 { (exit 77); exit 77; }; }
9477 ac_cv_sizeof_float=0
9480 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9484 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
9485 echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
9489 cat >>confdefs.h <<_ACEOF
9490 #define SIZEOF_FLOAT $ac_cv_sizeof_float
9494 { echo "$as_me:$LINENO: checking for double" >&5
9495 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
9496 if test "${ac_cv_type_double+set}" = set; then
9497 echo $ECHO_N "(cached) $ECHO_C" >&6
9499 cat >conftest.$ac_ext <<_ACEOF
9502 cat confdefs.h >>conftest.$ac_ext
9503 cat >>conftest.$ac_ext <<_ACEOF
9504 /* end confdefs.h. */
9505 $ac_includes_default
9506 typedef double ac__type_new_;
9510 if ((ac__type_new_ *) 0)
9512 if (sizeof (ac__type_new_))
9518 rm -f conftest.$ac_objext
9519 if { (ac_try="$ac_compile"
9521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9522 *) ac_try_echo=$ac_try;;
9524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9525 (eval "$ac_compile") 2>conftest.er1
9527 grep -v '^
*+' conftest.er1 >conftest.err
9529 cat conftest.err >&5
9530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9531 (exit $ac_status); } && {
9532 test -z "$ac_c_werror_flag" ||
9533 test ! -s conftest.err
9534 } && test -s conftest.$ac_objext; then
9535 ac_cv_type_double=yes
9537 echo "$as_me: failed program was:" >&5
9538 sed 's
/^
/|
/' conftest.$ac_ext >&5
9540 ac_cv_type_double=no
9543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9545 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
9546 echo "${ECHO_T}$ac_cv_type_double" >&6; }
9548 # The cast to long int works around a bug in the HP C Compiler
9549 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9550 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9551 # This bug is HP SR number 8606223364.
9552 { echo "$as_me:$LINENO: checking size of double" >&5
9553 echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
9554 if test "${ac_cv_sizeof_double+set}" = set; then
9555 echo $ECHO_N "(cached) $ECHO_C" >&6
9557 if test "$cross_compiling" = yes; then
9558 # Depending upon the size, compute the lo and hi bounds.
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_sizeof_;
9570 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9577 rm -f conftest.
$ac_objext
9578 if { (ac_try
="$ac_compile"
9580 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9581 *) ac_try_echo=$ac_try;;
9583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9584 (eval "$ac_compile") 2>conftest.er1
9586 grep -v '^ *+' conftest.er1 >conftest.err
9588 cat conftest.err >&5
9589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9590 (exit $ac_status); } && {
9591 test -z "$ac_c_werror_flag" ||
9592 test ! -s conftest.err
9593 } && test -s conftest.$ac_objext; then
9596 cat >conftest.$ac_ext <<_ACEOF
9599 cat confdefs.h >>conftest.$ac_ext
9600 cat >>conftest.$ac_ext <<_ACEOF
9601 /* end confdefs.h. */
9602 $ac_includes_default
9603 typedef double ac__type_sizeof_;
9607 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9614 rm -f conftest.$ac_objext
9615 if { (ac_try="$ac_compile"
9617 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9618 *) ac_try_echo
=$ac_try;;
9620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9621 (eval "$ac_compile") 2>conftest.er1
9623 grep -v '^ *+' conftest.er1
>conftest.err
9625 cat conftest.err
>&5
9626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627 (exit $ac_status); } && {
9628 test -z "$ac_c_werror_flag" ||
9629 test ! -s conftest.err
9630 } && test -s conftest.
$ac_objext; then
9631 ac_hi
=$ac_mid; break
9633 echo "$as_me: failed program was:" >&5
9634 sed 's/^/| /' conftest.
$ac_ext >&5
9636 ac_lo
=`expr $ac_mid + 1`
9637 if test $ac_lo -le $ac_mid; then
9641 ac_mid
=`expr 2 '*' $ac_mid + 1`
9644 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9647 echo "$as_me: failed program was:" >&5
9648 sed 's/^/| /' conftest.
$ac_ext >&5
9650 cat >conftest.
$ac_ext <<_ACEOF
9653 cat confdefs.h
>>conftest.
$ac_ext
9654 cat >>conftest.
$ac_ext <<_ACEOF
9655 /* end confdefs.h. */
9656 $ac_includes_default
9657 typedef double ac__type_sizeof_;
9661 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9668 rm -f conftest.
$ac_objext
9669 if { (ac_try
="$ac_compile"
9671 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9672 *) ac_try_echo=$ac_try;;
9674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9675 (eval "$ac_compile") 2>conftest.er1
9677 grep -v '^ *+' conftest.er1 >conftest.err
9679 cat conftest.err >&5
9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); } && {
9682 test -z "$ac_c_werror_flag" ||
9683 test ! -s conftest.err
9684 } && test -s conftest.$ac_objext; then
9687 cat >conftest.$ac_ext <<_ACEOF
9690 cat confdefs.h >>conftest.$ac_ext
9691 cat >>conftest.$ac_ext <<_ACEOF
9692 /* end confdefs.h. */
9693 $ac_includes_default
9694 typedef double ac__type_sizeof_;
9698 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9705 rm -f conftest.$ac_objext
9706 if { (ac_try="$ac_compile"
9708 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9709 *) ac_try_echo
=$ac_try;;
9711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9712 (eval "$ac_compile") 2>conftest.er1
9714 grep -v '^ *+' conftest.er1
>conftest.err
9716 cat conftest.err
>&5
9717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718 (exit $ac_status); } && {
9719 test -z "$ac_c_werror_flag" ||
9720 test ! -s conftest.err
9721 } && test -s conftest.
$ac_objext; then
9722 ac_lo
=$ac_mid; break
9724 echo "$as_me: failed program was:" >&5
9725 sed 's/^/| /' conftest.
$ac_ext >&5
9727 ac_hi
=`expr '(' $ac_mid ')' - 1`
9728 if test $ac_mid -le $ac_hi; then
9732 ac_mid
=`expr 2 '*' $ac_mid`
9735 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9738 echo "$as_me: failed program was:" >&5
9739 sed 's/^/| /' conftest.
$ac_ext >&5
9744 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9747 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9748 # Binary search between lo and hi bounds.
9749 while test "x$ac_lo" != "x$ac_hi"; do
9750 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9751 cat >conftest.
$ac_ext <<_ACEOF
9754 cat confdefs.h
>>conftest.
$ac_ext
9755 cat >>conftest.
$ac_ext <<_ACEOF
9756 /* end confdefs.h. */
9757 $ac_includes_default
9758 typedef double ac__type_sizeof_;
9762 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9769 rm -f conftest.
$ac_objext
9770 if { (ac_try
="$ac_compile"
9772 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9773 *) ac_try_echo=$ac_try;;
9775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9776 (eval "$ac_compile") 2>conftest.er1
9778 grep -v '^ *+' conftest.er1 >conftest.err
9780 cat conftest.err >&5
9781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782 (exit $ac_status); } && {
9783 test -z "$ac_c_werror_flag" ||
9784 test ! -s conftest.err
9785 } && test -s conftest.$ac_objext; then
9788 echo "$as_me: failed program was:" >&5
9789 sed 's/^/| /' conftest.$ac_ext >&5
9791 ac_lo=`expr '(' $ac_mid ')' + 1`
9794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9797 ?*) ac_cv_sizeof_double=$ac_lo;;
9798 '') if test "$ac_cv_type_double" = yes; then
9799 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9800 See \`config.log
' for more details." >&5
9801 echo "$as_me: error: cannot compute sizeof (double)
9802 See \`config.log' for more details.
" >&2;}
9803 { (exit 77); exit 77; }; }
9805 ac_cv_sizeof_double=0
9809 cat >conftest.$ac_ext <<_ACEOF
9812 cat confdefs.h >>conftest.$ac_ext
9813 cat >>conftest.$ac_ext <<_ACEOF
9814 /* end confdefs.h. */
9815 $ac_includes_default
9816 typedef double ac__type_sizeof_;
9817 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9818 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9825 FILE *f = fopen ("conftest.val
", "w
");
9828 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9830 long int i = longval ();
9831 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9833 fprintf (f, "%ld
\n", i);
9837 unsigned long int i = ulongval ();
9838 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9840 fprintf (f, "%lu
\n", i);
9842 return ferror (f) || fclose (f) != 0;
9848 rm -f conftest$ac_exeext
9849 if { (ac_try="$ac_link"
9851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9852 *) ac_try_echo=$ac_try;;
9854 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9855 (eval "$ac_link") 2>&5
9857 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9858 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9859 { (case "(($ac_try" in
9860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9861 *) ac_try_echo=$ac_try;;
9863 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9864 (eval "$ac_try") 2>&5
9866 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9867 (exit $ac_status); }; }; then
9868 ac_cv_sizeof_double=`cat conftest.val`
9870 echo "$as_me: program exited with status
$ac_status" >&5
9871 echo "$as_me: failed program was
:" >&5
9872 sed 's/^/| /' conftest.$ac_ext >&5
9875 if test "$ac_cv_type_double" = yes; then
9876 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(double
)
9877 See \
`config.log' for more details." >&5
9878 echo "$as_me: error: cannot compute sizeof (double)
9879 See \`config.log
' for more details." >&2;}
9880 { (exit 77); exit 77; }; }
9882 ac_cv_sizeof_double=0
9885 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9889 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
9890 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
9894 cat >>confdefs.h <<_ACEOF
9895 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
9899 { echo "$as_me:$LINENO: checking for fpos_t" >&5
9900 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; }
9901 if test "${ac_cv_type_fpos_t+set}" = set; then
9902 echo $ECHO_N "(cached) $ECHO_C" >&6
9904 cat >conftest.$ac_ext <<_ACEOF
9907 cat confdefs.h >>conftest.$ac_ext
9908 cat >>conftest.$ac_ext <<_ACEOF
9909 /* end confdefs.h. */
9910 $ac_includes_default
9911 typedef fpos_t ac__type_new_;
9915 if ((ac__type_new_ *) 0)
9917 if (sizeof (ac__type_new_))
9923 rm -f conftest.$ac_objext
9924 if { (ac_try="$ac_compile"
9926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9927 *) ac_try_echo=$ac_try;;
9929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9930 (eval "$ac_compile") 2>conftest.er1
9932 grep -v '^
*+' conftest.er1 >conftest.err
9934 cat conftest.err >&5
9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); } && {
9937 test -z "$ac_c_werror_flag" ||
9938 test ! -s conftest.err
9939 } && test -s conftest.$ac_objext; then
9940 ac_cv_type_fpos_t=yes
9942 echo "$as_me: failed program was:" >&5
9943 sed 's
/^
/|
/' conftest.$ac_ext >&5
9945 ac_cv_type_fpos_t=no
9948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9950 { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
9951 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; }
9953 # The cast to long int works around a bug in the HP C Compiler
9954 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9955 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9956 # This bug is HP SR number 8606223364.
9957 { echo "$as_me:$LINENO: checking size of fpos_t" >&5
9958 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; }
9959 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
9960 echo $ECHO_N "(cached) $ECHO_C" >&6
9962 if test "$cross_compiling" = yes; then
9963 # Depending upon the size, compute the lo and hi bounds.
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_sizeof_;
9975 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9982 rm -f conftest.
$ac_objext
9983 if { (ac_try
="$ac_compile"
9985 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9986 *) ac_try_echo=$ac_try;;
9988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9989 (eval "$ac_compile") 2>conftest.er1
9991 grep -v '^ *+' conftest.er1 >conftest.err
9993 cat conftest.err >&5
9994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 (exit $ac_status); } && {
9996 test -z "$ac_c_werror_flag" ||
9997 test ! -s conftest.err
9998 } && test -s conftest.$ac_objext; then
10001 cat >conftest.$ac_ext <<_ACEOF
10004 cat confdefs.h >>conftest.$ac_ext
10005 cat >>conftest.$ac_ext <<_ACEOF
10006 /* end confdefs.h. */
10007 $ac_includes_default
10008 typedef fpos_t ac__type_sizeof_;
10012 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10019 rm -f conftest.$ac_objext
10020 if { (ac_try="$ac_compile"
10021 case "(($ac_try" in
10022 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10023 *) ac_try_echo
=$ac_try;;
10025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10026 (eval "$ac_compile") 2>conftest.er1
10028 grep -v '^ *+' conftest.er1
>conftest.err
10030 cat conftest.err
>&5
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); } && {
10033 test -z "$ac_c_werror_flag" ||
10034 test ! -s conftest.err
10035 } && test -s conftest.
$ac_objext; then
10036 ac_hi
=$ac_mid; break
10038 echo "$as_me: failed program was:" >&5
10039 sed 's/^/| /' conftest.
$ac_ext >&5
10041 ac_lo
=`expr $ac_mid + 1`
10042 if test $ac_lo -le $ac_mid; then
10046 ac_mid
=`expr 2 '*' $ac_mid + 1`
10049 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10052 echo "$as_me: failed program was:" >&5
10053 sed 's/^/| /' conftest.
$ac_ext >&5
10055 cat >conftest.
$ac_ext <<_ACEOF
10058 cat confdefs.h
>>conftest.
$ac_ext
10059 cat >>conftest.
$ac_ext <<_ACEOF
10060 /* end confdefs.h. */
10061 $ac_includes_default
10062 typedef fpos_t ac__type_sizeof_;
10066 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10073 rm -f conftest.
$ac_objext
10074 if { (ac_try
="$ac_compile"
10075 case "(($ac_try" in
10076 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10077 *) ac_try_echo=$ac_try;;
10079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10080 (eval "$ac_compile") 2>conftest.er1
10082 grep -v '^ *+' conftest.er1 >conftest.err
10084 cat conftest.err >&5
10085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086 (exit $ac_status); } && {
10087 test -z "$ac_c_werror_flag" ||
10088 test ! -s conftest.err
10089 } && test -s conftest.$ac_objext; then
10092 cat >conftest.$ac_ext <<_ACEOF
10095 cat confdefs.h >>conftest.$ac_ext
10096 cat >>conftest.$ac_ext <<_ACEOF
10097 /* end confdefs.h. */
10098 $ac_includes_default
10099 typedef fpos_t ac__type_sizeof_;
10103 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10110 rm -f conftest.$ac_objext
10111 if { (ac_try="$ac_compile"
10112 case "(($ac_try" in
10113 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10114 *) ac_try_echo
=$ac_try;;
10116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10117 (eval "$ac_compile") 2>conftest.er1
10119 grep -v '^ *+' conftest.er1
>conftest.err
10121 cat conftest.err
>&5
10122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123 (exit $ac_status); } && {
10124 test -z "$ac_c_werror_flag" ||
10125 test ! -s conftest.err
10126 } && test -s conftest.
$ac_objext; then
10127 ac_lo
=$ac_mid; break
10129 echo "$as_me: failed program was:" >&5
10130 sed 's/^/| /' conftest.
$ac_ext >&5
10132 ac_hi
=`expr '(' $ac_mid ')' - 1`
10133 if test $ac_mid -le $ac_hi; then
10137 ac_mid
=`expr 2 '*' $ac_mid`
10140 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10143 echo "$as_me: failed program was:" >&5
10144 sed 's/^/| /' conftest.
$ac_ext >&5
10149 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10152 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10153 # Binary search between lo and hi bounds.
10154 while test "x$ac_lo" != "x$ac_hi"; do
10155 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10156 cat >conftest.
$ac_ext <<_ACEOF
10159 cat confdefs.h
>>conftest.
$ac_ext
10160 cat >>conftest.
$ac_ext <<_ACEOF
10161 /* end confdefs.h. */
10162 $ac_includes_default
10163 typedef fpos_t ac__type_sizeof_;
10167 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10174 rm -f conftest.
$ac_objext
10175 if { (ac_try
="$ac_compile"
10176 case "(($ac_try" in
10177 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10178 *) ac_try_echo=$ac_try;;
10180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10181 (eval "$ac_compile") 2>conftest.er1
10183 grep -v '^ *+' conftest.er1 >conftest.err
10185 cat conftest.err >&5
10186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187 (exit $ac_status); } && {
10188 test -z "$ac_c_werror_flag" ||
10189 test ! -s conftest.err
10190 } && test -s conftest.$ac_objext; then
10193 echo "$as_me: failed program was:" >&5
10194 sed 's/^/| /' conftest.$ac_ext >&5
10196 ac_lo=`expr '(' $ac_mid ')' + 1`
10199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10202 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
10203 '') if test "$ac_cv_type_fpos_t" = yes; then
10204 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
10205 See \`config.log
' for more details." >&5
10206 echo "$as_me: error: cannot compute sizeof (fpos_t)
10207 See \`config.log' for more details.
" >&2;}
10208 { (exit 77); exit 77; }; }
10210 ac_cv_sizeof_fpos_t=0
10214 cat >conftest.$ac_ext <<_ACEOF
10217 cat confdefs.h >>conftest.$ac_ext
10218 cat >>conftest.$ac_ext <<_ACEOF
10219 /* end confdefs.h. */
10220 $ac_includes_default
10221 typedef fpos_t ac__type_sizeof_;
10222 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10223 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10225 #include <stdlib.h>
10230 FILE *f = fopen ("conftest.val
", "w
");
10233 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10235 long int i = longval ();
10236 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10238 fprintf (f, "%ld
\n", i);
10242 unsigned long int i = ulongval ();
10243 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10245 fprintf (f, "%lu
\n", i);
10247 return ferror (f) || fclose (f) != 0;
10253 rm -f conftest$ac_exeext
10254 if { (ac_try="$ac_link"
10255 case "(($ac_try" in
10256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10257 *) ac_try_echo=$ac_try;;
10259 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10260 (eval "$ac_link") 2>&5
10262 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10263 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10264 { (case "(($ac_try" in
10265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10266 *) ac_try_echo=$ac_try;;
10268 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10269 (eval "$ac_try") 2>&5
10271 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10272 (exit $ac_status); }; }; then
10273 ac_cv_sizeof_fpos_t=`cat conftest.val`
10275 echo "$as_me: program exited with status
$ac_status" >&5
10276 echo "$as_me: failed program was
:" >&5
10277 sed 's/^/| /' conftest.$ac_ext >&5
10279 ( exit $ac_status )
10280 if test "$ac_cv_type_fpos_t" = yes; then
10281 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(fpos_t
)
10282 See \
`config.log' for more details." >&5
10283 echo "$as_me: error: cannot compute sizeof (fpos_t)
10284 See \`config.log
' for more details." >&2;}
10285 { (exit 77); exit 77; }; }
10287 ac_cv_sizeof_fpos_t=0
10290 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10294 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
10295 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; }
10299 cat >>confdefs.h <<_ACEOF
10300 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
10304 { echo "$as_me:$LINENO: checking for size_t" >&5
10305 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
10306 if test "${ac_cv_type_size_t+set}" = set; then
10307 echo $ECHO_N "(cached) $ECHO_C" >&6
10309 cat >conftest.$ac_ext <<_ACEOF
10312 cat confdefs.h >>conftest.$ac_ext
10313 cat >>conftest.$ac_ext <<_ACEOF
10314 /* end confdefs.h. */
10315 $ac_includes_default
10316 typedef size_t ac__type_new_;
10320 if ((ac__type_new_ *) 0)
10322 if (sizeof (ac__type_new_))
10328 rm -f conftest.$ac_objext
10329 if { (ac_try="$ac_compile"
10330 case "(($ac_try" in
10331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10332 *) ac_try_echo=$ac_try;;
10334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10335 (eval "$ac_compile") 2>conftest.er1
10337 grep -v '^
*+' conftest.er1 >conftest.err
10339 cat conftest.err >&5
10340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341 (exit $ac_status); } && {
10342 test -z "$ac_c_werror_flag" ||
10343 test ! -s conftest.err
10344 } && test -s conftest.$ac_objext; then
10345 ac_cv_type_size_t=yes
10347 echo "$as_me: failed program was:" >&5
10348 sed 's
/^
/|
/' conftest.$ac_ext >&5
10350 ac_cv_type_size_t=no
10353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10355 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10356 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
10358 # The cast to long int works around a bug in the HP C Compiler
10359 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10360 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10361 # This bug is HP SR number 8606223364.
10362 { echo "$as_me:$LINENO: checking size of size_t" >&5
10363 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
10364 if test "${ac_cv_sizeof_size_t+set}" = set; then
10365 echo $ECHO_N "(cached) $ECHO_C" >&6
10367 if test "$cross_compiling" = yes; then
10368 # Depending upon the size, compute the lo and hi bounds.
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_sizeof_;
10380 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10387 rm -f conftest.
$ac_objext
10388 if { (ac_try
="$ac_compile"
10389 case "(($ac_try" in
10390 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10391 *) ac_try_echo=$ac_try;;
10393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10394 (eval "$ac_compile") 2>conftest.er1
10396 grep -v '^ *+' conftest.er1 >conftest.err
10398 cat conftest.err >&5
10399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400 (exit $ac_status); } && {
10401 test -z "$ac_c_werror_flag" ||
10402 test ! -s conftest.err
10403 } && test -s conftest.$ac_objext; then
10406 cat >conftest.$ac_ext <<_ACEOF
10409 cat confdefs.h >>conftest.$ac_ext
10410 cat >>conftest.$ac_ext <<_ACEOF
10411 /* end confdefs.h. */
10412 $ac_includes_default
10413 typedef size_t ac__type_sizeof_;
10417 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10424 rm -f conftest.$ac_objext
10425 if { (ac_try="$ac_compile"
10426 case "(($ac_try" in
10427 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10428 *) ac_try_echo
=$ac_try;;
10430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10431 (eval "$ac_compile") 2>conftest.er1
10433 grep -v '^ *+' conftest.er1
>conftest.err
10435 cat conftest.err
>&5
10436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437 (exit $ac_status); } && {
10438 test -z "$ac_c_werror_flag" ||
10439 test ! -s conftest.err
10440 } && test -s conftest.
$ac_objext; then
10441 ac_hi
=$ac_mid; break
10443 echo "$as_me: failed program was:" >&5
10444 sed 's/^/| /' conftest.
$ac_ext >&5
10446 ac_lo
=`expr $ac_mid + 1`
10447 if test $ac_lo -le $ac_mid; then
10451 ac_mid
=`expr 2 '*' $ac_mid + 1`
10454 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10457 echo "$as_me: failed program was:" >&5
10458 sed 's/^/| /' conftest.
$ac_ext >&5
10460 cat >conftest.
$ac_ext <<_ACEOF
10463 cat confdefs.h
>>conftest.
$ac_ext
10464 cat >>conftest.
$ac_ext <<_ACEOF
10465 /* end confdefs.h. */
10466 $ac_includes_default
10467 typedef size_t ac__type_sizeof_;
10471 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10478 rm -f conftest.
$ac_objext
10479 if { (ac_try
="$ac_compile"
10480 case "(($ac_try" in
10481 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10482 *) ac_try_echo=$ac_try;;
10484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10485 (eval "$ac_compile") 2>conftest.er1
10487 grep -v '^ *+' conftest.er1 >conftest.err
10489 cat conftest.err >&5
10490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491 (exit $ac_status); } && {
10492 test -z "$ac_c_werror_flag" ||
10493 test ! -s conftest.err
10494 } && test -s conftest.$ac_objext; then
10497 cat >conftest.$ac_ext <<_ACEOF
10500 cat confdefs.h >>conftest.$ac_ext
10501 cat >>conftest.$ac_ext <<_ACEOF
10502 /* end confdefs.h. */
10503 $ac_includes_default
10504 typedef size_t ac__type_sizeof_;
10508 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10515 rm -f conftest.$ac_objext
10516 if { (ac_try="$ac_compile"
10517 case "(($ac_try" in
10518 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10519 *) ac_try_echo
=$ac_try;;
10521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10522 (eval "$ac_compile") 2>conftest.er1
10524 grep -v '^ *+' conftest.er1
>conftest.err
10526 cat conftest.err
>&5
10527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528 (exit $ac_status); } && {
10529 test -z "$ac_c_werror_flag" ||
10530 test ! -s conftest.err
10531 } && test -s conftest.
$ac_objext; then
10532 ac_lo
=$ac_mid; break
10534 echo "$as_me: failed program was:" >&5
10535 sed 's/^/| /' conftest.
$ac_ext >&5
10537 ac_hi
=`expr '(' $ac_mid ')' - 1`
10538 if test $ac_mid -le $ac_hi; then
10542 ac_mid
=`expr 2 '*' $ac_mid`
10545 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10548 echo "$as_me: failed program was:" >&5
10549 sed 's/^/| /' conftest.
$ac_ext >&5
10554 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10557 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10558 # Binary search between lo and hi bounds.
10559 while test "x$ac_lo" != "x$ac_hi"; do
10560 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10561 cat >conftest.
$ac_ext <<_ACEOF
10564 cat confdefs.h
>>conftest.
$ac_ext
10565 cat >>conftest.
$ac_ext <<_ACEOF
10566 /* end confdefs.h. */
10567 $ac_includes_default
10568 typedef size_t ac__type_sizeof_;
10572 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10579 rm -f conftest.
$ac_objext
10580 if { (ac_try
="$ac_compile"
10581 case "(($ac_try" in
10582 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10583 *) ac_try_echo=$ac_try;;
10585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10586 (eval "$ac_compile") 2>conftest.er1
10588 grep -v '^ *+' conftest.er1 >conftest.err
10590 cat conftest.err >&5
10591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592 (exit $ac_status); } && {
10593 test -z "$ac_c_werror_flag" ||
10594 test ! -s conftest.err
10595 } && test -s conftest.$ac_objext; then
10598 echo "$as_me: failed program was:" >&5
10599 sed 's/^/| /' conftest.$ac_ext >&5
10601 ac_lo=`expr '(' $ac_mid ')' + 1`
10604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10607 ?*) ac_cv_sizeof_size_t=$ac_lo;;
10608 '') if test "$ac_cv_type_size_t" = yes; then
10609 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10610 See \`config.log
' for more details." >&5
10611 echo "$as_me: error: cannot compute sizeof (size_t)
10612 See \`config.log' for more details.
" >&2;}
10613 { (exit 77); exit 77; }; }
10615 ac_cv_sizeof_size_t=0
10619 cat >conftest.$ac_ext <<_ACEOF
10622 cat confdefs.h >>conftest.$ac_ext
10623 cat >>conftest.$ac_ext <<_ACEOF
10624 /* end confdefs.h. */
10625 $ac_includes_default
10626 typedef size_t ac__type_sizeof_;
10627 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10628 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10630 #include <stdlib.h>
10635 FILE *f = fopen ("conftest.val
", "w
");
10638 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10640 long int i = longval ();
10641 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10643 fprintf (f, "%ld
\n", i);
10647 unsigned long int i = ulongval ();
10648 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10650 fprintf (f, "%lu
\n", i);
10652 return ferror (f) || fclose (f) != 0;
10658 rm -f conftest$ac_exeext
10659 if { (ac_try="$ac_link"
10660 case "(($ac_try" in
10661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10662 *) ac_try_echo=$ac_try;;
10664 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10665 (eval "$ac_link") 2>&5
10667 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10668 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10669 { (case "(($ac_try" in
10670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10671 *) ac_try_echo=$ac_try;;
10673 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10674 (eval "$ac_try") 2>&5
10676 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10677 (exit $ac_status); }; }; then
10678 ac_cv_sizeof_size_t=`cat conftest.val`
10680 echo "$as_me: program exited with status
$ac_status" >&5
10681 echo "$as_me: failed program was
:" >&5
10682 sed 's/^/| /' conftest.$ac_ext >&5
10684 ( exit $ac_status )
10685 if test "$ac_cv_type_size_t" = yes; then
10686 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(size_t
)
10687 See \
`config.log' for more details." >&5
10688 echo "$as_me: error: cannot compute sizeof (size_t)
10689 See \`config.log
' for more details." >&2;}
10690 { (exit 77); exit 77; }; }
10692 ac_cv_sizeof_size_t=0
10695 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10699 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10700 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
10704 cat >>confdefs.h <<_ACEOF
10705 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10709 { echo "$as_me:$LINENO: checking for pid_t" >&5
10710 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10711 if test "${ac_cv_type_pid_t+set}" = set; then
10712 echo $ECHO_N "(cached) $ECHO_C" >&6
10714 cat >conftest.$ac_ext <<_ACEOF
10717 cat confdefs.h >>conftest.$ac_ext
10718 cat >>conftest.$ac_ext <<_ACEOF
10719 /* end confdefs.h. */
10720 $ac_includes_default
10721 typedef pid_t ac__type_new_;
10725 if ((ac__type_new_ *) 0)
10727 if (sizeof (ac__type_new_))
10733 rm -f conftest.$ac_objext
10734 if { (ac_try="$ac_compile"
10735 case "(($ac_try" in
10736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10737 *) ac_try_echo=$ac_try;;
10739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10740 (eval "$ac_compile") 2>conftest.er1
10742 grep -v '^
*+' conftest.er1 >conftest.err
10744 cat conftest.err >&5
10745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746 (exit $ac_status); } && {
10747 test -z "$ac_c_werror_flag" ||
10748 test ! -s conftest.err
10749 } && test -s conftest.$ac_objext; then
10750 ac_cv_type_pid_t=yes
10752 echo "$as_me: failed program was:" >&5
10753 sed 's
/^
/|
/' conftest.$ac_ext >&5
10755 ac_cv_type_pid_t=no
10758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10760 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10761 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10763 # The cast to long int works around a bug in the HP C Compiler
10764 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10765 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10766 # This bug is HP SR number 8606223364.
10767 { echo "$as_me:$LINENO: checking size of pid_t" >&5
10768 echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; }
10769 if test "${ac_cv_sizeof_pid_t+set}" = set; then
10770 echo $ECHO_N "(cached) $ECHO_C" >&6
10772 if test "$cross_compiling" = yes; then
10773 # Depending upon the size, compute the lo and hi bounds.
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_sizeof_;
10785 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10792 rm -f conftest.
$ac_objext
10793 if { (ac_try
="$ac_compile"
10794 case "(($ac_try" in
10795 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10796 *) ac_try_echo=$ac_try;;
10798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10799 (eval "$ac_compile") 2>conftest.er1
10801 grep -v '^ *+' conftest.er1 >conftest.err
10803 cat conftest.err >&5
10804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805 (exit $ac_status); } && {
10806 test -z "$ac_c_werror_flag" ||
10807 test ! -s conftest.err
10808 } && test -s conftest.$ac_objext; then
10811 cat >conftest.$ac_ext <<_ACEOF
10814 cat confdefs.h >>conftest.$ac_ext
10815 cat >>conftest.$ac_ext <<_ACEOF
10816 /* end confdefs.h. */
10817 $ac_includes_default
10818 typedef pid_t ac__type_sizeof_;
10822 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10829 rm -f conftest.$ac_objext
10830 if { (ac_try="$ac_compile"
10831 case "(($ac_try" in
10832 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10833 *) ac_try_echo
=$ac_try;;
10835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10836 (eval "$ac_compile") 2>conftest.er1
10838 grep -v '^ *+' conftest.er1
>conftest.err
10840 cat conftest.err
>&5
10841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842 (exit $ac_status); } && {
10843 test -z "$ac_c_werror_flag" ||
10844 test ! -s conftest.err
10845 } && test -s conftest.
$ac_objext; then
10846 ac_hi
=$ac_mid; break
10848 echo "$as_me: failed program was:" >&5
10849 sed 's/^/| /' conftest.
$ac_ext >&5
10851 ac_lo
=`expr $ac_mid + 1`
10852 if test $ac_lo -le $ac_mid; then
10856 ac_mid
=`expr 2 '*' $ac_mid + 1`
10859 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10862 echo "$as_me: failed program was:" >&5
10863 sed 's/^/| /' conftest.
$ac_ext >&5
10865 cat >conftest.
$ac_ext <<_ACEOF
10868 cat confdefs.h
>>conftest.
$ac_ext
10869 cat >>conftest.
$ac_ext <<_ACEOF
10870 /* end confdefs.h. */
10871 $ac_includes_default
10872 typedef pid_t ac__type_sizeof_;
10876 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10883 rm -f conftest.
$ac_objext
10884 if { (ac_try
="$ac_compile"
10885 case "(($ac_try" in
10886 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10887 *) ac_try_echo=$ac_try;;
10889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10890 (eval "$ac_compile") 2>conftest.er1
10892 grep -v '^ *+' conftest.er1 >conftest.err
10894 cat conftest.err >&5
10895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896 (exit $ac_status); } && {
10897 test -z "$ac_c_werror_flag" ||
10898 test ! -s conftest.err
10899 } && test -s conftest.$ac_objext; then
10902 cat >conftest.$ac_ext <<_ACEOF
10905 cat confdefs.h >>conftest.$ac_ext
10906 cat >>conftest.$ac_ext <<_ACEOF
10907 /* end confdefs.h. */
10908 $ac_includes_default
10909 typedef pid_t ac__type_sizeof_;
10913 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10920 rm -f conftest.$ac_objext
10921 if { (ac_try="$ac_compile"
10922 case "(($ac_try" in
10923 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10924 *) ac_try_echo
=$ac_try;;
10926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10927 (eval "$ac_compile") 2>conftest.er1
10929 grep -v '^ *+' conftest.er1
>conftest.err
10931 cat conftest.err
>&5
10932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 (exit $ac_status); } && {
10934 test -z "$ac_c_werror_flag" ||
10935 test ! -s conftest.err
10936 } && test -s conftest.
$ac_objext; then
10937 ac_lo
=$ac_mid; break
10939 echo "$as_me: failed program was:" >&5
10940 sed 's/^/| /' conftest.
$ac_ext >&5
10942 ac_hi
=`expr '(' $ac_mid ')' - 1`
10943 if test $ac_mid -le $ac_hi; then
10947 ac_mid
=`expr 2 '*' $ac_mid`
10950 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10953 echo "$as_me: failed program was:" >&5
10954 sed 's/^/| /' conftest.
$ac_ext >&5
10959 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10962 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10963 # Binary search between lo and hi bounds.
10964 while test "x$ac_lo" != "x$ac_hi"; do
10965 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10966 cat >conftest.
$ac_ext <<_ACEOF
10969 cat confdefs.h
>>conftest.
$ac_ext
10970 cat >>conftest.
$ac_ext <<_ACEOF
10971 /* end confdefs.h. */
10972 $ac_includes_default
10973 typedef pid_t ac__type_sizeof_;
10977 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10984 rm -f conftest.
$ac_objext
10985 if { (ac_try
="$ac_compile"
10986 case "(($ac_try" in
10987 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10988 *) ac_try_echo=$ac_try;;
10990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10991 (eval "$ac_compile") 2>conftest.er1
10993 grep -v '^ *+' conftest.er1 >conftest.err
10995 cat conftest.err >&5
10996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997 (exit $ac_status); } && {
10998 test -z "$ac_c_werror_flag" ||
10999 test ! -s conftest.err
11000 } && test -s conftest.$ac_objext; then
11003 echo "$as_me: failed program was:" >&5
11004 sed 's/^/| /' conftest.$ac_ext >&5
11006 ac_lo=`expr '(' $ac_mid ')' + 1`
11009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11012 ?*) ac_cv_sizeof_pid_t=$ac_lo;;
11013 '') if test "$ac_cv_type_pid_t" = yes; then
11014 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
11015 See \`config.log
' for more details." >&5
11016 echo "$as_me: error: cannot compute sizeof (pid_t)
11017 See \`config.log' for more details.
" >&2;}
11018 { (exit 77); exit 77; }; }
11020 ac_cv_sizeof_pid_t=0
11024 cat >conftest.$ac_ext <<_ACEOF
11027 cat confdefs.h >>conftest.$ac_ext
11028 cat >>conftest.$ac_ext <<_ACEOF
11029 /* end confdefs.h. */
11030 $ac_includes_default
11031 typedef pid_t ac__type_sizeof_;
11032 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11033 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11035 #include <stdlib.h>
11040 FILE *f = fopen ("conftest.val
", "w
");
11043 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11045 long int i = longval ();
11046 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11048 fprintf (f, "%ld
\n", i);
11052 unsigned long int i = ulongval ();
11053 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11055 fprintf (f, "%lu
\n", i);
11057 return ferror (f) || fclose (f) != 0;
11063 rm -f conftest$ac_exeext
11064 if { (ac_try="$ac_link"
11065 case "(($ac_try" in
11066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11067 *) ac_try_echo=$ac_try;;
11069 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11070 (eval "$ac_link") 2>&5
11072 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11073 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11074 { (case "(($ac_try" in
11075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11076 *) ac_try_echo=$ac_try;;
11078 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11079 (eval "$ac_try") 2>&5
11081 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11082 (exit $ac_status); }; }; then
11083 ac_cv_sizeof_pid_t=`cat conftest.val`
11085 echo "$as_me: program exited with status
$ac_status" >&5
11086 echo "$as_me: failed program was
:" >&5
11087 sed 's/^/| /' conftest.$ac_ext >&5
11089 ( exit $ac_status )
11090 if test "$ac_cv_type_pid_t" = yes; then
11091 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(pid_t
)
11092 See \
`config.log' for more details." >&5
11093 echo "$as_me: error: cannot compute sizeof (pid_t)
11094 See \`config.log
' for more details." >&2;}
11095 { (exit 77); exit 77; }; }
11097 ac_cv_sizeof_pid_t=0
11100 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11104 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
11105 echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; }
11109 cat >>confdefs.h <<_ACEOF
11110 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
11115 { echo "$as_me:$LINENO: checking for long long support" >&5
11116 echo $ECHO_N "checking for long long support... $ECHO_C" >&6; }
11118 cat >conftest.$ac_ext <<_ACEOF
11121 cat confdefs.h >>conftest.$ac_ext
11122 cat >>conftest.$ac_ext <<_ACEOF
11123 /* end confdefs.h. */
11128 long long x; x = (long long)0;
11133 rm -f conftest.$ac_objext
11134 if { (ac_try="$ac_compile"
11135 case "(($ac_try" in
11136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11137 *) ac_try_echo=$ac_try;;
11139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11140 (eval "$ac_compile") 2>conftest.er1
11142 grep -v '^
*+' conftest.er1 >conftest.err
11144 cat conftest.err >&5
11145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146 (exit $ac_status); } && {
11147 test -z "$ac_c_werror_flag" ||
11148 test ! -s conftest.err
11149 } && test -s conftest.$ac_objext; then
11152 cat >>confdefs.h <<\_ACEOF
11153 #define HAVE_LONG_LONG 1
11159 echo "$as_me: failed program was:" >&5
11160 sed 's
/^
/|
/' conftest.$ac_ext >&5
11165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11166 { echo "$as_me:$LINENO: result: $have_long_long" >&5
11167 echo "${ECHO_T}$have_long_long" >&6; }
11168 if test "$have_long_long" = yes ; then
11169 { echo "$as_me:$LINENO: checking for long long" >&5
11170 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
11171 if test "${ac_cv_type_long_long+set}" = set; then
11172 echo $ECHO_N "(cached) $ECHO_C" >&6
11174 cat >conftest.$ac_ext <<_ACEOF
11177 cat confdefs.h >>conftest.$ac_ext
11178 cat >>conftest.$ac_ext <<_ACEOF
11179 /* end confdefs.h. */
11180 $ac_includes_default
11181 typedef long long ac__type_new_;
11185 if ((ac__type_new_ *) 0)
11187 if (sizeof (ac__type_new_))
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
11210 ac_cv_type_long_long=yes
11212 echo "$as_me: failed program was:" >&5
11213 sed 's
/^
/|
/' conftest.$ac_ext >&5
11215 ac_cv_type_long_long=no
11218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11220 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11221 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
11223 # The cast to long int works around a bug in the HP C Compiler
11224 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11225 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11226 # This bug is HP SR number 8606223364.
11227 { echo "$as_me:$LINENO: checking size of long long" >&5
11228 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
11229 if test "${ac_cv_sizeof_long_long+set}" = set; then
11230 echo $ECHO_N "(cached) $ECHO_C" >&6
11232 if test "$cross_compiling" = yes; then
11233 # Depending upon the size, compute the lo and hi bounds.
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_sizeof_;
11245 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11252 rm -f conftest.
$ac_objext
11253 if { (ac_try
="$ac_compile"
11254 case "(($ac_try" in
11255 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11256 *) ac_try_echo=$ac_try;;
11258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11259 (eval "$ac_compile") 2>conftest.er1
11261 grep -v '^ *+' conftest.er1 >conftest.err
11263 cat conftest.err >&5
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); } && {
11266 test -z "$ac_c_werror_flag" ||
11267 test ! -s conftest.err
11268 } && test -s conftest.$ac_objext; then
11271 cat >conftest.$ac_ext <<_ACEOF
11274 cat confdefs.h >>conftest.$ac_ext
11275 cat >>conftest.$ac_ext <<_ACEOF
11276 /* end confdefs.h. */
11277 $ac_includes_default
11278 typedef long long ac__type_sizeof_;
11282 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11289 rm -f conftest.$ac_objext
11290 if { (ac_try="$ac_compile"
11291 case "(($ac_try" in
11292 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11293 *) ac_try_echo
=$ac_try;;
11295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11296 (eval "$ac_compile") 2>conftest.er1
11298 grep -v '^ *+' conftest.er1
>conftest.err
11300 cat conftest.err
>&5
11301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302 (exit $ac_status); } && {
11303 test -z "$ac_c_werror_flag" ||
11304 test ! -s conftest.err
11305 } && test -s conftest.
$ac_objext; then
11306 ac_hi
=$ac_mid; break
11308 echo "$as_me: failed program was:" >&5
11309 sed 's/^/| /' conftest.
$ac_ext >&5
11311 ac_lo
=`expr $ac_mid + 1`
11312 if test $ac_lo -le $ac_mid; then
11316 ac_mid
=`expr 2 '*' $ac_mid + 1`
11319 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11322 echo "$as_me: failed program was:" >&5
11323 sed 's/^/| /' conftest.
$ac_ext >&5
11325 cat >conftest.
$ac_ext <<_ACEOF
11328 cat confdefs.h
>>conftest.
$ac_ext
11329 cat >>conftest.
$ac_ext <<_ACEOF
11330 /* end confdefs.h. */
11331 $ac_includes_default
11332 typedef long long ac__type_sizeof_;
11336 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11343 rm -f conftest.
$ac_objext
11344 if { (ac_try
="$ac_compile"
11345 case "(($ac_try" in
11346 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11347 *) ac_try_echo=$ac_try;;
11349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11350 (eval "$ac_compile") 2>conftest.er1
11352 grep -v '^ *+' conftest.er1 >conftest.err
11354 cat conftest.err >&5
11355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11356 (exit $ac_status); } && {
11357 test -z "$ac_c_werror_flag" ||
11358 test ! -s conftest.err
11359 } && test -s conftest.$ac_objext; then
11362 cat >conftest.$ac_ext <<_ACEOF
11365 cat confdefs.h >>conftest.$ac_ext
11366 cat >>conftest.$ac_ext <<_ACEOF
11367 /* end confdefs.h. */
11368 $ac_includes_default
11369 typedef long long ac__type_sizeof_;
11373 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11380 rm -f conftest.$ac_objext
11381 if { (ac_try="$ac_compile"
11382 case "(($ac_try" in
11383 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11384 *) ac_try_echo
=$ac_try;;
11386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11387 (eval "$ac_compile") 2>conftest.er1
11389 grep -v '^ *+' conftest.er1
>conftest.err
11391 cat conftest.err
>&5
11392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393 (exit $ac_status); } && {
11394 test -z "$ac_c_werror_flag" ||
11395 test ! -s conftest.err
11396 } && test -s conftest.
$ac_objext; then
11397 ac_lo
=$ac_mid; break
11399 echo "$as_me: failed program was:" >&5
11400 sed 's/^/| /' conftest.
$ac_ext >&5
11402 ac_hi
=`expr '(' $ac_mid ')' - 1`
11403 if test $ac_mid -le $ac_hi; then
11407 ac_mid
=`expr 2 '*' $ac_mid`
11410 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11413 echo "$as_me: failed program was:" >&5
11414 sed 's/^/| /' conftest.
$ac_ext >&5
11419 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11422 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11423 # Binary search between lo and hi bounds.
11424 while test "x$ac_lo" != "x$ac_hi"; do
11425 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11426 cat >conftest.
$ac_ext <<_ACEOF
11429 cat confdefs.h
>>conftest.
$ac_ext
11430 cat >>conftest.
$ac_ext <<_ACEOF
11431 /* end confdefs.h. */
11432 $ac_includes_default
11433 typedef long long ac__type_sizeof_;
11437 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11444 rm -f conftest.
$ac_objext
11445 if { (ac_try
="$ac_compile"
11446 case "(($ac_try" in
11447 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11448 *) ac_try_echo=$ac_try;;
11450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11451 (eval "$ac_compile") 2>conftest.er1
11453 grep -v '^ *+' conftest.er1 >conftest.err
11455 cat conftest.err >&5
11456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457 (exit $ac_status); } && {
11458 test -z "$ac_c_werror_flag" ||
11459 test ! -s conftest.err
11460 } && test -s conftest.$ac_objext; then
11463 echo "$as_me: failed program was:" >&5
11464 sed 's/^/| /' conftest.$ac_ext >&5
11466 ac_lo=`expr '(' $ac_mid ')' + 1`
11469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11472 ?*) ac_cv_sizeof_long_long=$ac_lo;;
11473 '') if test "$ac_cv_type_long_long" = yes; then
11474 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11475 See \`config.log
' for more details." >&5
11476 echo "$as_me: error: cannot compute sizeof (long long)
11477 See \`config.log' for more details.
" >&2;}
11478 { (exit 77); exit 77; }; }
11480 ac_cv_sizeof_long_long=0
11484 cat >conftest.$ac_ext <<_ACEOF
11487 cat confdefs.h >>conftest.$ac_ext
11488 cat >>conftest.$ac_ext <<_ACEOF
11489 /* end confdefs.h. */
11490 $ac_includes_default
11491 typedef long long ac__type_sizeof_;
11492 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11493 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11495 #include <stdlib.h>
11500 FILE *f = fopen ("conftest.val
", "w
");
11503 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11505 long int i = longval ();
11506 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11508 fprintf (f, "%ld
\n", i);
11512 unsigned long int i = ulongval ();
11513 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11515 fprintf (f, "%lu
\n", i);
11517 return ferror (f) || fclose (f) != 0;
11523 rm -f conftest$ac_exeext
11524 if { (ac_try="$ac_link"
11525 case "(($ac_try" in
11526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11527 *) ac_try_echo=$ac_try;;
11529 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11530 (eval "$ac_link") 2>&5
11532 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11533 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11534 { (case "(($ac_try" in
11535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11536 *) ac_try_echo=$ac_try;;
11538 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11539 (eval "$ac_try") 2>&5
11541 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11542 (exit $ac_status); }; }; then
11543 ac_cv_sizeof_long_long=`cat conftest.val`
11545 echo "$as_me: program exited with status
$ac_status" >&5
11546 echo "$as_me: failed program was
:" >&5
11547 sed 's/^/| /' conftest.$ac_ext >&5
11549 ( exit $ac_status )
11550 if test "$ac_cv_type_long_long" = yes; then
11551 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long long
)
11552 See \
`config.log' for more details." >&5
11553 echo "$as_me: error: cannot compute sizeof (long long)
11554 See \`config.log
' for more details." >&2;}
11555 { (exit 77); exit 77; }; }
11557 ac_cv_sizeof_long_long=0
11560 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11564 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11565 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
11569 cat >>confdefs.h <<_ACEOF
11570 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11576 { echo "$as_me:$LINENO: checking for long double support" >&5
11577 echo $ECHO_N "checking for long double support... $ECHO_C" >&6; }
11578 have_long_double=no
11579 cat >conftest.$ac_ext <<_ACEOF
11582 cat confdefs.h >>conftest.$ac_ext
11583 cat >>conftest.$ac_ext <<_ACEOF
11584 /* end confdefs.h. */
11589 long double x; x = (long double)0.;
11594 rm -f conftest.$ac_objext
11595 if { (ac_try="$ac_compile"
11596 case "(($ac_try" in
11597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11598 *) ac_try_echo=$ac_try;;
11600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11601 (eval "$ac_compile") 2>conftest.er1
11603 grep -v '^
*+' conftest.er1 >conftest.err
11605 cat conftest.err >&5
11606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607 (exit $ac_status); } && {
11608 test -z "$ac_c_werror_flag" ||
11609 test ! -s conftest.err
11610 } && test -s conftest.$ac_objext; then
11613 cat >>confdefs.h <<\_ACEOF
11614 #define HAVE_LONG_DOUBLE 1
11617 have_long_double=yes
11620 echo "$as_me: failed program was:" >&5
11621 sed 's
/^
/|
/' conftest.$ac_ext >&5
11626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11627 { echo "$as_me:$LINENO: result: $have_long_double" >&5
11628 echo "${ECHO_T}$have_long_double" >&6; }
11629 if test "$have_long_double" = yes ; then
11630 { echo "$as_me:$LINENO: checking for long double" >&5
11631 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
11632 if test "${ac_cv_type_long_double+set}" = set; then
11633 echo $ECHO_N "(cached) $ECHO_C" >&6
11635 cat >conftest.$ac_ext <<_ACEOF
11638 cat confdefs.h >>conftest.$ac_ext
11639 cat >>conftest.$ac_ext <<_ACEOF
11640 /* end confdefs.h. */
11641 $ac_includes_default
11642 typedef long double ac__type_new_;
11646 if ((ac__type_new_ *) 0)
11648 if (sizeof (ac__type_new_))
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
11671 ac_cv_type_long_double=yes
11673 echo "$as_me: failed program was:" >&5
11674 sed 's
/^
/|
/' conftest.$ac_ext >&5
11676 ac_cv_type_long_double=no
11679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11681 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
11682 echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
11684 # The cast to long int works around a bug in the HP C Compiler
11685 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11686 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11687 # This bug is HP SR number 8606223364.
11688 { echo "$as_me:$LINENO: checking size of long double" >&5
11689 echo $ECHO_N "checking size of long double... $ECHO_C" >&6; }
11690 if test "${ac_cv_sizeof_long_double+set}" = set; then
11691 echo $ECHO_N "(cached) $ECHO_C" >&6
11693 if test "$cross_compiling" = yes; then
11694 # Depending upon the size, compute the lo and hi bounds.
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_sizeof_;
11706 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11713 rm -f conftest.
$ac_objext
11714 if { (ac_try
="$ac_compile"
11715 case "(($ac_try" in
11716 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11717 *) ac_try_echo=$ac_try;;
11719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11720 (eval "$ac_compile") 2>conftest.er1
11722 grep -v '^ *+' conftest.er1 >conftest.err
11724 cat conftest.err >&5
11725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726 (exit $ac_status); } && {
11727 test -z "$ac_c_werror_flag" ||
11728 test ! -s conftest.err
11729 } && test -s conftest.$ac_objext; then
11732 cat >conftest.$ac_ext <<_ACEOF
11735 cat confdefs.h >>conftest.$ac_ext
11736 cat >>conftest.$ac_ext <<_ACEOF
11737 /* end confdefs.h. */
11738 $ac_includes_default
11739 typedef long double ac__type_sizeof_;
11743 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11750 rm -f conftest.$ac_objext
11751 if { (ac_try="$ac_compile"
11752 case "(($ac_try" in
11753 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11754 *) ac_try_echo
=$ac_try;;
11756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11757 (eval "$ac_compile") 2>conftest.er1
11759 grep -v '^ *+' conftest.er1
>conftest.err
11761 cat conftest.err
>&5
11762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11763 (exit $ac_status); } && {
11764 test -z "$ac_c_werror_flag" ||
11765 test ! -s conftest.err
11766 } && test -s conftest.
$ac_objext; then
11767 ac_hi
=$ac_mid; break
11769 echo "$as_me: failed program was:" >&5
11770 sed 's/^/| /' conftest.
$ac_ext >&5
11772 ac_lo
=`expr $ac_mid + 1`
11773 if test $ac_lo -le $ac_mid; then
11777 ac_mid
=`expr 2 '*' $ac_mid + 1`
11780 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11783 echo "$as_me: failed program was:" >&5
11784 sed 's/^/| /' conftest.
$ac_ext >&5
11786 cat >conftest.
$ac_ext <<_ACEOF
11789 cat confdefs.h
>>conftest.
$ac_ext
11790 cat >>conftest.
$ac_ext <<_ACEOF
11791 /* end confdefs.h. */
11792 $ac_includes_default
11793 typedef long double ac__type_sizeof_;
11797 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11804 rm -f conftest.
$ac_objext
11805 if { (ac_try
="$ac_compile"
11806 case "(($ac_try" in
11807 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11808 *) ac_try_echo=$ac_try;;
11810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11811 (eval "$ac_compile") 2>conftest.er1
11813 grep -v '^ *+' conftest.er1 >conftest.err
11815 cat conftest.err >&5
11816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817 (exit $ac_status); } && {
11818 test -z "$ac_c_werror_flag" ||
11819 test ! -s conftest.err
11820 } && test -s conftest.$ac_objext; then
11823 cat >conftest.$ac_ext <<_ACEOF
11826 cat confdefs.h >>conftest.$ac_ext
11827 cat >>conftest.$ac_ext <<_ACEOF
11828 /* end confdefs.h. */
11829 $ac_includes_default
11830 typedef long double ac__type_sizeof_;
11834 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11841 rm -f conftest.$ac_objext
11842 if { (ac_try="$ac_compile"
11843 case "(($ac_try" in
11844 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11845 *) ac_try_echo
=$ac_try;;
11847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11848 (eval "$ac_compile") 2>conftest.er1
11850 grep -v '^ *+' conftest.er1
>conftest.err
11852 cat conftest.err
>&5
11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854 (exit $ac_status); } && {
11855 test -z "$ac_c_werror_flag" ||
11856 test ! -s conftest.err
11857 } && test -s conftest.
$ac_objext; then
11858 ac_lo
=$ac_mid; break
11860 echo "$as_me: failed program was:" >&5
11861 sed 's/^/| /' conftest.
$ac_ext >&5
11863 ac_hi
=`expr '(' $ac_mid ')' - 1`
11864 if test $ac_mid -le $ac_hi; then
11868 ac_mid
=`expr 2 '*' $ac_mid`
11871 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11874 echo "$as_me: failed program was:" >&5
11875 sed 's/^/| /' conftest.
$ac_ext >&5
11880 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11883 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11884 # Binary search between lo and hi bounds.
11885 while test "x$ac_lo" != "x$ac_hi"; do
11886 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11887 cat >conftest.
$ac_ext <<_ACEOF
11890 cat confdefs.h
>>conftest.
$ac_ext
11891 cat >>conftest.
$ac_ext <<_ACEOF
11892 /* end confdefs.h. */
11893 $ac_includes_default
11894 typedef long double ac__type_sizeof_;
11898 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11905 rm -f conftest.
$ac_objext
11906 if { (ac_try
="$ac_compile"
11907 case "(($ac_try" in
11908 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11909 *) ac_try_echo=$ac_try;;
11911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11912 (eval "$ac_compile") 2>conftest.er1
11914 grep -v '^ *+' conftest.er1 >conftest.err
11916 cat conftest.err >&5
11917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11918 (exit $ac_status); } && {
11919 test -z "$ac_c_werror_flag" ||
11920 test ! -s conftest.err
11921 } && test -s conftest.$ac_objext; then
11924 echo "$as_me: failed program was:" >&5
11925 sed 's/^/| /' conftest.$ac_ext >&5
11927 ac_lo=`expr '(' $ac_mid ')' + 1`
11930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11933 ?*) ac_cv_sizeof_long_double=$ac_lo;;
11934 '') if test "$ac_cv_type_long_double" = yes; then
11935 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
11936 See \`config.log
' for more details." >&5
11937 echo "$as_me: error: cannot compute sizeof (long double)
11938 See \`config.log' for more details.
" >&2;}
11939 { (exit 77); exit 77; }; }
11941 ac_cv_sizeof_long_double=0
11945 cat >conftest.$ac_ext <<_ACEOF
11948 cat confdefs.h >>conftest.$ac_ext
11949 cat >>conftest.$ac_ext <<_ACEOF
11950 /* end confdefs.h. */
11951 $ac_includes_default
11952 typedef long double ac__type_sizeof_;
11953 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11954 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11956 #include <stdlib.h>
11961 FILE *f = fopen ("conftest.val
", "w
");
11964 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11966 long int i = longval ();
11967 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11969 fprintf (f, "%ld
\n", i);
11973 unsigned long int i = ulongval ();
11974 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11976 fprintf (f, "%lu
\n", i);
11978 return ferror (f) || fclose (f) != 0;
11984 rm -f conftest$ac_exeext
11985 if { (ac_try="$ac_link"
11986 case "(($ac_try" in
11987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11988 *) ac_try_echo=$ac_try;;
11990 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11991 (eval "$ac_link") 2>&5
11993 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11994 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11995 { (case "(($ac_try" in
11996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11997 *) ac_try_echo=$ac_try;;
11999 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12000 (eval "$ac_try") 2>&5
12002 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12003 (exit $ac_status); }; }; then
12004 ac_cv_sizeof_long_double=`cat conftest.val`
12006 echo "$as_me: program exited with status
$ac_status" >&5
12007 echo "$as_me: failed program was
:" >&5
12008 sed 's/^/| /' conftest.$ac_ext >&5
12010 ( exit $ac_status )
12011 if test "$ac_cv_type_long_double" = yes; then
12012 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long double
)
12013 See \
`config.log' for more details." >&5
12014 echo "$as_me: error: cannot compute sizeof (long double)
12015 See \`config.log
' for more details." >&2;}
12016 { (exit 77); exit 77; }; }
12018 ac_cv_sizeof_long_double=0
12021 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12025 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
12026 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; }
12030 cat >>confdefs.h <<_ACEOF
12031 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
12037 { echo "$as_me:$LINENO: checking for _Bool support" >&5
12038 echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; }
12040 cat >conftest.$ac_ext <<_ACEOF
12043 cat confdefs.h >>conftest.$ac_ext
12044 cat >>conftest.$ac_ext <<_ACEOF
12045 /* end confdefs.h. */
12050 _Bool x; x = (_Bool)0;
12055 rm -f conftest.$ac_objext
12056 if { (ac_try="$ac_compile"
12057 case "(($ac_try" in
12058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12059 *) ac_try_echo=$ac_try;;
12061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12062 (eval "$ac_compile") 2>conftest.er1
12064 grep -v '^
*+' conftest.er1 >conftest.err
12066 cat conftest.err >&5
12067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068 (exit $ac_status); } && {
12069 test -z "$ac_c_werror_flag" ||
12070 test ! -s conftest.err
12071 } && test -s conftest.$ac_objext; then
12074 cat >>confdefs.h <<\_ACEOF
12075 #define HAVE_C99_BOOL 1
12081 echo "$as_me: failed program was:" >&5
12082 sed 's
/^
/|
/' conftest.$ac_ext >&5
12087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12088 { echo "$as_me:$LINENO: result: $have_c99_bool" >&5
12089 echo "${ECHO_T}$have_c99_bool" >&6; }
12090 if test "$have_c99_bool" = yes ; then
12091 { echo "$as_me:$LINENO: checking for _Bool" >&5
12092 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
12093 if test "${ac_cv_type__Bool+set}" = set; then
12094 echo $ECHO_N "(cached) $ECHO_C" >&6
12096 cat >conftest.$ac_ext <<_ACEOF
12099 cat confdefs.h >>conftest.$ac_ext
12100 cat >>conftest.$ac_ext <<_ACEOF
12101 /* end confdefs.h. */
12102 $ac_includes_default
12103 typedef _Bool ac__type_new_;
12107 if ((ac__type_new_ *) 0)
12109 if (sizeof (ac__type_new_))
12115 rm -f conftest.$ac_objext
12116 if { (ac_try="$ac_compile"
12117 case "(($ac_try" in
12118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12119 *) ac_try_echo=$ac_try;;
12121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12122 (eval "$ac_compile") 2>conftest.er1
12124 grep -v '^
*+' conftest.er1 >conftest.err
12126 cat conftest.err >&5
12127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); } && {
12129 test -z "$ac_c_werror_flag" ||
12130 test ! -s conftest.err
12131 } && test -s conftest.$ac_objext; then
12132 ac_cv_type__Bool=yes
12134 echo "$as_me: failed program was:" >&5
12135 sed 's
/^
/|
/' conftest.$ac_ext >&5
12137 ac_cv_type__Bool=no
12140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12142 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
12143 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
12145 # The cast to long int works around a bug in the HP C Compiler
12146 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12147 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12148 # This bug is HP SR number 8606223364.
12149 { echo "$as_me:$LINENO: checking size of _Bool" >&5
12150 echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; }
12151 if test "${ac_cv_sizeof__Bool+set}" = set; then
12152 echo $ECHO_N "(cached) $ECHO_C" >&6
12154 if test "$cross_compiling" = yes; then
12155 # Depending upon the size, compute the lo and hi bounds.
12156 cat >conftest.
$ac_ext <<_ACEOF
12159 cat confdefs.h
>>conftest.
$ac_ext
12160 cat >>conftest.
$ac_ext <<_ACEOF
12161 /* end confdefs.h. */
12162 $ac_includes_default
12163 typedef _Bool ac__type_sizeof_;
12167 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12174 rm -f conftest.
$ac_objext
12175 if { (ac_try
="$ac_compile"
12176 case "(($ac_try" in
12177 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12178 *) ac_try_echo=$ac_try;;
12180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12181 (eval "$ac_compile") 2>conftest.er1
12183 grep -v '^ *+' conftest.er1 >conftest.err
12185 cat conftest.err >&5
12186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); } && {
12188 test -z "$ac_c_werror_flag" ||
12189 test ! -s conftest.err
12190 } && test -s conftest.$ac_objext; then
12193 cat >conftest.$ac_ext <<_ACEOF
12196 cat confdefs.h >>conftest.$ac_ext
12197 cat >>conftest.$ac_ext <<_ACEOF
12198 /* end confdefs.h. */
12199 $ac_includes_default
12200 typedef _Bool ac__type_sizeof_;
12204 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12211 rm -f conftest.$ac_objext
12212 if { (ac_try="$ac_compile"
12213 case "(($ac_try" in
12214 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12215 *) ac_try_echo
=$ac_try;;
12217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12218 (eval "$ac_compile") 2>conftest.er1
12220 grep -v '^ *+' conftest.er1
>conftest.err
12222 cat conftest.err
>&5
12223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224 (exit $ac_status); } && {
12225 test -z "$ac_c_werror_flag" ||
12226 test ! -s conftest.err
12227 } && test -s conftest.
$ac_objext; then
12228 ac_hi
=$ac_mid; break
12230 echo "$as_me: failed program was:" >&5
12231 sed 's/^/| /' conftest.
$ac_ext >&5
12233 ac_lo
=`expr $ac_mid + 1`
12234 if test $ac_lo -le $ac_mid; then
12238 ac_mid
=`expr 2 '*' $ac_mid + 1`
12241 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12244 echo "$as_me: failed program was:" >&5
12245 sed 's/^/| /' conftest.
$ac_ext >&5
12247 cat >conftest.
$ac_ext <<_ACEOF
12250 cat confdefs.h
>>conftest.
$ac_ext
12251 cat >>conftest.
$ac_ext <<_ACEOF
12252 /* end confdefs.h. */
12253 $ac_includes_default
12254 typedef _Bool ac__type_sizeof_;
12258 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12265 rm -f conftest.
$ac_objext
12266 if { (ac_try
="$ac_compile"
12267 case "(($ac_try" in
12268 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12269 *) ac_try_echo=$ac_try;;
12271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12272 (eval "$ac_compile") 2>conftest.er1
12274 grep -v '^ *+' conftest.er1 >conftest.err
12276 cat conftest.err >&5
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); } && {
12279 test -z "$ac_c_werror_flag" ||
12280 test ! -s conftest.err
12281 } && test -s conftest.$ac_objext; then
12284 cat >conftest.$ac_ext <<_ACEOF
12287 cat confdefs.h >>conftest.$ac_ext
12288 cat >>conftest.$ac_ext <<_ACEOF
12289 /* end confdefs.h. */
12290 $ac_includes_default
12291 typedef _Bool ac__type_sizeof_;
12295 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12302 rm -f conftest.$ac_objext
12303 if { (ac_try="$ac_compile"
12304 case "(($ac_try" in
12305 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12306 *) ac_try_echo
=$ac_try;;
12308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12309 (eval "$ac_compile") 2>conftest.er1
12311 grep -v '^ *+' conftest.er1
>conftest.err
12313 cat conftest.err
>&5
12314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12315 (exit $ac_status); } && {
12316 test -z "$ac_c_werror_flag" ||
12317 test ! -s conftest.err
12318 } && test -s conftest.
$ac_objext; then
12319 ac_lo
=$ac_mid; break
12321 echo "$as_me: failed program was:" >&5
12322 sed 's/^/| /' conftest.
$ac_ext >&5
12324 ac_hi
=`expr '(' $ac_mid ')' - 1`
12325 if test $ac_mid -le $ac_hi; then
12329 ac_mid
=`expr 2 '*' $ac_mid`
12332 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12335 echo "$as_me: failed program was:" >&5
12336 sed 's/^/| /' conftest.
$ac_ext >&5
12341 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12344 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12345 # Binary search between lo and hi bounds.
12346 while test "x$ac_lo" != "x$ac_hi"; do
12347 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12348 cat >conftest.
$ac_ext <<_ACEOF
12351 cat confdefs.h
>>conftest.
$ac_ext
12352 cat >>conftest.
$ac_ext <<_ACEOF
12353 /* end confdefs.h. */
12354 $ac_includes_default
12355 typedef _Bool ac__type_sizeof_;
12359 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12366 rm -f conftest.
$ac_objext
12367 if { (ac_try
="$ac_compile"
12368 case "(($ac_try" in
12369 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12370 *) ac_try_echo=$ac_try;;
12372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12373 (eval "$ac_compile") 2>conftest.er1
12375 grep -v '^ *+' conftest.er1 >conftest.err
12377 cat conftest.err >&5
12378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379 (exit $ac_status); } && {
12380 test -z "$ac_c_werror_flag" ||
12381 test ! -s conftest.err
12382 } && test -s conftest.$ac_objext; then
12385 echo "$as_me: failed program was:" >&5
12386 sed 's/^/| /' conftest.$ac_ext >&5
12388 ac_lo=`expr '(' $ac_mid ')' + 1`
12391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12394 ?*) ac_cv_sizeof__Bool=$ac_lo;;
12395 '') if test "$ac_cv_type__Bool" = yes; then
12396 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12397 See \`config.log
' for more details." >&5
12398 echo "$as_me: error: cannot compute sizeof (_Bool)
12399 See \`config.log' for more details.
" >&2;}
12400 { (exit 77); exit 77; }; }
12402 ac_cv_sizeof__Bool=0
12406 cat >conftest.$ac_ext <<_ACEOF
12409 cat confdefs.h >>conftest.$ac_ext
12410 cat >>conftest.$ac_ext <<_ACEOF
12411 /* end confdefs.h. */
12412 $ac_includes_default
12413 typedef _Bool ac__type_sizeof_;
12414 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12415 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12417 #include <stdlib.h>
12422 FILE *f = fopen ("conftest.val
", "w
");
12425 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12427 long int i = longval ();
12428 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12430 fprintf (f, "%ld
\n", i);
12434 unsigned long int i = ulongval ();
12435 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12437 fprintf (f, "%lu
\n", i);
12439 return ferror (f) || fclose (f) != 0;
12445 rm -f conftest$ac_exeext
12446 if { (ac_try="$ac_link"
12447 case "(($ac_try" in
12448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12449 *) ac_try_echo=$ac_try;;
12451 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12452 (eval "$ac_link") 2>&5
12454 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12455 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12456 { (case "(($ac_try" in
12457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12458 *) ac_try_echo=$ac_try;;
12460 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12461 (eval "$ac_try") 2>&5
12463 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12464 (exit $ac_status); }; }; then
12465 ac_cv_sizeof__Bool=`cat conftest.val`
12467 echo "$as_me: program exited with status
$ac_status" >&5
12468 echo "$as_me: failed program was
:" >&5
12469 sed 's/^/| /' conftest.$ac_ext >&5
12471 ( exit $ac_status )
12472 if test "$ac_cv_type__Bool" = yes; then
12473 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(_Bool
)
12474 See \
`config.log' for more details." >&5
12475 echo "$as_me: error: cannot compute sizeof (_Bool)
12476 See \`config.log
' for more details." >&2;}
12477 { (exit 77); exit 77; }; }
12479 ac_cv_sizeof__Bool=0
12482 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12486 { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
12487 echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; }
12491 cat >>confdefs.h <<_ACEOF
12492 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
12498 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12499 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12500 if test "${ac_cv_type_uintptr_t+set}" = set; then
12501 echo $ECHO_N "(cached) $ECHO_C" >&6
12503 cat >conftest.$ac_ext <<_ACEOF
12506 cat confdefs.h >>conftest.$ac_ext
12507 cat >>conftest.$ac_ext <<_ACEOF
12508 /* end confdefs.h. */
12509 #ifdef HAVE_STDINT_H
12510 #include <stdint.h>
12513 typedef uintptr_t ac__type_new_;
12517 if ((ac__type_new_ *) 0)
12519 if (sizeof (ac__type_new_))
12525 rm -f conftest.$ac_objext
12526 if { (ac_try="$ac_compile"
12527 case "(($ac_try" in
12528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12529 *) ac_try_echo=$ac_try;;
12531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12532 (eval "$ac_compile") 2>conftest.er1
12534 grep -v '^
*+' conftest.er1 >conftest.err
12536 cat conftest.err >&5
12537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538 (exit $ac_status); } && {
12539 test -z "$ac_c_werror_flag" ||
12540 test ! -s conftest.err
12541 } && test -s conftest.$ac_objext; then
12542 ac_cv_type_uintptr_t=yes
12544 echo "$as_me: failed program was:" >&5
12545 sed 's
/^
/|
/' conftest.$ac_ext >&5
12547 ac_cv_type_uintptr_t=no
12550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12552 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12553 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12554 if test $ac_cv_type_uintptr_t = yes; then
12556 cat >>confdefs.h <<_ACEOF
12557 #define HAVE_UINTPTR_T 1
12560 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12561 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12562 if test "${ac_cv_type_uintptr_t+set}" = set; then
12563 echo $ECHO_N "(cached) $ECHO_C" >&6
12565 cat >conftest.$ac_ext <<_ACEOF
12568 cat confdefs.h >>conftest.$ac_ext
12569 cat >>conftest.$ac_ext <<_ACEOF
12570 /* end confdefs.h. */
12571 $ac_includes_default
12572 typedef uintptr_t ac__type_new_;
12576 if ((ac__type_new_ *) 0)
12578 if (sizeof (ac__type_new_))
12584 rm -f conftest.$ac_objext
12585 if { (ac_try="$ac_compile"
12586 case "(($ac_try" in
12587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12588 *) ac_try_echo=$ac_try;;
12590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12591 (eval "$ac_compile") 2>conftest.er1
12593 grep -v '^
*+' conftest.er1 >conftest.err
12595 cat conftest.err >&5
12596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12597 (exit $ac_status); } && {
12598 test -z "$ac_c_werror_flag" ||
12599 test ! -s conftest.err
12600 } && test -s conftest.$ac_objext; then
12601 ac_cv_type_uintptr_t=yes
12603 echo "$as_me: failed program was:" >&5
12604 sed 's
/^
/|
/' conftest.$ac_ext >&5
12606 ac_cv_type_uintptr_t=no
12609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12611 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12612 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12614 # The cast to long int works around a bug in the HP C Compiler
12615 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12616 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12617 # This bug is HP SR number 8606223364.
12618 { echo "$as_me:$LINENO: checking size of uintptr_t" >&5
12619 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; }
12620 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
12621 echo $ECHO_N "(cached) $ECHO_C" >&6
12623 if test "$cross_compiling" = yes; then
12624 # Depending upon the size, compute the lo and hi bounds.
12625 cat >conftest.
$ac_ext <<_ACEOF
12628 cat confdefs.h
>>conftest.
$ac_ext
12629 cat >>conftest.
$ac_ext <<_ACEOF
12630 /* end confdefs.h. */
12631 $ac_includes_default
12632 typedef uintptr_t ac__type_sizeof_;
12636 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12643 rm -f conftest.
$ac_objext
12644 if { (ac_try
="$ac_compile"
12645 case "(($ac_try" in
12646 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12647 *) ac_try_echo=$ac_try;;
12649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12650 (eval "$ac_compile") 2>conftest.er1
12652 grep -v '^ *+' conftest.er1 >conftest.err
12654 cat conftest.err >&5
12655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656 (exit $ac_status); } && {
12657 test -z "$ac_c_werror_flag" ||
12658 test ! -s conftest.err
12659 } && test -s conftest.$ac_objext; then
12662 cat >conftest.$ac_ext <<_ACEOF
12665 cat confdefs.h >>conftest.$ac_ext
12666 cat >>conftest.$ac_ext <<_ACEOF
12667 /* end confdefs.h. */
12668 $ac_includes_default
12669 typedef uintptr_t ac__type_sizeof_;
12673 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12680 rm -f conftest.$ac_objext
12681 if { (ac_try="$ac_compile"
12682 case "(($ac_try" in
12683 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12684 *) ac_try_echo
=$ac_try;;
12686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12687 (eval "$ac_compile") 2>conftest.er1
12689 grep -v '^ *+' conftest.er1
>conftest.err
12691 cat conftest.err
>&5
12692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693 (exit $ac_status); } && {
12694 test -z "$ac_c_werror_flag" ||
12695 test ! -s conftest.err
12696 } && test -s conftest.
$ac_objext; then
12697 ac_hi
=$ac_mid; break
12699 echo "$as_me: failed program was:" >&5
12700 sed 's/^/| /' conftest.
$ac_ext >&5
12702 ac_lo
=`expr $ac_mid + 1`
12703 if test $ac_lo -le $ac_mid; then
12707 ac_mid
=`expr 2 '*' $ac_mid + 1`
12710 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12713 echo "$as_me: failed program was:" >&5
12714 sed 's/^/| /' conftest.
$ac_ext >&5
12716 cat >conftest.
$ac_ext <<_ACEOF
12719 cat confdefs.h
>>conftest.
$ac_ext
12720 cat >>conftest.
$ac_ext <<_ACEOF
12721 /* end confdefs.h. */
12722 $ac_includes_default
12723 typedef uintptr_t ac__type_sizeof_;
12727 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12734 rm -f conftest.
$ac_objext
12735 if { (ac_try
="$ac_compile"
12736 case "(($ac_try" in
12737 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12738 *) ac_try_echo=$ac_try;;
12740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12741 (eval "$ac_compile") 2>conftest.er1
12743 grep -v '^ *+' conftest.er1 >conftest.err
12745 cat conftest.err >&5
12746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12747 (exit $ac_status); } && {
12748 test -z "$ac_c_werror_flag" ||
12749 test ! -s conftest.err
12750 } && test -s conftest.$ac_objext; then
12753 cat >conftest.$ac_ext <<_ACEOF
12756 cat confdefs.h >>conftest.$ac_ext
12757 cat >>conftest.$ac_ext <<_ACEOF
12758 /* end confdefs.h. */
12759 $ac_includes_default
12760 typedef uintptr_t ac__type_sizeof_;
12764 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12771 rm -f conftest.$ac_objext
12772 if { (ac_try="$ac_compile"
12773 case "(($ac_try" in
12774 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12775 *) ac_try_echo
=$ac_try;;
12777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12778 (eval "$ac_compile") 2>conftest.er1
12780 grep -v '^ *+' conftest.er1
>conftest.err
12782 cat conftest.err
>&5
12783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12784 (exit $ac_status); } && {
12785 test -z "$ac_c_werror_flag" ||
12786 test ! -s conftest.err
12787 } && test -s conftest.
$ac_objext; then
12788 ac_lo
=$ac_mid; break
12790 echo "$as_me: failed program was:" >&5
12791 sed 's/^/| /' conftest.
$ac_ext >&5
12793 ac_hi
=`expr '(' $ac_mid ')' - 1`
12794 if test $ac_mid -le $ac_hi; then
12798 ac_mid
=`expr 2 '*' $ac_mid`
12801 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12804 echo "$as_me: failed program was:" >&5
12805 sed 's/^/| /' conftest.
$ac_ext >&5
12810 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12813 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12814 # Binary search between lo and hi bounds.
12815 while test "x$ac_lo" != "x$ac_hi"; do
12816 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12817 cat >conftest.
$ac_ext <<_ACEOF
12820 cat confdefs.h
>>conftest.
$ac_ext
12821 cat >>conftest.
$ac_ext <<_ACEOF
12822 /* end confdefs.h. */
12823 $ac_includes_default
12824 typedef uintptr_t ac__type_sizeof_;
12828 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12835 rm -f conftest.
$ac_objext
12836 if { (ac_try
="$ac_compile"
12837 case "(($ac_try" in
12838 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12839 *) ac_try_echo=$ac_try;;
12841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12842 (eval "$ac_compile") 2>conftest.er1
12844 grep -v '^ *+' conftest.er1 >conftest.err
12846 cat conftest.err >&5
12847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848 (exit $ac_status); } && {
12849 test -z "$ac_c_werror_flag" ||
12850 test ! -s conftest.err
12851 } && test -s conftest.$ac_objext; then
12854 echo "$as_me: failed program was:" >&5
12855 sed 's/^/| /' conftest.$ac_ext >&5
12857 ac_lo=`expr '(' $ac_mid ')' + 1`
12860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12863 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
12864 '') if test "$ac_cv_type_uintptr_t" = yes; then
12865 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
12866 See \`config.log
' for more details." >&5
12867 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12868 See \`config.log' for more details.
" >&2;}
12869 { (exit 77); exit 77; }; }
12871 ac_cv_sizeof_uintptr_t=0
12875 cat >conftest.$ac_ext <<_ACEOF
12878 cat confdefs.h >>conftest.$ac_ext
12879 cat >>conftest.$ac_ext <<_ACEOF
12880 /* end confdefs.h. */
12881 $ac_includes_default
12882 typedef uintptr_t ac__type_sizeof_;
12883 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12884 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12886 #include <stdlib.h>
12891 FILE *f = fopen ("conftest.val
", "w
");
12894 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12896 long int i = longval ();
12897 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12899 fprintf (f, "%ld
\n", i);
12903 unsigned long int i = ulongval ();
12904 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12906 fprintf (f, "%lu
\n", i);
12908 return ferror (f) || fclose (f) != 0;
12914 rm -f conftest$ac_exeext
12915 if { (ac_try="$ac_link"
12916 case "(($ac_try" in
12917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12918 *) ac_try_echo=$ac_try;;
12920 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12921 (eval "$ac_link") 2>&5
12923 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12924 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12925 { (case "(($ac_try" in
12926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12927 *) ac_try_echo=$ac_try;;
12929 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12930 (eval "$ac_try") 2>&5
12932 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12933 (exit $ac_status); }; }; then
12934 ac_cv_sizeof_uintptr_t=`cat conftest.val`
12936 echo "$as_me: program exited with status
$ac_status" >&5
12937 echo "$as_me: failed program was
:" >&5
12938 sed 's/^/| /' conftest.$ac_ext >&5
12940 ( exit $ac_status )
12941 if test "$ac_cv_type_uintptr_t" = yes; then
12942 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(uintptr_t
)
12943 See \
`config.log' for more details." >&5
12944 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12945 See \`config.log
' for more details." >&2;}
12946 { (exit 77); exit 77; }; }
12948 ac_cv_sizeof_uintptr_t=0
12951 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12955 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
12956 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; }
12960 cat >>confdefs.h <<_ACEOF
12961 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
12969 # Hmph. AC_CHECK_SIZEOF() doesn't include
<sys
/types.h
>.
12970 { echo "$as_me:$LINENO: checking size of off_t" >&5
12971 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
12972 if test "${ac_cv_sizeof_off_t+set}" = set; then
12973 echo $ECHO_N "(cached) $ECHO_C" >&6
12975 if test "$cross_compiling" = yes; then
12976 ac_cv_sizeof_off_t
=4
12978 cat >conftest.
$ac_ext <<_ACEOF
12981 cat confdefs.h
>>conftest.
$ac_ext
12982 cat >>conftest.
$ac_ext <<_ACEOF
12983 /* end confdefs.h. */
12985 #include <sys/types.h>
12988 FILE *f=fopen("conftestval", "w");
12990 fprintf(f, "%d\n", sizeof(off_t));
12994 rm -f conftest
$ac_exeext
12995 if { (ac_try
="$ac_link"
12996 case "(($ac_try" in
12997 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12998 *) ac_try_echo=$ac_try;;
13000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13001 (eval "$ac_link") 2>&5
13003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13005 { (case "(($ac_try" in
13006 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13007 *) ac_try_echo
=$ac_try;;
13009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13010 (eval "$ac_try") 2>&5
13012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013 (exit $ac_status); }; }; then
13014 ac_cv_sizeof_off_t
=`cat conftestval`
13016 echo "$as_me: program exited with status $ac_status" >&5
13017 echo "$as_me: failed program was:" >&5
13018 sed 's/^/| /' conftest.
$ac_ext >&5
13020 ( exit $ac_status )
13021 ac_cv_sizeof_off_t
=0
13023 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13030 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
13031 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
13033 cat >>confdefs.h
<<_ACEOF
13034 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
13038 { echo "$as_me:$LINENO: checking whether to enable large file support" >&5
13039 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; }
13040 if test "$have_long_long" = yes -a \
13041 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
13042 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
13044 cat >>confdefs.h
<<\_ACEOF
13045 #define HAVE_LARGEFILE_SUPPORT 1
13048 { echo "$as_me:$LINENO: result: yes" >&5
13049 echo "${ECHO_T}yes" >&6; }
13051 { echo "$as_me:$LINENO: result: no" >&5
13052 echo "${ECHO_T}no" >&6; }
13055 # AC_CHECK_SIZEOF() doesn't include <time.h>.
13056 { echo "$as_me:$LINENO: checking size of time_t" >&5
13057 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
13058 if test "${ac_cv_sizeof_time_t+set}" = set; then
13059 echo $ECHO_N "(cached) $ECHO_C" >&6
13061 if test "$cross_compiling" = yes; then
13062 ac_cv_sizeof_time_t
=4
13064 cat >conftest.
$ac_ext <<_ACEOF
13067 cat confdefs.h
>>conftest.
$ac_ext
13068 cat >>conftest.
$ac_ext <<_ACEOF
13069 /* end confdefs.h. */
13074 FILE *f=fopen("conftestval", "w");
13076 fprintf(f, "%d\n", sizeof(time_t));
13080 rm -f conftest
$ac_exeext
13081 if { (ac_try
="$ac_link"
13082 case "(($ac_try" in
13083 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13084 *) ac_try_echo=$ac_try;;
13086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13087 (eval "$ac_link") 2>&5
13089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13090 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13091 { (case "(($ac_try" in
13092 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13093 *) ac_try_echo
=$ac_try;;
13095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13096 (eval "$ac_try") 2>&5
13098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099 (exit $ac_status); }; }; then
13100 ac_cv_sizeof_time_t
=`cat conftestval`
13102 echo "$as_me: program exited with status $ac_status" >&5
13103 echo "$as_me: failed program was:" >&5
13104 sed 's/^/| /' conftest.
$ac_ext >&5
13106 ( exit $ac_status )
13107 ac_cv_sizeof_time_t
=0
13109 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13116 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
13117 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
13119 cat >>confdefs.h
<<_ACEOF
13120 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
13125 # if have pthread_t then define SIZEOF_PTHREAD_T
13127 if test "$ac_cv_kpthread" = "yes"
13128 then CC
="$CC -Kpthread"
13129 elif test "$ac_cv_kthread" = "yes"
13130 then CC
="$CC -Kthread"
13131 elif test "$ac_cv_pthread" = "yes"
13132 then CC
="$CC -pthread"
13134 { echo "$as_me:$LINENO: checking for pthread_t" >&5
13135 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
13137 cat >conftest.
$ac_ext <<_ACEOF
13140 cat confdefs.h
>>conftest.
$ac_ext
13141 cat >>conftest.
$ac_ext <<_ACEOF
13142 /* end confdefs.h. */
13143 #include <pthread.h>
13147 pthread_t x; x = *(pthread_t*)0;
13152 rm -f conftest.
$ac_objext
13153 if { (ac_try
="$ac_compile"
13154 case "(($ac_try" in
13155 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13156 *) ac_try_echo=$ac_try;;
13158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13159 (eval "$ac_compile") 2>conftest.er1
13161 grep -v '^ *+' conftest.er1 >conftest.err
13163 cat conftest.err >&5
13164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13165 (exit $ac_status); } && {
13166 test -z "$ac_c_werror_flag" ||
13167 test ! -s conftest.err
13168 } && test -s conftest.$ac_objext; then
13171 echo "$as_me: failed program was:" >&5
13172 sed 's/^/| /' conftest.$ac_ext >&5
13177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13178 { echo "$as_me:$LINENO: result: $have_pthread_t" >&5
13179 echo "${ECHO_T}$have_pthread_t" >&6; }
13180 if test "$have_pthread_t" = yes ; then
13181 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
13182 { echo "$as_me:$LINENO: checking size of pthread_t" >&5
13183 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; }
13184 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
13185 echo $ECHO_N "(cached) $ECHO_C" >&6
13187 if test "$cross_compiling" = yes; then
13188 ac_cv_sizeof_pthread_t=4
13190 cat >conftest.$ac_ext <<_ACEOF
13193 cat confdefs.h >>conftest.$ac_ext
13194 cat >>conftest.$ac_ext <<_ACEOF
13195 /* end confdefs.h. */
13197 #include <pthread.h>
13200 FILE *f=fopen("conftestval", "w");
13202 fprintf(f, "%d\n", sizeof(pthread_t));
13206 rm -f conftest$ac_exeext
13207 if { (ac_try="$ac_link"
13208 case "(($ac_try" in
13209 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13210 *) ac_try_echo
=$ac_try;;
13212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13213 (eval "$ac_link") 2>&5
13215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13217 { (case "(($ac_try" in
13218 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13219 *) ac_try_echo=$ac_try;;
13221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13222 (eval "$ac_try") 2>&5
13224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225 (exit $ac_status); }; }; then
13226 ac_cv_sizeof_pthread_t=`cat conftestval
`
13228 echo "$as_me: program exited with status $ac_status" >&5
13229 echo "$as_me: failed program was:" >&5
13230 sed 's/^/| /' conftest.$ac_ext >&5
13232 ( exit $ac_status )
13233 ac_cv_sizeof_pthread_t=0
13235 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13242 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
13243 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; }
13245 cat >>confdefs.h <<_ACEOF
13246 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
13252 { echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
13253 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6; }
13254 # Check whether --enable-toolbox-glue was given.
13255 if test "${enable_toolbox_glue+set}" = set; then
13256 enableval=$enable_toolbox_glue;
13260 if test -z "$enable_toolbox_glue"
13262 case $ac_sys_system/$ac_sys_release in
13264 enable_toolbox_glue="yes";;
13266 enable_toolbox_glue="no";;
13269 case "$enable_toolbox_glue" in
13271 extra_machdep_objs="Python/mactoolboxglue.o"
13272 extra_undefs="-u _PyMac_Error"
13274 cat >>confdefs.h <<\_ACEOF
13275 #define USE_TOOLBOX_OBJECT_GLUE 1
13280 extra_machdep_objs=""
13284 { echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
13285 echo "${ECHO_T}$enable_toolbox_glue" >&6; }
13289 case $ac_sys_system/$ac_sys_release in
13290 Darwin/[01567]\..*)
13291 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
13294 OTHER_LIBTOOL_OPT=""
13299 case $ac_sys_system/$ac_sys_release in
13300 Darwin/[01567]\..*)
13301 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
13302 if test "${enable_universalsdk}"; then
13305 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch
`"
13307 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13308 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
13310 gcc_version=`gcc
-v 2>&1 |
grep version | cut
-d\
-f3`
13311 if test ${gcc_version} '<' 4.0
13313 LIBTOOL_CRUFT="-lcc_dynamic"
13317 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch
`"
13318 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13319 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
13322 { echo "$as_me:$LINENO: checking for --enable-framework" >&5
13323 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; }
13324 if test "$enable_framework"
13326 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
13327 # -F. is needed to allow linking to the framework while
13328 # in the build location.
13330 cat >>confdefs.h <<\_ACEOF
13331 #define WITH_NEXT_FRAMEWORK 1
13334 { echo "$as_me:$LINENO: result: yes" >&5
13335 echo "${ECHO_T}yes" >&6; }
13337 { echo "$as_me:$LINENO: result: no" >&5
13338 echo "${ECHO_T}no" >&6; }
13341 { echo "$as_me:$LINENO: checking for dyld" >&5
13342 echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
13343 case $ac_sys_system/$ac_sys_release in
13346 cat >>confdefs.h <<\_ACEOF
13347 #define WITH_DYLD 1
13350 { echo "$as_me:$LINENO: result: always on for Darwin" >&5
13351 echo "${ECHO_T}always on for Darwin" >&6; }
13354 { echo "$as_me:$LINENO: result: no" >&5
13355 echo "${ECHO_T}no" >&6; }
13359 # Set info about shared libraries.
13365 # SO is the extension of shared libraries `(including the dot
!)
13366 # -- usually .so, .sl on HP-UX, .dll on Cygwin
13367 { echo "$as_me:$LINENO: checking SO" >&5
13368 echo $ECHO_N "checking SO... $ECHO_C" >&6; }
13371 case $ac_sys_system in
13382 # this might also be a termcap variable, see #610332
13384 echo '====================================================================='
13386 echo '+ WARNING: You have set SO in your environment. +'
13387 echo '+ Do you really mean to change the extension for shared libraries? +'
13388 echo '+ Continuing in 10 seconds to let you to ponder. +'
13390 echo '====================================================================='
13393 { echo "$as_me:$LINENO: result: $SO" >&5
13394 echo "${ECHO_T}$SO" >&6; }
13397 cat >>confdefs.h
<<_ACEOF
13398 #define SHLIB_EXT "$SO"
13401 # LDSHARED is the ld *command* used to create shared library
13402 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
13403 # (Shared libraries in this instance are shared modules to be loaded into
13404 # Python, as opposed to building Python itself as a shared library.)
13405 { echo "$as_me:$LINENO: checking LDSHARED" >&5
13406 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
13407 if test -z "$LDSHARED"
13409 case $ac_sys_system/$ac_sys_release in
13411 BLDSHARED
="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
13412 LDSHARED
="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
13415 BLDSHARED
="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
13416 LDSHARED
="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
13418 IRIX
/5*) LDSHARED
="ld -shared";;
13419 IRIX
*/6*) LDSHARED
="ld ${SGI_ABI} -shared -all";;
13421 if test "$GCC" = "yes"
13422 then LDSHARED
='$(CC) -shared'
13423 else LDSHARED
='$(CC) -G';
13426 if test "$GCC" = "yes"
13427 then LDSHARED
='$(CC) -shared'
13428 else LDSHARED
='ld -b';
13430 OSF
*) LDSHARED
="ld -shared -expect_unresolved \"*\"";;
13432 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
13433 if test "$enable_framework" ; then
13434 # Link against the framework. All externals should be defined.
13435 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13436 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13438 # No framework. Ignore undefined symbols, assuming they come from Python
13439 LDSHARED
="$LDSHARED -undefined suppress"
13441 Darwin
/1.4*|Darwin
/5.
*|Darwin
/6.
*)
13442 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
13443 if test "$enable_framework" ; then
13444 # Link against the framework. All externals should be defined.
13445 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13446 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13448 # No framework, use the Python app as bundle-loader
13449 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13450 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13453 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
13454 # This allows an extension to be used in any Python
13456 if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2
13458 if test "${enable_universalsdk}"; then
13459 LDFLAGS
="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
13461 LDSHARED
='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
13462 BLDSHARED
="$LDSHARED"
13464 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
13465 if test "$enable_framework" ; then
13466 # Link against the framework. All externals should be defined.
13467 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13468 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13470 # No framework, use the Python app as bundle-loader
13471 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13472 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13476 Linux
*|GNU
*|QNX
*) LDSHARED
='$(CC) -shared';;
13477 BSD
/OS
*/4*) LDSHARED
="gcc -shared";;
13479 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13481 LDSHARED
="$CC -shared ${LDFLAGS}"
13483 LDSHARED
="ld -Bshareable ${LDFLAGS}"
13486 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13488 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13491 [01].
* |
2.
[0-7] |
2.
[0-7].
*)
13492 LDSHARED
="ld -Bshareable ${LDFLAGS}"
13495 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13499 NetBSD
*|DragonFly
*) LDSHARED
="cc -shared ${LDFLAGS}";;
13500 OpenUNIX
*|UnixWare
*)
13501 if test "$GCC" = "yes"
13502 then LDSHARED
='$(CC) -shared'
13503 else LDSHARED
='$(CC) -G'
13505 SCO_SV
*) LDSHARED
='$(CC) -Wl,-G,-Bexport';;
13506 Monterey
*) LDSHARED
="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
13507 CYGWIN
*) LDSHARED
="gcc -shared -Wl,--enable-auto-image-base";;
13508 atheos
*) LDSHARED
="gcc -shared";;
13512 { echo "$as_me:$LINENO: result: $LDSHARED" >&5
13513 echo "${ECHO_T}$LDSHARED" >&6; }
13514 BLDSHARED
=${BLDSHARED-$LDSHARED}
13515 # CCSHARED are the C *flags* used to create objects to go into a shared
13516 # library (module) -- this is only needed for a few systems
13517 { echo "$as_me:$LINENO: checking CCSHARED" >&5
13518 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
13519 if test -z "$CCSHARED"
13521 case $ac_sys_system/$ac_sys_release in
13522 SunOS
*) if test "$GCC" = yes;
13523 then CCSHARED
="-fPIC";
13524 elif test `uname -p` = sparc
;
13525 then CCSHARED
="-xcode=pic32";
13526 else CCSHARED
="-Kpic";
13528 hp
*|HP
*) if test "$GCC" = yes;
13529 then CCSHARED
="-fPIC";
13530 else CCSHARED
="+z";
13532 Linux
*|GNU
*) CCSHARED
="-fPIC";;
13533 BSD
/OS
*/4*) CCSHARED
="-fpic";;
13534 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*) CCSHARED
="-fPIC";;
13535 OpenUNIX
*|UnixWare
*)
13536 if test "$GCC" = "yes"
13537 then CCSHARED
="-fPIC"
13538 else CCSHARED
="-KPIC"
13541 if test "$GCC" = "yes"
13542 then CCSHARED
="-fPIC"
13543 else CCSHARED
="-Kpic -belf"
13545 Monterey
*) CCSHARED
="-G";;
13546 IRIX
*/6*) case $CC in
13547 *gcc
*) CCSHARED
="-shared";;
13550 atheos
*) CCSHARED
="-fPIC";;
13553 { echo "$as_me:$LINENO: result: $CCSHARED" >&5
13554 echo "${ECHO_T}$CCSHARED" >&6; }
13555 # LINKFORSHARED are the flags passed to the $(CC) command that links
13556 # the python executable -- this is only needed for a few systems
13557 { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
13558 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
13559 if test -z "$LINKFORSHARED"
13561 case $ac_sys_system/$ac_sys_release in
13562 AIX
*) LINKFORSHARED
='-Wl,-bE:Modules/python.exp -lld';;
13564 LINKFORSHARED
="-Wl,-E -Wl,+s";;
13565 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
13566 BSD
/OS
/4*) LINKFORSHARED
="-Xlinker -export-dynamic";;
13567 Linux
*|GNU
*) LINKFORSHARED
="-Xlinker -export-dynamic";;
13568 # -u libsys_s pulls in all symbols in libsys
13570 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
13572 # not used by the core itself but which needs to be in the core so
13573 # that dynamically loaded extension modules have access to it.
13574 # -prebind is no longer used, because it actually seems to give a
13575 # slowdown in stead of a speedup, maybe due to the large number of
13576 # dynamic loads Python does.
13578 LINKFORSHARED
="$extra_undefs"
13579 if test "$enable_framework"
13581 LINKFORSHARED
="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13583 LINKFORSHARED
="$LINKFORSHARED";;
13584 OpenUNIX
*|UnixWare
*) LINKFORSHARED
="-Wl,-Bexport";;
13585 SCO_SV
*) LINKFORSHARED
="-Wl,-Bexport";;
13586 ReliantUNIX
*) LINKFORSHARED
="-W1 -Blargedynsym";;
13587 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*)
13588 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13590 LINKFORSHARED
="-Wl,--export-dynamic"
13592 SunOS
/5*) case $CC in
13594 if $CC -Xlinker --help 2>&1 |
grep export-dynamic
>/dev
/null
13596 LINKFORSHARED
="-Xlinker --export-dynamic"
13600 if test $enable_shared = "no"
13602 LINKFORSHARED
='-Wl,--out-implib=$(LDLIBRARY)'
13605 # -Wl,-E causes the symbols to be added to the dynamic
13606 # symbol table so that they can be found when a module
13607 # is loaded. -N 2048K causes the stack size to be set
13608 # to 2048 kilobytes so that the stack doesn't overflow
13609 # when running test_compile.py.
13610 LINKFORSHARED
='-Wl,-E -N 2048K';;
13613 { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
13614 echo "${ECHO_T}$LINKFORSHARED" >&6; }
13618 { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
13619 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
13620 if test ! "$LIBRARY" = "$LDLIBRARY"
13622 case $ac_sys_system in
13624 # Cygwin needs CCSHARED when building extension DLLs
13625 # but not when building the interpreter DLL.
13626 CFLAGSFORSHARED
='';;
13628 CFLAGSFORSHARED
='$(CCSHARED)'
13631 { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
13632 echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
13634 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
13635 # library (with --enable-shared).
13636 # For platforms on which shared libraries are not allowed to have unresolved
13637 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
13638 # if it is not required, since it creates a dependency of the shared library
13639 # to LIBS. This, in turn, means that applications linking the shared libpython
13640 # don't need to link LIBS explicitly. The default should be only changed
13641 # on systems where this approach causes problems.
13643 { echo "$as_me:$LINENO: checking SHLIBS" >&5
13644 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
13645 case "$ac_sys_system" in
13649 { echo "$as_me:$LINENO: result: $SHLIBS" >&5
13650 echo "${ECHO_T}$SHLIBS" >&6; }
13653 # checks for libraries
13655 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13656 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13657 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13658 echo $ECHO_N "(cached) $ECHO_C" >&6
13660 ac_check_lib_save_LIBS
=$LIBS
13662 cat >conftest.
$ac_ext <<_ACEOF
13665 cat confdefs.h
>>conftest.
$ac_ext
13666 cat >>conftest.
$ac_ext <<_ACEOF
13667 /* end confdefs.h. */
13669 /* Override any GCC internal prototype to avoid an error.
13670 Use char because int might match the return type of a GCC
13671 builtin and then its argument prototype would still apply. */
13684 rm -f conftest.
$ac_objext conftest
$ac_exeext
13685 if { (ac_try
="$ac_link"
13686 case "(($ac_try" in
13687 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13688 *) ac_try_echo=$ac_try;;
13690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13691 (eval "$ac_link") 2>conftest.er1
13693 grep -v '^ *+' conftest.er1 >conftest.err
13695 cat conftest.err >&5
13696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697 (exit $ac_status); } && {
13698 test -z "$ac_c_werror_flag" ||
13699 test ! -s conftest.err
13700 } && test -s conftest$ac_exeext &&
13701 $as_test_x conftest$ac_exeext; then
13702 ac_cv_lib_dl_dlopen=yes
13704 echo "$as_me: failed program was:" >&5
13705 sed 's/^/| /' conftest.$ac_ext >&5
13707 ac_cv_lib_dl_dlopen=no
13710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13711 conftest$ac_exeext conftest.$ac_ext
13712 LIBS=$ac_check_lib_save_LIBS
13714 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13715 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13716 if test $ac_cv_lib_dl_dlopen = yes; then
13717 cat >>confdefs.h <<_ACEOF
13718 #define HAVE_LIBDL 1
13724 # Dynamic linking for SunOS/Solaris and SYSV
13726 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13727 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
13728 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13729 echo $ECHO_N "(cached) $ECHO_C" >&6
13731 ac_check_lib_save_LIBS=$LIBS
13733 cat >conftest.$ac_ext <<_ACEOF
13736 cat confdefs.h >>conftest.$ac_ext
13737 cat >>conftest.$ac_ext <<_ACEOF
13738 /* end confdefs.h. */
13740 /* Override any GCC internal prototype to avoid an error.
13741 Use char because int might match the return type of a GCC
13742 builtin and then its argument prototype would still apply. */
13750 return shl_load ();
13755 rm -f conftest.$ac_objext conftest$ac_exeext
13756 if { (ac_try="$ac_link"
13757 case "(($ac_try" in
13758 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13759 *) ac_try_echo
=$ac_try;;
13761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13762 (eval "$ac_link") 2>conftest.er1
13764 grep -v '^ *+' conftest.er1
>conftest.err
13766 cat conftest.err
>&5
13767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768 (exit $ac_status); } && {
13769 test -z "$ac_c_werror_flag" ||
13770 test ! -s conftest.err
13771 } && test -s conftest
$ac_exeext &&
13772 $as_test_x conftest
$ac_exeext; then
13773 ac_cv_lib_dld_shl_load
=yes
13775 echo "$as_me: failed program was:" >&5
13776 sed 's/^/| /' conftest.
$ac_ext >&5
13778 ac_cv_lib_dld_shl_load
=no
13781 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13782 conftest
$ac_exeext conftest.
$ac_ext
13783 LIBS
=$ac_check_lib_save_LIBS
13785 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13786 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
13787 if test $ac_cv_lib_dld_shl_load = yes; then
13788 cat >>confdefs.h
<<_ACEOF
13789 #define HAVE_LIBDLD 1
13795 # Dynamic linking for HP-UX
13797 # only check for sem_init if thread support is requested
13798 if test "$with_threads" = "yes" -o -z "$with_threads"; then
13799 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
13800 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
13801 if test "${ac_cv_search_sem_init+set}" = set; then
13802 echo $ECHO_N "(cached) $ECHO_C" >&6
13804 ac_func_search_save_LIBS
=$LIBS
13805 cat >conftest.
$ac_ext <<_ACEOF
13808 cat confdefs.h
>>conftest.
$ac_ext
13809 cat >>conftest.
$ac_ext <<_ACEOF
13810 /* end confdefs.h. */
13812 /* Override any GCC internal prototype to avoid an error.
13813 Use char because int might match the return type of a GCC
13814 builtin and then its argument prototype would still apply. */
13822 return sem_init ();
13827 for ac_lib
in '' pthread rt posix4
; do
13828 if test -z "$ac_lib"; then
13829 ac_res
="none required"
13832 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13834 rm -f conftest.
$ac_objext conftest
$ac_exeext
13835 if { (ac_try
="$ac_link"
13836 case "(($ac_try" in
13837 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13838 *) ac_try_echo=$ac_try;;
13840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13841 (eval "$ac_link") 2>conftest.er1
13843 grep -v '^ *+' conftest.er1 >conftest.err
13845 cat conftest.err >&5
13846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847 (exit $ac_status); } && {
13848 test -z "$ac_c_werror_flag" ||
13849 test ! -s conftest.err
13850 } && test -s conftest$ac_exeext &&
13851 $as_test_x conftest$ac_exeext; then
13852 ac_cv_search_sem_init=$ac_res
13854 echo "$as_me: failed program was:" >&5
13855 sed 's/^/| /' conftest.$ac_ext >&5
13860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13862 if test "${ac_cv_search_sem_init+set}" = set; then
13866 if test "${ac_cv_search_sem_init+set}" = set; then
13869 ac_cv_search_sem_init=no
13871 rm conftest.$ac_ext
13872 LIBS=$ac_func_search_save_LIBS
13874 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
13875 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
13876 ac_res=$ac_cv_search_sem_init
13877 if test "$ac_res" != no; then
13878 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13881 # 'Real Time' functions on Solaris
13882 # posix4 on Solaris 2.6
13883 # pthread (first!) on Linux
13886 # check if we need libintl for locale functions
13887 { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
13888 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
13889 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
13890 echo $ECHO_N "(cached) $ECHO_C" >&6
13892 ac_check_lib_save_LIBS=$LIBS
13893 LIBS="-lintl $LIBS"
13894 cat >conftest.$ac_ext <<_ACEOF
13897 cat confdefs.h >>conftest.$ac_ext
13898 cat >>conftest.$ac_ext <<_ACEOF
13899 /* end confdefs.h. */
13901 /* Override any GCC internal prototype to avoid an error.
13902 Use char because int might match the return type of a GCC
13903 builtin and then its argument prototype would still apply. */
13907 char textdomain ();
13911 return textdomain ();
13916 rm -f conftest.$ac_objext conftest$ac_exeext
13917 if { (ac_try="$ac_link"
13918 case "(($ac_try" in
13919 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13920 *) ac_try_echo
=$ac_try;;
13922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13923 (eval "$ac_link") 2>conftest.er1
13925 grep -v '^ *+' conftest.er1
>conftest.err
13927 cat conftest.err
>&5
13928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929 (exit $ac_status); } && {
13930 test -z "$ac_c_werror_flag" ||
13931 test ! -s conftest.err
13932 } && test -s conftest
$ac_exeext &&
13933 $as_test_x conftest
$ac_exeext; then
13934 ac_cv_lib_intl_textdomain
=yes
13936 echo "$as_me: failed program was:" >&5
13937 sed 's/^/| /' conftest.
$ac_ext >&5
13939 ac_cv_lib_intl_textdomain
=no
13942 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13943 conftest
$ac_exeext conftest.
$ac_ext
13944 LIBS
=$ac_check_lib_save_LIBS
13946 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
13947 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
13948 if test $ac_cv_lib_intl_textdomain = yes; then
13950 cat >>confdefs.h
<<\_ACEOF
13951 #define WITH_LIBINTL 1
13957 # checks for system dependent C++ extensions support
13958 case "$ac_sys_system" in
13959 AIX
*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
13960 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
13961 cat >conftest.
$ac_ext <<_ACEOF
13964 cat confdefs.h
>>conftest.
$ac_ext
13965 cat >>conftest.
$ac_ext <<_ACEOF
13966 /* end confdefs.h. */
13967 #include "/usr/lpp/xlC/include/load.h"
13971 loadAndInit("", 0, "")
13976 rm -f conftest.
$ac_objext conftest
$ac_exeext
13977 if { (ac_try
="$ac_link"
13978 case "(($ac_try" in
13979 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13980 *) ac_try_echo=$ac_try;;
13982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13983 (eval "$ac_link") 2>conftest.er1
13985 grep -v '^ *+' conftest.er1 >conftest.err
13987 cat conftest.err >&5
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); } && {
13990 test -z "$ac_c_werror_flag" ||
13991 test ! -s conftest.err
13992 } && test -s conftest$ac_exeext &&
13993 $as_test_x conftest$ac_exeext; then
13995 cat >>confdefs.h <<\_ACEOF
13996 #define AIX_GENUINE_CPLUSPLUS 1
13999 { echo "$as_me:$LINENO: result: yes" >&5
14000 echo "${ECHO_T}yes" >&6; }
14002 echo "$as_me: failed program was:" >&5
14003 sed 's/^/| /' conftest.$ac_ext >&5
14005 { echo "$as_me:$LINENO: result: no" >&5
14006 echo "${ECHO_T}no" >&6; }
14009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14010 conftest$ac_exeext conftest.$ac_ext;;
14014 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
14015 # BeOS' sockets are stashed in libnet.
14016 { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
14017 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
14018 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
14019 echo $ECHO_N "(cached) $ECHO_C" >&6
14021 ac_check_lib_save_LIBS=$LIBS
14023 cat >conftest.$ac_ext <<_ACEOF
14026 cat confdefs.h >>conftest.$ac_ext
14027 cat >>conftest.$ac_ext <<_ACEOF
14028 /* end confdefs.h. */
14030 /* Override any GCC internal prototype to avoid an error.
14031 Use char because int might match the return type of a GCC
14032 builtin and then its argument prototype would still apply. */
14045 rm -f conftest.$ac_objext conftest$ac_exeext
14046 if { (ac_try="$ac_link"
14047 case "(($ac_try" in
14048 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14049 *) ac_try_echo
=$ac_try;;
14051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14052 (eval "$ac_link") 2>conftest.er1
14054 grep -v '^ *+' conftest.er1
>conftest.err
14056 cat conftest.err
>&5
14057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058 (exit $ac_status); } && {
14059 test -z "$ac_c_werror_flag" ||
14060 test ! -s conftest.err
14061 } && test -s conftest
$ac_exeext &&
14062 $as_test_x conftest
$ac_exeext; then
14063 ac_cv_lib_nsl_t_open
=yes
14065 echo "$as_me: failed program was:" >&5
14066 sed 's/^/| /' conftest.
$ac_ext >&5
14068 ac_cv_lib_nsl_t_open
=no
14071 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14072 conftest
$ac_exeext conftest.
$ac_ext
14073 LIBS
=$ac_check_lib_save_LIBS
14075 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
14076 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
14077 if test $ac_cv_lib_nsl_t_open = yes; then
14081 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14082 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
14083 if test "${ac_cv_lib_socket_socket+set}" = set; then
14084 echo $ECHO_N "(cached) $ECHO_C" >&6
14086 ac_check_lib_save_LIBS
=$LIBS
14087 LIBS
="-lsocket $LIBS $LIBS"
14088 cat >conftest.
$ac_ext <<_ACEOF
14091 cat confdefs.h
>>conftest.
$ac_ext
14092 cat >>conftest.
$ac_ext <<_ACEOF
14093 /* end confdefs.h. */
14095 /* Override any GCC internal prototype to avoid an error.
14096 Use char because int might match the return type of a GCC
14097 builtin and then its argument prototype would still apply. */
14110 rm -f conftest.
$ac_objext conftest
$ac_exeext
14111 if { (ac_try
="$ac_link"
14112 case "(($ac_try" in
14113 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14114 *) ac_try_echo=$ac_try;;
14116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14117 (eval "$ac_link") 2>conftest.er1
14119 grep -v '^ *+' conftest.er1 >conftest.err
14121 cat conftest.err >&5
14122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123 (exit $ac_status); } && {
14124 test -z "$ac_c_werror_flag" ||
14125 test ! -s conftest.err
14126 } && test -s conftest$ac_exeext &&
14127 $as_test_x conftest$ac_exeext; then
14128 ac_cv_lib_socket_socket=yes
14130 echo "$as_me: failed program was:" >&5
14131 sed 's/^/| /' conftest.$ac_ext >&5
14133 ac_cv_lib_socket_socket=no
14136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14137 conftest$ac_exeext conftest.$ac_ext
14138 LIBS=$ac_check_lib_save_LIBS
14140 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
14141 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
14142 if test $ac_cv_lib_socket_socket = yes; then
14143 LIBS="-lsocket $LIBS"
14147 case "$ac_sys_system" in
14149 { echo "$as_me:$LINENO: checking for socket in -lnet" >&5
14150 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6; }
14151 if test "${ac_cv_lib_net_socket+set}" = set; then
14152 echo $ECHO_N "(cached) $ECHO_C" >&6
14154 ac_check_lib_save_LIBS=$LIBS
14155 LIBS="-lnet $LIBS $LIBS"
14156 cat >conftest.$ac_ext <<_ACEOF
14159 cat confdefs.h >>conftest.$ac_ext
14160 cat >>conftest.$ac_ext <<_ACEOF
14161 /* end confdefs.h. */
14163 /* Override any GCC internal prototype to avoid an error.
14164 Use char because int might match the return type of a GCC
14165 builtin and then its argument prototype would still apply. */
14178 rm -f conftest.$ac_objext conftest$ac_exeext
14179 if { (ac_try="$ac_link"
14180 case "(($ac_try" in
14181 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14182 *) ac_try_echo
=$ac_try;;
14184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14185 (eval "$ac_link") 2>conftest.er1
14187 grep -v '^ *+' conftest.er1
>conftest.err
14189 cat conftest.err
>&5
14190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14191 (exit $ac_status); } && {
14192 test -z "$ac_c_werror_flag" ||
14193 test ! -s conftest.err
14194 } && test -s conftest
$ac_exeext &&
14195 $as_test_x conftest
$ac_exeext; then
14196 ac_cv_lib_net_socket
=yes
14198 echo "$as_me: failed program was:" >&5
14199 sed 's/^/| /' conftest.
$ac_ext >&5
14201 ac_cv_lib_net_socket
=no
14204 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14205 conftest
$ac_exeext conftest.
$ac_ext
14206 LIBS
=$ac_check_lib_save_LIBS
14208 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
14209 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6; }
14210 if test $ac_cv_lib_net_socket = yes; then
14217 { echo "$as_me:$LINENO: checking for --with-libs" >&5
14218 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
14220 # Check whether --with-libs was given.
14221 if test "${with_libs+set}" = set; then
14222 withval
=$with_libs;
14223 { echo "$as_me:$LINENO: result: $withval" >&5
14224 echo "${ECHO_T}$withval" >&6; }
14225 LIBS
="$withval $LIBS"
14228 { echo "$as_me:$LINENO: result: no" >&5
14229 echo "${ECHO_T}no" >&6; }
14233 # Check for use of the system libffi library
14234 { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
14235 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
14237 # Check whether --with-system_ffi was given.
14238 if test "${with_system_ffi+set}" = set; then
14239 withval
=$with_system_ffi;
14243 { echo "$as_me:$LINENO: result: $with_system_ffi" >&5
14244 echo "${ECHO_T}$with_system_ffi" >&6; }
14246 # Determine if signalmodule should be used.
14249 { echo "$as_me:$LINENO: checking for --with-signal-module" >&5
14250 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; }
14252 # Check whether --with-signal-module was given.
14253 if test "${with_signal_module+set}" = set; then
14254 withval
=$with_signal_module;
14258 if test -z "$with_signal_module"
14259 then with_signal_module
="yes"
14261 { echo "$as_me:$LINENO: result: $with_signal_module" >&5
14262 echo "${ECHO_T}$with_signal_module" >&6; }
14264 if test "${with_signal_module}" = "yes"; then
14265 USE_SIGNAL_MODULE
=""
14268 USE_SIGNAL_MODULE
="#"
14269 SIGNAL_OBJS
="Parser/intrcheck.o Python/sigcheck.o"
14272 # This is used to generate Setup.config
14274 USE_THREAD_MODULE
=""
14276 { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
14277 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; }
14280 # Check whether --with-dec-threads was given.
14281 if test "${with_dec_threads+set}" = set; then
14282 withval
=$with_dec_threads;
14283 { echo "$as_me:$LINENO: result: $withval" >&5
14284 echo "${ECHO_T}$withval" >&6; }
14286 if test "${with_thread+set}" != set; then
14287 with_thread
="$withval";
14290 { echo "$as_me:$LINENO: result: no" >&5
14291 echo "${ECHO_T}no" >&6; }
14295 # Templates for things AC_DEFINEd more than once.
14296 # For a single AC_DEFINE, no template is needed.
14304 { echo "$as_me:$LINENO: checking for --with-threads" >&5
14305 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; }
14307 # Check whether --with-threads was given.
14308 if test "${with_threads+set}" = set; then
14309 withval
=$with_threads;
14313 # --with-thread is deprecated, but check for it anyway
14315 # Check whether --with-thread was given.
14316 if test "${with_thread+set}" = set; then
14317 withval
=$with_thread; with_threads
=$with_thread
14321 if test -z "$with_threads"
14322 then with_threads
="yes"
14324 { echo "$as_me:$LINENO: result: $with_threads" >&5
14325 echo "${ECHO_T}$with_threads" >&6; }
14328 if test "$with_threads" = "no"
14330 USE_THREAD_MODULE
="#"
14331 elif test "$ac_cv_pthread_is_default" = yes
14333 cat >>confdefs.h
<<\_ACEOF
14334 #define WITH_THREAD 1
14337 # Defining _REENTRANT on system with POSIX threads should not hurt.
14338 cat >>confdefs.h
<<\_ACEOF
14339 #define _REENTRANT 1
14343 THREADOBJ
="Python/thread.o"
14344 elif test "$ac_cv_kpthread" = "yes"
14347 if test "$ac_cv_cxx_thread" = "yes"; then
14348 CXX
="$CXX -Kpthread"
14350 cat >>confdefs.h
<<\_ACEOF
14351 #define WITH_THREAD 1
14355 THREADOBJ
="Python/thread.o"
14356 elif test "$ac_cv_kthread" = "yes"
14359 if test "$ac_cv_cxx_thread" = "yes"; then
14360 CXX
="$CXX -Kthread"
14362 cat >>confdefs.h
<<\_ACEOF
14363 #define WITH_THREAD 1
14367 THREADOBJ
="Python/thread.o"
14368 elif test "$ac_cv_pthread" = "yes"
14371 if test "$ac_cv_cxx_thread" = "yes"; then
14372 CXX
="$CXX -pthread"
14374 cat >>confdefs.h
<<\_ACEOF
14375 #define WITH_THREAD 1
14379 THREADOBJ
="Python/thread.o"
14381 if test ! -z "$with_threads" -a -d "$with_threads"
14382 then LDFLAGS
="$LDFLAGS -L$with_threads"
14384 if test ! -z "$withval" -a -d "$withval"
14385 then LDFLAGS
="$LDFLAGS -L$withval"
14388 # According to the POSIX spec, a pthreads implementation must
14389 # define _POSIX_THREADS in unistd.h. Some apparently don't
14390 # (e.g. gnu pth with pthread emulation)
14391 { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
14392 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; }
14393 cat >conftest.
$ac_ext <<_ACEOF
14396 cat confdefs.h
>>conftest.
$ac_ext
14397 cat >>conftest.
$ac_ext <<_ACEOF
14398 /* end confdefs.h. */
14400 #include <unistd.h>
14401 #ifdef _POSIX_THREADS
14406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14407 $EGREP "yes" >/dev
/null
2>&1; then
14408 unistd_defines_pthreads
=yes
14410 unistd_defines_pthreads
=no
14414 { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
14415 echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
14417 cat >>confdefs.h
<<\_ACEOF
14418 #define _REENTRANT 1
14421 if test "${ac_cv_header_cthreads_h+set}" = set; then
14422 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
14423 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
14424 if test "${ac_cv_header_cthreads_h+set}" = set; then
14425 echo $ECHO_N "(cached) $ECHO_C" >&6
14427 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14428 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
14430 # Is the header compilable?
14431 { echo "$as_me:$LINENO: checking cthreads.h usability" >&5
14432 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; }
14433 cat >conftest.
$ac_ext <<_ACEOF
14436 cat confdefs.h
>>conftest.
$ac_ext
14437 cat >>conftest.
$ac_ext <<_ACEOF
14438 /* end confdefs.h. */
14439 $ac_includes_default
14440 #include <cthreads.h>
14442 rm -f conftest.
$ac_objext
14443 if { (ac_try
="$ac_compile"
14444 case "(($ac_try" in
14445 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14446 *) ac_try_echo=$ac_try;;
14448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14449 (eval "$ac_compile") 2>conftest.er1
14451 grep -v '^ *+' conftest.er1 >conftest.err
14453 cat conftest.err >&5
14454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455 (exit $ac_status); } && {
14456 test -z "$ac_c_werror_flag" ||
14457 test ! -s conftest.err
14458 } && test -s conftest.$ac_objext; then
14459 ac_header_compiler=yes
14461 echo "$as_me: failed program was:" >&5
14462 sed 's/^/| /' conftest.$ac_ext >&5
14464 ac_header_compiler=no
14467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14468 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14469 echo "${ECHO_T}$ac_header_compiler" >&6; }
14471 # Is the header present?
14472 { echo "$as_me:$LINENO: checking cthreads.h presence" >&5
14473 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; }
14474 cat >conftest.$ac_ext <<_ACEOF
14477 cat confdefs.h >>conftest.$ac_ext
14478 cat >>conftest.$ac_ext <<_ACEOF
14479 /* end confdefs.h. */
14480 #include <cthreads.h>
14482 if { (ac_try="$ac_cpp conftest.$ac_ext"
14483 case "(($ac_try" in
14484 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14485 *) ac_try_echo
=$ac_try;;
14487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14488 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14490 grep -v '^ *+' conftest.er1
>conftest.err
14492 cat conftest.err
>&5
14493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14494 (exit $ac_status); } >/dev
/null
&& {
14495 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14496 test ! -s conftest.err
14498 ac_header_preproc
=yes
14500 echo "$as_me: failed program was:" >&5
14501 sed 's/^/| /' conftest.
$ac_ext >&5
14503 ac_header_preproc
=no
14506 rm -f conftest.err conftest.
$ac_ext
14507 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14508 echo "${ECHO_T}$ac_header_preproc" >&6; }
14510 # So? What about this header?
14511 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14513 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14514 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14515 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
14516 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
14517 ac_header_preproc
=yes
14520 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
14521 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
14522 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
14523 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
14524 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
14525 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
14526 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14527 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14528 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
14529 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
14530 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
14531 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
14533 ## ------------------------------------------------ ##
14534 ## Report this to http://www.python.org/python-bugs ##
14535 ## ------------------------------------------------ ##
14537 ) |
sed "s/^/$as_me: WARNING: /" >&2
14540 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
14541 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
14542 if test "${ac_cv_header_cthreads_h+set}" = set; then
14543 echo $ECHO_N "(cached) $ECHO_C" >&6
14545 ac_cv_header_cthreads_h
=$ac_header_preproc
14547 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14548 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
14551 if test $ac_cv_header_cthreads_h = yes; then
14552 cat >>confdefs.h
<<\_ACEOF
14553 #define WITH_THREAD 1
14556 cat >>confdefs.h
<<\_ACEOF
14557 #define C_THREADS 1
14561 cat >>confdefs.h
<<\_ACEOF
14562 #define HURD_C_THREADS 1
14565 LIBS
="$LIBS -lthreads"
14566 THREADOBJ
="Python/thread.o"
14569 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14570 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14571 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
14572 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14573 echo $ECHO_N "(cached) $ECHO_C" >&6
14575 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14576 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
14578 # Is the header compilable?
14579 { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
14580 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; }
14581 cat >conftest.
$ac_ext <<_ACEOF
14584 cat confdefs.h
>>conftest.
$ac_ext
14585 cat >>conftest.
$ac_ext <<_ACEOF
14586 /* end confdefs.h. */
14587 $ac_includes_default
14588 #include <mach/cthreads.h>
14590 rm -f conftest.
$ac_objext
14591 if { (ac_try
="$ac_compile"
14592 case "(($ac_try" in
14593 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14594 *) ac_try_echo=$ac_try;;
14596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14597 (eval "$ac_compile") 2>conftest.er1
14599 grep -v '^ *+' conftest.er1 >conftest.err
14601 cat conftest.err >&5
14602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14603 (exit $ac_status); } && {
14604 test -z "$ac_c_werror_flag" ||
14605 test ! -s conftest.err
14606 } && test -s conftest.$ac_objext; then
14607 ac_header_compiler=yes
14609 echo "$as_me: failed program was:" >&5
14610 sed 's/^/| /' conftest.$ac_ext >&5
14612 ac_header_compiler=no
14615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14616 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14617 echo "${ECHO_T}$ac_header_compiler" >&6; }
14619 # Is the header present?
14620 { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
14621 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; }
14622 cat >conftest.$ac_ext <<_ACEOF
14625 cat confdefs.h >>conftest.$ac_ext
14626 cat >>conftest.$ac_ext <<_ACEOF
14627 /* end confdefs.h. */
14628 #include <mach/cthreads.h>
14630 if { (ac_try="$ac_cpp conftest.$ac_ext"
14631 case "(($ac_try" in
14632 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14633 *) ac_try_echo
=$ac_try;;
14635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14636 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14638 grep -v '^ *+' conftest.er1
>conftest.err
14640 cat conftest.err
>&5
14641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642 (exit $ac_status); } >/dev
/null
&& {
14643 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14644 test ! -s conftest.err
14646 ac_header_preproc
=yes
14648 echo "$as_me: failed program was:" >&5
14649 sed 's/^/| /' conftest.
$ac_ext >&5
14651 ac_header_preproc
=no
14654 rm -f conftest.err conftest.
$ac_ext
14655 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14656 echo "${ECHO_T}$ac_header_preproc" >&6; }
14658 # So? What about this header?
14659 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14661 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14662 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14663 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
14664 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
14665 ac_header_preproc
=yes
14668 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
14669 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
14670 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
14671 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
14672 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
14673 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
14674 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14675 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14676 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
14677 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
14678 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
14679 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
14681 ## ------------------------------------------------ ##
14682 ## Report this to http://www.python.org/python-bugs ##
14683 ## ------------------------------------------------ ##
14685 ) |
sed "s/^/$as_me: WARNING: /" >&2
14688 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14689 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
14690 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14691 echo $ECHO_N "(cached) $ECHO_C" >&6
14693 ac_cv_header_mach_cthreads_h
=$ac_header_preproc
14695 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14696 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
14699 if test $ac_cv_header_mach_cthreads_h = yes; then
14700 cat >>confdefs.h
<<\_ACEOF
14701 #define WITH_THREAD 1
14704 cat >>confdefs.h
<<\_ACEOF
14705 #define C_THREADS 1
14709 cat >>confdefs.h
<<\_ACEOF
14710 #define MACH_C_THREADS 1
14713 THREADOBJ
="Python/thread.o"
14716 { echo "$as_me:$LINENO: checking for --with-pth" >&5
14717 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; }
14719 # Check whether --with-pth was given.
14720 if test "${with_pth+set}" = set; then
14721 withval
=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5
14722 echo "${ECHO_T}$withval" >&6; }
14723 cat >>confdefs.h
<<\_ACEOF
14724 #define WITH_THREAD 1
14728 cat >>confdefs.h
<<\_ACEOF
14733 THREADOBJ
="Python/thread.o"
14735 { echo "$as_me:$LINENO: result: no" >&5
14736 echo "${ECHO_T}no" >&6; }
14738 # Just looking for pthread_create in libpthread is not enough:
14739 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
14740 # So we really have to include pthread.h, and then link.
14742 LIBS
="$LIBS -lpthread"
14743 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
14744 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
14745 cat >conftest.
$ac_ext <<_ACEOF
14748 cat confdefs.h
>>conftest.
$ac_ext
14749 cat >>conftest.
$ac_ext <<_ACEOF
14750 /* end confdefs.h. */
14751 #include <pthread.h>
14753 void * start_routine (void *arg) { exit (0); }
14758 pthread_create (NULL, NULL, start_routine, NULL)
14763 rm -f conftest.
$ac_objext conftest
$ac_exeext
14764 if { (ac_try
="$ac_link"
14765 case "(($ac_try" in
14766 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14767 *) ac_try_echo=$ac_try;;
14769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14770 (eval "$ac_link") 2>conftest.er1
14772 grep -v '^ *+' conftest.er1 >conftest.err
14774 cat conftest.err >&5
14775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14776 (exit $ac_status); } && {
14777 test -z "$ac_c_werror_flag" ||
14778 test ! -s conftest.err
14779 } && test -s conftest$ac_exeext &&
14780 $as_test_x conftest$ac_exeext; then
14782 { echo "$as_me:$LINENO: result: yes" >&5
14783 echo "${ECHO_T}yes" >&6; }
14784 cat >>confdefs.h <<\_ACEOF
14785 #define WITH_THREAD 1
14789 THREADOBJ="Python/thread.o"
14791 echo "$as_me: failed program was:" >&5
14792 sed 's/^/| /' conftest.$ac_ext >&5
14796 { echo "$as_me:$LINENO: checking for pthread_detach" >&5
14797 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; }
14798 if test "${ac_cv_func_pthread_detach+set}" = set; then
14799 echo $ECHO_N "(cached) $ECHO_C" >&6
14801 cat >conftest.$ac_ext <<_ACEOF
14804 cat confdefs.h >>conftest.$ac_ext
14805 cat >>conftest.$ac_ext <<_ACEOF
14806 /* end confdefs.h. */
14807 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
14808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14809 #define pthread_detach innocuous_pthread_detach
14811 /* System header to define __stub macros and hopefully few prototypes,
14812 which can conflict with char pthread_detach (); below.
14813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14814 <limits.h> exists even on freestanding compilers. */
14817 # include <limits.h>
14819 # include <assert.h>
14822 #undef pthread_detach
14824 /* Override any GCC internal prototype to avoid an error.
14825 Use char because int might match the return type of a GCC
14826 builtin and then its argument prototype would still apply. */
14830 char pthread_detach ();
14831 /* The GNU C library defines this for functions which it implements
14832 to always fail with ENOSYS. Some functions are actually named
14833 something starting with __ and the normal name is an alias. */
14834 #if defined __stub_pthread_detach || defined __stub___pthread_detach
14841 return pthread_detach ();
14846 rm -f conftest.$ac_objext conftest$ac_exeext
14847 if { (ac_try="$ac_link"
14848 case "(($ac_try" in
14849 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14850 *) ac_try_echo
=$ac_try;;
14852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14853 (eval "$ac_link") 2>conftest.er1
14855 grep -v '^ *+' conftest.er1
>conftest.err
14857 cat conftest.err
>&5
14858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859 (exit $ac_status); } && {
14860 test -z "$ac_c_werror_flag" ||
14861 test ! -s conftest.err
14862 } && test -s conftest
$ac_exeext &&
14863 $as_test_x conftest
$ac_exeext; then
14864 ac_cv_func_pthread_detach
=yes
14866 echo "$as_me: failed program was:" >&5
14867 sed 's/^/| /' conftest.
$ac_ext >&5
14869 ac_cv_func_pthread_detach
=no
14872 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14873 conftest
$ac_exeext conftest.
$ac_ext
14875 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
14876 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; }
14877 if test $ac_cv_func_pthread_detach = yes; then
14878 cat >>confdefs.h
<<\_ACEOF
14879 #define WITH_THREAD 1
14883 THREADOBJ
="Python/thread.o"
14886 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14887 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
14888 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
14889 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14890 echo $ECHO_N "(cached) $ECHO_C" >&6
14892 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
14893 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
14895 # Is the header compilable?
14896 { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
14897 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; }
14898 cat >conftest.
$ac_ext <<_ACEOF
14901 cat confdefs.h
>>conftest.
$ac_ext
14902 cat >>conftest.
$ac_ext <<_ACEOF
14903 /* end confdefs.h. */
14904 $ac_includes_default
14905 #include <atheos/threads.h>
14907 rm -f conftest.
$ac_objext
14908 if { (ac_try
="$ac_compile"
14909 case "(($ac_try" in
14910 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14911 *) ac_try_echo=$ac_try;;
14913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14914 (eval "$ac_compile") 2>conftest.er1
14916 grep -v '^ *+' conftest.er1 >conftest.err
14918 cat conftest.err >&5
14919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920 (exit $ac_status); } && {
14921 test -z "$ac_c_werror_flag" ||
14922 test ! -s conftest.err
14923 } && test -s conftest.$ac_objext; then
14924 ac_header_compiler=yes
14926 echo "$as_me: failed program was:" >&5
14927 sed 's/^/| /' conftest.$ac_ext >&5
14929 ac_header_compiler=no
14932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14933 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14934 echo "${ECHO_T}$ac_header_compiler" >&6; }
14936 # Is the header present?
14937 { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
14938 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; }
14939 cat >conftest.$ac_ext <<_ACEOF
14942 cat confdefs.h >>conftest.$ac_ext
14943 cat >>conftest.$ac_ext <<_ACEOF
14944 /* end confdefs.h. */
14945 #include <atheos/threads.h>
14947 if { (ac_try="$ac_cpp conftest.$ac_ext"
14948 case "(($ac_try" in
14949 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14950 *) ac_try_echo
=$ac_try;;
14952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14953 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14955 grep -v '^ *+' conftest.er1
>conftest.err
14957 cat conftest.err
>&5
14958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14959 (exit $ac_status); } >/dev
/null
&& {
14960 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14961 test ! -s conftest.err
14963 ac_header_preproc
=yes
14965 echo "$as_me: failed program was:" >&5
14966 sed 's/^/| /' conftest.
$ac_ext >&5
14968 ac_header_preproc
=no
14971 rm -f conftest.err conftest.
$ac_ext
14972 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14973 echo "${ECHO_T}$ac_header_preproc" >&6; }
14975 # So? What about this header?
14976 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14978 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14979 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14980 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
14981 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
14982 ac_header_preproc
=yes
14985 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
14986 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
14987 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
14988 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
14989 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
14990 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
14991 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
14992 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14993 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
14994 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
14995 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
14996 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
14998 ## ------------------------------------------------ ##
14999 ## Report this to http://www.python.org/python-bugs ##
15000 ## ------------------------------------------------ ##
15002 ) |
sed "s/^/$as_me: WARNING: /" >&2
15005 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
15006 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
15007 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
15008 echo $ECHO_N "(cached) $ECHO_C" >&6
15010 ac_cv_header_atheos_threads_h
=$ac_header_preproc
15012 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
15013 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
15016 if test $ac_cv_header_atheos_threads_h = yes; then
15017 cat >>confdefs.h
<<\_ACEOF
15018 #define WITH_THREAD 1
15022 cat >>confdefs.h
<<\_ACEOF
15023 #define ATHEOS_THREADS 1
15026 THREADOBJ
="Python/thread.o"
15029 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
15030 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
15031 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
15032 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
15033 echo $ECHO_N "(cached) $ECHO_C" >&6
15035 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
15036 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
15038 # Is the header compilable?
15039 { echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
15040 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6; }
15041 cat >conftest.
$ac_ext <<_ACEOF
15044 cat confdefs.h
>>conftest.
$ac_ext
15045 cat >>conftest.
$ac_ext <<_ACEOF
15046 /* end confdefs.h. */
15047 $ac_includes_default
15048 #include <kernel/OS.h>
15050 rm -f conftest.
$ac_objext
15051 if { (ac_try
="$ac_compile"
15052 case "(($ac_try" in
15053 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15054 *) ac_try_echo=$ac_try;;
15056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15057 (eval "$ac_compile") 2>conftest.er1
15059 grep -v '^ *+' conftest.er1 >conftest.err
15061 cat conftest.err >&5
15062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063 (exit $ac_status); } && {
15064 test -z "$ac_c_werror_flag" ||
15065 test ! -s conftest.err
15066 } && test -s conftest.$ac_objext; then
15067 ac_header_compiler=yes
15069 echo "$as_me: failed program was:" >&5
15070 sed 's/^/| /' conftest.$ac_ext >&5
15072 ac_header_compiler=no
15075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15076 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15077 echo "${ECHO_T}$ac_header_compiler" >&6; }
15079 # Is the header present?
15080 { echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
15081 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6; }
15082 cat >conftest.$ac_ext <<_ACEOF
15085 cat confdefs.h >>conftest.$ac_ext
15086 cat >>conftest.$ac_ext <<_ACEOF
15087 /* end confdefs.h. */
15088 #include <kernel/OS.h>
15090 if { (ac_try="$ac_cpp conftest.$ac_ext"
15091 case "(($ac_try" in
15092 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15093 *) ac_try_echo
=$ac_try;;
15095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15096 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15098 grep -v '^ *+' conftest.er1
>conftest.err
15100 cat conftest.err
>&5
15101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102 (exit $ac_status); } >/dev
/null
&& {
15103 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15104 test ! -s conftest.err
15106 ac_header_preproc
=yes
15108 echo "$as_me: failed program was:" >&5
15109 sed 's/^/| /' conftest.
$ac_ext >&5
15111 ac_header_preproc
=no
15114 rm -f conftest.err conftest.
$ac_ext
15115 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15116 echo "${ECHO_T}$ac_header_preproc" >&6; }
15118 # So? What about this header?
15119 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15121 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
15122 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15123 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
15124 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
15125 ac_header_preproc
=yes
15128 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
15129 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
15130 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
15131 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
15132 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
15133 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
15134 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
15135 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
15136 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
15137 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
15138 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
15139 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
15141 ## ------------------------------------------------ ##
15142 ## Report this to http://www.python.org/python-bugs ##
15143 ## ------------------------------------------------ ##
15145 ) |
sed "s/^/$as_me: WARNING: /" >&2
15148 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
15149 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
15150 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
15151 echo $ECHO_N "(cached) $ECHO_C" >&6
15153 ac_cv_header_kernel_OS_h
=$ac_header_preproc
15155 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
15156 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
15159 if test $ac_cv_header_kernel_OS_h = yes; then
15160 cat >>confdefs.h
<<\_ACEOF
15161 #define WITH_THREAD 1
15165 cat >>confdefs.h
<<\_ACEOF
15166 #define BEOS_THREADS 1
15169 THREADOBJ
="Python/thread.o"
15172 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
15173 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
15174 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
15175 echo $ECHO_N "(cached) $ECHO_C" >&6
15177 ac_check_lib_save_LIBS
=$LIBS
15178 LIBS
="-lpthreads $LIBS"
15179 cat >conftest.
$ac_ext <<_ACEOF
15182 cat confdefs.h
>>conftest.
$ac_ext
15183 cat >>conftest.
$ac_ext <<_ACEOF
15184 /* end confdefs.h. */
15186 /* Override any GCC internal prototype to avoid an error.
15187 Use char because int might match the return type of a GCC
15188 builtin and then its argument prototype would still apply. */
15192 char pthread_create ();
15196 return pthread_create ();
15201 rm -f conftest.
$ac_objext conftest
$ac_exeext
15202 if { (ac_try
="$ac_link"
15203 case "(($ac_try" in
15204 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15205 *) ac_try_echo=$ac_try;;
15207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15208 (eval "$ac_link") 2>conftest.er1
15210 grep -v '^ *+' conftest.er1 >conftest.err
15212 cat conftest.err >&5
15213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214 (exit $ac_status); } && {
15215 test -z "$ac_c_werror_flag" ||
15216 test ! -s conftest.err
15217 } && test -s conftest$ac_exeext &&
15218 $as_test_x conftest$ac_exeext; then
15219 ac_cv_lib_pthreads_pthread_create=yes
15221 echo "$as_me: failed program was:" >&5
15222 sed 's/^/| /' conftest.$ac_ext >&5
15224 ac_cv_lib_pthreads_pthread_create=no
15227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15228 conftest$ac_exeext conftest.$ac_ext
15229 LIBS=$ac_check_lib_save_LIBS
15231 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
15232 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
15233 if test $ac_cv_lib_pthreads_pthread_create = yes; then
15234 cat >>confdefs.h <<\_ACEOF
15235 #define WITH_THREAD 1
15239 LIBS="$LIBS -lpthreads"
15240 THREADOBJ="Python/thread.o"
15243 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
15244 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
15245 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
15246 echo $ECHO_N "(cached) $ECHO_C" >&6
15248 ac_check_lib_save_LIBS=$LIBS
15250 cat >conftest.$ac_ext <<_ACEOF
15253 cat confdefs.h >>conftest.$ac_ext
15254 cat >>conftest.$ac_ext <<_ACEOF
15255 /* end confdefs.h. */
15257 /* Override any GCC internal prototype to avoid an error.
15258 Use char because int might match the return type of a GCC
15259 builtin and then its argument prototype would still apply. */
15263 char pthread_create ();
15267 return pthread_create ();
15272 rm -f conftest.$ac_objext conftest$ac_exeext
15273 if { (ac_try="$ac_link"
15274 case "(($ac_try" in
15275 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15276 *) ac_try_echo
=$ac_try;;
15278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15279 (eval "$ac_link") 2>conftest.er1
15281 grep -v '^ *+' conftest.er1
>conftest.err
15283 cat conftest.err
>&5
15284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15285 (exit $ac_status); } && {
15286 test -z "$ac_c_werror_flag" ||
15287 test ! -s conftest.err
15288 } && test -s conftest
$ac_exeext &&
15289 $as_test_x conftest
$ac_exeext; then
15290 ac_cv_lib_c_r_pthread_create
=yes
15292 echo "$as_me: failed program was:" >&5
15293 sed 's/^/| /' conftest.
$ac_ext >&5
15295 ac_cv_lib_c_r_pthread_create
=no
15298 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15299 conftest
$ac_exeext conftest.
$ac_ext
15300 LIBS
=$ac_check_lib_save_LIBS
15302 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
15303 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
15304 if test $ac_cv_lib_c_r_pthread_create = yes; then
15305 cat >>confdefs.h
<<\_ACEOF
15306 #define WITH_THREAD 1
15311 THREADOBJ
="Python/thread.o"
15314 { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
15315 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
15316 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
15317 echo $ECHO_N "(cached) $ECHO_C" >&6
15319 ac_check_lib_save_LIBS
=$LIBS
15320 LIBS
="-lpthread $LIBS"
15321 cat >conftest.
$ac_ext <<_ACEOF
15324 cat confdefs.h
>>conftest.
$ac_ext
15325 cat >>conftest.
$ac_ext <<_ACEOF
15326 /* end confdefs.h. */
15328 /* Override any GCC internal prototype to avoid an error.
15329 Use char because int might match the return type of a GCC
15330 builtin and then its argument prototype would still apply. */
15334 char __pthread_create_system ();
15338 return __pthread_create_system ();
15343 rm -f conftest.
$ac_objext conftest
$ac_exeext
15344 if { (ac_try
="$ac_link"
15345 case "(($ac_try" in
15346 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15347 *) ac_try_echo=$ac_try;;
15349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15350 (eval "$ac_link") 2>conftest.er1
15352 grep -v '^ *+' conftest.er1 >conftest.err
15354 cat conftest.err >&5
15355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15356 (exit $ac_status); } && {
15357 test -z "$ac_c_werror_flag" ||
15358 test ! -s conftest.err
15359 } && test -s conftest$ac_exeext &&
15360 $as_test_x conftest$ac_exeext; then
15361 ac_cv_lib_pthread___pthread_create_system=yes
15363 echo "$as_me: failed program was:" >&5
15364 sed 's/^/| /' conftest.$ac_ext >&5
15366 ac_cv_lib_pthread___pthread_create_system=no
15369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15370 conftest$ac_exeext conftest.$ac_ext
15371 LIBS=$ac_check_lib_save_LIBS
15373 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
15374 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
15375 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
15376 cat >>confdefs.h <<\_ACEOF
15377 #define WITH_THREAD 1
15381 LIBS="$LIBS -lpthread"
15382 THREADOBJ="Python/thread.o"
15385 { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
15386 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
15387 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
15388 echo $ECHO_N "(cached) $ECHO_C" >&6
15390 ac_check_lib_save_LIBS=$LIBS
15392 cat >conftest.$ac_ext <<_ACEOF
15395 cat confdefs.h >>conftest.$ac_ext
15396 cat >>conftest.$ac_ext <<_ACEOF
15397 /* end confdefs.h. */
15399 /* Override any GCC internal prototype to avoid an error.
15400 Use char because int might match the return type of a GCC
15401 builtin and then its argument prototype would still apply. */
15405 char pthread_create ();
15409 return pthread_create ();
15414 rm -f conftest.$ac_objext conftest$ac_exeext
15415 if { (ac_try="$ac_link"
15416 case "(($ac_try" in
15417 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15418 *) ac_try_echo
=$ac_try;;
15420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15421 (eval "$ac_link") 2>conftest.er1
15423 grep -v '^ *+' conftest.er1
>conftest.err
15425 cat conftest.err
>&5
15426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15427 (exit $ac_status); } && {
15428 test -z "$ac_c_werror_flag" ||
15429 test ! -s conftest.err
15430 } && test -s conftest
$ac_exeext &&
15431 $as_test_x conftest
$ac_exeext; then
15432 ac_cv_lib_cma_pthread_create
=yes
15434 echo "$as_me: failed program was:" >&5
15435 sed 's/^/| /' conftest.
$ac_ext >&5
15437 ac_cv_lib_cma_pthread_create
=no
15440 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15441 conftest
$ac_exeext conftest.
$ac_ext
15442 LIBS
=$ac_check_lib_save_LIBS
15444 { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
15445 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
15446 if test $ac_cv_lib_cma_pthread_create = yes; then
15447 cat >>confdefs.h
<<\_ACEOF
15448 #define WITH_THREAD 1
15453 THREADOBJ
="Python/thread.o"
15456 USE_THREAD_MODULE
="#"
15476 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15477 conftest
$ac_exeext conftest.
$ac_ext
15487 { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
15488 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
15489 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
15490 echo $ECHO_N "(cached) $ECHO_C" >&6
15492 ac_check_lib_save_LIBS
=$LIBS
15494 cat >conftest.
$ac_ext <<_ACEOF
15497 cat confdefs.h
>>conftest.
$ac_ext
15498 cat >>conftest.
$ac_ext <<_ACEOF
15499 /* end confdefs.h. */
15501 /* Override any GCC internal prototype to avoid an error.
15502 Use char because int might match the return type of a GCC
15503 builtin and then its argument prototype would still apply. */
15511 return usconfig ();
15516 rm -f conftest.
$ac_objext conftest
$ac_exeext
15517 if { (ac_try
="$ac_link"
15518 case "(($ac_try" in
15519 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15520 *) ac_try_echo=$ac_try;;
15522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15523 (eval "$ac_link") 2>conftest.er1
15525 grep -v '^ *+' conftest.er1 >conftest.err
15527 cat conftest.err >&5
15528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15529 (exit $ac_status); } && {
15530 test -z "$ac_c_werror_flag" ||
15531 test ! -s conftest.err
15532 } && test -s conftest$ac_exeext &&
15533 $as_test_x conftest$ac_exeext; then
15534 ac_cv_lib_mpc_usconfig=yes
15536 echo "$as_me: failed program was:" >&5
15537 sed 's/^/| /' conftest.$ac_ext >&5
15539 ac_cv_lib_mpc_usconfig=no
15542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15543 conftest$ac_exeext conftest.$ac_ext
15544 LIBS=$ac_check_lib_save_LIBS
15546 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
15547 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
15548 if test $ac_cv_lib_mpc_usconfig = yes; then
15549 cat >>confdefs.h <<\_ACEOF
15550 #define WITH_THREAD 1
15554 THREADOBJ="Python/thread.o"
15555 USE_THREAD_MODULE=""
15559 if test "$posix_threads" != "yes"; then
15560 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
15561 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
15562 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
15563 echo $ECHO_N "(cached) $ECHO_C" >&6
15565 ac_check_lib_save_LIBS=$LIBS
15566 LIBS="-lthread $LIBS"
15567 cat >conftest.$ac_ext <<_ACEOF
15570 cat confdefs.h >>conftest.$ac_ext
15571 cat >>conftest.$ac_ext <<_ACEOF
15572 /* end confdefs.h. */
15574 /* Override any GCC internal prototype to avoid an error.
15575 Use char because int might match the return type of a GCC
15576 builtin and then its argument prototype would still apply. */
15580 char thr_create ();
15584 return thr_create ();
15589 rm -f conftest.$ac_objext conftest$ac_exeext
15590 if { (ac_try="$ac_link"
15591 case "(($ac_try" in
15592 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15593 *) ac_try_echo
=$ac_try;;
15595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15596 (eval "$ac_link") 2>conftest.er1
15598 grep -v '^ *+' conftest.er1
>conftest.err
15600 cat conftest.err
>&5
15601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602 (exit $ac_status); } && {
15603 test -z "$ac_c_werror_flag" ||
15604 test ! -s conftest.err
15605 } && test -s conftest
$ac_exeext &&
15606 $as_test_x conftest
$ac_exeext; then
15607 ac_cv_lib_thread_thr_create
=yes
15609 echo "$as_me: failed program was:" >&5
15610 sed 's/^/| /' conftest.
$ac_ext >&5
15612 ac_cv_lib_thread_thr_create
=no
15615 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15616 conftest
$ac_exeext conftest.
$ac_ext
15617 LIBS
=$ac_check_lib_save_LIBS
15619 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
15620 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
15621 if test $ac_cv_lib_thread_thr_create = yes; then
15622 cat >>confdefs.h
<<\_ACEOF
15623 #define WITH_THREAD 1
15626 LIBS
="$LIBS -lthread"
15627 THREADOBJ
="Python/thread.o"
15628 USE_THREAD_MODULE
=""
15633 if test "$USE_THREAD_MODULE" != "#"
15635 # If the above checks didn't disable threads, (at least) OSF1
15636 # needs this '-threads' argument during linking.
15637 case $ac_sys_system in
15638 OSF1
) LDLAST
=-threads;;
15643 if test "$posix_threads" = "yes"; then
15644 if test "$unistd_defines_pthreads" = "no"; then
15646 cat >>confdefs.h
<<\_ACEOF
15647 #define _POSIX_THREADS 1
15652 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
15653 case $ac_sys_system/$ac_sys_release in
15655 cat >>confdefs.h
<<\_ACEOF
15656 #define HAVE_PTHREAD_DESTRUCTOR 1
15661 cat >>confdefs.h
<<\_ACEOF
15662 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
15667 cat >>confdefs.h
<<\_ACEOF
15668 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
15674 { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
15675 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
15676 if test "${ac_cv_pthread_system_supported+set}" = set; then
15677 echo $ECHO_N "(cached) $ECHO_C" >&6
15679 if test "$cross_compiling" = yes; then
15680 ac_cv_pthread_system_supported
=no
15682 cat >conftest.
$ac_ext <<_ACEOF
15685 cat confdefs.h
>>conftest.
$ac_ext
15686 cat >>conftest.
$ac_ext <<_ACEOF
15687 /* end confdefs.h. */
15688 #include <pthread.h>
15689 void *foo(void *parm) {
15693 pthread_attr_t attr;
15695 if (pthread_attr_init(&attr)) exit(-1);
15696 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
15697 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
15701 rm -f conftest
$ac_exeext
15702 if { (ac_try
="$ac_link"
15703 case "(($ac_try" in
15704 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15705 *) ac_try_echo=$ac_try;;
15707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15708 (eval "$ac_link") 2>&5
15710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15711 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15712 { (case "(($ac_try" in
15713 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15714 *) ac_try_echo
=$ac_try;;
15716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15717 (eval "$ac_try") 2>&5
15719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15720 (exit $ac_status); }; }; then
15721 ac_cv_pthread_system_supported
=yes
15723 echo "$as_me: program exited with status $ac_status" >&5
15724 echo "$as_me: failed program was:" >&5
15725 sed 's/^/| /' conftest.
$ac_ext >&5
15727 ( exit $ac_status )
15728 ac_cv_pthread_system_supported
=no
15730 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15737 { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
15738 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
15739 if test "$ac_cv_pthread_system_supported" = "yes"; then
15741 cat >>confdefs.h
<<\_ACEOF
15742 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
15747 for ac_func
in pthread_sigmask
15749 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15750 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15751 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15752 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15753 echo $ECHO_N "(cached) $ECHO_C" >&6
15755 cat >conftest.
$ac_ext <<_ACEOF
15758 cat confdefs.h
>>conftest.
$ac_ext
15759 cat >>conftest.
$ac_ext <<_ACEOF
15760 /* end confdefs.h. */
15761 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15763 #define $ac_func innocuous_$ac_func
15765 /* System header to define __stub macros and hopefully few prototypes,
15766 which can conflict with char $ac_func (); below.
15767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15768 <limits.h> exists even on freestanding compilers. */
15771 # include <limits.h>
15773 # include <assert.h>
15778 /* Override any GCC internal prototype to avoid an error.
15779 Use char because int might match the return type of a GCC
15780 builtin and then its argument prototype would still apply. */
15785 /* The GNU C library defines this for functions which it implements
15786 to always fail with ENOSYS. Some functions are actually named
15787 something starting with __ and the normal name is an alias. */
15788 #if defined __stub_$ac_func || defined __stub___$ac_func
15795 return $ac_func ();
15800 rm -f conftest.
$ac_objext conftest
$ac_exeext
15801 if { (ac_try
="$ac_link"
15802 case "(($ac_try" in
15803 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15804 *) ac_try_echo=$ac_try;;
15806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15807 (eval "$ac_link") 2>conftest.er1
15809 grep -v '^ *+' conftest.er1 >conftest.err
15811 cat conftest.err >&5
15812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813 (exit $ac_status); } && {
15814 test -z "$ac_c_werror_flag" ||
15815 test ! -s conftest.err
15816 } && test -s conftest$ac_exeext &&
15817 $as_test_x conftest$ac_exeext; then
15818 eval "$as_ac_var=yes"
15820 echo "$as_me: failed program was:" >&5
15821 sed 's/^/| /' conftest.$ac_ext >&5
15823 eval "$as_ac_var=no"
15826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15827 conftest$ac_exeext conftest.$ac_ext
15829 ac_res=`eval echo '${'$as_ac_var'}'`
15830 { echo "$as_me:$LINENO: result: $ac_res" >&5
15831 echo "${ECHO_T}$ac_res" >&6; }
15832 if test `eval echo '${'$as_ac_var'}'` = yes; then
15833 cat >>confdefs.h <<_ACEOF
15834 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
15836 case $ac_sys_system in
15839 cat >>confdefs.h <<\_ACEOF
15840 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
15851 # Check for enable-ipv6
15854 { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
15855 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
15856 # Check whether --enable-ipv6 was given.
15857 if test "${enable_ipv6+set}" = set; then
15858 enableval=$enable_ipv6; case "$enableval" in
15860 { echo "$as_me:$LINENO: result: no" >&5
15861 echo "${ECHO_T}no" >&6; }
15864 *) { echo "$as_me:$LINENO: result: yes" >&5
15865 echo "${ECHO_T}yes" >&6; }
15866 cat >>confdefs.h <<\_ACEOF
15867 #define ENABLE_IPV6 1
15875 if test "$cross_compiling" = yes; then
15876 { echo "$as_me:$LINENO: result: no" >&5
15877 echo "${ECHO_T}no" >&6; }
15881 cat >conftest.$ac_ext <<_ACEOF
15884 cat confdefs.h >>conftest.$ac_ext
15885 cat >>conftest.$ac_ext <<_ACEOF
15886 /* end confdefs.h. */
15887 /* AF_INET6 available check */
15888 #include <sys/types.h>
15889 #include <sys/socket.h>
15892 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
15899 rm -f conftest$ac_exeext
15900 if { (ac_try="$ac_link"
15901 case "(($ac_try" in
15902 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15903 *) ac_try_echo
=$ac_try;;
15905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15906 (eval "$ac_link") 2>&5
15908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15910 { (case "(($ac_try" in
15911 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15912 *) ac_try_echo=$ac_try;;
15914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15915 (eval "$ac_try") 2>&5
15917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15918 (exit $ac_status); }; }; then
15919 { echo "$as_me:$LINENO: result: yes" >&5
15920 echo "${ECHO_T}yes" >&6; }
15923 echo "$as_me: program exited with status $ac_status" >&5
15924 echo "$as_me: failed program was:" >&5
15925 sed 's/^/| /' conftest.$ac_ext >&5
15927 ( exit $ac_status )
15928 { echo "$as_me:$LINENO: result: no" >&5
15929 echo "${ECHO_T}no" >&6; }
15932 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15937 if test "$ipv6" = "yes"; then
15938 { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
15939 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; }
15940 cat >conftest.$ac_ext <<_ACEOF
15943 cat confdefs.h >>conftest.$ac_ext
15944 cat >>conftest.$ac_ext <<_ACEOF
15945 /* end confdefs.h. */
15946 #include <sys/types.h>
15947 #include <netinet/in.h>
15951 struct sockaddr_in6 x;
15957 rm -f conftest.$ac_objext
15958 if { (ac_try="$ac_compile"
15959 case "(($ac_try" in
15960 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15961 *) ac_try_echo
=$ac_try;;
15963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15964 (eval "$ac_compile") 2>conftest.er1
15966 grep -v '^ *+' conftest.er1
>conftest.err
15968 cat conftest.err
>&5
15969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15970 (exit $ac_status); } && {
15971 test -z "$ac_c_werror_flag" ||
15972 test ! -s conftest.err
15973 } && test -s conftest.
$ac_objext; then
15974 { echo "$as_me:$LINENO: result: yes" >&5
15975 echo "${ECHO_T}yes" >&6; }
15978 echo "$as_me: failed program was:" >&5
15979 sed 's/^/| /' conftest.
$ac_ext >&5
15981 { echo "$as_me:$LINENO: result: no" >&5
15982 echo "${ECHO_T}no" >&6; }
15986 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15989 if test "$ipv6" = "yes"; then
15990 cat >>confdefs.h
<<\_ACEOF
15991 #define ENABLE_IPV6 1
16003 if test "$ipv6" = "yes"; then
16004 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
16005 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
16006 for i
in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta
;
16010 cat >conftest.
$ac_ext <<_ACEOF
16013 cat confdefs.h
>>conftest.
$ac_ext
16014 cat >>conftest.
$ac_ext <<_ACEOF
16015 /* end confdefs.h. */
16017 #include <netinet/in.h>
16018 #ifdef IPV6_INRIA_VERSION
16022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16023 $EGREP "yes" >/dev
/null
2>&1; then
16030 cat >conftest.
$ac_ext <<_ACEOF
16033 cat confdefs.h
>>conftest.
$ac_ext
16034 cat >>conftest.
$ac_ext <<_ACEOF
16035 /* end confdefs.h. */
16037 #include <netinet/in.h>
16042 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16043 $EGREP "yes" >/dev
/null
2>&1; then
16046 ipv6libdir
=/usr
/local
/v
6/lib
16053 cat >conftest.
$ac_ext <<_ACEOF
16056 cat confdefs.h
>>conftest.
$ac_ext
16057 cat >>conftest.
$ac_ext <<_ACEOF
16058 /* end confdefs.h. */
16060 #include <features.h>
16061 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
16065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16066 $EGREP "yes" >/dev
/null
2>&1; then
16074 if test -d /usr
/inet6
; then
16077 ipv6libdir
=/usr
/inet
6/lib
16078 BASECFLAGS
="-I/usr/inet6/include $BASECFLAGS"
16082 if test -f /etc
/netconfig
; then
16083 if /usr
/xpg
4/bin
/grep -q tcp6
/etc
/netconfig
; then
16090 cat >conftest.
$ac_ext <<_ACEOF
16093 cat confdefs.h
>>conftest.
$ac_ext
16094 cat >>conftest.
$ac_ext <<_ACEOF
16095 /* end confdefs.h. */
16097 #include <sys/param.h>
16098 #ifdef _TOSHIBA_INET6
16102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16103 $EGREP "yes" >/dev
/null
2>&1; then
16106 ipv6libdir
=/usr
/local
/v
6/lib
16112 cat >conftest.
$ac_ext <<_ACEOF
16115 cat confdefs.h
>>conftest.
$ac_ext
16116 cat >>conftest.
$ac_ext <<_ACEOF
16117 /* end confdefs.h. */
16119 #include </usr/local/v6/include/sys/v6config.h>
16124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16125 $EGREP "yes" >/dev
/null
2>&1; then
16128 ipv6libdir
=/usr
/local
/v
6/lib
;
16129 BASECFLAGS
="-I/usr/local/v6/include $BASECFLAGS"
16135 cat >conftest.
$ac_ext <<_ACEOF
16138 cat confdefs.h
>>conftest.
$ac_ext
16139 cat >>conftest.
$ac_ext <<_ACEOF
16140 /* end confdefs.h. */
16142 #include <sys/param.h>
16143 #ifdef _ZETA_MINAMI_INET6
16147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16148 $EGREP "yes" >/dev
/null
2>&1; then
16151 ipv6libdir
=/usr
/local
/v
6/lib
16157 if test "$ipv6type" != "unknown"; then
16161 { echo "$as_me:$LINENO: result: $ipv6type" >&5
16162 echo "${ECHO_T}$ipv6type" >&6; }
16165 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
16166 if test -d $ipv6libdir -a -f $ipv6libdir/lib
$ipv6lib.a
; then
16167 LIBS
="-L$ipv6libdir -l$ipv6lib $LIBS"
16168 echo "using lib$ipv6lib"
16170 if test $ipv6trylibc = "yes"; then
16173 echo 'Fatal: no $ipv6lib library found. cannot continue.'
16174 echo "You need to fetch lib$ipv6lib.a from appropriate"
16175 echo 'ipv6 kit and compile beforehand.'
16181 { echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5
16182 echo $ECHO_N "checking for OSX 10.5 SDK or later... $ECHO_C" >&6; }
16183 cat >conftest.
$ac_ext <<_ACEOF
16186 cat confdefs.h
>>conftest.
$ac_ext
16187 cat >>conftest.
$ac_ext <<_ACEOF
16188 /* end confdefs.h. */
16189 #include <Carbon/Carbon.h>
16193 FSIORefNum fRef = 0
16198 rm -f conftest.
$ac_objext
16199 if { (ac_try
="$ac_compile"
16200 case "(($ac_try" in
16201 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16202 *) ac_try_echo=$ac_try;;
16204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16205 (eval "$ac_compile") 2>conftest.er1
16207 grep -v '^ *+' conftest.er1 >conftest.err
16209 cat conftest.err >&5
16210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211 (exit $ac_status); } && {
16212 test -z "$ac_c_werror_flag" ||
16213 test ! -s conftest.err
16214 } && test -s conftest.$ac_objext; then
16216 cat >>confdefs.h <<\_ACEOF
16217 #define HAVE_OSX105_SDK 1
16220 { echo "$as_me:$LINENO: result: yes" >&5
16221 echo "${ECHO_T}yes" >&6; }
16223 echo "$as_me: failed program was:" >&5
16224 sed 's/^/| /' conftest.$ac_ext >&5
16226 { echo "$as_me:$LINENO: result: no" >&5
16227 echo "${ECHO_T}no" >&6; }
16231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16233 # Check for --with-doc-strings
16234 { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
16235 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
16237 # Check whether --with-doc-strings was given.
16238 if test "${with_doc_strings+set}" = set; then
16239 withval=$with_doc_strings;
16243 if test -z "$with_doc_strings"
16244 then with_doc_strings="yes"
16246 if test "$with_doc_strings" != "no"
16249 cat >>confdefs.h <<\_ACEOF
16250 #define WITH_DOC_STRINGS 1
16254 { echo "$as_me:$LINENO: result: $with_doc_strings" >&5
16255 echo "${ECHO_T}$with_doc_strings" >&6; }
16257 # Check for Python-specific malloc support
16258 { echo "$as_me:$LINENO: checking for --with-tsc" >&5
16259 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
16261 # Check whether --with-tsc was given.
16262 if test "${with_tsc+set}" = set; then
16264 if test "$withval" != no
16267 cat >>confdefs.h <<\_ACEOF
16271 { echo "$as_me:$LINENO: result: yes" >&5
16272 echo "${ECHO_T}yes" >&6; }
16273 else { echo "$as_me:$LINENO: result: no" >&5
16274 echo "${ECHO_T}no" >&6; }
16277 { echo "$as_me:$LINENO: result: no" >&5
16278 echo "${ECHO_T}no" >&6; }
16282 # Check for Python-specific malloc support
16283 { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
16284 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
16286 # Check whether --with-pymalloc was given.
16287 if test "${with_pymalloc+set}" = set; then
16288 withval=$with_pymalloc;
16292 if test -z "$with_pymalloc"
16293 then with_pymalloc="yes"
16295 if test "$with_pymalloc" != "no"
16298 cat >>confdefs.h <<\_ACEOF
16299 #define WITH_PYMALLOC 1
16303 { echo "$as_me:$LINENO: result: $with_pymalloc" >&5
16304 echo "${ECHO_T}$with_pymalloc" >&6; }
16306 # Check for --with-wctype-functions
16307 { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
16308 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
16310 # Check whether --with-wctype-functions was given.
16311 if test "${with_wctype_functions+set}" = set; then
16312 withval=$with_wctype_functions;
16313 if test "$withval" != no
16316 cat >>confdefs.h <<\_ACEOF
16317 #define WANT_WCTYPE_FUNCTIONS 1
16320 { echo "$as_me:$LINENO: result: yes" >&5
16321 echo "${ECHO_T}yes" >&6; }
16322 else { echo "$as_me:$LINENO: result: no" >&5
16323 echo "${ECHO_T}no" >&6; }
16326 { echo "$as_me:$LINENO: result: no" >&5
16327 echo "${ECHO_T}no" >&6; }
16331 # -I${DLINCLDIR} is added to the compile rule for importdl.o
16335 # the dlopen() function means we might want to use dynload_shlib.o. some
16336 # platforms, such as AIX, have dlopen(), but don't want to use it.
16338 for ac_func in dlopen
16340 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
16341 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16342 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16343 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16344 echo $ECHO_N "(cached) $ECHO_C" >&6
16346 cat >conftest.$ac_ext <<_ACEOF
16349 cat confdefs.h >>conftest.$ac_ext
16350 cat >>conftest.$ac_ext <<_ACEOF
16351 /* end confdefs.h. */
16352 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16353 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16354 #define $ac_func innocuous_$ac_func
16356 /* System header to define __stub macros and hopefully few prototypes,
16357 which can conflict with char $ac_func (); below.
16358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16359 <limits.h> exists even on freestanding compilers. */
16362 # include <limits.h>
16364 # include <assert.h>
16369 /* Override any GCC internal prototype to avoid an error.
16370 Use char because int might match the return type of a GCC
16371 builtin and then its argument prototype would still apply. */
16376 /* The GNU C library defines this for functions which it implements
16377 to always fail with ENOSYS. Some functions are actually named
16378 something starting with __ and the normal name is an alias. */
16379 #if defined __stub_$ac_func || defined __stub___$ac_func
16386 return $ac_func ();
16391 rm -f conftest.$ac_objext conftest$ac_exeext
16392 if { (ac_try="$ac_link"
16393 case "(($ac_try" in
16394 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16395 *) ac_try_echo
=$ac_try;;
16397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16398 (eval "$ac_link") 2>conftest.er1
16400 grep -v '^ *+' conftest.er1
>conftest.err
16402 cat conftest.err
>&5
16403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404 (exit $ac_status); } && {
16405 test -z "$ac_c_werror_flag" ||
16406 test ! -s conftest.err
16407 } && test -s conftest
$ac_exeext &&
16408 $as_test_x conftest
$ac_exeext; then
16409 eval "$as_ac_var=yes"
16411 echo "$as_me: failed program was:" >&5
16412 sed 's/^/| /' conftest.
$ac_ext >&5
16414 eval "$as_ac_var=no"
16417 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16418 conftest
$ac_exeext conftest.
$ac_ext
16420 ac_res
=`eval echo '${'$as_ac_var'}'`
16421 { echo "$as_me:$LINENO: result: $ac_res" >&5
16422 echo "${ECHO_T}$ac_res" >&6; }
16423 if test `eval echo '${'$as_ac_var'}'` = yes; then
16424 cat >>confdefs.h
<<_ACEOF
16425 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16432 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
16433 # loading of modules.
16435 { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
16436 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
16437 if test -z "$DYNLOADFILE"
16439 case $ac_sys_system/$ac_sys_release in
16440 AIX
*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
16441 if test "$ac_cv_func_dlopen" = yes
16442 then DYNLOADFILE
="dynload_shlib.o"
16443 else DYNLOADFILE
="dynload_aix.o"
16446 BeOS
*) DYNLOADFILE
="dynload_beos.o";;
16447 hp
*|HP
*) DYNLOADFILE
="dynload_hpux.o";;
16448 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
16449 Darwin
/[0156]\..
*) DYNLOADFILE
="dynload_next.o";;
16450 atheos
*) DYNLOADFILE
="dynload_atheos.o";;
16452 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
16453 # out any dynamic loading
16454 if test "$ac_cv_func_dlopen" = yes
16455 then DYNLOADFILE
="dynload_shlib.o"
16456 else DYNLOADFILE
="dynload_stub.o"
16461 { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
16462 echo "${ECHO_T}$DYNLOADFILE" >&6; }
16463 if test "$DYNLOADFILE" != "dynload_stub.o"
16466 cat >>confdefs.h
<<\_ACEOF
16467 #define HAVE_DYNAMIC_LOADING 1
16472 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
16475 { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
16476 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
16477 if test -z "$MACHDEP_OBJS"
16479 MACHDEP_OBJS
=$extra_machdep_objs
16481 MACHDEP_OBJS
="$MACHDEP_OBJS $extra_machdep_objs"
16483 { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
16484 echo "${ECHO_T}MACHDEP_OBJS" >&6; }
16486 # checks for library functions
16568 for ac_func
in alarm setitimer getitimer bind_textdomain_codeset chown \
16569 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
16570 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
16571 getpriority getpwent getspnam getspent getsid getwd \
16572 kill killpg lchmod lchown lstat
mkfifo mknod mktime \
16573 mremap nice pathconf pause plock poll pthread_init \
16574 putenv readlink realpath \
16575 select setegid seteuid setgid \
16576 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
16577 sigaction siginterrupt sigrelse strftime \
16578 sysconf tcgetpgrp tcsetpgrp tempnam timegm
times tmpfile tmpnam tmpnam_r \
16579 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
16581 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16582 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16583 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16584 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16585 echo $ECHO_N "(cached) $ECHO_C" >&6
16587 cat >conftest.
$ac_ext <<_ACEOF
16590 cat confdefs.h
>>conftest.
$ac_ext
16591 cat >>conftest.
$ac_ext <<_ACEOF
16592 /* end confdefs.h. */
16593 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16595 #define $ac_func innocuous_$ac_func
16597 /* System header to define __stub macros and hopefully few prototypes,
16598 which can conflict with char $ac_func (); below.
16599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16600 <limits.h> exists even on freestanding compilers. */
16603 # include <limits.h>
16605 # include <assert.h>
16610 /* Override any GCC internal prototype to avoid an error.
16611 Use char because int might match the return type of a GCC
16612 builtin and then its argument prototype would still apply. */
16617 /* The GNU C library defines this for functions which it implements
16618 to always fail with ENOSYS. Some functions are actually named
16619 something starting with __ and the normal name is an alias. */
16620 #if defined __stub_$ac_func || defined __stub___$ac_func
16627 return $ac_func ();
16632 rm -f conftest.
$ac_objext conftest
$ac_exeext
16633 if { (ac_try
="$ac_link"
16634 case "(($ac_try" in
16635 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16636 *) ac_try_echo=$ac_try;;
16638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16639 (eval "$ac_link") 2>conftest.er1
16641 grep -v '^ *+' conftest.er1 >conftest.err
16643 cat conftest.err >&5
16644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645 (exit $ac_status); } && {
16646 test -z "$ac_c_werror_flag" ||
16647 test ! -s conftest.err
16648 } && test -s conftest$ac_exeext &&
16649 $as_test_x conftest$ac_exeext; then
16650 eval "$as_ac_var=yes"
16652 echo "$as_me: failed program was:" >&5
16653 sed 's/^/| /' conftest.$ac_ext >&5
16655 eval "$as_ac_var=no"
16658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16659 conftest$ac_exeext conftest.$ac_ext
16661 ac_res=`eval echo '${'$as_ac_var'}'`
16662 { echo "$as_me:$LINENO: result: $ac_res" >&5
16663 echo "${ECHO_T}$ac_res" >&6; }
16664 if test `eval echo '${'$as_ac_var'}'` = yes; then
16665 cat >>confdefs.h <<_ACEOF
16666 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
16673 # For some functions, having a definition is not sufficient, since
16674 # we want to take their address.
16675 { echo "$as_me:$LINENO: checking for chroot" >&5
16676 echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
16677 cat >conftest.$ac_ext <<_ACEOF
16680 cat confdefs.h >>conftest.$ac_ext
16681 cat >>conftest.$ac_ext <<_ACEOF
16682 /* end confdefs.h. */
16683 #include <unistd.h>
16692 rm -f conftest.$ac_objext
16693 if { (ac_try="$ac_compile"
16694 case "(($ac_try" in
16695 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16696 *) ac_try_echo
=$ac_try;;
16698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16699 (eval "$ac_compile") 2>conftest.er1
16701 grep -v '^ *+' conftest.er1
>conftest.err
16703 cat conftest.err
>&5
16704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705 (exit $ac_status); } && {
16706 test -z "$ac_c_werror_flag" ||
16707 test ! -s conftest.err
16708 } && test -s conftest.
$ac_objext; then
16710 cat >>confdefs.h
<<\_ACEOF
16711 #define HAVE_CHROOT 1
16714 { echo "$as_me:$LINENO: result: yes" >&5
16715 echo "${ECHO_T}yes" >&6; }
16717 echo "$as_me: failed program was:" >&5
16718 sed 's/^/| /' conftest.
$ac_ext >&5
16720 { echo "$as_me:$LINENO: result: no" >&5
16721 echo "${ECHO_T}no" >&6; }
16725 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16726 { echo "$as_me:$LINENO: checking for link" >&5
16727 echo $ECHO_N "checking for link... $ECHO_C" >&6; }
16728 cat >conftest.
$ac_ext <<_ACEOF
16731 cat confdefs.h
>>conftest.
$ac_ext
16732 cat >>conftest.
$ac_ext <<_ACEOF
16733 /* end confdefs.h. */
16734 #include <unistd.h>
16743 rm -f conftest.
$ac_objext
16744 if { (ac_try
="$ac_compile"
16745 case "(($ac_try" in
16746 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16747 *) ac_try_echo=$ac_try;;
16749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16750 (eval "$ac_compile") 2>conftest.er1
16752 grep -v '^ *+' conftest.er1 >conftest.err
16754 cat conftest.err >&5
16755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16756 (exit $ac_status); } && {
16757 test -z "$ac_c_werror_flag" ||
16758 test ! -s conftest.err
16759 } && test -s conftest.$ac_objext; then
16761 cat >>confdefs.h <<\_ACEOF
16762 #define HAVE_LINK 1
16765 { echo "$as_me:$LINENO: result: yes" >&5
16766 echo "${ECHO_T}yes" >&6; }
16768 echo "$as_me: failed program was:" >&5
16769 sed 's/^/| /' conftest.$ac_ext >&5
16771 { echo "$as_me:$LINENO: result: no" >&5
16772 echo "${ECHO_T}no" >&6; }
16776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16777 { echo "$as_me:$LINENO: checking for symlink" >&5
16778 echo $ECHO_N "checking for symlink... $ECHO_C" >&6; }
16779 cat >conftest.$ac_ext <<_ACEOF
16782 cat confdefs.h >>conftest.$ac_ext
16783 cat >>conftest.$ac_ext <<_ACEOF
16784 /* end confdefs.h. */
16785 #include <unistd.h>
16794 rm -f conftest.$ac_objext
16795 if { (ac_try="$ac_compile"
16796 case "(($ac_try" in
16797 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16798 *) ac_try_echo
=$ac_try;;
16800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16801 (eval "$ac_compile") 2>conftest.er1
16803 grep -v '^ *+' conftest.er1
>conftest.err
16805 cat conftest.err
>&5
16806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16807 (exit $ac_status); } && {
16808 test -z "$ac_c_werror_flag" ||
16809 test ! -s conftest.err
16810 } && test -s conftest.
$ac_objext; then
16812 cat >>confdefs.h
<<\_ACEOF
16813 #define HAVE_SYMLINK 1
16816 { echo "$as_me:$LINENO: result: yes" >&5
16817 echo "${ECHO_T}yes" >&6; }
16819 echo "$as_me: failed program was:" >&5
16820 sed 's/^/| /' conftest.
$ac_ext >&5
16822 { echo "$as_me:$LINENO: result: no" >&5
16823 echo "${ECHO_T}no" >&6; }
16827 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16828 { echo "$as_me:$LINENO: checking for fchdir" >&5
16829 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
16830 cat >conftest.
$ac_ext <<_ACEOF
16833 cat confdefs.h
>>conftest.
$ac_ext
16834 cat >>conftest.
$ac_ext <<_ACEOF
16835 /* end confdefs.h. */
16836 #include <unistd.h>
16845 rm -f conftest.
$ac_objext
16846 if { (ac_try
="$ac_compile"
16847 case "(($ac_try" in
16848 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16849 *) ac_try_echo=$ac_try;;
16851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16852 (eval "$ac_compile") 2>conftest.er1
16854 grep -v '^ *+' conftest.er1 >conftest.err
16856 cat conftest.err >&5
16857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858 (exit $ac_status); } && {
16859 test -z "$ac_c_werror_flag" ||
16860 test ! -s conftest.err
16861 } && test -s conftest.$ac_objext; then
16863 cat >>confdefs.h <<\_ACEOF
16864 #define HAVE_FCHDIR 1
16867 { echo "$as_me:$LINENO: result: yes" >&5
16868 echo "${ECHO_T}yes" >&6; }
16870 echo "$as_me: failed program was:" >&5
16871 sed 's/^/| /' conftest.$ac_ext >&5
16873 { echo "$as_me:$LINENO: result: no" >&5
16874 echo "${ECHO_T}no" >&6; }
16878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16879 { echo "$as_me:$LINENO: checking for fsync" >&5
16880 echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
16881 cat >conftest.$ac_ext <<_ACEOF
16884 cat confdefs.h >>conftest.$ac_ext
16885 cat >>conftest.$ac_ext <<_ACEOF
16886 /* end confdefs.h. */
16887 #include <unistd.h>
16896 rm -f conftest.$ac_objext
16897 if { (ac_try="$ac_compile"
16898 case "(($ac_try" in
16899 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16900 *) ac_try_echo
=$ac_try;;
16902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16903 (eval "$ac_compile") 2>conftest.er1
16905 grep -v '^ *+' conftest.er1
>conftest.err
16907 cat conftest.err
>&5
16908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16909 (exit $ac_status); } && {
16910 test -z "$ac_c_werror_flag" ||
16911 test ! -s conftest.err
16912 } && test -s conftest.
$ac_objext; then
16914 cat >>confdefs.h
<<\_ACEOF
16915 #define HAVE_FSYNC 1
16918 { echo "$as_me:$LINENO: result: yes" >&5
16919 echo "${ECHO_T}yes" >&6; }
16921 echo "$as_me: failed program was:" >&5
16922 sed 's/^/| /' conftest.
$ac_ext >&5
16924 { echo "$as_me:$LINENO: result: no" >&5
16925 echo "${ECHO_T}no" >&6; }
16929 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16930 { echo "$as_me:$LINENO: checking for fdatasync" >&5
16931 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
16932 cat >conftest.
$ac_ext <<_ACEOF
16935 cat confdefs.h
>>conftest.
$ac_ext
16936 cat >>conftest.
$ac_ext <<_ACEOF
16937 /* end confdefs.h. */
16938 #include <unistd.h>
16947 rm -f conftest.
$ac_objext
16948 if { (ac_try
="$ac_compile"
16949 case "(($ac_try" in
16950 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16951 *) ac_try_echo=$ac_try;;
16953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16954 (eval "$ac_compile") 2>conftest.er1
16956 grep -v '^ *+' conftest.er1 >conftest.err
16958 cat conftest.err >&5
16959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16960 (exit $ac_status); } && {
16961 test -z "$ac_c_werror_flag" ||
16962 test ! -s conftest.err
16963 } && test -s conftest.$ac_objext; then
16965 cat >>confdefs.h <<\_ACEOF
16966 #define HAVE_FDATASYNC 1
16969 { echo "$as_me:$LINENO: result: yes" >&5
16970 echo "${ECHO_T}yes" >&6; }
16972 echo "$as_me: failed program was:" >&5
16973 sed 's/^/| /' conftest.$ac_ext >&5
16975 { echo "$as_me:$LINENO: result: no" >&5
16976 echo "${ECHO_T}no" >&6; }
16980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16981 { echo "$as_me:$LINENO: checking for epoll" >&5
16982 echo $ECHO_N "checking for epoll... $ECHO_C" >&6; }
16983 cat >conftest.$ac_ext <<_ACEOF
16986 cat confdefs.h >>conftest.$ac_ext
16987 cat >>conftest.$ac_ext <<_ACEOF
16988 /* end confdefs.h. */
16989 #include <sys/epoll.h>
16993 void *x=epoll_create
16998 rm -f conftest.$ac_objext
16999 if { (ac_try="$ac_compile"
17000 case "(($ac_try" in
17001 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17002 *) ac_try_echo
=$ac_try;;
17004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17005 (eval "$ac_compile") 2>conftest.er1
17007 grep -v '^ *+' conftest.er1
>conftest.err
17009 cat conftest.err
>&5
17010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17011 (exit $ac_status); } && {
17012 test -z "$ac_c_werror_flag" ||
17013 test ! -s conftest.err
17014 } && test -s conftest.
$ac_objext; then
17016 cat >>confdefs.h
<<\_ACEOF
17017 #define HAVE_EPOLL 1
17020 { echo "$as_me:$LINENO: result: yes" >&5
17021 echo "${ECHO_T}yes" >&6; }
17023 echo "$as_me: failed program was:" >&5
17024 sed 's/^/| /' conftest.
$ac_ext >&5
17026 { echo "$as_me:$LINENO: result: no" >&5
17027 echo "${ECHO_T}no" >&6; }
17031 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17032 { echo "$as_me:$LINENO: checking for kqueue" >&5
17033 echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; }
17034 cat >conftest.
$ac_ext <<_ACEOF
17037 cat confdefs.h
>>conftest.
$ac_ext
17038 cat >>conftest.
$ac_ext <<_ACEOF
17039 /* end confdefs.h. */
17041 #include <sys/types.h>
17042 #include <sys/event.h>
17052 rm -f conftest.
$ac_objext
17053 if { (ac_try
="$ac_compile"
17054 case "(($ac_try" in
17055 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17056 *) ac_try_echo=$ac_try;;
17058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17059 (eval "$ac_compile") 2>conftest.er1
17061 grep -v '^ *+' conftest.er1 >conftest.err
17063 cat conftest.err >&5
17064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065 (exit $ac_status); } && {
17066 test -z "$ac_c_werror_flag" ||
17067 test ! -s conftest.err
17068 } && test -s conftest.$ac_objext; then
17070 cat >>confdefs.h <<\_ACEOF
17071 #define HAVE_KQUEUE 1
17074 { echo "$as_me:$LINENO: result: yes" >&5
17075 echo "${ECHO_T}yes" >&6; }
17077 echo "$as_me: failed program was:" >&5
17078 sed 's/^/| /' conftest.$ac_ext >&5
17080 { echo "$as_me:$LINENO: result: no" >&5
17081 echo "${ECHO_T}no" >&6; }
17085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17086 # On some systems (eg. FreeBSD 5), we would find a definition of the
17087 # functions ctermid_r, setgroups in the library, but no prototype
17088 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
17089 # address to avoid compiler warnings and potential miscompilations
17090 # because of the missing prototypes.
17092 { echo "$as_me:$LINENO: checking for ctermid_r" >&5
17093 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; }
17094 cat >conftest.$ac_ext <<_ACEOF
17097 cat confdefs.h >>conftest.$ac_ext
17098 cat >>conftest.$ac_ext <<_ACEOF
17099 /* end confdefs.h. */
17101 #include "confdefs.h"
17107 void* p = ctermid_r
17112 rm -f conftest.$ac_objext
17113 if { (ac_try="$ac_compile"
17114 case "(($ac_try" in
17115 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17116 *) ac_try_echo
=$ac_try;;
17118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17119 (eval "$ac_compile") 2>conftest.er1
17121 grep -v '^ *+' conftest.er1
>conftest.err
17123 cat conftest.err
>&5
17124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125 (exit $ac_status); } && {
17126 test -z "$ac_c_werror_flag" ||
17127 test ! -s conftest.err
17128 } && test -s conftest.
$ac_objext; then
17130 cat >>confdefs.h
<<\_ACEOF
17131 #define HAVE_CTERMID_R 1
17134 { echo "$as_me:$LINENO: result: yes" >&5
17135 echo "${ECHO_T}yes" >&6; }
17137 echo "$as_me: failed program was:" >&5
17138 sed 's/^/| /' conftest.
$ac_ext >&5
17140 { echo "$as_me:$LINENO: result: no" >&5
17141 echo "${ECHO_T}no" >&6; }
17145 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17147 { echo "$as_me:$LINENO: checking for flock" >&5
17148 echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
17149 cat >conftest.
$ac_ext <<_ACEOF
17152 cat confdefs.h
>>conftest.
$ac_ext
17153 cat >>conftest.
$ac_ext <<_ACEOF
17154 /* end confdefs.h. */
17156 #include "confdefs.h"
17157 #include <sys/file.h>
17167 rm -f conftest.
$ac_objext
17168 if { (ac_try
="$ac_compile"
17169 case "(($ac_try" in
17170 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17171 *) ac_try_echo=$ac_try;;
17173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17174 (eval "$ac_compile") 2>conftest.er1
17176 grep -v '^ *+' conftest.er1 >conftest.err
17178 cat conftest.err >&5
17179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17180 (exit $ac_status); } && {
17181 test -z "$ac_c_werror_flag" ||
17182 test ! -s conftest.err
17183 } && test -s conftest.$ac_objext; then
17185 cat >>confdefs.h <<\_ACEOF
17186 #define HAVE_FLOCK 1
17189 { echo "$as_me:$LINENO: result: yes" >&5
17190 echo "${ECHO_T}yes" >&6; }
17192 echo "$as_me: failed program was:" >&5
17193 sed 's/^/| /' conftest.$ac_ext >&5
17195 { echo "$as_me:$LINENO: result: no" >&5
17196 echo "${ECHO_T}no" >&6; }
17200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17202 { echo "$as_me:$LINENO: checking for getpagesize" >&5
17203 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
17204 cat >conftest.$ac_ext <<_ACEOF
17207 cat confdefs.h >>conftest.$ac_ext
17208 cat >>conftest.$ac_ext <<_ACEOF
17209 /* end confdefs.h. */
17211 #include "confdefs.h"
17212 #include <unistd.h>
17217 void* p = getpagesize
17222 rm -f conftest.$ac_objext
17223 if { (ac_try="$ac_compile"
17224 case "(($ac_try" in
17225 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17226 *) ac_try_echo
=$ac_try;;
17228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17229 (eval "$ac_compile") 2>conftest.er1
17231 grep -v '^ *+' conftest.er1
>conftest.err
17233 cat conftest.err
>&5
17234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235 (exit $ac_status); } && {
17236 test -z "$ac_c_werror_flag" ||
17237 test ! -s conftest.err
17238 } && test -s conftest.
$ac_objext; then
17240 cat >>confdefs.h
<<\_ACEOF
17241 #define HAVE_GETPAGESIZE 1
17244 { echo "$as_me:$LINENO: result: yes" >&5
17245 echo "${ECHO_T}yes" >&6; }
17247 echo "$as_me: failed program was:" >&5
17248 sed 's/^/| /' conftest.
$ac_ext >&5
17250 { echo "$as_me:$LINENO: result: no" >&5
17251 echo "${ECHO_T}no" >&6; }
17255 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17257 for ac_prog
in true
17259 # Extract the first word of "$ac_prog", so it can be a program name with args.
17260 set dummy
$ac_prog; ac_word
=$2
17261 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17263 if test "${ac_cv_prog_TRUE+set}" = set; then
17264 echo $ECHO_N "(cached) $ECHO_C" >&6
17266 if test -n "$TRUE"; then
17267 ac_cv_prog_TRUE
="$TRUE" # Let the user override the test.
17269 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17270 for as_dir
in $PATH
17273 test -z "$as_dir" && as_dir
=.
17274 for ac_exec_ext
in '' $ac_executable_extensions; do
17275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17276 ac_cv_prog_TRUE
="$ac_prog"
17277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17286 TRUE
=$ac_cv_prog_TRUE
17287 if test -n "$TRUE"; then
17288 { echo "$as_me:$LINENO: result: $TRUE" >&5
17289 echo "${ECHO_T}$TRUE" >&6; }
17291 { echo "$as_me:$LINENO: result: no" >&5
17292 echo "${ECHO_T}no" >&6; }
17296 test -n "$TRUE" && break
17298 test -n "$TRUE" || TRUE
="/bin/true"
17301 { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
17302 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
17303 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
17304 echo $ECHO_N "(cached) $ECHO_C" >&6
17306 ac_check_lib_save_LIBS
=$LIBS
17308 cat >conftest.
$ac_ext <<_ACEOF
17311 cat confdefs.h
>>conftest.
$ac_ext
17312 cat >>conftest.
$ac_ext <<_ACEOF
17313 /* end confdefs.h. */
17315 /* Override any GCC internal prototype to avoid an error.
17316 Use char because int might match the return type of a GCC
17317 builtin and then its argument prototype would still apply. */
17325 return inet_aton ();
17330 rm -f conftest.
$ac_objext conftest
$ac_exeext
17331 if { (ac_try
="$ac_link"
17332 case "(($ac_try" in
17333 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17334 *) ac_try_echo=$ac_try;;
17336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17337 (eval "$ac_link") 2>conftest.er1
17339 grep -v '^ *+' conftest.er1 >conftest.err
17341 cat conftest.err >&5
17342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343 (exit $ac_status); } && {
17344 test -z "$ac_c_werror_flag" ||
17345 test ! -s conftest.err
17346 } && test -s conftest$ac_exeext &&
17347 $as_test_x conftest$ac_exeext; then
17348 ac_cv_lib_c_inet_aton=yes
17350 echo "$as_me: failed program was:" >&5
17351 sed 's/^/| /' conftest.$ac_ext >&5
17353 ac_cv_lib_c_inet_aton=no
17356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17357 conftest$ac_exeext conftest.$ac_ext
17358 LIBS=$ac_check_lib_save_LIBS
17360 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
17361 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
17362 if test $ac_cv_lib_c_inet_aton = yes; then
17366 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
17367 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
17368 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
17369 echo $ECHO_N "(cached) $ECHO_C" >&6
17371 ac_check_lib_save_LIBS=$LIBS
17372 LIBS="-lresolv $LIBS"
17373 cat >conftest.$ac_ext <<_ACEOF
17376 cat confdefs.h >>conftest.$ac_ext
17377 cat >>conftest.$ac_ext <<_ACEOF
17378 /* end confdefs.h. */
17380 /* Override any GCC internal prototype to avoid an error.
17381 Use char because int might match the return type of a GCC
17382 builtin and then its argument prototype would still apply. */
17390 return inet_aton ();
17395 rm -f conftest.$ac_objext conftest$ac_exeext
17396 if { (ac_try="$ac_link"
17397 case "(($ac_try" in
17398 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17399 *) ac_try_echo
=$ac_try;;
17401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17402 (eval "$ac_link") 2>conftest.er1
17404 grep -v '^ *+' conftest.er1
>conftest.err
17406 cat conftest.err
>&5
17407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408 (exit $ac_status); } && {
17409 test -z "$ac_c_werror_flag" ||
17410 test ! -s conftest.err
17411 } && test -s conftest
$ac_exeext &&
17412 $as_test_x conftest
$ac_exeext; then
17413 ac_cv_lib_resolv_inet_aton
=yes
17415 echo "$as_me: failed program was:" >&5
17416 sed 's/^/| /' conftest.
$ac_ext >&5
17418 ac_cv_lib_resolv_inet_aton
=no
17421 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17422 conftest
$ac_exeext conftest.
$ac_ext
17423 LIBS
=$ac_check_lib_save_LIBS
17425 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
17426 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
17427 if test $ac_cv_lib_resolv_inet_aton = yes; then
17428 cat >>confdefs.h
<<_ACEOF
17429 #define HAVE_LIBRESOLV 1
17432 LIBS
="-lresolv $LIBS"
17440 # On Tru64, chflags seems to be present, but calling it will
17442 { echo "$as_me:$LINENO: checking for chflags" >&5
17443 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
17444 if test "$cross_compiling" = yes; then
17445 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17446 See \`config.log' for more details." >&5
17447 echo "$as_me: error: cannot run test program while cross compiling
17448 See \`config.log' for more details." >&2;}
17449 { (exit 1); exit 1; }; }
17451 cat >conftest.
$ac_ext <<_ACEOF
17454 cat confdefs.h
>>conftest.
$ac_ext
17455 cat >>conftest.
$ac_ext <<_ACEOF
17456 /* end confdefs.h. */
17458 #include <sys/stat.h>
17459 #include <unistd.h>
17460 int main(int argc, char*argv[])
17462 if(chflags(argv[0], 0) != 0)
17468 rm -f conftest
$ac_exeext
17469 if { (ac_try
="$ac_link"
17470 case "(($ac_try" in
17471 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17472 *) ac_try_echo=$ac_try;;
17474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17475 (eval "$ac_link") 2>&5
17477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17478 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17479 { (case "(($ac_try" in
17480 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17481 *) ac_try_echo
=$ac_try;;
17483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17484 (eval "$ac_try") 2>&5
17486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487 (exit $ac_status); }; }; then
17489 cat >>confdefs.h
<<\_ACEOF
17490 #define HAVE_CHFLAGS 1
17493 { echo "$as_me:$LINENO: result: yes" >&5
17494 echo "${ECHO_T}yes" >&6; }
17496 echo "$as_me: program exited with status $ac_status" >&5
17497 echo "$as_me: failed program was:" >&5
17498 sed 's/^/| /' conftest.
$ac_ext >&5
17500 ( exit $ac_status )
17501 { echo "$as_me:$LINENO: result: no" >&5
17502 echo "${ECHO_T}no" >&6; }
17505 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17510 { echo "$as_me:$LINENO: checking for lchflags" >&5
17511 echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
17512 if test "$cross_compiling" = yes; then
17513 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17514 See \`config.log' for more details." >&5
17515 echo "$as_me: error: cannot run test program while cross compiling
17516 See \`config.log' for more details." >&2;}
17517 { (exit 1); exit 1; }; }
17519 cat >conftest.
$ac_ext <<_ACEOF
17522 cat confdefs.h
>>conftest.
$ac_ext
17523 cat >>conftest.
$ac_ext <<_ACEOF
17524 /* end confdefs.h. */
17526 #include <sys/stat.h>
17527 #include <unistd.h>
17528 int main(int argc, char*argv[])
17530 if(lchflags(argv[0], 0) != 0)
17536 rm -f conftest
$ac_exeext
17537 if { (ac_try
="$ac_link"
17538 case "(($ac_try" in
17539 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17540 *) ac_try_echo=$ac_try;;
17542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17543 (eval "$ac_link") 2>&5
17545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17546 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17547 { (case "(($ac_try" in
17548 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17549 *) ac_try_echo
=$ac_try;;
17551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17552 (eval "$ac_try") 2>&5
17554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555 (exit $ac_status); }; }; then
17557 cat >>confdefs.h
<<\_ACEOF
17558 #define HAVE_LCHFLAGS 1
17561 { echo "$as_me:$LINENO: result: yes" >&5
17562 echo "${ECHO_T}yes" >&6; }
17564 echo "$as_me: program exited with status $ac_status" >&5
17565 echo "$as_me: failed program was:" >&5
17566 sed 's/^/| /' conftest.
$ac_ext >&5
17568 ( exit $ac_status )
17569 { echo "$as_me:$LINENO: result: no" >&5
17570 echo "${ECHO_T}no" >&6; }
17573 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17578 case $ac_sys_system/$ac_sys_release in
17580 _CUR_CFLAGS
="${CFLAGS}"
17581 _CUR_LDFLAGS
="${LDFLAGS}"
17582 CFLAGS
="${CFLAGS} -Wl,-search_paths_first"
17583 LDFLAGS
="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
17587 { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
17588 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
17589 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
17590 echo $ECHO_N "(cached) $ECHO_C" >&6
17592 ac_check_lib_save_LIBS
=$LIBS
17594 cat >conftest.
$ac_ext <<_ACEOF
17597 cat confdefs.h
>>conftest.
$ac_ext
17598 cat >>conftest.
$ac_ext <<_ACEOF
17599 /* end confdefs.h. */
17601 /* Override any GCC internal prototype to avoid an error.
17602 Use char because int might match the return type of a GCC
17603 builtin and then its argument prototype would still apply. */
17607 char inflateCopy ();
17611 return inflateCopy ();
17616 rm -f conftest.
$ac_objext conftest
$ac_exeext
17617 if { (ac_try
="$ac_link"
17618 case "(($ac_try" in
17619 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17620 *) ac_try_echo=$ac_try;;
17622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17623 (eval "$ac_link") 2>conftest.er1
17625 grep -v '^ *+' conftest.er1 >conftest.err
17627 cat conftest.err >&5
17628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17629 (exit $ac_status); } && {
17630 test -z "$ac_c_werror_flag" ||
17631 test ! -s conftest.err
17632 } && test -s conftest$ac_exeext &&
17633 $as_test_x conftest$ac_exeext; then
17634 ac_cv_lib_z_inflateCopy=yes
17636 echo "$as_me: failed program was:" >&5
17637 sed 's/^/| /' conftest.$ac_ext >&5
17639 ac_cv_lib_z_inflateCopy=no
17642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17643 conftest$ac_exeext conftest.$ac_ext
17644 LIBS=$ac_check_lib_save_LIBS
17646 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
17647 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
17648 if test $ac_cv_lib_z_inflateCopy = yes; then
17650 cat >>confdefs.h <<\_ACEOF
17651 #define HAVE_ZLIB_COPY 1
17657 case $ac_sys_system/$ac_sys_release in
17659 CFLAGS="${_CUR_CFLAGS}"
17660 LDFLAGS="${_CUR_LDFLAGS}"
17664 { echo "$as_me:$LINENO: checking for hstrerror" >&5
17665 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
17666 cat >conftest.$ac_ext <<_ACEOF
17669 cat confdefs.h >>conftest.$ac_ext
17670 cat >>conftest.$ac_ext <<_ACEOF
17671 /* end confdefs.h. */
17673 #include "confdefs.h"
17679 void* p = hstrerror; hstrerror(0)
17684 rm -f conftest.$ac_objext conftest$ac_exeext
17685 if { (ac_try="$ac_link"
17686 case "(($ac_try" in
17687 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17688 *) ac_try_echo
=$ac_try;;
17690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17691 (eval "$ac_link") 2>conftest.er1
17693 grep -v '^ *+' conftest.er1
>conftest.err
17695 cat conftest.err
>&5
17696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17697 (exit $ac_status); } && {
17698 test -z "$ac_c_werror_flag" ||
17699 test ! -s conftest.err
17700 } && test -s conftest
$ac_exeext &&
17701 $as_test_x conftest
$ac_exeext; then
17703 cat >>confdefs.h
<<\_ACEOF
17704 #define HAVE_HSTRERROR 1
17707 { echo "$as_me:$LINENO: result: yes" >&5
17708 echo "${ECHO_T}yes" >&6; }
17710 echo "$as_me: failed program was:" >&5
17711 sed 's/^/| /' conftest.
$ac_ext >&5
17713 { echo "$as_me:$LINENO: result: no" >&5
17714 echo "${ECHO_T}no" >&6; }
17718 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17719 conftest
$ac_exeext conftest.
$ac_ext
17721 { echo "$as_me:$LINENO: checking for inet_aton" >&5
17722 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
17723 cat >conftest.
$ac_ext <<_ACEOF
17726 cat confdefs.h
>>conftest.
$ac_ext
17727 cat >>conftest.
$ac_ext <<_ACEOF
17728 /* end confdefs.h. */
17730 #include "confdefs.h"
17731 #include <sys/types.h>
17732 #include <sys/socket.h>
17733 #include <netinet/in.h>
17734 #include <arpa/inet.h>
17739 void* p = inet_aton;inet_aton(0,0)
17744 rm -f conftest.
$ac_objext conftest
$ac_exeext
17745 if { (ac_try
="$ac_link"
17746 case "(($ac_try" in
17747 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17748 *) ac_try_echo=$ac_try;;
17750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17751 (eval "$ac_link") 2>conftest.er1
17753 grep -v '^ *+' conftest.er1 >conftest.err
17755 cat conftest.err >&5
17756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757 (exit $ac_status); } && {
17758 test -z "$ac_c_werror_flag" ||
17759 test ! -s conftest.err
17760 } && test -s conftest$ac_exeext &&
17761 $as_test_x conftest$ac_exeext; then
17763 cat >>confdefs.h <<\_ACEOF
17764 #define HAVE_INET_ATON 1
17767 { echo "$as_me:$LINENO: result: yes" >&5
17768 echo "${ECHO_T}yes" >&6; }
17770 echo "$as_me: failed program was:" >&5
17771 sed 's/^/| /' conftest.$ac_ext >&5
17773 { echo "$as_me:$LINENO: result: no" >&5
17774 echo "${ECHO_T}no" >&6; }
17778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17779 conftest$ac_exeext conftest.$ac_ext
17781 { echo "$as_me:$LINENO: checking for inet_pton" >&5
17782 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
17783 cat >conftest.$ac_ext <<_ACEOF
17786 cat confdefs.h >>conftest.$ac_ext
17787 cat >>conftest.$ac_ext <<_ACEOF
17788 /* end confdefs.h. */
17790 #include "confdefs.h"
17791 #include <sys/types.h>
17792 #include <sys/socket.h>
17793 #include <netinet/in.h>
17794 #include <arpa/inet.h>
17799 void* p = inet_pton
17804 rm -f conftest.$ac_objext
17805 if { (ac_try="$ac_compile"
17806 case "(($ac_try" in
17807 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17808 *) ac_try_echo
=$ac_try;;
17810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17811 (eval "$ac_compile") 2>conftest.er1
17813 grep -v '^ *+' conftest.er1
>conftest.err
17815 cat conftest.err
>&5
17816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817 (exit $ac_status); } && {
17818 test -z "$ac_c_werror_flag" ||
17819 test ! -s conftest.err
17820 } && test -s conftest.
$ac_objext; then
17822 cat >>confdefs.h
<<\_ACEOF
17823 #define HAVE_INET_PTON 1
17826 { echo "$as_me:$LINENO: result: yes" >&5
17827 echo "${ECHO_T}yes" >&6; }
17829 echo "$as_me: failed program was:" >&5
17830 sed 's/^/| /' conftest.
$ac_ext >&5
17832 { echo "$as_me:$LINENO: result: no" >&5
17833 echo "${ECHO_T}no" >&6; }
17837 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17839 # On some systems, setgroups is in unistd.h, on others, in grp.h
17840 { echo "$as_me:$LINENO: checking for setgroups" >&5
17841 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
17842 cat >conftest.
$ac_ext <<_ACEOF
17845 cat confdefs.h
>>conftest.
$ac_ext
17846 cat >>conftest.
$ac_ext <<_ACEOF
17847 /* end confdefs.h. */
17849 #include "confdefs.h"
17850 #include <unistd.h>
17858 void* p = setgroups
17863 rm -f conftest.
$ac_objext
17864 if { (ac_try
="$ac_compile"
17865 case "(($ac_try" in
17866 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17867 *) ac_try_echo=$ac_try;;
17869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17870 (eval "$ac_compile") 2>conftest.er1
17872 grep -v '^ *+' conftest.er1 >conftest.err
17874 cat conftest.err >&5
17875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17876 (exit $ac_status); } && {
17877 test -z "$ac_c_werror_flag" ||
17878 test ! -s conftest.err
17879 } && test -s conftest.$ac_objext; then
17881 cat >>confdefs.h <<\_ACEOF
17882 #define HAVE_SETGROUPS 1
17885 { echo "$as_me:$LINENO: result: yes" >&5
17886 echo "${ECHO_T}yes" >&6; }
17888 echo "$as_me: failed program was:" >&5
17889 sed 's/^/| /' conftest.$ac_ext >&5
17891 { echo "$as_me:$LINENO: result: no" >&5
17892 echo "${ECHO_T}no" >&6; }
17896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17898 # check for openpty and forkpty
17901 for ac_func in openpty
17903 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
17904 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17905 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17906 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17907 echo $ECHO_N "(cached) $ECHO_C" >&6
17909 cat >conftest.$ac_ext <<_ACEOF
17912 cat confdefs.h >>conftest.$ac_ext
17913 cat >>conftest.$ac_ext <<_ACEOF
17914 /* end confdefs.h. */
17915 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17916 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17917 #define $ac_func innocuous_$ac_func
17919 /* System header to define __stub macros and hopefully few prototypes,
17920 which can conflict with char $ac_func (); below.
17921 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17922 <limits.h> exists even on freestanding compilers. */
17925 # include <limits.h>
17927 # include <assert.h>
17932 /* Override any GCC internal prototype to avoid an error.
17933 Use char because int might match the return type of a GCC
17934 builtin and then its argument prototype would still apply. */
17939 /* The GNU C library defines this for functions which it implements
17940 to always fail with ENOSYS. Some functions are actually named
17941 something starting with __ and the normal name is an alias. */
17942 #if defined __stub_$ac_func || defined __stub___$ac_func
17949 return $ac_func ();
17954 rm -f conftest.$ac_objext conftest$ac_exeext
17955 if { (ac_try="$ac_link"
17956 case "(($ac_try" in
17957 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17958 *) ac_try_echo
=$ac_try;;
17960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17961 (eval "$ac_link") 2>conftest.er1
17963 grep -v '^ *+' conftest.er1
>conftest.err
17965 cat conftest.err
>&5
17966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17967 (exit $ac_status); } && {
17968 test -z "$ac_c_werror_flag" ||
17969 test ! -s conftest.err
17970 } && test -s conftest
$ac_exeext &&
17971 $as_test_x conftest
$ac_exeext; then
17972 eval "$as_ac_var=yes"
17974 echo "$as_me: failed program was:" >&5
17975 sed 's/^/| /' conftest.
$ac_ext >&5
17977 eval "$as_ac_var=no"
17980 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17981 conftest
$ac_exeext conftest.
$ac_ext
17983 ac_res
=`eval echo '${'$as_ac_var'}'`
17984 { echo "$as_me:$LINENO: result: $ac_res" >&5
17985 echo "${ECHO_T}$ac_res" >&6; }
17986 if test `eval echo '${'$as_ac_var'}'` = yes; then
17987 cat >>confdefs.h
<<_ACEOF
17988 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17992 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
17993 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
17994 if test "${ac_cv_lib_util_openpty+set}" = set; then
17995 echo $ECHO_N "(cached) $ECHO_C" >&6
17997 ac_check_lib_save_LIBS
=$LIBS
17998 LIBS
="-lutil $LIBS"
17999 cat >conftest.
$ac_ext <<_ACEOF
18002 cat confdefs.h
>>conftest.
$ac_ext
18003 cat >>conftest.
$ac_ext <<_ACEOF
18004 /* end confdefs.h. */
18006 /* Override any GCC internal prototype to avoid an error.
18007 Use char because int might match the return type of a GCC
18008 builtin and then its argument prototype would still apply. */
18021 rm -f conftest.
$ac_objext conftest
$ac_exeext
18022 if { (ac_try
="$ac_link"
18023 case "(($ac_try" in
18024 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18025 *) ac_try_echo=$ac_try;;
18027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18028 (eval "$ac_link") 2>conftest.er1
18030 grep -v '^ *+' conftest.er1 >conftest.err
18032 cat conftest.err >&5
18033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18034 (exit $ac_status); } && {
18035 test -z "$ac_c_werror_flag" ||
18036 test ! -s conftest.err
18037 } && test -s conftest$ac_exeext &&
18038 $as_test_x conftest$ac_exeext; then
18039 ac_cv_lib_util_openpty=yes
18041 echo "$as_me: failed program was:" >&5
18042 sed 's/^/| /' conftest.$ac_ext >&5
18044 ac_cv_lib_util_openpty=no
18047 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18048 conftest$ac_exeext conftest.$ac_ext
18049 LIBS=$ac_check_lib_save_LIBS
18051 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
18052 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
18053 if test $ac_cv_lib_util_openpty = yes; then
18054 cat >>confdefs.h <<\_ACEOF
18055 #define HAVE_OPENPTY 1
18057 LIBS="$LIBS -lutil"
18059 { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
18060 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
18061 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
18062 echo $ECHO_N "(cached) $ECHO_C" >&6
18064 ac_check_lib_save_LIBS=$LIBS
18066 cat >conftest.$ac_ext <<_ACEOF
18069 cat confdefs.h >>conftest.$ac_ext
18070 cat >>conftest.$ac_ext <<_ACEOF
18071 /* end confdefs.h. */
18073 /* Override any GCC internal prototype to avoid an error.
18074 Use char because int might match the return type of a GCC
18075 builtin and then its argument prototype would still apply. */
18088 rm -f conftest.$ac_objext conftest$ac_exeext
18089 if { (ac_try="$ac_link"
18090 case "(($ac_try" in
18091 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18092 *) ac_try_echo
=$ac_try;;
18094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18095 (eval "$ac_link") 2>conftest.er1
18097 grep -v '^ *+' conftest.er1
>conftest.err
18099 cat conftest.err
>&5
18100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101 (exit $ac_status); } && {
18102 test -z "$ac_c_werror_flag" ||
18103 test ! -s conftest.err
18104 } && test -s conftest
$ac_exeext &&
18105 $as_test_x conftest
$ac_exeext; then
18106 ac_cv_lib_bsd_openpty
=yes
18108 echo "$as_me: failed program was:" >&5
18109 sed 's/^/| /' conftest.
$ac_ext >&5
18111 ac_cv_lib_bsd_openpty
=no
18114 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18115 conftest
$ac_exeext conftest.
$ac_ext
18116 LIBS
=$ac_check_lib_save_LIBS
18118 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
18119 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
18120 if test $ac_cv_lib_bsd_openpty = yes; then
18121 cat >>confdefs.h
<<\_ACEOF
18122 #define HAVE_OPENPTY 1
18135 for ac_func
in forkpty
18137 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18138 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18139 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18140 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18141 echo $ECHO_N "(cached) $ECHO_C" >&6
18143 cat >conftest.
$ac_ext <<_ACEOF
18146 cat confdefs.h
>>conftest.
$ac_ext
18147 cat >>conftest.
$ac_ext <<_ACEOF
18148 /* end confdefs.h. */
18149 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18150 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18151 #define $ac_func innocuous_$ac_func
18153 /* System header to define __stub macros and hopefully few prototypes,
18154 which can conflict with char $ac_func (); below.
18155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18156 <limits.h> exists even on freestanding compilers. */
18159 # include <limits.h>
18161 # include <assert.h>
18166 /* Override any GCC internal prototype to avoid an error.
18167 Use char because int might match the return type of a GCC
18168 builtin and then its argument prototype would still apply. */
18173 /* The GNU C library defines this for functions which it implements
18174 to always fail with ENOSYS. Some functions are actually named
18175 something starting with __ and the normal name is an alias. */
18176 #if defined __stub_$ac_func || defined __stub___$ac_func
18183 return $ac_func ();
18188 rm -f conftest.
$ac_objext conftest
$ac_exeext
18189 if { (ac_try
="$ac_link"
18190 case "(($ac_try" in
18191 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18192 *) ac_try_echo=$ac_try;;
18194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18195 (eval "$ac_link") 2>conftest.er1
18197 grep -v '^ *+' conftest.er1 >conftest.err
18199 cat conftest.err >&5
18200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18201 (exit $ac_status); } && {
18202 test -z "$ac_c_werror_flag" ||
18203 test ! -s conftest.err
18204 } && test -s conftest$ac_exeext &&
18205 $as_test_x conftest$ac_exeext; then
18206 eval "$as_ac_var=yes"
18208 echo "$as_me: failed program was:" >&5
18209 sed 's/^/| /' conftest.$ac_ext >&5
18211 eval "$as_ac_var=no"
18214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18215 conftest$ac_exeext conftest.$ac_ext
18217 ac_res=`eval echo '${'$as_ac_var'}'`
18218 { echo "$as_me:$LINENO: result: $ac_res" >&5
18219 echo "${ECHO_T}$ac_res" >&6; }
18220 if test `eval echo '${'$as_ac_var'}'` = yes; then
18221 cat >>confdefs.h <<_ACEOF
18222 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18226 { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
18227 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
18228 if test "${ac_cv_lib_util_forkpty+set}" = set; then
18229 echo $ECHO_N "(cached) $ECHO_C" >&6
18231 ac_check_lib_save_LIBS=$LIBS
18232 LIBS="-lutil $LIBS"
18233 cat >conftest.$ac_ext <<_ACEOF
18236 cat confdefs.h >>conftest.$ac_ext
18237 cat >>conftest.$ac_ext <<_ACEOF
18238 /* end confdefs.h. */
18240 /* Override any GCC internal prototype to avoid an error.
18241 Use char because int might match the return type of a GCC
18242 builtin and then its argument prototype would still apply. */
18255 rm -f conftest.$ac_objext conftest$ac_exeext
18256 if { (ac_try="$ac_link"
18257 case "(($ac_try" in
18258 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18259 *) ac_try_echo
=$ac_try;;
18261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18262 (eval "$ac_link") 2>conftest.er1
18264 grep -v '^ *+' conftest.er1
>conftest.err
18266 cat conftest.err
>&5
18267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18268 (exit $ac_status); } && {
18269 test -z "$ac_c_werror_flag" ||
18270 test ! -s conftest.err
18271 } && test -s conftest
$ac_exeext &&
18272 $as_test_x conftest
$ac_exeext; then
18273 ac_cv_lib_util_forkpty
=yes
18275 echo "$as_me: failed program was:" >&5
18276 sed 's/^/| /' conftest.
$ac_ext >&5
18278 ac_cv_lib_util_forkpty
=no
18281 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18282 conftest
$ac_exeext conftest.
$ac_ext
18283 LIBS
=$ac_check_lib_save_LIBS
18285 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
18286 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
18287 if test $ac_cv_lib_util_forkpty = yes; then
18288 cat >>confdefs.h
<<\_ACEOF
18289 #define HAVE_FORKPTY 1
18291 LIBS
="$LIBS -lutil"
18293 { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
18294 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
18295 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
18296 echo $ECHO_N "(cached) $ECHO_C" >&6
18298 ac_check_lib_save_LIBS
=$LIBS
18300 cat >conftest.
$ac_ext <<_ACEOF
18303 cat confdefs.h
>>conftest.
$ac_ext
18304 cat >>conftest.
$ac_ext <<_ACEOF
18305 /* end confdefs.h. */
18307 /* Override any GCC internal prototype to avoid an error.
18308 Use char because int might match the return type of a GCC
18309 builtin and then its argument prototype would still apply. */
18322 rm -f conftest.
$ac_objext conftest
$ac_exeext
18323 if { (ac_try
="$ac_link"
18324 case "(($ac_try" in
18325 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18326 *) ac_try_echo=$ac_try;;
18328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18329 (eval "$ac_link") 2>conftest.er1
18331 grep -v '^ *+' conftest.er1 >conftest.err
18333 cat conftest.err >&5
18334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335 (exit $ac_status); } && {
18336 test -z "$ac_c_werror_flag" ||
18337 test ! -s conftest.err
18338 } && test -s conftest$ac_exeext &&
18339 $as_test_x conftest$ac_exeext; then
18340 ac_cv_lib_bsd_forkpty=yes
18342 echo "$as_me: failed program was:" >&5
18343 sed 's/^/| /' conftest.$ac_ext >&5
18345 ac_cv_lib_bsd_forkpty=no
18348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18349 conftest$ac_exeext conftest.$ac_ext
18350 LIBS=$ac_check_lib_save_LIBS
18352 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
18353 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
18354 if test $ac_cv_lib_bsd_forkpty = yes; then
18355 cat >>confdefs.h <<\_ACEOF
18356 #define HAVE_FORKPTY 1
18371 for ac_func in memmove
18373 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18374 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18375 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18376 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18377 echo $ECHO_N "(cached) $ECHO_C" >&6
18379 cat >conftest.$ac_ext <<_ACEOF
18382 cat confdefs.h >>conftest.$ac_ext
18383 cat >>conftest.$ac_ext <<_ACEOF
18384 /* end confdefs.h. */
18385 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18386 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18387 #define $ac_func innocuous_$ac_func
18389 /* System header to define __stub macros and hopefully few prototypes,
18390 which can conflict with char $ac_func (); below.
18391 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18392 <limits.h> exists even on freestanding compilers. */
18395 # include <limits.h>
18397 # include <assert.h>
18402 /* Override any GCC internal prototype to avoid an error.
18403 Use char because int might match the return type of a GCC
18404 builtin and then its argument prototype would still apply. */
18409 /* The GNU C library defines this for functions which it implements
18410 to always fail with ENOSYS. Some functions are actually named
18411 something starting with __ and the normal name is an alias. */
18412 #if defined __stub_$ac_func || defined __stub___$ac_func
18419 return $ac_func ();
18424 rm -f conftest.$ac_objext conftest$ac_exeext
18425 if { (ac_try="$ac_link"
18426 case "(($ac_try" in
18427 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18428 *) ac_try_echo
=$ac_try;;
18430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18431 (eval "$ac_link") 2>conftest.er1
18433 grep -v '^ *+' conftest.er1
>conftest.err
18435 cat conftest.err
>&5
18436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18437 (exit $ac_status); } && {
18438 test -z "$ac_c_werror_flag" ||
18439 test ! -s conftest.err
18440 } && test -s conftest
$ac_exeext &&
18441 $as_test_x conftest
$ac_exeext; then
18442 eval "$as_ac_var=yes"
18444 echo "$as_me: failed program was:" >&5
18445 sed 's/^/| /' conftest.
$ac_ext >&5
18447 eval "$as_ac_var=no"
18450 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18451 conftest
$ac_exeext conftest.
$ac_ext
18453 ac_res
=`eval echo '${'$as_ac_var'}'`
18454 { echo "$as_me:$LINENO: result: $ac_res" >&5
18455 echo "${ECHO_T}$ac_res" >&6; }
18456 if test `eval echo '${'$as_ac_var'}'` = yes; then
18457 cat >>confdefs.h
<<_ACEOF
18458 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18465 # check for long file support functions
18472 for ac_func
in fseek64 fseeko fstatvfs ftell64 ftello statvfs
18474 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18475 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18476 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18477 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18478 echo $ECHO_N "(cached) $ECHO_C" >&6
18480 cat >conftest.
$ac_ext <<_ACEOF
18483 cat confdefs.h
>>conftest.
$ac_ext
18484 cat >>conftest.
$ac_ext <<_ACEOF
18485 /* end confdefs.h. */
18486 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18487 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18488 #define $ac_func innocuous_$ac_func
18490 /* System header to define __stub macros and hopefully few prototypes,
18491 which can conflict with char $ac_func (); below.
18492 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18493 <limits.h> exists even on freestanding compilers. */
18496 # include <limits.h>
18498 # include <assert.h>
18503 /* Override any GCC internal prototype to avoid an error.
18504 Use char because int might match the return type of a GCC
18505 builtin and then its argument prototype would still apply. */
18510 /* The GNU C library defines this for functions which it implements
18511 to always fail with ENOSYS. Some functions are actually named
18512 something starting with __ and the normal name is an alias. */
18513 #if defined __stub_$ac_func || defined __stub___$ac_func
18520 return $ac_func ();
18525 rm -f conftest.
$ac_objext conftest
$ac_exeext
18526 if { (ac_try
="$ac_link"
18527 case "(($ac_try" in
18528 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18529 *) ac_try_echo=$ac_try;;
18531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18532 (eval "$ac_link") 2>conftest.er1
18534 grep -v '^ *+' conftest.er1 >conftest.err
18536 cat conftest.err >&5
18537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18538 (exit $ac_status); } && {
18539 test -z "$ac_c_werror_flag" ||
18540 test ! -s conftest.err
18541 } && test -s conftest$ac_exeext &&
18542 $as_test_x conftest$ac_exeext; then
18543 eval "$as_ac_var=yes"
18545 echo "$as_me: failed program was:" >&5
18546 sed 's/^/| /' conftest.$ac_ext >&5
18548 eval "$as_ac_var=no"
18551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18552 conftest$ac_exeext conftest.$ac_ext
18554 ac_res=`eval echo '${'$as_ac_var'}'`
18555 { echo "$as_me:$LINENO: result: $ac_res" >&5
18556 echo "${ECHO_T}$ac_res" >&6; }
18557 if test `eval echo '${'$as_ac_var'}'` = yes; then
18558 cat >>confdefs.h <<_ACEOF
18559 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18569 for ac_func in dup2 getcwd strdup
18571 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18572 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18573 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18574 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18575 echo $ECHO_N "(cached) $ECHO_C" >&6
18577 cat >conftest.$ac_ext <<_ACEOF
18580 cat confdefs.h >>conftest.$ac_ext
18581 cat >>conftest.$ac_ext <<_ACEOF
18582 /* end confdefs.h. */
18583 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18584 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18585 #define $ac_func innocuous_$ac_func
18587 /* System header to define __stub macros and hopefully few prototypes,
18588 which can conflict with char $ac_func (); below.
18589 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18590 <limits.h> exists even on freestanding compilers. */
18593 # include <limits.h>
18595 # include <assert.h>
18600 /* Override any GCC internal prototype to avoid an error.
18601 Use char because int might match the return type of a GCC
18602 builtin and then its argument prototype would still apply. */
18607 /* The GNU C library defines this for functions which it implements
18608 to always fail with ENOSYS. Some functions are actually named
18609 something starting with __ and the normal name is an alias. */
18610 #if defined __stub_$ac_func || defined __stub___$ac_func
18617 return $ac_func ();
18622 rm -f conftest.$ac_objext conftest$ac_exeext
18623 if { (ac_try="$ac_link"
18624 case "(($ac_try" in
18625 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18626 *) ac_try_echo
=$ac_try;;
18628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18629 (eval "$ac_link") 2>conftest.er1
18631 grep -v '^ *+' conftest.er1
>conftest.err
18633 cat conftest.err
>&5
18634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18635 (exit $ac_status); } && {
18636 test -z "$ac_c_werror_flag" ||
18637 test ! -s conftest.err
18638 } && test -s conftest
$ac_exeext &&
18639 $as_test_x conftest
$ac_exeext; then
18640 eval "$as_ac_var=yes"
18642 echo "$as_me: failed program was:" >&5
18643 sed 's/^/| /' conftest.
$ac_ext >&5
18645 eval "$as_ac_var=no"
18648 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18649 conftest
$ac_exeext conftest.
$ac_ext
18651 ac_res
=`eval echo '${'$as_ac_var'}'`
18652 { echo "$as_me:$LINENO: result: $ac_res" >&5
18653 echo "${ECHO_T}$ac_res" >&6; }
18654 if test `eval echo '${'$as_ac_var'}'` = yes; then
18655 cat >>confdefs.h
<<_ACEOF
18656 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18660 case " $LIBOBJS " in
18661 *" $ac_func.$ac_objext "* ) ;;
18662 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
18671 for ac_func
in getpgrp
18673 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18674 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18675 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18676 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18677 echo $ECHO_N "(cached) $ECHO_C" >&6
18679 cat >conftest.
$ac_ext <<_ACEOF
18682 cat confdefs.h
>>conftest.
$ac_ext
18683 cat >>conftest.
$ac_ext <<_ACEOF
18684 /* end confdefs.h. */
18685 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18687 #define $ac_func innocuous_$ac_func
18689 /* System header to define __stub macros and hopefully few prototypes,
18690 which can conflict with char $ac_func (); below.
18691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18692 <limits.h> exists even on freestanding compilers. */
18695 # include <limits.h>
18697 # include <assert.h>
18702 /* Override any GCC internal prototype to avoid an error.
18703 Use char because int might match the return type of a GCC
18704 builtin and then its argument prototype would still apply. */
18709 /* The GNU C library defines this for functions which it implements
18710 to always fail with ENOSYS. Some functions are actually named
18711 something starting with __ and the normal name is an alias. */
18712 #if defined __stub_$ac_func || defined __stub___$ac_func
18719 return $ac_func ();
18724 rm -f conftest.
$ac_objext conftest
$ac_exeext
18725 if { (ac_try
="$ac_link"
18726 case "(($ac_try" in
18727 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18728 *) ac_try_echo=$ac_try;;
18730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18731 (eval "$ac_link") 2>conftest.er1
18733 grep -v '^ *+' conftest.er1 >conftest.err
18735 cat conftest.err >&5
18736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18737 (exit $ac_status); } && {
18738 test -z "$ac_c_werror_flag" ||
18739 test ! -s conftest.err
18740 } && test -s conftest$ac_exeext &&
18741 $as_test_x conftest$ac_exeext; then
18742 eval "$as_ac_var=yes"
18744 echo "$as_me: failed program was:" >&5
18745 sed 's/^/| /' conftest.$ac_ext >&5
18747 eval "$as_ac_var=no"
18750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18751 conftest$ac_exeext conftest.$ac_ext
18753 ac_res=`eval echo '${'$as_ac_var'}'`
18754 { echo "$as_me:$LINENO: result: $ac_res" >&5
18755 echo "${ECHO_T}$ac_res" >&6; }
18756 if test `eval echo '${'$as_ac_var'}'` = yes; then
18757 cat >>confdefs.h <<_ACEOF
18758 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18760 cat >conftest.$ac_ext <<_ACEOF
18763 cat confdefs.h >>conftest.$ac_ext
18764 cat >>conftest.$ac_ext <<_ACEOF
18765 /* end confdefs.h. */
18766 #include <unistd.h>
18775 rm -f conftest.$ac_objext
18776 if { (ac_try="$ac_compile"
18777 case "(($ac_try" in
18778 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18779 *) ac_try_echo
=$ac_try;;
18781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18782 (eval "$ac_compile") 2>conftest.er1
18784 grep -v '^ *+' conftest.er1
>conftest.err
18786 cat conftest.err
>&5
18787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18788 (exit $ac_status); } && {
18789 test -z "$ac_c_werror_flag" ||
18790 test ! -s conftest.err
18791 } && test -s conftest.
$ac_objext; then
18793 cat >>confdefs.h
<<\_ACEOF
18794 #define GETPGRP_HAVE_ARG 1
18799 echo "$as_me: failed program was:" >&5
18800 sed 's/^/| /' conftest.
$ac_ext >&5
18805 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18811 for ac_func
in setpgrp
18813 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18814 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18815 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18816 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18817 echo $ECHO_N "(cached) $ECHO_C" >&6
18819 cat >conftest.
$ac_ext <<_ACEOF
18822 cat confdefs.h
>>conftest.
$ac_ext
18823 cat >>conftest.
$ac_ext <<_ACEOF
18824 /* end confdefs.h. */
18825 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18826 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18827 #define $ac_func innocuous_$ac_func
18829 /* System header to define __stub macros and hopefully few prototypes,
18830 which can conflict with char $ac_func (); below.
18831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18832 <limits.h> exists even on freestanding compilers. */
18835 # include <limits.h>
18837 # include <assert.h>
18842 /* Override any GCC internal prototype to avoid an error.
18843 Use char because int might match the return type of a GCC
18844 builtin and then its argument prototype would still apply. */
18849 /* The GNU C library defines this for functions which it implements
18850 to always fail with ENOSYS. Some functions are actually named
18851 something starting with __ and the normal name is an alias. */
18852 #if defined __stub_$ac_func || defined __stub___$ac_func
18859 return $ac_func ();
18864 rm -f conftest.
$ac_objext conftest
$ac_exeext
18865 if { (ac_try
="$ac_link"
18866 case "(($ac_try" in
18867 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18868 *) ac_try_echo=$ac_try;;
18870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18871 (eval "$ac_link") 2>conftest.er1
18873 grep -v '^ *+' conftest.er1 >conftest.err
18875 cat conftest.err >&5
18876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18877 (exit $ac_status); } && {
18878 test -z "$ac_c_werror_flag" ||
18879 test ! -s conftest.err
18880 } && test -s conftest$ac_exeext &&
18881 $as_test_x conftest$ac_exeext; then
18882 eval "$as_ac_var=yes"
18884 echo "$as_me: failed program was:" >&5
18885 sed 's/^/| /' conftest.$ac_ext >&5
18887 eval "$as_ac_var=no"
18890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18891 conftest$ac_exeext conftest.$ac_ext
18893 ac_res=`eval echo '${'$as_ac_var'}'`
18894 { echo "$as_me:$LINENO: result: $ac_res" >&5
18895 echo "${ECHO_T}$ac_res" >&6; }
18896 if test `eval echo '${'$as_ac_var'}'` = yes; then
18897 cat >>confdefs.h <<_ACEOF
18898 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18900 cat >conftest.$ac_ext <<_ACEOF
18903 cat confdefs.h >>conftest.$ac_ext
18904 cat >>conftest.$ac_ext <<_ACEOF
18905 /* end confdefs.h. */
18906 #include <unistd.h>
18915 rm -f conftest.$ac_objext
18916 if { (ac_try="$ac_compile"
18917 case "(($ac_try" in
18918 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18919 *) ac_try_echo
=$ac_try;;
18921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18922 (eval "$ac_compile") 2>conftest.er1
18924 grep -v '^ *+' conftest.er1
>conftest.err
18926 cat conftest.err
>&5
18927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18928 (exit $ac_status); } && {
18929 test -z "$ac_c_werror_flag" ||
18930 test ! -s conftest.err
18931 } && test -s conftest.
$ac_objext; then
18933 cat >>confdefs.h
<<\_ACEOF
18934 #define SETPGRP_HAVE_ARG 1
18939 echo "$as_me: failed program was:" >&5
18940 sed 's/^/| /' conftest.
$ac_ext >&5
18945 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18951 for ac_func
in gettimeofday
18953 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18954 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18955 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18956 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18957 echo $ECHO_N "(cached) $ECHO_C" >&6
18959 cat >conftest.
$ac_ext <<_ACEOF
18962 cat confdefs.h
>>conftest.
$ac_ext
18963 cat >>conftest.
$ac_ext <<_ACEOF
18964 /* end confdefs.h. */
18965 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18966 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18967 #define $ac_func innocuous_$ac_func
18969 /* System header to define __stub macros and hopefully few prototypes,
18970 which can conflict with char $ac_func (); below.
18971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18972 <limits.h> exists even on freestanding compilers. */
18975 # include <limits.h>
18977 # include <assert.h>
18982 /* Override any GCC internal prototype to avoid an error.
18983 Use char because int might match the return type of a GCC
18984 builtin and then its argument prototype would still apply. */
18989 /* The GNU C library defines this for functions which it implements
18990 to always fail with ENOSYS. Some functions are actually named
18991 something starting with __ and the normal name is an alias. */
18992 #if defined __stub_$ac_func || defined __stub___$ac_func
18999 return $ac_func ();
19004 rm -f conftest.
$ac_objext conftest
$ac_exeext
19005 if { (ac_try
="$ac_link"
19006 case "(($ac_try" in
19007 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19008 *) ac_try_echo=$ac_try;;
19010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19011 (eval "$ac_link") 2>conftest.er1
19013 grep -v '^ *+' conftest.er1 >conftest.err
19015 cat conftest.err >&5
19016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19017 (exit $ac_status); } && {
19018 test -z "$ac_c_werror_flag" ||
19019 test ! -s conftest.err
19020 } && test -s conftest$ac_exeext &&
19021 $as_test_x conftest$ac_exeext; then
19022 eval "$as_ac_var=yes"
19024 echo "$as_me: failed program was:" >&5
19025 sed 's/^/| /' conftest.$ac_ext >&5
19027 eval "$as_ac_var=no"
19030 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19031 conftest$ac_exeext conftest.$ac_ext
19033 ac_res=`eval echo '${'$as_ac_var'}'`
19034 { echo "$as_me:$LINENO: result: $ac_res" >&5
19035 echo "${ECHO_T}$ac_res" >&6; }
19036 if test `eval echo '${'$as_ac_var'}'` = yes; then
19037 cat >>confdefs.h <<_ACEOF
19038 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
19040 cat >conftest.$ac_ext <<_ACEOF
19043 cat confdefs.h >>conftest.$ac_ext
19044 cat >>conftest.$ac_ext <<_ACEOF
19045 /* end confdefs.h. */
19046 #include <sys/time.h>
19050 gettimeofday((struct timeval*)0,(struct timezone*)0);
19055 rm -f conftest.$ac_objext
19056 if { (ac_try="$ac_compile"
19057 case "(($ac_try" in
19058 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19059 *) ac_try_echo
=$ac_try;;
19061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19062 (eval "$ac_compile") 2>conftest.er1
19064 grep -v '^ *+' conftest.er1
>conftest.err
19066 cat conftest.err
>&5
19067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068 (exit $ac_status); } && {
19069 test -z "$ac_c_werror_flag" ||
19070 test ! -s conftest.err
19071 } && test -s conftest.
$ac_objext; then
19074 echo "$as_me: failed program was:" >&5
19075 sed 's/^/| /' conftest.
$ac_ext >&5
19078 cat >>confdefs.h
<<\_ACEOF
19079 #define GETTIMEOFDAY_NO_TZ 1
19085 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19091 { echo "$as_me:$LINENO: checking for major" >&5
19092 echo $ECHO_N "checking for major... $ECHO_C" >&6; }
19093 cat >conftest.
$ac_ext <<_ACEOF
19096 cat confdefs.h
>>conftest.
$ac_ext
19097 cat >>conftest.
$ac_ext <<_ACEOF
19098 /* end confdefs.h. */
19100 #if defined(MAJOR_IN_MKDEV)
19101 #include <sys/mkdev.h>
19102 #elif defined(MAJOR_IN_SYSMACROS)
19103 #include <sys/sysmacros.h>
19105 #include <sys/types.h>
19112 makedev(major(0),minor(0));
19118 rm -f conftest.
$ac_objext conftest
$ac_exeext
19119 if { (ac_try
="$ac_link"
19120 case "(($ac_try" in
19121 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19122 *) ac_try_echo=$ac_try;;
19124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19125 (eval "$ac_link") 2>conftest.er1
19127 grep -v '^ *+' conftest.er1 >conftest.err
19129 cat conftest.err >&5
19130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131 (exit $ac_status); } && {
19132 test -z "$ac_c_werror_flag" ||
19133 test ! -s conftest.err
19134 } && test -s conftest$ac_exeext &&
19135 $as_test_x conftest$ac_exeext; then
19138 cat >>confdefs.h <<\_ACEOF
19139 #define HAVE_DEVICE_MACROS 1
19142 { echo "$as_me:$LINENO: result: yes" >&5
19143 echo "${ECHO_T}yes" >&6; }
19146 echo "$as_me: failed program was:" >&5
19147 sed 's/^/| /' conftest.$ac_ext >&5
19150 { echo "$as_me:$LINENO: result: no" >&5
19151 echo "${ECHO_T}no" >&6; }
19155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19156 conftest$ac_exeext conftest.$ac_ext
19158 # On OSF/1 V5.1, getaddrinfo is available, but a define
19159 # for [no]getaddrinfo in netdb.h.
19160 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
19161 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
19162 cat >conftest.$ac_ext <<_ACEOF
19165 cat confdefs.h >>conftest.$ac_ext
19166 cat >>conftest.$ac_ext <<_ACEOF
19167 /* end confdefs.h. */
19169 #include <sys/types.h>
19170 #include <sys/socket.h>
19178 getaddrinfo(NULL, NULL, NULL, NULL);
19184 rm -f conftest.$ac_objext conftest$ac_exeext
19185 if { (ac_try="$ac_link"
19186 case "(($ac_try" in
19187 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19188 *) ac_try_echo
=$ac_try;;
19190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19191 (eval "$ac_link") 2>conftest.er1
19193 grep -v '^ *+' conftest.er1
>conftest.err
19195 cat conftest.err
>&5
19196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19197 (exit $ac_status); } && {
19198 test -z "$ac_c_werror_flag" ||
19199 test ! -s conftest.err
19200 } && test -s conftest
$ac_exeext &&
19201 $as_test_x conftest
$ac_exeext; then
19203 { echo "$as_me:$LINENO: result: yes" >&5
19204 echo "${ECHO_T}yes" >&6; }
19205 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
19206 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
19207 if test "$cross_compiling" = yes; then
19208 { echo "$as_me:$LINENO: result: buggy" >&5
19209 echo "${ECHO_T}buggy" >&6; }
19210 buggygetaddrinfo
=yes
19212 cat >conftest.
$ac_ext <<_ACEOF
19215 cat confdefs.h
>>conftest.
$ac_ext
19216 cat >>conftest.
$ac_ext <<_ACEOF
19217 /* end confdefs.h. */
19219 #include <sys/types.h>
19221 #include <string.h>
19222 #include <sys/socket.h>
19223 #include <netinet/in.h>
19227 int passive, gaierr, inet4 = 0, inet6 = 0;
19228 struct addrinfo hints, *ai, *aitop;
19229 char straddr[INET6_ADDRSTRLEN], strport[16];
19231 for (passive = 0; passive <= 1; passive++) {
19232 memset(&hints, 0, sizeof(hints));
19233 hints.ai_family = AF_UNSPEC;
19234 hints.ai_flags = passive ? AI_PASSIVE : 0;
19235 hints.ai_socktype = SOCK_STREAM;
19236 hints.ai_protocol = IPPROTO_TCP;
19237 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
19238 (void)gai_strerror(gaierr);
19241 for (ai = aitop; ai; ai = ai->ai_next) {
19242 if (ai->ai_addr == NULL ||
19243 ai->ai_addrlen == 0 ||
19244 getnameinfo(ai->ai_addr, ai->ai_addrlen,
19245 straddr, sizeof(straddr), strport, sizeof(strport),
19246 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
19249 switch (ai->ai_family) {
19251 if (strcmp(strport, "54321") != 0) {
19255 if (strcmp(straddr, "0.0.0.0") != 0) {
19259 if (strcmp(straddr, "127.0.0.1") != 0) {
19266 if (strcmp(strport, "54321") != 0) {
19270 if (strcmp(straddr, "::") != 0) {
19274 if (strcmp(straddr, "::1") != 0) {
19284 /* another family support? */
19290 if (!(inet4 == 0 || inet4 == 2))
19292 if (!(inet6 == 0 || inet6 == 2))
19296 freeaddrinfo(aitop);
19301 freeaddrinfo(aitop);
19306 rm -f conftest
$ac_exeext
19307 if { (ac_try
="$ac_link"
19308 case "(($ac_try" in
19309 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19310 *) ac_try_echo=$ac_try;;
19312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19313 (eval "$ac_link") 2>&5
19315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19316 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19317 { (case "(($ac_try" in
19318 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19319 *) ac_try_echo
=$ac_try;;
19321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19322 (eval "$ac_try") 2>&5
19324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19325 (exit $ac_status); }; }; then
19326 { echo "$as_me:$LINENO: result: good" >&5
19327 echo "${ECHO_T}good" >&6; }
19328 buggygetaddrinfo
=no
19330 echo "$as_me: program exited with status $ac_status" >&5
19331 echo "$as_me: failed program was:" >&5
19332 sed 's/^/| /' conftest.
$ac_ext >&5
19334 ( exit $ac_status )
19335 { echo "$as_me:$LINENO: result: buggy" >&5
19336 echo "${ECHO_T}buggy" >&6; }
19337 buggygetaddrinfo
=yes
19339 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19344 echo "$as_me: failed program was:" >&5
19345 sed 's/^/| /' conftest.
$ac_ext >&5
19348 { echo "$as_me:$LINENO: result: no" >&5
19349 echo "${ECHO_T}no" >&6; }
19350 buggygetaddrinfo
=yes
19354 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19355 conftest
$ac_exeext conftest.
$ac_ext
19357 if test "$buggygetaddrinfo" = "yes"; then
19358 if test "$ipv6" = "yes"; then
19359 echo 'Fatal: You must get working getaddrinfo() function.'
19360 echo ' or you can specify "--disable-ipv6"'.
19365 cat >>confdefs.h
<<\_ACEOF
19366 #define HAVE_GETADDRINFO 1
19371 for ac_func
in getnameinfo
19373 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19374 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19375 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19376 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19377 echo $ECHO_N "(cached) $ECHO_C" >&6
19379 cat >conftest.
$ac_ext <<_ACEOF
19382 cat confdefs.h
>>conftest.
$ac_ext
19383 cat >>conftest.
$ac_ext <<_ACEOF
19384 /* end confdefs.h. */
19385 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19386 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19387 #define $ac_func innocuous_$ac_func
19389 /* System header to define __stub macros and hopefully few prototypes,
19390 which can conflict with char $ac_func (); below.
19391 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19392 <limits.h> exists even on freestanding compilers. */
19395 # include <limits.h>
19397 # include <assert.h>
19402 /* Override any GCC internal prototype to avoid an error.
19403 Use char because int might match the return type of a GCC
19404 builtin and then its argument prototype would still apply. */
19409 /* The GNU C library defines this for functions which it implements
19410 to always fail with ENOSYS. Some functions are actually named
19411 something starting with __ and the normal name is an alias. */
19412 #if defined __stub_$ac_func || defined __stub___$ac_func
19419 return $ac_func ();
19424 rm -f conftest.
$ac_objext conftest
$ac_exeext
19425 if { (ac_try
="$ac_link"
19426 case "(($ac_try" in
19427 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19428 *) ac_try_echo=$ac_try;;
19430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19431 (eval "$ac_link") 2>conftest.er1
19433 grep -v '^ *+' conftest.er1 >conftest.err
19435 cat conftest.err >&5
19436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437 (exit $ac_status); } && {
19438 test -z "$ac_c_werror_flag" ||
19439 test ! -s conftest.err
19440 } && test -s conftest$ac_exeext &&
19441 $as_test_x conftest$ac_exeext; then
19442 eval "$as_ac_var=yes"
19444 echo "$as_me: failed program was:" >&5
19445 sed 's/^/| /' conftest.$ac_ext >&5
19447 eval "$as_ac_var=no"
19450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19451 conftest$ac_exeext conftest.$ac_ext
19453 ac_res=`eval echo '${'$as_ac_var'}'`
19454 { echo "$as_me:$LINENO: result: $ac_res" >&5
19455 echo "${ECHO_T}$ac_res" >&6; }
19456 if test `eval echo '${'$as_ac_var'}'` = yes; then
19457 cat >>confdefs.h <<_ACEOF
19458 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
19465 # checks for structures
19466 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19467 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
19468 if test "${ac_cv_header_time+set}" = set; then
19469 echo $ECHO_N "(cached) $ECHO_C" >&6
19471 cat >conftest.$ac_ext <<_ACEOF
19474 cat confdefs.h >>conftest.$ac_ext
19475 cat >>conftest.$ac_ext <<_ACEOF
19476 /* end confdefs.h. */
19477 #include <sys/types.h>
19478 #include <sys/time.h>
19484 if ((struct tm *) 0)
19490 rm -f conftest.$ac_objext
19491 if { (ac_try="$ac_compile"
19492 case "(($ac_try" in
19493 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19494 *) ac_try_echo
=$ac_try;;
19496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19497 (eval "$ac_compile") 2>conftest.er1
19499 grep -v '^ *+' conftest.er1
>conftest.err
19501 cat conftest.err
>&5
19502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503 (exit $ac_status); } && {
19504 test -z "$ac_c_werror_flag" ||
19505 test ! -s conftest.err
19506 } && test -s conftest.
$ac_objext; then
19507 ac_cv_header_time
=yes
19509 echo "$as_me: failed program was:" >&5
19510 sed 's/^/| /' conftest.
$ac_ext >&5
19512 ac_cv_header_time
=no
19515 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19517 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19518 echo "${ECHO_T}$ac_cv_header_time" >&6; }
19519 if test $ac_cv_header_time = yes; then
19521 cat >>confdefs.h
<<\_ACEOF
19522 #define TIME_WITH_SYS_TIME 1
19527 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19528 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
19529 if test "${ac_cv_struct_tm+set}" = set; then
19530 echo $ECHO_N "(cached) $ECHO_C" >&6
19532 cat >conftest.
$ac_ext <<_ACEOF
19535 cat confdefs.h
>>conftest.
$ac_ext
19536 cat >>conftest.
$ac_ext <<_ACEOF
19537 /* end confdefs.h. */
19538 #include <sys/types.h>
19545 int *p = &tm.tm_sec;
19551 rm -f conftest.
$ac_objext
19552 if { (ac_try
="$ac_compile"
19553 case "(($ac_try" in
19554 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19555 *) ac_try_echo=$ac_try;;
19557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19558 (eval "$ac_compile") 2>conftest.er1
19560 grep -v '^ *+' conftest.er1 >conftest.err
19562 cat conftest.err >&5
19563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19564 (exit $ac_status); } && {
19565 test -z "$ac_c_werror_flag" ||
19566 test ! -s conftest.err
19567 } && test -s conftest.$ac_objext; then
19568 ac_cv_struct_tm=time.h
19570 echo "$as_me: failed program was:" >&5
19571 sed 's/^/| /' conftest.$ac_ext >&5
19573 ac_cv_struct_tm=sys/time.h
19576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19578 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19579 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
19580 if test $ac_cv_struct_tm = sys/time.h; then
19582 cat >>confdefs.h <<\_ACEOF
19583 #define TM_IN_SYS_TIME 1
19588 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
19589 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
19590 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
19591 echo $ECHO_N "(cached) $ECHO_C" >&6
19593 cat >conftest.$ac_ext <<_ACEOF
19596 cat confdefs.h >>conftest.$ac_ext
19597 cat >>conftest.$ac_ext <<_ACEOF
19598 /* end confdefs.h. */
19599 #include <sys/types.h>
19600 #include <$ac_cv_struct_tm>
19606 static struct tm ac_aggr;
19607 if (ac_aggr.tm_zone)
19613 rm -f conftest.$ac_objext
19614 if { (ac_try="$ac_compile"
19615 case "(($ac_try" in
19616 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19617 *) ac_try_echo
=$ac_try;;
19619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19620 (eval "$ac_compile") 2>conftest.er1
19622 grep -v '^ *+' conftest.er1
>conftest.err
19624 cat conftest.err
>&5
19625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19626 (exit $ac_status); } && {
19627 test -z "$ac_c_werror_flag" ||
19628 test ! -s conftest.err
19629 } && test -s conftest.
$ac_objext; then
19630 ac_cv_member_struct_tm_tm_zone
=yes
19632 echo "$as_me: failed program was:" >&5
19633 sed 's/^/| /' conftest.
$ac_ext >&5
19635 cat >conftest.
$ac_ext <<_ACEOF
19638 cat confdefs.h
>>conftest.
$ac_ext
19639 cat >>conftest.
$ac_ext <<_ACEOF
19640 /* end confdefs.h. */
19641 #include <sys/types.h>
19642 #include <$ac_cv_struct_tm>
19648 static struct tm ac_aggr;
19649 if (sizeof ac_aggr.tm_zone)
19655 rm -f conftest.
$ac_objext
19656 if { (ac_try
="$ac_compile"
19657 case "(($ac_try" in
19658 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19659 *) ac_try_echo=$ac_try;;
19661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19662 (eval "$ac_compile") 2>conftest.er1
19664 grep -v '^ *+' conftest.er1 >conftest.err
19666 cat conftest.err >&5
19667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19668 (exit $ac_status); } && {
19669 test -z "$ac_c_werror_flag" ||
19670 test ! -s conftest.err
19671 } && test -s conftest.$ac_objext; then
19672 ac_cv_member_struct_tm_tm_zone=yes
19674 echo "$as_me: failed program was:" >&5
19675 sed 's/^/| /' conftest.$ac_ext >&5
19677 ac_cv_member_struct_tm_tm_zone=no
19680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19685 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
19686 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
19687 if test $ac_cv_member_struct_tm_tm_zone = yes; then
19689 cat >>confdefs.h <<_ACEOF
19690 #define HAVE_STRUCT_TM_TM_ZONE 1
19696 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19698 cat >>confdefs.h <<\_ACEOF
19699 #define HAVE_TM_ZONE 1
19703 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
19704 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
19705 if test "${ac_cv_have_decl_tzname+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. */
19727 rm -f conftest.$ac_objext
19728 if { (ac_try="$ac_compile"
19729 case "(($ac_try" in
19730 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19731 *) ac_try_echo
=$ac_try;;
19733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19734 (eval "$ac_compile") 2>conftest.er1
19736 grep -v '^ *+' conftest.er1
>conftest.err
19738 cat conftest.err
>&5
19739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19740 (exit $ac_status); } && {
19741 test -z "$ac_c_werror_flag" ||
19742 test ! -s conftest.err
19743 } && test -s conftest.
$ac_objext; then
19744 ac_cv_have_decl_tzname
=yes
19746 echo "$as_me: failed program was:" >&5
19747 sed 's/^/| /' conftest.
$ac_ext >&5
19749 ac_cv_have_decl_tzname
=no
19752 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19754 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
19755 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
19756 if test $ac_cv_have_decl_tzname = yes; then
19758 cat >>confdefs.h
<<_ACEOF
19759 #define HAVE_DECL_TZNAME 1
19764 cat >>confdefs.h
<<_ACEOF
19765 #define HAVE_DECL_TZNAME 0
19772 { echo "$as_me:$LINENO: checking for tzname" >&5
19773 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
19774 if test "${ac_cv_var_tzname+set}" = set; then
19775 echo $ECHO_N "(cached) $ECHO_C" >&6
19777 cat >conftest.
$ac_ext <<_ACEOF
19780 cat confdefs.h
>>conftest.
$ac_ext
19781 cat >>conftest.
$ac_ext <<_ACEOF
19782 /* end confdefs.h. */
19784 #if !HAVE_DECL_TZNAME
19785 extern char *tzname[];
19791 return tzname[0][0];
19796 rm -f conftest.
$ac_objext conftest
$ac_exeext
19797 if { (ac_try
="$ac_link"
19798 case "(($ac_try" in
19799 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19800 *) ac_try_echo=$ac_try;;
19802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19803 (eval "$ac_link") 2>conftest.er1
19805 grep -v '^ *+' conftest.er1 >conftest.err
19807 cat conftest.err >&5
19808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19809 (exit $ac_status); } && {
19810 test -z "$ac_c_werror_flag" ||
19811 test ! -s conftest.err
19812 } && test -s conftest$ac_exeext &&
19813 $as_test_x conftest$ac_exeext; then
19814 ac_cv_var_tzname=yes
19816 echo "$as_me: failed program was:" >&5
19817 sed 's/^/| /' conftest.$ac_ext >&5
19819 ac_cv_var_tzname=no
19822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19823 conftest$ac_exeext conftest.$ac_ext
19825 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
19826 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
19827 if test $ac_cv_var_tzname = yes; then
19829 cat >>confdefs.h <<\_ACEOF
19830 #define HAVE_TZNAME 1
19836 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
19837 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
19838 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
19839 echo $ECHO_N "(cached) $ECHO_C" >&6
19841 cat >conftest.$ac_ext <<_ACEOF
19844 cat confdefs.h >>conftest.$ac_ext
19845 cat >>conftest.$ac_ext <<_ACEOF
19846 /* end confdefs.h. */
19847 $ac_includes_default
19851 static struct stat ac_aggr;
19852 if (ac_aggr.st_rdev)
19858 rm -f conftest.$ac_objext
19859 if { (ac_try="$ac_compile"
19860 case "(($ac_try" in
19861 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19862 *) ac_try_echo
=$ac_try;;
19864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19865 (eval "$ac_compile") 2>conftest.er1
19867 grep -v '^ *+' conftest.er1
>conftest.err
19869 cat conftest.err
>&5
19870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19871 (exit $ac_status); } && {
19872 test -z "$ac_c_werror_flag" ||
19873 test ! -s conftest.err
19874 } && test -s conftest.
$ac_objext; then
19875 ac_cv_member_struct_stat_st_rdev
=yes
19877 echo "$as_me: failed program was:" >&5
19878 sed 's/^/| /' conftest.
$ac_ext >&5
19880 cat >conftest.
$ac_ext <<_ACEOF
19883 cat confdefs.h
>>conftest.
$ac_ext
19884 cat >>conftest.
$ac_ext <<_ACEOF
19885 /* end confdefs.h. */
19886 $ac_includes_default
19890 static struct stat ac_aggr;
19891 if (sizeof ac_aggr.st_rdev)
19897 rm -f conftest.
$ac_objext
19898 if { (ac_try
="$ac_compile"
19899 case "(($ac_try" in
19900 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19901 *) ac_try_echo=$ac_try;;
19903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19904 (eval "$ac_compile") 2>conftest.er1
19906 grep -v '^ *+' conftest.er1 >conftest.err
19908 cat conftest.err >&5
19909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19910 (exit $ac_status); } && {
19911 test -z "$ac_c_werror_flag" ||
19912 test ! -s conftest.err
19913 } && test -s conftest.$ac_objext; then
19914 ac_cv_member_struct_stat_st_rdev=yes
19916 echo "$as_me: failed program was:" >&5
19917 sed 's/^/| /' conftest.$ac_ext >&5
19919 ac_cv_member_struct_stat_st_rdev=no
19922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19927 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
19928 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
19929 if test $ac_cv_member_struct_stat_st_rdev = yes; then
19931 cat >>confdefs.h <<_ACEOF
19932 #define HAVE_STRUCT_STAT_ST_RDEV 1
19938 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
19939 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
19940 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
19941 echo $ECHO_N "(cached) $ECHO_C" >&6
19943 cat >conftest.$ac_ext <<_ACEOF
19946 cat confdefs.h >>conftest.$ac_ext
19947 cat >>conftest.$ac_ext <<_ACEOF
19948 /* end confdefs.h. */
19949 $ac_includes_default
19953 static struct stat ac_aggr;
19954 if (ac_aggr.st_blksize)
19960 rm -f conftest.$ac_objext
19961 if { (ac_try="$ac_compile"
19962 case "(($ac_try" in
19963 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19964 *) ac_try_echo
=$ac_try;;
19966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19967 (eval "$ac_compile") 2>conftest.er1
19969 grep -v '^ *+' conftest.er1
>conftest.err
19971 cat conftest.err
>&5
19972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19973 (exit $ac_status); } && {
19974 test -z "$ac_c_werror_flag" ||
19975 test ! -s conftest.err
19976 } && test -s conftest.
$ac_objext; then
19977 ac_cv_member_struct_stat_st_blksize
=yes
19979 echo "$as_me: failed program was:" >&5
19980 sed 's/^/| /' conftest.
$ac_ext >&5
19982 cat >conftest.
$ac_ext <<_ACEOF
19985 cat confdefs.h
>>conftest.
$ac_ext
19986 cat >>conftest.
$ac_ext <<_ACEOF
19987 /* end confdefs.h. */
19988 $ac_includes_default
19992 static struct stat ac_aggr;
19993 if (sizeof ac_aggr.st_blksize)
19999 rm -f conftest.
$ac_objext
20000 if { (ac_try
="$ac_compile"
20001 case "(($ac_try" in
20002 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20003 *) ac_try_echo=$ac_try;;
20005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20006 (eval "$ac_compile") 2>conftest.er1
20008 grep -v '^ *+' conftest.er1 >conftest.err
20010 cat conftest.err >&5
20011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012 (exit $ac_status); } && {
20013 test -z "$ac_c_werror_flag" ||
20014 test ! -s conftest.err
20015 } && test -s conftest.$ac_objext; then
20016 ac_cv_member_struct_stat_st_blksize=yes
20018 echo "$as_me: failed program was:" >&5
20019 sed 's/^/| /' conftest.$ac_ext >&5
20021 ac_cv_member_struct_stat_st_blksize=no
20024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20029 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
20030 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
20031 if test $ac_cv_member_struct_stat_st_blksize = yes; then
20033 cat >>confdefs.h <<_ACEOF
20034 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
20040 { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
20041 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
20042 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
20043 echo $ECHO_N "(cached) $ECHO_C" >&6
20045 cat >conftest.$ac_ext <<_ACEOF
20048 cat confdefs.h >>conftest.$ac_ext
20049 cat >>conftest.$ac_ext <<_ACEOF
20050 /* end confdefs.h. */
20051 $ac_includes_default
20055 static struct stat ac_aggr;
20056 if (ac_aggr.st_flags)
20062 rm -f conftest.$ac_objext
20063 if { (ac_try="$ac_compile"
20064 case "(($ac_try" in
20065 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20066 *) ac_try_echo
=$ac_try;;
20068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20069 (eval "$ac_compile") 2>conftest.er1
20071 grep -v '^ *+' conftest.er1
>conftest.err
20073 cat conftest.err
>&5
20074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20075 (exit $ac_status); } && {
20076 test -z "$ac_c_werror_flag" ||
20077 test ! -s conftest.err
20078 } && test -s conftest.
$ac_objext; then
20079 ac_cv_member_struct_stat_st_flags
=yes
20081 echo "$as_me: failed program was:" >&5
20082 sed 's/^/| /' conftest.
$ac_ext >&5
20084 cat >conftest.
$ac_ext <<_ACEOF
20087 cat confdefs.h
>>conftest.
$ac_ext
20088 cat >>conftest.
$ac_ext <<_ACEOF
20089 /* end confdefs.h. */
20090 $ac_includes_default
20094 static struct stat ac_aggr;
20095 if (sizeof ac_aggr.st_flags)
20101 rm -f conftest.
$ac_objext
20102 if { (ac_try
="$ac_compile"
20103 case "(($ac_try" in
20104 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20105 *) ac_try_echo=$ac_try;;
20107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20108 (eval "$ac_compile") 2>conftest.er1
20110 grep -v '^ *+' conftest.er1 >conftest.err
20112 cat conftest.err >&5
20113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114 (exit $ac_status); } && {
20115 test -z "$ac_c_werror_flag" ||
20116 test ! -s conftest.err
20117 } && test -s conftest.$ac_objext; then
20118 ac_cv_member_struct_stat_st_flags=yes
20120 echo "$as_me: failed program was:" >&5
20121 sed 's/^/| /' conftest.$ac_ext >&5
20123 ac_cv_member_struct_stat_st_flags=no
20126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20131 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
20132 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
20133 if test $ac_cv_member_struct_stat_st_flags = yes; then
20135 cat >>confdefs.h <<_ACEOF
20136 #define HAVE_STRUCT_STAT_ST_FLAGS 1
20142 { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
20143 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
20144 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
20145 echo $ECHO_N "(cached) $ECHO_C" >&6
20147 cat >conftest.$ac_ext <<_ACEOF
20150 cat confdefs.h >>conftest.$ac_ext
20151 cat >>conftest.$ac_ext <<_ACEOF
20152 /* end confdefs.h. */
20153 $ac_includes_default
20157 static struct stat ac_aggr;
20158 if (ac_aggr.st_gen)
20164 rm -f conftest.$ac_objext
20165 if { (ac_try="$ac_compile"
20166 case "(($ac_try" in
20167 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20168 *) ac_try_echo
=$ac_try;;
20170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20171 (eval "$ac_compile") 2>conftest.er1
20173 grep -v '^ *+' conftest.er1
>conftest.err
20175 cat conftest.err
>&5
20176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20177 (exit $ac_status); } && {
20178 test -z "$ac_c_werror_flag" ||
20179 test ! -s conftest.err
20180 } && test -s conftest.
$ac_objext; then
20181 ac_cv_member_struct_stat_st_gen
=yes
20183 echo "$as_me: failed program was:" >&5
20184 sed 's/^/| /' conftest.
$ac_ext >&5
20186 cat >conftest.
$ac_ext <<_ACEOF
20189 cat confdefs.h
>>conftest.
$ac_ext
20190 cat >>conftest.
$ac_ext <<_ACEOF
20191 /* end confdefs.h. */
20192 $ac_includes_default
20196 static struct stat ac_aggr;
20197 if (sizeof ac_aggr.st_gen)
20203 rm -f conftest.
$ac_objext
20204 if { (ac_try
="$ac_compile"
20205 case "(($ac_try" in
20206 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20207 *) ac_try_echo=$ac_try;;
20209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20210 (eval "$ac_compile") 2>conftest.er1
20212 grep -v '^ *+' conftest.er1 >conftest.err
20214 cat conftest.err >&5
20215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20216 (exit $ac_status); } && {
20217 test -z "$ac_c_werror_flag" ||
20218 test ! -s conftest.err
20219 } && test -s conftest.$ac_objext; then
20220 ac_cv_member_struct_stat_st_gen=yes
20222 echo "$as_me: failed program was:" >&5
20223 sed 's/^/| /' conftest.$ac_ext >&5
20225 ac_cv_member_struct_stat_st_gen=no
20228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20233 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
20234 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
20235 if test $ac_cv_member_struct_stat_st_gen = yes; then
20237 cat >>confdefs.h <<_ACEOF
20238 #define HAVE_STRUCT_STAT_ST_GEN 1
20244 { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
20245 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
20246 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
20247 echo $ECHO_N "(cached) $ECHO_C" >&6
20249 cat >conftest.$ac_ext <<_ACEOF
20252 cat confdefs.h >>conftest.$ac_ext
20253 cat >>conftest.$ac_ext <<_ACEOF
20254 /* end confdefs.h. */
20255 $ac_includes_default
20259 static struct stat ac_aggr;
20260 if (ac_aggr.st_birthtime)
20266 rm -f conftest.$ac_objext
20267 if { (ac_try="$ac_compile"
20268 case "(($ac_try" in
20269 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20270 *) ac_try_echo
=$ac_try;;
20272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20273 (eval "$ac_compile") 2>conftest.er1
20275 grep -v '^ *+' conftest.er1
>conftest.err
20277 cat conftest.err
>&5
20278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20279 (exit $ac_status); } && {
20280 test -z "$ac_c_werror_flag" ||
20281 test ! -s conftest.err
20282 } && test -s conftest.
$ac_objext; then
20283 ac_cv_member_struct_stat_st_birthtime
=yes
20285 echo "$as_me: failed program was:" >&5
20286 sed 's/^/| /' conftest.
$ac_ext >&5
20288 cat >conftest.
$ac_ext <<_ACEOF
20291 cat confdefs.h
>>conftest.
$ac_ext
20292 cat >>conftest.
$ac_ext <<_ACEOF
20293 /* end confdefs.h. */
20294 $ac_includes_default
20298 static struct stat ac_aggr;
20299 if (sizeof ac_aggr.st_birthtime)
20305 rm -f conftest.
$ac_objext
20306 if { (ac_try
="$ac_compile"
20307 case "(($ac_try" in
20308 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20309 *) ac_try_echo=$ac_try;;
20311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20312 (eval "$ac_compile") 2>conftest.er1
20314 grep -v '^ *+' conftest.er1 >conftest.err
20316 cat conftest.err >&5
20317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20318 (exit $ac_status); } && {
20319 test -z "$ac_c_werror_flag" ||
20320 test ! -s conftest.err
20321 } && test -s conftest.$ac_objext; then
20322 ac_cv_member_struct_stat_st_birthtime=yes
20324 echo "$as_me: failed program was:" >&5
20325 sed 's/^/| /' conftest.$ac_ext >&5
20327 ac_cv_member_struct_stat_st_birthtime=no
20330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20335 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
20336 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
20337 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
20339 cat >>confdefs.h <<_ACEOF
20340 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
20346 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20347 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
20348 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20349 echo $ECHO_N "(cached) $ECHO_C" >&6
20351 cat >conftest.$ac_ext <<_ACEOF
20354 cat confdefs.h >>conftest.$ac_ext
20355 cat >>conftest.$ac_ext <<_ACEOF
20356 /* end confdefs.h. */
20357 $ac_includes_default
20361 static struct stat ac_aggr;
20362 if (ac_aggr.st_blocks)
20368 rm -f conftest.$ac_objext
20369 if { (ac_try="$ac_compile"
20370 case "(($ac_try" in
20371 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20372 *) ac_try_echo
=$ac_try;;
20374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20375 (eval "$ac_compile") 2>conftest.er1
20377 grep -v '^ *+' conftest.er1
>conftest.err
20379 cat conftest.err
>&5
20380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381 (exit $ac_status); } && {
20382 test -z "$ac_c_werror_flag" ||
20383 test ! -s conftest.err
20384 } && test -s conftest.
$ac_objext; then
20385 ac_cv_member_struct_stat_st_blocks
=yes
20387 echo "$as_me: failed program was:" >&5
20388 sed 's/^/| /' conftest.
$ac_ext >&5
20390 cat >conftest.
$ac_ext <<_ACEOF
20393 cat confdefs.h
>>conftest.
$ac_ext
20394 cat >>conftest.
$ac_ext <<_ACEOF
20395 /* end confdefs.h. */
20396 $ac_includes_default
20400 static struct stat ac_aggr;
20401 if (sizeof ac_aggr.st_blocks)
20407 rm -f conftest.
$ac_objext
20408 if { (ac_try
="$ac_compile"
20409 case "(($ac_try" in
20410 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20411 *) ac_try_echo=$ac_try;;
20413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20414 (eval "$ac_compile") 2>conftest.er1
20416 grep -v '^ *+' conftest.er1 >conftest.err
20418 cat conftest.err >&5
20419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20420 (exit $ac_status); } && {
20421 test -z "$ac_c_werror_flag" ||
20422 test ! -s conftest.err
20423 } && test -s conftest.$ac_objext; then
20424 ac_cv_member_struct_stat_st_blocks=yes
20426 echo "$as_me: failed program was:" >&5
20427 sed 's/^/| /' conftest.$ac_ext >&5
20429 ac_cv_member_struct_stat_st_blocks=no
20432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20437 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20438 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
20439 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20441 cat >>confdefs.h <<_ACEOF
20442 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20446 cat >>confdefs.h <<\_ACEOF
20447 #define HAVE_ST_BLOCKS 1
20451 case " $LIBOBJS " in
20452 *" fileblocks.$ac_objext "* ) ;;
20453 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
20461 { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
20462 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
20463 if test "${ac_cv_header_time_altzone+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. */
20481 rm -f conftest.$ac_objext
20482 if { (ac_try="$ac_compile"
20483 case "(($ac_try" in
20484 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20485 *) ac_try_echo
=$ac_try;;
20487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20488 (eval "$ac_compile") 2>conftest.er1
20490 grep -v '^ *+' conftest.er1
>conftest.err
20492 cat conftest.err
>&5
20493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20494 (exit $ac_status); } && {
20495 test -z "$ac_c_werror_flag" ||
20496 test ! -s conftest.err
20497 } && test -s conftest.
$ac_objext; then
20498 ac_cv_header_time_altzone
=yes
20500 echo "$as_me: failed program was:" >&5
20501 sed 's/^/| /' conftest.
$ac_ext >&5
20503 ac_cv_header_time_altzone
=no
20506 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20509 { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
20510 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
20511 if test $ac_cv_header_time_altzone = yes; then
20513 cat >>confdefs.h
<<\_ACEOF
20514 #define HAVE_ALTZONE 1
20520 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
20521 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
20522 cat >conftest.
$ac_ext <<_ACEOF
20525 cat confdefs.h
>>conftest.
$ac_ext
20526 cat >>conftest.
$ac_ext <<_ACEOF
20527 /* end confdefs.h. */
20529 #include <sys/types.h>
20530 #include <sys/select.h>
20531 #include <sys/time.h>
20541 rm -f conftest.
$ac_objext
20542 if { (ac_try
="$ac_compile"
20543 case "(($ac_try" in
20544 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20545 *) ac_try_echo=$ac_try;;
20547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20548 (eval "$ac_compile") 2>conftest.er1
20550 grep -v '^ *+' conftest.er1 >conftest.err
20552 cat conftest.err >&5
20553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20554 (exit $ac_status); } && {
20555 test -z "$ac_c_werror_flag" ||
20556 test ! -s conftest.err
20557 } && test -s conftest.$ac_objext; then
20560 cat >>confdefs.h <<\_ACEOF
20561 #define SYS_SELECT_WITH_SYS_TIME 1
20567 echo "$as_me: failed program was:" >&5
20568 sed 's/^/| /' conftest.$ac_ext >&5
20573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20574 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
20575 echo "${ECHO_T}$was_it_defined" >&6; }
20577 { echo "$as_me:$LINENO: checking for addrinfo" >&5
20578 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
20579 if test "${ac_cv_struct_addrinfo+set}" = set; then
20580 echo $ECHO_N "(cached) $ECHO_C" >&6
20582 cat >conftest.$ac_ext <<_ACEOF
20585 cat confdefs.h >>conftest.$ac_ext
20586 cat >>conftest.$ac_ext <<_ACEOF
20587 /* end confdefs.h. */
20589 # include <netdb.h>
20598 rm -f conftest.$ac_objext
20599 if { (ac_try="$ac_compile"
20600 case "(($ac_try" in
20601 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20602 *) ac_try_echo
=$ac_try;;
20604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20605 (eval "$ac_compile") 2>conftest.er1
20607 grep -v '^ *+' conftest.er1
>conftest.err
20609 cat conftest.err
>&5
20610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20611 (exit $ac_status); } && {
20612 test -z "$ac_c_werror_flag" ||
20613 test ! -s conftest.err
20614 } && test -s conftest.
$ac_objext; then
20615 ac_cv_struct_addrinfo
=yes
20617 echo "$as_me: failed program was:" >&5
20618 sed 's/^/| /' conftest.
$ac_ext >&5
20620 ac_cv_struct_addrinfo
=no
20623 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20626 { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
20627 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
20628 if test $ac_cv_struct_addrinfo = yes; then
20630 cat >>confdefs.h
<<\_ACEOF
20631 #define HAVE_ADDRINFO 1
20636 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
20637 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
20638 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
20639 echo $ECHO_N "(cached) $ECHO_C" >&6
20641 cat >conftest.
$ac_ext <<_ACEOF
20644 cat confdefs.h
>>conftest.
$ac_ext
20645 cat >>conftest.
$ac_ext <<_ACEOF
20646 /* end confdefs.h. */
20648 # include <sys/types.h>
20649 # include <sys/socket.h>
20653 struct sockaddr_storage s
20658 rm -f conftest.
$ac_objext
20659 if { (ac_try
="$ac_compile"
20660 case "(($ac_try" in
20661 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20662 *) ac_try_echo=$ac_try;;
20664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20665 (eval "$ac_compile") 2>conftest.er1
20667 grep -v '^ *+' conftest.er1 >conftest.err
20669 cat conftest.err >&5
20670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20671 (exit $ac_status); } && {
20672 test -z "$ac_c_werror_flag" ||
20673 test ! -s conftest.err
20674 } && test -s conftest.$ac_objext; then
20675 ac_cv_struct_sockaddr_storage=yes
20677 echo "$as_me: failed program was:" >&5
20678 sed 's/^/| /' conftest.$ac_ext >&5
20680 ac_cv_struct_sockaddr_storage=no
20683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20686 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
20687 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
20688 if test $ac_cv_struct_sockaddr_storage = yes; then
20690 cat >>confdefs.h <<\_ACEOF
20691 #define HAVE_SOCKADDR_STORAGE 1
20696 # checks for compiler characteristics
20699 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
20700 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
20701 if test "${ac_cv_c_char_unsigned+set}" = set; then
20702 echo $ECHO_N "(cached) $ECHO_C" >&6
20704 cat >conftest.$ac_ext <<_ACEOF
20707 cat confdefs.h >>conftest.$ac_ext
20708 cat >>conftest.$ac_ext <<_ACEOF
20709 /* end confdefs.h. */
20710 $ac_includes_default
20714 static int test_array [1 - 2 * !(((char) -1) < 0)];
20721 rm -f conftest.$ac_objext
20722 if { (ac_try="$ac_compile"
20723 case "(($ac_try" in
20724 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20725 *) ac_try_echo
=$ac_try;;
20727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20728 (eval "$ac_compile") 2>conftest.er1
20730 grep -v '^ *+' conftest.er1
>conftest.err
20732 cat conftest.err
>&5
20733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20734 (exit $ac_status); } && {
20735 test -z "$ac_c_werror_flag" ||
20736 test ! -s conftest.err
20737 } && test -s conftest.
$ac_objext; then
20738 ac_cv_c_char_unsigned
=no
20740 echo "$as_me: failed program was:" >&5
20741 sed 's/^/| /' conftest.
$ac_ext >&5
20743 ac_cv_c_char_unsigned
=yes
20746 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20748 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
20749 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
20750 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
20751 cat >>confdefs.h
<<\_ACEOF
20752 #define __CHAR_UNSIGNED__ 1
20757 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20758 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20759 if test "${ac_cv_c_const+set}" = set; then
20760 echo $ECHO_N "(cached) $ECHO_C" >&6
20762 cat >conftest.
$ac_ext <<_ACEOF
20765 cat confdefs.h
>>conftest.
$ac_ext
20766 cat >>conftest.
$ac_ext <<_ACEOF
20767 /* end confdefs.h. */
20772 /* FIXME: Include the comments suggested by Paul. */
20773 #ifndef __cplusplus
20774 /* Ultrix mips cc rejects this. */
20775 typedef int charset[2];
20777 /* SunOS 4.1.1 cc rejects this. */
20778 char const *const *pcpcc;
20780 /* NEC SVR4.0.2 mips cc rejects this. */
20781 struct point {int x, y;};
20782 static struct point const zero = {0,0};
20783 /* AIX XL C 1.02.0.0 rejects this.
20784 It does not let you subtract one const X* pointer from another in
20785 an arm of an if-expression whose if-part is not a constant
20787 const char *g = "string";
20788 pcpcc = &g + (g ? g-g : 0);
20789 /* HPUX 7.0 cc rejects these. */
20791 ppc = (char**) pcpcc;
20792 pcpcc = (char const *const *) ppc;
20793 { /* SCO 3.2v4 cc rejects this. */
20795 char const *s = 0 ? (char *) 0 : (char const *) 0;
20800 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20801 int x[] = {25, 17};
20802 const int *foo = &x[0];
20805 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20806 typedef const int *iptr;
20810 { /* AIX XL C 1.02.0.0 rejects this saying
20811 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20812 struct s { int j; const int *ap[3]; };
20813 struct s *b; b->j = 5;
20815 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20816 const int foo = 10;
20817 if (!foo) return 0;
20819 return !cs[0] && !zero.x;
20826 rm -f conftest.
$ac_objext
20827 if { (ac_try
="$ac_compile"
20828 case "(($ac_try" in
20829 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20830 *) ac_try_echo=$ac_try;;
20832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20833 (eval "$ac_compile") 2>conftest.er1
20835 grep -v '^ *+' conftest.er1 >conftest.err
20837 cat conftest.err >&5
20838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20839 (exit $ac_status); } && {
20840 test -z "$ac_c_werror_flag" ||
20841 test ! -s conftest.err
20842 } && test -s conftest.$ac_objext; then
20845 echo "$as_me: failed program was:" >&5
20846 sed 's/^/| /' conftest.$ac_ext >&5
20851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20853 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20854 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20855 if test $ac_cv_c_const = no; then
20857 cat >>confdefs.h <<\_ACEOF
20865 { echo "$as_me:$LINENO: checking for working volatile" >&5
20866 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
20867 cat >conftest.$ac_ext <<_ACEOF
20870 cat confdefs.h >>conftest.$ac_ext
20871 cat >>conftest.$ac_ext <<_ACEOF
20872 /* end confdefs.h. */
20877 volatile int x; x = 0;
20882 rm -f conftest.$ac_objext
20883 if { (ac_try="$ac_compile"
20884 case "(($ac_try" in
20885 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20886 *) ac_try_echo
=$ac_try;;
20888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20889 (eval "$ac_compile") 2>conftest.er1
20891 grep -v '^ *+' conftest.er1
>conftest.err
20893 cat conftest.err
>&5
20894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20895 (exit $ac_status); } && {
20896 test -z "$ac_c_werror_flag" ||
20897 test ! -s conftest.err
20898 } && test -s conftest.
$ac_objext; then
20901 echo "$as_me: failed program was:" >&5
20902 sed 's/^/| /' conftest.
$ac_ext >&5
20905 cat >>confdefs.h
<<\_ACEOF
20912 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20913 { echo "$as_me:$LINENO: result: $works" >&5
20914 echo "${ECHO_T}$works" >&6; }
20917 { echo "$as_me:$LINENO: checking for working signed char" >&5
20918 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
20919 cat >conftest.
$ac_ext <<_ACEOF
20922 cat confdefs.h
>>conftest.
$ac_ext
20923 cat >>conftest.
$ac_ext <<_ACEOF
20924 /* end confdefs.h. */
20934 rm -f conftest.
$ac_objext
20935 if { (ac_try
="$ac_compile"
20936 case "(($ac_try" in
20937 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20938 *) ac_try_echo=$ac_try;;
20940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20941 (eval "$ac_compile") 2>conftest.er1
20943 grep -v '^ *+' conftest.er1 >conftest.err
20945 cat conftest.err >&5
20946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20947 (exit $ac_status); } && {
20948 test -z "$ac_c_werror_flag" ||
20949 test ! -s conftest.err
20950 } && test -s conftest.$ac_objext; then
20953 echo "$as_me: failed program was:" >&5
20954 sed 's/^/| /' conftest.$ac_ext >&5
20957 cat >>confdefs.h <<\_ACEOF
20964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20965 { echo "$as_me:$LINENO: result: $works" >&5
20966 echo "${ECHO_T}$works" >&6; }
20969 { echo "$as_me:$LINENO: checking for prototypes" >&5
20970 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
20971 cat >conftest.$ac_ext <<_ACEOF
20974 cat confdefs.h >>conftest.$ac_ext
20975 cat >>conftest.$ac_ext <<_ACEOF
20976 /* end confdefs.h. */
20977 int foo(int x) { return 0; }
20986 rm -f conftest.$ac_objext
20987 if { (ac_try="$ac_compile"
20988 case "(($ac_try" in
20989 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20990 *) ac_try_echo
=$ac_try;;
20992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20993 (eval "$ac_compile") 2>conftest.er1
20995 grep -v '^ *+' conftest.er1
>conftest.err
20997 cat conftest.err
>&5
20998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999 (exit $ac_status); } && {
21000 test -z "$ac_c_werror_flag" ||
21001 test ! -s conftest.err
21002 } && test -s conftest.
$ac_objext; then
21005 cat >>confdefs.h
<<\_ACEOF
21006 #define HAVE_PROTOTYPES 1
21009 have_prototypes
=yes
21012 echo "$as_me: failed program was:" >&5
21013 sed 's/^/| /' conftest.
$ac_ext >&5
21018 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21019 { echo "$as_me:$LINENO: result: $have_prototypes" >&5
21020 echo "${ECHO_T}$have_prototypes" >&6; }
21023 { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
21024 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
21025 cat >conftest.
$ac_ext <<_ACEOF
21028 cat confdefs.h
>>conftest.
$ac_ext
21029 cat >>conftest.
$ac_ext <<_ACEOF
21030 /* end confdefs.h. */
21032 #include <stdarg.h>
21033 int foo(int x, ...) {
21037 va_arg(va, char *);
21038 va_arg(va, double);
21045 return foo(10, "", 3.14);
21050 rm -f conftest.
$ac_objext
21051 if { (ac_try
="$ac_compile"
21052 case "(($ac_try" in
21053 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21054 *) ac_try_echo=$ac_try;;
21056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21057 (eval "$ac_compile") 2>conftest.er1
21059 grep -v '^ *+' conftest.er1 >conftest.err
21061 cat conftest.err >&5
21062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21063 (exit $ac_status); } && {
21064 test -z "$ac_c_werror_flag" ||
21065 test ! -s conftest.err
21066 } && test -s conftest.$ac_objext; then
21069 cat >>confdefs.h <<\_ACEOF
21070 #define HAVE_STDARG_PROTOTYPES 1
21076 echo "$as_me: failed program was:" >&5
21077 sed 's/^/| /' conftest.$ac_ext >&5
21082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21083 { echo "$as_me:$LINENO: result: $works" >&5
21084 echo "${ECHO_T}$works" >&6; }
21086 # check for socketpair
21087 { echo "$as_me:$LINENO: checking for socketpair" >&5
21088 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
21089 cat >conftest.$ac_ext <<_ACEOF
21092 cat confdefs.h >>conftest.$ac_ext
21093 cat >>conftest.$ac_ext <<_ACEOF
21094 /* end confdefs.h. */
21096 #include <sys/types.h>
21097 #include <sys/socket.h>
21107 rm -f conftest.$ac_objext
21108 if { (ac_try="$ac_compile"
21109 case "(($ac_try" in
21110 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21111 *) ac_try_echo
=$ac_try;;
21113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21114 (eval "$ac_compile") 2>conftest.er1
21116 grep -v '^ *+' conftest.er1
>conftest.err
21118 cat conftest.err
>&5
21119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21120 (exit $ac_status); } && {
21121 test -z "$ac_c_werror_flag" ||
21122 test ! -s conftest.err
21123 } && test -s conftest.
$ac_objext; then
21125 cat >>confdefs.h
<<\_ACEOF
21126 #define HAVE_SOCKETPAIR 1
21129 { echo "$as_me:$LINENO: result: yes" >&5
21130 echo "${ECHO_T}yes" >&6; }
21132 echo "$as_me: failed program was:" >&5
21133 sed 's/^/| /' conftest.
$ac_ext >&5
21135 { echo "$as_me:$LINENO: result: no" >&5
21136 echo "${ECHO_T}no" >&6; }
21140 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21142 # check if sockaddr has sa_len member
21143 { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
21144 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; }
21145 cat >conftest.
$ac_ext <<_ACEOF
21148 cat confdefs.h
>>conftest.
$ac_ext
21149 cat >>conftest.
$ac_ext <<_ACEOF
21150 /* end confdefs.h. */
21151 #include <sys/types.h>
21152 #include <sys/socket.h>
21162 rm -f conftest.
$ac_objext
21163 if { (ac_try
="$ac_compile"
21164 case "(($ac_try" in
21165 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21166 *) ac_try_echo=$ac_try;;
21168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21169 (eval "$ac_compile") 2>conftest.er1
21171 grep -v '^ *+' conftest.er1 >conftest.err
21173 cat conftest.err >&5
21174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21175 (exit $ac_status); } && {
21176 test -z "$ac_c_werror_flag" ||
21177 test ! -s conftest.err
21178 } && test -s conftest.$ac_objext; then
21179 { echo "$as_me:$LINENO: result: yes" >&5
21180 echo "${ECHO_T}yes" >&6; }
21182 cat >>confdefs.h <<\_ACEOF
21183 #define HAVE_SOCKADDR_SA_LEN 1
21187 echo "$as_me: failed program was:" >&5
21188 sed 's/^/| /' conftest.$ac_ext >&5
21190 { echo "$as_me:$LINENO: result: no" >&5
21191 echo "${ECHO_T}no" >&6; }
21194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21196 va_list_is_array=no
21197 { echo "$as_me:$LINENO: checking whether va_list is an array" >&5
21198 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
21199 cat >conftest.$ac_ext <<_ACEOF
21202 cat confdefs.h >>conftest.$ac_ext
21203 cat >>conftest.$ac_ext <<_ACEOF
21204 /* end confdefs.h. */
21206 #ifdef HAVE_STDARG_PROTOTYPES
21207 #include <stdarg.h>
21209 #include <varargs.h>
21215 va_list list1, list2; list1 = list2;
21220 rm -f conftest.$ac_objext
21221 if { (ac_try="$ac_compile"
21222 case "(($ac_try" in
21223 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21224 *) ac_try_echo
=$ac_try;;
21226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21227 (eval "$ac_compile") 2>conftest.er1
21229 grep -v '^ *+' conftest.er1
>conftest.err
21231 cat conftest.err
>&5
21232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21233 (exit $ac_status); } && {
21234 test -z "$ac_c_werror_flag" ||
21235 test ! -s conftest.err
21236 } && test -s conftest.
$ac_objext; then
21239 echo "$as_me: failed program was:" >&5
21240 sed 's/^/| /' conftest.
$ac_ext >&5
21244 cat >>confdefs.h
<<\_ACEOF
21245 #define VA_LIST_IS_ARRAY 1
21248 va_list_is_array
=yes
21252 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21253 { echo "$as_me:$LINENO: result: $va_list_is_array" >&5
21254 echo "${ECHO_T}$va_list_is_array" >&6; }
21256 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
21260 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
21261 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
21262 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
21263 echo $ECHO_N "(cached) $ECHO_C" >&6
21265 cat >conftest.
$ac_ext <<_ACEOF
21268 cat confdefs.h
>>conftest.
$ac_ext
21269 cat >>conftest.
$ac_ext <<_ACEOF
21270 /* end confdefs.h. */
21271 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
21272 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21273 #define gethostbyname_r innocuous_gethostbyname_r
21275 /* System header to define __stub macros and hopefully few prototypes,
21276 which can conflict with char gethostbyname_r (); below.
21277 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21278 <limits.h> exists even on freestanding compilers. */
21281 # include <limits.h>
21283 # include <assert.h>
21286 #undef gethostbyname_r
21288 /* Override any GCC internal prototype to avoid an error.
21289 Use char because int might match the return type of a GCC
21290 builtin and then its argument prototype would still apply. */
21294 char gethostbyname_r ();
21295 /* The GNU C library defines this for functions which it implements
21296 to always fail with ENOSYS. Some functions are actually named
21297 something starting with __ and the normal name is an alias. */
21298 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
21305 return gethostbyname_r ();
21310 rm -f conftest.
$ac_objext conftest
$ac_exeext
21311 if { (ac_try
="$ac_link"
21312 case "(($ac_try" in
21313 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21314 *) ac_try_echo=$ac_try;;
21316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21317 (eval "$ac_link") 2>conftest.er1
21319 grep -v '^ *+' conftest.er1 >conftest.err
21321 cat conftest.err >&5
21322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21323 (exit $ac_status); } && {
21324 test -z "$ac_c_werror_flag" ||
21325 test ! -s conftest.err
21326 } && test -s conftest$ac_exeext &&
21327 $as_test_x conftest$ac_exeext; then
21328 ac_cv_func_gethostbyname_r=yes
21330 echo "$as_me: failed program was:" >&5
21331 sed 's/^/| /' conftest.$ac_ext >&5
21333 ac_cv_func_gethostbyname_r=no
21336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21337 conftest$ac_exeext conftest.$ac_ext
21339 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
21340 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
21341 if test $ac_cv_func_gethostbyname_r = yes; then
21343 cat >>confdefs.h <<\_ACEOF
21344 #define HAVE_GETHOSTBYNAME_R 1
21347 { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
21348 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
21350 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
21351 cat >conftest.$ac_ext <<_ACEOF
21354 cat confdefs.h >>conftest.$ac_ext
21355 cat >>conftest.$ac_ext <<_ACEOF
21356 /* end confdefs.h. */
21358 # include <netdb.h>
21365 struct hostent *he, *res;
21370 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
21376 rm -f conftest.$ac_objext
21377 if { (ac_try="$ac_compile"
21378 case "(($ac_try" in
21379 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21380 *) ac_try_echo
=$ac_try;;
21382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21383 (eval "$ac_compile") 2>conftest.er1
21385 grep -v '^ *+' conftest.er1
>conftest.err
21387 cat conftest.err
>&5
21388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21389 (exit $ac_status); } && {
21390 test -z "$ac_c_werror_flag" ||
21391 test ! -s conftest.err
21392 } && test -s conftest.
$ac_objext; then
21394 cat >>confdefs.h
<<\_ACEOF
21395 #define HAVE_GETHOSTBYNAME_R 1
21399 cat >>confdefs.h
<<\_ACEOF
21400 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
21403 { echo "$as_me:$LINENO: result: yes" >&5
21404 echo "${ECHO_T}yes" >&6; }
21407 echo "$as_me: failed program was:" >&5
21408 sed 's/^/| /' conftest.
$ac_ext >&5
21411 { echo "$as_me:$LINENO: result: no" >&5
21412 echo "${ECHO_T}no" >&6; }
21413 { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
21414 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
21415 cat >conftest.
$ac_ext <<_ACEOF
21418 cat confdefs.h
>>conftest.
$ac_ext
21419 cat >>conftest.
$ac_ext <<_ACEOF
21420 /* end confdefs.h. */
21422 # include <netdb.h>
21429 struct hostent *he;
21434 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
21440 rm -f conftest.
$ac_objext
21441 if { (ac_try
="$ac_compile"
21442 case "(($ac_try" in
21443 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21444 *) ac_try_echo=$ac_try;;
21446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21447 (eval "$ac_compile") 2>conftest.er1
21449 grep -v '^ *+' conftest.er1 >conftest.err
21451 cat conftest.err >&5
21452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21453 (exit $ac_status); } && {
21454 test -z "$ac_c_werror_flag" ||
21455 test ! -s conftest.err
21456 } && test -s conftest.$ac_objext; then
21458 cat >>confdefs.h <<\_ACEOF
21459 #define HAVE_GETHOSTBYNAME_R 1
21463 cat >>confdefs.h <<\_ACEOF
21464 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
21467 { echo "$as_me:$LINENO: result: yes" >&5
21468 echo "${ECHO_T}yes" >&6; }
21471 echo "$as_me: failed program was:" >&5
21472 sed 's/^/| /' conftest.$ac_ext >&5
21475 { echo "$as_me:$LINENO: result: no" >&5
21476 echo "${ECHO_T}no" >&6; }
21477 { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
21478 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
21479 cat >conftest.$ac_ext <<_ACEOF
21482 cat confdefs.h >>conftest.$ac_ext
21483 cat >>conftest.$ac_ext <<_ACEOF
21484 /* end confdefs.h. */
21486 # include <netdb.h>
21493 struct hostent *he;
21494 struct hostent_data data;
21496 (void) gethostbyname_r(name, he, &data);
21502 rm -f conftest.$ac_objext
21503 if { (ac_try="$ac_compile"
21504 case "(($ac_try" in
21505 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21506 *) ac_try_echo
=$ac_try;;
21508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21509 (eval "$ac_compile") 2>conftest.er1
21511 grep -v '^ *+' conftest.er1
>conftest.err
21513 cat conftest.err
>&5
21514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21515 (exit $ac_status); } && {
21516 test -z "$ac_c_werror_flag" ||
21517 test ! -s conftest.err
21518 } && test -s conftest.
$ac_objext; then
21520 cat >>confdefs.h
<<\_ACEOF
21521 #define HAVE_GETHOSTBYNAME_R 1
21525 cat >>confdefs.h
<<\_ACEOF
21526 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
21529 { echo "$as_me:$LINENO: result: yes" >&5
21530 echo "${ECHO_T}yes" >&6; }
21533 echo "$as_me: failed program was:" >&5
21534 sed 's/^/| /' conftest.
$ac_ext >&5
21537 { echo "$as_me:$LINENO: result: no" >&5
21538 echo "${ECHO_T}no" >&6; }
21542 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21546 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21550 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21556 for ac_func
in gethostbyname
21558 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21559 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21560 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21561 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21562 echo $ECHO_N "(cached) $ECHO_C" >&6
21564 cat >conftest.
$ac_ext <<_ACEOF
21567 cat confdefs.h
>>conftest.
$ac_ext
21568 cat >>conftest.
$ac_ext <<_ACEOF
21569 /* end confdefs.h. */
21570 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21572 #define $ac_func innocuous_$ac_func
21574 /* System header to define __stub macros and hopefully few prototypes,
21575 which can conflict with char $ac_func (); below.
21576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21577 <limits.h> exists even on freestanding compilers. */
21580 # include <limits.h>
21582 # include <assert.h>
21587 /* Override any GCC internal prototype to avoid an error.
21588 Use char because int might match the return type of a GCC
21589 builtin and then its argument prototype would still apply. */
21594 /* The GNU C library defines this for functions which it implements
21595 to always fail with ENOSYS. Some functions are actually named
21596 something starting with __ and the normal name is an alias. */
21597 #if defined __stub_$ac_func || defined __stub___$ac_func
21604 return $ac_func ();
21609 rm -f conftest.
$ac_objext conftest
$ac_exeext
21610 if { (ac_try
="$ac_link"
21611 case "(($ac_try" in
21612 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21613 *) ac_try_echo=$ac_try;;
21615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21616 (eval "$ac_link") 2>conftest.er1
21618 grep -v '^ *+' conftest.er1 >conftest.err
21620 cat conftest.err >&5
21621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21622 (exit $ac_status); } && {
21623 test -z "$ac_c_werror_flag" ||
21624 test ! -s conftest.err
21625 } && test -s conftest$ac_exeext &&
21626 $as_test_x conftest$ac_exeext; then
21627 eval "$as_ac_var=yes"
21629 echo "$as_me: failed program was:" >&5
21630 sed 's/^/| /' conftest.$ac_ext >&5
21632 eval "$as_ac_var=no"
21635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21636 conftest$ac_exeext conftest.$ac_ext
21638 ac_res=`eval echo '${'$as_ac_var'}'`
21639 { echo "$as_me:$LINENO: result: $ac_res" >&5
21640 echo "${ECHO_T}$ac_res" >&6; }
21641 if test `eval echo '${'$as_ac_var'}'` = yes; then
21642 cat >>confdefs.h <<_ACEOF
21643 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
21658 # checks for system services
21661 # Linux requires this for correct f.p. operations
21662 { echo "$as_me:$LINENO: checking for __fpu_control" >&5
21663 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
21664 if test "${ac_cv_func___fpu_control+set}" = set; then
21665 echo $ECHO_N "(cached) $ECHO_C" >&6
21667 cat >conftest.$ac_ext <<_ACEOF
21670 cat confdefs.h >>conftest.$ac_ext
21671 cat >>conftest.$ac_ext <<_ACEOF
21672 /* end confdefs.h. */
21673 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
21674 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21675 #define __fpu_control innocuous___fpu_control
21677 /* System header to define __stub macros and hopefully few prototypes,
21678 which can conflict with char __fpu_control (); below.
21679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21680 <limits.h> exists even on freestanding compilers. */
21683 # include <limits.h>
21685 # include <assert.h>
21688 #undef __fpu_control
21690 /* Override any GCC internal prototype to avoid an error.
21691 Use char because int might match the return type of a GCC
21692 builtin and then its argument prototype would still apply. */
21696 char __fpu_control ();
21697 /* The GNU C library defines this for functions which it implements
21698 to always fail with ENOSYS. Some functions are actually named
21699 something starting with __ and the normal name is an alias. */
21700 #if defined __stub___fpu_control || defined __stub_____fpu_control
21707 return __fpu_control ();
21712 rm -f conftest.$ac_objext conftest$ac_exeext
21713 if { (ac_try="$ac_link"
21714 case "(($ac_try" in
21715 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21716 *) ac_try_echo
=$ac_try;;
21718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21719 (eval "$ac_link") 2>conftest.er1
21721 grep -v '^ *+' conftest.er1
>conftest.err
21723 cat conftest.err
>&5
21724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21725 (exit $ac_status); } && {
21726 test -z "$ac_c_werror_flag" ||
21727 test ! -s conftest.err
21728 } && test -s conftest
$ac_exeext &&
21729 $as_test_x conftest
$ac_exeext; then
21730 ac_cv_func___fpu_control
=yes
21732 echo "$as_me: failed program was:" >&5
21733 sed 's/^/| /' conftest.
$ac_ext >&5
21735 ac_cv_func___fpu_control
=no
21738 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21739 conftest
$ac_exeext conftest.
$ac_ext
21741 { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
21742 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
21743 if test $ac_cv_func___fpu_control = yes; then
21747 { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
21748 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
21749 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
21750 echo $ECHO_N "(cached) $ECHO_C" >&6
21752 ac_check_lib_save_LIBS
=$LIBS
21753 LIBS
="-lieee $LIBS"
21754 cat >conftest.
$ac_ext <<_ACEOF
21757 cat confdefs.h
>>conftest.
$ac_ext
21758 cat >>conftest.
$ac_ext <<_ACEOF
21759 /* end confdefs.h. */
21761 /* Override any GCC internal prototype to avoid an error.
21762 Use char because int might match the return type of a GCC
21763 builtin and then its argument prototype would still apply. */
21767 char __fpu_control ();
21771 return __fpu_control ();
21776 rm -f conftest.
$ac_objext conftest
$ac_exeext
21777 if { (ac_try
="$ac_link"
21778 case "(($ac_try" in
21779 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21780 *) ac_try_echo=$ac_try;;
21782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21783 (eval "$ac_link") 2>conftest.er1
21785 grep -v '^ *+' conftest.er1 >conftest.err
21787 cat conftest.err >&5
21788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21789 (exit $ac_status); } && {
21790 test -z "$ac_c_werror_flag" ||
21791 test ! -s conftest.err
21792 } && test -s conftest$ac_exeext &&
21793 $as_test_x conftest$ac_exeext; then
21794 ac_cv_lib_ieee___fpu_control=yes
21796 echo "$as_me: failed program was:" >&5
21797 sed 's/^/| /' conftest.$ac_ext >&5
21799 ac_cv_lib_ieee___fpu_control=no
21802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21803 conftest$ac_exeext conftest.$ac_ext
21804 LIBS=$ac_check_lib_save_LIBS
21806 { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
21807 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
21808 if test $ac_cv_lib_ieee___fpu_control = yes; then
21809 cat >>confdefs.h <<_ACEOF
21810 #define HAVE_LIBIEEE 1
21813 LIBS="-lieee $LIBS"
21821 # Check for --with-fpectl
21822 { echo "$as_me:$LINENO: checking for --with-fpectl" >&5
21823 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
21825 # Check whether --with-fpectl was given.
21826 if test "${with_fpectl+set}" = set; then
21827 withval=$with_fpectl;
21828 if test "$withval" != no
21831 cat >>confdefs.h <<\_ACEOF
21832 #define WANT_SIGFPE_HANDLER 1
21835 { echo "$as_me:$LINENO: result: yes" >&5
21836 echo "${ECHO_T}yes" >&6; }
21837 else { echo "$as_me:$LINENO: result: no" >&5
21838 echo "${ECHO_T}no" >&6; }
21841 { echo "$as_me:$LINENO: result: no" >&5
21842 echo "${ECHO_T}no" >&6; }
21846 # check for --with-libm=...
21848 case $ac_sys_system in
21853 { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
21854 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
21856 # Check whether --with-libm was given.
21857 if test "${with_libm+set}" = set; then
21858 withval=$with_libm;
21859 if test "$withval" = no
21861 { echo "$as_me:$LINENO: result: force LIBM empty" >&5
21862 echo "${ECHO_T}force LIBM empty" >&6; }
21863 elif test "$withval" != yes
21865 { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
21866 echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
21867 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
21868 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
21869 { (exit 1); exit 1; }; }
21872 { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
21873 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
21877 # check for --with-libc=...
21879 { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
21880 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
21882 # Check whether --with-libc was given.
21883 if test "${with_libc+set}" = set; then
21884 withval=$with_libc;
21885 if test "$withval" = no
21887 { echo "$as_me:$LINENO: result: force LIBC empty" >&5
21888 echo "${ECHO_T}force LIBC empty" >&6; }
21889 elif test "$withval" != yes
21891 { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
21892 echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
21893 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
21894 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
21895 { (exit 1); exit 1; }; }
21898 { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
21899 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
21903 # ************************************
21904 # * Check for mathematical functions *
21905 # ************************************
21910 # Detect whether system arithmetic is subject to x87-style double
21911 # rounding issues. The result of this test has little meaning on non
21912 # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding
21913 # mode is round-to-nearest and double rounding issues are present, and
21914 # 0 otherwise. See http://bugs.python.org/issue2937 for more info.
21915 { echo "$as_me:$LINENO: checking for x87-style double rounding" >&5
21916 echo $ECHO_N "checking for x87-style double rounding... $ECHO_C" >&6; }
21917 if test "${ac_cv_x87_double_rounding+set}" = set; then
21918 echo $ECHO_N "(cached) $ECHO_C" >&6
21921 if test "$cross_compiling" = yes; then
21922 ac_cv_x87_double_rounding=no
21924 cat >conftest.$ac_ext <<_ACEOF
21927 cat confdefs.h >>conftest.$ac_ext
21928 cat >>conftest.$ac_ext <<_ACEOF
21929 /* end confdefs.h. */
21931 #include <stdlib.h>
21934 volatile double x, y, z;
21935 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
21936 x = 0.99999999999999989; /* 1-2**-53 */
21940 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
21946 /* both tests show evidence of double rounding */
21951 rm -f conftest$ac_exeext
21952 if { (ac_try="$ac_link"
21953 case "(($ac_try" in
21954 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21955 *) ac_try_echo
=$ac_try;;
21957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21958 (eval "$ac_link") 2>&5
21960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21961 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21962 { (case "(($ac_try" in
21963 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21964 *) ac_try_echo=$ac_try;;
21966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21967 (eval "$ac_try") 2>&5
21969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21970 (exit $ac_status); }; }; then
21971 ac_cv_x87_double_rounding=no
21973 echo "$as_me: program exited with status $ac_status" >&5
21974 echo "$as_me: failed program was:" >&5
21975 sed 's/^/| /' conftest.$ac_ext >&5
21977 ( exit $ac_status )
21978 ac_cv_x87_double_rounding=yes
21980 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21986 { echo "$as_me:$LINENO: result: $ac_cv_x87_double_rounding" >&5
21987 echo "${ECHO_T}$ac_cv_x87_double_rounding" >&6; }
21988 if test "$ac_cv_x87_double_rounding" = yes
21991 cat >>confdefs.h <<\_ACEOF
21992 #define X87_DOUBLE_ROUNDING 1
21998 # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
21999 # -0. on some architectures.
22000 { echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5
22001 echo $ECHO_N "checking whether tanh preserves the sign of zero... $ECHO_C" >&6; }
22002 if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then
22003 echo $ECHO_N "(cached) $ECHO_C" >&6
22006 if test "$cross_compiling" = yes; then
22007 ac_cv_tanh_preserves_zero_sign=no
22009 cat >conftest.$ac_ext <<_ACEOF
22012 cat confdefs.h >>conftest.$ac_ext
22013 cat >>conftest.$ac_ext <<_ACEOF
22014 /* end confdefs.h. */
22017 #include <stdlib.h>
22019 /* return 0 if either negative zeros don't exist
22020 on this platform or if negative zeros exist
22021 and tanh(-0.) == -0. */
22022 if (atan2(0., -1.) == atan2(-0., -1.) ||
22023 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
22028 rm -f conftest$ac_exeext
22029 if { (ac_try="$ac_link"
22030 case "(($ac_try" in
22031 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22032 *) ac_try_echo
=$ac_try;;
22034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22035 (eval "$ac_link") 2>&5
22037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22038 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22039 { (case "(($ac_try" in
22040 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22041 *) ac_try_echo=$ac_try;;
22043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22044 (eval "$ac_try") 2>&5
22046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22047 (exit $ac_status); }; }; then
22048 ac_cv_tanh_preserves_zero_sign=yes
22050 echo "$as_me: program exited with status $ac_status" >&5
22051 echo "$as_me: failed program was:" >&5
22052 sed 's/^/| /' conftest.$ac_ext >&5
22054 ( exit $ac_status )
22055 ac_cv_tanh_preserves_zero_sign=no
22057 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22063 { echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5
22064 echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; }
22065 if test "$ac_cv_tanh_preserves_zero_sign" = yes
22068 cat >>confdefs.h <<\_ACEOF
22069 #define TANH_PRESERVES_ZERO_SIGN 1
22082 for ac_func in acosh asinh atanh copysign expm1 finite hypot log1p
22084 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
22085 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22086 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22087 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22088 echo $ECHO_N "(cached) $ECHO_C" >&6
22090 cat >conftest.$ac_ext <<_ACEOF
22093 cat confdefs.h >>conftest.$ac_ext
22094 cat >>conftest.$ac_ext <<_ACEOF
22095 /* end confdefs.h. */
22096 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22097 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22098 #define $ac_func innocuous_$ac_func
22100 /* System header to define __stub macros and hopefully few prototypes,
22101 which can conflict with char $ac_func (); below.
22102 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22103 <limits.h> exists even on freestanding compilers. */
22106 # include <limits.h>
22108 # include <assert.h>
22113 /* Override any GCC internal prototype to avoid an error.
22114 Use char because int might match the return type of a GCC
22115 builtin and then its argument prototype would still apply. */
22120 /* The GNU C library defines this for functions which it implements
22121 to always fail with ENOSYS. Some functions are actually named
22122 something starting with __ and the normal name is an alias. */
22123 #if defined __stub_$ac_func || defined __stub___$ac_func
22130 return $ac_func ();
22135 rm -f conftest.$ac_objext conftest$ac_exeext
22136 if { (ac_try="$ac_link"
22137 case "(($ac_try" in
22138 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22139 *) ac_try_echo
=$ac_try;;
22141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22142 (eval "$ac_link") 2>conftest.er1
22144 grep -v '^ *+' conftest.er1
>conftest.err
22146 cat conftest.err
>&5
22147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22148 (exit $ac_status); } && {
22149 test -z "$ac_c_werror_flag" ||
22150 test ! -s conftest.err
22151 } && test -s conftest
$ac_exeext &&
22152 $as_test_x conftest
$ac_exeext; then
22153 eval "$as_ac_var=yes"
22155 echo "$as_me: failed program was:" >&5
22156 sed 's/^/| /' conftest.
$ac_ext >&5
22158 eval "$as_ac_var=no"
22161 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22162 conftest
$ac_exeext conftest.
$ac_ext
22164 ac_res
=`eval echo '${'$as_ac_var'}'`
22165 { echo "$as_me:$LINENO: result: $ac_res" >&5
22166 echo "${ECHO_T}$ac_res" >&6; }
22167 if test `eval echo '${'$as_ac_var'}'` = yes; then
22168 cat >>confdefs.h
<<_ACEOF
22169 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22175 { echo "$as_me:$LINENO: checking whether isinf is declared" >&5
22176 echo $ECHO_N "checking whether isinf is declared... $ECHO_C" >&6; }
22177 if test "${ac_cv_have_decl_isinf+set}" = set; then
22178 echo $ECHO_N "(cached) $ECHO_C" >&6
22180 cat >conftest.
$ac_ext <<_ACEOF
22183 cat confdefs.h
>>conftest.
$ac_ext
22184 cat >>conftest.
$ac_ext <<_ACEOF
22185 /* end confdefs.h. */
22199 rm -f conftest.
$ac_objext
22200 if { (ac_try
="$ac_compile"
22201 case "(($ac_try" in
22202 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22203 *) ac_try_echo=$ac_try;;
22205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22206 (eval "$ac_compile") 2>conftest.er1
22208 grep -v '^ *+' conftest.er1 >conftest.err
22210 cat conftest.err >&5
22211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22212 (exit $ac_status); } && {
22213 test -z "$ac_c_werror_flag" ||
22214 test ! -s conftest.err
22215 } && test -s conftest.$ac_objext; then
22216 ac_cv_have_decl_isinf=yes
22218 echo "$as_me: failed program was:" >&5
22219 sed 's/^/| /' conftest.$ac_ext >&5
22221 ac_cv_have_decl_isinf=no
22224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22226 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isinf" >&5
22227 echo "${ECHO_T}$ac_cv_have_decl_isinf" >&6; }
22228 if test $ac_cv_have_decl_isinf = yes; then
22230 cat >>confdefs.h <<_ACEOF
22231 #define HAVE_DECL_ISINF 1
22236 cat >>confdefs.h <<_ACEOF
22237 #define HAVE_DECL_ISINF 0
22242 { echo "$as_me:$LINENO: checking whether isnan is declared" >&5
22243 echo $ECHO_N "checking whether isnan is declared... $ECHO_C" >&6; }
22244 if test "${ac_cv_have_decl_isnan+set}" = set; then
22245 echo $ECHO_N "(cached) $ECHO_C" >&6
22247 cat >conftest.$ac_ext <<_ACEOF
22250 cat confdefs.h >>conftest.$ac_ext
22251 cat >>conftest.$ac_ext <<_ACEOF
22252 /* end confdefs.h. */
22266 rm -f conftest.$ac_objext
22267 if { (ac_try="$ac_compile"
22268 case "(($ac_try" in
22269 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22270 *) ac_try_echo
=$ac_try;;
22272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22273 (eval "$ac_compile") 2>conftest.er1
22275 grep -v '^ *+' conftest.er1
>conftest.err
22277 cat conftest.err
>&5
22278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22279 (exit $ac_status); } && {
22280 test -z "$ac_c_werror_flag" ||
22281 test ! -s conftest.err
22282 } && test -s conftest.
$ac_objext; then
22283 ac_cv_have_decl_isnan
=yes
22285 echo "$as_me: failed program was:" >&5
22286 sed 's/^/| /' conftest.
$ac_ext >&5
22288 ac_cv_have_decl_isnan
=no
22291 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22293 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isnan" >&5
22294 echo "${ECHO_T}$ac_cv_have_decl_isnan" >&6; }
22295 if test $ac_cv_have_decl_isnan = yes; then
22297 cat >>confdefs.h
<<_ACEOF
22298 #define HAVE_DECL_ISNAN 1
22303 cat >>confdefs.h
<<_ACEOF
22304 #define HAVE_DECL_ISNAN 0
22309 { echo "$as_me:$LINENO: checking whether isfinite is declared" >&5
22310 echo $ECHO_N "checking whether isfinite is declared... $ECHO_C" >&6; }
22311 if test "${ac_cv_have_decl_isfinite+set}" = set; then
22312 echo $ECHO_N "(cached) $ECHO_C" >&6
22314 cat >conftest.
$ac_ext <<_ACEOF
22317 cat confdefs.h
>>conftest.
$ac_ext
22318 cat >>conftest.
$ac_ext <<_ACEOF
22319 /* end confdefs.h. */
22333 rm -f conftest.
$ac_objext
22334 if { (ac_try
="$ac_compile"
22335 case "(($ac_try" in
22336 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22337 *) ac_try_echo=$ac_try;;
22339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22340 (eval "$ac_compile") 2>conftest.er1
22342 grep -v '^ *+' conftest.er1 >conftest.err
22344 cat conftest.err >&5
22345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22346 (exit $ac_status); } && {
22347 test -z "$ac_c_werror_flag" ||
22348 test ! -s conftest.err
22349 } && test -s conftest.$ac_objext; then
22350 ac_cv_have_decl_isfinite=yes
22352 echo "$as_me: failed program was:" >&5
22353 sed 's/^/| /' conftest.$ac_ext >&5
22355 ac_cv_have_decl_isfinite=no
22358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22360 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isfinite" >&5
22361 echo "${ECHO_T}$ac_cv_have_decl_isfinite" >&6; }
22362 if test $ac_cv_have_decl_isfinite = yes; then
22364 cat >>confdefs.h <<_ACEOF
22365 #define HAVE_DECL_ISFINITE 1
22370 cat >>confdefs.h <<_ACEOF
22371 #define HAVE_DECL_ISFINITE 0
22381 # determine what size digit to use for Python's longs
22382 { echo "$as_me:$LINENO: checking digit size for Python's longs" >&5
22383 echo $ECHO_N "checking digit size for Python's longs... $ECHO_C" >&6; }
22384 # Check whether --enable-big-digits was given.
22385 if test "${enable_big_digits+set}" = set; then
22386 enableval=$enable_big_digits; case $enable_big_digits in
22388 enable_big_digits=30 ;;
22390 enable_big_digits=15 ;;
22394 { { echo "$as_me:$LINENO: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&5
22395 echo "$as_me: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&2;}
22396 { (exit 1); exit 1; }; } ;;
22398 { echo "$as_me:$LINENO: result: $enable_big_digits" >&5
22399 echo "${ECHO_T}$enable_big_digits" >&6; }
22401 cat >>confdefs.h <<_ACEOF
22402 #define PYLONG_BITS_IN_DIGIT $enable_big_digits
22407 { echo "$as_me:$LINENO: result: no value specified" >&5
22408 echo "${ECHO_T}no value specified" >&6; }
22412 # check for wchar.h
22413 if test "${ac_cv_header_wchar_h+set}" = set; then
22414 { echo "$as_me:$LINENO: checking for wchar.h" >&5
22415 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
22416 if test "${ac_cv_header_wchar_h+set}" = set; then
22417 echo $ECHO_N "(cached) $ECHO_C" >&6
22419 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
22420 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
22422 # Is the header compilable?
22423 { echo "$as_me:$LINENO: checking wchar.h usability" >&5
22424 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; }
22425 cat >conftest.$ac_ext <<_ACEOF
22428 cat confdefs.h >>conftest.$ac_ext
22429 cat >>conftest.$ac_ext <<_ACEOF
22430 /* end confdefs.h. */
22431 $ac_includes_default
22434 rm -f conftest.$ac_objext
22435 if { (ac_try="$ac_compile"
22436 case "(($ac_try" in
22437 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22438 *) ac_try_echo
=$ac_try;;
22440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22441 (eval "$ac_compile") 2>conftest.er1
22443 grep -v '^ *+' conftest.er1
>conftest.err
22445 cat conftest.err
>&5
22446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22447 (exit $ac_status); } && {
22448 test -z "$ac_c_werror_flag" ||
22449 test ! -s conftest.err
22450 } && test -s conftest.
$ac_objext; then
22451 ac_header_compiler
=yes
22453 echo "$as_me: failed program was:" >&5
22454 sed 's/^/| /' conftest.
$ac_ext >&5
22456 ac_header_compiler
=no
22459 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22460 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22461 echo "${ECHO_T}$ac_header_compiler" >&6; }
22463 # Is the header present?
22464 { echo "$as_me:$LINENO: checking wchar.h presence" >&5
22465 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; }
22466 cat >conftest.
$ac_ext <<_ACEOF
22469 cat confdefs.h
>>conftest.
$ac_ext
22470 cat >>conftest.
$ac_ext <<_ACEOF
22471 /* end confdefs.h. */
22474 if { (ac_try
="$ac_cpp conftest.$ac_ext"
22475 case "(($ac_try" in
22476 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22477 *) ac_try_echo=$ac_try;;
22479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22480 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22482 grep -v '^ *+' conftest.er1 >conftest.err
22484 cat conftest.err >&5
22485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22486 (exit $ac_status); } >/dev/null && {
22487 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22488 test ! -s conftest.err
22490 ac_header_preproc=yes
22492 echo "$as_me: failed program was:" >&5
22493 sed 's/^/| /' conftest.$ac_ext >&5
22495 ac_header_preproc=no
22498 rm -f conftest.err conftest.$ac_ext
22499 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22500 echo "${ECHO_T}$ac_header_preproc" >&6; }
22502 # So? What about this header?
22503 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22505 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
22506 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22507 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
22508 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
22509 ac_header_preproc=yes
22512 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
22513 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
22514 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
22515 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
22516 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
22517 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
22518 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
22519 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
22520 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
22521 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
22522 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
22523 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
22525 ## ------------------------------------------------ ##
22526 ## Report this to http://www.python.org/python-bugs ##
22527 ## ------------------------------------------------ ##
22529 ) | sed "s/^/$as_me: WARNING: /" >&2
22532 { echo "$as_me:$LINENO: checking for wchar.h" >&5
22533 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
22534 if test "${ac_cv_header_wchar_h+set}" = set; then
22535 echo $ECHO_N "(cached) $ECHO_C" >&6
22537 ac_cv_header_wchar_h=$ac_header_preproc
22539 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
22540 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
22543 if test $ac_cv_header_wchar_h = yes; then
22546 cat >>confdefs.h <<\_ACEOF
22547 #define HAVE_WCHAR_H 1
22559 # determine wchar_t size
22560 if test "$wchar_h" = yes
22562 { echo "$as_me:$LINENO: checking for wchar_t" >&5
22563 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
22564 if test "${ac_cv_type_wchar_t+set}" = set; then
22565 echo $ECHO_N "(cached) $ECHO_C" >&6
22567 cat >conftest.$ac_ext <<_ACEOF
22570 cat confdefs.h >>conftest.$ac_ext
22571 cat >>conftest.$ac_ext <<_ACEOF
22572 /* end confdefs.h. */
22575 typedef wchar_t ac__type_new_;
22579 if ((ac__type_new_ *) 0)
22581 if (sizeof (ac__type_new_))
22587 rm -f conftest.$ac_objext
22588 if { (ac_try="$ac_compile"
22589 case "(($ac_try" in
22590 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22591 *) ac_try_echo
=$ac_try;;
22593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22594 (eval "$ac_compile") 2>conftest.er1
22596 grep -v '^ *+' conftest.er1
>conftest.err
22598 cat conftest.err
>&5
22599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22600 (exit $ac_status); } && {
22601 test -z "$ac_c_werror_flag" ||
22602 test ! -s conftest.err
22603 } && test -s conftest.
$ac_objext; then
22604 ac_cv_type_wchar_t
=yes
22606 echo "$as_me: failed program was:" >&5
22607 sed 's/^/| /' conftest.
$ac_ext >&5
22609 ac_cv_type_wchar_t
=no
22612 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22614 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
22615 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
22617 # The cast to long int works around a bug in the HP C Compiler
22618 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22619 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22620 # This bug is HP SR number 8606223364.
22621 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
22622 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
22623 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
22624 echo $ECHO_N "(cached) $ECHO_C" >&6
22626 if test "$cross_compiling" = yes; then
22627 # Depending upon the size, compute the lo and hi bounds.
22628 cat >conftest.
$ac_ext <<_ACEOF
22631 cat confdefs.h
>>conftest.
$ac_ext
22632 cat >>conftest.
$ac_ext <<_ACEOF
22633 /* end confdefs.h. */
22636 typedef wchar_t ac__type_sizeof_;
22640 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22647 rm -f conftest.
$ac_objext
22648 if { (ac_try
="$ac_compile"
22649 case "(($ac_try" in
22650 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22651 *) ac_try_echo=$ac_try;;
22653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22654 (eval "$ac_compile") 2>conftest.er1
22656 grep -v '^ *+' conftest.er1 >conftest.err
22658 cat conftest.err >&5
22659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22660 (exit $ac_status); } && {
22661 test -z "$ac_c_werror_flag" ||
22662 test ! -s conftest.err
22663 } && test -s conftest.$ac_objext; then
22666 cat >conftest.$ac_ext <<_ACEOF
22669 cat confdefs.h >>conftest.$ac_ext
22670 cat >>conftest.$ac_ext <<_ACEOF
22671 /* end confdefs.h. */
22674 typedef wchar_t ac__type_sizeof_;
22678 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22685 rm -f conftest.$ac_objext
22686 if { (ac_try="$ac_compile"
22687 case "(($ac_try" in
22688 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22689 *) ac_try_echo
=$ac_try;;
22691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22692 (eval "$ac_compile") 2>conftest.er1
22694 grep -v '^ *+' conftest.er1
>conftest.err
22696 cat conftest.err
>&5
22697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22698 (exit $ac_status); } && {
22699 test -z "$ac_c_werror_flag" ||
22700 test ! -s conftest.err
22701 } && test -s conftest.
$ac_objext; then
22702 ac_hi
=$ac_mid; break
22704 echo "$as_me: failed program was:" >&5
22705 sed 's/^/| /' conftest.
$ac_ext >&5
22707 ac_lo
=`expr $ac_mid + 1`
22708 if test $ac_lo -le $ac_mid; then
22712 ac_mid
=`expr 2 '*' $ac_mid + 1`
22715 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22718 echo "$as_me: failed program was:" >&5
22719 sed 's/^/| /' conftest.
$ac_ext >&5
22721 cat >conftest.
$ac_ext <<_ACEOF
22724 cat confdefs.h
>>conftest.
$ac_ext
22725 cat >>conftest.
$ac_ext <<_ACEOF
22726 /* end confdefs.h. */
22729 typedef wchar_t ac__type_sizeof_;
22733 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22740 rm -f conftest.
$ac_objext
22741 if { (ac_try
="$ac_compile"
22742 case "(($ac_try" in
22743 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22744 *) ac_try_echo=$ac_try;;
22746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22747 (eval "$ac_compile") 2>conftest.er1
22749 grep -v '^ *+' conftest.er1 >conftest.err
22751 cat conftest.err >&5
22752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22753 (exit $ac_status); } && {
22754 test -z "$ac_c_werror_flag" ||
22755 test ! -s conftest.err
22756 } && test -s conftest.$ac_objext; then
22759 cat >conftest.$ac_ext <<_ACEOF
22762 cat confdefs.h >>conftest.$ac_ext
22763 cat >>conftest.$ac_ext <<_ACEOF
22764 /* end confdefs.h. */
22767 typedef wchar_t ac__type_sizeof_;
22771 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22778 rm -f conftest.$ac_objext
22779 if { (ac_try="$ac_compile"
22780 case "(($ac_try" in
22781 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22782 *) ac_try_echo
=$ac_try;;
22784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22785 (eval "$ac_compile") 2>conftest.er1
22787 grep -v '^ *+' conftest.er1
>conftest.err
22789 cat conftest.err
>&5
22790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22791 (exit $ac_status); } && {
22792 test -z "$ac_c_werror_flag" ||
22793 test ! -s conftest.err
22794 } && test -s conftest.
$ac_objext; then
22795 ac_lo
=$ac_mid; break
22797 echo "$as_me: failed program was:" >&5
22798 sed 's/^/| /' conftest.
$ac_ext >&5
22800 ac_hi
=`expr '(' $ac_mid ')' - 1`
22801 if test $ac_mid -le $ac_hi; then
22805 ac_mid
=`expr 2 '*' $ac_mid`
22808 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22811 echo "$as_me: failed program was:" >&5
22812 sed 's/^/| /' conftest.
$ac_ext >&5
22817 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22820 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22821 # Binary search between lo and hi bounds.
22822 while test "x$ac_lo" != "x$ac_hi"; do
22823 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22824 cat >conftest.
$ac_ext <<_ACEOF
22827 cat confdefs.h
>>conftest.
$ac_ext
22828 cat >>conftest.
$ac_ext <<_ACEOF
22829 /* end confdefs.h. */
22832 typedef wchar_t ac__type_sizeof_;
22836 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22843 rm -f conftest.
$ac_objext
22844 if { (ac_try
="$ac_compile"
22845 case "(($ac_try" in
22846 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22847 *) ac_try_echo=$ac_try;;
22849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22850 (eval "$ac_compile") 2>conftest.er1
22852 grep -v '^ *+' conftest.er1 >conftest.err
22854 cat conftest.err >&5
22855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22856 (exit $ac_status); } && {
22857 test -z "$ac_c_werror_flag" ||
22858 test ! -s conftest.err
22859 } && test -s conftest.$ac_objext; then
22862 echo "$as_me: failed program was:" >&5
22863 sed 's/^/| /' conftest.$ac_ext >&5
22865 ac_lo=`expr '(' $ac_mid ')' + 1`
22868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22871 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
22872 '') if test "$ac_cv_type_wchar_t" = yes; then
22873 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
22874 See \`config.log
' for more details." >&5
22875 echo "$as_me: error: cannot compute sizeof (wchar_t)
22876 See \`config.log' for more details.
" >&2;}
22877 { (exit 77); exit 77; }; }
22879 ac_cv_sizeof_wchar_t=0
22883 cat >conftest.$ac_ext <<_ACEOF
22886 cat confdefs.h >>conftest.$ac_ext
22887 cat >>conftest.$ac_ext <<_ACEOF
22888 /* end confdefs.h. */
22891 typedef wchar_t ac__type_sizeof_;
22892 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22893 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22895 #include <stdlib.h>
22900 FILE *f = fopen ("conftest.val
", "w
");
22903 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22905 long int i = longval ();
22906 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22908 fprintf (f, "%ld
\n", i);
22912 unsigned long int i = ulongval ();
22913 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22915 fprintf (f, "%lu
\n", i);
22917 return ferror (f) || fclose (f) != 0;
22923 rm -f conftest$ac_exeext
22924 if { (ac_try="$ac_link"
22925 case "(($ac_try" in
22926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22927 *) ac_try_echo=$ac_try;;
22929 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22930 (eval "$ac_link") 2>&5
22932 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22933 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22934 { (case "(($ac_try" in
22935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22936 *) ac_try_echo=$ac_try;;
22938 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22939 (eval "$ac_try") 2>&5
22941 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22942 (exit $ac_status); }; }; then
22943 ac_cv_sizeof_wchar_t=`cat conftest.val`
22945 echo "$as_me: program exited with status
$ac_status" >&5
22946 echo "$as_me: failed program was
:" >&5
22947 sed 's/^/| /' conftest.$ac_ext >&5
22949 ( exit $ac_status )
22950 if test "$ac_cv_type_wchar_t" = yes; then
22951 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(wchar_t
)
22952 See \
`config.log' for more details." >&5
22953 echo "$as_me: error: cannot compute sizeof (wchar_t)
22954 See \`config.log
' for more details." >&2;}
22955 { (exit 77); exit 77; }; }
22957 ac_cv_sizeof_wchar_t=0
22960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22964 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
22965 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
22969 cat >>confdefs.h <<_ACEOF
22970 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
22976 { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
22977 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6; }
22979 cat >conftest.$ac_ext <<_ACEOF
22982 cat confdefs.h >>conftest.$ac_ext
22983 cat >>conftest.$ac_ext <<_ACEOF
22984 /* end confdefs.h. */
22987 #if TCL_UTF_MAX != 6
22988 # error "NOT UCS4_TCL"
22998 rm -f conftest.$ac_objext
22999 if { (ac_try="$ac_compile"
23000 case "(($ac_try" in
23001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23002 *) ac_try_echo=$ac_try;;
23004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23005 (eval "$ac_compile") 2>conftest.er1
23007 grep -v '^
*+' conftest.er1 >conftest.err
23009 cat conftest.err >&5
23010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23011 (exit $ac_status); } && {
23012 test -z "$ac_c_werror_flag" ||
23013 test ! -s conftest.err
23014 } && test -s conftest.$ac_objext; then
23017 cat >>confdefs.h <<\_ACEOF
23018 #define HAVE_UCS4_TCL 1
23024 echo "$as_me: failed program was:" >&5
23025 sed 's
/^
/|
/' conftest.$ac_ext >&5
23030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23031 { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
23032 echo "${ECHO_T}$have_ucs4_tcl" >&6; }
23034 # check whether wchar_t is signed or not
23035 if test "$wchar_h" = yes
23037 # check whether wchar_t is signed or not
23038 { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
23039 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6; }
23040 if test "${ac_cv_wchar_t_signed+set}" = set; then
23041 echo $ECHO_N "(cached) $ECHO_C" >&6
23044 if test "$cross_compiling" = yes; then
23045 ac_cv_wchar_t_signed=yes
23047 cat >conftest.$ac_ext <<_ACEOF
23050 cat confdefs.h >>conftest.$ac_ext
23051 cat >>conftest.$ac_ext <<_ACEOF
23052 /* end confdefs.h. */
23057 /* Success: exit code 0 */
23058 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
23062 rm -f conftest$ac_exeext
23063 if { (ac_try="$ac_link"
23064 case "(($ac_try" in
23065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23066 *) ac_try_echo=$ac_try;;
23068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23069 (eval "$ac_link") 2>&5
23071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23072 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
23073 { (case "(($ac_try" in
23074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23075 *) ac_try_echo=$ac_try;;
23077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23078 (eval "$ac_try") 2>&5
23080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23081 (exit $ac_status); }; }; then
23082 ac_cv_wchar_t_signed=yes
23084 echo "$as_me: program exited with status $ac_status" >&5
23085 echo "$as_me: failed program was:" >&5
23086 sed 's
/^
/|
/' conftest.$ac_ext >&5
23088 ( exit $ac_status )
23089 ac_cv_wchar_t_signed=no
23091 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23097 { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
23098 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
23101 { echo "$as_me:$LINENO: checking what type to use for unicode" >&5
23102 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6; }
23103 # Check whether --enable-unicode was given.
23104 if test "${enable_unicode+set}" = set; then
23105 enableval=$enable_unicode;
23111 if test $enable_unicode = yes
23113 # Without any arguments, Py_UNICODE defaults to two-byte mode
23114 case "$have_ucs4_tcl" in
23115 yes) enable_unicode="ucs4"
23117 *) enable_unicode="ucs2"
23124 case "$enable_unicode" in
23125 ucs2) unicode_size="2"
23126 cat >>confdefs.h <<\_ACEOF
23127 #define Py_UNICODE_SIZE 2
23131 ucs4) unicode_size="4"
23132 cat >>confdefs.h <<\_ACEOF
23133 #define Py_UNICODE_SIZE 4
23143 if test "$enable_unicode" = "no"
23146 { echo "$as_me:$LINENO: result: not used" >&5
23147 echo "${ECHO_T}not used" >&6; }
23149 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
23151 cat >>confdefs.h <<\_ACEOF
23152 #define Py_USING_UNICODE 1
23156 # wchar_t is only usable if it maps to an unsigned type
23157 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
23158 -a "$ac_cv_wchar_t_signed" = "no"
23160 PY_UNICODE_TYPE="wchar_t"
23162 cat >>confdefs.h <<\_ACEOF
23163 #define HAVE_USABLE_WCHAR_T 1
23166 cat >>confdefs.h <<\_ACEOF
23167 #define PY_UNICODE_TYPE wchar_t
23170 elif test "$ac_cv_sizeof_short" = "$unicode_size"
23172 PY_UNICODE_TYPE="unsigned short"
23173 cat >>confdefs.h <<\_ACEOF
23174 #define PY_UNICODE_TYPE unsigned short
23177 elif test "$ac_cv_sizeof_long" = "$unicode_size"
23179 PY_UNICODE_TYPE="unsigned long"
23180 cat >>confdefs.h <<\_ACEOF
23181 #define PY_UNICODE_TYPE unsigned long
23185 PY_UNICODE_TYPE="no type found"
23187 { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
23188 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
23191 # check for endianness
23192 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
23193 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
23194 if test "${ac_cv_c_bigendian+set}" = set; then
23195 echo $ECHO_N "(cached) $ECHO_C" >&6
23197 # See if sys/param.h defines the BYTE_ORDER macro.
23198 cat >conftest.$ac_ext <<_ACEOF
23201 cat confdefs.h >>conftest.$ac_ext
23202 cat >>conftest.$ac_ext <<_ACEOF
23203 /* end confdefs.h. */
23204 #include <sys/types.h>
23205 #include <sys/param.h>
23210 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
23211 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
23212 bogus endian macros
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
23236 # It does; now see whether it defined to BIG_ENDIAN or not.
23237 cat >conftest.$ac_ext <<_ACEOF
23240 cat confdefs.h >>conftest.$ac_ext
23241 cat >>conftest.$ac_ext <<_ACEOF
23242 /* end confdefs.h. */
23243 #include <sys/types.h>
23244 #include <sys/param.h>
23249 #if BYTE_ORDER != BIG_ENDIAN
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_cv_c_bigendian=yes
23276 echo "$as_me: failed program was:" >&5
23277 sed 's
/^
/|
/' conftest.$ac_ext >&5
23279 ac_cv_c_bigendian=no
23282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23284 echo "$as_me: failed program was:" >&5
23285 sed 's
/^
/|
/' conftest.$ac_ext >&5
23287 # It does not; compile a test program.
23288 if test "$cross_compiling" = yes; then
23289 # try to guess the endianness by grepping values into an object file
23290 ac_cv_c_bigendian=unknown
23291 cat >conftest.$ac_ext <<_ACEOF
23294 cat confdefs.h >>conftest.$ac_ext
23295 cat >>conftest.$ac_ext <<_ACEOF
23296 /* end confdefs.h. */
23297 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23298 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23299 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
23300 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23301 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23302 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
23306 _ascii (); _ebcdic ();
23311 rm -f conftest.$ac_objext
23312 if { (ac_try="$ac_compile"
23313 case "(($ac_try" in
23314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23315 *) ac_try_echo=$ac_try;;
23317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23318 (eval "$ac_compile") 2>conftest.er1
23320 grep -v '^
*+' conftest.er1 >conftest.err
23322 cat conftest.err >&5
23323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23324 (exit $ac_status); } && {
23325 test -z "$ac_c_werror_flag" ||
23326 test ! -s conftest.err
23327 } && test -s conftest.$ac_objext; then
23328 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
23329 ac_cv_c_bigendian=yes
23331 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23332 if test "$ac_cv_c_bigendian" = unknown; then
23333 ac_cv_c_bigendian=no
23335 # finding both strings is unlikely to happen, but who knows?
23336 ac_cv_c_bigendian=unknown
23340 echo "$as_me: failed program was:" >&5
23341 sed 's
/^
/|
/' conftest.$ac_ext >&5
23346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23348 cat >conftest.$ac_ext <<_ACEOF
23351 cat confdefs.h >>conftest.$ac_ext
23352 cat >>conftest.$ac_ext <<_ACEOF
23353 /* end confdefs.h. */
23354 $ac_includes_default
23359 /* Are we little or big endian? From Harbison&Steele. */
23363 char c[sizeof (long int)];
23366 return u.c[sizeof (long int) - 1] == 1;
23372 rm -f conftest$ac_exeext
23373 if { (ac_try="$ac_link"
23374 case "(($ac_try" in
23375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23376 *) ac_try_echo=$ac_try;;
23378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23379 (eval "$ac_link") 2>&5
23381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23382 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
23383 { (case "(($ac_try" in
23384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23385 *) ac_try_echo=$ac_try;;
23387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23388 (eval "$ac_try") 2>&5
23390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23391 (exit $ac_status); }; }; then
23392 ac_cv_c_bigendian=no
23394 echo "$as_me: program exited with status $ac_status" >&5
23395 echo "$as_me: failed program was:" >&5
23396 sed 's
/^
/|
/' conftest.$ac_ext >&5
23398 ( exit $ac_status )
23399 ac_cv_c_bigendian=yes
23401 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23409 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
23410 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
23411 case $ac_cv_c_bigendian in
23414 cat >>confdefs.h <<\_ACEOF
23415 #define WORDS_BIGENDIAN 1
23421 { { echo "$as_me:$LINENO: error: unknown endianness
23422 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
23423 echo "$as_me: error: unknown endianness
23424 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
23425 { (exit 1); exit 1; }; } ;;
23429 # Check whether right shifting a negative integer extends the sign bit
23430 # or fills with zeros (like the Cray J90, according to Tim Peters).
23431 { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
23432 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6; }
23433 if test "${ac_cv_rshift_extends_sign+set}" = set; then
23434 echo $ECHO_N "(cached) $ECHO_C" >&6
23437 if test "$cross_compiling" = yes; then
23438 ac_cv_rshift_extends_sign=yes
23440 cat >conftest.$ac_ext <<_ACEOF
23443 cat confdefs.h >>conftest.$ac_ext
23444 cat >>conftest.$ac_ext <<_ACEOF
23445 /* end confdefs.h. */
23449 exit(((-1)>>3 == -1) ? 0 : 1);
23453 rm -f conftest$ac_exeext
23454 if { (ac_try="$ac_link"
23455 case "(($ac_try" in
23456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23457 *) ac_try_echo=$ac_try;;
23459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23460 (eval "$ac_link") 2>&5
23462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23463 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
23464 { (case "(($ac_try" in
23465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23466 *) ac_try_echo=$ac_try;;
23468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23469 (eval "$ac_try") 2>&5
23471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23472 (exit $ac_status); }; }; then
23473 ac_cv_rshift_extends_sign=yes
23475 echo "$as_me: program exited with status $ac_status" >&5
23476 echo "$as_me: failed program was:" >&5
23477 sed 's
/^
/|
/' conftest.$ac_ext >&5
23479 ( exit $ac_status )
23480 ac_cv_rshift_extends_sign=no
23482 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23488 { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
23489 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
23490 if test "$ac_cv_rshift_extends_sign" = no
23493 cat >>confdefs.h <<\_ACEOF
23494 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
23499 # check for getc_unlocked and related locking functions
23500 { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
23501 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6; }
23502 if test "${ac_cv_have_getc_unlocked+set}" = set; then
23503 echo $ECHO_N "(cached) $ECHO_C" >&6
23506 cat >conftest.$ac_ext <<_ACEOF
23509 cat confdefs.h >>conftest.$ac_ext
23510 cat >>conftest.$ac_ext <<_ACEOF
23511 /* end confdefs.h. */
23517 FILE *f = fopen("/dev/null", "r");
23526 rm -f conftest.$ac_objext conftest$ac_exeext
23527 if { (ac_try="$ac_link"
23528 case "(($ac_try" in
23529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23530 *) ac_try_echo=$ac_try;;
23532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23533 (eval "$ac_link") 2>conftest.er1
23535 grep -v '^
*+' conftest.er1 >conftest.err
23537 cat conftest.err >&5
23538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23539 (exit $ac_status); } && {
23540 test -z "$ac_c_werror_flag" ||
23541 test ! -s conftest.err
23542 } && test -s conftest$ac_exeext &&
23543 $as_test_x conftest$ac_exeext; then
23544 ac_cv_have_getc_unlocked=yes
23546 echo "$as_me: failed program was:" >&5
23547 sed 's
/^
/|
/' conftest.$ac_ext >&5
23549 ac_cv_have_getc_unlocked=no
23552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23553 conftest$ac_exeext conftest.$ac_ext
23556 { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
23557 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
23558 if test "$ac_cv_have_getc_unlocked" = yes
23561 cat >>confdefs.h <<\_ACEOF
23562 #define HAVE_GETC_UNLOCKED 1
23567 # check where readline lives
23568 # save the value of LIBS so we don't actually link Python with readline
23569 LIBS_no_readline
=$LIBS
23571 # On some systems we need to link readline to a termcap compatible
23572 # library. NOTE: Keep the precedence of listed libraries synchronised
23574 py_cv_lib_readline
=no
23575 { echo "$as_me:$LINENO: checking how to link readline libs" >&5
23576 echo $ECHO_N "checking how to link readline libs... $ECHO_C" >&6; }
23577 for py_libtermcap
in "" ncursesw ncurses curses termcap
; do
23578 if test -z "$py_libtermcap"; then
23579 READLINE_LIBS
="-lreadline"
23581 READLINE_LIBS
="-lreadline -l$py_libtermcap"
23583 LIBS
="$READLINE_LIBS $LIBS_no_readline"
23584 cat >conftest.
$ac_ext <<_ACEOF
23587 cat confdefs.h
>>conftest.
$ac_ext
23588 cat >>conftest.
$ac_ext <<_ACEOF
23589 /* end confdefs.h. */
23591 /* Override any GCC internal prototype to avoid an error.
23592 Use char because int might match the return type of a GCC
23593 builtin and then its argument prototype would still apply. */
23601 return readline ();
23606 rm -f conftest.
$ac_objext conftest
$ac_exeext
23607 if { (ac_try
="$ac_link"
23608 case "(($ac_try" in
23609 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23610 *) ac_try_echo=$ac_try;;
23612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23613 (eval "$ac_link") 2>conftest.er1
23615 grep -v '^ *+' conftest.er1 >conftest.err
23617 cat conftest.err >&5
23618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23619 (exit $ac_status); } && {
23620 test -z "$ac_c_werror_flag" ||
23621 test ! -s conftest.err
23622 } && test -s conftest$ac_exeext &&
23623 $as_test_x conftest$ac_exeext; then
23624 py_cv_lib_readline=yes
23626 echo "$as_me: failed program was:" >&5
23627 sed 's/^/| /' conftest.$ac_ext >&5
23632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23633 conftest$ac_exeext conftest.$ac_ext
23634 if test $py_cv_lib_readline = yes; then
23638 # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts
23639 #AC_SUBST([READLINE_LIBS])
23640 if test $py_cv_lib_readline = no; then
23641 { echo "$as_me:$LINENO: result: none" >&5
23642 echo "${ECHO_T}none" >&6; }
23644 { echo "$as_me:$LINENO: result: $READLINE_LIBS" >&5
23645 echo "${ECHO_T}$READLINE_LIBS" >&6; }
23647 cat >>confdefs.h <<\_ACEOF
23648 #define HAVE_LIBREADLINE 1
23653 # check for readline 2.1
23654 { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
23655 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6; }
23656 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
23657 echo $ECHO_N "(cached) $ECHO_C" >&6
23659 ac_check_lib_save_LIBS=$LIBS
23660 LIBS="-lreadline $READLINE_LIBS $LIBS"
23661 cat >conftest.$ac_ext <<_ACEOF
23664 cat confdefs.h >>conftest.$ac_ext
23665 cat >>conftest.$ac_ext <<_ACEOF
23666 /* end confdefs.h. */
23668 /* Override any GCC internal prototype to avoid an error.
23669 Use char because int might match the return type of a GCC
23670 builtin and then its argument prototype would still apply. */
23674 char rl_callback_handler_install ();
23678 return rl_callback_handler_install ();
23683 rm -f conftest.$ac_objext conftest$ac_exeext
23684 if { (ac_try="$ac_link"
23685 case "(($ac_try" in
23686 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23687 *) ac_try_echo
=$ac_try;;
23689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23690 (eval "$ac_link") 2>conftest.er1
23692 grep -v '^ *+' conftest.er1
>conftest.err
23694 cat conftest.err
>&5
23695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23696 (exit $ac_status); } && {
23697 test -z "$ac_c_werror_flag" ||
23698 test ! -s conftest.err
23699 } && test -s conftest
$ac_exeext &&
23700 $as_test_x conftest
$ac_exeext; then
23701 ac_cv_lib_readline_rl_callback_handler_install
=yes
23703 echo "$as_me: failed program was:" >&5
23704 sed 's/^/| /' conftest.
$ac_ext >&5
23706 ac_cv_lib_readline_rl_callback_handler_install
=no
23709 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23710 conftest
$ac_exeext conftest.
$ac_ext
23711 LIBS
=$ac_check_lib_save_LIBS
23713 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
23714 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
23715 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
23717 cat >>confdefs.h
<<\_ACEOF
23718 #define HAVE_RL_CALLBACK 1
23724 # check for readline 2.2
23725 cat >conftest.
$ac_ext <<_ACEOF
23728 cat confdefs.h
>>conftest.
$ac_ext
23729 cat >>conftest.
$ac_ext <<_ACEOF
23730 /* end confdefs.h. */
23731 #include <readline/readline.h>
23733 if { (ac_try
="$ac_cpp conftest.$ac_ext"
23734 case "(($ac_try" in
23735 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23736 *) ac_try_echo=$ac_try;;
23738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23739 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23741 grep -v '^ *+' conftest.er1 >conftest.err
23743 cat conftest.err >&5
23744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23745 (exit $ac_status); } >/dev/null && {
23746 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23747 test ! -s conftest.err
23751 echo "$as_me: failed program was:" >&5
23752 sed 's/^/| /' conftest.$ac_ext >&5
23757 rm -f conftest.err conftest.$ac_ext
23758 if test $have_readline = yes
23760 cat >conftest.$ac_ext <<_ACEOF
23763 cat confdefs.h >>conftest.$ac_ext
23764 cat >>conftest.$ac_ext <<_ACEOF
23765 /* end confdefs.h. */
23766 #include <readline/readline.h>
23769 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23770 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
23772 cat >>confdefs.h <<\_ACEOF
23773 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
23781 # check for readline 4.0
23782 { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
23783 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6; }
23784 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
23785 echo $ECHO_N "(cached) $ECHO_C" >&6
23787 ac_check_lib_save_LIBS=$LIBS
23788 LIBS="-lreadline $READLINE_LIBS $LIBS"
23789 cat >conftest.$ac_ext <<_ACEOF
23792 cat confdefs.h >>conftest.$ac_ext
23793 cat >>conftest.$ac_ext <<_ACEOF
23794 /* end confdefs.h. */
23796 /* Override any GCC internal prototype to avoid an error.
23797 Use char because int might match the return type of a GCC
23798 builtin and then its argument prototype would still apply. */
23802 char rl_pre_input_hook ();
23806 return rl_pre_input_hook ();
23811 rm -f conftest.$ac_objext conftest$ac_exeext
23812 if { (ac_try="$ac_link"
23813 case "(($ac_try" in
23814 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23815 *) ac_try_echo
=$ac_try;;
23817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23818 (eval "$ac_link") 2>conftest.er1
23820 grep -v '^ *+' conftest.er1
>conftest.err
23822 cat conftest.err
>&5
23823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23824 (exit $ac_status); } && {
23825 test -z "$ac_c_werror_flag" ||
23826 test ! -s conftest.err
23827 } && test -s conftest
$ac_exeext &&
23828 $as_test_x conftest
$ac_exeext; then
23829 ac_cv_lib_readline_rl_pre_input_hook
=yes
23831 echo "$as_me: failed program was:" >&5
23832 sed 's/^/| /' conftest.
$ac_ext >&5
23834 ac_cv_lib_readline_rl_pre_input_hook
=no
23837 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23838 conftest
$ac_exeext conftest.
$ac_ext
23839 LIBS
=$ac_check_lib_save_LIBS
23841 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
23842 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
23843 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
23845 cat >>confdefs.h
<<\_ACEOF
23846 #define HAVE_RL_PRE_INPUT_HOOK 1
23853 { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5
23854 echo $ECHO_N "checking for rl_completion_display_matches_hook in -lreadline... $ECHO_C" >&6; }
23855 if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
23856 echo $ECHO_N "(cached) $ECHO_C" >&6
23858 ac_check_lib_save_LIBS
=$LIBS
23859 LIBS
="-lreadline $READLINE_LIBS $LIBS"
23860 cat >conftest.
$ac_ext <<_ACEOF
23863 cat confdefs.h
>>conftest.
$ac_ext
23864 cat >>conftest.
$ac_ext <<_ACEOF
23865 /* end confdefs.h. */
23867 /* Override any GCC internal prototype to avoid an error.
23868 Use char because int might match the return type of a GCC
23869 builtin and then its argument prototype would still apply. */
23873 char rl_completion_display_matches_hook ();
23877 return rl_completion_display_matches_hook ();
23882 rm -f conftest.
$ac_objext conftest
$ac_exeext
23883 if { (ac_try
="$ac_link"
23884 case "(($ac_try" in
23885 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23886 *) ac_try_echo=$ac_try;;
23888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23889 (eval "$ac_link") 2>conftest.er1
23891 grep -v '^ *+' conftest.er1 >conftest.err
23893 cat conftest.err >&5
23894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23895 (exit $ac_status); } && {
23896 test -z "$ac_c_werror_flag" ||
23897 test ! -s conftest.err
23898 } && test -s conftest$ac_exeext &&
23899 $as_test_x conftest$ac_exeext; then
23900 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
23902 echo "$as_me: failed program was:" >&5
23903 sed 's/^/| /' conftest.$ac_ext >&5
23905 ac_cv_lib_readline_rl_completion_display_matches_hook=no
23908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23909 conftest$ac_exeext conftest.$ac_ext
23910 LIBS=$ac_check_lib_save_LIBS
23912 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
23913 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
23914 if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then
23916 cat >>confdefs.h <<\_ACEOF
23917 #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
23923 # check for readline 4.2
23924 { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
23925 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; }
23926 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
23927 echo $ECHO_N "(cached) $ECHO_C" >&6
23929 ac_check_lib_save_LIBS=$LIBS
23930 LIBS="-lreadline $READLINE_LIBS $LIBS"
23931 cat >conftest.$ac_ext <<_ACEOF
23934 cat confdefs.h >>conftest.$ac_ext
23935 cat >>conftest.$ac_ext <<_ACEOF
23936 /* end confdefs.h. */
23938 /* Override any GCC internal prototype to avoid an error.
23939 Use char because int might match the return type of a GCC
23940 builtin and then its argument prototype would still apply. */
23944 char rl_completion_matches ();
23948 return rl_completion_matches ();
23953 rm -f conftest.$ac_objext conftest$ac_exeext
23954 if { (ac_try="$ac_link"
23955 case "(($ac_try" in
23956 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23957 *) ac_try_echo
=$ac_try;;
23959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23960 (eval "$ac_link") 2>conftest.er1
23962 grep -v '^ *+' conftest.er1
>conftest.err
23964 cat conftest.err
>&5
23965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23966 (exit $ac_status); } && {
23967 test -z "$ac_c_werror_flag" ||
23968 test ! -s conftest.err
23969 } && test -s conftest
$ac_exeext &&
23970 $as_test_x conftest
$ac_exeext; then
23971 ac_cv_lib_readline_rl_completion_matches
=yes
23973 echo "$as_me: failed program was:" >&5
23974 sed 's/^/| /' conftest.
$ac_ext >&5
23976 ac_cv_lib_readline_rl_completion_matches
=no
23979 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23980 conftest
$ac_exeext conftest.
$ac_ext
23981 LIBS
=$ac_check_lib_save_LIBS
23983 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
23984 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
23985 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
23987 cat >>confdefs.h
<<\_ACEOF
23988 #define HAVE_RL_COMPLETION_MATCHES 1
23994 # also in readline 4.2
23995 cat >conftest.
$ac_ext <<_ACEOF
23998 cat confdefs.h
>>conftest.
$ac_ext
23999 cat >>conftest.
$ac_ext <<_ACEOF
24000 /* end confdefs.h. */
24001 #include <readline/readline.h>
24003 if { (ac_try
="$ac_cpp conftest.$ac_ext"
24004 case "(($ac_try" in
24005 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24006 *) ac_try_echo=$ac_try;;
24008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24009 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24011 grep -v '^ *+' conftest.er1 >conftest.err
24013 cat conftest.err >&5
24014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24015 (exit $ac_status); } >/dev/null && {
24016 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24017 test ! -s conftest.err
24021 echo "$as_me: failed program was:" >&5
24022 sed 's/^/| /' conftest.$ac_ext >&5
24027 rm -f conftest.err conftest.$ac_ext
24028 if test $have_readline = yes
24030 cat >conftest.$ac_ext <<_ACEOF
24033 cat confdefs.h >>conftest.$ac_ext
24034 cat >>conftest.$ac_ext <<_ACEOF
24035 /* end confdefs.h. */
24036 #include <readline/readline.h>
24039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24040 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
24042 cat >>confdefs.h <<\_ACEOF
24043 #define HAVE_RL_CATCH_SIGNAL 1
24051 # End of readline checks: restore LIBS
24052 LIBS=$LIBS_no_readline
24054 { echo "$as_me:$LINENO: checking for broken nice()" >&5
24055 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; }
24056 if test "${ac_cv_broken_nice+set}" = set; then
24057 echo $ECHO_N "(cached) $ECHO_C" >&6
24060 if test "$cross_compiling" = yes; then
24061 ac_cv_broken_nice=no
24063 cat >conftest.$ac_ext <<_ACEOF
24066 cat confdefs.h >>conftest.$ac_ext
24067 cat >>conftest.$ac_ext <<_ACEOF
24068 /* end confdefs.h. */
24072 int val1 = nice(1);
24073 if (val1 != -1 && val1 == nice(2))
24079 rm -f 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>&5
24088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24089 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24090 { (case "(($ac_try" in
24091 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24092 *) ac_try_echo=$ac_try;;
24094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24095 (eval "$ac_try") 2>&5
24097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24098 (exit $ac_status); }; }; then
24099 ac_cv_broken_nice=yes
24101 echo "$as_me: program exited with status $ac_status" >&5
24102 echo "$as_me: failed program was:" >&5
24103 sed 's/^/| /' conftest.$ac_ext >&5
24105 ( exit $ac_status )
24106 ac_cv_broken_nice=no
24108 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24114 { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
24115 echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
24116 if test "$ac_cv_broken_nice" = yes
24119 cat >>confdefs.h <<\_ACEOF
24120 #define HAVE_BROKEN_NICE 1
24125 { echo "$as_me:$LINENO: checking for broken poll()" >&5
24126 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; }
24127 if test "$cross_compiling" = yes; then
24128 ac_cv_broken_poll=no
24130 cat >conftest.$ac_ext <<_ACEOF
24133 cat confdefs.h >>conftest.$ac_ext
24134 cat >>conftest.$ac_ext <<_ACEOF
24135 /* end confdefs.h. */
24141 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
24145 int poll_test = poll (&poll_struct, 1, 0);
24151 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
24162 rm -f conftest$ac_exeext
24163 if { (ac_try="$ac_link"
24164 case "(($ac_try" in
24165 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24166 *) ac_try_echo
=$ac_try;;
24168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24169 (eval "$ac_link") 2>&5
24171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24172 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24173 { (case "(($ac_try" in
24174 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24175 *) ac_try_echo=$ac_try;;
24177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24178 (eval "$ac_try") 2>&5
24180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24181 (exit $ac_status); }; }; then
24182 ac_cv_broken_poll=yes
24184 echo "$as_me: program exited with status $ac_status" >&5
24185 echo "$as_me: failed program was:" >&5
24186 sed 's/^/| /' conftest.$ac_ext >&5
24188 ( exit $ac_status )
24189 ac_cv_broken_poll=no
24191 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24195 { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
24196 echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
24197 if test "$ac_cv_broken_poll" = yes
24200 cat >>confdefs.h <<\_ACEOF
24201 #define HAVE_BROKEN_POLL 1
24206 # Before we can test tzset, we need to check if struct tm has a tm_zone
24207 # (which is not required by ISO C or UNIX spec) and/or if we support
24209 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
24210 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
24211 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
24212 echo $ECHO_N "(cached) $ECHO_C" >&6
24214 cat >conftest.$ac_ext <<_ACEOF
24217 cat confdefs.h >>conftest.$ac_ext
24218 cat >>conftest.$ac_ext <<_ACEOF
24219 /* end confdefs.h. */
24220 #include <sys/types.h>
24221 #include <$ac_cv_struct_tm>
24227 static struct tm ac_aggr;
24228 if (ac_aggr.tm_zone)
24234 rm -f conftest.$ac_objext
24235 if { (ac_try="$ac_compile"
24236 case "(($ac_try" in
24237 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24238 *) ac_try_echo
=$ac_try;;
24240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24241 (eval "$ac_compile") 2>conftest.er1
24243 grep -v '^ *+' conftest.er1
>conftest.err
24245 cat conftest.err
>&5
24246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24247 (exit $ac_status); } && {
24248 test -z "$ac_c_werror_flag" ||
24249 test ! -s conftest.err
24250 } && test -s conftest.
$ac_objext; then
24251 ac_cv_member_struct_tm_tm_zone
=yes
24253 echo "$as_me: failed program was:" >&5
24254 sed 's/^/| /' conftest.
$ac_ext >&5
24256 cat >conftest.
$ac_ext <<_ACEOF
24259 cat confdefs.h
>>conftest.
$ac_ext
24260 cat >>conftest.
$ac_ext <<_ACEOF
24261 /* end confdefs.h. */
24262 #include <sys/types.h>
24263 #include <$ac_cv_struct_tm>
24269 static struct tm ac_aggr;
24270 if (sizeof ac_aggr.tm_zone)
24276 rm -f conftest.
$ac_objext
24277 if { (ac_try
="$ac_compile"
24278 case "(($ac_try" in
24279 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24280 *) ac_try_echo=$ac_try;;
24282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24283 (eval "$ac_compile") 2>conftest.er1
24285 grep -v '^ *+' conftest.er1 >conftest.err
24287 cat conftest.err >&5
24288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24289 (exit $ac_status); } && {
24290 test -z "$ac_c_werror_flag" ||
24291 test ! -s conftest.err
24292 } && test -s conftest.$ac_objext; then
24293 ac_cv_member_struct_tm_tm_zone=yes
24295 echo "$as_me: failed program was:" >&5
24296 sed 's/^/| /' conftest.$ac_ext >&5
24298 ac_cv_member_struct_tm_tm_zone=no
24301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24306 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
24307 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
24308 if test $ac_cv_member_struct_tm_tm_zone = yes; then
24310 cat >>confdefs.h <<_ACEOF
24311 #define HAVE_STRUCT_TM_TM_ZONE 1
24317 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
24319 cat >>confdefs.h <<\_ACEOF
24320 #define HAVE_TM_ZONE 1
24324 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
24325 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
24326 if test "${ac_cv_have_decl_tzname+set}" = set; then
24327 echo $ECHO_N "(cached) $ECHO_C" >&6
24329 cat >conftest.$ac_ext <<_ACEOF
24332 cat confdefs.h >>conftest.$ac_ext
24333 cat >>conftest.$ac_ext <<_ACEOF
24334 /* end confdefs.h. */
24348 rm -f conftest.$ac_objext
24349 if { (ac_try="$ac_compile"
24350 case "(($ac_try" in
24351 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24352 *) ac_try_echo
=$ac_try;;
24354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24355 (eval "$ac_compile") 2>conftest.er1
24357 grep -v '^ *+' conftest.er1
>conftest.err
24359 cat conftest.err
>&5
24360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24361 (exit $ac_status); } && {
24362 test -z "$ac_c_werror_flag" ||
24363 test ! -s conftest.err
24364 } && test -s conftest.
$ac_objext; then
24365 ac_cv_have_decl_tzname
=yes
24367 echo "$as_me: failed program was:" >&5
24368 sed 's/^/| /' conftest.
$ac_ext >&5
24370 ac_cv_have_decl_tzname
=no
24373 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24375 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
24376 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
24377 if test $ac_cv_have_decl_tzname = yes; then
24379 cat >>confdefs.h
<<_ACEOF
24380 #define HAVE_DECL_TZNAME 1
24385 cat >>confdefs.h
<<_ACEOF
24386 #define HAVE_DECL_TZNAME 0
24393 { echo "$as_me:$LINENO: checking for tzname" >&5
24394 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
24395 if test "${ac_cv_var_tzname+set}" = set; then
24396 echo $ECHO_N "(cached) $ECHO_C" >&6
24398 cat >conftest.
$ac_ext <<_ACEOF
24401 cat confdefs.h
>>conftest.
$ac_ext
24402 cat >>conftest.
$ac_ext <<_ACEOF
24403 /* end confdefs.h. */
24405 #if !HAVE_DECL_TZNAME
24406 extern char *tzname[];
24412 return tzname[0][0];
24417 rm -f conftest.
$ac_objext conftest
$ac_exeext
24418 if { (ac_try
="$ac_link"
24419 case "(($ac_try" in
24420 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24421 *) ac_try_echo=$ac_try;;
24423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24424 (eval "$ac_link") 2>conftest.er1
24426 grep -v '^ *+' conftest.er1 >conftest.err
24428 cat conftest.err >&5
24429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24430 (exit $ac_status); } && {
24431 test -z "$ac_c_werror_flag" ||
24432 test ! -s conftest.err
24433 } && test -s conftest$ac_exeext &&
24434 $as_test_x conftest$ac_exeext; then
24435 ac_cv_var_tzname=yes
24437 echo "$as_me: failed program was:" >&5
24438 sed 's/^/| /' conftest.$ac_ext >&5
24440 ac_cv_var_tzname=no
24443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24444 conftest$ac_exeext conftest.$ac_ext
24446 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
24447 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
24448 if test $ac_cv_var_tzname = yes; then
24450 cat >>confdefs.h <<\_ACEOF
24451 #define HAVE_TZNAME 1
24458 # check tzset(3) exists and works like we expect it to
24459 { echo "$as_me:$LINENO: checking for working tzset()" >&5
24460 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; }
24461 if test "${ac_cv_working_tzset+set}" = set; then
24462 echo $ECHO_N "(cached) $ECHO_C" >&6
24465 if test "$cross_compiling" = yes; then
24466 ac_cv_working_tzset=no
24468 cat >conftest.$ac_ext <<_ACEOF
24471 cat confdefs.h >>conftest.$ac_ext
24472 cat >>conftest.$ac_ext <<_ACEOF
24473 /* end confdefs.h. */
24475 #include <stdlib.h>
24477 #include <string.h>
24480 extern char *tzname[];
24485 /* Note that we need to ensure that not only does tzset(3)
24486 do 'something' with localtime, but it works as documented
24487 in the library reference and as expected by the test suite.
24488 This includes making sure that tzname is set properly if
24489 tm->tm_zone does not exist since it is the alternative way
24490 of getting timezone info.
24492 Red Hat 6.2 doesn't understand the southern hemisphere
24493 after New Year's Day.
24496 time_t groundhogday = 1044144000; /* GMT-based */
24497 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
24499 putenv("TZ=UTC+0");
24501 if (localtime(&groundhogday)->tm_hour != 0)
24504 /* For UTC, tzname[1] is sometimes "", sometimes " " */
24505 if (strcmp(tzname[0], "UTC") ||
24506 (tzname[1][0] != 0 && tzname[1][0] != ' '))
24510 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
24512 if (localtime(&groundhogday)->tm_hour != 19)
24515 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
24519 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
24521 if (localtime(&groundhogday)->tm_hour != 11)
24524 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
24528 #if HAVE_STRUCT_TM_TM_ZONE
24529 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
24531 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
24539 rm -f conftest$ac_exeext
24540 if { (ac_try="$ac_link"
24541 case "(($ac_try" in
24542 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24543 *) ac_try_echo
=$ac_try;;
24545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24546 (eval "$ac_link") 2>&5
24548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24549 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24550 { (case "(($ac_try" in
24551 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24552 *) ac_try_echo=$ac_try;;
24554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24555 (eval "$ac_try") 2>&5
24557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24558 (exit $ac_status); }; }; then
24559 ac_cv_working_tzset=yes
24561 echo "$as_me: program exited with status $ac_status" >&5
24562 echo "$as_me: failed program was:" >&5
24563 sed 's/^/| /' conftest.$ac_ext >&5
24565 ( exit $ac_status )
24566 ac_cv_working_tzset=no
24568 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24574 { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
24575 echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
24576 if test "$ac_cv_working_tzset" = yes
24579 cat >>confdefs.h <<\_ACEOF
24580 #define HAVE_WORKING_TZSET 1
24585 # Look for subsecond timestamps in struct stat
24586 { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
24587 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6; }
24588 if test "${ac_cv_stat_tv_nsec+set}" = set; then
24589 echo $ECHO_N "(cached) $ECHO_C" >&6
24591 cat >conftest.$ac_ext <<_ACEOF
24594 cat confdefs.h >>conftest.$ac_ext
24595 cat >>conftest.$ac_ext <<_ACEOF
24596 /* end confdefs.h. */
24597 #include <sys/stat.h>
24603 st.st_mtim.tv_nsec = 1;
24609 rm -f conftest.$ac_objext
24610 if { (ac_try="$ac_compile"
24611 case "(($ac_try" in
24612 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24613 *) ac_try_echo
=$ac_try;;
24615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24616 (eval "$ac_compile") 2>conftest.er1
24618 grep -v '^ *+' conftest.er1
>conftest.err
24620 cat conftest.err
>&5
24621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24622 (exit $ac_status); } && {
24623 test -z "$ac_c_werror_flag" ||
24624 test ! -s conftest.err
24625 } && test -s conftest.
$ac_objext; then
24626 ac_cv_stat_tv_nsec
=yes
24628 echo "$as_me: failed program was:" >&5
24629 sed 's/^/| /' conftest.
$ac_ext >&5
24631 ac_cv_stat_tv_nsec
=no
24634 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24637 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
24638 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
24639 if test "$ac_cv_stat_tv_nsec" = yes
24642 cat >>confdefs.h
<<\_ACEOF
24643 #define HAVE_STAT_TV_NSEC 1
24648 # Look for BSD style subsecond timestamps in struct stat
24649 { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
24650 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6; }
24651 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
24652 echo $ECHO_N "(cached) $ECHO_C" >&6
24654 cat >conftest.
$ac_ext <<_ACEOF
24657 cat confdefs.h
>>conftest.
$ac_ext
24658 cat >>conftest.
$ac_ext <<_ACEOF
24659 /* end confdefs.h. */
24660 #include <sys/stat.h>
24666 st.st_mtimespec.tv_nsec = 1;
24672 rm -f conftest.
$ac_objext
24673 if { (ac_try
="$ac_compile"
24674 case "(($ac_try" in
24675 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24676 *) ac_try_echo=$ac_try;;
24678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24679 (eval "$ac_compile") 2>conftest.er1
24681 grep -v '^ *+' conftest.er1 >conftest.err
24683 cat conftest.err >&5
24684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24685 (exit $ac_status); } && {
24686 test -z "$ac_c_werror_flag" ||
24687 test ! -s conftest.err
24688 } && test -s conftest.$ac_objext; then
24689 ac_cv_stat_tv_nsec2=yes
24691 echo "$as_me: failed program was:" >&5
24692 sed 's/^/| /' conftest.$ac_ext >&5
24694 ac_cv_stat_tv_nsec2=no
24697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24700 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
24701 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
24702 if test "$ac_cv_stat_tv_nsec2" = yes
24705 cat >>confdefs.h <<\_ACEOF
24706 #define HAVE_STAT_TV_NSEC2 1
24711 # On HP/UX 11.0, mvwdelch is a block with a return statement
24712 { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
24713 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6; }
24714 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
24715 echo $ECHO_N "(cached) $ECHO_C" >&6
24717 cat >conftest.$ac_ext <<_ACEOF
24720 cat confdefs.h >>conftest.$ac_ext
24721 cat >>conftest.$ac_ext <<_ACEOF
24722 /* end confdefs.h. */
24723 #include <curses.h>
24729 rtn = mvwdelch(0,0,0);
24735 rm -f conftest.$ac_objext
24736 if { (ac_try="$ac_compile"
24737 case "(($ac_try" in
24738 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24739 *) ac_try_echo
=$ac_try;;
24741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24742 (eval "$ac_compile") 2>conftest.er1
24744 grep -v '^ *+' conftest.er1
>conftest.err
24746 cat conftest.err
>&5
24747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24748 (exit $ac_status); } && {
24749 test -z "$ac_c_werror_flag" ||
24750 test ! -s conftest.err
24751 } && test -s conftest.
$ac_objext; then
24752 ac_cv_mvwdelch_is_expression
=yes
24754 echo "$as_me: failed program was:" >&5
24755 sed 's/^/| /' conftest.
$ac_ext >&5
24757 ac_cv_mvwdelch_is_expression
=no
24760 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24763 { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
24764 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
24766 if test "$ac_cv_mvwdelch_is_expression" = yes
24769 cat >>confdefs.h
<<\_ACEOF
24770 #define MVWDELCH_IS_EXPRESSION 1
24775 { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
24776 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6; }
24777 if test "${ac_cv_window_has_flags+set}" = set; then
24778 echo $ECHO_N "(cached) $ECHO_C" >&6
24780 cat >conftest.
$ac_ext <<_ACEOF
24783 cat confdefs.h
>>conftest.
$ac_ext
24784 cat >>conftest.
$ac_ext <<_ACEOF
24785 /* end confdefs.h. */
24786 #include <curses.h>
24798 rm -f conftest.
$ac_objext
24799 if { (ac_try
="$ac_compile"
24800 case "(($ac_try" in
24801 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24802 *) ac_try_echo=$ac_try;;
24804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24805 (eval "$ac_compile") 2>conftest.er1
24807 grep -v '^ *+' conftest.er1 >conftest.err
24809 cat conftest.err >&5
24810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24811 (exit $ac_status); } && {
24812 test -z "$ac_c_werror_flag" ||
24813 test ! -s conftest.err
24814 } && test -s conftest.$ac_objext; then
24815 ac_cv_window_has_flags=yes
24817 echo "$as_me: failed program was:" >&5
24818 sed 's/^/| /' conftest.$ac_ext >&5
24820 ac_cv_window_has_flags=no
24823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24826 { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
24827 echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
24830 if test "$ac_cv_window_has_flags" = yes
24833 cat >>confdefs.h <<\_ACEOF
24834 #define WINDOW_HAS_FLAGS 1
24839 { echo "$as_me:$LINENO: checking for is_term_resized" >&5
24840 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; }
24841 cat >conftest.$ac_ext <<_ACEOF
24844 cat confdefs.h >>conftest.$ac_ext
24845 cat >>conftest.$ac_ext <<_ACEOF
24846 /* end confdefs.h. */
24847 #include <curses.h>
24851 void *x=is_term_resized
24856 rm -f conftest.$ac_objext
24857 if { (ac_try="$ac_compile"
24858 case "(($ac_try" in
24859 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24860 *) ac_try_echo
=$ac_try;;
24862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24863 (eval "$ac_compile") 2>conftest.er1
24865 grep -v '^ *+' conftest.er1
>conftest.err
24867 cat conftest.err
>&5
24868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24869 (exit $ac_status); } && {
24870 test -z "$ac_c_werror_flag" ||
24871 test ! -s conftest.err
24872 } && test -s conftest.
$ac_objext; then
24874 cat >>confdefs.h
<<\_ACEOF
24875 #define HAVE_CURSES_IS_TERM_RESIZED 1
24878 { echo "$as_me:$LINENO: result: yes" >&5
24879 echo "${ECHO_T}yes" >&6; }
24881 echo "$as_me: failed program was:" >&5
24882 sed 's/^/| /' conftest.
$ac_ext >&5
24884 { echo "$as_me:$LINENO: result: no" >&5
24885 echo "${ECHO_T}no" >&6; }
24889 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24891 { echo "$as_me:$LINENO: checking for resize_term" >&5
24892 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; }
24893 cat >conftest.
$ac_ext <<_ACEOF
24896 cat confdefs.h
>>conftest.
$ac_ext
24897 cat >>conftest.
$ac_ext <<_ACEOF
24898 /* end confdefs.h. */
24899 #include <curses.h>
24903 void *x=resize_term
24908 rm -f conftest.
$ac_objext
24909 if { (ac_try
="$ac_compile"
24910 case "(($ac_try" in
24911 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24912 *) ac_try_echo=$ac_try;;
24914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24915 (eval "$ac_compile") 2>conftest.er1
24917 grep -v '^ *+' conftest.er1 >conftest.err
24919 cat conftest.err >&5
24920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24921 (exit $ac_status); } && {
24922 test -z "$ac_c_werror_flag" ||
24923 test ! -s conftest.err
24924 } && test -s conftest.$ac_objext; then
24926 cat >>confdefs.h <<\_ACEOF
24927 #define HAVE_CURSES_RESIZE_TERM 1
24930 { echo "$as_me:$LINENO: result: yes" >&5
24931 echo "${ECHO_T}yes" >&6; }
24933 echo "$as_me: failed program was:" >&5
24934 sed 's/^/| /' conftest.$ac_ext >&5
24936 { echo "$as_me:$LINENO: result: no" >&5
24937 echo "${ECHO_T}no" >&6; }
24941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24943 { echo "$as_me:$LINENO: checking for resizeterm" >&5
24944 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; }
24945 cat >conftest.$ac_ext <<_ACEOF
24948 cat confdefs.h >>conftest.$ac_ext
24949 cat >>conftest.$ac_ext <<_ACEOF
24950 /* end confdefs.h. */
24951 #include <curses.h>
24960 rm -f conftest.$ac_objext
24961 if { (ac_try="$ac_compile"
24962 case "(($ac_try" in
24963 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24964 *) ac_try_echo
=$ac_try;;
24966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24967 (eval "$ac_compile") 2>conftest.er1
24969 grep -v '^ *+' conftest.er1
>conftest.err
24971 cat conftest.err
>&5
24972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24973 (exit $ac_status); } && {
24974 test -z "$ac_c_werror_flag" ||
24975 test ! -s conftest.err
24976 } && test -s conftest.
$ac_objext; then
24978 cat >>confdefs.h
<<\_ACEOF
24979 #define HAVE_CURSES_RESIZETERM 1
24982 { echo "$as_me:$LINENO: result: yes" >&5
24983 echo "${ECHO_T}yes" >&6; }
24985 echo "$as_me: failed program was:" >&5
24986 sed 's/^/| /' conftest.
$ac_ext >&5
24988 { echo "$as_me:$LINENO: result: no" >&5
24989 echo "${ECHO_T}no" >&6; }
24993 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24995 { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
24996 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; }
24998 if test -r /dev
/ptmx
25000 { echo "$as_me:$LINENO: result: yes" >&5
25001 echo "${ECHO_T}yes" >&6; }
25003 cat >>confdefs.h
<<\_ACEOF
25004 #define HAVE_DEV_PTMX 1
25008 { echo "$as_me:$LINENO: result: no" >&5
25009 echo "${ECHO_T}no" >&6; }
25012 { echo "$as_me:$LINENO: checking for /dev/ptc" >&5
25013 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
25015 if test -r /dev
/ptc
25017 { echo "$as_me:$LINENO: result: yes" >&5
25018 echo "${ECHO_T}yes" >&6; }
25020 cat >>confdefs.h
<<\_ACEOF
25021 #define HAVE_DEV_PTC 1
25025 { echo "$as_me:$LINENO: result: no" >&5
25026 echo "${ECHO_T}no" >&6; }
25029 { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
25030 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; }
25031 if test "$cross_compiling" = yes; then
25032 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25033 See \`config.log' for more details." >&5
25034 echo "$as_me: error: cannot run test program while cross compiling
25035 See \`config.log' for more details." >&2;}
25036 { (exit 1); exit 1; }; }
25038 cat >conftest.
$ac_ext <<_ACEOF
25041 cat confdefs.h
>>conftest.
$ac_ext
25042 cat >>conftest.
$ac_ext <<_ACEOF
25043 /* end confdefs.h. */
25045 #include <stddef.h>
25046 #include <string.h>
25048 #ifdef HAVE_SYS_TYPES_H
25049 #include <sys/types.h>
25052 #ifdef HAVE_SSIZE_T
25053 typedef ssize_t Py_ssize_t;
25054 #elif SIZEOF_VOID_P == SIZEOF_LONG
25055 typedef long Py_ssize_t;
25057 typedef int Py_ssize_t;
25064 if(sprintf(buffer, "%zd", (size_t)123) < 0)
25067 if (strcmp(buffer, "123"))
25070 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
25073 if (strcmp(buffer, "-123"))
25079 rm -f conftest
$ac_exeext
25080 if { (ac_try
="$ac_link"
25081 case "(($ac_try" in
25082 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25083 *) ac_try_echo=$ac_try;;
25085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25086 (eval "$ac_link") 2>&5
25088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25089 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25090 { (case "(($ac_try" in
25091 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25092 *) ac_try_echo
=$ac_try;;
25094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25095 (eval "$ac_try") 2>&5
25097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25098 (exit $ac_status); }; }; then
25099 { echo "$as_me:$LINENO: result: yes" >&5
25100 echo "${ECHO_T}yes" >&6; }
25102 cat >>confdefs.h
<<\_ACEOF
25103 #define PY_FORMAT_SIZE_T "z"
25107 echo "$as_me: program exited with status $ac_status" >&5
25108 echo "$as_me: failed program was:" >&5
25109 sed 's/^/| /' conftest.
$ac_ext >&5
25111 ( exit $ac_status )
25112 { echo "$as_me:$LINENO: result: no" >&5
25113 echo "${ECHO_T}no" >&6; }
25115 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
25120 { echo "$as_me:$LINENO: checking for socklen_t" >&5
25121 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
25122 if test "${ac_cv_type_socklen_t+set}" = set; then
25123 echo $ECHO_N "(cached) $ECHO_C" >&6
25125 cat >conftest.
$ac_ext <<_ACEOF
25128 cat confdefs.h
>>conftest.
$ac_ext
25129 cat >>conftest.
$ac_ext <<_ACEOF
25130 /* end confdefs.h. */
25132 #ifdef HAVE_SYS_TYPES_H
25133 #include <sys/types.h>
25135 #ifdef HAVE_SYS_SOCKET_H
25136 #include <sys/socket.h>
25140 typedef socklen_t ac__type_new_;
25144 if ((ac__type_new_ *) 0)
25146 if (sizeof (ac__type_new_))
25152 rm -f conftest.
$ac_objext
25153 if { (ac_try
="$ac_compile"
25154 case "(($ac_try" in
25155 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25156 *) ac_try_echo=$ac_try;;
25158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25159 (eval "$ac_compile") 2>conftest.er1
25161 grep -v '^ *+' conftest.er1 >conftest.err
25163 cat conftest.err >&5
25164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25165 (exit $ac_status); } && {
25166 test -z "$ac_c_werror_flag" ||
25167 test ! -s conftest.err
25168 } && test -s conftest.$ac_objext; then
25169 ac_cv_type_socklen_t=yes
25171 echo "$as_me: failed program was:" >&5
25172 sed 's/^/| /' conftest.$ac_ext >&5
25174 ac_cv_type_socklen_t=no
25177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25179 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
25180 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
25181 if test $ac_cv_type_socklen_t = yes; then
25185 cat >>confdefs.h <<\_ACEOF
25186 #define socklen_t int
25194 for h in `(cd $srcdir;echo Python
/thread_
*.h
)`
25196 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
25200 SRCDIRS="Parser Grammar Objects Python Modules Mac"
25201 { echo "$as_me:$LINENO: checking for build directories" >&5
25202 echo $ECHO_N "checking for build directories... $ECHO_C" >&6; }
25203 for dir in $SRCDIRS; do
25204 if test ! -d $dir; then
25208 { echo "$as_me:$LINENO: result: done" >&5
25209 echo "${ECHO_T}done" >&6; }
25211 # generate output files
25212 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config"
25214 cat >confcache <<\_ACEOF
25215 # This file is a shell script that caches the results of configure
25216 # tests run on this system so they can be shared between configure
25217 # scripts and configure runs, see configure's option --config-cache.
25218 # It is not useful on other systems. If it contains results you don't
25219 # want to keep, you may remove or edit it.
25221 # config.status only pays attention to the cache file if you give it
25222 # the --recheck option to rerun configure.
25224 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
25225 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25226 # following values.
25230 # The following way of writing the cache mishandles newlines in values,
25231 # but we know of no workaround that is simple, portable, and efficient.
25232 # So, we kill variables containing newlines.
25233 # Ultrix sh set writes to stderr and can't be redirected directly,
25234 # and sets the high bit in the cache file unless we assign to the vars.
25236 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25237 eval ac_val
=\$
$ac_var
25241 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25242 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25245 _ | IFS | as_nl
) ;; #(
25246 *) $as_unset $ac_var ;;
25252 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25253 *${as_nl}ac_space
=\
*)
25254 # `set' does not quote correctly, so add quotes (double-quote
25255 # substitution turns \\\\ into \\, and sed turns \\ into \).
25258 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25261 # `set' quotes correctly as required by POSIX, so do not add quotes.
25262 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25271 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25273 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25275 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
25276 if test -w "$cache_file"; then
25277 test "x$cache_file" != "x/dev/null" &&
25278 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25279 echo "$as_me: updating cache $cache_file" >&6;}
25280 cat confcache
>$cache_file
25282 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25283 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25288 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
25289 # Let make expand exec_prefix.
25290 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
25292 DEFS
=-DHAVE_CONFIG_H
25296 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
25297 # 1. Remove the extension, and $U if already installed.
25298 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
25299 ac_i
=`echo "$ac_i" | sed "$ac_script"`
25300 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25301 # will be set to the directory where LIBOBJS objects are built.
25302 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25303 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25305 LIBOBJS
=$ac_libobjs
25307 LTLIBOBJS
=$ac_ltlibobjs
25311 : ${CONFIG_STATUS=./config.status}
25312 ac_clean_files_save
=$ac_clean_files
25313 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
25314 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25315 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25316 cat >$CONFIG_STATUS <<_ACEOF
25318 # Generated by $as_me.
25319 # Run this file to recreate the current configuration.
25320 # Compiler output produced by configure, useful for debugging
25321 # configure, is in config.log if it exists.
25324 ac_cs_recheck=false
25326 SHELL=\${CONFIG_SHELL-$SHELL}
25329 cat >>$CONFIG_STATUS <<\_ACEOF
25330 ## --------------------- ##
25331 ## M4sh Initialization. ##
25332 ## --------------------- ##
25334 # Be more Bourne compatible
25335 DUALCASE
=1; export DUALCASE
# for MKS sh
25336 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
25339 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25340 # is contrary to our usage. Disable this feature.
25341 alias -g '${1+"$@"}'='"$@"'
25342 setopt NO_GLOB_SUBST
25344 case `(set -o) 2>/dev/null` in
25345 *posix
*) set -o posix
;;
25354 # Avoid depending upon Character Ranges.
25355 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
25356 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25357 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
25358 as_cr_digits
='0123456789'
25359 as_cr_alnum
=$as_cr_Letters$as_cr_digits
25361 # The user is always right.
25362 if test "${PATH_SEPARATOR+set}" != set; then
25363 echo "#! /bin/sh" >conf$$.sh
25364 echo "exit 0" >>conf$$.sh
25366 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
25374 # Support unset when possible.
25375 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
25383 # We need space, tab and new line, in precisely that order. Quoting is
25384 # there to prevent editors from complaining about space-tab.
25385 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25386 # splitting by setting IFS to empty value.)
25391 # Find who we are. Look in the path if we contain no directory separator.
25393 *[\\/]* ) as_myself
=$0 ;;
25394 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25395 for as_dir
in $PATH
25398 test -z "$as_dir" && as_dir
=.
25399 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
25405 # We did not find ourselves, most probably we were run as `sh COMMAND'
25406 # in which case we are not to be found in the path.
25407 if test "x$as_myself" = x
; then
25410 if test ! -f "$as_myself"; then
25411 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25412 { (exit 1); exit 1; }
25415 # Work around bugs in pre-3.0 UWIN ksh.
25416 for as_var
in ENV MAIL MAILPATH
25417 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
25425 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25426 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25427 LC_TELEPHONE LC_TIME
25429 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25430 eval $as_var=C
; export $as_var
25432 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
25436 # Required to use basename.
25437 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
25438 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
25444 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25445 as_basename
=basename
25451 # Name of the executable.
25452 as_me
=`$as_basename -- "$0" ||
25453 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25454 X"$0" : 'X\(//\)$' \| \
25455 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25457 sed '/^.*\/\([^/][^/]*\)\/*$/{
25476 as_lineno_1
=$LINENO
25477 as_lineno_2
=$LINENO
25478 test "x$as_lineno_1" != "x$as_lineno_2" &&
25479 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
25481 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25482 # uniformly replaced by the line number. The first 'sed' inserts a
25483 # line-number line after each line using $LINENO; the second 'sed'
25484 # does the real work. The second script uses 'N' to pair each
25485 # line-number line with the line containing $LINENO, and appends
25486 # trailing '-' during substitution so that $LINENO is not a special
25487 # case at line end.
25488 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25489 # scripts with optimization help from Paolo Bonzini. Blame Lee
25490 # E. McMahon (1931-1989) for sed's syntax. :-)
25502 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25505 ' >$as_me.lineno
&&
25506 chmod +x
"$as_me.lineno" ||
25507 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25508 { (exit 1); exit 1; }; }
25510 # Don't try to exec as it changes $[0], causing all sort of problems
25511 # (the dirname of $[0] is not the place where we might find the
25512 # original and so on. Autoconf is especially sensitive to this).
25513 .
"./$as_me.lineno"
25514 # Exit status is that of the last command.
25519 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
25525 ECHO_C
= ECHO_N
= ECHO_T
=
25526 case `echo -n x` in
25528 case `echo 'x\c'` in
25529 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
25536 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
25537 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
25543 rm -f conf$$ conf$$.exe conf$$.
file
25544 if test -d conf$$.dir
; then
25545 rm -f conf$$.dir
/conf$$.
file
25551 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
25553 # ... but there are two gotchas:
25554 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25555 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25556 # In both cases, we have to default to `cp -p'.
25557 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
25559 elif ln conf$$.
file conf$$
2>/dev
/null
; then
25564 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
25565 rmdir conf$$.dir
2>/dev
/null
25567 if mkdir
-p .
2>/dev
/null
; then
25570 test -d .
/-p && rmdir .
/-p
25574 if test -x / >/dev
/null
2>&1; then
25575 as_test_x
='test -x'
25577 if ls -dL / >/dev
/null
2>&1; then
25584 if test -d "$1"; then
25590 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25591 ???[sx]*):;;*)false;;esac;fi
25595 as_executable_p
=$as_test_x
25597 # Sed expression to map a string onto a valid CPP name.
25598 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25600 # Sed expression to map a string onto a valid variable name.
25601 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25606 # Save the log message, to keep $[0] and so on meaningful, and to
25607 # report actual input values of CONFIG_FILES etc. instead of their
25608 # values after options handling.
25610 This file was extended by python $as_me 2.7, which was
25611 generated by GNU Autoconf 2.61. Invocation command line was
25613 CONFIG_FILES = $CONFIG_FILES
25614 CONFIG_HEADERS = $CONFIG_HEADERS
25615 CONFIG_LINKS = $CONFIG_LINKS
25616 CONFIG_COMMANDS = $CONFIG_COMMANDS
25619 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25624 cat >>$CONFIG_STATUS <<_ACEOF
25625 # Files that config.status was made for.
25626 config_files="$ac_config_files"
25627 config_headers="$ac_config_headers"
25631 cat >>$CONFIG_STATUS <<\_ACEOF
25633 \`$as_me' instantiates files from templates according to the
25634 current configuration.
25636 Usage: $0 [OPTIONS] [FILE]...
25638 -h, --help print this help, then exit
25639 -V, --version print version number and configuration settings, then exit
25640 -q, --quiet do not print progress messages
25641 -d, --debug don't remove temporary files
25642 --recheck update $as_me by reconfiguring in the same conditions
25643 --file=FILE[:TEMPLATE]
25644 instantiate the configuration file FILE
25645 --header=FILE[:TEMPLATE]
25646 instantiate the configuration header FILE
25648 Configuration files:
25651 Configuration headers:
25654 Report bugs to <bug-autoconf@gnu.org>."
25657 cat >>$CONFIG_STATUS <<_ACEOF
25659 python config.status 2.7
25660 configured by $0, generated by GNU Autoconf 2.61,
25661 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25663 Copyright (C) 2006 Free Software Foundation, Inc.
25664 This config.status script is free software; the Free Software Foundation
25665 gives unlimited permission to copy, distribute and modify it."
25672 cat >>$CONFIG_STATUS <<\_ACEOF
25673 # If no file are specified by the user, then we need to provide default
25674 # value. By we need to know if files were specified by the user.
25680 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
25681 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
25692 # Handling of the options.
25693 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
25695 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
25696 echo "$ac_cs_version"; exit ;;
25697 --debug |
--debu |
--deb |
--de |
--d |
-d )
25699 --file |
--fil |
--fi |
--f )
25701 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
25702 ac_need_defaults
=false
;;
25703 --header |
--heade |
--head |
--hea )
25705 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
25706 ac_need_defaults
=false
;;
25708 # Conflict between --help and --header
25709 { echo "$as_me: error: ambiguous option: $1
25710 Try \`$0 --help' for more information." >&2
25711 { (exit 1); exit 1; }; };;
25712 --help |
--hel |
-h )
25713 echo "$ac_cs_usage"; exit ;;
25714 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
25715 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
25718 # This is an error.
25719 -*) { echo "$as_me: error: unrecognized option: $1
25720 Try \`$0 --help' for more information." >&2
25721 { (exit 1); exit 1; }; } ;;
25723 *) ac_config_targets
="$ac_config_targets $1"
25724 ac_need_defaults
=false
;;
25730 ac_configure_extra_args
=
25732 if $ac_cs_silent; then
25734 ac_configure_extra_args
="$ac_configure_extra_args --silent"
25738 cat >>$CONFIG_STATUS <<_ACEOF
25739 if \$ac_cs_recheck; then
25740 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25741 CONFIG_SHELL=$SHELL
25742 export CONFIG_SHELL
25743 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25747 cat >>$CONFIG_STATUS <<\_ACEOF
25751 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25752 ## Running $as_me. ##
25758 cat >>$CONFIG_STATUS <<_ACEOF
25761 cat >>$CONFIG_STATUS <<\_ACEOF
25763 # Handling of arguments.
25764 for ac_config_target
in $ac_config_targets
25766 case $ac_config_target in
25767 "pyconfig.h") CONFIG_HEADERS
="$CONFIG_HEADERS pyconfig.h" ;;
25768 "Mac/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/Makefile" ;;
25769 "Mac/PythonLauncher/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
25770 "Mac/IDLE/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/IDLE/Makefile" ;;
25771 "Mac/Resources/framework/Info.plist") CONFIG_FILES
="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
25772 "Mac/Resources/app/Info.plist") CONFIG_FILES
="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
25773 "Makefile.pre") CONFIG_FILES
="$CONFIG_FILES Makefile.pre" ;;
25774 "Modules/Setup.config") CONFIG_FILES
="$CONFIG_FILES Modules/Setup.config" ;;
25776 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25777 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25778 { (exit 1); exit 1; }; };;
25783 # If the user did not use the arguments to specify the items to instantiate,
25784 # then the envvar interface is used. Set only those that are not.
25785 # We use the long form for the default assignment because of an extremely
25786 # bizarre bug on SunOS 4.1.3.
25787 if $ac_need_defaults; then
25788 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
25789 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
25792 # Have a temporary directory for convenience. Make it in the build tree
25793 # simply because there is no reason against having it here, and in addition,
25794 # creating and moving files from /tmp can sometimes cause problems.
25795 # Hook for its removal unless debugging.
25796 # Note that there is a small window in which the directory will not be cleaned:
25797 # after its creation but before its name has been assigned to `$tmp'.
25801 trap 'exit_status=$?
25802 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25804 trap '{ (exit 1); exit 1; }' 1 2 13 15
25806 # Create a (secure) tmp directory for tmp files.
25809 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25810 test -n "$tmp" && test -d "$tmp"
25813 tmp
=.
/conf$$
-$RANDOM
25814 (umask 077 && mkdir
"$tmp")
25817 echo "$me: cannot create a temporary directory in ." >&2
25818 { (exit 1); exit 1; }
25822 # Set up the sed scripts for CONFIG_FILES section.
25825 # No need to generate the scripts if there are no CONFIG_FILES.
25826 # This happens for instance when ./config.status config.h
25827 if test -n "$CONFIG_FILES"; then
25834 for ac_last_try
in false false false false false
:; do
25835 cat >conf$
$subs.
sed <<_ACEOF
25836 SHELL!$SHELL$ac_delim
25837 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25838 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25839 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25840 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25841 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25842 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25843 exec_prefix!$exec_prefix$ac_delim
25844 prefix!$prefix$ac_delim
25845 program_transform_name!$program_transform_name$ac_delim
25846 bindir!$bindir$ac_delim
25847 sbindir!$sbindir$ac_delim
25848 libexecdir!$libexecdir$ac_delim
25849 datarootdir!$datarootdir$ac_delim
25850 datadir!$datadir$ac_delim
25851 sysconfdir!$sysconfdir$ac_delim
25852 sharedstatedir!$sharedstatedir$ac_delim
25853 localstatedir!$localstatedir$ac_delim
25854 includedir!$includedir$ac_delim
25855 oldincludedir!$oldincludedir$ac_delim
25856 docdir!$docdir$ac_delim
25857 infodir!$infodir$ac_delim
25858 htmldir!$htmldir$ac_delim
25859 dvidir!$dvidir$ac_delim
25860 pdfdir!$pdfdir$ac_delim
25861 psdir!$psdir$ac_delim
25862 libdir!$libdir$ac_delim
25863 localedir!$localedir$ac_delim
25864 mandir!$mandir$ac_delim
25865 DEFS!$DEFS$ac_delim
25866 ECHO_C!$ECHO_C$ac_delim
25867 ECHO_N!$ECHO_N$ac_delim
25868 ECHO_T!$ECHO_T$ac_delim
25869 LIBS!$LIBS$ac_delim
25870 build_alias!$build_alias$ac_delim
25871 host_alias!$host_alias$ac_delim
25872 target_alias!$target_alias$ac_delim
25873 VERSION!$VERSION$ac_delim
25874 SOVERSION!$SOVERSION$ac_delim
25875 CONFIG_ARGS!$CONFIG_ARGS$ac_delim
25876 UNIVERSALSDK!$UNIVERSALSDK$ac_delim
25877 ARCH_RUN_32BIT!$ARCH_RUN_32BIT$ac_delim
25878 PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
25879 PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim
25880 PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
25881 PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
25882 PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
25883 FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
25884 FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
25885 FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
25886 FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
25887 FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
25888 MACHDEP!$MACHDEP$ac_delim
25889 SGI_ABI!$SGI_ABI$ac_delim
25890 EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim
25891 EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim
25892 CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
25893 EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
25895 CFLAGS!$CFLAGS$ac_delim
25896 LDFLAGS!$LDFLAGS$ac_delim
25897 CPPFLAGS!$CPPFLAGS$ac_delim
25898 ac_ct_CC!$ac_ct_CC$ac_delim
25899 EXEEXT!$EXEEXT$ac_delim
25900 OBJEXT!$OBJEXT$ac_delim
25902 MAINCC!$MAINCC$ac_delim
25904 GREP!$GREP$ac_delim
25905 EGREP!$EGREP$ac_delim
25906 BUILDEXEEXT!$BUILDEXEEXT$ac_delim
25907 LIBRARY!$LIBRARY$ac_delim
25908 LDLIBRARY!$LDLIBRARY$ac_delim
25909 DLLLIBRARY!$DLLLIBRARY$ac_delim
25910 BLDLIBRARY!$BLDLIBRARY$ac_delim
25911 LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
25912 INSTSONAME!$INSTSONAME$ac_delim
25913 RUNSHARED!$RUNSHARED$ac_delim
25914 LINKCC!$LINKCC$ac_delim
25915 RANLIB!$RANLIB$ac_delim
25917 SVNVERSION!$SVNVERSION$ac_delim
25918 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25919 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25920 INSTALL_DATA!$INSTALL_DATA$ac_delim
25923 BASECFLAGS!$BASECFLAGS$ac_delim
25924 UNIVERSAL_ARCH_FLAGS!$UNIVERSAL_ARCH_FLAGS$ac_delim
25925 OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
25926 LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
25928 LDSHARED!$LDSHARED$ac_delim
25929 BLDSHARED!$BLDSHARED$ac_delim
25930 CCSHARED!$CCSHARED$ac_delim
25931 LINKFORSHARED!$LINKFORSHARED$ac_delim
25932 CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
25935 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25937 elif $ac_last_try; then
25938 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25939 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25940 { (exit 1); exit 1; }; }
25942 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
25946 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25947 if test -n "$ac_eof"; then
25948 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
25949 ac_eof
=`expr $ac_eof + 1`
25952 cat >>$CONFIG_STATUS <<_ACEOF
25953 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25954 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25957 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25958 s/^/s,@/; s/!/@,|#_!!_#|/
25961 s/'"$ac_delim"'$/,g/; t
25963 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25964 ' >>$CONFIG_STATUS <conf$
$subs.
sed
25965 rm -f conf$
$subs.
sed
25966 cat >>$CONFIG_STATUS <<_ACEOF
25972 for ac_last_try
in false false false false false
:; do
25973 cat >conf$
$subs.
sed <<_ACEOF
25974 SHLIBS!$SHLIBS$ac_delim
25975 USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
25976 SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
25977 USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
25978 LDLAST!$LDLAST$ac_delim
25979 THREADOBJ!$THREADOBJ$ac_delim
25980 DLINCLDIR!$DLINCLDIR$ac_delim
25981 DYNLOADFILE!$DYNLOADFILE$ac_delim
25982 MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
25983 TRUE!$TRUE$ac_delim
25984 LIBOBJS!$LIBOBJS$ac_delim
25985 HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
25986 HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
25987 HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
25988 HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
25989 HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
25990 LIBM!$LIBM$ac_delim
25991 LIBC!$LIBC$ac_delim
25992 UNICODE_OBJS!$UNICODE_OBJS$ac_delim
25993 THREADHEADERS!$THREADHEADERS$ac_delim
25994 SRCDIRS!$SRCDIRS$ac_delim
25995 LTLIBOBJS!$LTLIBOBJS$ac_delim
25998 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
26000 elif $ac_last_try; then
26001 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26002 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26003 { (exit 1); exit 1; }; }
26005 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
26009 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26010 if test -n "$ac_eof"; then
26011 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
26012 ac_eof
=`expr $ac_eof + 1`
26015 cat >>$CONFIG_STATUS <<_ACEOF
26016 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26017 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26020 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26021 s/^/s,@/; s/!/@,|#_!!_#|/
26024 s/'"$ac_delim"'$/,g/; t
26026 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26027 ' >>$CONFIG_STATUS <conf$
$subs.
sed
26028 rm -f conf$
$subs.
sed
26029 cat >>$CONFIG_STATUS <<_ACEOF
26036 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26037 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26038 # trailing colons and then remove the whole line if VPATH becomes empty
26039 # (actually we leave an empty line to preserve line numbers).
26040 if test "x$srcdir" = x.
; then
26041 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
26042 s/:*\$(srcdir):*/:/
26043 s/:*\${srcdir}:*/:/
26045 s/^\([^=]*=[ ]*\):*/\1/
26051 cat >>$CONFIG_STATUS <<\_ACEOF
26052 fi # test -n "$CONFIG_FILES"
26055 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
26058 :[FHLC
]) ac_mode
=$ac_tag; continue;;
26060 case $ac_mode$ac_tag in
26062 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26063 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26064 { (exit 1); exit 1; }; };;
26065 :[FH
]-) ac_tag
=-:-;;
26066 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
26083 -) ac_f
="$tmp/stdin";;
26084 *) # Look for the file first in the build tree, then in the source tree
26085 # (if the path is not absolute). The absolute path cannot be DOS-style,
26086 # because $ac_f cannot contain `:'.
26090 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
26092 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26093 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26094 { (exit 1); exit 1; }; };;
26096 ac_file_inputs
="$ac_file_inputs $ac_f"
26099 # Let's still pretend it is `configure' which instantiates (i.e., don't
26100 # use $as_me), people would be surprised to read:
26101 # /* config.h. Generated by config.status. */
26102 configure_input
="Generated from "`IFS=:
26103 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26104 if test x
"$ac_file" != x-
; then
26105 configure_input
="$ac_file. $configure_input"
26106 { echo "$as_me:$LINENO: creating $ac_file" >&5
26107 echo "$as_me: creating $ac_file" >&6;}
26111 *:-:* |
*:-) cat >"$tmp/stdin";;
26116 ac_dir
=`$as_dirname -- "$ac_file" ||
26117 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26118 X"$ac_file" : 'X\(//\)[^/]' \| \
26119 X"$ac_file" : 'X\(//\)$' \| \
26120 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26122 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26126 /^X\(\/\/\)[^/].*/{
26141 -*) as_dir
=.
/$as_dir;;
26143 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
26147 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26148 *) as_qdir
=$as_dir;;
26150 as_dirs
="'$as_qdir' $as_dirs"
26151 as_dir
=`$as_dirname -- "$as_dir" ||
26152 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26153 X"$as_dir" : 'X\(//\)[^/]' \| \
26154 X"$as_dir" : 'X\(//\)$' \| \
26155 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26157 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26161 /^X\(\/\/\)[^/].*/{
26174 test -d "$as_dir" && break
26176 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
26177 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26178 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26179 { (exit 1); exit 1; }; }; }
26183 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26185 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26186 # A ".." for each directory in $ac_dir_suffix.
26187 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26188 case $ac_top_builddir_sub in
26189 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26190 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
26193 ac_abs_top_builddir
=$ac_pwd
26194 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
26195 # for backward compatibility:
26196 ac_top_builddir
=$ac_top_build_prefix
26199 .
) # We are building in place.
26201 ac_top_srcdir
=$ac_top_builddir_sub
26202 ac_abs_top_srcdir
=$ac_pwd ;;
26203 [\\/]* | ?
:[\\/]* ) # Absolute name.
26204 ac_srcdir
=$srcdir$ac_dir_suffix;
26205 ac_top_srcdir
=$srcdir
26206 ac_abs_top_srcdir
=$srcdir ;;
26207 *) # Relative name.
26208 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
26209 ac_top_srcdir
=$ac_top_build_prefix$srcdir
26210 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
26212 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
26222 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
26223 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
26227 cat >>$CONFIG_STATUS <<\_ACEOF
26228 # If the template does not know about datarootdir, expand it.
26229 # FIXME: This hack should be removed a few years after 2.60.
26230 ac_datarootdir_hack
=; ac_datarootdir_seen
=
26232 case `sed -n '/datarootdir/ {
26241 ' $ac_file_inputs` in
26242 *datarootdir
*) ac_datarootdir_seen
=yes;;
26243 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
26244 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26245 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26247 cat >>$CONFIG_STATUS <<_ACEOF
26248 ac_datarootdir_hack='
26249 s&@datadir@&$datadir&g
26250 s&@docdir@&$docdir&g
26251 s&@infodir@&$infodir&g
26252 s&@localedir@&$localedir&g
26253 s&@mandir@&$mandir&g
26254 s&\\\${datarootdir}&$datarootdir&g' ;;
26258 # Neutralize VPATH when `$srcdir' = `.'.
26259 # Shell code in configure.ac might set extrasub.
26260 # FIXME: do we really want to maintain this feature?
26261 cat >>$CONFIG_STATUS <<_ACEOF
26265 cat >>$CONFIG_STATUS <<\_ACEOF
26267 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
26268 s
&@configure_input@
&$configure_input&;t t
26269 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
26270 s
&@srcdir@
&$ac_srcdir&;t t
26271 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
26272 s
&@top_srcdir@
&$ac_top_srcdir&;t t
26273 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
26274 s
&@builddir@
&$ac_builddir&;t t
26275 s
&@abs_builddir@
&$ac_abs_builddir&;t t
26276 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
26277 s
&@INSTALL@
&$ac_INSTALL&;t t
26278 $ac_datarootdir_hack
26279 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
26281 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26282 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
26283 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
26284 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
26285 which seems to be undefined. Please make sure it is defined." >&5
26286 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
26287 which seems to be undefined. Please make sure it is defined." >&2;}
26291 -) cat "$tmp/out"; rm -f "$tmp/out";;
26292 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
26301 # Transform confdefs.h into a sed script `conftest.defines', that
26302 # substitutes the proper values into config.h.in to produce config.h.
26303 rm -f conftest.defines conftest.
tail
26304 # First, append a space to every undef/define line, to ease matching.
26305 echo 's/$/ /' >conftest.defines
26306 # Then, protect against being on the right side of a sed subst, or in
26307 # an unquoted here document, in config.status. If some macros were
26308 # called several times there might be several #defines for the same
26309 # symbol, which is useless. But do not sort them, since the last
26310 # AC_DEFINE must be honored.
26311 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
26312 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
26313 # NAME is the cpp macro being defined, VALUE is the value it is being given.
26314 # PARAMS is the parameter list in the macro definition--in most cases, it's
26315 # just an empty string.
26316 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
26317 ac_dB
='\\)[ (].*,\\1define\\2'
26325 s/^[ ]*#[ ]*define[ ][ ]*//
26330 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
26331 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
26332 ' >>conftest.defines
26334 # Remove the space that was appended to ease matching.
26335 # Then replace #undef with comments. This is necessary, for
26336 # example, in the case of _POSIX_SOURCE, which is predefined and required
26337 # on some systems where configure will not decide to define it.
26338 # (The regexp can be short, since the line contains either #define or #undef.)
26340 s,^[ #]*u.*,/* & */,' >>conftest.defines
26342 # Break up conftest.defines:
26343 ac_max_sed_lines
=50
26345 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
26346 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
26347 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
26349 ac_in
='$ac_file_inputs'
26350 ac_out
='"$tmp/out1"'
26351 ac_nxt
='"$tmp/out2"'
26355 # Write a here document:
26356 cat >>$CONFIG_STATUS <<_ACEOF
26357 # First, check the format of the line:
26358 cat >"\$tmp/defines.sed" <<\\CEOF
26359 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
26360 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
26364 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
26366 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
26367 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
26368 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
26369 grep . conftest.
tail >/dev
/null ||
break
26370 rm -f conftest.defines
26371 mv conftest.
tail conftest.defines
26373 rm -f conftest.defines conftest.
tail
26375 echo "ac_result=$ac_in" >>$CONFIG_STATUS
26376 cat >>$CONFIG_STATUS <<\_ACEOF
26377 if test x
"$ac_file" != x-
; then
26378 echo "/* $configure_input */" >"$tmp/config.h"
26379 cat "$ac_result" >>"$tmp/config.h"
26380 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
26381 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26382 echo "$as_me: $ac_file is unchanged" >&6;}
26385 mv "$tmp/config.h" $ac_file
26388 echo "/* $configure_input */"
26400 { (exit 0); exit 0; }
26402 chmod +x
$CONFIG_STATUS
26403 ac_clean_files
=$ac_clean_files_save
26406 # configure is writing to config.log, and then calls config.status.
26407 # config.status does its own redirection, appending to config.log.
26408 # Unfortunately, on DOS this fails, as config.log is still kept open
26409 # by configure, so config.status won't be able to write to it; its
26410 # output is simply discarded. So we exec the FD to /dev/null,
26411 # effectively closing config.log, so it can be properly (re)opened and
26412 # appended to by config.status. When coming back to configure, we
26413 # need to make the FD available again.
26414 if test "$no_create" != yes; then
26416 ac_config_status_args
=
26417 test "$silent" = yes &&
26418 ac_config_status_args
="$ac_config_status_args --quiet"
26420 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
26422 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26423 # would make configure fail if this is the last instruction.
26424 $ac_cs_success ||
{ (exit 1); exit 1; }
26428 echo "creating Modules/Setup"
26429 if test ! -f Modules
/Setup
26431 cp $srcdir/Modules
/Setup.dist Modules
/Setup
26434 echo "creating Modules/Setup.local"
26435 if test ! -f Modules
/Setup.
local
26437 echo "# Edit this file for local setup changes" >Modules
/Setup.
local
26440 echo "creating Makefile"
26441 $SHELL $srcdir/Modules
/makesetup
-c $srcdir/Modules
/config.c.
in \
26442 -s Modules Modules
/Setup.config \
26443 Modules
/Setup.
local Modules
/Setup
26445 case $ac_sys_system in
26447 { echo "$as_me:$LINENO: WARNING:
26449 Support for BeOS is deprecated as of Python 2.6.
26450 See PEP 11 for the gory details.
26452 echo "$as_me: WARNING:
26454 Support for BeOS is deprecated as of Python 2.6.
26455 See PEP 11 for the gory details.
26461 mv config.c Modules