2 # From configure.in Revision: 73274 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for python 3.1.
6 # Report bugs to <http://bugs.python.org/>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be more Bourne compatible
17 DUALCASE
=1; export DUALCASE
# for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in
27 *posix
*) set -o posix
;;
36 # Avoid depending upon Character Ranges.
37 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits
='0123456789'
41 as_cr_alnum
=$as_cr_Letters$as_cr_digits
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45 echo "#! /bin/sh" >conf$$.sh
46 echo "exit 0" >>conf$$.sh
48 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
56 # Support unset when possible.
57 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
65 # We need space, tab and new line, in precisely that order. Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
73 # Find who we are. Look in the path if we contain no directory separator.
75 *[\\/]* ) as_myself
=$0 ;;
76 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
80 test -z "$as_dir" && as_dir
=.
81 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x
; then
92 if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var
in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
111 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C
; export $as_var
114 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
118 # Required to use basename.
119 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
126 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
133 # Name of the executable.
134 as_me
=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
139 sed '/^.*\/\([^/][^/]*\)\/*$/{
157 if test "x$CONFIG_SHELL" = x
; then
158 if (eval ":") 2>/dev
/null
; then
164 if test $as_have_required = yes && (eval ":
174 as_func_ret_success () {
177 as_func_ret_failure () {
182 if as_func_success; then
186 echo as_func_success failed.
189 if as_func_failure; then
191 echo as_func_failure succeeded.
194 if as_func_ret_success; then
198 echo as_func_ret_success failed.
201 if as_func_ret_failure; then
203 echo as_func_ret_failure succeeded.
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
210 echo positional parameters were not saved.
213 test \$exitcode = 0) || { (exit 1); exit 1; }
218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev
/null
; then
224 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
225 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
228 test -z "$as_dir" && as_dir
=.
231 for as_base
in sh bash ksh sh5
; do
232 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
239 for as_shell
in $as_candidate_shells $SHELL; do
240 # Try only shells that exist, to save several forks.
241 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
242 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247 # is contrary to our usage. Disable this feature.
248 alias -g '${1+"$@"}'='"$@"'
251 case `(set -o) 2>/dev/null` in
252 *posix
*) set -o posix
;;
261 CONFIG_SHELL
=$as_shell
263 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
272 case `(set -o) 2>/dev/null` in
273 *posix
*) set -o posix
;;
289 as_func_ret_success
() {
292 as_func_ret_failure
() {
297 if as_func_success
; then
301 echo as_func_success failed.
304 if as_func_failure
; then
306 echo as_func_failure succeeded.
309 if as_func_ret_success
; then
313 echo as_func_ret_success failed.
316 if as_func_ret_failure
; then
318 echo as_func_ret_failure succeeded.
321 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
325 echo positional parameters were not saved.
328 test $exitcode = 0) ||
{ (exit 1); exit 1; }
333 test "x$as_lineno_1" != "x$as_lineno_2" &&
334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
345 if test "x$CONFIG_SHELL" != x
; then
346 for as_var
in BASH_ENV ENV
347 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
354 if test $as_have_required = no
; then
355 echo This
script requires a shell
more modern than all the
356 echo shells that I found on your system. Please
install a
357 echo modern shell
, or manually run the
script under such a
358 echo shell
if you
do have one.
359 { (exit 1); exit 1; }
369 (eval "as_func_return () {
378 as_func_ret_success () {
381 as_func_ret_failure () {
386 if as_func_success; then
390 echo as_func_success failed.
393 if as_func_failure; then
395 echo as_func_failure succeeded.
398 if as_func_ret_success; then
402 echo as_func_ret_success failed.
405 if as_func_ret_failure; then
407 echo as_func_ret_failure succeeded.
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
414 echo positional parameters were not saved.
417 test \$exitcode = 0") ||
{
418 echo No shell found that supports shell functions.
419 echo Please tell autoconf@gnu.org about your system
,
420 echo including any error possibly output before this
428 test "x$as_lineno_1" != "x$as_lineno_2" &&
429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432 # uniformly replaced by the line number. The first 'sed' inserts a
433 # line-number line after each line using $LINENO; the second 'sed'
434 # does the real work. The second script uses 'N' to pair each
435 # line-number line with the line containing $LINENO, and appends
436 # trailing '-' during substitution so that $LINENO is not a special
438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439 # scripts with optimization help from Paolo Bonzini. Blame Lee
440 # E. McMahon (1931-1989) for sed's syntax. :-)
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
456 chmod +x
"$as_me.lineno" ||
457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458 { (exit 1); exit 1; }; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
464 # Exit status is that of the last command.
469 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
475 ECHO_C
= ECHO_N
= ECHO_T
=
479 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
486 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
493 rm -f conf$$ conf$$.exe conf$$.
file
494 if test -d conf$$.dir
; then
495 rm -f conf$$.dir
/conf$$.
file
501 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
503 # ... but there are two gotchas:
504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506 # In both cases, we have to default to `cp -p'.
507 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
509 elif ln conf$$.
file conf$$
2>/dev
/null
; then
514 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
515 rmdir conf$$.dir
2>/dev
/null
517 if mkdir
-p .
2>/dev
/null
; then
520 test -d .
/-p && rmdir .
/-p
524 if test -x / >/dev
/null
2>&1; then
527 if ls -dL / >/dev
/null
2>&1; then
534 if test -d "$1"; then
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
545 as_executable_p
=$as_test_x
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 exec 7<&0 </dev
/null
6>&1
558 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559 # so uname gets run too.
560 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
565 ac_default_prefix
=/usr
/local
567 ac_config_libobj_dir
=.
573 SHELL
=${CONFIG_SHELL-/bin/sh}
575 # Identity of this package.
576 PACKAGE_NAME
='python'
577 PACKAGE_TARNAME
='python'
578 PACKAGE_VERSION
='3.1'
579 PACKAGE_STRING
='python 3.1'
580 PACKAGE_BUGREPORT
='http://bugs.python.org/'
582 ac_unique_file
="Include/object.h"
583 # Factoring default headers for most tests.
584 ac_includes_default
="\
586 #ifdef HAVE_SYS_TYPES_H
587 # include <sys/types.h>
589 #ifdef HAVE_SYS_STAT_H
590 # include <sys/stat.h>
596 # ifdef HAVE_STDLIB_H
601 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
606 #ifdef HAVE_STRINGS_H
607 # include <strings.h>
609 #ifdef HAVE_INTTYPES_H
610 # include <inttypes.h>
628 program_transform_name
662 PYTHONFRAMEWORKIDENTIFIER
664 PYTHONFRAMEWORKPREFIX
665 PYTHONFRAMEWORKINSTALLDIR
666 FRAMEWORKINSTALLFIRST
668 FRAMEWORKALTINSTALLFIRST
669 FRAMEWORKALTINSTALLLAST
670 FRAMEWORKUNIXTOOLSPREFIX
673 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
674 EXPORT_MACOSX_DEPLOYMENT_TARGET
727 HAVE_GETHOSTBYNAME_R_6_ARG
728 HAVE_GETHOSTBYNAME_R_5_ARG
729 HAVE_GETHOSTBYNAME_R_3_ARG
738 ac_precious_vars
='build_alias
749 # Initialize some variables set by options.
751 ac_init_version
=false
752 # The variables have the same names as the options, with
753 # dashes changed to underlines.
761 program_transform_name
=s
,x
,x
,
769 # Installation directory options.
770 # These are left unexpanded so users can "make install exec_prefix=/foo"
771 # and all the variables that are supposed to be based on exec_prefix
772 # by default will actually change.
773 # Use braces instead of parens because sh, perl, etc. also accept them.
774 # (The list follows the same order as the GNU Coding Standards.)
775 bindir
='${exec_prefix}/bin'
776 sbindir
='${exec_prefix}/sbin'
777 libexecdir
='${exec_prefix}/libexec'
778 datarootdir
='${prefix}/share'
779 datadir
='${datarootdir}'
780 sysconfdir
='${prefix}/etc'
781 sharedstatedir
='${prefix}/com'
782 localstatedir
='${prefix}/var'
783 includedir
='${prefix}/include'
784 oldincludedir
='/usr/include'
785 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
786 infodir
='${datarootdir}/info'
791 libdir
='${exec_prefix}/lib'
792 localedir
='${datarootdir}/locale'
793 mandir
='${datarootdir}/man'
799 # If the previous option needs an argument, assign it.
800 if test -n "$ac_prev"; then
801 eval $ac_prev=\
$ac_option
807 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
811 # Accept the important Cygnus configure options, so we can diagnose typos.
813 case $ac_dashdash$ac_option in
817 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
819 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
822 -build |
--build |
--buil |
--bui |
--bu)
823 ac_prev
=build_alias
;;
824 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
825 build_alias
=$ac_optarg ;;
827 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
828 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
829 ac_prev
=cache_file
;;
830 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
831 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
832 cache_file
=$ac_optarg ;;
835 cache_file
=config.cache
;;
837 -datadir |
--datadir |
--datadi |
--datad)
839 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
840 datadir
=$ac_optarg ;;
842 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
843 |
--dataroo |
--dataro |
--datar)
844 ac_prev
=datarootdir
;;
845 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
846 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
847 datarootdir
=$ac_optarg ;;
849 -disable-* |
--disable-*)
850 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
851 # Reject names that are not valid shell variable names.
852 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
853 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
854 { (exit 1); exit 1; }; }
855 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
856 eval enable_
$ac_feature=no
;;
858 -docdir |
--docdir |
--docdi |
--doc |
--do)
860 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
863 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
865 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
868 -enable-* |
--enable-*)
869 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
870 # Reject names that are not valid shell variable names.
871 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
872 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
873 { (exit 1); exit 1; }; }
874 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
875 eval enable_
$ac_feature=\
$ac_optarg ;;
877 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
878 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
879 |
--exec |
--exe |
--ex)
880 ac_prev
=exec_prefix
;;
881 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
882 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
883 |
--exec=* |
--exe=* |
--ex=*)
884 exec_prefix
=$ac_optarg ;;
886 -gas |
--gas |
--ga |
--g)
887 # Obsolete; use --with-gas.
890 -help |
--help |
--hel |
--he |
-h)
892 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
893 ac_init_help
=recursive
;;
894 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
895 ac_init_help
=short
;;
897 -host |
--host |
--hos |
--ho)
898 ac_prev
=host_alias
;;
899 -host=* |
--host=* |
--hos=* |
--ho=*)
900 host_alias
=$ac_optarg ;;
902 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
904 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
906 htmldir
=$ac_optarg ;;
908 -includedir |
--includedir |
--includedi |
--included |
--include \
909 |
--includ |
--inclu |
--incl |
--inc)
910 ac_prev
=includedir
;;
911 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
912 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
913 includedir
=$ac_optarg ;;
915 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
917 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
918 infodir
=$ac_optarg ;;
920 -libdir |
--libdir |
--libdi |
--libd)
922 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
925 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
926 |
--libexe |
--libex |
--libe)
927 ac_prev
=libexecdir
;;
928 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
929 |
--libexe=* |
--libex=* |
--libe=*)
930 libexecdir
=$ac_optarg ;;
932 -localedir |
--localedir |
--localedi |
--localed |
--locale)
934 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
935 localedir
=$ac_optarg ;;
937 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
938 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
939 ac_prev
=localstatedir
;;
940 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
941 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
942 localstatedir
=$ac_optarg ;;
944 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
946 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
950 # Obsolete; use --without-fp.
953 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
954 |
--no-cr |
--no-c |
-n)
957 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
958 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
961 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
962 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
963 |
--oldin |
--oldi |
--old |
--ol |
--o)
964 ac_prev
=oldincludedir
;;
965 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
966 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
967 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
968 oldincludedir
=$ac_optarg ;;
970 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
972 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
975 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
976 |
--program-pre |
--program-pr |
--program-p)
977 ac_prev
=program_prefix
;;
978 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
979 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
980 program_prefix
=$ac_optarg ;;
982 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
983 |
--program-suf |
--program-su |
--program-s)
984 ac_prev
=program_suffix
;;
985 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
986 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
987 program_suffix
=$ac_optarg ;;
989 -program-transform-name |
--program-transform-name \
990 |
--program-transform-nam |
--program-transform-na \
991 |
--program-transform-n |
--program-transform- \
992 |
--program-transform |
--program-transfor \
993 |
--program-transfo |
--program-transf \
994 |
--program-trans |
--program-tran \
995 |
--progr-tra |
--program-tr |
--program-t)
996 ac_prev
=program_transform_name
;;
997 -program-transform-name=* |
--program-transform-name=* \
998 |
--program-transform-nam=* |
--program-transform-na=* \
999 |
--program-transform-n=* |
--program-transform-=* \
1000 |
--program-transform=* |
--program-transfor=* \
1001 |
--program-transfo=* |
--program-transf=* \
1002 |
--program-trans=* |
--program-tran=* \
1003 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1004 program_transform_name
=$ac_optarg ;;
1006 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1008 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1009 pdfdir
=$ac_optarg ;;
1011 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1013 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1016 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1017 |
-silent |
--silent |
--silen |
--sile |
--sil)
1020 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1022 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1024 sbindir
=$ac_optarg ;;
1026 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1027 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1028 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1030 ac_prev
=sharedstatedir
;;
1031 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1032 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1033 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1035 sharedstatedir
=$ac_optarg ;;
1037 -site |
--site |
--sit)
1039 -site=* |
--site=* |
--sit=*)
1042 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1044 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1045 srcdir
=$ac_optarg ;;
1047 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1048 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1049 ac_prev
=sysconfdir
;;
1050 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1051 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1052 sysconfdir
=$ac_optarg ;;
1054 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1055 ac_prev
=target_alias
;;
1056 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1057 target_alias
=$ac_optarg ;;
1059 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1062 -version |
--version |
--versio |
--versi |
--vers |
-V)
1063 ac_init_version
=: ;;
1066 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1067 # Reject names that are not valid shell variable names.
1068 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1069 { echo "$as_me: error: invalid package name: $ac_package" >&2
1070 { (exit 1); exit 1; }; }
1071 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1072 eval with_
$ac_package=\
$ac_optarg ;;
1074 -without-* |
--without-*)
1075 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1076 # Reject names that are not valid shell variable names.
1077 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1078 { echo "$as_me: error: invalid package name: $ac_package" >&2
1079 { (exit 1); exit 1; }; }
1080 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1081 eval with_
$ac_package=no
;;
1084 # Obsolete; use --with-x.
1087 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1088 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1089 ac_prev
=x_includes
;;
1090 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1091 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1092 x_includes
=$ac_optarg ;;
1094 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1095 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1096 ac_prev
=x_libraries
;;
1097 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1098 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1099 x_libraries
=$ac_optarg ;;
1101 -*) { echo "$as_me: error: unrecognized option: $ac_option
1102 Try \`$0 --help' for more information." >&2
1103 { (exit 1); exit 1; }; }
1107 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1108 # Reject names that are not valid shell variable names.
1109 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1110 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1111 { (exit 1); exit 1; }; }
1112 eval $ac_envvar=\
$ac_optarg
1113 export $ac_envvar ;;
1116 # FIXME: should be removed in autoconf 3.0.
1117 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1118 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1119 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1120 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1126 if test -n "$ac_prev"; then
1127 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1128 { echo "$as_me: error: missing argument to $ac_option" >&2
1129 { (exit 1); exit 1; }; }
1132 # Be sure to have absolute directory names.
1133 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1134 datadir sysconfdir sharedstatedir localstatedir includedir \
1135 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1136 libdir localedir mandir
1138 eval ac_val
=\$
$ac_var
1140 [\\/$
]* | ?
:[\\/]* ) continue;;
1141 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1143 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1144 { (exit 1); exit 1; }; }
1147 # There might be people who depend on the old broken behavior: `$host'
1148 # used to hold the argument of --host etc.
1149 # FIXME: To remove some day.
1152 target
=$target_alias
1154 # FIXME: To remove some day.
1155 if test "x$host_alias" != x
; then
1156 if test "x$build_alias" = x
; then
1157 cross_compiling
=maybe
1158 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1159 If a cross compiler is detected then cross compile mode will be used." >&2
1160 elif test "x$build_alias" != "x$host_alias"; then
1166 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1168 test "$silent" = yes && exec 6>/dev
/null
1171 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1172 ac_ls_di
=`ls -di .` &&
1173 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1174 { echo "$as_me: error: Working directory cannot be determined" >&2
1175 { (exit 1); exit 1; }; }
1176 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1177 { echo "$as_me: error: pwd does not report name of working directory" >&2
1178 { (exit 1); exit 1; }; }
1181 # Find the source files, if location was not specified.
1182 if test -z "$srcdir"; then
1183 ac_srcdir_defaulted
=yes
1184 # Try the directory containing this script, then the parent directory.
1185 ac_confdir
=`$as_dirname -- "$0" ||
1186 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1187 X"$0" : 'X\(//\)[^/]' \| \
1188 X"$0" : 'X\(//\)$' \| \
1189 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1191 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1209 if test ! -r "$srcdir/$ac_unique_file"; then
1213 ac_srcdir_defaulted
=no
1215 if test ! -r "$srcdir/$ac_unique_file"; then
1216 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1217 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1218 { (exit 1); exit 1; }; }
1220 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1222 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1223 { (exit 1); exit 1; }; }
1225 # When building in place, set srcdir=.
1226 if test "$ac_abs_confdir" = "$ac_pwd"; then
1229 # Remove unnecessary trailing slashes from srcdir.
1230 # Double slashes in file names in object file debugging info
1231 # mess up M-x gdb in Emacs.
1233 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1235 for ac_var
in $ac_precious_vars; do
1236 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1237 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1238 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1239 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1243 # Report the --help message.
1245 if test "$ac_init_help" = "long"; then
1246 # Omit some internal or obsolete options to make the list less imposing.
1247 # This message is too long to be a string in the A/UX 3.1 sh.
1249 \`configure' configures python 3.1 to adapt to many kinds of systems.
1251 Usage: $0 [OPTION]... [VAR=VALUE]...
1253 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1254 VAR=VALUE. See below for descriptions of some of the useful variables.
1256 Defaults for the options are specified in brackets.
1259 -h, --help display this help and exit
1260 --help=short display options specific to this package
1261 --help=recursive display the short help of all the included packages
1262 -V, --version display version information and exit
1263 -q, --quiet, --silent do not print \`checking...' messages
1264 --cache-file=FILE cache test results in FILE [disabled]
1265 -C, --config-cache alias for \`--cache-file=config.cache'
1266 -n, --no-create do not create output files
1267 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1269 Installation directories:
1270 --prefix=PREFIX install architecture-independent files in PREFIX
1271 [$ac_default_prefix]
1272 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1275 By default, \`make install' will install all the files in
1276 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1277 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1278 for instance \`--prefix=\$HOME'.
1280 For better control, use the options below.
1282 Fine tuning of the installation directories:
1283 --bindir=DIR user executables [EPREFIX/bin]
1284 --sbindir=DIR system admin executables [EPREFIX/sbin]
1285 --libexecdir=DIR program executables [EPREFIX/libexec]
1286 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1287 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1288 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1289 --libdir=DIR object code libraries [EPREFIX/lib]
1290 --includedir=DIR C header files [PREFIX/include]
1291 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1292 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1293 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1294 --infodir=DIR info documentation [DATAROOTDIR/info]
1295 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1296 --mandir=DIR man documentation [DATAROOTDIR/man]
1297 --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1298 --htmldir=DIR html documentation [DOCDIR]
1299 --dvidir=DIR dvi documentation [DOCDIR]
1300 --pdfdir=DIR pdf documentation [DOCDIR]
1301 --psdir=DIR ps documentation [DOCDIR]
1308 if test -n "$ac_init_help"; then
1309 case $ac_init_help in
1310 short | recursive
) echo "Configuration of python 3.1:";;
1315 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1316 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1317 --enable-universalsdk[=SDKDIR
]
1318 Build against Mac OS X
10.4u SDK
(ppc
/i386
)
1319 --enable-framework[=INSTALLDIR
]
1320 Build
(MacOSX|Darwin
) framework
1321 --enable-shared disable
/enable building shared python library
1322 --enable-profiling enable C-level code profiling
1323 --enable-ipv6 Enable ipv6
(with ipv4
) support
1324 --disable-ipv6 Disable ipv6 support
1325 --enable-big-digits[=BITS
]
1326 use big digits
for Python longs
[BITS
=30]
1329 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1330 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1331 --with-universal-archs=ARCH
1332 select architectures
for universal build
("32-bit",
1334 --with-framework-name=FRAMEWORK
1335 specify an alternate name of the framework built
1336 with
--enable-framework
1337 --without-gcc never use gcc
1338 --with-cxx-main=<compiler
>
1339 compile main
() and link python executable with C
++
1341 --with-suffix=.exe
set executable suffix
1342 --with-pydebug build with Py_DEBUG defined
1343 --with-libs='lib1 ...' link against additional libs
1344 --with-system-ffi build _ctypes module using an installed ffi library
1345 --with-dbmliborder=db1
:db2
:...
1346 order to check db backends
for dbm. Valid value is a
1347 colon separated string with the backend names
1348 `ndbm', `gdbm
' and `bdb'.
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
1363 --with-wide-unicode Use
4-byte Unicode characters
(default is
2 bytes
)
1364 --with-computed-gotos Use computed gotos
/ threaded dispatch
in evaluation
1365 loop
(not available on all compilers
)
1367 Some influential environment variables
:
1368 CC C compiler
command
1369 CFLAGS C compiler flags
1370 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1371 nonstandard directory
<lib dir
>
1372 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1373 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1374 you have headers
in a nonstandard directory
<include dir
>
1377 Use these variables to override the choices made by
`configure' or to help
1378 it to find libraries and programs with nonstandard names/locations.
1380 Report bugs to <http://bugs.python.org/>.
1385 if test "$ac_init_help" = "recursive"; then
1386 # If there are subdirs, report their specific --help.
1387 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1388 test -d "$ac_dir" || continue
1392 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1394 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1395 # A ".." for each directory in $ac_dir_suffix.
1396 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1397 case $ac_top_builddir_sub in
1398 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1399 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1402 ac_abs_top_builddir=$ac_pwd
1403 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1404 # for backward compatibility:
1405 ac_top_builddir=$ac_top_build_prefix
1408 .) # We are building in place.
1410 ac_top_srcdir=$ac_top_builddir_sub
1411 ac_abs_top_srcdir=$ac_pwd ;;
1412 [\\/]* | ?:[\\/]* ) # Absolute name.
1413 ac_srcdir=$srcdir$ac_dir_suffix;
1414 ac_top_srcdir=$srcdir
1415 ac_abs_top_srcdir=$srcdir ;;
1417 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1418 ac_top_srcdir=$ac_top_build_prefix$srcdir
1419 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1421 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1423 cd "$ac_dir" || { ac_status=$?; continue; }
1424 # Check for guested configure.
1425 if test -f "$ac_srcdir/configure.gnu"; then
1427 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1428 elif test -f "$ac_srcdir/configure"; then
1430 $SHELL "$ac_srcdir/configure" --help=recursive
1432 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1434 cd "$ac_pwd" || { ac_status=$?; break; }
1438 test -n "$ac_init_help" && exit $ac_status
1439 if $ac_init_version; then
1441 python configure 3.1
1442 generated by GNU Autoconf 2.61
1444 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1445 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1446 This configure script is free software; the Free Software Foundation
1447 gives unlimited permission to copy, distribute and modify it.
1451 cat >config.log <<_ACEOF
1452 This file contains any messages produced by compilers while
1453 running configure, to aid debugging if configure makes a mistake.
1455 It was created by python $as_me 3.1, which was
1456 generated by GNU Autoconf 2.61. Invocation command line was
1468 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1469 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1470 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1471 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1472 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1474 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1475 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1477 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1478 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1479 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1480 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1481 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1482 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1483 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1491 test -z "$as_dir" && as_dir=.
1492 echo "PATH: $as_dir"
1508 # Keep a trace of the command line.
1509 # Strip out --no-create and --no-recursion so they do not pile up.
1510 # Strip out --silent because we don't want to record it for future runs.
1511 # Also quote any args containing shell meta-characters.
1512 # Make two passes to allow for proper duplicate-argument suppression.
1516 ac_must_keep_next=false
1522 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1523 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1524 | -silent | --silent | --silen | --sile | --sil)
1527 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1530 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1532 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1533 if test $ac_must_keep_next = true; then
1534 ac_must_keep_next=false # Got value, back to normal.
1537 *=* | --config-cache | -C | -disable-* | --disable-* \
1538 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1539 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1540 | -with-* | --with-* | -without-* | --without-* | --x)
1541 case "$ac_configure_args0 " in
1542 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1545 -* ) ac_must_keep_next=true ;;
1548 ac_configure_args="$ac_configure_args '$ac_arg'"
1553 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1554 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1556 # When interrupted or exit'd, cleanup temporary files, and complete
1557 # config.log. We remove comments because anyway the quotes in there
1558 # would cause problems or look ugly.
1559 # WARNING: Use '\'' to represent an apostrophe within the trap.
1560 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1561 trap 'exit_status=$?
1562 # Save into config.log some information that might help in debugging.
1567 ## ---------------- ##
1568 ## Cache variables. ##
1569 ## ---------------- ##
1572 # The following way of writing the cache mishandles newlines in values,
1574 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1575 eval ac_val=\$$ac_var
1579 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1580 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1583 _ | IFS | as_nl) ;; #(
1584 *) $as_unset $ac_var ;;
1589 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1590 *${as_nl}ac_space=\ *)
1592 "s/'\''/'\''\\\\'\'''\''/g;
1593 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1596 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1604 ## ----------------- ##
1605 ## Output variables. ##
1606 ## ----------------- ##
1609 for ac_var in $ac_subst_vars
1611 eval ac_val=\$$ac_var
1613 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1615 echo "$ac_var='\''$ac_val'\''"
1619 if test -n "$ac_subst_files"; then
1621 ## ------------------- ##
1622 ## File substitutions. ##
1623 ## ------------------- ##
1626 for ac_var in $ac_subst_files
1628 eval ac_val=\$$ac_var
1630 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1632 echo "$ac_var='\''$ac_val'\''"
1637 if test -s confdefs.h; then
1647 test "$ac_signal" != 0 &&
1648 echo "$as_me: caught signal $ac_signal"
1649 echo "$as_me: exit $exit_status"
1651 rm -f core *.core core.conftest.* &&
1652 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1655 for ac_signal in 1 2 13 15; do
1656 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1660 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1661 rm -f -r conftest* confdefs.h
1663 # Predefined preprocessor variables.
1665 cat >>confdefs.h <<_ACEOF
1666 #define PACKAGE_NAME "$PACKAGE_NAME"
1670 cat >>confdefs.h <<_ACEOF
1671 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1675 cat >>confdefs.h <<_ACEOF
1676 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1680 cat >>confdefs.h <<_ACEOF
1681 #define PACKAGE_STRING "$PACKAGE_STRING"
1685 cat >>confdefs.h <<_ACEOF
1686 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1690 # Let the site file select an alternate cache file if it wants to.
1691 # Prefer explicitly selected file to automatically selected ones.
1692 if test -n "$CONFIG_SITE"; then
1693 set x "$CONFIG_SITE"
1694 elif test "x$prefix" != xNONE; then
1695 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1697 set x "$ac_default_prefix/share/config.site" \
1698 "$ac_default_prefix/etc/config.site"
1703 if test -r "$ac_site_file"; then
1704 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1705 echo "$as_me: loading site script $ac_site_file" >&6;}
1706 sed 's/^/| /' "$ac_site_file" >&5
1711 if test -r "$cache_file"; then
1712 # Some versions of bash will fail to source /dev/null (special
1713 # files actually), so we avoid doing that.
1714 if test -f "$cache_file"; then
1715 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1716 echo "$as_me: loading cache $cache_file" >&6;}
1718 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1719 *) . "./$cache_file";;
1723 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1724 echo "$as_me: creating cache $cache_file" >&6;}
1728 # Check that the precious variables saved in the cache have kept the same
1730 ac_cache_corrupted=false
1731 for ac_var in $ac_precious_vars; do
1732 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1733 eval ac_new_set=\$ac_env_${ac_var}_set
1734 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1735 eval ac_new_val=\$ac_env_${ac_var}_value
1736 case $ac_old_set,$ac_new_set in
1738 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1739 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1740 ac_cache_corrupted=: ;;
1742 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1743 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1744 ac_cache_corrupted=: ;;
1747 if test "x$ac_old_val" != "x$ac_new_val"; then
1748 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1749 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1750 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1751 echo "$as_me: former value
: $ac_old_val" >&2;}
1752 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1753 echo "$as_me: current value
: $ac_new_val" >&2;}
1754 ac_cache_corrupted=:
1757 # Pass precious variables to config.status.
1758 if test "$ac_new_set" = set; then
1760 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1761 *) ac_arg=$ac_var=$ac_new_val ;;
1763 case " $ac_configure_args " in
1764 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1765 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1769 if $ac_cache_corrupted; then
1770 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1771 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1772 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1773 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1774 { (exit 1); exit 1; }; }
1802 ac_cpp='$CPP $CPPFLAGS'
1803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1809 ac_config_headers="$ac_config_headers pyconfig.h"
1813 if test "$prefix" != "/"; then
1814 prefix=`echo "$prefix" |
sed -e 's/\/$//g'`
1822 # We don't use PACKAGE_ variables, and they cause conflicts
1823 # with other autoconf-based packages that include Python.h
1824 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1826 mv confdefs.h.new confdefs.h
1834 # The later defininition of _XOPEN_SOURCE disables certain features
1835 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1837 cat >>confdefs.h <<\_ACEOF
1838 #define _GNU_SOURCE 1
1842 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1843 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1846 cat >>confdefs.h <<\_ACEOF
1847 #define _NETBSD_SOURCE 1
1851 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1852 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1855 cat >>confdefs.h <<\_ACEOF
1856 #define __BSD_VISIBLE 1
1860 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1861 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1863 cat >>confdefs.h <<\_ACEOF
1864 #define _BSD_TYPES 1
1868 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1869 # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
1872 cat >>confdefs.h <<\_ACEOF
1873 #define _DARWIN_C_SOURCE 1
1878 define_xopen_source=yes
1880 # Arguments passed to configure.
1882 CONFIG_ARGS="$ac_configure_args"
1884 # Check whether --enable-universalsdk was given.
1885 if test "${enable_universalsdk+set}" = set; then
1886 enableval=$enable_universalsdk;
1889 enableval=/Developer/SDKs/MacOSX10.4u.sdk
1895 enable_universalsdk=
1898 UNIVERSALSDK=$enableval
1905 enable_universalsdk=
1914 UNIVERSAL_ARCHS="32-bit"
1915 { echo "$as_me:$LINENO: checking for --with-universal-archs" >&5
1916 echo $ECHO_N "checking for --with-universal-archs... $ECHO_C" >&6; }
1918 # Check whether --with-universal-archs was given.
1919 if test "${with_universal_archs+set}" = set; then
1920 withval=$with_universal_archs;
1921 { echo "$as_me:$LINENO: result: $withval" >&5
1922 echo "${ECHO_T}$withval" >&6; }
1923 UNIVERSAL_ARCHS="$withval"
1927 { echo "$as_me:$LINENO: result: 32-bit" >&5
1928 echo "${ECHO_T}32-bit" >&6; }
1936 # Check whether --with-framework-name was given.
1937 if test "${with_framework_name+set}" = set; then
1938 withval=$with_framework_name;
1939 PYTHONFRAMEWORK=${withval}
1940 PYTHONFRAMEWORKDIR=${withval}.framework
1941 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval |
tr 'A-Z' 'a-z'`
1945 PYTHONFRAMEWORK=Python
1946 PYTHONFRAMEWORKDIR=Python.framework
1947 PYTHONFRAMEWORKIDENTIFIER=org.python.python
1951 # Check whether --enable-framework was given.
1952 if test "${enable_framework+set}" = set; then
1953 enableval=$enable_framework;
1956 enableval=/Library/Frameworks
1961 PYTHONFRAMEWORKDIR=no-framework
1962 PYTHONFRAMEWORKPREFIX=
1963 PYTHONFRAMEWORKINSTALLDIR=
1964 FRAMEWORKINSTALLFIRST=
1965 FRAMEWORKINSTALLLAST=
1966 FRAMEWORKALTINSTALLFIRST=
1967 FRAMEWORKALTINSTALLLAST=
1968 if test "x${prefix}" = "xNONE"; then
1969 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1971 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1976 PYTHONFRAMEWORKPREFIX=$enableval
1977 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1978 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
1979 FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure "
1980 if test "$UNIVERSAL_ARCHS" = "all"
1982 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkinstallunixtools4way"
1983 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkaltinstallunixtools4way"
1985 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
1986 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
1989 if test "x${prefix}" = "xNONE" ; then
1990 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1992 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1994 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
1996 # Add files for Mac specific code to the list of output
1998 ac_config_files="$ac_config_files Mac/Makefile"
2000 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
2002 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
2004 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
2011 PYTHONFRAMEWORKDIR=no-framework
2012 PYTHONFRAMEWORKPREFIX=
2013 PYTHONFRAMEWORKINSTALLDIR=
2014 FRAMEWORKINSTALLFIRST=
2015 FRAMEWORKINSTALLLAST=
2016 FRAMEWORKALTINSTALLFIRST=
2017 FRAMEWORKALTINSTALLLAST=
2018 if test "x${prefix}" = "xNONE" ; then
2019 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2021 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2025 if test "$UNIVERSAL_ARCHS" = "all"
2027 FRAMEWORKINSTALLLAST=update4wayuniversal
2028 FRAMEWORKALTINSTALLLAST=update4wayuniversal
2045 ## AC_HELP_STRING(--with-dyld,
2046 ## Use (OpenStep|Rhapsody) dynamic linker))
2048 # Set name for machine-dependent library files
2050 { echo "$as_me:$LINENO: checking MACHDEP" >&5
2051 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; }
2052 if test -z "$MACHDEP"
2054 ac_sys_system=`uname
-s`
2055 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
2056 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
2057 ac_sys_release=`uname
-v`
2059 ac_sys_release=`uname
-r`
2061 ac_md_system=`echo $ac_sys_system |
2062 tr -d '/ ' |
tr '[A-Z]' '[a-z]'`
2063 ac_md_release=`echo $ac_sys_release |
2064 tr -d '/ ' |
sed 's/^[A-Z]\.//' |
sed 's/\..*//'`
2065 MACHDEP="$ac_md_system$ac_md_release"
2068 cygwin*) MACHDEP="cygwin";;
2069 darwin*) MACHDEP="darwin";;
2070 atheos*) MACHDEP="atheos";;
2071 irix646) MACHDEP="irix6";;
2072 '') MACHDEP="unknown";;
2076 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
2077 # disable features if it is defined, without any means to access these
2078 # features as extensions. For these systems, we skip the definition of
2079 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
2080 # some feature, make sure there is no alternative way to access this
2081 # feature. Also, when using wildcards, make sure you have verified the
2082 # need for not defining _XOPEN_SOURCE on all systems matching the
2083 # wildcard, and that the wildcard does not include future systems
2084 # (which may remove their limitations).
2085 case $ac_sys_system/$ac_sys_release in
2086 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
2087 # even though select is a POSIX function. Reported by J. Ribbens.
2088 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
2089 OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123])
2090 define_xopen_source=no
2091 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2092 # also defined. This can be overridden by defining _BSD_SOURCE
2093 # As this has a different meaning on Linux, only define it on OpenBSD
2095 cat >>confdefs.h <<\_ACEOF
2096 #define _BSD_SOURCE 1
2100 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
2101 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
2103 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
2104 define_xopen_source=no;;
2105 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
2106 # of union __?sigval. Reported by Stuart Bishop.
2108 define_xopen_source=no;;
2109 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
2110 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
2111 # Reconfirmed for 7.1.4 by Martin v. Loewis.
2112 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
2113 define_xopen_source=no;;
2114 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
2115 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
2117 define_xopen_source=no;;
2118 # On FreeBSD 4, the math functions C89 does not cover are never defined
2119 # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them.
2121 define_xopen_source=no;;
2122 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
2123 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
2124 # identifies itself as Darwin/7.*
2125 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2126 # disables platform specific features beyond repair.
2127 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2128 # has no effect, don't bother defining them
2130 define_xopen_source=no;;
2131 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
2132 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
2133 # or has another value. By not (re)defining it, the defaults come in place.
2135 define_xopen_source=no;;
2137 if test `uname
-r` -eq 1; then
2138 define_xopen_source=no
2141 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
2142 # defining NI_NUMERICHOST.
2144 define_xopen_source=no
2149 if test $define_xopen_source = yes
2151 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
2152 # defined precisely as g++ defines it
2153 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
2155 case $ac_sys_system/$ac_sys_release in
2156 SunOS/5.8|SunOS/5.9|SunOS/5.10)
2158 cat >>confdefs.h <<\_ACEOF
2159 #define _XOPEN_SOURCE 500
2165 cat >>confdefs.h <<\_ACEOF
2166 #define _XOPEN_SOURCE 600
2172 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
2173 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
2174 # several APIs are not declared. Since this is also needed in some
2175 # cases for HP-UX, we define it globally.
2176 # except for Solaris 10, where it must not be defined,
2177 # as it implies XPG4.2
2178 case $ac_sys_system/$ac_sys_release in
2183 cat >>confdefs.h <<\_ACEOF
2184 #define _XOPEN_SOURCE_EXTENDED 1
2191 cat >>confdefs.h <<\_ACEOF
2192 #define _POSIX_C_SOURCE 200112L
2199 # SGI compilers allow the specification of the both the ABI and the
2200 # ISA on the command line. Depending on the values of these switches,
2201 # different and often incompatable code will be generated.
2203 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
2204 # thus supply support for various ABI/ISA combinations. The MACHDEP
2205 # variable is also adjusted.
2208 if test ! -z "$SGI_ABI"
2211 LDFLAGS="$SGI_ABI $LDFLAGS"
2212 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" |
sed 's/ *//g'`
2214 { echo "$as_me:$LINENO: result: $MACHDEP" >&5
2215 echo "${ECHO_T}$MACHDEP" >&6; }
2217 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
2218 # it may influence the way we can build extensions, so distutils
2222 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
2223 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
2225 { echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5
2226 echo $ECHO_N "checking machine type as reported by uname -m... $ECHO_C" >&6; }
2227 ac_sys_machine=`uname
-m`
2228 { echo "$as_me:$LINENO: result: $ac_sys_machine" >&5
2229 echo "${ECHO_T}$ac_sys_machine" >&6; }
2231 # checks for alternative programs
2233 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
2234 # for debug/optimization stuff. BASECFLAGS is for flags that are required
2235 # just to get things to compile and link. Users are free to override OPT
2236 # when running configure or make. The build should not break if they do.
2237 # BASECFLAGS should generally not be messed with, however.
2239 # XXX shouldn't some/most/all of this code be merged with the stuff later
2240 # on that fiddles with OPT and BASECFLAGS?
2241 { echo "$as_me:$LINENO: checking for --without-gcc" >&5
2242 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; }
2244 # Check whether --with-gcc was given.
2245 if test "${with_gcc+set}" = set; then
2253 without_gcc=$withval;;
2257 case $ac_sys_system in
2267 { echo "$as_me:$LINENO: result: $without_gcc" >&5
2268 echo "${ECHO_T}$without_gcc" >&6; }
2270 # If the user switches compilers, we can't believe the cache
2271 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
2273 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
2274 (it is also a good idea to do 'make clean' before compiling)" >&5
2275 echo "$as_me: error: cached CC is different -- throw away $cache_file
2276 (it is also a good idea to do 'make clean' before compiling)" >&2;}
2277 { (exit 1); exit 1; }; }
2281 ac_cpp='$CPP $CPPFLAGS'
2282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2285 if test -n "$ac_tool_prefix"; then
2286 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2287 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2288 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2290 if test "${ac_cv_prog_CC+set}" = set; then
2291 echo $ECHO_N "(cached) $ECHO_C" >&6
2293 if test -n "$CC"; then
2294 ac_cv_prog_CC="$CC" # Let the user override the test.
2296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2300 test -z "$as_dir" && as_dir=.
2301 for ac_exec_ext in '' $ac_executable_extensions; do
2302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2303 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2314 if test -n "$CC"; then
2315 { echo "$as_me:$LINENO: result: $CC" >&5
2316 echo "${ECHO_T}$CC" >&6; }
2318 { echo "$as_me:$LINENO: result: no" >&5
2319 echo "${ECHO_T}no" >&6; }
2324 if test -z "$ac_cv_prog_CC"; then
2326 # Extract the first word of "gcc", so it can be a program name with args.
2327 set dummy gcc; ac_word=$2
2328 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2330 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2331 echo $ECHO_N "(cached) $ECHO_C" >&6
2333 if test -n "$ac_ct_CC"; then
2334 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2340 test -z "$as_dir" && as_dir=.
2341 for ac_exec_ext in '' $ac_executable_extensions; do
2342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2343 ac_cv_prog_ac_ct_CC="gcc"
2344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2353 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2354 if test -n "$ac_ct_CC"; then
2355 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2356 echo "${ECHO_T}$ac_ct_CC" >&6; }
2358 { echo "$as_me:$LINENO: result: no" >&5
2359 echo "${ECHO_T}no" >&6; }
2362 if test "x$ac_ct_CC" = x; then
2365 case $cross_compiling:$ac_tool_warned in
2367 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2368 whose name does not start with the host triplet. If you think this
2369 configuration is useful to you, please write to autoconf@gnu.org." >&5
2370 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2371 whose name does not start with the host triplet. If you think this
2372 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2373 ac_tool_warned=yes ;;
2381 if test -z "$CC"; then
2382 if test -n "$ac_tool_prefix"; then
2383 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2384 set dummy ${ac_tool_prefix}cc; ac_word=$2
2385 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2387 if test "${ac_cv_prog_CC+set}" = set; then
2388 echo $ECHO_N "(cached) $ECHO_C" >&6
2390 if test -n "$CC"; then
2391 ac_cv_prog_CC="$CC" # Let the user override the test.
2393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2397 test -z "$as_dir" && as_dir=.
2398 for ac_exec_ext in '' $ac_executable_extensions; do
2399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2400 ac_cv_prog_CC="${ac_tool_prefix}cc"
2401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2411 if test -n "$CC"; then
2412 { echo "$as_me:$LINENO: result: $CC" >&5
2413 echo "${ECHO_T}$CC" >&6; }
2415 { echo "$as_me:$LINENO: result: no" >&5
2416 echo "${ECHO_T}no" >&6; }
2422 if test -z "$CC"; then
2423 # Extract the first word of "cc", so it can be a program name with args.
2424 set dummy cc; ac_word=$2
2425 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2427 if test "${ac_cv_prog_CC+set}" = set; then
2428 echo $ECHO_N "(cached) $ECHO_C" >&6
2430 if test -n "$CC"; then
2431 ac_cv_prog_CC="$CC" # Let the user override the test.
2434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2438 test -z "$as_dir" && as_dir=.
2439 for ac_exec_ext in '' $ac_executable_extensions; do
2440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2441 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2442 ac_prog_rejected=yes
2446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2453 if test $ac_prog_rejected = yes; then
2454 # We found a bogon in the path, so make sure we never use it.
2455 set dummy $ac_cv_prog_CC
2457 if test $# != 0; then
2458 # We chose a different compiler from the bogus one.
2459 # However, it has the same basename, so the bogon will be chosen
2460 # first if we set CC to just the basename; use the full file name.
2462 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2468 if test -n "$CC"; then
2469 { echo "$as_me:$LINENO: result: $CC" >&5
2470 echo "${ECHO_T}$CC" >&6; }
2472 { echo "$as_me:$LINENO: result: no" >&5
2473 echo "${ECHO_T}no" >&6; }
2478 if test -z "$CC"; then
2479 if test -n "$ac_tool_prefix"; then
2480 for ac_prog in cl.exe
2482 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2483 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2486 if test "${ac_cv_prog_CC+set}" = set; then
2487 echo $ECHO_N "(cached) $ECHO_C" >&6
2489 if test -n "$CC"; then
2490 ac_cv_prog_CC="$CC" # Let the user override the test.
2492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2496 test -z "$as_dir" && as_dir=.
2497 for ac_exec_ext in '' $ac_executable_extensions; do
2498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2499 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2510 if test -n "$CC"; then
2511 { echo "$as_me:$LINENO: result: $CC" >&5
2512 echo "${ECHO_T}$CC" >&6; }
2514 { echo "$as_me:$LINENO: result: no" >&5
2515 echo "${ECHO_T}no" >&6; }
2519 test -n "$CC" && break
2522 if test -z "$CC"; then
2524 for ac_prog in cl.exe
2526 # Extract the first word of "$ac_prog", so it can be a program name with args.
2527 set dummy $ac_prog; ac_word=$2
2528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2530 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2531 echo $ECHO_N "(cached) $ECHO_C" >&6
2533 if test -n "$ac_ct_CC"; then
2534 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540 test -z "$as_dir" && as_dir=.
2541 for ac_exec_ext in '' $ac_executable_extensions; do
2542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2543 ac_cv_prog_ac_ct_CC="$ac_prog"
2544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2553 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2554 if test -n "$ac_ct_CC"; then
2555 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2556 echo "${ECHO_T}$ac_ct_CC" >&6; }
2558 { echo "$as_me:$LINENO: result: no" >&5
2559 echo "${ECHO_T}no" >&6; }
2563 test -n "$ac_ct_CC" && break
2566 if test "x$ac_ct_CC" = x; then
2569 case $cross_compiling:$ac_tool_warned in
2571 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2572 whose name does not start with the host triplet. If you think this
2573 configuration is useful to you, please write to autoconf@gnu.org." >&5
2574 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2575 whose name does not start with the host triplet. If you think this
2576 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2577 ac_tool_warned=yes ;;
2586 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2587 See \`config.log
' for more details." >&5
2588 echo "$as_me: error: no acceptable C compiler found in \$PATH
2589 See \`config.log' for more details.
" >&2;}
2590 { (exit 1); exit 1; }; }
2592 # Provide some information about the compiler.
2593 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2594 ac_compiler=`set X $ac_compile; echo $2`
2595 { (ac_try="$ac_compiler --version >&5"
2597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2598 *) ac_try_echo=$ac_try;;
2600 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2601 (eval "$ac_compiler --version >&5") 2>&5
2603 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2604 (exit $ac_status); }
2605 { (ac_try="$ac_compiler -v >&5"
2607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2608 *) ac_try_echo=$ac_try;;
2610 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2611 (eval "$ac_compiler -v >&5") 2>&5
2613 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2614 (exit $ac_status); }
2615 { (ac_try="$ac_compiler -V >&5"
2617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2618 *) ac_try_echo=$ac_try;;
2620 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2621 (eval "$ac_compiler -V >&5") 2>&5
2623 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2624 (exit $ac_status); }
2626 cat >conftest.$ac_ext <<_ACEOF
2629 cat confdefs.h >>conftest.$ac_ext
2630 cat >>conftest.$ac_ext <<_ACEOF
2631 /* end confdefs.h. */
2641 ac_clean_files_save=$ac_clean_files
2642 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2643 # Try to create an executable without -o first, disregard a.out.
2644 # It will help us diagnose broken compilers, and finding out an intuition
2646 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2647 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2648 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2650 # List of possible output files, starting from the most likely.
2651 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2652 # only as a last resort. b.out is created by i960 compilers.
2653 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2655 # The IRIX 6 linker writes into existing files which may not be
2656 # executable, retaining their permissions. Remove them first so a
2657 # subsequent execution test works.
2659 for ac_file in $ac_files
2662 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2663 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2668 if { (ac_try="$ac_link_default"
2670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2671 *) ac_try_echo=$ac_try;;
2673 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2674 (eval "$ac_link_default") 2>&5
2676 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2677 (exit $ac_status); }; then
2678 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2679 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2680 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2681 # so that the user can short-circuit this test for compilers unknown to
2683 for ac_file in $ac_files ''
2685 test -f "$ac_file" || continue
2687 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2690 # We found the default executable, but exeext='' is most
2694 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2696 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2698 # We set ac_cv_exeext here because the later test for it is not
2699 # safe: cross compilers may not add the suffix if given an `-o'
2700 # argument, so we may need to know it at that point already.
2701 # Even if this section looks crufty: it has the advantage of
2708 test "$ac_cv_exeext" = no && ac_cv_exeext=
2714 { echo "$as_me:$LINENO: result
: $ac_file" >&5
2715 echo "${ECHO_T}$ac_file" >&6; }
2716 if test -z "$ac_file"; then
2717 echo "$as_me: failed program was
:" >&5
2718 sed 's/^/| /' conftest.$ac_ext >&5
2720 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2721 See \
`config.log' for more details." >&5
2722 echo "$as_me: error: C compiler cannot create executables
2723 See \`config.log
' for more details." >&2;}
2724 { (exit 77); exit 77; }; }
2727 ac_exeext=$ac_cv_exeext
2729 # Check that the compiler produces executables we can run. If not, either
2730 # the compiler is broken, or we cross compile.
2731 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2732 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2733 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2734 # If not cross compiling, check that we can run a simple program.
2735 if test "$cross_compiling" != yes; then
2736 if { ac_try='.
/$ac_file'
2737 { (case "(($ac_try" in
2738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2739 *) ac_try_echo=$ac_try;;
2741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2742 (eval "$ac_try") 2>&5
2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745 (exit $ac_status); }; }; then
2748 if test "$cross_compiling" = maybe; then
2751 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2752 If you meant to cross compile, use \`--host'.
2753 See \
`config.log' for more details." >&5
2754 echo "$as_me: error: cannot run C compiled programs.
2755 If you meant to cross compile, use \`--host'.
2756 See \`config.log' for more details.
" >&2;}
2757 { (exit 1); exit 1; }; }
2761 { echo "$as_me:$LINENO: result
: yes" >&5
2762 echo "${ECHO_T}yes" >&6; }
2764 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2765 ac_clean_files=$ac_clean_files_save
2766 # Check that the compiler produces executables we can run. If not, either
2767 # the compiler is broken, or we cross compile.
2768 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2769 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2770 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2771 echo "${ECHO_T}$cross_compiling" >&6; }
2773 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2774 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2775 if { (ac_try="$ac_link"
2777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778 *) ac_try_echo=$ac_try;;
2780 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2781 (eval "$ac_link") 2>&5
2783 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2784 (exit $ac_status); }; then
2785 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2786 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2787 # work properly (i.e., refer to `conftest.exe'), while it won't with
2789 for ac_file in conftest.exe conftest conftest.*; do
2790 test -f "$ac_file" || continue
2792 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2793 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2799 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2800 See \
`config.log' for more details." >&5
2801 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2802 See \`config.log
' for more details." >&2;}
2803 { (exit 1); exit 1; }; }
2806 rm -f conftest$ac_cv_exeext
2807 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2808 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2810 rm -f conftest.$ac_ext
2811 EXEEXT=$ac_cv_exeext
2813 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2814 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2815 if test "${ac_cv_objext+set}" = set; then
2816 echo $ECHO_N "(cached) $ECHO_C" >&6
2818 cat >conftest.$ac_ext <<_ACEOF
2821 cat confdefs.h >>conftest.$ac_ext
2822 cat >>conftest.$ac_ext <<_ACEOF
2823 /* end confdefs.h. */
2833 rm -f conftest.o conftest.obj
2834 if { (ac_try="$ac_compile"
2836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2837 *) ac_try_echo=$ac_try;;
2839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2840 (eval "$ac_compile") 2>&5
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); }; then
2844 for ac_file in conftest.o conftest.obj conftest.*; do
2845 test -f "$ac_file" || continue;
2847 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2848 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2853 echo "$as_me: failed program was:" >&5
2854 sed 's
/^
/|
/' conftest.$ac_ext >&5
2856 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2857 See \`config.log' for more details.
" >&5
2858 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
2859 See \
`config.log' for more details." >&2;}
2860 { (exit 1); exit 1; }; }
2863 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2865 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2866 echo "${ECHO_T}$ac_cv_objext" >&6; }
2867 OBJEXT=$ac_cv_objext
2869 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2870 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2871 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2872 echo $ECHO_N "(cached) $ECHO_C" >&6
2874 cat >conftest.$ac_ext <<_ACEOF
2877 cat confdefs.h >>conftest.$ac_ext
2878 cat >>conftest.$ac_ext <<_ACEOF
2879 /* end confdefs.h. */
2892 rm -f conftest.$ac_objext
2893 if { (ac_try="$ac_compile"
2895 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2896 *) ac_try_echo
=$ac_try;;
2898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2899 (eval "$ac_compile") 2>conftest.er1
2901 grep -v '^ *+' conftest.er1
>conftest.err
2903 cat conftest.err
>&5
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); } && {
2906 test -z "$ac_c_werror_flag" ||
2907 test ! -s conftest.err
2908 } && test -s conftest.
$ac_objext; then
2911 echo "$as_me: failed program was:" >&5
2912 sed 's/^/| /' conftest.
$ac_ext >&5
2917 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2918 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2921 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2922 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2923 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2924 ac_test_CFLAGS
=${CFLAGS+set}
2925 ac_save_CFLAGS
=$CFLAGS
2926 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2927 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2928 if test "${ac_cv_prog_cc_g+set}" = set; then
2929 echo $ECHO_N "(cached) $ECHO_C" >&6
2931 ac_save_c_werror_flag
=$ac_c_werror_flag
2932 ac_c_werror_flag
=yes
2935 cat >conftest.
$ac_ext <<_ACEOF
2938 cat confdefs.h
>>conftest.
$ac_ext
2939 cat >>conftest.
$ac_ext <<_ACEOF
2940 /* end confdefs.h. */
2950 rm -f conftest.
$ac_objext
2951 if { (ac_try
="$ac_compile"
2953 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2954 *) ac_try_echo=$ac_try;;
2956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2957 (eval "$ac_compile") 2>conftest.er1
2959 grep -v '^ *+' conftest.er1 >conftest.err
2961 cat conftest.err >&5
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); } && {
2964 test -z "$ac_c_werror_flag" ||
2965 test ! -s conftest.err
2966 } && test -s conftest.$ac_objext; then
2969 echo "$as_me: failed program was:" >&5
2970 sed 's/^/| /' conftest.$ac_ext >&5
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
3010 ac_c_werror_flag
=$ac_save_c_werror_flag
3012 cat >conftest.
$ac_ext <<_ACEOF
3015 cat confdefs.h
>>conftest.
$ac_ext
3016 cat >>conftest.
$ac_ext <<_ACEOF
3017 /* end confdefs.h. */
3027 rm -f conftest.
$ac_objext
3028 if { (ac_try
="$ac_compile"
3030 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3031 *) ac_try_echo=$ac_try;;
3033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3034 (eval "$ac_compile") 2>conftest.er1
3036 grep -v '^ *+' conftest.er1 >conftest.err
3038 cat conftest.err >&5
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); } && {
3041 test -z "$ac_c_werror_flag" ||
3042 test ! -s conftest.err
3043 } && test -s conftest.$ac_objext; then
3046 echo "$as_me: failed program was:" >&5
3047 sed 's/^/| /' conftest.$ac_ext >&5
3052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3059 ac_c_werror_flag=$ac_save_c_werror_flag
3061 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3062 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3063 if test "$ac_test_CFLAGS" = set; then
3064 CFLAGS=$ac_save_CFLAGS
3065 elif test $ac_cv_prog_cc_g = yes; then
3066 if test "$GCC" = yes; then
3072 if test "$GCC" = yes; then
3078 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3079 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3080 if test "${ac_cv_prog_cc_c89+set}" = set; then
3081 echo $ECHO_N "(cached) $ECHO_C" >&6
3083 ac_cv_prog_cc_c89=no
3085 cat >conftest.$ac_ext <<_ACEOF
3088 cat confdefs.h >>conftest.$ac_ext
3089 cat >>conftest.$ac_ext <<_ACEOF
3090 /* end confdefs.h. */
3093 #include <sys/types.h>
3094 #include <sys/stat.h>
3095 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3096 struct buf { int x; };
3097 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3098 static char *e (p, i)
3104 static char *f (char * (*g) (char **, int), char **p, ...)
3109 s = g (p, va_arg (v,int));
3114 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3115 function prototypes and stuff, but not '\xHH' hex character constants.
3116 These don't provoke an error unfortunately, instead are silently treated
3117 as 'x'. The following induces an error, until -std is added to get
3118 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3119 array size at least. It's necessary to write '\x00'==0 to get something
3120 that's true only with -std. */
3121 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3123 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3124 inside strings and character constants. */
3126 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3128 int test (int i, double x);
3129 struct s1 {int (*f) (int a);};
3130 struct s2 {int (*f) (double a);};
3131 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3137 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3142 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3143 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3145 CC="$ac_save_CC $ac_arg"
3146 rm -f conftest.$ac_objext
3147 if { (ac_try="$ac_compile"
3149 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3150 *) ac_try_echo
=$ac_try;;
3152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3153 (eval "$ac_compile") 2>conftest.er1
3155 grep -v '^ *+' conftest.er1
>conftest.err
3157 cat conftest.err
>&5
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); } && {
3160 test -z "$ac_c_werror_flag" ||
3161 test ! -s conftest.err
3162 } && test -s conftest.
$ac_objext; then
3163 ac_cv_prog_cc_c89
=$ac_arg
3165 echo "$as_me: failed program was:" >&5
3166 sed 's/^/| /' conftest.
$ac_ext >&5
3171 rm -f core conftest.err conftest.
$ac_objext
3172 test "x$ac_cv_prog_cc_c89" != "xno" && break
3174 rm -f conftest.
$ac_ext
3179 case "x$ac_cv_prog_cc_c89" in
3181 { echo "$as_me:$LINENO: result: none needed" >&5
3182 echo "${ECHO_T}none needed" >&6; } ;;
3184 { echo "$as_me:$LINENO: result: unsupported" >&5
3185 echo "${ECHO_T}unsupported" >&6; } ;;
3187 CC
="$CC $ac_cv_prog_cc_c89"
3188 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3189 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3194 ac_cpp
='$CPP $CPPFLAGS'
3195 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3196 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3197 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3202 { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
3203 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; }
3205 # Check whether --with-cxx_main was given.
3206 if test "${with_cxx_main+set}" = set; then
3207 withval
=$with_cxx_main;
3210 no
) with_cxx_main
=no
3212 yes) with_cxx_main
=yes
3214 *) with_cxx_main
=yes
3228 { echo "$as_me:$LINENO: result: $with_cxx_main" >&5
3229 echo "${ECHO_T}$with_cxx_main" >&6; }
3235 gcc
) # Extract the first word of "g++", so it can be a program name with args.
3236 set dummy g
++; ac_word
=$2
3237 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3239 if test "${ac_cv_path_CXX+set}" = set; then
3240 echo $ECHO_N "(cached) $ECHO_C" >&6
3244 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
3247 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3248 for as_dir
in notfound
3251 test -z "$as_dir" && as_dir
=.
3252 for ac_exec_ext
in '' $ac_executable_extensions; do
3253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3254 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
3255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3262 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="g++"
3267 if test -n "$CXX"; then
3268 { echo "$as_me:$LINENO: result: $CXX" >&5
3269 echo "${ECHO_T}$CXX" >&6; }
3271 { echo "$as_me:$LINENO: result: no" >&5
3272 echo "${ECHO_T}no" >&6; }
3276 cc
) # Extract the first word of "c++", so it can be a program name with args.
3277 set dummy c
++; ac_word
=$2
3278 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3280 if test "${ac_cv_path_CXX+set}" = set; then
3281 echo $ECHO_N "(cached) $ECHO_C" >&6
3285 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
3288 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3289 for as_dir
in notfound
3292 test -z "$as_dir" && as_dir
=.
3293 for ac_exec_ext
in '' $ac_executable_extensions; do
3294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3295 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
3296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3303 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="c++"
3308 if test -n "$CXX"; then
3309 { echo "$as_me:$LINENO: result: $CXX" >&5
3310 echo "${ECHO_T}$CXX" >&6; }
3312 { echo "$as_me:$LINENO: result: no" >&5
3313 echo "${ECHO_T}no" >&6; }
3318 if test "$CXX" = "notfound"
3325 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
3327 # Extract the first word of "$ac_prog", so it can be a program name with args.
3328 set dummy
$ac_prog; ac_word
=$2
3329 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3331 if test "${ac_cv_prog_CXX+set}" = set; then
3332 echo $ECHO_N "(cached) $ECHO_C" >&6
3334 if test -n "$CXX"; then
3335 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
3337 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3341 test -z "$as_dir" && as_dir
=.
3342 for ac_exec_ext
in '' $ac_executable_extensions; do
3343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3344 ac_cv_prog_CXX
="$ac_prog"
3345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3355 if test -n "$CXX"; then
3356 { echo "$as_me:$LINENO: result: $CXX" >&5
3357 echo "${ECHO_T}$CXX" >&6; }
3359 { echo "$as_me:$LINENO: result: no" >&5
3360 echo "${ECHO_T}no" >&6; }
3364 test -n "$CXX" && break
3366 test -n "$CXX" || CXX
="notfound"
3368 if test "$CXX" = "notfound"
3373 if test "$preset_cxx" != "$CXX"
3375 { echo "$as_me:$LINENO: WARNING:
3377 By default, distutils will build C++ extension modules with \"$CXX\".
3378 If this is not intended, then set CXX on the configure command line.
3380 echo "$as_me: WARNING:
3382 By default, distutils will build C++ extension modules with \"$CXX\".
3383 If this is not intended, then set CXX on the configure command line.
3388 # checks for UNIX variants that set C preprocessor variables
3391 ac_cpp
='$CPP $CPPFLAGS'
3392 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3393 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3394 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3395 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3396 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3397 # On Suns, sometimes $CPP names a directory.
3398 if test -n "$CPP" && test -d "$CPP"; then
3401 if test -z "$CPP"; then
3402 if test "${ac_cv_prog_CPP+set}" = set; then
3403 echo $ECHO_N "(cached) $ECHO_C" >&6
3405 # Double quotes because CPP needs to be expanded
3406 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3409 for ac_c_preproc_warn_flag
in '' yes
3411 # Use a header file that comes with gcc, so configuring glibc
3412 # with a fresh cross-compiler works.
3413 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3414 # <limits.h> exists even on freestanding compilers.
3415 # On the NeXT, cc -E runs the code through the compiler's parser,
3416 # not just through cpp. "Syntax error" is here to catch this case.
3417 cat >conftest.
$ac_ext <<_ACEOF
3420 cat confdefs.h
>>conftest.
$ac_ext
3421 cat >>conftest.
$ac_ext <<_ACEOF
3422 /* end confdefs.h. */
3424 # include <limits.h>
3426 # include <assert.h>
3430 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3432 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3433 *) ac_try_echo=$ac_try;;
3435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3436 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3438 grep -v '^ *+' conftest.er1 >conftest.err
3440 cat conftest.err >&5
3441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442 (exit $ac_status); } >/dev/null && {
3443 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3444 test ! -s conftest.err
3448 echo "$as_me: failed program was:" >&5
3449 sed 's/^/| /' conftest.$ac_ext >&5
3451 # Broken: fails on valid input.
3455 rm -f conftest.err conftest.$ac_ext
3457 # OK, works on sane cases. Now check whether nonexistent headers
3458 # can be detected and how.
3459 cat >conftest.$ac_ext <<_ACEOF
3462 cat confdefs.h >>conftest.$ac_ext
3463 cat >>conftest.$ac_ext <<_ACEOF
3464 /* end confdefs.h. */
3465 #include <ac_nonexistent.h>
3467 if { (ac_try="$ac_cpp conftest.$ac_ext"
3469 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3470 *) ac_try_echo
=$ac_try;;
3472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3473 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3475 grep -v '^ *+' conftest.er1
>conftest.err
3477 cat conftest.err
>&5
3478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479 (exit $ac_status); } >/dev
/null
&& {
3480 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3481 test ! -s conftest.err
3483 # Broken: success on invalid input.
3486 echo "$as_me: failed program was:" >&5
3487 sed 's/^/| /' conftest.
$ac_ext >&5
3489 # Passes both tests.
3494 rm -f conftest.err conftest.
$ac_ext
3497 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3498 rm -f conftest.err conftest.
$ac_ext
3499 if $ac_preproc_ok; then
3511 { echo "$as_me:$LINENO: result: $CPP" >&5
3512 echo "${ECHO_T}$CPP" >&6; }
3514 for ac_c_preproc_warn_flag
in '' yes
3516 # Use a header file that comes with gcc, so configuring glibc
3517 # with a fresh cross-compiler works.
3518 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3519 # <limits.h> exists even on freestanding compilers.
3520 # On the NeXT, cc -E runs the code through the compiler's parser,
3521 # not just through cpp. "Syntax error" is here to catch this case.
3522 cat >conftest.
$ac_ext <<_ACEOF
3525 cat confdefs.h
>>conftest.
$ac_ext
3526 cat >>conftest.
$ac_ext <<_ACEOF
3527 /* end confdefs.h. */
3529 # include <limits.h>
3531 # include <assert.h>
3535 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3537 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3538 *) ac_try_echo=$ac_try;;
3540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3541 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3543 grep -v '^ *+' conftest.er1 >conftest.err
3545 cat conftest.err >&5
3546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547 (exit $ac_status); } >/dev/null && {
3548 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3549 test ! -s conftest.err
3553 echo "$as_me: failed program was:" >&5
3554 sed 's/^/| /' conftest.$ac_ext >&5
3556 # Broken: fails on valid input.
3560 rm -f conftest.err conftest.$ac_ext
3562 # OK, works on sane cases. Now check whether nonexistent headers
3563 # can be detected and how.
3564 cat >conftest.$ac_ext <<_ACEOF
3567 cat confdefs.h >>conftest.$ac_ext
3568 cat >>conftest.$ac_ext <<_ACEOF
3569 /* end confdefs.h. */
3570 #include <ac_nonexistent.h>
3572 if { (ac_try="$ac_cpp conftest.$ac_ext"
3574 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3575 *) ac_try_echo
=$ac_try;;
3577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3578 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3580 grep -v '^ *+' conftest.er1
>conftest.err
3582 cat conftest.err
>&5
3583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584 (exit $ac_status); } >/dev
/null
&& {
3585 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3586 test ! -s conftest.err
3588 # Broken: success on invalid input.
3591 echo "$as_me: failed program was:" >&5
3592 sed 's/^/| /' conftest.
$ac_ext >&5
3594 # Passes both tests.
3599 rm -f conftest.err conftest.
$ac_ext
3602 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3603 rm -f conftest.err conftest.
$ac_ext
3604 if $ac_preproc_ok; then
3607 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3608 See \`config.log' for more details." >&5
3609 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3610 See \`config.log' for more details." >&2;}
3611 { (exit 1); exit 1; }; }
3615 ac_cpp
='$CPP $CPPFLAGS'
3616 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3617 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3618 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3621 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3622 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3623 if test "${ac_cv_path_GREP+set}" = set; then
3624 echo $ECHO_N "(cached) $ECHO_C" >&6
3626 # Extract the first word of "grep ggrep" to use in msg output
3627 if test -z "$GREP"; then
3628 set dummy
grep ggrep
; ac_prog_name
=$2
3629 if test "${ac_cv_path_GREP+set}" = set; then
3630 echo $ECHO_N "(cached) $ECHO_C" >&6
3632 ac_path_GREP_found
=false
3633 # Loop through the user's path and test for each of PROGNAME-LIST
3634 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3635 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3638 test -z "$as_dir" && as_dir
=.
3639 for ac_prog
in grep ggrep
; do
3640 for ac_exec_ext
in '' $ac_executable_extensions; do
3641 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3642 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3643 # Check for GNU ac_path_GREP and select it if it is found.
3644 # Check for GNU $ac_path_GREP
3645 case `"$ac_path_GREP" --version 2>&1` in
3647 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3650 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3653 cat "conftest.in" "conftest.in" >"conftest.tmp"
3654 mv "conftest.tmp" "conftest.in"
3655 cp "conftest.in" "conftest.nl"
3656 echo 'GREP' >> "conftest.nl"
3657 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3658 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3659 ac_count
=`expr $ac_count + 1`
3660 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3661 # Best one so far, save it but keep looking for a better one
3662 ac_cv_path_GREP
="$ac_path_GREP"
3663 ac_path_GREP_max
=$ac_count
3665 # 10*(2^10) chars as input seems more than enough
3666 test $ac_count -gt 10 && break
3668 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3672 $ac_path_GREP_found && break 3
3682 GREP
="$ac_cv_path_GREP"
3683 if test -z "$GREP"; then
3684 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3685 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3686 { (exit 1); exit 1; }; }
3690 ac_cv_path_GREP
=$GREP
3695 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3696 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3697 GREP
="$ac_cv_path_GREP"
3700 { echo "$as_me:$LINENO: checking for egrep" >&5
3701 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3702 if test "${ac_cv_path_EGREP+set}" = set; then
3703 echo $ECHO_N "(cached) $ECHO_C" >&6
3705 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3706 then ac_cv_path_EGREP
="$GREP -E"
3708 # Extract the first word of "egrep" to use in msg output
3709 if test -z "$EGREP"; then
3710 set dummy
egrep; ac_prog_name
=$2
3711 if test "${ac_cv_path_EGREP+set}" = set; then
3712 echo $ECHO_N "(cached) $ECHO_C" >&6
3714 ac_path_EGREP_found
=false
3715 # Loop through the user's path and test for each of PROGNAME-LIST
3716 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3717 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3720 test -z "$as_dir" && as_dir
=.
3721 for ac_prog
in egrep; do
3722 for ac_exec_ext
in '' $ac_executable_extensions; do
3723 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3724 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3725 # Check for GNU ac_path_EGREP and select it if it is found.
3726 # Check for GNU $ac_path_EGREP
3727 case `"$ac_path_EGREP" --version 2>&1` in
3729 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3732 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3735 cat "conftest.in" "conftest.in" >"conftest.tmp"
3736 mv "conftest.tmp" "conftest.in"
3737 cp "conftest.in" "conftest.nl"
3738 echo 'EGREP' >> "conftest.nl"
3739 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3740 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3741 ac_count
=`expr $ac_count + 1`
3742 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3743 # Best one so far, save it but keep looking for a better one
3744 ac_cv_path_EGREP
="$ac_path_EGREP"
3745 ac_path_EGREP_max
=$ac_count
3747 # 10*(2^10) chars as input seems more than enough
3748 test $ac_count -gt 10 && break
3750 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3754 $ac_path_EGREP_found && break 3
3764 EGREP
="$ac_cv_path_EGREP"
3765 if test -z "$EGREP"; then
3766 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3767 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3768 { (exit 1); exit 1; }; }
3772 ac_cv_path_EGREP
=$EGREP
3778 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3779 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3780 EGREP
="$ac_cv_path_EGREP"
3784 { echo "$as_me:$LINENO: checking for AIX" >&5
3785 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3786 cat >conftest.
$ac_ext <<_ACEOF
3789 cat confdefs.h
>>conftest.
$ac_ext
3790 cat >>conftest.
$ac_ext <<_ACEOF
3791 /* end confdefs.h. */
3797 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3798 $EGREP "yes" >/dev
/null
2>&1; then
3799 { echo "$as_me:$LINENO: result: yes" >&5
3800 echo "${ECHO_T}yes" >&6; }
3801 cat >>confdefs.h
<<\_ACEOF
3802 #define _ALL_SOURCE 1
3806 { echo "$as_me:$LINENO: result: no" >&5
3807 echo "${ECHO_T}no" >&6; }
3813 # Check for unsupported systems
3814 case $ac_sys_system/$ac_sys_release in
3816 echo This system \
($ac_sys_system/$ac_sys_release\
) is no longer supported.
3817 echo See README
for details.
3822 { echo "$as_me:$LINENO: checking for --with-suffix" >&5
3823 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; }
3825 # Check whether --with-suffix was given.
3826 if test "${with_suffix+set}" = set; then
3827 withval
=$with_suffix;
3831 *) EXEEXT
=$withval;;
3835 { echo "$as_me:$LINENO: result: $EXEEXT" >&5
3836 echo "${ECHO_T}$EXEEXT" >&6; }
3838 # Test whether we're running on a non-case-sensitive system, in which
3839 # case we give a warning if no ext is given
3841 { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3842 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; }
3843 if test ! -d CaseSensitiveTestDir
; then
3844 mkdir CaseSensitiveTestDir
3847 if test -d casesensitivetestdir
3849 { echo "$as_me:$LINENO: result: yes" >&5
3850 echo "${ECHO_T}yes" >&6; }
3853 { echo "$as_me:$LINENO: result: no" >&5
3854 echo "${ECHO_T}no" >&6; }
3857 rmdir CaseSensitiveTestDir
3862 gcc
) CC
="$CC -D_HAVE_BSDI";;
3866 case $ac_sys_system in
3869 cc|
*/cc
) CC
="$CC -Ae";;
3873 cc
) CC
="$CC -Wl,-Bexport";;
3876 # Some functions have a prototype only with that define, e.g. confstr
3878 cat >>confdefs.h
<<\_ACEOF
3879 #define __EXTENSIONS__ 1
3887 { echo "$as_me:$LINENO: checking LIBRARY" >&5
3888 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; }
3889 if test -z "$LIBRARY"
3891 LIBRARY
='libpython$(VERSION).a'
3893 { echo "$as_me:$LINENO: result: $LIBRARY" >&5
3894 echo "${ECHO_T}$LIBRARY" >&6; }
3896 # LDLIBRARY is the name of the library to link against (as opposed to the
3897 # name of the library into which to insert object files). BLDLIBRARY is also
3898 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3899 # is blank as the main program is not linked directly against LDLIBRARY.
3900 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3901 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3902 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3903 # DLLLIBRARY is the shared (i.e., DLL) library.
3905 # RUNSHARED is used to run shared python without installed libraries
3907 # INSTSONAME is the name of the shared library that will be use to install
3908 # on the system - some systems like version suffix, others don't
3915 LDLIBRARY
="$LIBRARY"
3916 BLDLIBRARY
='$(LDLIBRARY)'
3917 INSTSONAME
='$(LDLIBRARY)'
3922 # LINKCC is the command that links the python executable -- default is $(CC).
3923 # If CXX is set, and if it is needed to link a main function that was
3924 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3925 # python might then depend on the C++ runtime
3926 # This is altered for AIX in order to build the export list before
3929 { echo "$as_me:$LINENO: checking LINKCC" >&5
3930 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; }
3931 if test -z "$LINKCC"
3933 LINKCC
='$(PURIFY) $(MAINCC)'
3934 case $ac_sys_system in
3937 if test $ac_sys_release -ge 5 -o \
3938 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3941 LINKCC
="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3943 LINKCC
="$LINKCC -L/usr/lib/ia64l64";;
3945 # qcc must be used because the other compilers do not
3950 { echo "$as_me:$LINENO: result: $LINKCC" >&5
3951 echo "${ECHO_T}$LINKCC" >&6; }
3953 # GNULD is set to "yes" if the GNU linker is used. If this goes wrong
3954 # make sure we default having it set to "no": this is used by
3955 # distutils.unixccompiler to know if it should add --enable-new-dtags
3956 # to linker command lines, and failing to detect GNU ld simply results
3957 # in the same bahaviour as before.
3959 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3960 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3962 if test "$GCC" = yes; then
3963 ac_prog
=`$CC -print-prog-name=ld`
3965 case `"$ac_prog" -V 2>&1 < /dev/null` in
3971 { echo "$as_me:$LINENO: result: $GNULD" >&5
3972 echo "${ECHO_T}$GNULD" >&6; }
3974 { echo "$as_me:$LINENO: checking for --enable-shared" >&5
3975 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; }
3976 # Check whether --enable-shared was given.
3977 if test "${enable_shared+set}" = set; then
3978 enableval
=$enable_shared;
3982 if test -z "$enable_shared"
3984 case $ac_sys_system in
3986 enable_shared
="yes";;
3988 enable_shared
="no";;
3991 { echo "$as_me:$LINENO: result: $enable_shared" >&5
3992 echo "${ECHO_T}$enable_shared" >&6; }
3994 { echo "$as_me:$LINENO: checking for --enable-profiling" >&5
3995 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; }
3996 # Check whether --enable-profiling was given.
3997 if test "${enable_profiling+set}" = set; then
3998 enableval
=$enable_profiling; ac_save_cc
="$CC"
4000 if test "$cross_compiling" = yes; then
4001 ac_enable_profiling
="no"
4003 cat >conftest.
$ac_ext <<_ACEOF
4006 cat confdefs.h
>>conftest.
$ac_ext
4007 cat >>conftest.
$ac_ext <<_ACEOF
4008 /* end confdefs.h. */
4009 int main() { return 0; }
4011 rm -f conftest
$ac_exeext
4012 if { (ac_try
="$ac_link"
4014 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4015 *) ac_try_echo=$ac_try;;
4017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4018 (eval "$ac_link") 2>&5
4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4022 { (case "(($ac_try" in
4023 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4024 *) ac_try_echo
=$ac_try;;
4026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4027 (eval "$ac_try") 2>&5
4029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030 (exit $ac_status); }; }; then
4031 ac_enable_profiling
="yes"
4033 echo "$as_me: program exited with status $ac_status" >&5
4034 echo "$as_me: failed program was:" >&5
4035 sed 's/^/| /' conftest.
$ac_ext >&5
4038 ac_enable_profiling
="no"
4040 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4047 { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
4048 echo "${ECHO_T}$ac_enable_profiling" >&6; }
4050 case "$ac_enable_profiling" in
4052 BASECFLAGS
="-pg $BASECFLAGS"
4053 LDFLAGS
="-pg $LDFLAGS"
4057 { echo "$as_me:$LINENO: checking LDLIBRARY" >&5
4058 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; }
4060 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
4061 # library that we build, but we do not want to link against it (we
4062 # will find it with a -framework option). For this reason there is an
4063 # extra variable BLDLIBRARY against which Python and the extension
4064 # modules are linked, BLDLIBRARY. This is normally the same as
4065 # LDLIBRARY, but empty for MacOSX framework builds.
4066 if test "$enable_framework"
4068 LDLIBRARY
='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
4069 RUNSHARED
=DYLD_FRAMEWORK_PATH
="`pwd`:$DYLD_FRAMEWORK_PATH"
4072 BLDLIBRARY
='$(LDLIBRARY)'
4075 # Other platforms follow
4076 if test $enable_shared = "yes"; then
4078 cat >>confdefs.h
<<\_ACEOF
4079 #define Py_ENABLE_SHARED 1
4082 case $ac_sys_system in
4084 LDLIBRARY
='libpython$(VERSION).dll.a'
4085 DLLLIBRARY
='libpython$(VERSION).dll'
4088 LDLIBRARY
='libpython$(VERSION).so'
4089 BLDLIBRARY
='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
4090 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4091 INSTSONAME
="$LDLIBRARY".
$SOVERSION
4093 Linux
*|GNU
*|NetBSD
*|FreeBSD
*|DragonFly
*)
4094 LDLIBRARY
='libpython$(VERSION).so'
4095 BLDLIBRARY
='-L. -lpython$(VERSION)'
4096 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4097 case $ac_sys_system in
4099 SOVERSION
=`echo $SOVERSION|cut -d "." -f 1`
4102 INSTSONAME
="$LDLIBRARY".
$SOVERSION
4107 LDLIBRARY
='libpython$(VERSION).so'
4110 LDLIBRARY
='libpython$(VERSION).sl'
4113 BLDLIBRARY
='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
4114 RUNSHARED
=SHLIB_PATH
=`pwd`:${SHLIB_PATH}
4117 LDLIBRARY
='libpython$(VERSION).so'
4118 BLDLIBRARY
='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
4119 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4122 LDLIBRARY
='libpython$(VERSION).so'
4123 BLDLIBRARY
='-L. -lpython$(VERSION)'
4124 RUNSHARED
=DLL_PATH
=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
4127 LDLIBRARY
='libpython$(VERSION).dylib'
4128 BLDLIBRARY
='-L. -lpython$(VERSION)'
4129 RUNSHARED
='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}'
4133 else # shared is disabled
4134 case $ac_sys_system in
4136 BLDLIBRARY
='$(LIBRARY)'
4137 LDLIBRARY
='libpython$(VERSION).dll.a'
4142 { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
4143 echo "${ECHO_T}$LDLIBRARY" >&6; }
4145 if test -n "$ac_tool_prefix"; then
4146 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4147 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4148 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4150 if test "${ac_cv_prog_RANLIB+set}" = set; then
4151 echo $ECHO_N "(cached) $ECHO_C" >&6
4153 if test -n "$RANLIB"; then
4154 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4156 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4160 test -z "$as_dir" && as_dir
=.
4161 for ac_exec_ext
in '' $ac_executable_extensions; do
4162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4163 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4173 RANLIB
=$ac_cv_prog_RANLIB
4174 if test -n "$RANLIB"; then
4175 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4176 echo "${ECHO_T}$RANLIB" >&6; }
4178 { echo "$as_me:$LINENO: result: no" >&5
4179 echo "${ECHO_T}no" >&6; }
4184 if test -z "$ac_cv_prog_RANLIB"; then
4185 ac_ct_RANLIB
=$RANLIB
4186 # Extract the first word of "ranlib", so it can be a program name with args.
4187 set dummy ranlib
; ac_word
=$2
4188 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4190 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4191 echo $ECHO_N "(cached) $ECHO_C" >&6
4193 if test -n "$ac_ct_RANLIB"; then
4194 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4196 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4200 test -z "$as_dir" && as_dir
=.
4201 for ac_exec_ext
in '' $ac_executable_extensions; do
4202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4203 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4213 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4214 if test -n "$ac_ct_RANLIB"; then
4215 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4216 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4218 { echo "$as_me:$LINENO: result: no" >&5
4219 echo "${ECHO_T}no" >&6; }
4222 if test "x$ac_ct_RANLIB" = x
; then
4225 case $cross_compiling:$ac_tool_warned in
4227 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4228 whose name does not start with the host triplet. If you think this
4229 configuration is useful to you, please write to autoconf@gnu.org." >&5
4230 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4231 whose name does not start with the host triplet. If you think this
4232 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4233 ac_tool_warned
=yes ;;
4235 RANLIB
=$ac_ct_RANLIB
4238 RANLIB
="$ac_cv_prog_RANLIB"
4242 for ac_prog
in ar aal
4244 # Extract the first word of "$ac_prog", so it can be a program name with args.
4245 set dummy
$ac_prog; ac_word
=$2
4246 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4248 if test "${ac_cv_prog_AR+set}" = set; then
4249 echo $ECHO_N "(cached) $ECHO_C" >&6
4251 if test -n "$AR"; then
4252 ac_cv_prog_AR
="$AR" # Let the user override the test.
4254 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4258 test -z "$as_dir" && as_dir
=.
4259 for ac_exec_ext
in '' $ac_executable_extensions; do
4260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4261 ac_cv_prog_AR
="$ac_prog"
4262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4272 if test -n "$AR"; then
4273 { echo "$as_me:$LINENO: result: $AR" >&5
4274 echo "${ECHO_T}$AR" >&6; }
4276 { echo "$as_me:$LINENO: result: no" >&5
4277 echo "${ECHO_T}no" >&6; }
4281 test -n "$AR" && break
4283 test -n "$AR" || AR
="ar"
4286 # tweak ARFLAGS only if the user didn't set it on the command line
4288 if test -z "$ARFLAGS"
4294 # Extract the first word of "svnversion", so it can be a program name with args.
4295 set dummy svnversion
; ac_word
=$2
4296 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4298 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
4299 echo $ECHO_N "(cached) $ECHO_C" >&6
4301 if test -n "$SVNVERSION"; then
4302 ac_cv_prog_SVNVERSION
="$SVNVERSION" # Let the user override the test.
4304 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4308 test -z "$as_dir" && as_dir
=.
4309 for ac_exec_ext
in '' $ac_executable_extensions; do
4310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4311 ac_cv_prog_SVNVERSION
="found"
4312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4319 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION
="not-found"
4322 SVNVERSION
=$ac_cv_prog_SVNVERSION
4323 if test -n "$SVNVERSION"; then
4324 { echo "$as_me:$LINENO: result: $SVNVERSION" >&5
4325 echo "${ECHO_T}$SVNVERSION" >&6; }
4327 { echo "$as_me:$LINENO: result: no" >&5
4328 echo "${ECHO_T}no" >&6; }
4332 if test $SVNVERSION = found
4334 SVNVERSION
="svnversion \$(srcdir)"
4336 SVNVERSION
="echo Unversioned directory"
4341 # install -d does not work on BSDI or HP-UX
4342 if test -z "$INSTALL"
4344 INSTALL
="${srcdir}/install-sh -c"
4348 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4349 if test -f "$ac_dir/install-sh"; then
4351 ac_install_sh
="$ac_aux_dir/install-sh -c"
4353 elif test -f "$ac_dir/install.sh"; then
4355 ac_install_sh
="$ac_aux_dir/install.sh -c"
4357 elif test -f "$ac_dir/shtool"; then
4359 ac_install_sh
="$ac_aux_dir/shtool install -c"
4363 if test -z "$ac_aux_dir"; then
4364 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4365 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4366 { (exit 1); exit 1; }; }
4369 # These three variables are undocumented and unsupported,
4370 # and are intended to be withdrawn in a future Autoconf release.
4371 # They can cause serious problems if a builder's source tree is in a directory
4372 # whose full name contains unusual characters.
4373 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4374 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4375 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4378 # Find a good install program. We prefer a C program (faster),
4379 # so one script is as good as another. But avoid the broken or
4380 # incompatible versions:
4381 # SysV /etc/install, /usr/sbin/install
4382 # SunOS /usr/etc/install
4383 # IRIX /sbin/install
4385 # AmigaOS /C/install, which installs bootblocks on floppy discs
4386 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4387 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4388 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4389 # OS/2's system install, which has a completely different semantic
4390 # ./install, which can be erroneously created by make from ./install.sh.
4391 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4392 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4393 if test -z "$INSTALL"; then
4394 if test "${ac_cv_path_install+set}" = set; then
4395 echo $ECHO_N "(cached) $ECHO_C" >&6
4397 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4401 test -z "$as_dir" && as_dir
=.
4402 # Account for people who put trailing slashes in PATH elements.
4404 .
/ | .
// |
/cC
/* | \
4405 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4406 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4409 # OSF1 and SCO ODT 3.0 have their own names for install.
4410 # Don't use installbsd from OSF since it installs stuff as root
4412 for ac_prog
in ginstall scoinst
install; do
4413 for ac_exec_ext
in '' $ac_executable_extensions; do
4414 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4415 if test $ac_prog = install &&
4416 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4417 # AIX install. It has an incompatible calling convention.
4419 elif test $ac_prog = install &&
4420 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4421 # program-specific install script used by HP pwplus--don't use.
4424 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4437 if test "${ac_cv_path_install+set}" = set; then
4438 INSTALL
=$ac_cv_path_install
4440 # As a last resort, use the slow shell script. Don't cache a
4441 # value for INSTALL within a source directory, because that will
4442 # break other packages using the cache if that directory is
4443 # removed, or if the value is a relative name.
4444 INSTALL
=$ac_install_sh
4447 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4448 echo "${ECHO_T}$INSTALL" >&6; }
4450 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4451 # It thinks the first close brace ends the variable substitution.
4452 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4454 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4456 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4459 # Not every filesystem supports hard links
4461 if test -z "$LN" ; then
4462 case $ac_sys_system in
4463 CYGWIN
*) LN
="ln -s";;
4464 atheos
*) LN
="ln -s";;
4469 # Check for --with-pydebug
4470 { echo "$as_me:$LINENO: checking for --with-pydebug" >&5
4471 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; }
4473 # Check whether --with-pydebug was given.
4474 if test "${with_pydebug+set}" = set; then
4475 withval
=$with_pydebug;
4476 if test "$withval" != no
4479 cat >>confdefs.h
<<\_ACEOF
4483 { echo "$as_me:$LINENO: result: yes" >&5
4484 echo "${ECHO_T}yes" >&6; };
4486 else { echo "$as_me:$LINENO: result: no" >&5
4487 echo "${ECHO_T}no" >&6; }; Py_DEBUG
='false'
4490 { echo "$as_me:$LINENO: result: no" >&5
4491 echo "${ECHO_T}no" >&6; }
4495 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
4496 # merged with this chunk of code?
4498 # Optimizer/debugger flags
4499 # ------------------------
4500 # (The following bit of code is complicated enough - please keep things
4501 # indented properly. Just pretend you're editing Python code. ;-)
4503 # There are two parallel sets of case statements below, one that checks to
4504 # see if OPT was set and one that does BASECFLAGS setting based upon
4505 # compiler and platform. BASECFLAGS tweaks need to be made even if the
4508 # tweak OPT based on compiler and platform, only if the user didn't set
4509 # it on the command line
4515 if test "$CC" != 'g++' ; then
4516 STRICT_PROTO
="-Wstrict-prototypes"
4518 # For gcc 4.x we need to use -fwrapv so lets check if its supported
4519 if "$CC" -v --help 2>/dev
/null |
grep -- -fwrapv > /dev
/null
; then
4522 case $ac_cv_prog_cc_g in
4524 if test "$Py_DEBUG" = 'true' ; then
4525 # Optimization messes up debuggers, so turn it off for
4527 OPT
="-g -Wall $STRICT_PROTO"
4529 OPT
="-g $WRAP -O3 -Wall $STRICT_PROTO"
4533 OPT
="-O3 -Wall $STRICT_PROTO"
4536 case $ac_sys_system in
4537 SCO_SV
*) OPT
="$OPT -m486 -DSCO5"
4547 # The current (beta) Monterey compiler dies with optimizations
4548 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
4549 case $ac_sys_system in
4559 # The -arch flags for universal builds on OSX
4560 UNIVERSAL_ARCH_FLAGS
=
4563 # tweak BASECFLAGS based on compiler and platform
4566 # Python violates C99 rules, by casting between incompatible
4567 # pointer types. GCC may generate bad code as a result of that,
4568 # so use -fno-strict-aliasing if supported.
4569 { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
4570 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; }
4572 CC
="$CC -fno-strict-aliasing"
4573 if test "$cross_compiling" = yes; then
4574 ac_cv_no_strict_aliasing_ok
=no
4576 cat >conftest.
$ac_ext <<_ACEOF
4579 cat confdefs.h
>>conftest.
$ac_ext
4580 cat >>conftest.
$ac_ext <<_ACEOF
4581 /* end confdefs.h. */
4582 int main() { return 0; }
4584 rm -f conftest
$ac_exeext
4585 if { (ac_try
="$ac_link"
4587 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4588 *) ac_try_echo=$ac_try;;
4590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4591 (eval "$ac_link") 2>&5
4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4595 { (case "(($ac_try" in
4596 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4597 *) ac_try_echo
=$ac_try;;
4599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4600 (eval "$ac_try") 2>&5
4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); }; }; then
4604 ac_cv_no_strict_aliasing_ok
=yes
4606 echo "$as_me: program exited with status $ac_status" >&5
4607 echo "$as_me: failed program was:" >&5
4608 sed 's/^/| /' conftest.
$ac_ext >&5
4611 ac_cv_no_strict_aliasing_ok
=no
4613 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4618 { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
4619 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; }
4620 if test $ac_cv_no_strict_aliasing_ok = yes
4622 BASECFLAGS
="$BASECFLAGS -fno-strict-aliasing"
4625 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
4626 # support. Without this, treatment of subnormals doesn't follow
4628 case $ac_sys_machine in
4630 BASECFLAGS
="$BASECFLAGS -mieee"
4634 case $ac_sys_system in
4636 BASECFLAGS
="$BASECFLAGS -m486 -DSCO5"
4638 # is there any other compiler on Darwin besides gcc?
4640 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
4641 # used to be here, but non-Apple gcc doesn't accept them.
4644 if test "${enable_universalsdk}"; then
4645 UNIVERSAL_ARCH_FLAGS
=""
4646 if test "$UNIVERSAL_ARCHS" = "32-bit" ; then
4647 UNIVERSAL_ARCH_FLAGS
="-arch ppc -arch i386"
4650 elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then
4651 UNIVERSAL_ARCH_FLAGS
="-arch ppc64 -arch x86_64"
4653 elif test "$UNIVERSAL_ARCHS" = "all" ; then
4654 UNIVERSAL_ARCH_FLAGS
="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
4655 ARCH_RUN_32BIT
="arch -i386 -ppc"
4658 { { echo "$as_me:$LINENO: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&5
4659 echo "$as_me: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&2;}
4660 { (exit 1); exit 1; }; }
4665 BASECFLAGS
="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
4666 tgt
=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4667 if test "${UNIVERSALSDK}" != "/" -a "${tgt}" '>' '10.4' ; then
4668 CFLAGS
="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
4672 # Calculate the right deployment target for this build.
4674 cur_target
=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4675 if test ${cur_target} '>' 10.2; then
4678 if test "${UNIVERSAL_ARCHS}" = "all"; then
4679 # Ensure that the default platform for a 4-way
4680 # universal build is OSX 10.5, that's the first
4681 # OS release where 4-way builds make sense.
4684 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
4686 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
4687 # environment with a value that is the same as what we'll use
4688 # in the Makefile to ensure that we'll get the same compiler
4689 # environment during configure and build time.
4690 MACOSX_DEPLOYMENT_TARGET
="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
4691 export MACOSX_DEPLOYMENT_TARGET
4692 EXPORT_MACOSX_DEPLOYMENT_TARGET
=''
4696 BASECFLAGS
="$BASECFLAGS -mieee"
4702 case $ac_sys_system in
4703 OpenUNIX
*|UnixWare
*)
4704 BASECFLAGS
="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
4707 BASECFLAGS
="$BASECFLAGS -ieee -std"
4710 BASECFLAGS
="$BASECFLAGS -belf -Ki486 -DSCO5"
4716 if test "$Py_DEBUG" = 'true'; then
4722 if test "$ac_arch_flags"
4724 BASECFLAGS
="$BASECFLAGS $ac_arch_flags"
4727 # disable check for icc since it seems to pass, but generates a warning
4730 ac_cv_opt_olimit_ok
=no
4733 { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
4734 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; }
4735 if test "${ac_cv_opt_olimit_ok+set}" = set; then
4736 echo $ECHO_N "(cached) $ECHO_C" >&6
4739 CC
="$CC -OPT:Olimit=0"
4740 if test "$cross_compiling" = yes; then
4741 ac_cv_opt_olimit_ok
=no
4743 cat >conftest.
$ac_ext <<_ACEOF
4746 cat confdefs.h
>>conftest.
$ac_ext
4747 cat >>conftest.
$ac_ext <<_ACEOF
4748 /* end confdefs.h. */
4749 int main() { return 0; }
4751 rm -f conftest
$ac_exeext
4752 if { (ac_try
="$ac_link"
4754 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4755 *) ac_try_echo=$ac_try;;
4757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4758 (eval "$ac_link") 2>&5
4760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4762 { (case "(($ac_try" in
4763 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4764 *) ac_try_echo
=$ac_try;;
4766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4767 (eval "$ac_try") 2>&5
4769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770 (exit $ac_status); }; }; then
4771 ac_cv_opt_olimit_ok
=yes
4773 echo "$as_me: program exited with status $ac_status" >&5
4774 echo "$as_me: failed program was:" >&5
4775 sed 's/^/| /' conftest.
$ac_ext >&5
4778 ac_cv_opt_olimit_ok
=no
4780 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4787 { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
4788 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; }
4789 if test $ac_cv_opt_olimit_ok = yes; then
4790 case $ac_sys_system in
4791 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
4792 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
4797 BASECFLAGS
="$BASECFLAGS -OPT:Olimit=0"
4801 { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
4802 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; }
4803 if test "${ac_cv_olimit_ok+set}" = set; then
4804 echo $ECHO_N "(cached) $ECHO_C" >&6
4807 CC
="$CC -Olimit 1500"
4808 if test "$cross_compiling" = yes; then
4811 cat >conftest.
$ac_ext <<_ACEOF
4814 cat confdefs.h
>>conftest.
$ac_ext
4815 cat >>conftest.
$ac_ext <<_ACEOF
4816 /* end confdefs.h. */
4817 int main() { return 0; }
4819 rm -f conftest
$ac_exeext
4820 if { (ac_try
="$ac_link"
4822 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4823 *) ac_try_echo=$ac_try;;
4825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4826 (eval "$ac_link") 2>&5
4828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4830 { (case "(($ac_try" in
4831 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4832 *) ac_try_echo
=$ac_try;;
4834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4835 (eval "$ac_try") 2>&5
4837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838 (exit $ac_status); }; }; then
4841 echo "$as_me: program exited with status $ac_status" >&5
4842 echo "$as_me: failed program was:" >&5
4843 sed 's/^/| /' conftest.
$ac_ext >&5
4848 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4855 { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4856 echo "${ECHO_T}$ac_cv_olimit_ok" >&6; }
4857 if test $ac_cv_olimit_ok = yes; then
4858 BASECFLAGS
="$BASECFLAGS -Olimit 1500"
4862 # Check whether GCC supports PyArg_ParseTuple format
4863 if test "$GCC" = "yes"
4865 { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
4866 echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; }
4868 CFLAGS
="$CFLAGS -Werror"
4869 cat >conftest.
$ac_ext <<_ACEOF
4872 cat confdefs.h
>>conftest.
$ac_ext
4873 cat >>conftest.
$ac_ext <<_ACEOF
4874 /* end confdefs.h. */
4876 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
4886 rm -f conftest.
$ac_objext
4887 if { (ac_try
="$ac_compile"
4889 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4890 *) ac_try_echo=$ac_try;;
4892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4893 (eval "$ac_compile") 2>conftest.er1
4895 grep -v '^ *+' conftest.er1 >conftest.err
4897 cat conftest.err >&5
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); } && {
4900 test -z "$ac_c_werror_flag" ||
4901 test ! -s conftest.err
4902 } && test -s conftest.$ac_objext; then
4904 cat >>confdefs.h <<\_ACEOF
4905 #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
4908 { echo "$as_me:$LINENO: result: yes" >&5
4909 echo "${ECHO_T}yes" >&6; }
4911 echo "$as_me: failed program was:" >&5
4912 sed 's/^/| /' conftest.$ac_ext >&5
4914 { echo "$as_me:$LINENO: result: no" >&5
4915 echo "${ECHO_T}no" >&6; }
4919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4923 # On some compilers, pthreads are available without further options
4924 # (e.g. MacOS X). On some of these systems, the compiler will not
4925 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4926 # So we have to see first whether pthreads are available without
4927 # options before we can check whether -Kpthread improves anything.
4928 { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4929 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; }
4930 if test "${ac_cv_pthread_is_default+set}" = set; then
4931 echo $ECHO_N "(cached) $ECHO_C" >&6
4933 if test "$cross_compiling" = yes; then
4934 ac_cv_pthread_is_default=no
4936 cat >conftest.$ac_ext <<_ACEOF
4939 cat confdefs.h >>conftest.$ac_ext
4940 cat >>conftest.$ac_ext <<_ACEOF
4941 /* end confdefs.h. */
4943 #include <pthread.h>
4945 void* routine(void* p){return NULL;}
4949 if(pthread_create(&p,NULL,routine,NULL)!=0)
4951 (void)pthread_detach(p);
4956 rm -f conftest$ac_exeext
4957 if { (ac_try="$ac_link"
4959 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4960 *) ac_try_echo
=$ac_try;;
4962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4963 (eval "$ac_link") 2>&5
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4967 { (case "(($ac_try" in
4968 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4969 *) ac_try_echo=$ac_try;;
4971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4972 (eval "$ac_try") 2>&5
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); }; }; then
4977 ac_cv_pthread_is_default=yes
4982 echo "$as_me: program exited with status $ac_status" >&5
4983 echo "$as_me: failed program was:" >&5
4984 sed 's/^/| /' conftest.$ac_ext >&5
4987 ac_cv_pthread_is_default=no
4989 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4996 { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
4997 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; }
5000 if test $ac_cv_pthread_is_default = yes
5004 # -Kpthread, if available, provides the right #defines
5005 # and linker options to make pthread_create available
5006 # Some compilers won't report that they do not support -Kpthread,
5007 # so we need to run a program to see whether it really made the
5008 # function available.
5009 { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
5010 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; }
5011 if test "${ac_cv_kpthread+set}" = set; then
5012 echo $ECHO_N "(cached) $ECHO_C" >&6
5016 if test "$cross_compiling" = yes; then
5019 cat >conftest.$ac_ext <<_ACEOF
5022 cat confdefs.h >>conftest.$ac_ext
5023 cat >>conftest.$ac_ext <<_ACEOF
5024 /* end confdefs.h. */
5026 #include <pthread.h>
5028 void* routine(void* p){return NULL;}
5032 if(pthread_create(&p,NULL,routine,NULL)!=0)
5034 (void)pthread_detach(p);
5039 rm -f conftest$ac_exeext
5040 if { (ac_try="$ac_link"
5042 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5043 *) ac_try_echo
=$ac_try;;
5045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5046 (eval "$ac_link") 2>&5
5048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5050 { (case "(($ac_try" in
5051 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5052 *) ac_try_echo=$ac_try;;
5054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5055 (eval "$ac_try") 2>&5
5057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058 (exit $ac_status); }; }; then
5061 echo "$as_me: program exited with status $ac_status" >&5
5062 echo "$as_me: failed program was:" >&5
5063 sed 's/^/| /' conftest.$ac_ext >&5
5068 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5075 { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
5076 echo "${ECHO_T}$ac_cv_kpthread" >&6; }
5079 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
5081 # -Kthread, if available, provides the right #defines
5082 # and linker options to make pthread_create available
5083 # Some compilers won't report that they do not support -Kthread,
5084 # so we need to run a program to see whether it really made the
5085 # function available.
5086 { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
5087 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; }
5088 if test "${ac_cv_kthread+set}" = set; then
5089 echo $ECHO_N "(cached) $ECHO_C" >&6
5093 if test "$cross_compiling" = yes; then
5096 cat >conftest.$ac_ext <<_ACEOF
5099 cat confdefs.h >>conftest.$ac_ext
5100 cat >>conftest.$ac_ext <<_ACEOF
5101 /* end confdefs.h. */
5103 #include <pthread.h>
5105 void* routine(void* p){return NULL;}
5109 if(pthread_create(&p,NULL,routine,NULL)!=0)
5111 (void)pthread_detach(p);
5116 rm -f conftest$ac_exeext
5117 if { (ac_try="$ac_link"
5119 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5120 *) ac_try_echo
=$ac_try;;
5122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5123 (eval "$ac_link") 2>&5
5125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5127 { (case "(($ac_try" in
5128 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5129 *) ac_try_echo=$ac_try;;
5131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5132 (eval "$ac_try") 2>&5
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); }; }; then
5138 echo "$as_me: program exited with status $ac_status" >&5
5139 echo "$as_me: failed program was:" >&5
5140 sed 's/^/| /' conftest.$ac_ext >&5
5145 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5152 { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
5153 echo "${ECHO_T}$ac_cv_kthread" >&6; }
5156 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
5158 # -pthread, if available, provides the right #defines
5159 # and linker options to make pthread_create available
5160 # Some compilers won't report that they do not support -pthread,
5161 # so we need to run a program to see whether it really made the
5162 # function available.
5163 { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
5164 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; }
5165 if test "${ac_cv_thread+set}" = set; then
5166 echo $ECHO_N "(cached) $ECHO_C" >&6
5170 if test "$cross_compiling" = yes; then
5173 cat >conftest.$ac_ext <<_ACEOF
5176 cat confdefs.h >>conftest.$ac_ext
5177 cat >>conftest.$ac_ext <<_ACEOF
5178 /* end confdefs.h. */
5180 #include <pthread.h>
5182 void* routine(void* p){return NULL;}
5186 if(pthread_create(&p,NULL,routine,NULL)!=0)
5188 (void)pthread_detach(p);
5193 rm -f conftest$ac_exeext
5194 if { (ac_try="$ac_link"
5196 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5197 *) ac_try_echo
=$ac_try;;
5199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5200 (eval "$ac_link") 2>&5
5202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5204 { (case "(($ac_try" in
5205 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5206 *) ac_try_echo=$ac_try;;
5208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5209 (eval "$ac_try") 2>&5
5211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212 (exit $ac_status); }; }; then
5215 echo "$as_me: program exited with status $ac_status" >&5
5216 echo "$as_me: failed program was:" >&5
5217 sed 's/^/| /' conftest.$ac_ext >&5
5222 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5229 { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
5230 echo "${ECHO_T}$ac_cv_pthread" >&6; }
5233 # If we have set a CC compiler flag for thread support then
5234 # check if it works for CXX, too.
5238 { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
5239 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; }
5242 if test "$ac_cv_kpthread" = "yes"
5244 CXX="$CXX -Kpthread"
5245 ac_cv_cxx_thread=yes
5246 elif test "$ac_cv_kthread" = "yes"
5249 ac_cv_cxx_thread=yes
5250 elif test "$ac_cv_pthread" = "yes"
5253 ac_cv_cxx_thread=yes
5256 if test $ac_cv_cxx_thread = yes
5258 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
5259 $CXX -c conftest.$ac_ext 2>&5
5260 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
5261 && test -s conftest$ac_exeext && ./conftest$ac_exeext
5263 ac_cv_cxx_thread=yes
5269 { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
5270 echo "${ECHO_T}$ac_cv_cxx_thread" >&6; }
5275 # checks for header files
5276 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5277 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5278 if test "${ac_cv_header_stdc+set}" = set; then
5279 echo $ECHO_N "(cached) $ECHO_C" >&6
5281 cat >conftest.$ac_ext <<_ACEOF
5284 cat confdefs.h >>conftest.$ac_ext
5285 cat >>conftest.$ac_ext <<_ACEOF
5286 /* end confdefs.h. */
5300 rm -f conftest.$ac_objext
5301 if { (ac_try="$ac_compile"
5303 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5304 *) ac_try_echo
=$ac_try;;
5306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5307 (eval "$ac_compile") 2>conftest.er1
5309 grep -v '^ *+' conftest.er1
>conftest.err
5311 cat conftest.err
>&5
5312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); } && {
5314 test -z "$ac_c_werror_flag" ||
5315 test ! -s conftest.err
5316 } && test -s conftest.
$ac_objext; then
5317 ac_cv_header_stdc
=yes
5319 echo "$as_me: failed program was:" >&5
5320 sed 's/^/| /' conftest.
$ac_ext >&5
5322 ac_cv_header_stdc
=no
5325 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5327 if test $ac_cv_header_stdc = yes; then
5328 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5329 cat >conftest.
$ac_ext <<_ACEOF
5332 cat confdefs.h
>>conftest.
$ac_ext
5333 cat >>conftest.
$ac_ext <<_ACEOF
5334 /* end confdefs.h. */
5338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5339 $EGREP "memchr" >/dev
/null
2>&1; then
5342 ac_cv_header_stdc
=no
5348 if test $ac_cv_header_stdc = yes; then
5349 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5350 cat >conftest.
$ac_ext <<_ACEOF
5353 cat confdefs.h
>>conftest.
$ac_ext
5354 cat >>conftest.
$ac_ext <<_ACEOF
5355 /* end confdefs.h. */
5359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5360 $EGREP "free" >/dev
/null
2>&1; then
5363 ac_cv_header_stdc
=no
5369 if test $ac_cv_header_stdc = yes; then
5370 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5371 if test "$cross_compiling" = yes; then
5374 cat >conftest.
$ac_ext <<_ACEOF
5377 cat confdefs.h
>>conftest.
$ac_ext
5378 cat >>conftest.
$ac_ext <<_ACEOF
5379 /* end confdefs.h. */
5382 #if ((' ' & 0x0FF) == 0x020)
5383 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5384 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5386 # define ISLOWER(c) \
5387 (('a' <= (c) && (c) <= 'i') \
5388 || ('j' <= (c) && (c) <= 'r') \
5389 || ('s' <= (c) && (c) <= 'z'))
5390 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5393 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5398 for (i = 0; i < 256; i++)
5399 if (XOR (islower (i), ISLOWER (i))
5400 || toupper (i) != TOUPPER (i))
5405 rm -f conftest
$ac_exeext
5406 if { (ac_try
="$ac_link"
5408 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5409 *) ac_try_echo=$ac_try;;
5411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5412 (eval "$ac_link") 2>&5
5414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5415 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5416 { (case "(($ac_try" in
5417 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5418 *) ac_try_echo
=$ac_try;;
5420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5421 (eval "$ac_try") 2>&5
5423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424 (exit $ac_status); }; }; then
5427 echo "$as_me: program exited with status $ac_status" >&5
5428 echo "$as_me: failed program was:" >&5
5429 sed 's/^/| /' conftest.
$ac_ext >&5
5432 ac_cv_header_stdc
=no
5434 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5440 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5441 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5442 if test $ac_cv_header_stdc = yes; then
5444 cat >>confdefs.h
<<\_ACEOF
5445 #define STDC_HEADERS 1
5450 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5460 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5461 inttypes.h stdint.h unistd.h
5463 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5464 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5466 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5467 echo $ECHO_N "(cached) $ECHO_C" >&6
5469 cat >conftest.
$ac_ext <<_ACEOF
5472 cat confdefs.h
>>conftest.
$ac_ext
5473 cat >>conftest.
$ac_ext <<_ACEOF
5474 /* end confdefs.h. */
5475 $ac_includes_default
5477 #include <$ac_header>
5479 rm -f conftest.
$ac_objext
5480 if { (ac_try
="$ac_compile"
5482 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5483 *) ac_try_echo=$ac_try;;
5485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5486 (eval "$ac_compile") 2>conftest.er1
5488 grep -v '^ *+' conftest.er1 >conftest.err
5490 cat conftest.err >&5
5491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492 (exit $ac_status); } && {
5493 test -z "$ac_c_werror_flag" ||
5494 test ! -s conftest.err
5495 } && test -s conftest.$ac_objext; then
5496 eval "$as_ac_Header=yes"
5498 echo "$as_me: failed program was:" >&5
5499 sed 's/^/| /' conftest.$ac_ext >&5
5501 eval "$as_ac_Header=no"
5504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5506 ac_res=`eval echo '${'$as_ac_Header'}'`
5507 { echo "$as_me:$LINENO: result: $ac_res" >&5
5508 echo "${ECHO_T}$ac_res" >&6; }
5509 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5510 cat >>confdefs.h <<_ACEOF
5511 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5573 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
5575 ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
5576 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
5578 sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
5579 sys/lock.h sys/mkdev.h sys/modem.h \
5580 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
5581 sys/termio.h sys/time.h \
5582 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
5583 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
5584 bluetooth/bluetooth.h linux/tipc.h
5586 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5587 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5588 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5591 echo $ECHO_N "(cached) $ECHO_C" >&6
5593 ac_res=`eval echo '${'$as_ac_Header'}'`
5594 { echo "$as_me:$LINENO: result: $ac_res" >&5
5595 echo "${ECHO_T}$ac_res" >&6; }
5597 # Is the header compilable?
5598 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5599 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5600 cat >conftest.$ac_ext <<_ACEOF
5603 cat confdefs.h >>conftest.$ac_ext
5604 cat >>conftest.$ac_ext <<_ACEOF
5605 /* end confdefs.h. */
5606 $ac_includes_default
5607 #include <$ac_header>
5609 rm -f conftest.$ac_objext
5610 if { (ac_try="$ac_compile"
5612 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5613 *) ac_try_echo
=$ac_try;;
5615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5616 (eval "$ac_compile") 2>conftest.er1
5618 grep -v '^ *+' conftest.er1
>conftest.err
5620 cat conftest.err
>&5
5621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622 (exit $ac_status); } && {
5623 test -z "$ac_c_werror_flag" ||
5624 test ! -s conftest.err
5625 } && test -s conftest.
$ac_objext; then
5626 ac_header_compiler
=yes
5628 echo "$as_me: failed program was:" >&5
5629 sed 's/^/| /' conftest.
$ac_ext >&5
5631 ac_header_compiler
=no
5634 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5635 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5636 echo "${ECHO_T}$ac_header_compiler" >&6; }
5638 # Is the header present?
5639 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5640 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5641 cat >conftest.
$ac_ext <<_ACEOF
5644 cat confdefs.h
>>conftest.
$ac_ext
5645 cat >>conftest.
$ac_ext <<_ACEOF
5646 /* end confdefs.h. */
5647 #include <$ac_header>
5649 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5651 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5652 *) ac_try_echo=$ac_try;;
5654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5655 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5657 grep -v '^ *+' conftest.er1 >conftest.err
5659 cat conftest.err >&5
5660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661 (exit $ac_status); } >/dev/null && {
5662 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5663 test ! -s conftest.err
5665 ac_header_preproc=yes
5667 echo "$as_me: failed program was:" >&5
5668 sed 's/^/| /' conftest.$ac_ext >&5
5670 ac_header_preproc=no
5673 rm -f conftest.err conftest.$ac_ext
5674 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5675 echo "${ECHO_T}$ac_header_preproc" >&6; }
5677 # So? What about this header?
5678 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5680 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5681 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5682 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5683 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5684 ac_header_preproc=yes
5687 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5688 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5689 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5690 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5691 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5692 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5693 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5694 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5695 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5696 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5697 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5698 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5700 ## -------------------------------------- ##
5701 ## Report this to http://bugs.python.org/ ##
5702 ## -------------------------------------- ##
5704 ) | sed "s/^/$as_me: WARNING: /" >&2
5707 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5708 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5709 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5710 echo $ECHO_N "(cached) $ECHO_C" >&6
5712 eval "$as_ac_Header=\$ac_header_preproc"
5714 ac_res=`eval echo '${'$as_ac_Header'}'`
5715 { echo "$as_me:$LINENO: result: $ac_res" >&5
5716 echo "${ECHO_T}$ac_res" >&6; }
5719 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5720 cat >>confdefs.h <<_ACEOF
5721 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5734 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5735 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" |
$as_tr_sh`
5736 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5737 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5738 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5739 echo $ECHO_N "(cached) $ECHO_C" >&6
5741 cat >conftest.$ac_ext <<_ACEOF
5744 cat confdefs.h >>conftest.$ac_ext
5745 cat >>conftest.$ac_ext <<_ACEOF
5746 /* end confdefs.h. */
5747 #include <sys/types.h>
5759 rm -f conftest.$ac_objext
5760 if { (ac_try="$ac_compile"
5762 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5763 *) ac_try_echo
=$ac_try;;
5765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5766 (eval "$ac_compile") 2>conftest.er1
5768 grep -v '^ *+' conftest.er1
>conftest.err
5770 cat conftest.err
>&5
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); } && {
5773 test -z "$ac_c_werror_flag" ||
5774 test ! -s conftest.err
5775 } && test -s conftest.
$ac_objext; then
5776 eval "$as_ac_Header=yes"
5778 echo "$as_me: failed program was:" >&5
5779 sed 's/^/| /' conftest.
$ac_ext >&5
5781 eval "$as_ac_Header=no"
5784 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5786 ac_res
=`eval echo '${'$as_ac_Header'}'`
5787 { echo "$as_me:$LINENO: result: $ac_res" >&5
5788 echo "${ECHO_T}$ac_res" >&6; }
5789 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5790 cat >>confdefs.h
<<_ACEOF
5791 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5794 ac_header_dirent
=$ac_hdr; break
5798 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5799 if test $ac_header_dirent = dirent.h
; then
5800 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5801 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5802 if test "${ac_cv_search_opendir+set}" = set; then
5803 echo $ECHO_N "(cached) $ECHO_C" >&6
5805 ac_func_search_save_LIBS
=$LIBS
5806 cat >conftest.
$ac_ext <<_ACEOF
5809 cat confdefs.h
>>conftest.
$ac_ext
5810 cat >>conftest.
$ac_ext <<_ACEOF
5811 /* end confdefs.h. */
5813 /* Override any GCC internal prototype to avoid an error.
5814 Use char because int might match the return type of a GCC
5815 builtin and then its argument prototype would still apply. */
5828 for ac_lib
in '' dir
; do
5829 if test -z "$ac_lib"; then
5830 ac_res
="none required"
5833 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5835 rm -f conftest.
$ac_objext conftest
$ac_exeext
5836 if { (ac_try
="$ac_link"
5838 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5839 *) ac_try_echo=$ac_try;;
5841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5842 (eval "$ac_link") 2>conftest.er1
5844 grep -v '^ *+' conftest.er1 >conftest.err
5846 cat conftest.err >&5
5847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848 (exit $ac_status); } && {
5849 test -z "$ac_c_werror_flag" ||
5850 test ! -s conftest.err
5851 } && test -s conftest$ac_exeext &&
5852 $as_test_x conftest$ac_exeext; then
5853 ac_cv_search_opendir=$ac_res
5855 echo "$as_me: failed program was:" >&5
5856 sed 's/^/| /' conftest.$ac_ext >&5
5861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5863 if test "${ac_cv_search_opendir+set}" = set; then
5867 if test "${ac_cv_search_opendir+set}" = set; then
5870 ac_cv_search_opendir=no
5873 LIBS=$ac_func_search_save_LIBS
5875 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5876 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5877 ac_res=$ac_cv_search_opendir
5878 if test "$ac_res" != no; then
5879 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5884 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5885 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5886 if test "${ac_cv_search_opendir+set}" = set; then
5887 echo $ECHO_N "(cached) $ECHO_C" >&6
5889 ac_func_search_save_LIBS=$LIBS
5890 cat >conftest.$ac_ext <<_ACEOF
5893 cat confdefs.h >>conftest.$ac_ext
5894 cat >>conftest.$ac_ext <<_ACEOF
5895 /* end confdefs.h. */
5897 /* Override any GCC internal prototype to avoid an error.
5898 Use char because int might match the return type of a GCC
5899 builtin and then its argument prototype would still apply. */
5912 for ac_lib in '' x; do
5913 if test -z "$ac_lib"; then
5914 ac_res="none required"
5917 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5919 rm -f conftest.$ac_objext conftest$ac_exeext
5920 if { (ac_try="$ac_link"
5922 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5923 *) ac_try_echo
=$ac_try;;
5925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5926 (eval "$ac_link") 2>conftest.er1
5928 grep -v '^ *+' conftest.er1
>conftest.err
5930 cat conftest.err
>&5
5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); } && {
5933 test -z "$ac_c_werror_flag" ||
5934 test ! -s conftest.err
5935 } && test -s conftest
$ac_exeext &&
5936 $as_test_x conftest
$ac_exeext; then
5937 ac_cv_search_opendir
=$ac_res
5939 echo "$as_me: failed program was:" >&5
5940 sed 's/^/| /' conftest.
$ac_ext >&5
5945 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5947 if test "${ac_cv_search_opendir+set}" = set; then
5951 if test "${ac_cv_search_opendir+set}" = set; then
5954 ac_cv_search_opendir
=no
5957 LIBS
=$ac_func_search_save_LIBS
5959 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5960 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5961 ac_res
=$ac_cv_search_opendir
5962 if test "$ac_res" != no
; then
5963 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5969 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5970 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
5971 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5972 echo $ECHO_N "(cached) $ECHO_C" >&6
5974 cat >conftest.
$ac_ext <<_ACEOF
5977 cat confdefs.h
>>conftest.
$ac_ext
5978 cat >>conftest.
$ac_ext <<_ACEOF
5979 /* end confdefs.h. */
5980 #include <sys/types.h>
5984 return makedev(0, 0);
5989 rm -f conftest.
$ac_objext conftest
$ac_exeext
5990 if { (ac_try
="$ac_link"
5992 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5993 *) ac_try_echo=$ac_try;;
5995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5996 (eval "$ac_link") 2>conftest.er1
5998 grep -v '^ *+' conftest.er1 >conftest.err
6000 cat conftest.err >&5
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); } && {
6003 test -z "$ac_c_werror_flag" ||
6004 test ! -s conftest.err
6005 } && test -s conftest$ac_exeext &&
6006 $as_test_x conftest$ac_exeext; then
6007 ac_cv_header_sys_types_h_makedev=yes
6009 echo "$as_me: failed program was:" >&5
6010 sed 's/^/| /' conftest.$ac_ext >&5
6012 ac_cv_header_sys_types_h_makedev=no
6015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6016 conftest$ac_exeext conftest.$ac_ext
6019 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
6020 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
6022 if test $ac_cv_header_sys_types_h_makedev = no; then
6023 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6024 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6025 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6026 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6027 echo $ECHO_N "(cached) $ECHO_C" >&6
6029 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6030 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6032 # Is the header compilable?
6033 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
6034 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
6035 cat >conftest.$ac_ext <<_ACEOF
6038 cat confdefs.h >>conftest.$ac_ext
6039 cat >>conftest.$ac_ext <<_ACEOF
6040 /* end confdefs.h. */
6041 $ac_includes_default
6042 #include <sys/mkdev.h>
6044 rm -f conftest.$ac_objext
6045 if { (ac_try="$ac_compile"
6047 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6048 *) ac_try_echo
=$ac_try;;
6050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6051 (eval "$ac_compile") 2>conftest.er1
6053 grep -v '^ *+' conftest.er1
>conftest.err
6055 cat conftest.err
>&5
6056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057 (exit $ac_status); } && {
6058 test -z "$ac_c_werror_flag" ||
6059 test ! -s conftest.err
6060 } && test -s conftest.
$ac_objext; then
6061 ac_header_compiler
=yes
6063 echo "$as_me: failed program was:" >&5
6064 sed 's/^/| /' conftest.
$ac_ext >&5
6066 ac_header_compiler
=no
6069 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6070 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6071 echo "${ECHO_T}$ac_header_compiler" >&6; }
6073 # Is the header present?
6074 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
6075 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
6076 cat >conftest.
$ac_ext <<_ACEOF
6079 cat confdefs.h
>>conftest.
$ac_ext
6080 cat >>conftest.
$ac_ext <<_ACEOF
6081 /* end confdefs.h. */
6082 #include <sys/mkdev.h>
6084 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6086 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6087 *) ac_try_echo=$ac_try;;
6089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6090 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6092 grep -v '^ *+' conftest.er1 >conftest.err
6094 cat conftest.err >&5
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); } >/dev/null && {
6097 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6098 test ! -s conftest.err
6100 ac_header_preproc=yes
6102 echo "$as_me: failed program was:" >&5
6103 sed 's/^/| /' conftest.$ac_ext >&5
6105 ac_header_preproc=no
6108 rm -f conftest.err conftest.$ac_ext
6109 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6110 echo "${ECHO_T}$ac_header_preproc" >&6; }
6112 # So? What about this header?
6113 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6115 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6116 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6117 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
6118 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
6119 ac_header_preproc=yes
6122 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6123 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6124 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6125 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6126 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
6127 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
6128 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
6129 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
6130 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6131 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6132 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
6133 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
6135 ## -------------------------------------- ##
6136 ## Report this to http://bugs.python.org/ ##
6137 ## -------------------------------------- ##
6139 ) | sed "s/^/$as_me: WARNING: /" >&2
6142 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6143 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6144 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6145 echo $ECHO_N "(cached) $ECHO_C" >&6
6147 ac_cv_header_sys_mkdev_h=$ac_header_preproc
6149 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6150 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6153 if test $ac_cv_header_sys_mkdev_h = yes; then
6155 cat >>confdefs.h <<\_ACEOF
6156 #define MAJOR_IN_MKDEV 1
6163 if test $ac_cv_header_sys_mkdev_h = no; then
6164 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6165 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6166 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6167 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6168 echo $ECHO_N "(cached) $ECHO_C" >&6
6170 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6171 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6173 # Is the header compilable?
6174 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6175 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
6176 cat >conftest.$ac_ext <<_ACEOF
6179 cat confdefs.h >>conftest.$ac_ext
6180 cat >>conftest.$ac_ext <<_ACEOF
6181 /* end confdefs.h. */
6182 $ac_includes_default
6183 #include <sys/sysmacros.h>
6185 rm -f conftest.$ac_objext
6186 if { (ac_try="$ac_compile"
6188 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6189 *) ac_try_echo
=$ac_try;;
6191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6192 (eval "$ac_compile") 2>conftest.er1
6194 grep -v '^ *+' conftest.er1
>conftest.err
6196 cat conftest.err
>&5
6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198 (exit $ac_status); } && {
6199 test -z "$ac_c_werror_flag" ||
6200 test ! -s conftest.err
6201 } && test -s conftest.
$ac_objext; then
6202 ac_header_compiler
=yes
6204 echo "$as_me: failed program was:" >&5
6205 sed 's/^/| /' conftest.
$ac_ext >&5
6207 ac_header_compiler
=no
6210 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6211 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6212 echo "${ECHO_T}$ac_header_compiler" >&6; }
6214 # Is the header present?
6215 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6216 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
6217 cat >conftest.
$ac_ext <<_ACEOF
6220 cat confdefs.h
>>conftest.
$ac_ext
6221 cat >>conftest.
$ac_ext <<_ACEOF
6222 /* end confdefs.h. */
6223 #include <sys/sysmacros.h>
6225 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6227 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6228 *) ac_try_echo=$ac_try;;
6230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6231 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6233 grep -v '^ *+' conftest.er1 >conftest.err
6235 cat conftest.err >&5
6236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); } >/dev/null && {
6238 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6239 test ! -s conftest.err
6241 ac_header_preproc=yes
6243 echo "$as_me: failed program was:" >&5
6244 sed 's/^/| /' conftest.$ac_ext >&5
6246 ac_header_preproc=no
6249 rm -f conftest.err conftest.$ac_ext
6250 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6251 echo "${ECHO_T}$ac_header_preproc" >&6; }
6253 # So? What about this header?
6254 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6256 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6257 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6258 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6259 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
6260 ac_header_preproc=yes
6263 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6264 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6265 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6266 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6267 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6268 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6269 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
6270 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
6271 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6272 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
6273 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6274 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
6276 ## -------------------------------------- ##
6277 ## Report this to http://bugs.python.org/ ##
6278 ## -------------------------------------- ##
6280 ) | sed "s/^/$as_me: WARNING: /" >&2
6283 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6284 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6285 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6286 echo $ECHO_N "(cached) $ECHO_C" >&6
6288 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
6290 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6291 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6294 if test $ac_cv_header_sys_sysmacros_h = yes; then
6296 cat >>confdefs.h <<\_ACEOF
6297 #define MAJOR_IN_SYSMACROS 1
6307 # On Solaris, term.h requires curses.h
6309 for ac_header in term.h
6311 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6312 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6313 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6314 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6315 echo $ECHO_N "(cached) $ECHO_C" >&6
6317 cat >conftest.$ac_ext <<_ACEOF
6320 cat confdefs.h >>conftest.$ac_ext
6321 cat >>conftest.$ac_ext <<_ACEOF
6322 /* end confdefs.h. */
6324 #ifdef HAVE_CURSES_H
6329 #include <$ac_header>
6331 rm -f conftest.$ac_objext
6332 if { (ac_try="$ac_compile"
6334 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6335 *) ac_try_echo
=$ac_try;;
6337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6338 (eval "$ac_compile") 2>conftest.er1
6340 grep -v '^ *+' conftest.er1
>conftest.err
6342 cat conftest.err
>&5
6343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344 (exit $ac_status); } && {
6345 test -z "$ac_c_werror_flag" ||
6346 test ! -s conftest.err
6347 } && test -s conftest.
$ac_objext; then
6348 eval "$as_ac_Header=yes"
6350 echo "$as_me: failed program was:" >&5
6351 sed 's/^/| /' conftest.
$ac_ext >&5
6353 eval "$as_ac_Header=no"
6356 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6358 ac_res
=`eval echo '${'$as_ac_Header'}'`
6359 { echo "$as_me:$LINENO: result: $ac_res" >&5
6360 echo "${ECHO_T}$ac_res" >&6; }
6361 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6362 cat >>confdefs.h
<<_ACEOF
6363 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6371 # On Linux, netlink.h requires asm/types.h
6373 for ac_header
in linux
/netlink.h
6375 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6376 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6378 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6379 echo $ECHO_N "(cached) $ECHO_C" >&6
6381 cat >conftest.
$ac_ext <<_ACEOF
6384 cat confdefs.h
>>conftest.
$ac_ext
6385 cat >>conftest.
$ac_ext <<_ACEOF
6386 /* end confdefs.h. */
6388 #ifdef HAVE_ASM_TYPES_H
6389 #include <asm/types.h>
6391 #ifdef HAVE_SYS_SOCKET_H
6392 #include <sys/socket.h>
6396 #include <$ac_header>
6398 rm -f conftest.
$ac_objext
6399 if { (ac_try
="$ac_compile"
6401 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6402 *) ac_try_echo=$ac_try;;
6404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6405 (eval "$ac_compile") 2>conftest.er1
6407 grep -v '^ *+' conftest.er1 >conftest.err
6409 cat conftest.err >&5
6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); } && {
6412 test -z "$ac_c_werror_flag" ||
6413 test ! -s conftest.err
6414 } && test -s conftest.$ac_objext; then
6415 eval "$as_ac_Header=yes"
6417 echo "$as_me: failed program was:" >&5
6418 sed 's/^/| /' conftest.$ac_ext >&5
6420 eval "$as_ac_Header=no"
6423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6425 ac_res=`eval echo '${'$as_ac_Header'}'`
6426 { echo "$as_me:$LINENO: result: $ac_res" >&5
6427 echo "${ECHO_T}$ac_res" >&6; }
6428 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6429 cat >>confdefs.h <<_ACEOF
6430 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6438 # checks for typedefs
6440 { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
6441 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6; }
6442 cat >conftest.$ac_ext <<_ACEOF
6445 cat confdefs.h >>conftest.$ac_ext
6446 cat >>conftest.$ac_ext <<_ACEOF
6447 /* end confdefs.h. */
6451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6452 $EGREP "clock_t" >/dev/null 2>&1; then
6457 cat >>confdefs.h <<\_ACEOF
6458 #define clock_t long
6465 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
6466 echo "${ECHO_T}$was_it_defined" >&6; }
6468 # Check whether using makedev requires defining _OSF_SOURCE
6469 { echo "$as_me:$LINENO: checking for makedev" >&5
6470 echo $ECHO_N "checking for makedev... $ECHO_C" >&6; }
6471 cat >conftest.$ac_ext <<_ACEOF
6474 cat confdefs.h >>conftest.$ac_ext
6475 cat >>conftest.$ac_ext <<_ACEOF
6476 /* end confdefs.h. */
6477 #include <sys/types.h>
6486 rm -f conftest.$ac_objext conftest$ac_exeext
6487 if { (ac_try="$ac_link"
6489 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6490 *) ac_try_echo
=$ac_try;;
6492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6493 (eval "$ac_link") 2>conftest.er1
6495 grep -v '^ *+' conftest.er1
>conftest.err
6497 cat conftest.err
>&5
6498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499 (exit $ac_status); } && {
6500 test -z "$ac_c_werror_flag" ||
6501 test ! -s conftest.err
6502 } && test -s conftest
$ac_exeext &&
6503 $as_test_x conftest
$ac_exeext; then
6504 ac_cv_has_makedev
=yes
6506 echo "$as_me: failed program was:" >&5
6507 sed 's/^/| /' conftest.
$ac_ext >&5
6509 ac_cv_has_makedev
=no
6512 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6513 conftest
$ac_exeext conftest.
$ac_ext
6514 if test "$ac_cv_has_makedev" = "no"; then
6515 # we didn't link, try if _OSF_SOURCE will allow us to link
6516 cat >conftest.
$ac_ext <<_ACEOF
6519 cat confdefs.h
>>conftest.
$ac_ext
6520 cat >>conftest.
$ac_ext <<_ACEOF
6521 /* end confdefs.h. */
6523 #define _OSF_SOURCE 1
6524 #include <sys/types.h>
6534 rm -f conftest.
$ac_objext conftest
$ac_exeext
6535 if { (ac_try
="$ac_link"
6537 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6538 *) ac_try_echo=$ac_try;;
6540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6541 (eval "$ac_link") 2>conftest.er1
6543 grep -v '^ *+' conftest.er1 >conftest.err
6545 cat conftest.err >&5
6546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6547 (exit $ac_status); } && {
6548 test -z "$ac_c_werror_flag" ||
6549 test ! -s conftest.err
6550 } && test -s conftest$ac_exeext &&
6551 $as_test_x conftest$ac_exeext; then
6552 ac_cv_has_makedev=yes
6554 echo "$as_me: failed program was:" >&5
6555 sed 's/^/| /' conftest.$ac_ext >&5
6557 ac_cv_has_makedev=no
6560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6561 conftest$ac_exeext conftest.$ac_ext
6562 if test "$ac_cv_has_makedev" = "yes"; then
6564 cat >>confdefs.h <<\_ACEOF
6565 #define _OSF_SOURCE 1
6570 { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
6571 echo "${ECHO_T}$ac_cv_has_makedev" >&6; }
6572 if test "$ac_cv_has_makedev" = "yes"; then
6574 cat >>confdefs.h <<\_ACEOF
6575 #define HAVE_MAKEDEV 1
6580 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
6581 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
6582 # defined, but the compiler does not support pragma redefine_extname,
6583 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
6584 # structures (such as rlimit64) without declaring them. As a
6585 # work-around, disable LFS on such configurations
6588 { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
6589 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; }
6590 cat >conftest.$ac_ext <<_ACEOF
6593 cat confdefs.h >>conftest.$ac_ext
6594 cat >>conftest.$ac_ext <<_ACEOF
6595 /* end confdefs.h. */
6597 #define _LARGEFILE_SOURCE 1
6598 #define _FILE_OFFSET_BITS 64
6599 #include <sys/resource.h>
6609 rm -f conftest.$ac_objext
6610 if { (ac_try="$ac_compile"
6612 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6613 *) ac_try_echo
=$ac_try;;
6615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6616 (eval "$ac_compile") 2>conftest.er1
6618 grep -v '^ *+' conftest.er1
>conftest.err
6620 cat conftest.err
>&5
6621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622 (exit $ac_status); } && {
6623 test -z "$ac_c_werror_flag" ||
6624 test ! -s conftest.err
6625 } && test -s conftest.
$ac_objext; then
6628 echo "$as_me: failed program was:" >&5
6629 sed 's/^/| /' conftest.
$ac_ext >&5
6634 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6635 { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
6636 echo "${ECHO_T}$sol_lfs_bug" >&6; }
6637 if test "$sol_lfs_bug" = "yes"; then
6641 if test "$use_lfs" = "yes"; then
6642 # Two defines needed to enable largefile support on various platforms
6643 # These may affect some typedefs
6645 cat >>confdefs.h
<<\_ACEOF
6646 #define _LARGEFILE_SOURCE 1
6650 cat >>confdefs.h
<<\_ACEOF
6651 #define _FILE_OFFSET_BITS 64
6656 # Add some code to confdefs.h so that the test for off_t works on SCO
6657 cat >> confdefs.h
<<\EOF
6663 # Type availability checks
6664 { echo "$as_me:$LINENO: checking for mode_t" >&5
6665 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
6666 if test "${ac_cv_type_mode_t+set}" = set; then
6667 echo $ECHO_N "(cached) $ECHO_C" >&6
6669 cat >conftest.
$ac_ext <<_ACEOF
6672 cat confdefs.h
>>conftest.
$ac_ext
6673 cat >>conftest.
$ac_ext <<_ACEOF
6674 /* end confdefs.h. */
6675 $ac_includes_default
6676 typedef mode_t ac__type_new_;
6680 if ((ac__type_new_ *) 0)
6682 if (sizeof (ac__type_new_))
6688 rm -f conftest.
$ac_objext
6689 if { (ac_try
="$ac_compile"
6691 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6692 *) ac_try_echo=$ac_try;;
6694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6695 (eval "$ac_compile") 2>conftest.er1
6697 grep -v '^ *+' conftest.er1 >conftest.err
6699 cat conftest.err >&5
6700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701 (exit $ac_status); } && {
6702 test -z "$ac_c_werror_flag" ||
6703 test ! -s conftest.err
6704 } && test -s conftest.$ac_objext; then
6705 ac_cv_type_mode_t=yes
6707 echo "$as_me: failed program was:" >&5
6708 sed 's/^/| /' conftest.$ac_ext >&5
6710 ac_cv_type_mode_t=no
6713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6715 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6716 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
6717 if test $ac_cv_type_mode_t = yes; then
6721 cat >>confdefs.h <<_ACEOF
6727 { echo "$as_me:$LINENO: checking for off_t" >&5
6728 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6729 if test "${ac_cv_type_off_t+set}" = set; then
6730 echo $ECHO_N "(cached) $ECHO_C" >&6
6732 cat >conftest.$ac_ext <<_ACEOF
6735 cat confdefs.h >>conftest.$ac_ext
6736 cat >>conftest.$ac_ext <<_ACEOF
6737 /* end confdefs.h. */
6738 $ac_includes_default
6739 typedef off_t ac__type_new_;
6743 if ((ac__type_new_ *) 0)
6745 if (sizeof (ac__type_new_))
6751 rm -f conftest.$ac_objext
6752 if { (ac_try="$ac_compile"
6754 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6755 *) ac_try_echo
=$ac_try;;
6757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6758 (eval "$ac_compile") 2>conftest.er1
6760 grep -v '^ *+' conftest.er1
>conftest.err
6762 cat conftest.err
>&5
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); } && {
6765 test -z "$ac_c_werror_flag" ||
6766 test ! -s conftest.err
6767 } && test -s conftest.
$ac_objext; then
6768 ac_cv_type_off_t
=yes
6770 echo "$as_me: failed program was:" >&5
6771 sed 's/^/| /' conftest.
$ac_ext >&5
6776 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6778 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6779 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6780 if test $ac_cv_type_off_t = yes; then
6784 cat >>confdefs.h
<<_ACEOF
6785 #define off_t long int
6790 { echo "$as_me:$LINENO: checking for pid_t" >&5
6791 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
6792 if test "${ac_cv_type_pid_t+set}" = set; then
6793 echo $ECHO_N "(cached) $ECHO_C" >&6
6795 cat >conftest.
$ac_ext <<_ACEOF
6798 cat confdefs.h
>>conftest.
$ac_ext
6799 cat >>conftest.
$ac_ext <<_ACEOF
6800 /* end confdefs.h. */
6801 $ac_includes_default
6802 typedef pid_t ac__type_new_;
6806 if ((ac__type_new_ *) 0)
6808 if (sizeof (ac__type_new_))
6814 rm -f conftest.
$ac_objext
6815 if { (ac_try
="$ac_compile"
6817 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6818 *) ac_try_echo=$ac_try;;
6820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6821 (eval "$ac_compile") 2>conftest.er1
6823 grep -v '^ *+' conftest.er1 >conftest.err
6825 cat conftest.err >&5
6826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827 (exit $ac_status); } && {
6828 test -z "$ac_c_werror_flag" ||
6829 test ! -s conftest.err
6830 } && test -s conftest.$ac_objext; then
6831 ac_cv_type_pid_t=yes
6833 echo "$as_me: failed program was:" >&5
6834 sed 's/^/| /' conftest.$ac_ext >&5
6839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6841 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6842 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
6843 if test $ac_cv_type_pid_t = yes; then
6847 cat >>confdefs.h <<_ACEOF
6853 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6854 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6855 if test "${ac_cv_type_signal+set}" = set; then
6856 echo $ECHO_N "(cached) $ECHO_C" >&6
6858 cat >conftest.$ac_ext <<_ACEOF
6861 cat confdefs.h >>conftest.$ac_ext
6862 cat >>conftest.$ac_ext <<_ACEOF
6863 /* end confdefs.h. */
6864 #include <sys/types.h>
6870 return *(signal (0, 0)) (0) == 1;
6875 rm -f conftest.$ac_objext
6876 if { (ac_try="$ac_compile"
6878 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6879 *) ac_try_echo
=$ac_try;;
6881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6882 (eval "$ac_compile") 2>conftest.er1
6884 grep -v '^ *+' conftest.er1
>conftest.err
6886 cat conftest.err
>&5
6887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888 (exit $ac_status); } && {
6889 test -z "$ac_c_werror_flag" ||
6890 test ! -s conftest.err
6891 } && test -s conftest.
$ac_objext; then
6892 ac_cv_type_signal
=int
6894 echo "$as_me: failed program was:" >&5
6895 sed 's/^/| /' conftest.
$ac_ext >&5
6897 ac_cv_type_signal
=void
6900 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6902 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6903 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6905 cat >>confdefs.h
<<_ACEOF
6906 #define RETSIGTYPE $ac_cv_type_signal
6910 { echo "$as_me:$LINENO: checking for size_t" >&5
6911 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6912 if test "${ac_cv_type_size_t+set}" = set; then
6913 echo $ECHO_N "(cached) $ECHO_C" >&6
6915 cat >conftest.
$ac_ext <<_ACEOF
6918 cat confdefs.h
>>conftest.
$ac_ext
6919 cat >>conftest.
$ac_ext <<_ACEOF
6920 /* end confdefs.h. */
6921 $ac_includes_default
6922 typedef size_t ac__type_new_;
6926 if ((ac__type_new_ *) 0)
6928 if (sizeof (ac__type_new_))
6934 rm -f conftest.
$ac_objext
6935 if { (ac_try
="$ac_compile"
6937 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6938 *) ac_try_echo=$ac_try;;
6940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6941 (eval "$ac_compile") 2>conftest.er1
6943 grep -v '^ *+' conftest.er1 >conftest.err
6945 cat conftest.err >&5
6946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 (exit $ac_status); } && {
6948 test -z "$ac_c_werror_flag" ||
6949 test ! -s conftest.err
6950 } && test -s conftest.$ac_objext; then
6951 ac_cv_type_size_t=yes
6953 echo "$as_me: failed program was:" >&5
6954 sed 's/^/| /' conftest.$ac_ext >&5
6956 ac_cv_type_size_t=no
6959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6961 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6962 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
6963 if test $ac_cv_type_size_t = yes; then
6967 cat >>confdefs.h <<_ACEOF
6968 #define size_t unsigned int
6973 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6974 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
6975 if test "${ac_cv_type_uid_t+set}" = set; then
6976 echo $ECHO_N "(cached) $ECHO_C" >&6
6978 cat >conftest.$ac_ext <<_ACEOF
6981 cat confdefs.h >>conftest.$ac_ext
6982 cat >>conftest.$ac_ext <<_ACEOF
6983 /* end confdefs.h. */
6984 #include <sys/types.h>
6987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6988 $EGREP "uid_t" >/dev/null 2>&1; then
6989 ac_cv_type_uid_t=yes
6996 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6997 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
6998 if test $ac_cv_type_uid_t = no; then
7000 cat >>confdefs.h <<\_ACEOF
7005 cat >>confdefs.h <<\_ACEOF
7012 { echo "$as_me:$LINENO: checking for uint32_t" >&5
7013 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
7014 if test "${ac_cv_c_uint32_t+set}" = set; then
7015 echo $ECHO_N "(cached) $ECHO_C" >&6
7018 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
7019 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7020 cat >conftest.$ac_ext <<_ACEOF
7023 cat confdefs.h >>conftest.$ac_ext
7024 cat >>conftest.$ac_ext <<_ACEOF
7025 /* end confdefs.h. */
7026 $ac_includes_default
7030 static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
7037 rm -f conftest.$ac_objext
7038 if { (ac_try="$ac_compile"
7040 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7041 *) ac_try_echo
=$ac_try;;
7043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7044 (eval "$ac_compile") 2>conftest.er1
7046 grep -v '^ *+' conftest.er1
>conftest.err
7048 cat conftest.err
>&5
7049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050 (exit $ac_status); } && {
7051 test -z "$ac_c_werror_flag" ||
7052 test ! -s conftest.err
7053 } && test -s conftest.
$ac_objext; then
7055 uint32_t
) ac_cv_c_uint32_t
=yes ;;
7056 *) ac_cv_c_uint32_t
=$ac_type ;;
7060 echo "$as_me: failed program was:" >&5
7061 sed 's/^/| /' conftest.
$ac_ext >&5
7066 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7067 test "$ac_cv_c_uint32_t" != no
&& break
7070 { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
7071 echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
7072 case $ac_cv_c_uint32_t in #(
7076 cat >>confdefs.h
<<\_ACEOF
7081 cat >>confdefs.h
<<_ACEOF
7082 #define uint32_t $ac_cv_c_uint32_t
7088 { echo "$as_me:$LINENO: checking for uint64_t" >&5
7089 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
7090 if test "${ac_cv_c_uint64_t+set}" = set; then
7091 echo $ECHO_N "(cached) $ECHO_C" >&6
7094 for ac_type
in 'uint64_t' 'unsigned int' 'unsigned long int' \
7095 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7096 cat >conftest.
$ac_ext <<_ACEOF
7099 cat confdefs.h
>>conftest.
$ac_ext
7100 cat >>conftest.
$ac_ext <<_ACEOF
7101 /* end confdefs.h. */
7102 $ac_includes_default
7106 static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
7113 rm -f conftest.
$ac_objext
7114 if { (ac_try
="$ac_compile"
7116 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7117 *) ac_try_echo=$ac_try;;
7119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7120 (eval "$ac_compile") 2>conftest.er1
7122 grep -v '^ *+' conftest.er1 >conftest.err
7124 cat conftest.err >&5
7125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126 (exit $ac_status); } && {
7127 test -z "$ac_c_werror_flag" ||
7128 test ! -s conftest.err
7129 } && test -s conftest.$ac_objext; then
7131 uint64_t) ac_cv_c_uint64_t=yes ;;
7132 *) ac_cv_c_uint64_t=$ac_type ;;
7136 echo "$as_me: failed program was:" >&5
7137 sed 's/^/| /' conftest.$ac_ext >&5
7142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7143 test "$ac_cv_c_uint64_t" != no && break
7146 { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
7147 echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
7148 case $ac_cv_c_uint64_t in #(
7152 cat >>confdefs.h <<\_ACEOF
7157 cat >>confdefs.h <<_ACEOF
7158 #define uint64_t $ac_cv_c_uint64_t
7164 { echo "$as_me:$LINENO: checking for int32_t" >&5
7165 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
7166 if test "${ac_cv_c_int32_t+set}" = set; then
7167 echo $ECHO_N "(cached) $ECHO_C" >&6
7170 for ac_type in 'int32_t' 'int' 'long int' \
7171 'long long int' 'short int' 'signed char'; do
7172 cat >conftest.$ac_ext <<_ACEOF
7175 cat confdefs.h >>conftest.$ac_ext
7176 cat >>conftest.$ac_ext <<_ACEOF
7177 /* end confdefs.h. */
7178 $ac_includes_default
7182 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
7189 rm -f conftest.$ac_objext
7190 if { (ac_try="$ac_compile"
7192 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7193 *) ac_try_echo
=$ac_try;;
7195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7196 (eval "$ac_compile") 2>conftest.er1
7198 grep -v '^ *+' conftest.er1
>conftest.err
7200 cat conftest.err
>&5
7201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202 (exit $ac_status); } && {
7203 test -z "$ac_c_werror_flag" ||
7204 test ! -s conftest.err
7205 } && test -s conftest.
$ac_objext; then
7206 cat >conftest.
$ac_ext <<_ACEOF
7209 cat confdefs.h
>>conftest.
$ac_ext
7210 cat >>conftest.
$ac_ext <<_ACEOF
7211 /* end confdefs.h. */
7212 $ac_includes_default
7216 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
7217 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
7224 rm -f conftest.
$ac_objext
7225 if { (ac_try
="$ac_compile"
7227 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7228 *) ac_try_echo=$ac_try;;
7230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7231 (eval "$ac_compile") 2>conftest.er1
7233 grep -v '^ *+' conftest.er1 >conftest.err
7235 cat conftest.err >&5
7236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237 (exit $ac_status); } && {
7238 test -z "$ac_c_werror_flag" ||
7239 test ! -s conftest.err
7240 } && test -s conftest.$ac_objext; then
7243 echo "$as_me: failed program was:" >&5
7244 sed 's/^/| /' conftest.$ac_ext >&5
7247 int32_t) ac_cv_c_int32_t=yes ;;
7248 *) ac_cv_c_int32_t=$ac_type ;;
7253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7255 echo "$as_me: failed program was:" >&5
7256 sed 's/^/| /' conftest.$ac_ext >&5
7261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7262 test "$ac_cv_c_int32_t" != no && break
7265 { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
7266 echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
7267 case $ac_cv_c_int32_t in #(
7271 cat >>confdefs.h <<_ACEOF
7272 #define int32_t $ac_cv_c_int32_t
7278 { echo "$as_me:$LINENO: checking for int64_t" >&5
7279 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
7280 if test "${ac_cv_c_int64_t+set}" = set; then
7281 echo $ECHO_N "(cached) $ECHO_C" >&6
7284 for ac_type in 'int64_t' 'int' 'long int' \
7285 'long long int' 'short int' 'signed char'; do
7286 cat >conftest.$ac_ext <<_ACEOF
7289 cat confdefs.h >>conftest.$ac_ext
7290 cat >>conftest.$ac_ext <<_ACEOF
7291 /* end confdefs.h. */
7292 $ac_includes_default
7296 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
7303 rm -f conftest.$ac_objext
7304 if { (ac_try="$ac_compile"
7306 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7307 *) ac_try_echo
=$ac_try;;
7309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7310 (eval "$ac_compile") 2>conftest.er1
7312 grep -v '^ *+' conftest.er1
>conftest.err
7314 cat conftest.err
>&5
7315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316 (exit $ac_status); } && {
7317 test -z "$ac_c_werror_flag" ||
7318 test ! -s conftest.err
7319 } && test -s conftest.
$ac_objext; then
7320 cat >conftest.
$ac_ext <<_ACEOF
7323 cat confdefs.h
>>conftest.
$ac_ext
7324 cat >>conftest.
$ac_ext <<_ACEOF
7325 /* end confdefs.h. */
7326 $ac_includes_default
7330 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
7331 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
7338 rm -f conftest.
$ac_objext
7339 if { (ac_try
="$ac_compile"
7341 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7342 *) ac_try_echo=$ac_try;;
7344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7345 (eval "$ac_compile") 2>conftest.er1
7347 grep -v '^ *+' conftest.er1 >conftest.err
7349 cat conftest.err >&5
7350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351 (exit $ac_status); } && {
7352 test -z "$ac_c_werror_flag" ||
7353 test ! -s conftest.err
7354 } && test -s conftest.$ac_objext; then
7357 echo "$as_me: failed program was:" >&5
7358 sed 's/^/| /' conftest.$ac_ext >&5
7361 int64_t) ac_cv_c_int64_t=yes ;;
7362 *) ac_cv_c_int64_t=$ac_type ;;
7367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7369 echo "$as_me: failed program was:" >&5
7370 sed 's/^/| /' conftest.$ac_ext >&5
7375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7376 test "$ac_cv_c_int64_t" != no && break
7379 { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
7380 echo "${ECHO_T}$ac_cv_c_int64_t" >&6; }
7381 case $ac_cv_c_int64_t in #(
7385 cat >>confdefs.h <<_ACEOF
7386 #define int64_t $ac_cv_c_int64_t
7391 { echo "$as_me:$LINENO: checking for ssize_t" >&5
7392 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
7393 if test "${ac_cv_type_ssize_t+set}" = set; then
7394 echo $ECHO_N "(cached) $ECHO_C" >&6
7396 cat >conftest.$ac_ext <<_ACEOF
7399 cat confdefs.h >>conftest.$ac_ext
7400 cat >>conftest.$ac_ext <<_ACEOF
7401 /* end confdefs.h. */
7402 $ac_includes_default
7403 typedef ssize_t ac__type_new_;
7407 if ((ac__type_new_ *) 0)
7409 if (sizeof (ac__type_new_))
7415 rm -f conftest.$ac_objext
7416 if { (ac_try="$ac_compile"
7418 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7419 *) ac_try_echo
=$ac_try;;
7421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7422 (eval "$ac_compile") 2>conftest.er1
7424 grep -v '^ *+' conftest.er1
>conftest.err
7426 cat conftest.err
>&5
7427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428 (exit $ac_status); } && {
7429 test -z "$ac_c_werror_flag" ||
7430 test ! -s conftest.err
7431 } && test -s conftest.
$ac_objext; then
7432 ac_cv_type_ssize_t
=yes
7434 echo "$as_me: failed program was:" >&5
7435 sed 's/^/| /' conftest.
$ac_ext >&5
7437 ac_cv_type_ssize_t
=no
7440 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7442 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7443 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
7444 if test $ac_cv_type_ssize_t = yes; then
7446 cat >>confdefs.h
<<\_ACEOF
7447 #define HAVE_SSIZE_T 1
7453 # Sizes of various common basic types
7454 # ANSI C requires sizeof(char) == 1, so no need to check it
7455 { echo "$as_me:$LINENO: checking for int" >&5
7456 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
7457 if test "${ac_cv_type_int+set}" = set; then
7458 echo $ECHO_N "(cached) $ECHO_C" >&6
7460 cat >conftest.
$ac_ext <<_ACEOF
7463 cat confdefs.h
>>conftest.
$ac_ext
7464 cat >>conftest.
$ac_ext <<_ACEOF
7465 /* end confdefs.h. */
7466 $ac_includes_default
7467 typedef int ac__type_new_;
7471 if ((ac__type_new_ *) 0)
7473 if (sizeof (ac__type_new_))
7479 rm -f conftest.
$ac_objext
7480 if { (ac_try
="$ac_compile"
7482 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7483 *) ac_try_echo=$ac_try;;
7485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7486 (eval "$ac_compile") 2>conftest.er1
7488 grep -v '^ *+' conftest.er1 >conftest.err
7490 cat conftest.err >&5
7491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7492 (exit $ac_status); } && {
7493 test -z "$ac_c_werror_flag" ||
7494 test ! -s conftest.err
7495 } && test -s conftest.$ac_objext; then
7498 echo "$as_me: failed program was:" >&5
7499 sed 's/^/| /' conftest.$ac_ext >&5
7504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7506 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7507 echo "${ECHO_T}$ac_cv_type_int" >&6; }
7509 # The cast to long int works around a bug in the HP C Compiler
7510 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7511 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
7512 # This bug is HP SR number 8606223364.
7513 { echo "$as_me:$LINENO: checking size of int" >&5
7514 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
7515 if test "${ac_cv_sizeof_int+set}" = set; then
7516 echo $ECHO_N "(cached) $ECHO_C" >&6
7518 if test "$cross_compiling" = yes; then
7519 # Depending upon the size, compute the lo and hi bounds.
7520 cat >conftest.$ac_ext <<_ACEOF
7523 cat confdefs.h >>conftest.$ac_ext
7524 cat >>conftest.$ac_ext <<_ACEOF
7525 /* end confdefs.h. */
7526 $ac_includes_default
7527 typedef int ac__type_sizeof_;
7531 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7538 rm -f conftest.$ac_objext
7539 if { (ac_try="$ac_compile"
7541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7542 *) ac_try_echo=$ac_try;;
7544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7545 (eval "$ac_compile") 2>conftest.er1
7547 grep -v '^
*+' conftest.er1 >conftest.err
7549 cat conftest.err >&5
7550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551 (exit $ac_status); } && {
7552 test -z "$ac_c_werror_flag" ||
7553 test ! -s conftest.err
7554 } && test -s conftest.$ac_objext; then
7557 cat >conftest.$ac_ext <<_ACEOF
7560 cat confdefs.h >>conftest.$ac_ext
7561 cat >>conftest.$ac_ext <<_ACEOF
7562 /* end confdefs.h. */
7563 $ac_includes_default
7564 typedef int ac__type_sizeof_;
7568 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7575 rm -f conftest.$ac_objext
7576 if { (ac_try="$ac_compile"
7578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7579 *) ac_try_echo=$ac_try;;
7581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7582 (eval "$ac_compile") 2>conftest.er1
7584 grep -v '^
*+' conftest.er1 >conftest.err
7586 cat conftest.err >&5
7587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588 (exit $ac_status); } && {
7589 test -z "$ac_c_werror_flag" ||
7590 test ! -s conftest.err
7591 } && test -s conftest.$ac_objext; then
7592 ac_hi=$ac_mid; break
7594 echo "$as_me: failed program was:" >&5
7595 sed 's
/^
/|
/' conftest.$ac_ext >&5
7597 ac_lo=`expr $ac_mid + 1`
7598 if test $ac_lo -le $ac_mid; then
7602 ac_mid=`expr 2 '*' $ac_mid + 1`
7605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7608 echo "$as_me: failed program was:" >&5
7609 sed 's
/^
/|
/' conftest.$ac_ext >&5
7611 cat >conftest.$ac_ext <<_ACEOF
7614 cat confdefs.h >>conftest.$ac_ext
7615 cat >>conftest.$ac_ext <<_ACEOF
7616 /* end confdefs.h. */
7617 $ac_includes_default
7618 typedef int ac__type_sizeof_;
7622 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7629 rm -f conftest.$ac_objext
7630 if { (ac_try="$ac_compile"
7632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7633 *) ac_try_echo=$ac_try;;
7635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7636 (eval "$ac_compile") 2>conftest.er1
7638 grep -v '^
*+' conftest.er1 >conftest.err
7640 cat conftest.err >&5
7641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642 (exit $ac_status); } && {
7643 test -z "$ac_c_werror_flag" ||
7644 test ! -s conftest.err
7645 } && test -s conftest.$ac_objext; then
7648 cat >conftest.$ac_ext <<_ACEOF
7651 cat confdefs.h >>conftest.$ac_ext
7652 cat >>conftest.$ac_ext <<_ACEOF
7653 /* end confdefs.h. */
7654 $ac_includes_default
7655 typedef int ac__type_sizeof_;
7659 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7666 rm -f conftest.$ac_objext
7667 if { (ac_try="$ac_compile"
7669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7670 *) ac_try_echo=$ac_try;;
7672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7673 (eval "$ac_compile") 2>conftest.er1
7675 grep -v '^
*+' conftest.er1 >conftest.err
7677 cat conftest.err >&5
7678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7679 (exit $ac_status); } && {
7680 test -z "$ac_c_werror_flag" ||
7681 test ! -s conftest.err
7682 } && test -s conftest.$ac_objext; then
7683 ac_lo=$ac_mid; break
7685 echo "$as_me: failed program was:" >&5
7686 sed 's
/^
/|
/' conftest.$ac_ext >&5
7688 ac_hi=`expr '(' $ac_mid ')' - 1`
7689 if test $ac_mid -le $ac_hi; then
7693 ac_mid=`expr 2 '*' $ac_mid`
7696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7699 echo "$as_me: failed program was:" >&5
7700 sed 's
/^
/|
/' conftest.$ac_ext >&5
7705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7709 # Binary search between lo and hi bounds.
7710 while test "x$ac_lo" != "x$ac_hi"; do
7711 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7712 cat >conftest.$ac_ext <<_ACEOF
7715 cat confdefs.h >>conftest.$ac_ext
7716 cat >>conftest.$ac_ext <<_ACEOF
7717 /* end confdefs.h. */
7718 $ac_includes_default
7719 typedef int ac__type_sizeof_;
7723 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7730 rm -f conftest.$ac_objext
7731 if { (ac_try="$ac_compile"
7733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7734 *) ac_try_echo=$ac_try;;
7736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7737 (eval "$ac_compile") 2>conftest.er1
7739 grep -v '^
*+' conftest.er1 >conftest.err
7741 cat conftest.err >&5
7742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743 (exit $ac_status); } && {
7744 test -z "$ac_c_werror_flag" ||
7745 test ! -s conftest.err
7746 } && test -s conftest.$ac_objext; then
7749 echo "$as_me: failed program was:" >&5
7750 sed 's
/^
/|
/' conftest.$ac_ext >&5
7752 ac_lo=`expr '(' $ac_mid ')' + 1`
7755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7758 ?*) ac_cv_sizeof_int=$ac_lo;;
7759 '') if test "$ac_cv_type_int" = yes; then
7760 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7761 See \`config.log' for more details.
" >&5
7762 echo "$as_me: error
: cannot compute sizeof
(int
)
7763 See \
`config.log' for more details." >&2;}
7764 { (exit 77); exit 77; }; }
7770 cat >conftest.$ac_ext <<_ACEOF
7773 cat confdefs.h >>conftest.$ac_ext
7774 cat >>conftest.$ac_ext <<_ACEOF
7775 /* end confdefs.h. */
7776 $ac_includes_default
7777 typedef int ac__type_sizeof_;
7778 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7779 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7786 FILE *f = fopen ("conftest.val", "w");
7789 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7791 long int i = longval ();
7792 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7794 fprintf (f, "%ld\n", i);
7798 unsigned long int i = ulongval ();
7799 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7801 fprintf (f, "%lu\n", i);
7803 return ferror (f) || fclose (f) != 0;
7809 rm -f conftest$ac_exeext
7810 if { (ac_try="$ac_link"
7812 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7813 *) ac_try_echo
=$ac_try;;
7815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7816 (eval "$ac_link") 2>&5
7818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7820 { (case "(($ac_try" in
7821 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7822 *) ac_try_echo=$ac_try;;
7824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7825 (eval "$ac_try") 2>&5
7827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828 (exit $ac_status); }; }; then
7829 ac_cv_sizeof_int=`cat conftest.val
`
7831 echo "$as_me: program exited with status $ac_status" >&5
7832 echo "$as_me: failed program was:" >&5
7833 sed 's/^/| /' conftest.$ac_ext >&5
7836 if test "$ac_cv_type_int" = yes; then
7837 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7838 See \`config.log
' for more details." >&5
7839 echo "$as_me: error: cannot compute sizeof (int)
7840 See \`config.log' for more details.
" >&2;}
7841 { (exit 77); exit 77; }; }
7846 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7850 { echo "$as_me:$LINENO: result
: $ac_cv_sizeof_int" >&5
7851 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7855 cat >>confdefs.h <<_ACEOF
7856 #define SIZEOF_INT $ac_cv_sizeof_int
7860 { echo "$as_me:$LINENO: checking
for long
" >&5
7861 echo $ECHO_N "checking
for long...
$ECHO_C" >&6; }
7862 if test "${ac_cv_type_long+set}" = set; then
7863 echo $ECHO_N "(cached
) $ECHO_C" >&6
7865 cat >conftest.$ac_ext <<_ACEOF
7868 cat confdefs.h >>conftest.$ac_ext
7869 cat >>conftest.$ac_ext <<_ACEOF
7870 /* end confdefs.h. */
7871 $ac_includes_default
7872 typedef long ac__type_new_;
7876 if ((ac__type_new_ *) 0)
7878 if (sizeof (ac__type_new_))
7884 rm -f conftest.$ac_objext
7885 if { (ac_try="$ac_compile"
7887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7888 *) ac_try_echo=$ac_try;;
7890 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7891 (eval "$ac_compile") 2>conftest.er1
7893 grep -v '^ *+' conftest.er1 >conftest.err
7895 cat conftest.err >&5
7896 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7897 (exit $ac_status); } && {
7898 test -z "$ac_c_werror_flag" ||
7899 test ! -s conftest.err
7900 } && test -s conftest.$ac_objext; then
7903 echo "$as_me: failed program was
:" >&5
7904 sed 's/^/| /' conftest.$ac_ext >&5
7909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7911 { echo "$as_me:$LINENO: result
: $ac_cv_type_long" >&5
7912 echo "${ECHO_T}$ac_cv_type_long" >&6; }
7914 # The cast to long int works around a bug in the HP C Compiler
7915 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7916 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7917 # This bug is HP SR number 8606223364.
7918 { echo "$as_me:$LINENO: checking size of long
" >&5
7919 echo $ECHO_N "checking size of long...
$ECHO_C" >&6; }
7920 if test "${ac_cv_sizeof_long+set}" = set; then
7921 echo $ECHO_N "(cached
) $ECHO_C" >&6
7923 if test "$cross_compiling" = yes; then
7924 # Depending upon the size, compute the lo and hi bounds.
7925 cat >conftest.$ac_ext <<_ACEOF
7928 cat confdefs.h >>conftest.$ac_ext
7929 cat >>conftest.$ac_ext <<_ACEOF
7930 /* end confdefs.h. */
7931 $ac_includes_default
7932 typedef long ac__type_sizeof_;
7936 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7943 rm -f conftest.$ac_objext
7944 if { (ac_try="$ac_compile"
7946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7947 *) ac_try_echo=$ac_try;;
7949 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7950 (eval "$ac_compile") 2>conftest.er1
7952 grep -v '^ *+' conftest.er1 >conftest.err
7954 cat conftest.err >&5
7955 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7956 (exit $ac_status); } && {
7957 test -z "$ac_c_werror_flag" ||
7958 test ! -s conftest.err
7959 } && test -s conftest.$ac_objext; then
7962 cat >conftest.$ac_ext <<_ACEOF
7965 cat confdefs.h >>conftest.$ac_ext
7966 cat >>conftest.$ac_ext <<_ACEOF
7967 /* end confdefs.h. */
7968 $ac_includes_default
7969 typedef long ac__type_sizeof_;
7973 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7980 rm -f conftest.$ac_objext
7981 if { (ac_try="$ac_compile"
7983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7984 *) ac_try_echo=$ac_try;;
7986 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7987 (eval "$ac_compile") 2>conftest.er1
7989 grep -v '^ *+' conftest.er1 >conftest.err
7991 cat conftest.err >&5
7992 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7993 (exit $ac_status); } && {
7994 test -z "$ac_c_werror_flag" ||
7995 test ! -s conftest.err
7996 } && test -s conftest.$ac_objext; then
7997 ac_hi=$ac_mid; break
7999 echo "$as_me: failed program was
:" >&5
8000 sed 's/^/| /' conftest.$ac_ext >&5
8002 ac_lo=`expr $ac_mid + 1`
8003 if test $ac_lo -le $ac_mid; then
8007 ac_mid=`expr 2 '*' $ac_mid + 1`
8010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8013 echo "$as_me: failed program was
:" >&5
8014 sed 's/^/| /' conftest.$ac_ext >&5
8016 cat >conftest.$ac_ext <<_ACEOF
8019 cat confdefs.h >>conftest.$ac_ext
8020 cat >>conftest.$ac_ext <<_ACEOF
8021 /* end confdefs.h. */
8022 $ac_includes_default
8023 typedef long ac__type_sizeof_;
8027 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8034 rm -f conftest.$ac_objext
8035 if { (ac_try="$ac_compile"
8037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8038 *) ac_try_echo=$ac_try;;
8040 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8041 (eval "$ac_compile") 2>conftest.er1
8043 grep -v '^ *+' conftest.er1 >conftest.err
8045 cat conftest.err >&5
8046 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8047 (exit $ac_status); } && {
8048 test -z "$ac_c_werror_flag" ||
8049 test ! -s conftest.err
8050 } && test -s conftest.$ac_objext; then
8053 cat >conftest.$ac_ext <<_ACEOF
8056 cat confdefs.h >>conftest.$ac_ext
8057 cat >>conftest.$ac_ext <<_ACEOF
8058 /* end confdefs.h. */
8059 $ac_includes_default
8060 typedef long ac__type_sizeof_;
8064 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8071 rm -f conftest.$ac_objext
8072 if { (ac_try="$ac_compile"
8074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8075 *) ac_try_echo=$ac_try;;
8077 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8078 (eval "$ac_compile") 2>conftest.er1
8080 grep -v '^ *+' conftest.er1 >conftest.err
8082 cat conftest.err >&5
8083 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8084 (exit $ac_status); } && {
8085 test -z "$ac_c_werror_flag" ||
8086 test ! -s conftest.err
8087 } && test -s conftest.$ac_objext; then
8088 ac_lo=$ac_mid; break
8090 echo "$as_me: failed program was
:" >&5
8091 sed 's/^/| /' conftest.$ac_ext >&5
8093 ac_hi=`expr '(' $ac_mid ')' - 1`
8094 if test $ac_mid -le $ac_hi; then
8098 ac_mid=`expr 2 '*' $ac_mid`
8101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8104 echo "$as_me: failed program was
:" >&5
8105 sed 's/^/| /' conftest.$ac_ext >&5
8110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8114 # Binary search between lo and hi bounds.
8115 while test "x
$ac_lo" != "x
$ac_hi"; do
8116 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8117 cat >conftest.$ac_ext <<_ACEOF
8120 cat confdefs.h >>conftest.$ac_ext
8121 cat >>conftest.$ac_ext <<_ACEOF
8122 /* end confdefs.h. */
8123 $ac_includes_default
8124 typedef long ac__type_sizeof_;
8128 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8135 rm -f conftest.$ac_objext
8136 if { (ac_try="$ac_compile"
8138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8139 *) ac_try_echo=$ac_try;;
8141 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8142 (eval "$ac_compile") 2>conftest.er1
8144 grep -v '^ *+' conftest.er1 >conftest.err
8146 cat conftest.err >&5
8147 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8148 (exit $ac_status); } && {
8149 test -z "$ac_c_werror_flag" ||
8150 test ! -s conftest.err
8151 } && test -s conftest.$ac_objext; then
8154 echo "$as_me: failed program was
:" >&5
8155 sed 's/^/| /' conftest.$ac_ext >&5
8157 ac_lo=`expr '(' $ac_mid ')' + 1`
8160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8163 ?*) ac_cv_sizeof_long=$ac_lo;;
8164 '') if test "$ac_cv_type_long" = yes; then
8165 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long
)
8166 See \
`config.log' for more details." >&5
8167 echo "$as_me: error: cannot compute sizeof (long)
8168 See \`config.log
' for more details." >&2;}
8169 { (exit 77); exit 77; }; }
8175 cat >conftest.$ac_ext <<_ACEOF
8178 cat confdefs.h >>conftest.$ac_ext
8179 cat >>conftest.$ac_ext <<_ACEOF
8180 /* end confdefs.h. */
8181 $ac_includes_default
8182 typedef long ac__type_sizeof_;
8183 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8184 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8191 FILE *f = fopen ("conftest.val", "w");
8194 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8196 long int i = longval ();
8197 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8199 fprintf (f, "%ld\n", i);
8203 unsigned long int i = ulongval ();
8204 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8206 fprintf (f, "%lu\n", i);
8208 return ferror (f) || fclose (f) != 0;
8214 rm -f conftest$ac_exeext
8215 if { (ac_try="$ac_link"
8217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8218 *) ac_try_echo=$ac_try;;
8220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8221 (eval "$ac_link") 2>&5
8223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
8225 { (case "(($ac_try" in
8226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8227 *) ac_try_echo=$ac_try;;
8229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8230 (eval "$ac_try") 2>&5
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); }; }; then
8234 ac_cv_sizeof_long=`cat conftest.val`
8236 echo "$as_me: program exited with status $ac_status" >&5
8237 echo "$as_me: failed program was:" >&5
8238 sed 's
/^
/|
/' conftest.$ac_ext >&5
8241 if test "$ac_cv_type_long" = yes; then
8242 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8243 See \`config.log' for more details.
" >&5
8244 echo "$as_me: error
: cannot compute sizeof
(long
)
8245 See \
`config.log' for more details." >&2;}
8246 { (exit 77); exit 77; }; }
8251 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8255 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8256 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
8260 cat >>confdefs.h <<_ACEOF
8261 #define SIZEOF_LONG $ac_cv_sizeof_long
8265 { echo "$as_me:$LINENO: checking for void *" >&5
8266 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
8267 if test "${ac_cv_type_void_p+set}" = set; then
8268 echo $ECHO_N "(cached) $ECHO_C" >&6
8270 cat >conftest.$ac_ext <<_ACEOF
8273 cat confdefs.h >>conftest.$ac_ext
8274 cat >>conftest.$ac_ext <<_ACEOF
8275 /* end confdefs.h. */
8276 $ac_includes_default
8277 typedef void * ac__type_new_;
8281 if ((ac__type_new_ *) 0)
8283 if (sizeof (ac__type_new_))
8289 rm -f conftest.$ac_objext
8290 if { (ac_try="$ac_compile"
8292 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8293 *) ac_try_echo
=$ac_try;;
8295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8296 (eval "$ac_compile") 2>conftest.er1
8298 grep -v '^ *+' conftest.er1
>conftest.err
8300 cat conftest.err
>&5
8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 (exit $ac_status); } && {
8303 test -z "$ac_c_werror_flag" ||
8304 test ! -s conftest.err
8305 } && test -s conftest.
$ac_objext; then
8306 ac_cv_type_void_p
=yes
8308 echo "$as_me: failed program was:" >&5
8309 sed 's/^/| /' conftest.
$ac_ext >&5
8311 ac_cv_type_void_p
=no
8314 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8316 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
8317 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
8319 # The cast to long int works around a bug in the HP C Compiler
8320 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8321 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8322 # This bug is HP SR number 8606223364.
8323 { echo "$as_me:$LINENO: checking size of void *" >&5
8324 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
8325 if test "${ac_cv_sizeof_void_p+set}" = set; then
8326 echo $ECHO_N "(cached) $ECHO_C" >&6
8328 if test "$cross_compiling" = yes; then
8329 # Depending upon the size, compute the lo and hi bounds.
8330 cat >conftest.
$ac_ext <<_ACEOF
8333 cat confdefs.h
>>conftest.
$ac_ext
8334 cat >>conftest.
$ac_ext <<_ACEOF
8335 /* end confdefs.h. */
8336 $ac_includes_default
8337 typedef void * ac__type_sizeof_;
8341 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8348 rm -f conftest.
$ac_objext
8349 if { (ac_try
="$ac_compile"
8351 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8352 *) ac_try_echo=$ac_try;;
8354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8355 (eval "$ac_compile") 2>conftest.er1
8357 grep -v '^ *+' conftest.er1 >conftest.err
8359 cat conftest.err >&5
8360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361 (exit $ac_status); } && {
8362 test -z "$ac_c_werror_flag" ||
8363 test ! -s conftest.err
8364 } && test -s conftest.$ac_objext; then
8367 cat >conftest.$ac_ext <<_ACEOF
8370 cat confdefs.h >>conftest.$ac_ext
8371 cat >>conftest.$ac_ext <<_ACEOF
8372 /* end confdefs.h. */
8373 $ac_includes_default
8374 typedef void * ac__type_sizeof_;
8378 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8385 rm -f conftest.$ac_objext
8386 if { (ac_try="$ac_compile"
8388 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8389 *) ac_try_echo
=$ac_try;;
8391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8392 (eval "$ac_compile") 2>conftest.er1
8394 grep -v '^ *+' conftest.er1
>conftest.err
8396 cat conftest.err
>&5
8397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398 (exit $ac_status); } && {
8399 test -z "$ac_c_werror_flag" ||
8400 test ! -s conftest.err
8401 } && test -s conftest.
$ac_objext; then
8402 ac_hi
=$ac_mid; break
8404 echo "$as_me: failed program was:" >&5
8405 sed 's/^/| /' conftest.
$ac_ext >&5
8407 ac_lo
=`expr $ac_mid + 1`
8408 if test $ac_lo -le $ac_mid; then
8412 ac_mid
=`expr 2 '*' $ac_mid + 1`
8415 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8418 echo "$as_me: failed program was:" >&5
8419 sed 's/^/| /' conftest.
$ac_ext >&5
8421 cat >conftest.
$ac_ext <<_ACEOF
8424 cat confdefs.h
>>conftest.
$ac_ext
8425 cat >>conftest.
$ac_ext <<_ACEOF
8426 /* end confdefs.h. */
8427 $ac_includes_default
8428 typedef void * ac__type_sizeof_;
8432 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8439 rm -f conftest.
$ac_objext
8440 if { (ac_try
="$ac_compile"
8442 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8443 *) ac_try_echo=$ac_try;;
8445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8446 (eval "$ac_compile") 2>conftest.er1
8448 grep -v '^ *+' conftest.er1 >conftest.err
8450 cat conftest.err >&5
8451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 (exit $ac_status); } && {
8453 test -z "$ac_c_werror_flag" ||
8454 test ! -s conftest.err
8455 } && test -s conftest.$ac_objext; then
8458 cat >conftest.$ac_ext <<_ACEOF
8461 cat confdefs.h >>conftest.$ac_ext
8462 cat >>conftest.$ac_ext <<_ACEOF
8463 /* end confdefs.h. */
8464 $ac_includes_default
8465 typedef void * ac__type_sizeof_;
8469 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8476 rm -f conftest.$ac_objext
8477 if { (ac_try="$ac_compile"
8479 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8480 *) ac_try_echo
=$ac_try;;
8482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8483 (eval "$ac_compile") 2>conftest.er1
8485 grep -v '^ *+' conftest.er1
>conftest.err
8487 cat conftest.err
>&5
8488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489 (exit $ac_status); } && {
8490 test -z "$ac_c_werror_flag" ||
8491 test ! -s conftest.err
8492 } && test -s conftest.
$ac_objext; then
8493 ac_lo
=$ac_mid; break
8495 echo "$as_me: failed program was:" >&5
8496 sed 's/^/| /' conftest.
$ac_ext >&5
8498 ac_hi
=`expr '(' $ac_mid ')' - 1`
8499 if test $ac_mid -le $ac_hi; then
8503 ac_mid
=`expr 2 '*' $ac_mid`
8506 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8509 echo "$as_me: failed program was:" >&5
8510 sed 's/^/| /' conftest.
$ac_ext >&5
8515 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8518 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8519 # Binary search between lo and hi bounds.
8520 while test "x$ac_lo" != "x$ac_hi"; do
8521 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8522 cat >conftest.
$ac_ext <<_ACEOF
8525 cat confdefs.h
>>conftest.
$ac_ext
8526 cat >>conftest.
$ac_ext <<_ACEOF
8527 /* end confdefs.h. */
8528 $ac_includes_default
8529 typedef void * ac__type_sizeof_;
8533 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8540 rm -f conftest.
$ac_objext
8541 if { (ac_try
="$ac_compile"
8543 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8544 *) ac_try_echo=$ac_try;;
8546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8547 (eval "$ac_compile") 2>conftest.er1
8549 grep -v '^ *+' conftest.er1 >conftest.err
8551 cat conftest.err >&5
8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 (exit $ac_status); } && {
8554 test -z "$ac_c_werror_flag" ||
8555 test ! -s conftest.err
8556 } && test -s conftest.$ac_objext; then
8559 echo "$as_me: failed program was:" >&5
8560 sed 's/^/| /' conftest.$ac_ext >&5
8562 ac_lo=`expr '(' $ac_mid ')' + 1`
8565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8568 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8569 '') if test "$ac_cv_type_void_p" = yes; then
8570 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8571 See \`config.log
' for more details." >&5
8572 echo "$as_me: error: cannot compute sizeof (void *)
8573 See \`config.log' for more details.
" >&2;}
8574 { (exit 77); exit 77; }; }
8576 ac_cv_sizeof_void_p=0
8580 cat >conftest.$ac_ext <<_ACEOF
8583 cat confdefs.h >>conftest.$ac_ext
8584 cat >>conftest.$ac_ext <<_ACEOF
8585 /* end confdefs.h. */
8586 $ac_includes_default
8587 typedef void * ac__type_sizeof_;
8588 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8589 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8596 FILE *f = fopen ("conftest.val
", "w
");
8599 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8601 long int i = longval ();
8602 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8604 fprintf (f, "%ld
\n", i);
8608 unsigned long int i = ulongval ();
8609 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8611 fprintf (f, "%lu
\n", i);
8613 return ferror (f) || fclose (f) != 0;
8619 rm -f conftest$ac_exeext
8620 if { (ac_try="$ac_link"
8622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8623 *) ac_try_echo=$ac_try;;
8625 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8626 (eval "$ac_link") 2>&5
8628 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8629 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8630 { (case "(($ac_try" in
8631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8632 *) ac_try_echo=$ac_try;;
8634 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8635 (eval "$ac_try") 2>&5
8637 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8638 (exit $ac_status); }; }; then
8639 ac_cv_sizeof_void_p=`cat conftest.val`
8641 echo "$as_me: program exited with status
$ac_status" >&5
8642 echo "$as_me: failed program was
:" >&5
8643 sed 's/^/| /' conftest.$ac_ext >&5
8646 if test "$ac_cv_type_void_p" = yes; then
8647 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(void
*)
8648 See \
`config.log' for more details." >&5
8649 echo "$as_me: error: cannot compute sizeof (void *)
8650 See \`config.log
' for more details." >&2;}
8651 { (exit 77); exit 77; }; }
8653 ac_cv_sizeof_void_p=0
8656 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8660 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8661 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8665 cat >>confdefs.h <<_ACEOF
8666 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8670 { echo "$as_me:$LINENO: checking for short" >&5
8671 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
8672 if test "${ac_cv_type_short+set}" = set; then
8673 echo $ECHO_N "(cached) $ECHO_C" >&6
8675 cat >conftest.$ac_ext <<_ACEOF
8678 cat confdefs.h >>conftest.$ac_ext
8679 cat >>conftest.$ac_ext <<_ACEOF
8680 /* end confdefs.h. */
8681 $ac_includes_default
8682 typedef short ac__type_new_;
8686 if ((ac__type_new_ *) 0)
8688 if (sizeof (ac__type_new_))
8694 rm -f conftest.$ac_objext
8695 if { (ac_try="$ac_compile"
8697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8698 *) ac_try_echo=$ac_try;;
8700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8701 (eval "$ac_compile") 2>conftest.er1
8703 grep -v '^
*+' conftest.er1 >conftest.err
8705 cat conftest.err >&5
8706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707 (exit $ac_status); } && {
8708 test -z "$ac_c_werror_flag" ||
8709 test ! -s conftest.err
8710 } && test -s conftest.$ac_objext; then
8711 ac_cv_type_short=yes
8713 echo "$as_me: failed program was:" >&5
8714 sed 's
/^
/|
/' conftest.$ac_ext >&5
8719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8721 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8722 echo "${ECHO_T}$ac_cv_type_short" >&6; }
8724 # The cast to long int works around a bug in the HP C Compiler
8725 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8726 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8727 # This bug is HP SR number 8606223364.
8728 { echo "$as_me:$LINENO: checking size of short" >&5
8729 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8730 if test "${ac_cv_sizeof_short+set}" = set; then
8731 echo $ECHO_N "(cached) $ECHO_C" >&6
8733 if test "$cross_compiling" = yes; then
8734 # Depending upon the size, compute the lo and hi bounds.
8735 cat >conftest.
$ac_ext <<_ACEOF
8738 cat confdefs.h
>>conftest.
$ac_ext
8739 cat >>conftest.
$ac_ext <<_ACEOF
8740 /* end confdefs.h. */
8741 $ac_includes_default
8742 typedef short ac__type_sizeof_;
8746 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8753 rm -f conftest.
$ac_objext
8754 if { (ac_try
="$ac_compile"
8756 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8757 *) ac_try_echo=$ac_try;;
8759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8760 (eval "$ac_compile") 2>conftest.er1
8762 grep -v '^ *+' conftest.er1 >conftest.err
8764 cat conftest.err >&5
8765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766 (exit $ac_status); } && {
8767 test -z "$ac_c_werror_flag" ||
8768 test ! -s conftest.err
8769 } && test -s conftest.$ac_objext; then
8772 cat >conftest.$ac_ext <<_ACEOF
8775 cat confdefs.h >>conftest.$ac_ext
8776 cat >>conftest.$ac_ext <<_ACEOF
8777 /* end confdefs.h. */
8778 $ac_includes_default
8779 typedef short ac__type_sizeof_;
8783 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8790 rm -f conftest.$ac_objext
8791 if { (ac_try="$ac_compile"
8793 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8794 *) ac_try_echo
=$ac_try;;
8796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8797 (eval "$ac_compile") 2>conftest.er1
8799 grep -v '^ *+' conftest.er1
>conftest.err
8801 cat conftest.err
>&5
8802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803 (exit $ac_status); } && {
8804 test -z "$ac_c_werror_flag" ||
8805 test ! -s conftest.err
8806 } && test -s conftest.
$ac_objext; then
8807 ac_hi
=$ac_mid; break
8809 echo "$as_me: failed program was:" >&5
8810 sed 's/^/| /' conftest.
$ac_ext >&5
8812 ac_lo
=`expr $ac_mid + 1`
8813 if test $ac_lo -le $ac_mid; then
8817 ac_mid
=`expr 2 '*' $ac_mid + 1`
8820 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8823 echo "$as_me: failed program was:" >&5
8824 sed 's/^/| /' conftest.
$ac_ext >&5
8826 cat >conftest.
$ac_ext <<_ACEOF
8829 cat confdefs.h
>>conftest.
$ac_ext
8830 cat >>conftest.
$ac_ext <<_ACEOF
8831 /* end confdefs.h. */
8832 $ac_includes_default
8833 typedef short ac__type_sizeof_;
8837 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8844 rm -f conftest.
$ac_objext
8845 if { (ac_try
="$ac_compile"
8847 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8848 *) ac_try_echo=$ac_try;;
8850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8851 (eval "$ac_compile") 2>conftest.er1
8853 grep -v '^ *+' conftest.er1 >conftest.err
8855 cat conftest.err >&5
8856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857 (exit $ac_status); } && {
8858 test -z "$ac_c_werror_flag" ||
8859 test ! -s conftest.err
8860 } && test -s conftest.$ac_objext; then
8863 cat >conftest.$ac_ext <<_ACEOF
8866 cat confdefs.h >>conftest.$ac_ext
8867 cat >>conftest.$ac_ext <<_ACEOF
8868 /* end confdefs.h. */
8869 $ac_includes_default
8870 typedef short ac__type_sizeof_;
8874 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8881 rm -f conftest.$ac_objext
8882 if { (ac_try="$ac_compile"
8884 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8885 *) ac_try_echo
=$ac_try;;
8887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8888 (eval "$ac_compile") 2>conftest.er1
8890 grep -v '^ *+' conftest.er1
>conftest.err
8892 cat conftest.err
>&5
8893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894 (exit $ac_status); } && {
8895 test -z "$ac_c_werror_flag" ||
8896 test ! -s conftest.err
8897 } && test -s conftest.
$ac_objext; then
8898 ac_lo
=$ac_mid; break
8900 echo "$as_me: failed program was:" >&5
8901 sed 's/^/| /' conftest.
$ac_ext >&5
8903 ac_hi
=`expr '(' $ac_mid ')' - 1`
8904 if test $ac_mid -le $ac_hi; then
8908 ac_mid
=`expr 2 '*' $ac_mid`
8911 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8914 echo "$as_me: failed program was:" >&5
8915 sed 's/^/| /' conftest.
$ac_ext >&5
8920 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8923 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8924 # Binary search between lo and hi bounds.
8925 while test "x$ac_lo" != "x$ac_hi"; do
8926 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8927 cat >conftest.
$ac_ext <<_ACEOF
8930 cat confdefs.h
>>conftest.
$ac_ext
8931 cat >>conftest.
$ac_ext <<_ACEOF
8932 /* end confdefs.h. */
8933 $ac_includes_default
8934 typedef short ac__type_sizeof_;
8938 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8945 rm -f conftest.
$ac_objext
8946 if { (ac_try
="$ac_compile"
8948 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8949 *) ac_try_echo=$ac_try;;
8951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8952 (eval "$ac_compile") 2>conftest.er1
8954 grep -v '^ *+' conftest.er1 >conftest.err
8956 cat conftest.err >&5
8957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958 (exit $ac_status); } && {
8959 test -z "$ac_c_werror_flag" ||
8960 test ! -s conftest.err
8961 } && test -s conftest.$ac_objext; then
8964 echo "$as_me: failed program was:" >&5
8965 sed 's/^/| /' conftest.$ac_ext >&5
8967 ac_lo=`expr '(' $ac_mid ')' + 1`
8970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8973 ?*) ac_cv_sizeof_short=$ac_lo;;
8974 '') if test "$ac_cv_type_short" = yes; then
8975 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8976 See \`config.log
' for more details." >&5
8977 echo "$as_me: error: cannot compute sizeof (short)
8978 See \`config.log' for more details.
" >&2;}
8979 { (exit 77); exit 77; }; }
8981 ac_cv_sizeof_short=0
8985 cat >conftest.$ac_ext <<_ACEOF
8988 cat confdefs.h >>conftest.$ac_ext
8989 cat >>conftest.$ac_ext <<_ACEOF
8990 /* end confdefs.h. */
8991 $ac_includes_default
8992 typedef short ac__type_sizeof_;
8993 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8994 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9001 FILE *f = fopen ("conftest.val
", "w
");
9004 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9006 long int i = longval ();
9007 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9009 fprintf (f, "%ld
\n", i);
9013 unsigned long int i = ulongval ();
9014 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9016 fprintf (f, "%lu
\n", i);
9018 return ferror (f) || fclose (f) != 0;
9024 rm -f conftest$ac_exeext
9025 if { (ac_try="$ac_link"
9027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9028 *) ac_try_echo=$ac_try;;
9030 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9031 (eval "$ac_link") 2>&5
9033 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9034 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9035 { (case "(($ac_try" in
9036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9037 *) ac_try_echo=$ac_try;;
9039 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9040 (eval "$ac_try") 2>&5
9042 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9043 (exit $ac_status); }; }; then
9044 ac_cv_sizeof_short=`cat conftest.val`
9046 echo "$as_me: program exited with status
$ac_status" >&5
9047 echo "$as_me: failed program was
:" >&5
9048 sed 's/^/| /' conftest.$ac_ext >&5
9051 if test "$ac_cv_type_short" = yes; then
9052 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(short
)
9053 See \
`config.log' for more details." >&5
9054 echo "$as_me: error: cannot compute sizeof (short)
9055 See \`config.log
' for more details." >&2;}
9056 { (exit 77); exit 77; }; }
9058 ac_cv_sizeof_short=0
9061 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9065 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
9066 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
9070 cat >>confdefs.h <<_ACEOF
9071 #define SIZEOF_SHORT $ac_cv_sizeof_short
9075 { echo "$as_me:$LINENO: checking for float" >&5
9076 echo $ECHO_N "checking for float... $ECHO_C" >&6; }
9077 if test "${ac_cv_type_float+set}" = set; then
9078 echo $ECHO_N "(cached) $ECHO_C" >&6
9080 cat >conftest.$ac_ext <<_ACEOF
9083 cat confdefs.h >>conftest.$ac_ext
9084 cat >>conftest.$ac_ext <<_ACEOF
9085 /* end confdefs.h. */
9086 $ac_includes_default
9087 typedef float ac__type_new_;
9091 if ((ac__type_new_ *) 0)
9093 if (sizeof (ac__type_new_))
9099 rm -f conftest.$ac_objext
9100 if { (ac_try="$ac_compile"
9102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9103 *) ac_try_echo=$ac_try;;
9105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9106 (eval "$ac_compile") 2>conftest.er1
9108 grep -v '^
*+' conftest.er1 >conftest.err
9110 cat conftest.err >&5
9111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112 (exit $ac_status); } && {
9113 test -z "$ac_c_werror_flag" ||
9114 test ! -s conftest.err
9115 } && test -s conftest.$ac_objext; then
9116 ac_cv_type_float=yes
9118 echo "$as_me: failed program was:" >&5
9119 sed 's
/^
/|
/' conftest.$ac_ext >&5
9124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9126 { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
9127 echo "${ECHO_T}$ac_cv_type_float" >&6; }
9129 # The cast to long int works around a bug in the HP C Compiler
9130 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9131 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9132 # This bug is HP SR number 8606223364.
9133 { echo "$as_me:$LINENO: checking size of float" >&5
9134 echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
9135 if test "${ac_cv_sizeof_float+set}" = set; then
9136 echo $ECHO_N "(cached) $ECHO_C" >&6
9138 if test "$cross_compiling" = yes; then
9139 # Depending upon the size, compute the lo and hi bounds.
9140 cat >conftest.
$ac_ext <<_ACEOF
9143 cat confdefs.h
>>conftest.
$ac_ext
9144 cat >>conftest.
$ac_ext <<_ACEOF
9145 /* end confdefs.h. */
9146 $ac_includes_default
9147 typedef float ac__type_sizeof_;
9151 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9158 rm -f conftest.
$ac_objext
9159 if { (ac_try
="$ac_compile"
9161 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9162 *) ac_try_echo=$ac_try;;
9164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9165 (eval "$ac_compile") 2>conftest.er1
9167 grep -v '^ *+' conftest.er1 >conftest.err
9169 cat conftest.err >&5
9170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171 (exit $ac_status); } && {
9172 test -z "$ac_c_werror_flag" ||
9173 test ! -s conftest.err
9174 } && test -s conftest.$ac_objext; then
9177 cat >conftest.$ac_ext <<_ACEOF
9180 cat confdefs.h >>conftest.$ac_ext
9181 cat >>conftest.$ac_ext <<_ACEOF
9182 /* end confdefs.h. */
9183 $ac_includes_default
9184 typedef float ac__type_sizeof_;
9188 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9195 rm -f conftest.$ac_objext
9196 if { (ac_try="$ac_compile"
9198 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9199 *) ac_try_echo
=$ac_try;;
9201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9202 (eval "$ac_compile") 2>conftest.er1
9204 grep -v '^ *+' conftest.er1
>conftest.err
9206 cat conftest.err
>&5
9207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208 (exit $ac_status); } && {
9209 test -z "$ac_c_werror_flag" ||
9210 test ! -s conftest.err
9211 } && test -s conftest.
$ac_objext; then
9212 ac_hi
=$ac_mid; break
9214 echo "$as_me: failed program was:" >&5
9215 sed 's/^/| /' conftest.
$ac_ext >&5
9217 ac_lo
=`expr $ac_mid + 1`
9218 if test $ac_lo -le $ac_mid; then
9222 ac_mid
=`expr 2 '*' $ac_mid + 1`
9225 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9228 echo "$as_me: failed program was:" >&5
9229 sed 's/^/| /' conftest.
$ac_ext >&5
9231 cat >conftest.
$ac_ext <<_ACEOF
9234 cat confdefs.h
>>conftest.
$ac_ext
9235 cat >>conftest.
$ac_ext <<_ACEOF
9236 /* end confdefs.h. */
9237 $ac_includes_default
9238 typedef float ac__type_sizeof_;
9242 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9249 rm -f conftest.
$ac_objext
9250 if { (ac_try
="$ac_compile"
9252 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9253 *) ac_try_echo=$ac_try;;
9255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9256 (eval "$ac_compile") 2>conftest.er1
9258 grep -v '^ *+' conftest.er1 >conftest.err
9260 cat conftest.err >&5
9261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262 (exit $ac_status); } && {
9263 test -z "$ac_c_werror_flag" ||
9264 test ! -s conftest.err
9265 } && test -s conftest.$ac_objext; then
9268 cat >conftest.$ac_ext <<_ACEOF
9271 cat confdefs.h >>conftest.$ac_ext
9272 cat >>conftest.$ac_ext <<_ACEOF
9273 /* end confdefs.h. */
9274 $ac_includes_default
9275 typedef float ac__type_sizeof_;
9279 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9286 rm -f conftest.$ac_objext
9287 if { (ac_try="$ac_compile"
9289 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9290 *) ac_try_echo
=$ac_try;;
9292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9293 (eval "$ac_compile") 2>conftest.er1
9295 grep -v '^ *+' conftest.er1
>conftest.err
9297 cat conftest.err
>&5
9298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299 (exit $ac_status); } && {
9300 test -z "$ac_c_werror_flag" ||
9301 test ! -s conftest.err
9302 } && test -s conftest.
$ac_objext; then
9303 ac_lo
=$ac_mid; break
9305 echo "$as_me: failed program was:" >&5
9306 sed 's/^/| /' conftest.
$ac_ext >&5
9308 ac_hi
=`expr '(' $ac_mid ')' - 1`
9309 if test $ac_mid -le $ac_hi; then
9313 ac_mid
=`expr 2 '*' $ac_mid`
9316 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9319 echo "$as_me: failed program was:" >&5
9320 sed 's/^/| /' conftest.
$ac_ext >&5
9325 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9328 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9329 # Binary search between lo and hi bounds.
9330 while test "x$ac_lo" != "x$ac_hi"; do
9331 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9332 cat >conftest.
$ac_ext <<_ACEOF
9335 cat confdefs.h
>>conftest.
$ac_ext
9336 cat >>conftest.
$ac_ext <<_ACEOF
9337 /* end confdefs.h. */
9338 $ac_includes_default
9339 typedef float ac__type_sizeof_;
9343 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9350 rm -f conftest.
$ac_objext
9351 if { (ac_try
="$ac_compile"
9353 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9354 *) ac_try_echo=$ac_try;;
9356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9357 (eval "$ac_compile") 2>conftest.er1
9359 grep -v '^ *+' conftest.er1 >conftest.err
9361 cat conftest.err >&5
9362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363 (exit $ac_status); } && {
9364 test -z "$ac_c_werror_flag" ||
9365 test ! -s conftest.err
9366 } && test -s conftest.$ac_objext; then
9369 echo "$as_me: failed program was:" >&5
9370 sed 's/^/| /' conftest.$ac_ext >&5
9372 ac_lo=`expr '(' $ac_mid ')' + 1`
9375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9378 ?*) ac_cv_sizeof_float=$ac_lo;;
9379 '') if test "$ac_cv_type_float" = yes; then
9380 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
9381 See \`config.log
' for more details." >&5
9382 echo "$as_me: error: cannot compute sizeof (float)
9383 See \`config.log' for more details.
" >&2;}
9384 { (exit 77); exit 77; }; }
9386 ac_cv_sizeof_float=0
9390 cat >conftest.$ac_ext <<_ACEOF
9393 cat confdefs.h >>conftest.$ac_ext
9394 cat >>conftest.$ac_ext <<_ACEOF
9395 /* end confdefs.h. */
9396 $ac_includes_default
9397 typedef float ac__type_sizeof_;
9398 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9399 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9406 FILE *f = fopen ("conftest.val
", "w
");
9409 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9411 long int i = longval ();
9412 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9414 fprintf (f, "%ld
\n", i);
9418 unsigned long int i = ulongval ();
9419 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9421 fprintf (f, "%lu
\n", i);
9423 return ferror (f) || fclose (f) != 0;
9429 rm -f conftest$ac_exeext
9430 if { (ac_try="$ac_link"
9432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9433 *) ac_try_echo=$ac_try;;
9435 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9436 (eval "$ac_link") 2>&5
9438 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9439 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9440 { (case "(($ac_try" in
9441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9442 *) ac_try_echo=$ac_try;;
9444 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9445 (eval "$ac_try") 2>&5
9447 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9448 (exit $ac_status); }; }; then
9449 ac_cv_sizeof_float=`cat conftest.val`
9451 echo "$as_me: program exited with status
$ac_status" >&5
9452 echo "$as_me: failed program was
:" >&5
9453 sed 's/^/| /' conftest.$ac_ext >&5
9456 if test "$ac_cv_type_float" = yes; then
9457 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(float
)
9458 See \
`config.log' for more details." >&5
9459 echo "$as_me: error: cannot compute sizeof (float)
9460 See \`config.log
' for more details." >&2;}
9461 { (exit 77); exit 77; }; }
9463 ac_cv_sizeof_float=0
9466 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9470 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
9471 echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
9475 cat >>confdefs.h <<_ACEOF
9476 #define SIZEOF_FLOAT $ac_cv_sizeof_float
9480 { echo "$as_me:$LINENO: checking for double" >&5
9481 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
9482 if test "${ac_cv_type_double+set}" = set; then
9483 echo $ECHO_N "(cached) $ECHO_C" >&6
9485 cat >conftest.$ac_ext <<_ACEOF
9488 cat confdefs.h >>conftest.$ac_ext
9489 cat >>conftest.$ac_ext <<_ACEOF
9490 /* end confdefs.h. */
9491 $ac_includes_default
9492 typedef double ac__type_new_;
9496 if ((ac__type_new_ *) 0)
9498 if (sizeof (ac__type_new_))
9504 rm -f conftest.$ac_objext
9505 if { (ac_try="$ac_compile"
9507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9508 *) ac_try_echo=$ac_try;;
9510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9511 (eval "$ac_compile") 2>conftest.er1
9513 grep -v '^
*+' conftest.er1 >conftest.err
9515 cat conftest.err >&5
9516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517 (exit $ac_status); } && {
9518 test -z "$ac_c_werror_flag" ||
9519 test ! -s conftest.err
9520 } && test -s conftest.$ac_objext; then
9521 ac_cv_type_double=yes
9523 echo "$as_me: failed program was:" >&5
9524 sed 's
/^
/|
/' conftest.$ac_ext >&5
9526 ac_cv_type_double=no
9529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9531 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
9532 echo "${ECHO_T}$ac_cv_type_double" >&6; }
9534 # The cast to long int works around a bug in the HP C Compiler
9535 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9536 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9537 # This bug is HP SR number 8606223364.
9538 { echo "$as_me:$LINENO: checking size of double" >&5
9539 echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
9540 if test "${ac_cv_sizeof_double+set}" = set; then
9541 echo $ECHO_N "(cached) $ECHO_C" >&6
9543 if test "$cross_compiling" = yes; then
9544 # Depending upon the size, compute the lo and hi bounds.
9545 cat >conftest.
$ac_ext <<_ACEOF
9548 cat confdefs.h
>>conftest.
$ac_ext
9549 cat >>conftest.
$ac_ext <<_ACEOF
9550 /* end confdefs.h. */
9551 $ac_includes_default
9552 typedef double ac__type_sizeof_;
9556 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9563 rm -f conftest.
$ac_objext
9564 if { (ac_try
="$ac_compile"
9566 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9567 *) ac_try_echo=$ac_try;;
9569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9570 (eval "$ac_compile") 2>conftest.er1
9572 grep -v '^ *+' conftest.er1 >conftest.err
9574 cat conftest.err >&5
9575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576 (exit $ac_status); } && {
9577 test -z "$ac_c_werror_flag" ||
9578 test ! -s conftest.err
9579 } && test -s conftest.$ac_objext; then
9582 cat >conftest.$ac_ext <<_ACEOF
9585 cat confdefs.h >>conftest.$ac_ext
9586 cat >>conftest.$ac_ext <<_ACEOF
9587 /* end confdefs.h. */
9588 $ac_includes_default
9589 typedef double ac__type_sizeof_;
9593 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9600 rm -f conftest.$ac_objext
9601 if { (ac_try="$ac_compile"
9603 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9604 *) ac_try_echo
=$ac_try;;
9606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9607 (eval "$ac_compile") 2>conftest.er1
9609 grep -v '^ *+' conftest.er1
>conftest.err
9611 cat conftest.err
>&5
9612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613 (exit $ac_status); } && {
9614 test -z "$ac_c_werror_flag" ||
9615 test ! -s conftest.err
9616 } && test -s conftest.
$ac_objext; then
9617 ac_hi
=$ac_mid; break
9619 echo "$as_me: failed program was:" >&5
9620 sed 's/^/| /' conftest.
$ac_ext >&5
9622 ac_lo
=`expr $ac_mid + 1`
9623 if test $ac_lo -le $ac_mid; then
9627 ac_mid
=`expr 2 '*' $ac_mid + 1`
9630 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9633 echo "$as_me: failed program was:" >&5
9634 sed 's/^/| /' conftest.
$ac_ext >&5
9636 cat >conftest.
$ac_ext <<_ACEOF
9639 cat confdefs.h
>>conftest.
$ac_ext
9640 cat >>conftest.
$ac_ext <<_ACEOF
9641 /* end confdefs.h. */
9642 $ac_includes_default
9643 typedef double ac__type_sizeof_;
9647 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9654 rm -f conftest.
$ac_objext
9655 if { (ac_try
="$ac_compile"
9657 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9658 *) ac_try_echo=$ac_try;;
9660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9661 (eval "$ac_compile") 2>conftest.er1
9663 grep -v '^ *+' conftest.er1 >conftest.err
9665 cat conftest.err >&5
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 (exit $ac_status); } && {
9668 test -z "$ac_c_werror_flag" ||
9669 test ! -s conftest.err
9670 } && test -s conftest.$ac_objext; then
9673 cat >conftest.$ac_ext <<_ACEOF
9676 cat confdefs.h >>conftest.$ac_ext
9677 cat >>conftest.$ac_ext <<_ACEOF
9678 /* end confdefs.h. */
9679 $ac_includes_default
9680 typedef double ac__type_sizeof_;
9684 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9691 rm -f conftest.$ac_objext
9692 if { (ac_try="$ac_compile"
9694 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9695 *) ac_try_echo
=$ac_try;;
9697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9698 (eval "$ac_compile") 2>conftest.er1
9700 grep -v '^ *+' conftest.er1
>conftest.err
9702 cat conftest.err
>&5
9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704 (exit $ac_status); } && {
9705 test -z "$ac_c_werror_flag" ||
9706 test ! -s conftest.err
9707 } && test -s conftest.
$ac_objext; then
9708 ac_lo
=$ac_mid; break
9710 echo "$as_me: failed program was:" >&5
9711 sed 's/^/| /' conftest.
$ac_ext >&5
9713 ac_hi
=`expr '(' $ac_mid ')' - 1`
9714 if test $ac_mid -le $ac_hi; then
9718 ac_mid
=`expr 2 '*' $ac_mid`
9721 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9724 echo "$as_me: failed program was:" >&5
9725 sed 's/^/| /' conftest.
$ac_ext >&5
9730 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9733 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9734 # Binary search between lo and hi bounds.
9735 while test "x$ac_lo" != "x$ac_hi"; do
9736 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9737 cat >conftest.
$ac_ext <<_ACEOF
9740 cat confdefs.h
>>conftest.
$ac_ext
9741 cat >>conftest.
$ac_ext <<_ACEOF
9742 /* end confdefs.h. */
9743 $ac_includes_default
9744 typedef double ac__type_sizeof_;
9748 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9755 rm -f conftest.
$ac_objext
9756 if { (ac_try
="$ac_compile"
9758 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9759 *) ac_try_echo=$ac_try;;
9761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9762 (eval "$ac_compile") 2>conftest.er1
9764 grep -v '^ *+' conftest.er1 >conftest.err
9766 cat conftest.err >&5
9767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768 (exit $ac_status); } && {
9769 test -z "$ac_c_werror_flag" ||
9770 test ! -s conftest.err
9771 } && test -s conftest.$ac_objext; then
9774 echo "$as_me: failed program was:" >&5
9775 sed 's/^/| /' conftest.$ac_ext >&5
9777 ac_lo=`expr '(' $ac_mid ')' + 1`
9780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9783 ?*) ac_cv_sizeof_double=$ac_lo;;
9784 '') if test "$ac_cv_type_double" = yes; then
9785 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9786 See \`config.log
' for more details." >&5
9787 echo "$as_me: error: cannot compute sizeof (double)
9788 See \`config.log' for more details.
" >&2;}
9789 { (exit 77); exit 77; }; }
9791 ac_cv_sizeof_double=0
9795 cat >conftest.$ac_ext <<_ACEOF
9798 cat confdefs.h >>conftest.$ac_ext
9799 cat >>conftest.$ac_ext <<_ACEOF
9800 /* end confdefs.h. */
9801 $ac_includes_default
9802 typedef double ac__type_sizeof_;
9803 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9804 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9811 FILE *f = fopen ("conftest.val
", "w
");
9814 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9816 long int i = longval ();
9817 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9819 fprintf (f, "%ld
\n", i);
9823 unsigned long int i = ulongval ();
9824 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9826 fprintf (f, "%lu
\n", i);
9828 return ferror (f) || fclose (f) != 0;
9834 rm -f conftest$ac_exeext
9835 if { (ac_try="$ac_link"
9837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9838 *) ac_try_echo=$ac_try;;
9840 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9841 (eval "$ac_link") 2>&5
9843 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9844 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9845 { (case "(($ac_try" in
9846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9847 *) ac_try_echo=$ac_try;;
9849 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9850 (eval "$ac_try") 2>&5
9852 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9853 (exit $ac_status); }; }; then
9854 ac_cv_sizeof_double=`cat conftest.val`
9856 echo "$as_me: program exited with status
$ac_status" >&5
9857 echo "$as_me: failed program was
:" >&5
9858 sed 's/^/| /' conftest.$ac_ext >&5
9861 if test "$ac_cv_type_double" = yes; then
9862 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(double
)
9863 See \
`config.log' for more details." >&5
9864 echo "$as_me: error: cannot compute sizeof (double)
9865 See \`config.log
' for more details." >&2;}
9866 { (exit 77); exit 77; }; }
9868 ac_cv_sizeof_double=0
9871 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9875 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
9876 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
9880 cat >>confdefs.h <<_ACEOF
9881 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
9885 { echo "$as_me:$LINENO: checking for fpos_t" >&5
9886 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; }
9887 if test "${ac_cv_type_fpos_t+set}" = set; then
9888 echo $ECHO_N "(cached) $ECHO_C" >&6
9890 cat >conftest.$ac_ext <<_ACEOF
9893 cat confdefs.h >>conftest.$ac_ext
9894 cat >>conftest.$ac_ext <<_ACEOF
9895 /* end confdefs.h. */
9896 $ac_includes_default
9897 typedef fpos_t ac__type_new_;
9901 if ((ac__type_new_ *) 0)
9903 if (sizeof (ac__type_new_))
9909 rm -f conftest.$ac_objext
9910 if { (ac_try="$ac_compile"
9912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9913 *) ac_try_echo=$ac_try;;
9915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9916 (eval "$ac_compile") 2>conftest.er1
9918 grep -v '^
*+' conftest.er1 >conftest.err
9920 cat conftest.err >&5
9921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922 (exit $ac_status); } && {
9923 test -z "$ac_c_werror_flag" ||
9924 test ! -s conftest.err
9925 } && test -s conftest.$ac_objext; then
9926 ac_cv_type_fpos_t=yes
9928 echo "$as_me: failed program was:" >&5
9929 sed 's
/^
/|
/' conftest.$ac_ext >&5
9931 ac_cv_type_fpos_t=no
9934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9936 { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
9937 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; }
9939 # The cast to long int works around a bug in the HP C Compiler
9940 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9941 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9942 # This bug is HP SR number 8606223364.
9943 { echo "$as_me:$LINENO: checking size of fpos_t" >&5
9944 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; }
9945 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
9946 echo $ECHO_N "(cached) $ECHO_C" >&6
9948 if test "$cross_compiling" = yes; then
9949 # Depending upon the size, compute the lo and hi bounds.
9950 cat >conftest.
$ac_ext <<_ACEOF
9953 cat confdefs.h
>>conftest.
$ac_ext
9954 cat >>conftest.
$ac_ext <<_ACEOF
9955 /* end confdefs.h. */
9956 $ac_includes_default
9957 typedef fpos_t ac__type_sizeof_;
9961 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9968 rm -f conftest.
$ac_objext
9969 if { (ac_try
="$ac_compile"
9971 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9972 *) ac_try_echo=$ac_try;;
9974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9975 (eval "$ac_compile") 2>conftest.er1
9977 grep -v '^ *+' conftest.er1 >conftest.err
9979 cat conftest.err >&5
9980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981 (exit $ac_status); } && {
9982 test -z "$ac_c_werror_flag" ||
9983 test ! -s conftest.err
9984 } && test -s conftest.$ac_objext; then
9987 cat >conftest.$ac_ext <<_ACEOF
9990 cat confdefs.h >>conftest.$ac_ext
9991 cat >>conftest.$ac_ext <<_ACEOF
9992 /* end confdefs.h. */
9993 $ac_includes_default
9994 typedef fpos_t ac__type_sizeof_;
9998 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10005 rm -f conftest.$ac_objext
10006 if { (ac_try="$ac_compile"
10007 case "(($ac_try" in
10008 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10009 *) ac_try_echo
=$ac_try;;
10011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10012 (eval "$ac_compile") 2>conftest.er1
10014 grep -v '^ *+' conftest.er1
>conftest.err
10016 cat conftest.err
>&5
10017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018 (exit $ac_status); } && {
10019 test -z "$ac_c_werror_flag" ||
10020 test ! -s conftest.err
10021 } && test -s conftest.
$ac_objext; then
10022 ac_hi
=$ac_mid; break
10024 echo "$as_me: failed program was:" >&5
10025 sed 's/^/| /' conftest.
$ac_ext >&5
10027 ac_lo
=`expr $ac_mid + 1`
10028 if test $ac_lo -le $ac_mid; then
10032 ac_mid
=`expr 2 '*' $ac_mid + 1`
10035 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10038 echo "$as_me: failed program was:" >&5
10039 sed 's/^/| /' conftest.
$ac_ext >&5
10041 cat >conftest.
$ac_ext <<_ACEOF
10044 cat confdefs.h
>>conftest.
$ac_ext
10045 cat >>conftest.
$ac_ext <<_ACEOF
10046 /* end confdefs.h. */
10047 $ac_includes_default
10048 typedef fpos_t ac__type_sizeof_;
10052 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10059 rm -f conftest.
$ac_objext
10060 if { (ac_try
="$ac_compile"
10061 case "(($ac_try" in
10062 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10063 *) ac_try_echo=$ac_try;;
10065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10066 (eval "$ac_compile") 2>conftest.er1
10068 grep -v '^ *+' conftest.er1 >conftest.err
10070 cat conftest.err >&5
10071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072 (exit $ac_status); } && {
10073 test -z "$ac_c_werror_flag" ||
10074 test ! -s conftest.err
10075 } && test -s conftest.$ac_objext; then
10078 cat >conftest.$ac_ext <<_ACEOF
10081 cat confdefs.h >>conftest.$ac_ext
10082 cat >>conftest.$ac_ext <<_ACEOF
10083 /* end confdefs.h. */
10084 $ac_includes_default
10085 typedef fpos_t ac__type_sizeof_;
10089 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10096 rm -f conftest.$ac_objext
10097 if { (ac_try="$ac_compile"
10098 case "(($ac_try" in
10099 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10100 *) ac_try_echo
=$ac_try;;
10102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10103 (eval "$ac_compile") 2>conftest.er1
10105 grep -v '^ *+' conftest.er1
>conftest.err
10107 cat conftest.err
>&5
10108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109 (exit $ac_status); } && {
10110 test -z "$ac_c_werror_flag" ||
10111 test ! -s conftest.err
10112 } && test -s conftest.
$ac_objext; then
10113 ac_lo
=$ac_mid; break
10115 echo "$as_me: failed program was:" >&5
10116 sed 's/^/| /' conftest.
$ac_ext >&5
10118 ac_hi
=`expr '(' $ac_mid ')' - 1`
10119 if test $ac_mid -le $ac_hi; then
10123 ac_mid
=`expr 2 '*' $ac_mid`
10126 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10129 echo "$as_me: failed program was:" >&5
10130 sed 's/^/| /' conftest.
$ac_ext >&5
10135 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10138 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10139 # Binary search between lo and hi bounds.
10140 while test "x$ac_lo" != "x$ac_hi"; do
10141 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10142 cat >conftest.
$ac_ext <<_ACEOF
10145 cat confdefs.h
>>conftest.
$ac_ext
10146 cat >>conftest.
$ac_ext <<_ACEOF
10147 /* end confdefs.h. */
10148 $ac_includes_default
10149 typedef fpos_t ac__type_sizeof_;
10153 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10160 rm -f conftest.
$ac_objext
10161 if { (ac_try
="$ac_compile"
10162 case "(($ac_try" in
10163 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10164 *) ac_try_echo=$ac_try;;
10166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10167 (eval "$ac_compile") 2>conftest.er1
10169 grep -v '^ *+' conftest.er1 >conftest.err
10171 cat conftest.err >&5
10172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173 (exit $ac_status); } && {
10174 test -z "$ac_c_werror_flag" ||
10175 test ! -s conftest.err
10176 } && test -s conftest.$ac_objext; then
10179 echo "$as_me: failed program was:" >&5
10180 sed 's/^/| /' conftest.$ac_ext >&5
10182 ac_lo=`expr '(' $ac_mid ')' + 1`
10185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10188 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
10189 '') if test "$ac_cv_type_fpos_t" = yes; then
10190 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
10191 See \`config.log
' for more details." >&5
10192 echo "$as_me: error: cannot compute sizeof (fpos_t)
10193 See \`config.log' for more details.
" >&2;}
10194 { (exit 77); exit 77; }; }
10196 ac_cv_sizeof_fpos_t=0
10200 cat >conftest.$ac_ext <<_ACEOF
10203 cat confdefs.h >>conftest.$ac_ext
10204 cat >>conftest.$ac_ext <<_ACEOF
10205 /* end confdefs.h. */
10206 $ac_includes_default
10207 typedef fpos_t ac__type_sizeof_;
10208 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10209 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10211 #include <stdlib.h>
10216 FILE *f = fopen ("conftest.val
", "w
");
10219 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10221 long int i = longval ();
10222 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10224 fprintf (f, "%ld
\n", i);
10228 unsigned long int i = ulongval ();
10229 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10231 fprintf (f, "%lu
\n", i);
10233 return ferror (f) || fclose (f) != 0;
10239 rm -f conftest$ac_exeext
10240 if { (ac_try="$ac_link"
10241 case "(($ac_try" in
10242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10243 *) ac_try_echo=$ac_try;;
10245 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10246 (eval "$ac_link") 2>&5
10248 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10249 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10250 { (case "(($ac_try" in
10251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10252 *) ac_try_echo=$ac_try;;
10254 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10255 (eval "$ac_try") 2>&5
10257 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10258 (exit $ac_status); }; }; then
10259 ac_cv_sizeof_fpos_t=`cat conftest.val`
10261 echo "$as_me: program exited with status
$ac_status" >&5
10262 echo "$as_me: failed program was
:" >&5
10263 sed 's/^/| /' conftest.$ac_ext >&5
10265 ( exit $ac_status )
10266 if test "$ac_cv_type_fpos_t" = yes; then
10267 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(fpos_t
)
10268 See \
`config.log' for more details." >&5
10269 echo "$as_me: error: cannot compute sizeof (fpos_t)
10270 See \`config.log
' for more details." >&2;}
10271 { (exit 77); exit 77; }; }
10273 ac_cv_sizeof_fpos_t=0
10276 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10280 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
10281 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; }
10285 cat >>confdefs.h <<_ACEOF
10286 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
10290 { echo "$as_me:$LINENO: checking for size_t" >&5
10291 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
10292 if test "${ac_cv_type_size_t+set}" = set; then
10293 echo $ECHO_N "(cached) $ECHO_C" >&6
10295 cat >conftest.$ac_ext <<_ACEOF
10298 cat confdefs.h >>conftest.$ac_ext
10299 cat >>conftest.$ac_ext <<_ACEOF
10300 /* end confdefs.h. */
10301 $ac_includes_default
10302 typedef size_t ac__type_new_;
10306 if ((ac__type_new_ *) 0)
10308 if (sizeof (ac__type_new_))
10314 rm -f conftest.$ac_objext
10315 if { (ac_try="$ac_compile"
10316 case "(($ac_try" in
10317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10318 *) ac_try_echo=$ac_try;;
10320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10321 (eval "$ac_compile") 2>conftest.er1
10323 grep -v '^
*+' conftest.er1 >conftest.err
10325 cat conftest.err >&5
10326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327 (exit $ac_status); } && {
10328 test -z "$ac_c_werror_flag" ||
10329 test ! -s conftest.err
10330 } && test -s conftest.$ac_objext; then
10331 ac_cv_type_size_t=yes
10333 echo "$as_me: failed program was:" >&5
10334 sed 's
/^
/|
/' conftest.$ac_ext >&5
10336 ac_cv_type_size_t=no
10339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10341 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10342 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
10344 # The cast to long int works around a bug in the HP C Compiler
10345 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10346 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10347 # This bug is HP SR number 8606223364.
10348 { echo "$as_me:$LINENO: checking size of size_t" >&5
10349 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
10350 if test "${ac_cv_sizeof_size_t+set}" = set; then
10351 echo $ECHO_N "(cached) $ECHO_C" >&6
10353 if test "$cross_compiling" = yes; then
10354 # Depending upon the size, compute the lo and hi bounds.
10355 cat >conftest.
$ac_ext <<_ACEOF
10358 cat confdefs.h
>>conftest.
$ac_ext
10359 cat >>conftest.
$ac_ext <<_ACEOF
10360 /* end confdefs.h. */
10361 $ac_includes_default
10362 typedef size_t ac__type_sizeof_;
10366 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10373 rm -f conftest.
$ac_objext
10374 if { (ac_try
="$ac_compile"
10375 case "(($ac_try" in
10376 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10377 *) ac_try_echo=$ac_try;;
10379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10380 (eval "$ac_compile") 2>conftest.er1
10382 grep -v '^ *+' conftest.er1 >conftest.err
10384 cat conftest.err >&5
10385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386 (exit $ac_status); } && {
10387 test -z "$ac_c_werror_flag" ||
10388 test ! -s conftest.err
10389 } && test -s conftest.$ac_objext; then
10392 cat >conftest.$ac_ext <<_ACEOF
10395 cat confdefs.h >>conftest.$ac_ext
10396 cat >>conftest.$ac_ext <<_ACEOF
10397 /* end confdefs.h. */
10398 $ac_includes_default
10399 typedef size_t ac__type_sizeof_;
10403 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10410 rm -f conftest.$ac_objext
10411 if { (ac_try="$ac_compile"
10412 case "(($ac_try" in
10413 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10414 *) ac_try_echo
=$ac_try;;
10416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10417 (eval "$ac_compile") 2>conftest.er1
10419 grep -v '^ *+' conftest.er1
>conftest.err
10421 cat conftest.err
>&5
10422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423 (exit $ac_status); } && {
10424 test -z "$ac_c_werror_flag" ||
10425 test ! -s conftest.err
10426 } && test -s conftest.
$ac_objext; then
10427 ac_hi
=$ac_mid; break
10429 echo "$as_me: failed program was:" >&5
10430 sed 's/^/| /' conftest.
$ac_ext >&5
10432 ac_lo
=`expr $ac_mid + 1`
10433 if test $ac_lo -le $ac_mid; then
10437 ac_mid
=`expr 2 '*' $ac_mid + 1`
10440 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10443 echo "$as_me: failed program was:" >&5
10444 sed 's/^/| /' conftest.
$ac_ext >&5
10446 cat >conftest.
$ac_ext <<_ACEOF
10449 cat confdefs.h
>>conftest.
$ac_ext
10450 cat >>conftest.
$ac_ext <<_ACEOF
10451 /* end confdefs.h. */
10452 $ac_includes_default
10453 typedef size_t ac__type_sizeof_;
10457 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10464 rm -f conftest.
$ac_objext
10465 if { (ac_try
="$ac_compile"
10466 case "(($ac_try" in
10467 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10468 *) ac_try_echo=$ac_try;;
10470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10471 (eval "$ac_compile") 2>conftest.er1
10473 grep -v '^ *+' conftest.er1 >conftest.err
10475 cat conftest.err >&5
10476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477 (exit $ac_status); } && {
10478 test -z "$ac_c_werror_flag" ||
10479 test ! -s conftest.err
10480 } && test -s conftest.$ac_objext; then
10483 cat >conftest.$ac_ext <<_ACEOF
10486 cat confdefs.h >>conftest.$ac_ext
10487 cat >>conftest.$ac_ext <<_ACEOF
10488 /* end confdefs.h. */
10489 $ac_includes_default
10490 typedef size_t ac__type_sizeof_;
10494 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10501 rm -f conftest.$ac_objext
10502 if { (ac_try="$ac_compile"
10503 case "(($ac_try" in
10504 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10505 *) ac_try_echo
=$ac_try;;
10507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10508 (eval "$ac_compile") 2>conftest.er1
10510 grep -v '^ *+' conftest.er1
>conftest.err
10512 cat conftest.err
>&5
10513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514 (exit $ac_status); } && {
10515 test -z "$ac_c_werror_flag" ||
10516 test ! -s conftest.err
10517 } && test -s conftest.
$ac_objext; then
10518 ac_lo
=$ac_mid; break
10520 echo "$as_me: failed program was:" >&5
10521 sed 's/^/| /' conftest.
$ac_ext >&5
10523 ac_hi
=`expr '(' $ac_mid ')' - 1`
10524 if test $ac_mid -le $ac_hi; then
10528 ac_mid
=`expr 2 '*' $ac_mid`
10531 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10534 echo "$as_me: failed program was:" >&5
10535 sed 's/^/| /' conftest.
$ac_ext >&5
10540 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10543 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10544 # Binary search between lo and hi bounds.
10545 while test "x$ac_lo" != "x$ac_hi"; do
10546 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10547 cat >conftest.
$ac_ext <<_ACEOF
10550 cat confdefs.h
>>conftest.
$ac_ext
10551 cat >>conftest.
$ac_ext <<_ACEOF
10552 /* end confdefs.h. */
10553 $ac_includes_default
10554 typedef size_t ac__type_sizeof_;
10558 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10565 rm -f conftest.
$ac_objext
10566 if { (ac_try
="$ac_compile"
10567 case "(($ac_try" in
10568 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10569 *) ac_try_echo=$ac_try;;
10571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10572 (eval "$ac_compile") 2>conftest.er1
10574 grep -v '^ *+' conftest.er1 >conftest.err
10576 cat conftest.err >&5
10577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578 (exit $ac_status); } && {
10579 test -z "$ac_c_werror_flag" ||
10580 test ! -s conftest.err
10581 } && test -s conftest.$ac_objext; then
10584 echo "$as_me: failed program was:" >&5
10585 sed 's/^/| /' conftest.$ac_ext >&5
10587 ac_lo=`expr '(' $ac_mid ')' + 1`
10590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10593 ?*) ac_cv_sizeof_size_t=$ac_lo;;
10594 '') if test "$ac_cv_type_size_t" = yes; then
10595 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10596 See \`config.log
' for more details." >&5
10597 echo "$as_me: error: cannot compute sizeof (size_t)
10598 See \`config.log' for more details.
" >&2;}
10599 { (exit 77); exit 77; }; }
10601 ac_cv_sizeof_size_t=0
10605 cat >conftest.$ac_ext <<_ACEOF
10608 cat confdefs.h >>conftest.$ac_ext
10609 cat >>conftest.$ac_ext <<_ACEOF
10610 /* end confdefs.h. */
10611 $ac_includes_default
10612 typedef size_t ac__type_sizeof_;
10613 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10614 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10616 #include <stdlib.h>
10621 FILE *f = fopen ("conftest.val
", "w
");
10624 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10626 long int i = longval ();
10627 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10629 fprintf (f, "%ld
\n", i);
10633 unsigned long int i = ulongval ();
10634 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10636 fprintf (f, "%lu
\n", i);
10638 return ferror (f) || fclose (f) != 0;
10644 rm -f conftest$ac_exeext
10645 if { (ac_try="$ac_link"
10646 case "(($ac_try" in
10647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10648 *) ac_try_echo=$ac_try;;
10650 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10651 (eval "$ac_link") 2>&5
10653 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10654 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10655 { (case "(($ac_try" in
10656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10657 *) ac_try_echo=$ac_try;;
10659 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10660 (eval "$ac_try") 2>&5
10662 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10663 (exit $ac_status); }; }; then
10664 ac_cv_sizeof_size_t=`cat conftest.val`
10666 echo "$as_me: program exited with status
$ac_status" >&5
10667 echo "$as_me: failed program was
:" >&5
10668 sed 's/^/| /' conftest.$ac_ext >&5
10670 ( exit $ac_status )
10671 if test "$ac_cv_type_size_t" = yes; then
10672 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(size_t
)
10673 See \
`config.log' for more details." >&5
10674 echo "$as_me: error: cannot compute sizeof (size_t)
10675 See \`config.log
' for more details." >&2;}
10676 { (exit 77); exit 77; }; }
10678 ac_cv_sizeof_size_t=0
10681 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10685 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10686 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
10690 cat >>confdefs.h <<_ACEOF
10691 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10695 { echo "$as_me:$LINENO: checking for pid_t" >&5
10696 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10697 if test "${ac_cv_type_pid_t+set}" = set; then
10698 echo $ECHO_N "(cached) $ECHO_C" >&6
10700 cat >conftest.$ac_ext <<_ACEOF
10703 cat confdefs.h >>conftest.$ac_ext
10704 cat >>conftest.$ac_ext <<_ACEOF
10705 /* end confdefs.h. */
10706 $ac_includes_default
10707 typedef pid_t ac__type_new_;
10711 if ((ac__type_new_ *) 0)
10713 if (sizeof (ac__type_new_))
10719 rm -f conftest.$ac_objext
10720 if { (ac_try="$ac_compile"
10721 case "(($ac_try" in
10722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10723 *) ac_try_echo=$ac_try;;
10725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10726 (eval "$ac_compile") 2>conftest.er1
10728 grep -v '^
*+' conftest.er1 >conftest.err
10730 cat conftest.err >&5
10731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10732 (exit $ac_status); } && {
10733 test -z "$ac_c_werror_flag" ||
10734 test ! -s conftest.err
10735 } && test -s conftest.$ac_objext; then
10736 ac_cv_type_pid_t=yes
10738 echo "$as_me: failed program was:" >&5
10739 sed 's
/^
/|
/' conftest.$ac_ext >&5
10741 ac_cv_type_pid_t=no
10744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10746 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10747 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10749 # The cast to long int works around a bug in the HP C Compiler
10750 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10751 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10752 # This bug is HP SR number 8606223364.
10753 { echo "$as_me:$LINENO: checking size of pid_t" >&5
10754 echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; }
10755 if test "${ac_cv_sizeof_pid_t+set}" = set; then
10756 echo $ECHO_N "(cached) $ECHO_C" >&6
10758 if test "$cross_compiling" = yes; then
10759 # Depending upon the size, compute the lo and hi bounds.
10760 cat >conftest.
$ac_ext <<_ACEOF
10763 cat confdefs.h
>>conftest.
$ac_ext
10764 cat >>conftest.
$ac_ext <<_ACEOF
10765 /* end confdefs.h. */
10766 $ac_includes_default
10767 typedef pid_t ac__type_sizeof_;
10771 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10778 rm -f conftest.
$ac_objext
10779 if { (ac_try
="$ac_compile"
10780 case "(($ac_try" in
10781 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10782 *) ac_try_echo=$ac_try;;
10784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10785 (eval "$ac_compile") 2>conftest.er1
10787 grep -v '^ *+' conftest.er1 >conftest.err
10789 cat conftest.err >&5
10790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791 (exit $ac_status); } && {
10792 test -z "$ac_c_werror_flag" ||
10793 test ! -s conftest.err
10794 } && test -s conftest.$ac_objext; then
10797 cat >conftest.$ac_ext <<_ACEOF
10800 cat confdefs.h >>conftest.$ac_ext
10801 cat >>conftest.$ac_ext <<_ACEOF
10802 /* end confdefs.h. */
10803 $ac_includes_default
10804 typedef pid_t ac__type_sizeof_;
10808 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10815 rm -f conftest.$ac_objext
10816 if { (ac_try="$ac_compile"
10817 case "(($ac_try" in
10818 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10819 *) ac_try_echo
=$ac_try;;
10821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10822 (eval "$ac_compile") 2>conftest.er1
10824 grep -v '^ *+' conftest.er1
>conftest.err
10826 cat conftest.err
>&5
10827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828 (exit $ac_status); } && {
10829 test -z "$ac_c_werror_flag" ||
10830 test ! -s conftest.err
10831 } && test -s conftest.
$ac_objext; then
10832 ac_hi
=$ac_mid; break
10834 echo "$as_me: failed program was:" >&5
10835 sed 's/^/| /' conftest.
$ac_ext >&5
10837 ac_lo
=`expr $ac_mid + 1`
10838 if test $ac_lo -le $ac_mid; then
10842 ac_mid
=`expr 2 '*' $ac_mid + 1`
10845 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10848 echo "$as_me: failed program was:" >&5
10849 sed 's/^/| /' conftest.
$ac_ext >&5
10851 cat >conftest.
$ac_ext <<_ACEOF
10854 cat confdefs.h
>>conftest.
$ac_ext
10855 cat >>conftest.
$ac_ext <<_ACEOF
10856 /* end confdefs.h. */
10857 $ac_includes_default
10858 typedef pid_t ac__type_sizeof_;
10862 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10869 rm -f conftest.
$ac_objext
10870 if { (ac_try
="$ac_compile"
10871 case "(($ac_try" in
10872 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10873 *) ac_try_echo=$ac_try;;
10875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10876 (eval "$ac_compile") 2>conftest.er1
10878 grep -v '^ *+' conftest.er1 >conftest.err
10880 cat conftest.err >&5
10881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882 (exit $ac_status); } && {
10883 test -z "$ac_c_werror_flag" ||
10884 test ! -s conftest.err
10885 } && test -s conftest.$ac_objext; then
10888 cat >conftest.$ac_ext <<_ACEOF
10891 cat confdefs.h >>conftest.$ac_ext
10892 cat >>conftest.$ac_ext <<_ACEOF
10893 /* end confdefs.h. */
10894 $ac_includes_default
10895 typedef pid_t ac__type_sizeof_;
10899 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10906 rm -f conftest.$ac_objext
10907 if { (ac_try="$ac_compile"
10908 case "(($ac_try" in
10909 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10910 *) ac_try_echo
=$ac_try;;
10912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10913 (eval "$ac_compile") 2>conftest.er1
10915 grep -v '^ *+' conftest.er1
>conftest.err
10917 cat conftest.err
>&5
10918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10919 (exit $ac_status); } && {
10920 test -z "$ac_c_werror_flag" ||
10921 test ! -s conftest.err
10922 } && test -s conftest.
$ac_objext; then
10923 ac_lo
=$ac_mid; break
10925 echo "$as_me: failed program was:" >&5
10926 sed 's/^/| /' conftest.
$ac_ext >&5
10928 ac_hi
=`expr '(' $ac_mid ')' - 1`
10929 if test $ac_mid -le $ac_hi; then
10933 ac_mid
=`expr 2 '*' $ac_mid`
10936 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10939 echo "$as_me: failed program was:" >&5
10940 sed 's/^/| /' conftest.
$ac_ext >&5
10945 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10948 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10949 # Binary search between lo and hi bounds.
10950 while test "x$ac_lo" != "x$ac_hi"; do
10951 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10952 cat >conftest.
$ac_ext <<_ACEOF
10955 cat confdefs.h
>>conftest.
$ac_ext
10956 cat >>conftest.
$ac_ext <<_ACEOF
10957 /* end confdefs.h. */
10958 $ac_includes_default
10959 typedef pid_t ac__type_sizeof_;
10963 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10970 rm -f conftest.
$ac_objext
10971 if { (ac_try
="$ac_compile"
10972 case "(($ac_try" in
10973 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10974 *) ac_try_echo=$ac_try;;
10976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10977 (eval "$ac_compile") 2>conftest.er1
10979 grep -v '^ *+' conftest.er1 >conftest.err
10981 cat conftest.err >&5
10982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10983 (exit $ac_status); } && {
10984 test -z "$ac_c_werror_flag" ||
10985 test ! -s conftest.err
10986 } && test -s conftest.$ac_objext; then
10989 echo "$as_me: failed program was:" >&5
10990 sed 's/^/| /' conftest.$ac_ext >&5
10992 ac_lo=`expr '(' $ac_mid ')' + 1`
10995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10998 ?*) ac_cv_sizeof_pid_t=$ac_lo;;
10999 '') if test "$ac_cv_type_pid_t" = yes; then
11000 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
11001 See \`config.log
' for more details." >&5
11002 echo "$as_me: error: cannot compute sizeof (pid_t)
11003 See \`config.log' for more details.
" >&2;}
11004 { (exit 77); exit 77; }; }
11006 ac_cv_sizeof_pid_t=0
11010 cat >conftest.$ac_ext <<_ACEOF
11013 cat confdefs.h >>conftest.$ac_ext
11014 cat >>conftest.$ac_ext <<_ACEOF
11015 /* end confdefs.h. */
11016 $ac_includes_default
11017 typedef pid_t ac__type_sizeof_;
11018 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11019 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11021 #include <stdlib.h>
11026 FILE *f = fopen ("conftest.val
", "w
");
11029 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11031 long int i = longval ();
11032 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11034 fprintf (f, "%ld
\n", i);
11038 unsigned long int i = ulongval ();
11039 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11041 fprintf (f, "%lu
\n", i);
11043 return ferror (f) || fclose (f) != 0;
11049 rm -f conftest$ac_exeext
11050 if { (ac_try="$ac_link"
11051 case "(($ac_try" in
11052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11053 *) ac_try_echo=$ac_try;;
11055 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11056 (eval "$ac_link") 2>&5
11058 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11059 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11060 { (case "(($ac_try" in
11061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11062 *) ac_try_echo=$ac_try;;
11064 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11065 (eval "$ac_try") 2>&5
11067 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11068 (exit $ac_status); }; }; then
11069 ac_cv_sizeof_pid_t=`cat conftest.val`
11071 echo "$as_me: program exited with status
$ac_status" >&5
11072 echo "$as_me: failed program was
:" >&5
11073 sed 's/^/| /' conftest.$ac_ext >&5
11075 ( exit $ac_status )
11076 if test "$ac_cv_type_pid_t" = yes; then
11077 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(pid_t
)
11078 See \
`config.log' for more details." >&5
11079 echo "$as_me: error: cannot compute sizeof (pid_t)
11080 See \`config.log
' for more details." >&2;}
11081 { (exit 77); exit 77; }; }
11083 ac_cv_sizeof_pid_t=0
11086 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11090 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
11091 echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; }
11095 cat >>confdefs.h <<_ACEOF
11096 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
11101 { echo "$as_me:$LINENO: checking for long long support" >&5
11102 echo $ECHO_N "checking for long long support... $ECHO_C" >&6; }
11104 cat >conftest.$ac_ext <<_ACEOF
11107 cat confdefs.h >>conftest.$ac_ext
11108 cat >>conftest.$ac_ext <<_ACEOF
11109 /* end confdefs.h. */
11114 long long x; x = (long long)0;
11119 rm -f conftest.$ac_objext
11120 if { (ac_try="$ac_compile"
11121 case "(($ac_try" in
11122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11123 *) ac_try_echo=$ac_try;;
11125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11126 (eval "$ac_compile") 2>conftest.er1
11128 grep -v '^
*+' conftest.er1 >conftest.err
11130 cat conftest.err >&5
11131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11132 (exit $ac_status); } && {
11133 test -z "$ac_c_werror_flag" ||
11134 test ! -s conftest.err
11135 } && test -s conftest.$ac_objext; then
11138 cat >>confdefs.h <<\_ACEOF
11139 #define HAVE_LONG_LONG 1
11145 echo "$as_me: failed program was:" >&5
11146 sed 's
/^
/|
/' conftest.$ac_ext >&5
11151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11152 { echo "$as_me:$LINENO: result: $have_long_long" >&5
11153 echo "${ECHO_T}$have_long_long" >&6; }
11154 if test "$have_long_long" = yes ; then
11155 { echo "$as_me:$LINENO: checking for long long" >&5
11156 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
11157 if test "${ac_cv_type_long_long+set}" = set; then
11158 echo $ECHO_N "(cached) $ECHO_C" >&6
11160 cat >conftest.$ac_ext <<_ACEOF
11163 cat confdefs.h >>conftest.$ac_ext
11164 cat >>conftest.$ac_ext <<_ACEOF
11165 /* end confdefs.h. */
11166 $ac_includes_default
11167 typedef long long ac__type_new_;
11171 if ((ac__type_new_ *) 0)
11173 if (sizeof (ac__type_new_))
11179 rm -f conftest.$ac_objext
11180 if { (ac_try="$ac_compile"
11181 case "(($ac_try" in
11182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11183 *) ac_try_echo=$ac_try;;
11185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11186 (eval "$ac_compile") 2>conftest.er1
11188 grep -v '^
*+' conftest.er1 >conftest.err
11190 cat conftest.err >&5
11191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11192 (exit $ac_status); } && {
11193 test -z "$ac_c_werror_flag" ||
11194 test ! -s conftest.err
11195 } && test -s conftest.$ac_objext; then
11196 ac_cv_type_long_long=yes
11198 echo "$as_me: failed program was:" >&5
11199 sed 's
/^
/|
/' conftest.$ac_ext >&5
11201 ac_cv_type_long_long=no
11204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11206 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11207 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
11209 # The cast to long int works around a bug in the HP C Compiler
11210 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11211 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11212 # This bug is HP SR number 8606223364.
11213 { echo "$as_me:$LINENO: checking size of long long" >&5
11214 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
11215 if test "${ac_cv_sizeof_long_long+set}" = set; then
11216 echo $ECHO_N "(cached) $ECHO_C" >&6
11218 if test "$cross_compiling" = yes; then
11219 # Depending upon the size, compute the lo and hi bounds.
11220 cat >conftest.
$ac_ext <<_ACEOF
11223 cat confdefs.h
>>conftest.
$ac_ext
11224 cat >>conftest.
$ac_ext <<_ACEOF
11225 /* end confdefs.h. */
11226 $ac_includes_default
11227 typedef long long ac__type_sizeof_;
11231 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11238 rm -f conftest.
$ac_objext
11239 if { (ac_try
="$ac_compile"
11240 case "(($ac_try" in
11241 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11242 *) ac_try_echo=$ac_try;;
11244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11245 (eval "$ac_compile") 2>conftest.er1
11247 grep -v '^ *+' conftest.er1 >conftest.err
11249 cat conftest.err >&5
11250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11251 (exit $ac_status); } && {
11252 test -z "$ac_c_werror_flag" ||
11253 test ! -s conftest.err
11254 } && test -s conftest.$ac_objext; then
11257 cat >conftest.$ac_ext <<_ACEOF
11260 cat confdefs.h >>conftest.$ac_ext
11261 cat >>conftest.$ac_ext <<_ACEOF
11262 /* end confdefs.h. */
11263 $ac_includes_default
11264 typedef long long ac__type_sizeof_;
11268 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11275 rm -f conftest.$ac_objext
11276 if { (ac_try="$ac_compile"
11277 case "(($ac_try" in
11278 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11279 *) ac_try_echo
=$ac_try;;
11281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11282 (eval "$ac_compile") 2>conftest.er1
11284 grep -v '^ *+' conftest.er1
>conftest.err
11286 cat conftest.err
>&5
11287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11288 (exit $ac_status); } && {
11289 test -z "$ac_c_werror_flag" ||
11290 test ! -s conftest.err
11291 } && test -s conftest.
$ac_objext; then
11292 ac_hi
=$ac_mid; break
11294 echo "$as_me: failed program was:" >&5
11295 sed 's/^/| /' conftest.
$ac_ext >&5
11297 ac_lo
=`expr $ac_mid + 1`
11298 if test $ac_lo -le $ac_mid; then
11302 ac_mid
=`expr 2 '*' $ac_mid + 1`
11305 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11308 echo "$as_me: failed program was:" >&5
11309 sed 's/^/| /' conftest.
$ac_ext >&5
11311 cat >conftest.
$ac_ext <<_ACEOF
11314 cat confdefs.h
>>conftest.
$ac_ext
11315 cat >>conftest.
$ac_ext <<_ACEOF
11316 /* end confdefs.h. */
11317 $ac_includes_default
11318 typedef long long ac__type_sizeof_;
11322 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11329 rm -f conftest.
$ac_objext
11330 if { (ac_try
="$ac_compile"
11331 case "(($ac_try" in
11332 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11333 *) ac_try_echo=$ac_try;;
11335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11336 (eval "$ac_compile") 2>conftest.er1
11338 grep -v '^ *+' conftest.er1 >conftest.err
11340 cat conftest.err >&5
11341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342 (exit $ac_status); } && {
11343 test -z "$ac_c_werror_flag" ||
11344 test ! -s conftest.err
11345 } && test -s conftest.$ac_objext; then
11348 cat >conftest.$ac_ext <<_ACEOF
11351 cat confdefs.h >>conftest.$ac_ext
11352 cat >>conftest.$ac_ext <<_ACEOF
11353 /* end confdefs.h. */
11354 $ac_includes_default
11355 typedef long long ac__type_sizeof_;
11359 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11366 rm -f conftest.$ac_objext
11367 if { (ac_try="$ac_compile"
11368 case "(($ac_try" in
11369 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11370 *) ac_try_echo
=$ac_try;;
11372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11373 (eval "$ac_compile") 2>conftest.er1
11375 grep -v '^ *+' conftest.er1
>conftest.err
11377 cat conftest.err
>&5
11378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379 (exit $ac_status); } && {
11380 test -z "$ac_c_werror_flag" ||
11381 test ! -s conftest.err
11382 } && test -s conftest.
$ac_objext; then
11383 ac_lo
=$ac_mid; break
11385 echo "$as_me: failed program was:" >&5
11386 sed 's/^/| /' conftest.
$ac_ext >&5
11388 ac_hi
=`expr '(' $ac_mid ')' - 1`
11389 if test $ac_mid -le $ac_hi; then
11393 ac_mid
=`expr 2 '*' $ac_mid`
11396 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11399 echo "$as_me: failed program was:" >&5
11400 sed 's/^/| /' conftest.
$ac_ext >&5
11405 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11408 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11409 # Binary search between lo and hi bounds.
11410 while test "x$ac_lo" != "x$ac_hi"; do
11411 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11412 cat >conftest.
$ac_ext <<_ACEOF
11415 cat confdefs.h
>>conftest.
$ac_ext
11416 cat >>conftest.
$ac_ext <<_ACEOF
11417 /* end confdefs.h. */
11418 $ac_includes_default
11419 typedef long long ac__type_sizeof_;
11423 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11430 rm -f conftest.
$ac_objext
11431 if { (ac_try
="$ac_compile"
11432 case "(($ac_try" in
11433 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11434 *) ac_try_echo=$ac_try;;
11436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11437 (eval "$ac_compile") 2>conftest.er1
11439 grep -v '^ *+' conftest.er1 >conftest.err
11441 cat conftest.err >&5
11442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443 (exit $ac_status); } && {
11444 test -z "$ac_c_werror_flag" ||
11445 test ! -s conftest.err
11446 } && test -s conftest.$ac_objext; then
11449 echo "$as_me: failed program was:" >&5
11450 sed 's/^/| /' conftest.$ac_ext >&5
11452 ac_lo=`expr '(' $ac_mid ')' + 1`
11455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11458 ?*) ac_cv_sizeof_long_long=$ac_lo;;
11459 '') if test "$ac_cv_type_long_long" = yes; then
11460 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11461 See \`config.log
' for more details." >&5
11462 echo "$as_me: error: cannot compute sizeof (long long)
11463 See \`config.log' for more details.
" >&2;}
11464 { (exit 77); exit 77; }; }
11466 ac_cv_sizeof_long_long=0
11470 cat >conftest.$ac_ext <<_ACEOF
11473 cat confdefs.h >>conftest.$ac_ext
11474 cat >>conftest.$ac_ext <<_ACEOF
11475 /* end confdefs.h. */
11476 $ac_includes_default
11477 typedef long long ac__type_sizeof_;
11478 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11479 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11481 #include <stdlib.h>
11486 FILE *f = fopen ("conftest.val
", "w
");
11489 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11491 long int i = longval ();
11492 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11494 fprintf (f, "%ld
\n", i);
11498 unsigned long int i = ulongval ();
11499 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11501 fprintf (f, "%lu
\n", i);
11503 return ferror (f) || fclose (f) != 0;
11509 rm -f conftest$ac_exeext
11510 if { (ac_try="$ac_link"
11511 case "(($ac_try" in
11512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11513 *) ac_try_echo=$ac_try;;
11515 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11516 (eval "$ac_link") 2>&5
11518 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11519 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11520 { (case "(($ac_try" in
11521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11522 *) ac_try_echo=$ac_try;;
11524 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11525 (eval "$ac_try") 2>&5
11527 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11528 (exit $ac_status); }; }; then
11529 ac_cv_sizeof_long_long=`cat conftest.val`
11531 echo "$as_me: program exited with status
$ac_status" >&5
11532 echo "$as_me: failed program was
:" >&5
11533 sed 's/^/| /' conftest.$ac_ext >&5
11535 ( exit $ac_status )
11536 if test "$ac_cv_type_long_long" = yes; then
11537 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long long
)
11538 See \
`config.log' for more details." >&5
11539 echo "$as_me: error: cannot compute sizeof (long long)
11540 See \`config.log
' for more details." >&2;}
11541 { (exit 77); exit 77; }; }
11543 ac_cv_sizeof_long_long=0
11546 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11550 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11551 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
11555 cat >>confdefs.h <<_ACEOF
11556 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11562 { echo "$as_me:$LINENO: checking for long double support" >&5
11563 echo $ECHO_N "checking for long double support... $ECHO_C" >&6; }
11564 have_long_double=no
11565 cat >conftest.$ac_ext <<_ACEOF
11568 cat confdefs.h >>conftest.$ac_ext
11569 cat >>conftest.$ac_ext <<_ACEOF
11570 /* end confdefs.h. */
11575 long double x; x = (long double)0;
11580 rm -f conftest.$ac_objext
11581 if { (ac_try="$ac_compile"
11582 case "(($ac_try" in
11583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11584 *) ac_try_echo=$ac_try;;
11586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11587 (eval "$ac_compile") 2>conftest.er1
11589 grep -v '^
*+' conftest.er1 >conftest.err
11591 cat conftest.err >&5
11592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593 (exit $ac_status); } && {
11594 test -z "$ac_c_werror_flag" ||
11595 test ! -s conftest.err
11596 } && test -s conftest.$ac_objext; then
11599 cat >>confdefs.h <<\_ACEOF
11600 #define HAVE_LONG_DOUBLE 1
11603 have_long_double=yes
11606 echo "$as_me: failed program was:" >&5
11607 sed 's
/^
/|
/' conftest.$ac_ext >&5
11612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11613 { echo "$as_me:$LINENO: result: $have_long_double" >&5
11614 echo "${ECHO_T}$have_long_double" >&6; }
11615 if test "$have_long_double" = yes ; then
11616 { echo "$as_me:$LINENO: checking for long double" >&5
11617 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
11618 if test "${ac_cv_type_long_double+set}" = set; then
11619 echo $ECHO_N "(cached) $ECHO_C" >&6
11621 cat >conftest.$ac_ext <<_ACEOF
11624 cat confdefs.h >>conftest.$ac_ext
11625 cat >>conftest.$ac_ext <<_ACEOF
11626 /* end confdefs.h. */
11627 $ac_includes_default
11628 typedef long double ac__type_new_;
11632 if ((ac__type_new_ *) 0)
11634 if (sizeof (ac__type_new_))
11640 rm -f conftest.$ac_objext
11641 if { (ac_try="$ac_compile"
11642 case "(($ac_try" in
11643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11644 *) ac_try_echo=$ac_try;;
11646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11647 (eval "$ac_compile") 2>conftest.er1
11649 grep -v '^
*+' conftest.er1 >conftest.err
11651 cat conftest.err >&5
11652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653 (exit $ac_status); } && {
11654 test -z "$ac_c_werror_flag" ||
11655 test ! -s conftest.err
11656 } && test -s conftest.$ac_objext; then
11657 ac_cv_type_long_double=yes
11659 echo "$as_me: failed program was:" >&5
11660 sed 's
/^
/|
/' conftest.$ac_ext >&5
11662 ac_cv_type_long_double=no
11665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11667 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
11668 echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
11670 # The cast to long int works around a bug in the HP C Compiler
11671 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11672 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11673 # This bug is HP SR number 8606223364.
11674 { echo "$as_me:$LINENO: checking size of long double" >&5
11675 echo $ECHO_N "checking size of long double... $ECHO_C" >&6; }
11676 if test "${ac_cv_sizeof_long_double+set}" = set; then
11677 echo $ECHO_N "(cached) $ECHO_C" >&6
11679 if test "$cross_compiling" = yes; then
11680 # Depending upon the size, compute the lo and hi bounds.
11681 cat >conftest.
$ac_ext <<_ACEOF
11684 cat confdefs.h
>>conftest.
$ac_ext
11685 cat >>conftest.
$ac_ext <<_ACEOF
11686 /* end confdefs.h. */
11687 $ac_includes_default
11688 typedef long double ac__type_sizeof_;
11692 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11699 rm -f conftest.
$ac_objext
11700 if { (ac_try
="$ac_compile"
11701 case "(($ac_try" in
11702 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11703 *) ac_try_echo=$ac_try;;
11705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11706 (eval "$ac_compile") 2>conftest.er1
11708 grep -v '^ *+' conftest.er1 >conftest.err
11710 cat conftest.err >&5
11711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712 (exit $ac_status); } && {
11713 test -z "$ac_c_werror_flag" ||
11714 test ! -s conftest.err
11715 } && test -s conftest.$ac_objext; then
11718 cat >conftest.$ac_ext <<_ACEOF
11721 cat confdefs.h >>conftest.$ac_ext
11722 cat >>conftest.$ac_ext <<_ACEOF
11723 /* end confdefs.h. */
11724 $ac_includes_default
11725 typedef long double ac__type_sizeof_;
11729 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11736 rm -f conftest.$ac_objext
11737 if { (ac_try="$ac_compile"
11738 case "(($ac_try" in
11739 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11740 *) ac_try_echo
=$ac_try;;
11742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11743 (eval "$ac_compile") 2>conftest.er1
11745 grep -v '^ *+' conftest.er1
>conftest.err
11747 cat conftest.err
>&5
11748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749 (exit $ac_status); } && {
11750 test -z "$ac_c_werror_flag" ||
11751 test ! -s conftest.err
11752 } && test -s conftest.
$ac_objext; then
11753 ac_hi
=$ac_mid; break
11755 echo "$as_me: failed program was:" >&5
11756 sed 's/^/| /' conftest.
$ac_ext >&5
11758 ac_lo
=`expr $ac_mid + 1`
11759 if test $ac_lo -le $ac_mid; then
11763 ac_mid
=`expr 2 '*' $ac_mid + 1`
11766 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11769 echo "$as_me: failed program was:" >&5
11770 sed 's/^/| /' conftest.
$ac_ext >&5
11772 cat >conftest.
$ac_ext <<_ACEOF
11775 cat confdefs.h
>>conftest.
$ac_ext
11776 cat >>conftest.
$ac_ext <<_ACEOF
11777 /* end confdefs.h. */
11778 $ac_includes_default
11779 typedef long double ac__type_sizeof_;
11783 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11790 rm -f conftest.
$ac_objext
11791 if { (ac_try
="$ac_compile"
11792 case "(($ac_try" in
11793 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11794 *) ac_try_echo=$ac_try;;
11796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11797 (eval "$ac_compile") 2>conftest.er1
11799 grep -v '^ *+' conftest.er1 >conftest.err
11801 cat conftest.err >&5
11802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803 (exit $ac_status); } && {
11804 test -z "$ac_c_werror_flag" ||
11805 test ! -s conftest.err
11806 } && test -s conftest.$ac_objext; then
11809 cat >conftest.$ac_ext <<_ACEOF
11812 cat confdefs.h >>conftest.$ac_ext
11813 cat >>conftest.$ac_ext <<_ACEOF
11814 /* end confdefs.h. */
11815 $ac_includes_default
11816 typedef long double ac__type_sizeof_;
11820 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11827 rm -f conftest.$ac_objext
11828 if { (ac_try="$ac_compile"
11829 case "(($ac_try" in
11830 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11831 *) ac_try_echo
=$ac_try;;
11833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11834 (eval "$ac_compile") 2>conftest.er1
11836 grep -v '^ *+' conftest.er1
>conftest.err
11838 cat conftest.err
>&5
11839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840 (exit $ac_status); } && {
11841 test -z "$ac_c_werror_flag" ||
11842 test ! -s conftest.err
11843 } && test -s conftest.
$ac_objext; then
11844 ac_lo
=$ac_mid; break
11846 echo "$as_me: failed program was:" >&5
11847 sed 's/^/| /' conftest.
$ac_ext >&5
11849 ac_hi
=`expr '(' $ac_mid ')' - 1`
11850 if test $ac_mid -le $ac_hi; then
11854 ac_mid
=`expr 2 '*' $ac_mid`
11857 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11860 echo "$as_me: failed program was:" >&5
11861 sed 's/^/| /' conftest.
$ac_ext >&5
11866 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11869 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11870 # Binary search between lo and hi bounds.
11871 while test "x$ac_lo" != "x$ac_hi"; do
11872 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11873 cat >conftest.
$ac_ext <<_ACEOF
11876 cat confdefs.h
>>conftest.
$ac_ext
11877 cat >>conftest.
$ac_ext <<_ACEOF
11878 /* end confdefs.h. */
11879 $ac_includes_default
11880 typedef long double ac__type_sizeof_;
11884 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11891 rm -f conftest.
$ac_objext
11892 if { (ac_try
="$ac_compile"
11893 case "(($ac_try" in
11894 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11895 *) ac_try_echo=$ac_try;;
11897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11898 (eval "$ac_compile") 2>conftest.er1
11900 grep -v '^ *+' conftest.er1 >conftest.err
11902 cat conftest.err >&5
11903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904 (exit $ac_status); } && {
11905 test -z "$ac_c_werror_flag" ||
11906 test ! -s conftest.err
11907 } && test -s conftest.$ac_objext; then
11910 echo "$as_me: failed program was:" >&5
11911 sed 's/^/| /' conftest.$ac_ext >&5
11913 ac_lo=`expr '(' $ac_mid ')' + 1`
11916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11919 ?*) ac_cv_sizeof_long_double=$ac_lo;;
11920 '') if test "$ac_cv_type_long_double" = yes; then
11921 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
11922 See \`config.log
' for more details." >&5
11923 echo "$as_me: error: cannot compute sizeof (long double)
11924 See \`config.log' for more details.
" >&2;}
11925 { (exit 77); exit 77; }; }
11927 ac_cv_sizeof_long_double=0
11931 cat >conftest.$ac_ext <<_ACEOF
11934 cat confdefs.h >>conftest.$ac_ext
11935 cat >>conftest.$ac_ext <<_ACEOF
11936 /* end confdefs.h. */
11937 $ac_includes_default
11938 typedef long double ac__type_sizeof_;
11939 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11940 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11942 #include <stdlib.h>
11947 FILE *f = fopen ("conftest.val
", "w
");
11950 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11952 long int i = longval ();
11953 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11955 fprintf (f, "%ld
\n", i);
11959 unsigned long int i = ulongval ();
11960 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11962 fprintf (f, "%lu
\n", i);
11964 return ferror (f) || fclose (f) != 0;
11970 rm -f conftest$ac_exeext
11971 if { (ac_try="$ac_link"
11972 case "(($ac_try" in
11973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11974 *) ac_try_echo=$ac_try;;
11976 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11977 (eval "$ac_link") 2>&5
11979 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11980 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11981 { (case "(($ac_try" in
11982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11983 *) ac_try_echo=$ac_try;;
11985 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11986 (eval "$ac_try") 2>&5
11988 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11989 (exit $ac_status); }; }; then
11990 ac_cv_sizeof_long_double=`cat conftest.val`
11992 echo "$as_me: program exited with status
$ac_status" >&5
11993 echo "$as_me: failed program was
:" >&5
11994 sed 's/^/| /' conftest.$ac_ext >&5
11996 ( exit $ac_status )
11997 if test "$ac_cv_type_long_double" = yes; then
11998 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long double
)
11999 See \
`config.log' for more details." >&5
12000 echo "$as_me: error: cannot compute sizeof (long double)
12001 See \`config.log
' for more details." >&2;}
12002 { (exit 77); exit 77; }; }
12004 ac_cv_sizeof_long_double=0
12007 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12011 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
12012 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; }
12016 cat >>confdefs.h <<_ACEOF
12017 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
12024 { echo "$as_me:$LINENO: checking for _Bool support" >&5
12025 echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; }
12027 cat >conftest.$ac_ext <<_ACEOF
12030 cat confdefs.h >>conftest.$ac_ext
12031 cat >>conftest.$ac_ext <<_ACEOF
12032 /* end confdefs.h. */
12037 _Bool x; x = (_Bool)0;
12042 rm -f conftest.$ac_objext
12043 if { (ac_try="$ac_compile"
12044 case "(($ac_try" in
12045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12046 *) ac_try_echo=$ac_try;;
12048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12049 (eval "$ac_compile") 2>conftest.er1
12051 grep -v '^
*+' conftest.er1 >conftest.err
12053 cat conftest.err >&5
12054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 (exit $ac_status); } && {
12056 test -z "$ac_c_werror_flag" ||
12057 test ! -s conftest.err
12058 } && test -s conftest.$ac_objext; then
12061 cat >>confdefs.h <<\_ACEOF
12062 #define HAVE_C99_BOOL 1
12068 echo "$as_me: failed program was:" >&5
12069 sed 's
/^
/|
/' conftest.$ac_ext >&5
12074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12075 { echo "$as_me:$LINENO: result: $have_c99_bool" >&5
12076 echo "${ECHO_T}$have_c99_bool" >&6; }
12077 if test "$have_c99_bool" = yes ; then
12078 { echo "$as_me:$LINENO: checking for _Bool" >&5
12079 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
12080 if test "${ac_cv_type__Bool+set}" = set; then
12081 echo $ECHO_N "(cached) $ECHO_C" >&6
12083 cat >conftest.$ac_ext <<_ACEOF
12086 cat confdefs.h >>conftest.$ac_ext
12087 cat >>conftest.$ac_ext <<_ACEOF
12088 /* end confdefs.h. */
12089 $ac_includes_default
12090 typedef _Bool ac__type_new_;
12094 if ((ac__type_new_ *) 0)
12096 if (sizeof (ac__type_new_))
12102 rm -f conftest.$ac_objext
12103 if { (ac_try="$ac_compile"
12104 case "(($ac_try" in
12105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12106 *) ac_try_echo=$ac_try;;
12108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12109 (eval "$ac_compile") 2>conftest.er1
12111 grep -v '^
*+' conftest.er1 >conftest.err
12113 cat conftest.err >&5
12114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115 (exit $ac_status); } && {
12116 test -z "$ac_c_werror_flag" ||
12117 test ! -s conftest.err
12118 } && test -s conftest.$ac_objext; then
12119 ac_cv_type__Bool=yes
12121 echo "$as_me: failed program was:" >&5
12122 sed 's
/^
/|
/' conftest.$ac_ext >&5
12124 ac_cv_type__Bool=no
12127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12129 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
12130 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
12132 # The cast to long int works around a bug in the HP C Compiler
12133 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12134 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12135 # This bug is HP SR number 8606223364.
12136 { echo "$as_me:$LINENO: checking size of _Bool" >&5
12137 echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; }
12138 if test "${ac_cv_sizeof__Bool+set}" = set; then
12139 echo $ECHO_N "(cached) $ECHO_C" >&6
12141 if test "$cross_compiling" = yes; then
12142 # Depending upon the size, compute the lo and hi bounds.
12143 cat >conftest.
$ac_ext <<_ACEOF
12146 cat confdefs.h
>>conftest.
$ac_ext
12147 cat >>conftest.
$ac_ext <<_ACEOF
12148 /* end confdefs.h. */
12149 $ac_includes_default
12150 typedef _Bool ac__type_sizeof_;
12154 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12161 rm -f conftest.
$ac_objext
12162 if { (ac_try
="$ac_compile"
12163 case "(($ac_try" in
12164 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12165 *) ac_try_echo=$ac_try;;
12167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12168 (eval "$ac_compile") 2>conftest.er1
12170 grep -v '^ *+' conftest.er1 >conftest.err
12172 cat conftest.err >&5
12173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174 (exit $ac_status); } && {
12175 test -z "$ac_c_werror_flag" ||
12176 test ! -s conftest.err
12177 } && test -s conftest.$ac_objext; then
12180 cat >conftest.$ac_ext <<_ACEOF
12183 cat confdefs.h >>conftest.$ac_ext
12184 cat >>conftest.$ac_ext <<_ACEOF
12185 /* end confdefs.h. */
12186 $ac_includes_default
12187 typedef _Bool ac__type_sizeof_;
12191 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12198 rm -f conftest.$ac_objext
12199 if { (ac_try="$ac_compile"
12200 case "(($ac_try" in
12201 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12202 *) ac_try_echo
=$ac_try;;
12204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12205 (eval "$ac_compile") 2>conftest.er1
12207 grep -v '^ *+' conftest.er1
>conftest.err
12209 cat conftest.err
>&5
12210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211 (exit $ac_status); } && {
12212 test -z "$ac_c_werror_flag" ||
12213 test ! -s conftest.err
12214 } && test -s conftest.
$ac_objext; then
12215 ac_hi
=$ac_mid; break
12217 echo "$as_me: failed program was:" >&5
12218 sed 's/^/| /' conftest.
$ac_ext >&5
12220 ac_lo
=`expr $ac_mid + 1`
12221 if test $ac_lo -le $ac_mid; then
12225 ac_mid
=`expr 2 '*' $ac_mid + 1`
12228 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12231 echo "$as_me: failed program was:" >&5
12232 sed 's/^/| /' conftest.
$ac_ext >&5
12234 cat >conftest.
$ac_ext <<_ACEOF
12237 cat confdefs.h
>>conftest.
$ac_ext
12238 cat >>conftest.
$ac_ext <<_ACEOF
12239 /* end confdefs.h. */
12240 $ac_includes_default
12241 typedef _Bool ac__type_sizeof_;
12245 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12252 rm -f conftest.
$ac_objext
12253 if { (ac_try
="$ac_compile"
12254 case "(($ac_try" in
12255 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12256 *) ac_try_echo=$ac_try;;
12258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12259 (eval "$ac_compile") 2>conftest.er1
12261 grep -v '^ *+' conftest.er1 >conftest.err
12263 cat conftest.err >&5
12264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12265 (exit $ac_status); } && {
12266 test -z "$ac_c_werror_flag" ||
12267 test ! -s conftest.err
12268 } && test -s conftest.$ac_objext; then
12271 cat >conftest.$ac_ext <<_ACEOF
12274 cat confdefs.h >>conftest.$ac_ext
12275 cat >>conftest.$ac_ext <<_ACEOF
12276 /* end confdefs.h. */
12277 $ac_includes_default
12278 typedef _Bool ac__type_sizeof_;
12282 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12289 rm -f conftest.$ac_objext
12290 if { (ac_try="$ac_compile"
12291 case "(($ac_try" in
12292 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12293 *) ac_try_echo
=$ac_try;;
12295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12296 (eval "$ac_compile") 2>conftest.er1
12298 grep -v '^ *+' conftest.er1
>conftest.err
12300 cat conftest.err
>&5
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); } && {
12303 test -z "$ac_c_werror_flag" ||
12304 test ! -s conftest.err
12305 } && test -s conftest.
$ac_objext; then
12306 ac_lo
=$ac_mid; break
12308 echo "$as_me: failed program was:" >&5
12309 sed 's/^/| /' conftest.
$ac_ext >&5
12311 ac_hi
=`expr '(' $ac_mid ')' - 1`
12312 if test $ac_mid -le $ac_hi; then
12316 ac_mid
=`expr 2 '*' $ac_mid`
12319 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12322 echo "$as_me: failed program was:" >&5
12323 sed 's/^/| /' conftest.
$ac_ext >&5
12328 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12331 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12332 # Binary search between lo and hi bounds.
12333 while test "x$ac_lo" != "x$ac_hi"; do
12334 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12335 cat >conftest.
$ac_ext <<_ACEOF
12338 cat confdefs.h
>>conftest.
$ac_ext
12339 cat >>conftest.
$ac_ext <<_ACEOF
12340 /* end confdefs.h. */
12341 $ac_includes_default
12342 typedef _Bool ac__type_sizeof_;
12346 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12353 rm -f conftest.
$ac_objext
12354 if { (ac_try
="$ac_compile"
12355 case "(($ac_try" in
12356 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12357 *) ac_try_echo=$ac_try;;
12359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12360 (eval "$ac_compile") 2>conftest.er1
12362 grep -v '^ *+' conftest.er1 >conftest.err
12364 cat conftest.err >&5
12365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366 (exit $ac_status); } && {
12367 test -z "$ac_c_werror_flag" ||
12368 test ! -s conftest.err
12369 } && test -s conftest.$ac_objext; then
12372 echo "$as_me: failed program was:" >&5
12373 sed 's/^/| /' conftest.$ac_ext >&5
12375 ac_lo=`expr '(' $ac_mid ')' + 1`
12378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12381 ?*) ac_cv_sizeof__Bool=$ac_lo;;
12382 '') if test "$ac_cv_type__Bool" = yes; then
12383 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12384 See \`config.log
' for more details." >&5
12385 echo "$as_me: error: cannot compute sizeof (_Bool)
12386 See \`config.log' for more details.
" >&2;}
12387 { (exit 77); exit 77; }; }
12389 ac_cv_sizeof__Bool=0
12393 cat >conftest.$ac_ext <<_ACEOF
12396 cat confdefs.h >>conftest.$ac_ext
12397 cat >>conftest.$ac_ext <<_ACEOF
12398 /* end confdefs.h. */
12399 $ac_includes_default
12400 typedef _Bool ac__type_sizeof_;
12401 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12402 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12404 #include <stdlib.h>
12409 FILE *f = fopen ("conftest.val
", "w
");
12412 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12414 long int i = longval ();
12415 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12417 fprintf (f, "%ld
\n", i);
12421 unsigned long int i = ulongval ();
12422 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12424 fprintf (f, "%lu
\n", i);
12426 return ferror (f) || fclose (f) != 0;
12432 rm -f conftest$ac_exeext
12433 if { (ac_try="$ac_link"
12434 case "(($ac_try" in
12435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12436 *) ac_try_echo=$ac_try;;
12438 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12439 (eval "$ac_link") 2>&5
12441 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12442 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12443 { (case "(($ac_try" in
12444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12445 *) ac_try_echo=$ac_try;;
12447 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12448 (eval "$ac_try") 2>&5
12450 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12451 (exit $ac_status); }; }; then
12452 ac_cv_sizeof__Bool=`cat conftest.val`
12454 echo "$as_me: program exited with status
$ac_status" >&5
12455 echo "$as_me: failed program was
:" >&5
12456 sed 's/^/| /' conftest.$ac_ext >&5
12458 ( exit $ac_status )
12459 if test "$ac_cv_type__Bool" = yes; then
12460 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(_Bool
)
12461 See \
`config.log' for more details." >&5
12462 echo "$as_me: error: cannot compute sizeof (_Bool)
12463 See \`config.log
' for more details." >&2;}
12464 { (exit 77); exit 77; }; }
12466 ac_cv_sizeof__Bool=0
12469 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12473 { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
12474 echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; }
12478 cat >>confdefs.h <<_ACEOF
12479 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
12485 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12486 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12487 if test "${ac_cv_type_uintptr_t+set}" = set; then
12488 echo $ECHO_N "(cached) $ECHO_C" >&6
12490 cat >conftest.$ac_ext <<_ACEOF
12493 cat confdefs.h >>conftest.$ac_ext
12494 cat >>conftest.$ac_ext <<_ACEOF
12495 /* end confdefs.h. */
12496 #ifdef HAVE_STDINT_H
12497 #include <stdint.h>
12500 typedef uintptr_t ac__type_new_;
12504 if ((ac__type_new_ *) 0)
12506 if (sizeof (ac__type_new_))
12512 rm -f conftest.$ac_objext
12513 if { (ac_try="$ac_compile"
12514 case "(($ac_try" in
12515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12516 *) ac_try_echo=$ac_try;;
12518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12519 (eval "$ac_compile") 2>conftest.er1
12521 grep -v '^
*+' conftest.er1 >conftest.err
12523 cat conftest.err >&5
12524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525 (exit $ac_status); } && {
12526 test -z "$ac_c_werror_flag" ||
12527 test ! -s conftest.err
12528 } && test -s conftest.$ac_objext; then
12529 ac_cv_type_uintptr_t=yes
12531 echo "$as_me: failed program was:" >&5
12532 sed 's
/^
/|
/' conftest.$ac_ext >&5
12534 ac_cv_type_uintptr_t=no
12537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12539 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12540 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12541 if test $ac_cv_type_uintptr_t = yes; then
12543 cat >>confdefs.h <<_ACEOF
12544 #define HAVE_UINTPTR_T 1
12547 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12548 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12549 if test "${ac_cv_type_uintptr_t+set}" = set; then
12550 echo $ECHO_N "(cached) $ECHO_C" >&6
12552 cat >conftest.$ac_ext <<_ACEOF
12555 cat confdefs.h >>conftest.$ac_ext
12556 cat >>conftest.$ac_ext <<_ACEOF
12557 /* end confdefs.h. */
12558 $ac_includes_default
12559 typedef uintptr_t ac__type_new_;
12563 if ((ac__type_new_ *) 0)
12565 if (sizeof (ac__type_new_))
12571 rm -f conftest.$ac_objext
12572 if { (ac_try="$ac_compile"
12573 case "(($ac_try" in
12574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12575 *) ac_try_echo=$ac_try;;
12577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12578 (eval "$ac_compile") 2>conftest.er1
12580 grep -v '^
*+' conftest.er1 >conftest.err
12582 cat conftest.err >&5
12583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584 (exit $ac_status); } && {
12585 test -z "$ac_c_werror_flag" ||
12586 test ! -s conftest.err
12587 } && test -s conftest.$ac_objext; then
12588 ac_cv_type_uintptr_t=yes
12590 echo "$as_me: failed program was:" >&5
12591 sed 's
/^
/|
/' conftest.$ac_ext >&5
12593 ac_cv_type_uintptr_t=no
12596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12598 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12599 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12601 # The cast to long int works around a bug in the HP C Compiler
12602 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12603 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12604 # This bug is HP SR number 8606223364.
12605 { echo "$as_me:$LINENO: checking size of uintptr_t" >&5
12606 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; }
12607 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
12608 echo $ECHO_N "(cached) $ECHO_C" >&6
12610 if test "$cross_compiling" = yes; then
12611 # Depending upon the size, compute the lo and hi bounds.
12612 cat >conftest.
$ac_ext <<_ACEOF
12615 cat confdefs.h
>>conftest.
$ac_ext
12616 cat >>conftest.
$ac_ext <<_ACEOF
12617 /* end confdefs.h. */
12618 $ac_includes_default
12619 typedef uintptr_t ac__type_sizeof_;
12623 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12630 rm -f conftest.
$ac_objext
12631 if { (ac_try
="$ac_compile"
12632 case "(($ac_try" in
12633 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12634 *) ac_try_echo=$ac_try;;
12636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12637 (eval "$ac_compile") 2>conftest.er1
12639 grep -v '^ *+' conftest.er1 >conftest.err
12641 cat conftest.err >&5
12642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643 (exit $ac_status); } && {
12644 test -z "$ac_c_werror_flag" ||
12645 test ! -s conftest.err
12646 } && test -s conftest.$ac_objext; then
12649 cat >conftest.$ac_ext <<_ACEOF
12652 cat confdefs.h >>conftest.$ac_ext
12653 cat >>conftest.$ac_ext <<_ACEOF
12654 /* end confdefs.h. */
12655 $ac_includes_default
12656 typedef uintptr_t ac__type_sizeof_;
12660 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12667 rm -f conftest.$ac_objext
12668 if { (ac_try="$ac_compile"
12669 case "(($ac_try" in
12670 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12671 *) ac_try_echo
=$ac_try;;
12673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12674 (eval "$ac_compile") 2>conftest.er1
12676 grep -v '^ *+' conftest.er1
>conftest.err
12678 cat conftest.err
>&5
12679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680 (exit $ac_status); } && {
12681 test -z "$ac_c_werror_flag" ||
12682 test ! -s conftest.err
12683 } && test -s conftest.
$ac_objext; then
12684 ac_hi
=$ac_mid; break
12686 echo "$as_me: failed program was:" >&5
12687 sed 's/^/| /' conftest.
$ac_ext >&5
12689 ac_lo
=`expr $ac_mid + 1`
12690 if test $ac_lo -le $ac_mid; then
12694 ac_mid
=`expr 2 '*' $ac_mid + 1`
12697 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12700 echo "$as_me: failed program was:" >&5
12701 sed 's/^/| /' conftest.
$ac_ext >&5
12703 cat >conftest.
$ac_ext <<_ACEOF
12706 cat confdefs.h
>>conftest.
$ac_ext
12707 cat >>conftest.
$ac_ext <<_ACEOF
12708 /* end confdefs.h. */
12709 $ac_includes_default
12710 typedef uintptr_t ac__type_sizeof_;
12714 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12721 rm -f conftest.
$ac_objext
12722 if { (ac_try
="$ac_compile"
12723 case "(($ac_try" in
12724 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12725 *) ac_try_echo=$ac_try;;
12727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12728 (eval "$ac_compile") 2>conftest.er1
12730 grep -v '^ *+' conftest.er1 >conftest.err
12732 cat conftest.err >&5
12733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12734 (exit $ac_status); } && {
12735 test -z "$ac_c_werror_flag" ||
12736 test ! -s conftest.err
12737 } && test -s conftest.$ac_objext; then
12740 cat >conftest.$ac_ext <<_ACEOF
12743 cat confdefs.h >>conftest.$ac_ext
12744 cat >>conftest.$ac_ext <<_ACEOF
12745 /* end confdefs.h. */
12746 $ac_includes_default
12747 typedef uintptr_t ac__type_sizeof_;
12751 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12758 rm -f conftest.$ac_objext
12759 if { (ac_try="$ac_compile"
12760 case "(($ac_try" in
12761 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12762 *) ac_try_echo
=$ac_try;;
12764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12765 (eval "$ac_compile") 2>conftest.er1
12767 grep -v '^ *+' conftest.er1
>conftest.err
12769 cat conftest.err
>&5
12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771 (exit $ac_status); } && {
12772 test -z "$ac_c_werror_flag" ||
12773 test ! -s conftest.err
12774 } && test -s conftest.
$ac_objext; then
12775 ac_lo
=$ac_mid; break
12777 echo "$as_me: failed program was:" >&5
12778 sed 's/^/| /' conftest.
$ac_ext >&5
12780 ac_hi
=`expr '(' $ac_mid ')' - 1`
12781 if test $ac_mid -le $ac_hi; then
12785 ac_mid
=`expr 2 '*' $ac_mid`
12788 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12791 echo "$as_me: failed program was:" >&5
12792 sed 's/^/| /' conftest.
$ac_ext >&5
12797 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12800 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12801 # Binary search between lo and hi bounds.
12802 while test "x$ac_lo" != "x$ac_hi"; do
12803 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12804 cat >conftest.
$ac_ext <<_ACEOF
12807 cat confdefs.h
>>conftest.
$ac_ext
12808 cat >>conftest.
$ac_ext <<_ACEOF
12809 /* end confdefs.h. */
12810 $ac_includes_default
12811 typedef uintptr_t ac__type_sizeof_;
12815 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12822 rm -f conftest.
$ac_objext
12823 if { (ac_try
="$ac_compile"
12824 case "(($ac_try" in
12825 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12826 *) ac_try_echo=$ac_try;;
12828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12829 (eval "$ac_compile") 2>conftest.er1
12831 grep -v '^ *+' conftest.er1 >conftest.err
12833 cat conftest.err >&5
12834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835 (exit $ac_status); } && {
12836 test -z "$ac_c_werror_flag" ||
12837 test ! -s conftest.err
12838 } && test -s conftest.$ac_objext; then
12841 echo "$as_me: failed program was:" >&5
12842 sed 's/^/| /' conftest.$ac_ext >&5
12844 ac_lo=`expr '(' $ac_mid ')' + 1`
12847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12850 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
12851 '') if test "$ac_cv_type_uintptr_t" = yes; then
12852 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
12853 See \`config.log
' for more details." >&5
12854 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12855 See \`config.log' for more details.
" >&2;}
12856 { (exit 77); exit 77; }; }
12858 ac_cv_sizeof_uintptr_t=0
12862 cat >conftest.$ac_ext <<_ACEOF
12865 cat confdefs.h >>conftest.$ac_ext
12866 cat >>conftest.$ac_ext <<_ACEOF
12867 /* end confdefs.h. */
12868 $ac_includes_default
12869 typedef uintptr_t ac__type_sizeof_;
12870 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12871 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12873 #include <stdlib.h>
12878 FILE *f = fopen ("conftest.val
", "w
");
12881 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12883 long int i = longval ();
12884 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12886 fprintf (f, "%ld
\n", i);
12890 unsigned long int i = ulongval ();
12891 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12893 fprintf (f, "%lu
\n", i);
12895 return ferror (f) || fclose (f) != 0;
12901 rm -f conftest$ac_exeext
12902 if { (ac_try="$ac_link"
12903 case "(($ac_try" in
12904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12905 *) ac_try_echo=$ac_try;;
12907 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12908 (eval "$ac_link") 2>&5
12910 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12911 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12912 { (case "(($ac_try" in
12913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12914 *) ac_try_echo=$ac_try;;
12916 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12917 (eval "$ac_try") 2>&5
12919 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12920 (exit $ac_status); }; }; then
12921 ac_cv_sizeof_uintptr_t=`cat conftest.val`
12923 echo "$as_me: program exited with status
$ac_status" >&5
12924 echo "$as_me: failed program was
:" >&5
12925 sed 's/^/| /' conftest.$ac_ext >&5
12927 ( exit $ac_status )
12928 if test "$ac_cv_type_uintptr_t" = yes; then
12929 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(uintptr_t
)
12930 See \
`config.log' for more details." >&5
12931 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12932 See \`config.log
' for more details." >&2;}
12933 { (exit 77); exit 77; }; }
12935 ac_cv_sizeof_uintptr_t=0
12938 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12942 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
12943 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; }
12947 cat >>confdefs.h <<_ACEOF
12948 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
12956 # Hmph. AC_CHECK_SIZEOF() doesn't include
<sys
/types.h
>.
12957 { echo "$as_me:$LINENO: checking size of off_t" >&5
12958 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
12959 if test "${ac_cv_sizeof_off_t+set}" = set; then
12960 echo $ECHO_N "(cached) $ECHO_C" >&6
12962 if test "$cross_compiling" = yes; then
12963 ac_cv_sizeof_off_t
=4
12965 cat >conftest.
$ac_ext <<_ACEOF
12968 cat confdefs.h
>>conftest.
$ac_ext
12969 cat >>conftest.
$ac_ext <<_ACEOF
12970 /* end confdefs.h. */
12972 #include <sys/types.h>
12975 FILE *f=fopen("conftestval", "w");
12977 fprintf(f, "%d\n", sizeof(off_t));
12981 rm -f conftest
$ac_exeext
12982 if { (ac_try
="$ac_link"
12983 case "(($ac_try" in
12984 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12985 *) ac_try_echo=$ac_try;;
12987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12988 (eval "$ac_link") 2>&5
12990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12991 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12992 { (case "(($ac_try" in
12993 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12994 *) ac_try_echo
=$ac_try;;
12996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12997 (eval "$ac_try") 2>&5
12999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000 (exit $ac_status); }; }; then
13001 ac_cv_sizeof_off_t
=`cat conftestval`
13003 echo "$as_me: program exited with status $ac_status" >&5
13004 echo "$as_me: failed program was:" >&5
13005 sed 's/^/| /' conftest.
$ac_ext >&5
13007 ( exit $ac_status )
13008 ac_cv_sizeof_off_t
=0
13010 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13017 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
13018 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
13020 cat >>confdefs.h
<<_ACEOF
13021 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
13025 { echo "$as_me:$LINENO: checking whether to enable large file support" >&5
13026 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; }
13027 if test "$have_long_long" = yes -a \
13028 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
13029 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
13031 cat >>confdefs.h
<<\_ACEOF
13032 #define HAVE_LARGEFILE_SUPPORT 1
13035 { echo "$as_me:$LINENO: result: yes" >&5
13036 echo "${ECHO_T}yes" >&6; }
13038 { echo "$as_me:$LINENO: result: no" >&5
13039 echo "${ECHO_T}no" >&6; }
13042 # AC_CHECK_SIZEOF() doesn't include <time.h>.
13043 { echo "$as_me:$LINENO: checking size of time_t" >&5
13044 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
13045 if test "${ac_cv_sizeof_time_t+set}" = set; then
13046 echo $ECHO_N "(cached) $ECHO_C" >&6
13048 if test "$cross_compiling" = yes; then
13049 ac_cv_sizeof_time_t
=4
13051 cat >conftest.
$ac_ext <<_ACEOF
13054 cat confdefs.h
>>conftest.
$ac_ext
13055 cat >>conftest.
$ac_ext <<_ACEOF
13056 /* end confdefs.h. */
13061 FILE *f=fopen("conftestval", "w");
13063 fprintf(f, "%d\n", sizeof(time_t));
13067 rm -f conftest
$ac_exeext
13068 if { (ac_try
="$ac_link"
13069 case "(($ac_try" in
13070 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13071 *) ac_try_echo=$ac_try;;
13073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13074 (eval "$ac_link") 2>&5
13076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13078 { (case "(($ac_try" in
13079 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13080 *) ac_try_echo
=$ac_try;;
13082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13083 (eval "$ac_try") 2>&5
13085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13086 (exit $ac_status); }; }; then
13087 ac_cv_sizeof_time_t
=`cat conftestval`
13089 echo "$as_me: program exited with status $ac_status" >&5
13090 echo "$as_me: failed program was:" >&5
13091 sed 's/^/| /' conftest.
$ac_ext >&5
13093 ( exit $ac_status )
13094 ac_cv_sizeof_time_t
=0
13096 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13103 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
13104 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
13106 cat >>confdefs.h
<<_ACEOF
13107 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
13112 # if have pthread_t then define SIZEOF_PTHREAD_T
13114 if test "$ac_cv_kpthread" = "yes"
13115 then CC
="$CC -Kpthread"
13116 elif test "$ac_cv_kthread" = "yes"
13117 then CC
="$CC -Kthread"
13118 elif test "$ac_cv_pthread" = "yes"
13119 then CC
="$CC -pthread"
13121 { echo "$as_me:$LINENO: checking for pthread_t" >&5
13122 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
13124 cat >conftest.
$ac_ext <<_ACEOF
13127 cat confdefs.h
>>conftest.
$ac_ext
13128 cat >>conftest.
$ac_ext <<_ACEOF
13129 /* end confdefs.h. */
13130 #include <pthread.h>
13134 pthread_t x; x = *(pthread_t*)0;
13139 rm -f conftest.
$ac_objext
13140 if { (ac_try
="$ac_compile"
13141 case "(($ac_try" in
13142 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13143 *) ac_try_echo=$ac_try;;
13145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13146 (eval "$ac_compile") 2>conftest.er1
13148 grep -v '^ *+' conftest.er1 >conftest.err
13150 cat conftest.err >&5
13151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152 (exit $ac_status); } && {
13153 test -z "$ac_c_werror_flag" ||
13154 test ! -s conftest.err
13155 } && test -s conftest.$ac_objext; then
13158 echo "$as_me: failed program was:" >&5
13159 sed 's/^/| /' conftest.$ac_ext >&5
13164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13165 { echo "$as_me:$LINENO: result: $have_pthread_t" >&5
13166 echo "${ECHO_T}$have_pthread_t" >&6; }
13167 if test "$have_pthread_t" = yes ; then
13168 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
13169 { echo "$as_me:$LINENO: checking size of pthread_t" >&5
13170 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; }
13171 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
13172 echo $ECHO_N "(cached) $ECHO_C" >&6
13174 if test "$cross_compiling" = yes; then
13175 ac_cv_sizeof_pthread_t=4
13177 cat >conftest.$ac_ext <<_ACEOF
13180 cat confdefs.h >>conftest.$ac_ext
13181 cat >>conftest.$ac_ext <<_ACEOF
13182 /* end confdefs.h. */
13184 #include <pthread.h>
13187 FILE *f=fopen("conftestval", "w");
13189 fprintf(f, "%d\n", sizeof(pthread_t));
13193 rm -f conftest$ac_exeext
13194 if { (ac_try="$ac_link"
13195 case "(($ac_try" in
13196 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13197 *) ac_try_echo
=$ac_try;;
13199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13200 (eval "$ac_link") 2>&5
13202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13204 { (case "(($ac_try" in
13205 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13206 *) ac_try_echo=$ac_try;;
13208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13209 (eval "$ac_try") 2>&5
13211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212 (exit $ac_status); }; }; then
13213 ac_cv_sizeof_pthread_t=`cat conftestval
`
13215 echo "$as_me: program exited with status $ac_status" >&5
13216 echo "$as_me: failed program was:" >&5
13217 sed 's/^/| /' conftest.$ac_ext >&5
13219 ( exit $ac_status )
13220 ac_cv_sizeof_pthread_t=0
13222 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13229 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
13230 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; }
13232 cat >>confdefs.h <<_ACEOF
13233 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
13242 case $ac_sys_system/$ac_sys_release in
13243 Darwin/[01567]\..*)
13244 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
13247 OTHER_LIBTOOL_OPT=""
13252 case $ac_sys_system/$ac_sys_release in
13253 Darwin/[01567]\..*)
13254 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
13255 if test "${enable_universalsdk}"; then
13258 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch
`"
13260 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13261 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
13263 gcc_version=`gcc
-v 2>&1 |
grep version | cut
-d\
-f3`
13264 if test ${gcc_version} '<' 4.0
13266 LIBTOOL_CRUFT="-lcc_dynamic"
13270 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch
`"
13271 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13272 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
13275 { echo "$as_me:$LINENO: checking for --enable-framework" >&5
13276 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; }
13277 if test "$enable_framework"
13279 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
13280 # -F. is needed to allow linking to the framework while
13281 # in the build location.
13283 cat >>confdefs.h <<\_ACEOF
13284 #define WITH_NEXT_FRAMEWORK 1
13287 { echo "$as_me:$LINENO: result: yes" >&5
13288 echo "${ECHO_T}yes" >&6; }
13289 if test $enable_shared = "yes"
13291 { { echo "$as_me:$LINENO: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" >&5
13292 echo "$as_me: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" >&2;}
13293 { (exit 1); exit 1; }; }
13296 { echo "$as_me:$LINENO: result: no" >&5
13297 echo "${ECHO_T}no" >&6; }
13300 { echo "$as_me:$LINENO: checking for dyld" >&5
13301 echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
13302 case $ac_sys_system/$ac_sys_release in
13305 cat >>confdefs.h <<\_ACEOF
13306 #define WITH_DYLD 1
13309 { echo "$as_me:$LINENO: result: always on for Darwin" >&5
13310 echo "${ECHO_T}always on for Darwin" >&6; }
13313 { echo "$as_me:$LINENO: result: no" >&5
13314 echo "${ECHO_T}no" >&6; }
13318 # Set info about shared libraries.
13324 # SO is the extension of shared libraries `(including the dot
!)
13325 # -- usually .so, .sl on HP-UX, .dll on Cygwin
13326 { echo "$as_me:$LINENO: checking SO" >&5
13327 echo $ECHO_N "checking SO... $ECHO_C" >&6; }
13330 case $ac_sys_system in
13341 # this might also be a termcap variable, see #610332
13343 echo '====================================================================='
13345 echo '+ WARNING: You have set SO in your environment. +'
13346 echo '+ Do you really mean to change the extension for shared libraries? +'
13347 echo '+ Continuing in 10 seconds to let you to ponder. +'
13349 echo '====================================================================='
13352 { echo "$as_me:$LINENO: result: $SO" >&5
13353 echo "${ECHO_T}$SO" >&6; }
13356 cat >>confdefs.h
<<_ACEOF
13357 #define SHLIB_EXT "$SO"
13360 # LDSHARED is the ld *command* used to create shared library
13361 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
13362 # (Shared libraries in this instance are shared modules to be loaded into
13363 # Python, as opposed to building Python itself as a shared library.)
13364 { echo "$as_me:$LINENO: checking LDSHARED" >&5
13365 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
13366 if test -z "$LDSHARED"
13368 case $ac_sys_system/$ac_sys_release in
13370 BLDSHARED
="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
13371 LDSHARED
="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
13373 IRIX
/5*) LDSHARED
="ld -shared";;
13374 IRIX
*/6*) LDSHARED
="ld ${SGI_ABI} -shared -all";;
13376 if test "$GCC" = "yes"
13377 then LDSHARED
='$(CC) -shared'
13378 else LDSHARED
='$(CC) -G';
13381 if test "$GCC" = "yes"
13382 then LDSHARED
='$(CC) -shared'
13383 else LDSHARED
='ld -b';
13385 OSF
*) LDSHARED
="ld -shared -expect_unresolved \"*\"";;
13387 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
13388 if test "$enable_framework" ; then
13389 # Link against the framework. All externals should be defined.
13390 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13391 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13393 # No framework. Ignore undefined symbols, assuming they come from Python
13394 LDSHARED
="$LDSHARED -undefined suppress"
13396 Darwin
/1.4*|Darwin
/5.
*|Darwin
/6.
*)
13397 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
13398 if test "$enable_framework" ; then
13399 # Link against the framework. All externals should be defined.
13400 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13401 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13403 # No framework, use the Python app as bundle-loader
13404 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13405 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13408 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
13409 # This allows an extension to be used in any Python
13411 if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2
13413 if test "${enable_universalsdk}"; then
13414 LDFLAGS
="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
13416 LDSHARED
='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
13417 BLDSHARED
="$LDSHARED"
13419 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
13420 if test "$enable_framework" ; then
13421 # Link against the framework. All externals should be defined.
13422 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13423 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13425 # No framework, use the Python app as bundle-loader
13426 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13427 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13431 Linux
*|GNU
*|QNX
*) LDSHARED
='$(CC) -shared';;
13432 BSD
/OS
*/4*) LDSHARED
="gcc -shared";;
13434 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13436 LDSHARED
="$CC -shared ${LDFLAGS}"
13438 LDSHARED
="ld -Bshareable ${LDFLAGS}"
13441 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13443 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13446 [01].
* |
2.
[0-7] |
2.
[0-7].
*)
13447 LDSHARED
="ld -Bshareable ${LDFLAGS}"
13450 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13454 NetBSD
*|DragonFly
*) LDSHARED
="cc -shared ${LDFLAGS}";;
13455 OpenUNIX
*|UnixWare
*)
13456 if test "$GCC" = "yes"
13457 then LDSHARED
='$(CC) -shared'
13458 else LDSHARED
='$(CC) -G'
13460 SCO_SV
*) LDSHARED
='$(CC) -Wl,-G,-Bexport';;
13461 Monterey
*) LDSHARED
="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
13462 CYGWIN
*) LDSHARED
="gcc -shared -Wl,--enable-auto-image-base";;
13463 atheos
*) LDSHARED
="gcc -shared";;
13467 { echo "$as_me:$LINENO: result: $LDSHARED" >&5
13468 echo "${ECHO_T}$LDSHARED" >&6; }
13469 BLDSHARED
=${BLDSHARED-$LDSHARED}
13470 # CCSHARED are the C *flags* used to create objects to go into a shared
13471 # library (module) -- this is only needed for a few systems
13472 { echo "$as_me:$LINENO: checking CCSHARED" >&5
13473 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
13474 if test -z "$CCSHARED"
13476 case $ac_sys_system/$ac_sys_release in
13477 SunOS
*) if test "$GCC" = yes;
13478 then CCSHARED
="-fPIC";
13479 elif test `uname -p` = sparc
;
13480 then CCSHARED
="-xcode=pic32";
13481 else CCSHARED
="-Kpic";
13483 hp
*|HP
*) if test "$GCC" = yes;
13484 then CCSHARED
="-fPIC";
13485 else CCSHARED
="+z";
13487 Linux
*|GNU
*) CCSHARED
="-fPIC";;
13488 BSD
/OS
*/4*) CCSHARED
="-fpic";;
13489 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*) CCSHARED
="-fPIC";;
13490 OpenUNIX
*|UnixWare
*)
13491 if test "$GCC" = "yes"
13492 then CCSHARED
="-fPIC"
13493 else CCSHARED
="-KPIC"
13496 if test "$GCC" = "yes"
13497 then CCSHARED
="-fPIC"
13498 else CCSHARED
="-Kpic -belf"
13500 Monterey
*) CCSHARED
="-G";;
13501 IRIX
*/6*) case $CC in
13502 *gcc
*) CCSHARED
="-shared";;
13505 atheos
*) CCSHARED
="-fPIC";;
13508 { echo "$as_me:$LINENO: result: $CCSHARED" >&5
13509 echo "${ECHO_T}$CCSHARED" >&6; }
13510 # LINKFORSHARED are the flags passed to the $(CC) command that links
13511 # the python executable -- this is only needed for a few systems
13512 { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
13513 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
13514 if test -z "$LINKFORSHARED"
13516 case $ac_sys_system/$ac_sys_release in
13517 AIX
*) LINKFORSHARED
='-Wl,-bE:Modules/python.exp -lld';;
13519 LINKFORSHARED
="-Wl,-E -Wl,+s";;
13520 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
13521 BSD
/OS
/4*) LINKFORSHARED
="-Xlinker -export-dynamic";;
13522 Linux
*|GNU
*) LINKFORSHARED
="-Xlinker -export-dynamic";;
13523 # -u libsys_s pulls in all symbols in libsys
13525 LINKFORSHARED
="$extra_undefs -framework CoreFoundation"
13526 if test "$enable_framework"
13528 LINKFORSHARED
="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13530 LINKFORSHARED
="$LINKFORSHARED";;
13531 OpenUNIX
*|UnixWare
*) LINKFORSHARED
="-Wl,-Bexport";;
13532 SCO_SV
*) LINKFORSHARED
="-Wl,-Bexport";;
13533 ReliantUNIX
*) LINKFORSHARED
="-W1 -Blargedynsym";;
13534 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*)
13535 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13537 LINKFORSHARED
="-Wl,--export-dynamic"
13539 SunOS
/5*) case $CC in
13541 if $CC -Xlinker --help 2>&1 |
grep export-dynamic
>/dev
/null
13543 LINKFORSHARED
="-Xlinker --export-dynamic"
13547 if test $enable_shared = "no"
13549 LINKFORSHARED
='-Wl,--out-implib=$(LDLIBRARY)'
13552 # -Wl,-E causes the symbols to be added to the dynamic
13553 # symbol table so that they can be found when a module
13554 # is loaded. -N 2048K causes the stack size to be set
13555 # to 2048 kilobytes so that the stack doesn't overflow
13556 # when running test_compile.py.
13557 LINKFORSHARED
='-Wl,-E -N 2048K';;
13560 { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
13561 echo "${ECHO_T}$LINKFORSHARED" >&6; }
13565 { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
13566 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
13567 if test ! "$LIBRARY" = "$LDLIBRARY"
13569 case $ac_sys_system in
13571 # Cygwin needs CCSHARED when building extension DLLs
13572 # but not when building the interpreter DLL.
13573 CFLAGSFORSHARED
='';;
13575 CFLAGSFORSHARED
='$(CCSHARED)'
13578 { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
13579 echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
13581 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
13582 # library (with --enable-shared).
13583 # For platforms on which shared libraries are not allowed to have unresolved
13584 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
13585 # if it is not required, since it creates a dependency of the shared library
13586 # to LIBS. This, in turn, means that applications linking the shared libpython
13587 # don't need to link LIBS explicitly. The default should be only changed
13588 # on systems where this approach causes problems.
13590 { echo "$as_me:$LINENO: checking SHLIBS" >&5
13591 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
13592 case "$ac_sys_system" in
13596 { echo "$as_me:$LINENO: result: $SHLIBS" >&5
13597 echo "${ECHO_T}$SHLIBS" >&6; }
13600 # checks for libraries
13602 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13603 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13604 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13605 echo $ECHO_N "(cached) $ECHO_C" >&6
13607 ac_check_lib_save_LIBS
=$LIBS
13609 cat >conftest.
$ac_ext <<_ACEOF
13612 cat confdefs.h
>>conftest.
$ac_ext
13613 cat >>conftest.
$ac_ext <<_ACEOF
13614 /* end confdefs.h. */
13616 /* Override any GCC internal prototype to avoid an error.
13617 Use char because int might match the return type of a GCC
13618 builtin and then its argument prototype would still apply. */
13631 rm -f conftest.
$ac_objext conftest
$ac_exeext
13632 if { (ac_try
="$ac_link"
13633 case "(($ac_try" in
13634 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13635 *) ac_try_echo=$ac_try;;
13637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13638 (eval "$ac_link") 2>conftest.er1
13640 grep -v '^ *+' conftest.er1 >conftest.err
13642 cat conftest.err >&5
13643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644 (exit $ac_status); } && {
13645 test -z "$ac_c_werror_flag" ||
13646 test ! -s conftest.err
13647 } && test -s conftest$ac_exeext &&
13648 $as_test_x conftest$ac_exeext; then
13649 ac_cv_lib_dl_dlopen=yes
13651 echo "$as_me: failed program was:" >&5
13652 sed 's/^/| /' conftest.$ac_ext >&5
13654 ac_cv_lib_dl_dlopen=no
13657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13658 conftest$ac_exeext conftest.$ac_ext
13659 LIBS=$ac_check_lib_save_LIBS
13661 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13662 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13663 if test $ac_cv_lib_dl_dlopen = yes; then
13664 cat >>confdefs.h <<_ACEOF
13665 #define HAVE_LIBDL 1
13671 # Dynamic linking for SunOS/Solaris and SYSV
13673 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13674 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
13675 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13676 echo $ECHO_N "(cached) $ECHO_C" >&6
13678 ac_check_lib_save_LIBS=$LIBS
13680 cat >conftest.$ac_ext <<_ACEOF
13683 cat confdefs.h >>conftest.$ac_ext
13684 cat >>conftest.$ac_ext <<_ACEOF
13685 /* end confdefs.h. */
13687 /* Override any GCC internal prototype to avoid an error.
13688 Use char because int might match the return type of a GCC
13689 builtin and then its argument prototype would still apply. */
13697 return shl_load ();
13702 rm -f conftest.$ac_objext conftest$ac_exeext
13703 if { (ac_try="$ac_link"
13704 case "(($ac_try" in
13705 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13706 *) ac_try_echo
=$ac_try;;
13708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13709 (eval "$ac_link") 2>conftest.er1
13711 grep -v '^ *+' conftest.er1
>conftest.err
13713 cat conftest.err
>&5
13714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715 (exit $ac_status); } && {
13716 test -z "$ac_c_werror_flag" ||
13717 test ! -s conftest.err
13718 } && test -s conftest
$ac_exeext &&
13719 $as_test_x conftest
$ac_exeext; then
13720 ac_cv_lib_dld_shl_load
=yes
13722 echo "$as_me: failed program was:" >&5
13723 sed 's/^/| /' conftest.
$ac_ext >&5
13725 ac_cv_lib_dld_shl_load
=no
13728 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13729 conftest
$ac_exeext conftest.
$ac_ext
13730 LIBS
=$ac_check_lib_save_LIBS
13732 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13733 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
13734 if test $ac_cv_lib_dld_shl_load = yes; then
13735 cat >>confdefs.h
<<_ACEOF
13736 #define HAVE_LIBDLD 1
13742 # Dynamic linking for HP-UX
13744 # only check for sem_init if thread support is requested
13745 if test "$with_threads" = "yes" -o -z "$with_threads"; then
13746 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
13747 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
13748 if test "${ac_cv_search_sem_init+set}" = set; then
13749 echo $ECHO_N "(cached) $ECHO_C" >&6
13751 ac_func_search_save_LIBS
=$LIBS
13752 cat >conftest.
$ac_ext <<_ACEOF
13755 cat confdefs.h
>>conftest.
$ac_ext
13756 cat >>conftest.
$ac_ext <<_ACEOF
13757 /* end confdefs.h. */
13759 /* Override any GCC internal prototype to avoid an error.
13760 Use char because int might match the return type of a GCC
13761 builtin and then its argument prototype would still apply. */
13769 return sem_init ();
13774 for ac_lib
in '' pthread rt posix4
; do
13775 if test -z "$ac_lib"; then
13776 ac_res
="none required"
13779 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13781 rm -f conftest.
$ac_objext conftest
$ac_exeext
13782 if { (ac_try
="$ac_link"
13783 case "(($ac_try" in
13784 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13785 *) ac_try_echo=$ac_try;;
13787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13788 (eval "$ac_link") 2>conftest.er1
13790 grep -v '^ *+' conftest.er1 >conftest.err
13792 cat conftest.err >&5
13793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13794 (exit $ac_status); } && {
13795 test -z "$ac_c_werror_flag" ||
13796 test ! -s conftest.err
13797 } && test -s conftest$ac_exeext &&
13798 $as_test_x conftest$ac_exeext; then
13799 ac_cv_search_sem_init=$ac_res
13801 echo "$as_me: failed program was:" >&5
13802 sed 's/^/| /' conftest.$ac_ext >&5
13807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13809 if test "${ac_cv_search_sem_init+set}" = set; then
13813 if test "${ac_cv_search_sem_init+set}" = set; then
13816 ac_cv_search_sem_init=no
13818 rm conftest.$ac_ext
13819 LIBS=$ac_func_search_save_LIBS
13821 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
13822 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
13823 ac_res=$ac_cv_search_sem_init
13824 if test "$ac_res" != no; then
13825 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13828 # 'Real Time' functions on Solaris
13829 # posix4 on Solaris 2.6
13830 # pthread (first!) on Linux
13833 # check if we need libintl for locale functions
13834 { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
13835 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
13836 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
13837 echo $ECHO_N "(cached) $ECHO_C" >&6
13839 ac_check_lib_save_LIBS=$LIBS
13840 LIBS="-lintl $LIBS"
13841 cat >conftest.$ac_ext <<_ACEOF
13844 cat confdefs.h >>conftest.$ac_ext
13845 cat >>conftest.$ac_ext <<_ACEOF
13846 /* end confdefs.h. */
13848 /* Override any GCC internal prototype to avoid an error.
13849 Use char because int might match the return type of a GCC
13850 builtin and then its argument prototype would still apply. */
13854 char textdomain ();
13858 return textdomain ();
13863 rm -f conftest.$ac_objext conftest$ac_exeext
13864 if { (ac_try="$ac_link"
13865 case "(($ac_try" in
13866 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13867 *) ac_try_echo
=$ac_try;;
13869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13870 (eval "$ac_link") 2>conftest.er1
13872 grep -v '^ *+' conftest.er1
>conftest.err
13874 cat conftest.err
>&5
13875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13876 (exit $ac_status); } && {
13877 test -z "$ac_c_werror_flag" ||
13878 test ! -s conftest.err
13879 } && test -s conftest
$ac_exeext &&
13880 $as_test_x conftest
$ac_exeext; then
13881 ac_cv_lib_intl_textdomain
=yes
13883 echo "$as_me: failed program was:" >&5
13884 sed 's/^/| /' conftest.
$ac_ext >&5
13886 ac_cv_lib_intl_textdomain
=no
13889 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13890 conftest
$ac_exeext conftest.
$ac_ext
13891 LIBS
=$ac_check_lib_save_LIBS
13893 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
13894 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
13895 if test $ac_cv_lib_intl_textdomain = yes; then
13897 cat >>confdefs.h
<<\_ACEOF
13898 #define WITH_LIBINTL 1
13901 LIBS
="-lintl $LIBS"
13905 # checks for system dependent C++ extensions support
13906 case "$ac_sys_system" in
13907 AIX
*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
13908 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
13909 cat >conftest.
$ac_ext <<_ACEOF
13912 cat confdefs.h
>>conftest.
$ac_ext
13913 cat >>conftest.
$ac_ext <<_ACEOF
13914 /* end confdefs.h. */
13915 #include "/usr/lpp/xlC/include/load.h"
13919 loadAndInit("", 0, "")
13924 rm -f conftest.
$ac_objext conftest
$ac_exeext
13925 if { (ac_try
="$ac_link"
13926 case "(($ac_try" in
13927 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13928 *) ac_try_echo=$ac_try;;
13930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13931 (eval "$ac_link") 2>conftest.er1
13933 grep -v '^ *+' conftest.er1 >conftest.err
13935 cat conftest.err >&5
13936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13937 (exit $ac_status); } && {
13938 test -z "$ac_c_werror_flag" ||
13939 test ! -s conftest.err
13940 } && test -s conftest$ac_exeext &&
13941 $as_test_x conftest$ac_exeext; then
13943 cat >>confdefs.h <<\_ACEOF
13944 #define AIX_GENUINE_CPLUSPLUS 1
13947 { echo "$as_me:$LINENO: result: yes" >&5
13948 echo "${ECHO_T}yes" >&6; }
13950 echo "$as_me: failed program was:" >&5
13951 sed 's/^/| /' conftest.$ac_ext >&5
13953 { echo "$as_me:$LINENO: result: no" >&5
13954 echo "${ECHO_T}no" >&6; }
13957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13958 conftest$ac_exeext conftest.$ac_ext;;
13962 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
13963 { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
13964 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
13965 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
13966 echo $ECHO_N "(cached) $ECHO_C" >&6
13968 ac_check_lib_save_LIBS=$LIBS
13970 cat >conftest.$ac_ext <<_ACEOF
13973 cat confdefs.h >>conftest.$ac_ext
13974 cat >>conftest.$ac_ext <<_ACEOF
13975 /* end confdefs.h. */
13977 /* Override any GCC internal prototype to avoid an error.
13978 Use char because int might match the return type of a GCC
13979 builtin and then its argument prototype would still apply. */
13992 rm -f conftest.$ac_objext conftest$ac_exeext
13993 if { (ac_try="$ac_link"
13994 case "(($ac_try" in
13995 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13996 *) ac_try_echo
=$ac_try;;
13998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13999 (eval "$ac_link") 2>conftest.er1
14001 grep -v '^ *+' conftest.er1
>conftest.err
14003 cat conftest.err
>&5
14004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14005 (exit $ac_status); } && {
14006 test -z "$ac_c_werror_flag" ||
14007 test ! -s conftest.err
14008 } && test -s conftest
$ac_exeext &&
14009 $as_test_x conftest
$ac_exeext; then
14010 ac_cv_lib_nsl_t_open
=yes
14012 echo "$as_me: failed program was:" >&5
14013 sed 's/^/| /' conftest.
$ac_ext >&5
14015 ac_cv_lib_nsl_t_open
=no
14018 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14019 conftest
$ac_exeext conftest.
$ac_ext
14020 LIBS
=$ac_check_lib_save_LIBS
14022 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
14023 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
14024 if test $ac_cv_lib_nsl_t_open = yes; then
14028 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14029 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
14030 if test "${ac_cv_lib_socket_socket+set}" = set; then
14031 echo $ECHO_N "(cached) $ECHO_C" >&6
14033 ac_check_lib_save_LIBS
=$LIBS
14034 LIBS
="-lsocket $LIBS $LIBS"
14035 cat >conftest.
$ac_ext <<_ACEOF
14038 cat confdefs.h
>>conftest.
$ac_ext
14039 cat >>conftest.
$ac_ext <<_ACEOF
14040 /* end confdefs.h. */
14042 /* Override any GCC internal prototype to avoid an error.
14043 Use char because int might match the return type of a GCC
14044 builtin and then its argument prototype would still apply. */
14057 rm -f conftest.
$ac_objext conftest
$ac_exeext
14058 if { (ac_try
="$ac_link"
14059 case "(($ac_try" in
14060 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14061 *) ac_try_echo=$ac_try;;
14063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14064 (eval "$ac_link") 2>conftest.er1
14066 grep -v '^ *+' conftest.er1 >conftest.err
14068 cat conftest.err >&5
14069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14070 (exit $ac_status); } && {
14071 test -z "$ac_c_werror_flag" ||
14072 test ! -s conftest.err
14073 } && test -s conftest$ac_exeext &&
14074 $as_test_x conftest$ac_exeext; then
14075 ac_cv_lib_socket_socket=yes
14077 echo "$as_me: failed program was:" >&5
14078 sed 's/^/| /' conftest.$ac_ext >&5
14080 ac_cv_lib_socket_socket=no
14083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14084 conftest$ac_exeext conftest.$ac_ext
14085 LIBS=$ac_check_lib_save_LIBS
14087 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
14088 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
14089 if test $ac_cv_lib_socket_socket = yes; then
14090 LIBS="-lsocket $LIBS"
14094 { echo "$as_me:$LINENO: checking for --with-libs" >&5
14095 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
14097 # Check whether --with-libs was given.
14098 if test "${with_libs+set}" = set; then
14099 withval=$with_libs;
14100 { echo "$as_me:$LINENO: result: $withval" >&5
14101 echo "${ECHO_T}$withval" >&6; }
14102 LIBS="$withval $LIBS"
14105 { echo "$as_me:$LINENO: result: no" >&5
14106 echo "${ECHO_T}no" >&6; }
14110 # Check for use of the system libffi library
14111 { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
14112 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
14114 # Check whether --with-system_ffi was given.
14115 if test "${with_system_ffi+set}" = set; then
14116 withval=$with_system_ffi;
14120 { echo "$as_me:$LINENO: result: $with_system_ffi" >&5
14121 echo "${ECHO_T}$with_system_ffi" >&6; }
14123 # Check for --with-dbmliborder
14124 { echo "$as_me:$LINENO: checking for --with-dbmliborder" >&5
14125 echo $ECHO_N "checking for --with-dbmliborder... $ECHO_C" >&6; }
14127 # Check whether --with-dbmliborder was given.
14128 if test "${with_dbmliborder+set}" = set; then
14129 withval=$with_dbmliborder;
14130 if test x$with_dbmliborder = xyes
14132 { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
14133 echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
14134 { (exit 1); exit 1; }; }
14136 for db in `echo $with_dbmliborder |
sed 's/:/ /g'`; do
14137 if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb
14139 { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
14140 echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
14141 { (exit 1); exit 1; }; }
14147 { echo "$as_me:$LINENO: result: $with_dbmliborder" >&5
14148 echo "${ECHO_T}$with_dbmliborder" >&6; }
14150 # Determine if signalmodule should be used.
14153 { echo "$as_me:$LINENO: checking for --with-signal-module" >&5
14154 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; }
14156 # Check whether --with-signal-module was given.
14157 if test "${with_signal_module+set}" = set; then
14158 withval=$with_signal_module;
14162 if test -z "$with_signal_module"
14163 then with_signal_module="yes"
14165 { echo "$as_me:$LINENO: result: $with_signal_module" >&5
14166 echo "${ECHO_T}$with_signal_module" >&6; }
14168 if test "${with_signal_module}" = "yes"; then
14169 USE_SIGNAL_MODULE=""
14172 USE_SIGNAL_MODULE="#"
14173 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
14176 # This is used to generate Setup.config
14178 USE_THREAD_MODULE=""
14180 { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
14181 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; }
14184 # Check whether --with-dec-threads was given.
14185 if test "${with_dec_threads+set}" = set; then
14186 withval=$with_dec_threads;
14187 { echo "$as_me:$LINENO: result: $withval" >&5
14188 echo "${ECHO_T}$withval" >&6; }
14190 if test "${with_thread+set}" != set; then
14191 with_thread="$withval";
14194 { echo "$as_me:$LINENO: result: no" >&5
14195 echo "${ECHO_T}no" >&6; }
14199 # Templates for things AC_DEFINEd more than once.
14200 # For a single AC_DEFINE, no template is needed.
14208 { echo "$as_me:$LINENO: checking for --with-threads" >&5
14209 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; }
14211 # Check whether --with-threads was given.
14212 if test "${with_threads+set}" = set; then
14213 withval=$with_threads;
14217 # --with-thread is deprecated, but check for it anyway
14219 # Check whether --with-thread was given.
14220 if test "${with_thread+set}" = set; then
14221 withval=$with_thread; with_threads=$with_thread
14225 if test -z "$with_threads"
14226 then with_threads="yes"
14228 { echo "$as_me:$LINENO: result: $with_threads" >&5
14229 echo "${ECHO_T}$with_threads" >&6; }
14232 if test "$with_threads" = "no"
14234 USE_THREAD_MODULE="#"
14235 elif test "$ac_cv_pthread_is_default" = yes
14237 cat >>confdefs.h <<\_ACEOF
14238 #define WITH_THREAD 1
14241 # Defining _REENTRANT on system with POSIX threads should not hurt.
14242 cat >>confdefs.h <<\_ACEOF
14243 #define _REENTRANT 1
14247 THREADOBJ="Python/thread.o"
14248 elif test "$ac_cv_kpthread" = "yes"
14251 if test "$ac_cv_cxx_thread" = "yes"; then
14252 CXX="$CXX -Kpthread"
14254 cat >>confdefs.h <<\_ACEOF
14255 #define WITH_THREAD 1
14259 THREADOBJ="Python/thread.o"
14260 elif test "$ac_cv_kthread" = "yes"
14263 if test "$ac_cv_cxx_thread" = "yes"; then
14264 CXX="$CXX -Kthread"
14266 cat >>confdefs.h <<\_ACEOF
14267 #define WITH_THREAD 1
14271 THREADOBJ="Python/thread.o"
14272 elif test "$ac_cv_pthread" = "yes"
14275 if test "$ac_cv_cxx_thread" = "yes"; then
14276 CXX="$CXX -pthread"
14278 cat >>confdefs.h <<\_ACEOF
14279 #define WITH_THREAD 1
14283 THREADOBJ="Python/thread.o"
14285 if test ! -z "$with_threads" -a -d "$with_threads"
14286 then LDFLAGS="$LDFLAGS -L$with_threads"
14288 if test ! -z "$withval" -a -d "$withval"
14289 then LDFLAGS="$LDFLAGS -L$withval"
14292 # According to the POSIX spec, a pthreads implementation must
14293 # define _POSIX_THREADS in unistd.h. Some apparently don't
14294 # (e.g. gnu pth with pthread emulation)
14295 { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
14296 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; }
14297 cat >conftest.$ac_ext <<_ACEOF
14300 cat confdefs.h >>conftest.$ac_ext
14301 cat >>conftest.$ac_ext <<_ACEOF
14302 /* end confdefs.h. */
14304 #include <unistd.h>
14305 #ifdef _POSIX_THREADS
14310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14311 $EGREP "yes" >/dev/null 2>&1; then
14312 unistd_defines_pthreads=yes
14314 unistd_defines_pthreads=no
14318 { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
14319 echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
14321 cat >>confdefs.h <<\_ACEOF
14322 #define _REENTRANT 1
14325 if test "${ac_cv_header_cthreads_h+set}" = set; then
14326 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
14327 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
14328 if test "${ac_cv_header_cthreads_h+set}" = set; then
14329 echo $ECHO_N "(cached) $ECHO_C" >&6
14331 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14332 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
14334 # Is the header compilable?
14335 { echo "$as_me:$LINENO: checking cthreads.h usability" >&5
14336 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; }
14337 cat >conftest.$ac_ext <<_ACEOF
14340 cat confdefs.h >>conftest.$ac_ext
14341 cat >>conftest.$ac_ext <<_ACEOF
14342 /* end confdefs.h. */
14343 $ac_includes_default
14344 #include <cthreads.h>
14346 rm -f conftest.$ac_objext
14347 if { (ac_try="$ac_compile"
14348 case "(($ac_try" in
14349 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14350 *) ac_try_echo
=$ac_try;;
14352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14353 (eval "$ac_compile") 2>conftest.er1
14355 grep -v '^ *+' conftest.er1
>conftest.err
14357 cat conftest.err
>&5
14358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14359 (exit $ac_status); } && {
14360 test -z "$ac_c_werror_flag" ||
14361 test ! -s conftest.err
14362 } && test -s conftest.
$ac_objext; then
14363 ac_header_compiler
=yes
14365 echo "$as_me: failed program was:" >&5
14366 sed 's/^/| /' conftest.
$ac_ext >&5
14368 ac_header_compiler
=no
14371 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14372 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14373 echo "${ECHO_T}$ac_header_compiler" >&6; }
14375 # Is the header present?
14376 { echo "$as_me:$LINENO: checking cthreads.h presence" >&5
14377 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; }
14378 cat >conftest.
$ac_ext <<_ACEOF
14381 cat confdefs.h
>>conftest.
$ac_ext
14382 cat >>conftest.
$ac_ext <<_ACEOF
14383 /* end confdefs.h. */
14384 #include <cthreads.h>
14386 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14387 case "(($ac_try" in
14388 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14389 *) ac_try_echo=$ac_try;;
14391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14392 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14394 grep -v '^ *+' conftest.er1 >conftest.err
14396 cat conftest.err >&5
14397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398 (exit $ac_status); } >/dev/null && {
14399 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14400 test ! -s conftest.err
14402 ac_header_preproc=yes
14404 echo "$as_me: failed program was:" >&5
14405 sed 's/^/| /' conftest.$ac_ext >&5
14407 ac_header_preproc=no
14410 rm -f conftest.err conftest.$ac_ext
14411 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14412 echo "${ECHO_T}$ac_header_preproc" >&6; }
14414 # So? What about this header?
14415 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14417 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14418 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14419 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
14420 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
14421 ac_header_preproc=yes
14424 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
14425 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
14426 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
14427 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
14428 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
14429 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
14430 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14431 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14432 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
14433 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
14434 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
14435 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
14437 ## -------------------------------------- ##
14438 ## Report this to http://bugs.python.org/ ##
14439 ## -------------------------------------- ##
14441 ) | sed "s/^/$as_me: WARNING: /" >&2
14444 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
14445 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
14446 if test "${ac_cv_header_cthreads_h+set}" = set; then
14447 echo $ECHO_N "(cached) $ECHO_C" >&6
14449 ac_cv_header_cthreads_h=$ac_header_preproc
14451 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14452 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
14455 if test $ac_cv_header_cthreads_h = yes; then
14456 cat >>confdefs.h <<\_ACEOF
14457 #define WITH_THREAD 1
14460 cat >>confdefs.h <<\_ACEOF
14461 #define C_THREADS 1
14465 cat >>confdefs.h <<\_ACEOF
14466 #define HURD_C_THREADS 1
14469 LIBS="$LIBS -lthreads"
14470 THREADOBJ="Python/thread.o"
14473 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14474 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14475 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
14476 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14477 echo $ECHO_N "(cached) $ECHO_C" >&6
14479 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14480 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
14482 # Is the header compilable?
14483 { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
14484 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; }
14485 cat >conftest.$ac_ext <<_ACEOF
14488 cat confdefs.h >>conftest.$ac_ext
14489 cat >>conftest.$ac_ext <<_ACEOF
14490 /* end confdefs.h. */
14491 $ac_includes_default
14492 #include <mach/cthreads.h>
14494 rm -f conftest.$ac_objext
14495 if { (ac_try="$ac_compile"
14496 case "(($ac_try" in
14497 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14498 *) ac_try_echo
=$ac_try;;
14500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14501 (eval "$ac_compile") 2>conftest.er1
14503 grep -v '^ *+' conftest.er1
>conftest.err
14505 cat conftest.err
>&5
14506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14507 (exit $ac_status); } && {
14508 test -z "$ac_c_werror_flag" ||
14509 test ! -s conftest.err
14510 } && test -s conftest.
$ac_objext; then
14511 ac_header_compiler
=yes
14513 echo "$as_me: failed program was:" >&5
14514 sed 's/^/| /' conftest.
$ac_ext >&5
14516 ac_header_compiler
=no
14519 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14520 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14521 echo "${ECHO_T}$ac_header_compiler" >&6; }
14523 # Is the header present?
14524 { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
14525 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; }
14526 cat >conftest.
$ac_ext <<_ACEOF
14529 cat confdefs.h
>>conftest.
$ac_ext
14530 cat >>conftest.
$ac_ext <<_ACEOF
14531 /* end confdefs.h. */
14532 #include <mach/cthreads.h>
14534 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14535 case "(($ac_try" in
14536 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14537 *) ac_try_echo=$ac_try;;
14539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14542 grep -v '^ *+' conftest.er1 >conftest.err
14544 cat conftest.err >&5
14545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14546 (exit $ac_status); } >/dev/null && {
14547 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14548 test ! -s conftest.err
14550 ac_header_preproc=yes
14552 echo "$as_me: failed program was:" >&5
14553 sed 's/^/| /' conftest.$ac_ext >&5
14555 ac_header_preproc=no
14558 rm -f conftest.err conftest.$ac_ext
14559 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14560 echo "${ECHO_T}$ac_header_preproc" >&6; }
14562 # So? What about this header?
14563 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14565 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14566 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14567 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
14568 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
14569 ac_header_preproc=yes
14572 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
14573 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
14574 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
14575 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
14576 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
14577 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
14578 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14579 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14580 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
14581 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
14582 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
14583 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
14585 ## -------------------------------------- ##
14586 ## Report this to http://bugs.python.org/ ##
14587 ## -------------------------------------- ##
14589 ) | sed "s/^/$as_me: WARNING: /" >&2
14592 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14593 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
14594 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14595 echo $ECHO_N "(cached) $ECHO_C" >&6
14597 ac_cv_header_mach_cthreads_h=$ac_header_preproc
14599 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14600 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
14603 if test $ac_cv_header_mach_cthreads_h = yes; then
14604 cat >>confdefs.h <<\_ACEOF
14605 #define WITH_THREAD 1
14608 cat >>confdefs.h <<\_ACEOF
14609 #define C_THREADS 1
14613 cat >>confdefs.h <<\_ACEOF
14614 #define MACH_C_THREADS 1
14617 THREADOBJ="Python/thread.o"
14620 { echo "$as_me:$LINENO: checking for --with-pth" >&5
14621 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; }
14623 # Check whether --with-pth was given.
14624 if test "${with_pth+set}" = set; then
14625 withval=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5
14626 echo "${ECHO_T}$withval" >&6; }
14627 cat >>confdefs.h <<\_ACEOF
14628 #define WITH_THREAD 1
14632 cat >>confdefs.h <<\_ACEOF
14637 THREADOBJ="Python/thread.o"
14639 { echo "$as_me:$LINENO: result: no" >&5
14640 echo "${ECHO_T}no" >&6; }
14642 # Just looking for pthread_create in libpthread is not enough:
14643 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
14644 # So we really have to include pthread.h, and then link.
14646 LIBS="$LIBS -lpthread"
14647 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
14648 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
14649 cat >conftest.$ac_ext <<_ACEOF
14652 cat confdefs.h >>conftest.$ac_ext
14653 cat >>conftest.$ac_ext <<_ACEOF
14654 /* end confdefs.h. */
14655 #include <pthread.h>
14657 void * start_routine (void *arg) { exit (0); }
14662 pthread_create (NULL, NULL, start_routine, NULL)
14667 rm -f conftest.$ac_objext conftest$ac_exeext
14668 if { (ac_try="$ac_link"
14669 case "(($ac_try" in
14670 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14671 *) ac_try_echo
=$ac_try;;
14673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14674 (eval "$ac_link") 2>conftest.er1
14676 grep -v '^ *+' conftest.er1
>conftest.err
14678 cat conftest.err
>&5
14679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680 (exit $ac_status); } && {
14681 test -z "$ac_c_werror_flag" ||
14682 test ! -s conftest.err
14683 } && test -s conftest
$ac_exeext &&
14684 $as_test_x conftest
$ac_exeext; then
14686 { echo "$as_me:$LINENO: result: yes" >&5
14687 echo "${ECHO_T}yes" >&6; }
14688 cat >>confdefs.h
<<\_ACEOF
14689 #define WITH_THREAD 1
14693 THREADOBJ
="Python/thread.o"
14695 echo "$as_me: failed program was:" >&5
14696 sed 's/^/| /' conftest.
$ac_ext >&5
14700 { echo "$as_me:$LINENO: checking for pthread_detach" >&5
14701 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; }
14702 if test "${ac_cv_func_pthread_detach+set}" = set; then
14703 echo $ECHO_N "(cached) $ECHO_C" >&6
14705 cat >conftest.
$ac_ext <<_ACEOF
14708 cat confdefs.h
>>conftest.
$ac_ext
14709 cat >>conftest.
$ac_ext <<_ACEOF
14710 /* end confdefs.h. */
14711 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
14712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14713 #define pthread_detach innocuous_pthread_detach
14715 /* System header to define __stub macros and hopefully few prototypes,
14716 which can conflict with char pthread_detach (); below.
14717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14718 <limits.h> exists even on freestanding compilers. */
14721 # include <limits.h>
14723 # include <assert.h>
14726 #undef pthread_detach
14728 /* Override any GCC internal prototype to avoid an error.
14729 Use char because int might match the return type of a GCC
14730 builtin and then its argument prototype would still apply. */
14734 char pthread_detach ();
14735 /* The GNU C library defines this for functions which it implements
14736 to always fail with ENOSYS. Some functions are actually named
14737 something starting with __ and the normal name is an alias. */
14738 #if defined __stub_pthread_detach || defined __stub___pthread_detach
14745 return pthread_detach ();
14750 rm -f conftest.
$ac_objext conftest
$ac_exeext
14751 if { (ac_try
="$ac_link"
14752 case "(($ac_try" in
14753 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14754 *) ac_try_echo=$ac_try;;
14756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14757 (eval "$ac_link") 2>conftest.er1
14759 grep -v '^ *+' conftest.er1 >conftest.err
14761 cat conftest.err >&5
14762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); } && {
14764 test -z "$ac_c_werror_flag" ||
14765 test ! -s conftest.err
14766 } && test -s conftest$ac_exeext &&
14767 $as_test_x conftest$ac_exeext; then
14768 ac_cv_func_pthread_detach=yes
14770 echo "$as_me: failed program was:" >&5
14771 sed 's/^/| /' conftest.$ac_ext >&5
14773 ac_cv_func_pthread_detach=no
14776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14777 conftest$ac_exeext conftest.$ac_ext
14779 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
14780 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; }
14781 if test $ac_cv_func_pthread_detach = yes; then
14782 cat >>confdefs.h <<\_ACEOF
14783 #define WITH_THREAD 1
14787 THREADOBJ="Python/thread.o"
14790 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14791 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
14792 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
14793 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14794 echo $ECHO_N "(cached) $ECHO_C" >&6
14796 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
14797 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
14799 # Is the header compilable?
14800 { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
14801 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; }
14802 cat >conftest.$ac_ext <<_ACEOF
14805 cat confdefs.h >>conftest.$ac_ext
14806 cat >>conftest.$ac_ext <<_ACEOF
14807 /* end confdefs.h. */
14808 $ac_includes_default
14809 #include <atheos/threads.h>
14811 rm -f conftest.$ac_objext
14812 if { (ac_try="$ac_compile"
14813 case "(($ac_try" in
14814 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14815 *) ac_try_echo
=$ac_try;;
14817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14818 (eval "$ac_compile") 2>conftest.er1
14820 grep -v '^ *+' conftest.er1
>conftest.err
14822 cat conftest.err
>&5
14823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14824 (exit $ac_status); } && {
14825 test -z "$ac_c_werror_flag" ||
14826 test ! -s conftest.err
14827 } && test -s conftest.
$ac_objext; then
14828 ac_header_compiler
=yes
14830 echo "$as_me: failed program was:" >&5
14831 sed 's/^/| /' conftest.
$ac_ext >&5
14833 ac_header_compiler
=no
14836 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14837 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14838 echo "${ECHO_T}$ac_header_compiler" >&6; }
14840 # Is the header present?
14841 { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
14842 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; }
14843 cat >conftest.
$ac_ext <<_ACEOF
14846 cat confdefs.h
>>conftest.
$ac_ext
14847 cat >>conftest.
$ac_ext <<_ACEOF
14848 /* end confdefs.h. */
14849 #include <atheos/threads.h>
14851 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14852 case "(($ac_try" in
14853 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14854 *) ac_try_echo=$ac_try;;
14856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14857 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14859 grep -v '^ *+' conftest.er1 >conftest.err
14861 cat conftest.err >&5
14862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14863 (exit $ac_status); } >/dev/null && {
14864 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14865 test ! -s conftest.err
14867 ac_header_preproc=yes
14869 echo "$as_me: failed program was:" >&5
14870 sed 's/^/| /' conftest.$ac_ext >&5
14872 ac_header_preproc=no
14875 rm -f conftest.err conftest.$ac_ext
14876 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14877 echo "${ECHO_T}$ac_header_preproc" >&6; }
14879 # So? What about this header?
14880 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14882 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14883 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14884 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
14885 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
14886 ac_header_preproc=yes
14889 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
14890 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
14891 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
14892 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
14893 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
14894 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
14895 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
14896 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14897 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
14898 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
14899 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
14900 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
14902 ## -------------------------------------- ##
14903 ## Report this to http://bugs.python.org/ ##
14904 ## -------------------------------------- ##
14906 ) | sed "s/^/$as_me: WARNING: /" >&2
14909 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
14910 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
14911 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14912 echo $ECHO_N "(cached) $ECHO_C" >&6
14914 ac_cv_header_atheos_threads_h=$ac_header_preproc
14916 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
14917 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
14920 if test $ac_cv_header_atheos_threads_h = yes; then
14921 cat >>confdefs.h <<\_ACEOF
14922 #define WITH_THREAD 1
14926 cat >>confdefs.h <<\_ACEOF
14927 #define ATHEOS_THREADS 1
14930 THREADOBJ="Python/thread.o"
14933 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
14934 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
14935 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
14936 echo $ECHO_N "(cached) $ECHO_C" >&6
14938 ac_check_lib_save_LIBS=$LIBS
14939 LIBS="-lpthreads $LIBS"
14940 cat >conftest.$ac_ext <<_ACEOF
14943 cat confdefs.h >>conftest.$ac_ext
14944 cat >>conftest.$ac_ext <<_ACEOF
14945 /* end confdefs.h. */
14947 /* Override any GCC internal prototype to avoid an error.
14948 Use char because int might match the return type of a GCC
14949 builtin and then its argument prototype would still apply. */
14953 char pthread_create ();
14957 return pthread_create ();
14962 rm -f conftest.$ac_objext conftest$ac_exeext
14963 if { (ac_try="$ac_link"
14964 case "(($ac_try" in
14965 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14966 *) ac_try_echo
=$ac_try;;
14968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14969 (eval "$ac_link") 2>conftest.er1
14971 grep -v '^ *+' conftest.er1
>conftest.err
14973 cat conftest.err
>&5
14974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975 (exit $ac_status); } && {
14976 test -z "$ac_c_werror_flag" ||
14977 test ! -s conftest.err
14978 } && test -s conftest
$ac_exeext &&
14979 $as_test_x conftest
$ac_exeext; then
14980 ac_cv_lib_pthreads_pthread_create
=yes
14982 echo "$as_me: failed program was:" >&5
14983 sed 's/^/| /' conftest.
$ac_ext >&5
14985 ac_cv_lib_pthreads_pthread_create
=no
14988 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14989 conftest
$ac_exeext conftest.
$ac_ext
14990 LIBS
=$ac_check_lib_save_LIBS
14992 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
14993 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
14994 if test $ac_cv_lib_pthreads_pthread_create = yes; then
14995 cat >>confdefs.h
<<\_ACEOF
14996 #define WITH_THREAD 1
15000 LIBS
="$LIBS -lpthreads"
15001 THREADOBJ
="Python/thread.o"
15004 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
15005 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
15006 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
15007 echo $ECHO_N "(cached) $ECHO_C" >&6
15009 ac_check_lib_save_LIBS
=$LIBS
15011 cat >conftest.
$ac_ext <<_ACEOF
15014 cat confdefs.h
>>conftest.
$ac_ext
15015 cat >>conftest.
$ac_ext <<_ACEOF
15016 /* end confdefs.h. */
15018 /* Override any GCC internal prototype to avoid an error.
15019 Use char because int might match the return type of a GCC
15020 builtin and then its argument prototype would still apply. */
15024 char pthread_create ();
15028 return pthread_create ();
15033 rm -f conftest.
$ac_objext conftest
$ac_exeext
15034 if { (ac_try
="$ac_link"
15035 case "(($ac_try" in
15036 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15037 *) ac_try_echo=$ac_try;;
15039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15040 (eval "$ac_link") 2>conftest.er1
15042 grep -v '^ *+' conftest.er1 >conftest.err
15044 cat conftest.err >&5
15045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046 (exit $ac_status); } && {
15047 test -z "$ac_c_werror_flag" ||
15048 test ! -s conftest.err
15049 } && test -s conftest$ac_exeext &&
15050 $as_test_x conftest$ac_exeext; then
15051 ac_cv_lib_c_r_pthread_create=yes
15053 echo "$as_me: failed program was:" >&5
15054 sed 's/^/| /' conftest.$ac_ext >&5
15056 ac_cv_lib_c_r_pthread_create=no
15059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15060 conftest$ac_exeext conftest.$ac_ext
15061 LIBS=$ac_check_lib_save_LIBS
15063 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
15064 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
15065 if test $ac_cv_lib_c_r_pthread_create = yes; then
15066 cat >>confdefs.h <<\_ACEOF
15067 #define WITH_THREAD 1
15072 THREADOBJ="Python/thread.o"
15075 { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
15076 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
15077 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
15078 echo $ECHO_N "(cached) $ECHO_C" >&6
15080 ac_check_lib_save_LIBS=$LIBS
15081 LIBS="-lpthread $LIBS"
15082 cat >conftest.$ac_ext <<_ACEOF
15085 cat confdefs.h >>conftest.$ac_ext
15086 cat >>conftest.$ac_ext <<_ACEOF
15087 /* end confdefs.h. */
15089 /* Override any GCC internal prototype to avoid an error.
15090 Use char because int might match the return type of a GCC
15091 builtin and then its argument prototype would still apply. */
15095 char __pthread_create_system ();
15099 return __pthread_create_system ();
15104 rm -f conftest.$ac_objext conftest$ac_exeext
15105 if { (ac_try="$ac_link"
15106 case "(($ac_try" in
15107 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15108 *) ac_try_echo
=$ac_try;;
15110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15111 (eval "$ac_link") 2>conftest.er1
15113 grep -v '^ *+' conftest.er1
>conftest.err
15115 cat conftest.err
>&5
15116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117 (exit $ac_status); } && {
15118 test -z "$ac_c_werror_flag" ||
15119 test ! -s conftest.err
15120 } && test -s conftest
$ac_exeext &&
15121 $as_test_x conftest
$ac_exeext; then
15122 ac_cv_lib_pthread___pthread_create_system
=yes
15124 echo "$as_me: failed program was:" >&5
15125 sed 's/^/| /' conftest.
$ac_ext >&5
15127 ac_cv_lib_pthread___pthread_create_system
=no
15130 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15131 conftest
$ac_exeext conftest.
$ac_ext
15132 LIBS
=$ac_check_lib_save_LIBS
15134 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
15135 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
15136 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
15137 cat >>confdefs.h
<<\_ACEOF
15138 #define WITH_THREAD 1
15142 LIBS
="$LIBS -lpthread"
15143 THREADOBJ
="Python/thread.o"
15146 { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
15147 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
15148 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
15149 echo $ECHO_N "(cached) $ECHO_C" >&6
15151 ac_check_lib_save_LIBS
=$LIBS
15153 cat >conftest.
$ac_ext <<_ACEOF
15156 cat confdefs.h
>>conftest.
$ac_ext
15157 cat >>conftest.
$ac_ext <<_ACEOF
15158 /* end confdefs.h. */
15160 /* Override any GCC internal prototype to avoid an error.
15161 Use char because int might match the return type of a GCC
15162 builtin and then its argument prototype would still apply. */
15166 char pthread_create ();
15170 return pthread_create ();
15175 rm -f conftest.
$ac_objext conftest
$ac_exeext
15176 if { (ac_try
="$ac_link"
15177 case "(($ac_try" in
15178 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15179 *) ac_try_echo=$ac_try;;
15181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15182 (eval "$ac_link") 2>conftest.er1
15184 grep -v '^ *+' conftest.er1 >conftest.err
15186 cat conftest.err >&5
15187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15188 (exit $ac_status); } && {
15189 test -z "$ac_c_werror_flag" ||
15190 test ! -s conftest.err
15191 } && test -s conftest$ac_exeext &&
15192 $as_test_x conftest$ac_exeext; then
15193 ac_cv_lib_cma_pthread_create=yes
15195 echo "$as_me: failed program was:" >&5
15196 sed 's/^/| /' conftest.$ac_ext >&5
15198 ac_cv_lib_cma_pthread_create=no
15201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15202 conftest$ac_exeext conftest.$ac_ext
15203 LIBS=$ac_check_lib_save_LIBS
15205 { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
15206 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
15207 if test $ac_cv_lib_cma_pthread_create = yes; then
15208 cat >>confdefs.h <<\_ACEOF
15209 #define WITH_THREAD 1
15214 THREADOBJ="Python/thread.o"
15217 USE_THREAD_MODULE="#"
15234 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15235 conftest$ac_exeext conftest.$ac_ext
15245 { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
15246 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
15247 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
15248 echo $ECHO_N "(cached) $ECHO_C" >&6
15250 ac_check_lib_save_LIBS=$LIBS
15252 cat >conftest.$ac_ext <<_ACEOF
15255 cat confdefs.h >>conftest.$ac_ext
15256 cat >>conftest.$ac_ext <<_ACEOF
15257 /* end confdefs.h. */
15259 /* Override any GCC internal prototype to avoid an error.
15260 Use char because int might match the return type of a GCC
15261 builtin and then its argument prototype would still apply. */
15269 return usconfig ();
15274 rm -f conftest.$ac_objext conftest$ac_exeext
15275 if { (ac_try="$ac_link"
15276 case "(($ac_try" in
15277 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15278 *) ac_try_echo
=$ac_try;;
15280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15281 (eval "$ac_link") 2>conftest.er1
15283 grep -v '^ *+' conftest.er1
>conftest.err
15285 cat conftest.err
>&5
15286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287 (exit $ac_status); } && {
15288 test -z "$ac_c_werror_flag" ||
15289 test ! -s conftest.err
15290 } && test -s conftest
$ac_exeext &&
15291 $as_test_x conftest
$ac_exeext; then
15292 ac_cv_lib_mpc_usconfig
=yes
15294 echo "$as_me: failed program was:" >&5
15295 sed 's/^/| /' conftest.
$ac_ext >&5
15297 ac_cv_lib_mpc_usconfig
=no
15300 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15301 conftest
$ac_exeext conftest.
$ac_ext
15302 LIBS
=$ac_check_lib_save_LIBS
15304 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
15305 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
15306 if test $ac_cv_lib_mpc_usconfig = yes; then
15307 cat >>confdefs.h
<<\_ACEOF
15308 #define WITH_THREAD 1
15312 THREADOBJ
="Python/thread.o"
15313 USE_THREAD_MODULE
=""
15317 if test "$posix_threads" != "yes"; then
15318 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
15319 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
15320 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
15321 echo $ECHO_N "(cached) $ECHO_C" >&6
15323 ac_check_lib_save_LIBS
=$LIBS
15324 LIBS
="-lthread $LIBS"
15325 cat >conftest.
$ac_ext <<_ACEOF
15328 cat confdefs.h
>>conftest.
$ac_ext
15329 cat >>conftest.
$ac_ext <<_ACEOF
15330 /* end confdefs.h. */
15332 /* Override any GCC internal prototype to avoid an error.
15333 Use char because int might match the return type of a GCC
15334 builtin and then its argument prototype would still apply. */
15338 char thr_create ();
15342 return thr_create ();
15347 rm -f conftest.
$ac_objext conftest
$ac_exeext
15348 if { (ac_try
="$ac_link"
15349 case "(($ac_try" in
15350 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15351 *) ac_try_echo=$ac_try;;
15353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15354 (eval "$ac_link") 2>conftest.er1
15356 grep -v '^ *+' conftest.er1 >conftest.err
15358 cat conftest.err >&5
15359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15360 (exit $ac_status); } && {
15361 test -z "$ac_c_werror_flag" ||
15362 test ! -s conftest.err
15363 } && test -s conftest$ac_exeext &&
15364 $as_test_x conftest$ac_exeext; then
15365 ac_cv_lib_thread_thr_create=yes
15367 echo "$as_me: failed program was:" >&5
15368 sed 's/^/| /' conftest.$ac_ext >&5
15370 ac_cv_lib_thread_thr_create=no
15373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15374 conftest$ac_exeext conftest.$ac_ext
15375 LIBS=$ac_check_lib_save_LIBS
15377 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
15378 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
15379 if test $ac_cv_lib_thread_thr_create = yes; then
15380 cat >>confdefs.h <<\_ACEOF
15381 #define WITH_THREAD 1
15384 LIBS="$LIBS -lthread"
15385 THREADOBJ="Python/thread.o"
15386 USE_THREAD_MODULE=""
15391 if test "$USE_THREAD_MODULE" != "#"
15393 # If the above checks didn't disable threads, (at least) OSF1
15394 # needs this '-threads' argument during linking.
15395 case $ac_sys_system in
15396 OSF1) LDLAST=-threads;;
15401 if test "$posix_threads" = "yes"; then
15402 if test "$unistd_defines_pthreads" = "no"; then
15404 cat >>confdefs.h <<\_ACEOF
15405 #define _POSIX_THREADS 1
15410 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
15411 case $ac_sys_system/$ac_sys_release in
15413 cat >>confdefs.h <<\_ACEOF
15414 #define HAVE_PTHREAD_DESTRUCTOR 1
15419 cat >>confdefs.h <<\_ACEOF
15420 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
15425 cat >>confdefs.h <<\_ACEOF
15426 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
15432 { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
15433 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
15434 if test "${ac_cv_pthread_system_supported+set}" = set; then
15435 echo $ECHO_N "(cached) $ECHO_C" >&6
15437 if test "$cross_compiling" = yes; then
15438 ac_cv_pthread_system_supported=no
15440 cat >conftest.$ac_ext <<_ACEOF
15443 cat confdefs.h >>conftest.$ac_ext
15444 cat >>conftest.$ac_ext <<_ACEOF
15445 /* end confdefs.h. */
15446 #include <pthread.h>
15447 void *foo(void *parm) {
15451 pthread_attr_t attr;
15453 if (pthread_attr_init(&attr)) exit(-1);
15454 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
15455 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
15459 rm -f conftest$ac_exeext
15460 if { (ac_try="$ac_link"
15461 case "(($ac_try" in
15462 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15463 *) ac_try_echo
=$ac_try;;
15465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15466 (eval "$ac_link") 2>&5
15468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15469 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15470 { (case "(($ac_try" in
15471 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15472 *) ac_try_echo=$ac_try;;
15474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15475 (eval "$ac_try") 2>&5
15477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478 (exit $ac_status); }; }; then
15479 ac_cv_pthread_system_supported=yes
15481 echo "$as_me: program exited with status $ac_status" >&5
15482 echo "$as_me: failed program was:" >&5
15483 sed 's/^/| /' conftest.$ac_ext >&5
15485 ( exit $ac_status )
15486 ac_cv_pthread_system_supported=no
15488 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15495 { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
15496 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
15497 if test "$ac_cv_pthread_system_supported" = "yes"; then
15499 cat >>confdefs.h <<\_ACEOF
15500 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
15505 for ac_func in pthread_sigmask
15507 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
15508 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15509 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15510 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15511 echo $ECHO_N "(cached) $ECHO_C" >&6
15513 cat >conftest.$ac_ext <<_ACEOF
15516 cat confdefs.h >>conftest.$ac_ext
15517 cat >>conftest.$ac_ext <<_ACEOF
15518 /* end confdefs.h. */
15519 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15520 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15521 #define $ac_func innocuous_$ac_func
15523 /* System header to define __stub macros and hopefully few prototypes,
15524 which can conflict with char $ac_func (); below.
15525 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15526 <limits.h> exists even on freestanding compilers. */
15529 # include <limits.h>
15531 # include <assert.h>
15536 /* Override any GCC internal prototype to avoid an error.
15537 Use char because int might match the return type of a GCC
15538 builtin and then its argument prototype would still apply. */
15543 /* The GNU C library defines this for functions which it implements
15544 to always fail with ENOSYS. Some functions are actually named
15545 something starting with __ and the normal name is an alias. */
15546 #if defined __stub_$ac_func || defined __stub___$ac_func
15553 return $ac_func ();
15558 rm -f conftest.$ac_objext conftest$ac_exeext
15559 if { (ac_try="$ac_link"
15560 case "(($ac_try" in
15561 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15562 *) ac_try_echo
=$ac_try;;
15564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15565 (eval "$ac_link") 2>conftest.er1
15567 grep -v '^ *+' conftest.er1
>conftest.err
15569 cat conftest.err
>&5
15570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15571 (exit $ac_status); } && {
15572 test -z "$ac_c_werror_flag" ||
15573 test ! -s conftest.err
15574 } && test -s conftest
$ac_exeext &&
15575 $as_test_x conftest
$ac_exeext; then
15576 eval "$as_ac_var=yes"
15578 echo "$as_me: failed program was:" >&5
15579 sed 's/^/| /' conftest.
$ac_ext >&5
15581 eval "$as_ac_var=no"
15584 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15585 conftest
$ac_exeext conftest.
$ac_ext
15587 ac_res
=`eval echo '${'$as_ac_var'}'`
15588 { echo "$as_me:$LINENO: result: $ac_res" >&5
15589 echo "${ECHO_T}$ac_res" >&6; }
15590 if test `eval echo '${'$as_ac_var'}'` = yes; then
15591 cat >>confdefs.h
<<_ACEOF
15592 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15594 case $ac_sys_system in
15597 cat >>confdefs.h
<<\_ACEOF
15598 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
15609 # Check for enable-ipv6
15612 { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
15613 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
15614 # Check whether --enable-ipv6 was given.
15615 if test "${enable_ipv6+set}" = set; then
15616 enableval
=$enable_ipv6; case "$enableval" in
15618 { echo "$as_me:$LINENO: result: no" >&5
15619 echo "${ECHO_T}no" >&6; }
15622 *) { echo "$as_me:$LINENO: result: yes" >&5
15623 echo "${ECHO_T}yes" >&6; }
15624 cat >>confdefs.h
<<\_ACEOF
15625 #define ENABLE_IPV6 1
15633 if test "$cross_compiling" = yes; then
15634 { echo "$as_me:$LINENO: result: no" >&5
15635 echo "${ECHO_T}no" >&6; }
15639 cat >conftest.
$ac_ext <<_ACEOF
15642 cat confdefs.h
>>conftest.
$ac_ext
15643 cat >>conftest.
$ac_ext <<_ACEOF
15644 /* end confdefs.h. */
15645 /* AF_INET6 available check */
15646 #include <sys/types.h>
15647 #include <sys/socket.h>
15650 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
15657 rm -f conftest
$ac_exeext
15658 if { (ac_try
="$ac_link"
15659 case "(($ac_try" in
15660 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15661 *) ac_try_echo=$ac_try;;
15663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15664 (eval "$ac_link") 2>&5
15666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15667 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15668 { (case "(($ac_try" in
15669 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15670 *) ac_try_echo
=$ac_try;;
15672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15673 (eval "$ac_try") 2>&5
15675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676 (exit $ac_status); }; }; then
15677 { echo "$as_me:$LINENO: result: yes" >&5
15678 echo "${ECHO_T}yes" >&6; }
15681 echo "$as_me: program exited with status $ac_status" >&5
15682 echo "$as_me: failed program was:" >&5
15683 sed 's/^/| /' conftest.
$ac_ext >&5
15685 ( exit $ac_status )
15686 { echo "$as_me:$LINENO: result: no" >&5
15687 echo "${ECHO_T}no" >&6; }
15690 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15695 if test "$ipv6" = "yes"; then
15696 { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
15697 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; }
15698 cat >conftest.
$ac_ext <<_ACEOF
15701 cat confdefs.h
>>conftest.
$ac_ext
15702 cat >>conftest.
$ac_ext <<_ACEOF
15703 /* end confdefs.h. */
15704 #include <sys/types.h>
15705 #include <netinet/in.h>
15709 struct sockaddr_in6 x;
15715 rm -f conftest.
$ac_objext
15716 if { (ac_try
="$ac_compile"
15717 case "(($ac_try" in
15718 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15719 *) ac_try_echo=$ac_try;;
15721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15722 (eval "$ac_compile") 2>conftest.er1
15724 grep -v '^ *+' conftest.er1 >conftest.err
15726 cat conftest.err >&5
15727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15728 (exit $ac_status); } && {
15729 test -z "$ac_c_werror_flag" ||
15730 test ! -s conftest.err
15731 } && test -s conftest.$ac_objext; then
15732 { echo "$as_me:$LINENO: result: yes" >&5
15733 echo "${ECHO_T}yes" >&6; }
15736 echo "$as_me: failed program was:" >&5
15737 sed 's/^/| /' conftest.$ac_ext >&5
15739 { echo "$as_me:$LINENO: result: no" >&5
15740 echo "${ECHO_T}no" >&6; }
15744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15747 if test "$ipv6" = "yes"; then
15748 cat >>confdefs.h <<\_ACEOF
15749 #define ENABLE_IPV6 1
15761 if test "$ipv6" = "yes"; then
15762 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
15763 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
15764 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
15768 cat >conftest.$ac_ext <<_ACEOF
15771 cat confdefs.h >>conftest.$ac_ext
15772 cat >>conftest.$ac_ext <<_ACEOF
15773 /* end confdefs.h. */
15775 #include <netinet/in.h>
15776 #ifdef IPV6_INRIA_VERSION
15780 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15781 $EGREP "yes" >/dev/null 2>&1; then
15788 cat >conftest.$ac_ext <<_ACEOF
15791 cat confdefs.h >>conftest.$ac_ext
15792 cat >>conftest.$ac_ext <<_ACEOF
15793 /* end confdefs.h. */
15795 #include <netinet/in.h>
15800 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15801 $EGREP "yes" >/dev/null 2>&1; then
15804 ipv6libdir=/usr/local/v6/lib
15811 cat >conftest.$ac_ext <<_ACEOF
15814 cat confdefs.h >>conftest.$ac_ext
15815 cat >>conftest.$ac_ext <<_ACEOF
15816 /* end confdefs.h. */
15818 #include <features.h>
15819 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
15823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15824 $EGREP "yes" >/dev/null 2>&1; then
15832 if test -d /usr/inet6; then
15835 ipv6libdir=/usr/inet6/lib
15836 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
15840 if test -f /etc/netconfig; then
15841 if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then
15848 cat >conftest.$ac_ext <<_ACEOF
15851 cat confdefs.h >>conftest.$ac_ext
15852 cat >>conftest.$ac_ext <<_ACEOF
15853 /* end confdefs.h. */
15855 #include <sys/param.h>
15856 #ifdef _TOSHIBA_INET6
15860 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15861 $EGREP "yes" >/dev/null 2>&1; then
15864 ipv6libdir=/usr/local/v6/lib
15870 cat >conftest.$ac_ext <<_ACEOF
15873 cat confdefs.h >>conftest.$ac_ext
15874 cat >>conftest.$ac_ext <<_ACEOF
15875 /* end confdefs.h. */
15877 #include </usr/local/v6/include/sys/v6config.h>
15882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15883 $EGREP "yes" >/dev/null 2>&1; then
15886 ipv6libdir=/usr/local/v6/lib;
15887 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
15893 cat >conftest.$ac_ext <<_ACEOF
15896 cat confdefs.h >>conftest.$ac_ext
15897 cat >>conftest.$ac_ext <<_ACEOF
15898 /* end confdefs.h. */
15900 #include <sys/param.h>
15901 #ifdef _ZETA_MINAMI_INET6
15905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15906 $EGREP "yes" >/dev/null 2>&1; then
15909 ipv6libdir=/usr/local/v6/lib
15915 if test "$ipv6type" != "unknown"; then
15919 { echo "$as_me:$LINENO: result: $ipv6type" >&5
15920 echo "${ECHO_T}$ipv6type" >&6; }
15923 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
15924 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
15925 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
15926 echo "using lib$ipv6lib"
15928 if test $ipv6trylibc = "yes"; then
15931 echo 'Fatal: no $ipv6lib library found. cannot continue.'
15932 echo "You need to fetch lib$ipv6lib.a from appropriate"
15933 echo 'ipv6 kit and compile beforehand.'
15939 { echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5
15940 echo $ECHO_N "checking for OSX 10.5 SDK or later... $ECHO_C" >&6; }
15941 cat >conftest.$ac_ext <<_ACEOF
15944 cat confdefs.h >>conftest.$ac_ext
15945 cat >>conftest.$ac_ext <<_ACEOF
15946 /* end confdefs.h. */
15947 #include <Carbon/Carbon.h>
15951 FSIORefNum fRef = 0
15956 rm -f conftest.$ac_objext
15957 if { (ac_try="$ac_compile"
15958 case "(($ac_try" in
15959 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15960 *) ac_try_echo
=$ac_try;;
15962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15963 (eval "$ac_compile") 2>conftest.er1
15965 grep -v '^ *+' conftest.er1
>conftest.err
15967 cat conftest.err
>&5
15968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15969 (exit $ac_status); } && {
15970 test -z "$ac_c_werror_flag" ||
15971 test ! -s conftest.err
15972 } && test -s conftest.
$ac_objext; then
15974 cat >>confdefs.h
<<\_ACEOF
15975 #define HAVE_OSX105_SDK 1
15978 { echo "$as_me:$LINENO: result: yes" >&5
15979 echo "${ECHO_T}yes" >&6; }
15981 echo "$as_me: failed program was:" >&5
15982 sed 's/^/| /' conftest.
$ac_ext >&5
15984 { echo "$as_me:$LINENO: result: no" >&5
15985 echo "${ECHO_T}no" >&6; }
15989 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15991 # Check for --with-doc-strings
15992 { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
15993 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
15995 # Check whether --with-doc-strings was given.
15996 if test "${with_doc_strings+set}" = set; then
15997 withval
=$with_doc_strings;
16001 if test -z "$with_doc_strings"
16002 then with_doc_strings
="yes"
16004 if test "$with_doc_strings" != "no"
16007 cat >>confdefs.h
<<\_ACEOF
16008 #define WITH_DOC_STRINGS 1
16012 { echo "$as_me:$LINENO: result: $with_doc_strings" >&5
16013 echo "${ECHO_T}$with_doc_strings" >&6; }
16015 # Check for Python-specific malloc support
16016 { echo "$as_me:$LINENO: checking for --with-tsc" >&5
16017 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
16019 # Check whether --with-tsc was given.
16020 if test "${with_tsc+set}" = set; then
16022 if test "$withval" != no
16025 cat >>confdefs.h
<<\_ACEOF
16029 { echo "$as_me:$LINENO: result: yes" >&5
16030 echo "${ECHO_T}yes" >&6; }
16031 else { echo "$as_me:$LINENO: result: no" >&5
16032 echo "${ECHO_T}no" >&6; }
16035 { echo "$as_me:$LINENO: result: no" >&5
16036 echo "${ECHO_T}no" >&6; }
16040 # Check for Python-specific malloc support
16041 { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
16042 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
16044 # Check whether --with-pymalloc was given.
16045 if test "${with_pymalloc+set}" = set; then
16046 withval
=$with_pymalloc;
16050 if test -z "$with_pymalloc"
16051 then with_pymalloc
="yes"
16053 if test "$with_pymalloc" != "no"
16056 cat >>confdefs.h
<<\_ACEOF
16057 #define WITH_PYMALLOC 1
16061 { echo "$as_me:$LINENO: result: $with_pymalloc" >&5
16062 echo "${ECHO_T}$with_pymalloc" >&6; }
16064 # Check for --with-wctype-functions
16065 { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
16066 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
16068 # Check whether --with-wctype-functions was given.
16069 if test "${with_wctype_functions+set}" = set; then
16070 withval
=$with_wctype_functions;
16071 if test "$withval" != no
16074 cat >>confdefs.h
<<\_ACEOF
16075 #define WANT_WCTYPE_FUNCTIONS 1
16078 { echo "$as_me:$LINENO: result: yes" >&5
16079 echo "${ECHO_T}yes" >&6; }
16080 else { echo "$as_me:$LINENO: result: no" >&5
16081 echo "${ECHO_T}no" >&6; }
16084 { echo "$as_me:$LINENO: result: no" >&5
16085 echo "${ECHO_T}no" >&6; }
16089 # -I${DLINCLDIR} is added to the compile rule for importdl.o
16093 # the dlopen() function means we might want to use dynload_shlib.o. some
16094 # platforms, such as AIX, have dlopen(), but don't want to use it.
16096 for ac_func
in dlopen
16098 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16099 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16100 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16101 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16102 echo $ECHO_N "(cached) $ECHO_C" >&6
16104 cat >conftest.
$ac_ext <<_ACEOF
16107 cat confdefs.h
>>conftest.
$ac_ext
16108 cat >>conftest.
$ac_ext <<_ACEOF
16109 /* end confdefs.h. */
16110 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16111 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16112 #define $ac_func innocuous_$ac_func
16114 /* System header to define __stub macros and hopefully few prototypes,
16115 which can conflict with char $ac_func (); below.
16116 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16117 <limits.h> exists even on freestanding compilers. */
16120 # include <limits.h>
16122 # include <assert.h>
16127 /* Override any GCC internal prototype to avoid an error.
16128 Use char because int might match the return type of a GCC
16129 builtin and then its argument prototype would still apply. */
16134 /* The GNU C library defines this for functions which it implements
16135 to always fail with ENOSYS. Some functions are actually named
16136 something starting with __ and the normal name is an alias. */
16137 #if defined __stub_$ac_func || defined __stub___$ac_func
16144 return $ac_func ();
16149 rm -f conftest.
$ac_objext conftest
$ac_exeext
16150 if { (ac_try
="$ac_link"
16151 case "(($ac_try" in
16152 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16153 *) ac_try_echo=$ac_try;;
16155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16156 (eval "$ac_link") 2>conftest.er1
16158 grep -v '^ *+' conftest.er1 >conftest.err
16160 cat conftest.err >&5
16161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16162 (exit $ac_status); } && {
16163 test -z "$ac_c_werror_flag" ||
16164 test ! -s conftest.err
16165 } && test -s conftest$ac_exeext &&
16166 $as_test_x conftest$ac_exeext; then
16167 eval "$as_ac_var=yes"
16169 echo "$as_me: failed program was:" >&5
16170 sed 's/^/| /' conftest.$ac_ext >&5
16172 eval "$as_ac_var=no"
16175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16176 conftest$ac_exeext conftest.$ac_ext
16178 ac_res=`eval echo '${'$as_ac_var'}'`
16179 { echo "$as_me:$LINENO: result: $ac_res" >&5
16180 echo "${ECHO_T}$ac_res" >&6; }
16181 if test `eval echo '${'$as_ac_var'}'` = yes; then
16182 cat >>confdefs.h <<_ACEOF
16183 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
16190 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
16191 # loading of modules.
16193 { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
16194 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
16195 if test -z "$DYNLOADFILE"
16197 case $ac_sys_system/$ac_sys_release in
16198 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
16199 if test "$ac_cv_func_dlopen" = yes
16200 then DYNLOADFILE="dynload_shlib.o"
16201 else DYNLOADFILE="dynload_aix.o"
16204 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
16205 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
16206 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
16207 atheos*) DYNLOADFILE="dynload_atheos.o";;
16209 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
16210 # out any dynamic loading
16211 if test "$ac_cv_func_dlopen" = yes
16212 then DYNLOADFILE="dynload_shlib.o"
16213 else DYNLOADFILE="dynload_stub.o"
16218 { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
16219 echo "${ECHO_T}$DYNLOADFILE" >&6; }
16220 if test "$DYNLOADFILE" != "dynload_stub.o"
16223 cat >>confdefs.h <<\_ACEOF
16224 #define HAVE_DYNAMIC_LOADING 1
16229 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
16232 { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
16233 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
16234 if test -z "$MACHDEP_OBJS"
16236 MACHDEP_OBJS=$extra_machdep_objs
16238 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
16240 { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
16241 echo "${ECHO_T}MACHDEP_OBJS" >&6; }
16243 # checks for library functions
16333 for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \
16334 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
16335 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
16336 getpriority getpwent getspnam getspent getsid getwd \
16337 kill killpg lchmod lchown lstat mbrtowc mkfifo mknod mktime \
16338 mremap nice pathconf pause plock poll pthread_init \
16339 putenv readlink realpath \
16340 select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \
16342 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
16343 sigaction siginterrupt sigrelse strftime strlcpy \
16344 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
16345 truncate uname unsetenv utimes waitpid wait3 wait4 \
16346 wcscoll wcsftime wcsxfrm _getpty
16348 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
16349 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16350 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16351 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16352 echo $ECHO_N "(cached) $ECHO_C" >&6
16354 cat >conftest.$ac_ext <<_ACEOF
16357 cat confdefs.h >>conftest.$ac_ext
16358 cat >>conftest.$ac_ext <<_ACEOF
16359 /* end confdefs.h. */
16360 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16361 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16362 #define $ac_func innocuous_$ac_func
16364 /* System header to define __stub macros and hopefully few prototypes,
16365 which can conflict with char $ac_func (); below.
16366 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16367 <limits.h> exists even on freestanding compilers. */
16370 # include <limits.h>
16372 # include <assert.h>
16377 /* Override any GCC internal prototype to avoid an error.
16378 Use char because int might match the return type of a GCC
16379 builtin and then its argument prototype would still apply. */
16384 /* The GNU C library defines this for functions which it implements
16385 to always fail with ENOSYS. Some functions are actually named
16386 something starting with __ and the normal name is an alias. */
16387 #if defined __stub_$ac_func || defined __stub___$ac_func
16394 return $ac_func ();
16399 rm -f conftest.$ac_objext conftest$ac_exeext
16400 if { (ac_try="$ac_link"
16401 case "(($ac_try" in
16402 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16403 *) ac_try_echo
=$ac_try;;
16405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16406 (eval "$ac_link") 2>conftest.er1
16408 grep -v '^ *+' conftest.er1
>conftest.err
16410 cat conftest.err
>&5
16411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16412 (exit $ac_status); } && {
16413 test -z "$ac_c_werror_flag" ||
16414 test ! -s conftest.err
16415 } && test -s conftest
$ac_exeext &&
16416 $as_test_x conftest
$ac_exeext; then
16417 eval "$as_ac_var=yes"
16419 echo "$as_me: failed program was:" >&5
16420 sed 's/^/| /' conftest.
$ac_ext >&5
16422 eval "$as_ac_var=no"
16425 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16426 conftest
$ac_exeext conftest.
$ac_ext
16428 ac_res
=`eval echo '${'$as_ac_var'}'`
16429 { echo "$as_me:$LINENO: result: $ac_res" >&5
16430 echo "${ECHO_T}$ac_res" >&6; }
16431 if test `eval echo '${'$as_ac_var'}'` = yes; then
16432 cat >>confdefs.h
<<_ACEOF
16433 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16440 # For some functions, having a definition is not sufficient, since
16441 # we want to take their address.
16442 { echo "$as_me:$LINENO: checking for chroot" >&5
16443 echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
16444 cat >conftest.
$ac_ext <<_ACEOF
16447 cat confdefs.h
>>conftest.
$ac_ext
16448 cat >>conftest.
$ac_ext <<_ACEOF
16449 /* end confdefs.h. */
16450 #include <unistd.h>
16459 rm -f conftest.
$ac_objext
16460 if { (ac_try
="$ac_compile"
16461 case "(($ac_try" in
16462 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16463 *) ac_try_echo=$ac_try;;
16465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16466 (eval "$ac_compile") 2>conftest.er1
16468 grep -v '^ *+' conftest.er1 >conftest.err
16470 cat conftest.err >&5
16471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472 (exit $ac_status); } && {
16473 test -z "$ac_c_werror_flag" ||
16474 test ! -s conftest.err
16475 } && test -s conftest.$ac_objext; then
16477 cat >>confdefs.h <<\_ACEOF
16478 #define HAVE_CHROOT 1
16481 { echo "$as_me:$LINENO: result: yes" >&5
16482 echo "${ECHO_T}yes" >&6; }
16484 echo "$as_me: failed program was:" >&5
16485 sed 's/^/| /' conftest.$ac_ext >&5
16487 { echo "$as_me:$LINENO: result: no" >&5
16488 echo "${ECHO_T}no" >&6; }
16492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16493 { echo "$as_me:$LINENO: checking for link" >&5
16494 echo $ECHO_N "checking for link... $ECHO_C" >&6; }
16495 cat >conftest.$ac_ext <<_ACEOF
16498 cat confdefs.h >>conftest.$ac_ext
16499 cat >>conftest.$ac_ext <<_ACEOF
16500 /* end confdefs.h. */
16501 #include <unistd.h>
16510 rm -f conftest.$ac_objext
16511 if { (ac_try="$ac_compile"
16512 case "(($ac_try" in
16513 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16514 *) ac_try_echo
=$ac_try;;
16516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16517 (eval "$ac_compile") 2>conftest.er1
16519 grep -v '^ *+' conftest.er1
>conftest.err
16521 cat conftest.err
>&5
16522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16523 (exit $ac_status); } && {
16524 test -z "$ac_c_werror_flag" ||
16525 test ! -s conftest.err
16526 } && test -s conftest.
$ac_objext; then
16528 cat >>confdefs.h
<<\_ACEOF
16529 #define HAVE_LINK 1
16532 { echo "$as_me:$LINENO: result: yes" >&5
16533 echo "${ECHO_T}yes" >&6; }
16535 echo "$as_me: failed program was:" >&5
16536 sed 's/^/| /' conftest.
$ac_ext >&5
16538 { echo "$as_me:$LINENO: result: no" >&5
16539 echo "${ECHO_T}no" >&6; }
16543 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16544 { echo "$as_me:$LINENO: checking for symlink" >&5
16545 echo $ECHO_N "checking for symlink... $ECHO_C" >&6; }
16546 cat >conftest.
$ac_ext <<_ACEOF
16549 cat confdefs.h
>>conftest.
$ac_ext
16550 cat >>conftest.
$ac_ext <<_ACEOF
16551 /* end confdefs.h. */
16552 #include <unistd.h>
16561 rm -f conftest.
$ac_objext
16562 if { (ac_try
="$ac_compile"
16563 case "(($ac_try" in
16564 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16565 *) ac_try_echo=$ac_try;;
16567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16568 (eval "$ac_compile") 2>conftest.er1
16570 grep -v '^ *+' conftest.er1 >conftest.err
16572 cat conftest.err >&5
16573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16574 (exit $ac_status); } && {
16575 test -z "$ac_c_werror_flag" ||
16576 test ! -s conftest.err
16577 } && test -s conftest.$ac_objext; then
16579 cat >>confdefs.h <<\_ACEOF
16580 #define HAVE_SYMLINK 1
16583 { echo "$as_me:$LINENO: result: yes" >&5
16584 echo "${ECHO_T}yes" >&6; }
16586 echo "$as_me: failed program was:" >&5
16587 sed 's/^/| /' conftest.$ac_ext >&5
16589 { echo "$as_me:$LINENO: result: no" >&5
16590 echo "${ECHO_T}no" >&6; }
16594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16595 { echo "$as_me:$LINENO: checking for fchdir" >&5
16596 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
16597 cat >conftest.$ac_ext <<_ACEOF
16600 cat confdefs.h >>conftest.$ac_ext
16601 cat >>conftest.$ac_ext <<_ACEOF
16602 /* end confdefs.h. */
16603 #include <unistd.h>
16612 rm -f conftest.$ac_objext
16613 if { (ac_try="$ac_compile"
16614 case "(($ac_try" in
16615 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16616 *) ac_try_echo
=$ac_try;;
16618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16619 (eval "$ac_compile") 2>conftest.er1
16621 grep -v '^ *+' conftest.er1
>conftest.err
16623 cat conftest.err
>&5
16624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625 (exit $ac_status); } && {
16626 test -z "$ac_c_werror_flag" ||
16627 test ! -s conftest.err
16628 } && test -s conftest.
$ac_objext; then
16630 cat >>confdefs.h
<<\_ACEOF
16631 #define HAVE_FCHDIR 1
16634 { echo "$as_me:$LINENO: result: yes" >&5
16635 echo "${ECHO_T}yes" >&6; }
16637 echo "$as_me: failed program was:" >&5
16638 sed 's/^/| /' conftest.
$ac_ext >&5
16640 { echo "$as_me:$LINENO: result: no" >&5
16641 echo "${ECHO_T}no" >&6; }
16645 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16646 { echo "$as_me:$LINENO: checking for fsync" >&5
16647 echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
16648 cat >conftest.
$ac_ext <<_ACEOF
16651 cat confdefs.h
>>conftest.
$ac_ext
16652 cat >>conftest.
$ac_ext <<_ACEOF
16653 /* end confdefs.h. */
16654 #include <unistd.h>
16663 rm -f conftest.
$ac_objext
16664 if { (ac_try
="$ac_compile"
16665 case "(($ac_try" in
16666 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16667 *) ac_try_echo=$ac_try;;
16669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16670 (eval "$ac_compile") 2>conftest.er1
16672 grep -v '^ *+' conftest.er1 >conftest.err
16674 cat conftest.err >&5
16675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16676 (exit $ac_status); } && {
16677 test -z "$ac_c_werror_flag" ||
16678 test ! -s conftest.err
16679 } && test -s conftest.$ac_objext; then
16681 cat >>confdefs.h <<\_ACEOF
16682 #define HAVE_FSYNC 1
16685 { echo "$as_me:$LINENO: result: yes" >&5
16686 echo "${ECHO_T}yes" >&6; }
16688 echo "$as_me: failed program was:" >&5
16689 sed 's/^/| /' conftest.$ac_ext >&5
16691 { echo "$as_me:$LINENO: result: no" >&5
16692 echo "${ECHO_T}no" >&6; }
16696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16697 { echo "$as_me:$LINENO: checking for fdatasync" >&5
16698 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
16699 cat >conftest.$ac_ext <<_ACEOF
16702 cat confdefs.h >>conftest.$ac_ext
16703 cat >>conftest.$ac_ext <<_ACEOF
16704 /* end confdefs.h. */
16705 #include <unistd.h>
16714 rm -f conftest.$ac_objext
16715 if { (ac_try="$ac_compile"
16716 case "(($ac_try" in
16717 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16718 *) ac_try_echo
=$ac_try;;
16720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16721 (eval "$ac_compile") 2>conftest.er1
16723 grep -v '^ *+' conftest.er1
>conftest.err
16725 cat conftest.err
>&5
16726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16727 (exit $ac_status); } && {
16728 test -z "$ac_c_werror_flag" ||
16729 test ! -s conftest.err
16730 } && test -s conftest.
$ac_objext; then
16732 cat >>confdefs.h
<<\_ACEOF
16733 #define HAVE_FDATASYNC 1
16736 { echo "$as_me:$LINENO: result: yes" >&5
16737 echo "${ECHO_T}yes" >&6; }
16739 echo "$as_me: failed program was:" >&5
16740 sed 's/^/| /' conftest.
$ac_ext >&5
16742 { echo "$as_me:$LINENO: result: no" >&5
16743 echo "${ECHO_T}no" >&6; }
16747 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16748 { echo "$as_me:$LINENO: checking for epoll" >&5
16749 echo $ECHO_N "checking for epoll... $ECHO_C" >&6; }
16750 cat >conftest.
$ac_ext <<_ACEOF
16753 cat confdefs.h
>>conftest.
$ac_ext
16754 cat >>conftest.
$ac_ext <<_ACEOF
16755 /* end confdefs.h. */
16756 #include <sys/epoll.h>
16760 void *x=epoll_create
16765 rm -f conftest.
$ac_objext
16766 if { (ac_try
="$ac_compile"
16767 case "(($ac_try" in
16768 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16769 *) ac_try_echo=$ac_try;;
16771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16772 (eval "$ac_compile") 2>conftest.er1
16774 grep -v '^ *+' conftest.er1 >conftest.err
16776 cat conftest.err >&5
16777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16778 (exit $ac_status); } && {
16779 test -z "$ac_c_werror_flag" ||
16780 test ! -s conftest.err
16781 } && test -s conftest.$ac_objext; then
16783 cat >>confdefs.h <<\_ACEOF
16784 #define HAVE_EPOLL 1
16787 { echo "$as_me:$LINENO: result: yes" >&5
16788 echo "${ECHO_T}yes" >&6; }
16790 echo "$as_me: failed program was:" >&5
16791 sed 's/^/| /' conftest.$ac_ext >&5
16793 { echo "$as_me:$LINENO: result: no" >&5
16794 echo "${ECHO_T}no" >&6; }
16798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16799 { echo "$as_me:$LINENO: checking for kqueue" >&5
16800 echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; }
16801 cat >conftest.$ac_ext <<_ACEOF
16804 cat confdefs.h >>conftest.$ac_ext
16805 cat >>conftest.$ac_ext <<_ACEOF
16806 /* end confdefs.h. */
16808 #include <sys/types.h>
16809 #include <sys/event.h>
16819 rm -f conftest.$ac_objext
16820 if { (ac_try="$ac_compile"
16821 case "(($ac_try" in
16822 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16823 *) ac_try_echo
=$ac_try;;
16825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16826 (eval "$ac_compile") 2>conftest.er1
16828 grep -v '^ *+' conftest.er1
>conftest.err
16830 cat conftest.err
>&5
16831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832 (exit $ac_status); } && {
16833 test -z "$ac_c_werror_flag" ||
16834 test ! -s conftest.err
16835 } && test -s conftest.
$ac_objext; then
16837 cat >>confdefs.h
<<\_ACEOF
16838 #define HAVE_KQUEUE 1
16841 { echo "$as_me:$LINENO: result: yes" >&5
16842 echo "${ECHO_T}yes" >&6; }
16844 echo "$as_me: failed program was:" >&5
16845 sed 's/^/| /' conftest.
$ac_ext >&5
16847 { echo "$as_me:$LINENO: result: no" >&5
16848 echo "${ECHO_T}no" >&6; }
16852 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16853 # On some systems (eg. FreeBSD 5), we would find a definition of the
16854 # functions ctermid_r, setgroups in the library, but no prototype
16855 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
16856 # address to avoid compiler warnings and potential miscompilations
16857 # because of the missing prototypes.
16859 { echo "$as_me:$LINENO: checking for ctermid_r" >&5
16860 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; }
16861 cat >conftest.
$ac_ext <<_ACEOF
16864 cat confdefs.h
>>conftest.
$ac_ext
16865 cat >>conftest.
$ac_ext <<_ACEOF
16866 /* end confdefs.h. */
16868 #include "confdefs.h"
16874 void* p = ctermid_r
16879 rm -f conftest.
$ac_objext
16880 if { (ac_try
="$ac_compile"
16881 case "(($ac_try" in
16882 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16883 *) ac_try_echo=$ac_try;;
16885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16886 (eval "$ac_compile") 2>conftest.er1
16888 grep -v '^ *+' conftest.er1 >conftest.err
16890 cat conftest.err >&5
16891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892 (exit $ac_status); } && {
16893 test -z "$ac_c_werror_flag" ||
16894 test ! -s conftest.err
16895 } && test -s conftest.$ac_objext; then
16897 cat >>confdefs.h <<\_ACEOF
16898 #define HAVE_CTERMID_R 1
16901 { echo "$as_me:$LINENO: result: yes" >&5
16902 echo "${ECHO_T}yes" >&6; }
16904 echo "$as_me: failed program was:" >&5
16905 sed 's/^/| /' conftest.$ac_ext >&5
16907 { echo "$as_me:$LINENO: result: no" >&5
16908 echo "${ECHO_T}no" >&6; }
16912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16914 { echo "$as_me:$LINENO: checking for flock" >&5
16915 echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
16916 cat >conftest.$ac_ext <<_ACEOF
16919 cat confdefs.h >>conftest.$ac_ext
16920 cat >>conftest.$ac_ext <<_ACEOF
16921 /* end confdefs.h. */
16923 #include "confdefs.h"
16924 #include <sys/file.h>
16934 rm -f conftest.$ac_objext
16935 if { (ac_try="$ac_compile"
16936 case "(($ac_try" in
16937 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16938 *) ac_try_echo
=$ac_try;;
16940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16941 (eval "$ac_compile") 2>conftest.er1
16943 grep -v '^ *+' conftest.er1
>conftest.err
16945 cat conftest.err
>&5
16946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16947 (exit $ac_status); } && {
16948 test -z "$ac_c_werror_flag" ||
16949 test ! -s conftest.err
16950 } && test -s conftest.
$ac_objext; then
16952 cat >>confdefs.h
<<\_ACEOF
16953 #define HAVE_FLOCK 1
16956 { echo "$as_me:$LINENO: result: yes" >&5
16957 echo "${ECHO_T}yes" >&6; }
16959 echo "$as_me: failed program was:" >&5
16960 sed 's/^/| /' conftest.
$ac_ext >&5
16962 { echo "$as_me:$LINENO: result: no" >&5
16963 echo "${ECHO_T}no" >&6; }
16967 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16969 { echo "$as_me:$LINENO: checking for getpagesize" >&5
16970 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
16971 cat >conftest.
$ac_ext <<_ACEOF
16974 cat confdefs.h
>>conftest.
$ac_ext
16975 cat >>conftest.
$ac_ext <<_ACEOF
16976 /* end confdefs.h. */
16978 #include "confdefs.h"
16979 #include <unistd.h>
16984 void* p = getpagesize
16989 rm -f conftest.
$ac_objext
16990 if { (ac_try
="$ac_compile"
16991 case "(($ac_try" in
16992 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16993 *) ac_try_echo=$ac_try;;
16995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16996 (eval "$ac_compile") 2>conftest.er1
16998 grep -v '^ *+' conftest.er1 >conftest.err
17000 cat conftest.err >&5
17001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002 (exit $ac_status); } && {
17003 test -z "$ac_c_werror_flag" ||
17004 test ! -s conftest.err
17005 } && test -s conftest.$ac_objext; then
17007 cat >>confdefs.h <<\_ACEOF
17008 #define HAVE_GETPAGESIZE 1
17011 { echo "$as_me:$LINENO: result: yes" >&5
17012 echo "${ECHO_T}yes" >&6; }
17014 echo "$as_me: failed program was:" >&5
17015 sed 's/^/| /' conftest.$ac_ext >&5
17017 { echo "$as_me:$LINENO: result: no" >&5
17018 echo "${ECHO_T}no" >&6; }
17022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17024 for ac_prog in true
17026 # Extract the first word of "$ac_prog", so it can be a program name with args.
17027 set dummy $ac_prog; ac_word=$2
17028 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17030 if test "${ac_cv_prog_TRUE+set}" = set; then
17031 echo $ECHO_N "(cached) $ECHO_C" >&6
17033 if test -n "$TRUE"; then
17034 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
17036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17037 for as_dir in $PATH
17040 test -z "$as_dir" && as_dir=.
17041 for ac_exec_ext in '' $ac_executable_extensions; do
17042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17043 ac_cv_prog_TRUE="$ac_prog"
17044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17053 TRUE=$ac_cv_prog_TRUE
17054 if test -n "$TRUE"; then
17055 { echo "$as_me:$LINENO: result: $TRUE" >&5
17056 echo "${ECHO_T}$TRUE" >&6; }
17058 { echo "$as_me:$LINENO: result: no" >&5
17059 echo "${ECHO_T}no" >&6; }
17063 test -n "$TRUE" && break
17065 test -n "$TRUE" || TRUE="/bin/true"
17068 { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
17069 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
17070 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
17071 echo $ECHO_N "(cached) $ECHO_C" >&6
17073 ac_check_lib_save_LIBS=$LIBS
17075 cat >conftest.$ac_ext <<_ACEOF
17078 cat confdefs.h >>conftest.$ac_ext
17079 cat >>conftest.$ac_ext <<_ACEOF
17080 /* end confdefs.h. */
17082 /* Override any GCC internal prototype to avoid an error.
17083 Use char because int might match the return type of a GCC
17084 builtin and then its argument prototype would still apply. */
17092 return inet_aton ();
17097 rm -f conftest.$ac_objext conftest$ac_exeext
17098 if { (ac_try="$ac_link"
17099 case "(($ac_try" in
17100 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17101 *) ac_try_echo
=$ac_try;;
17103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17104 (eval "$ac_link") 2>conftest.er1
17106 grep -v '^ *+' conftest.er1
>conftest.err
17108 cat conftest.err
>&5
17109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110 (exit $ac_status); } && {
17111 test -z "$ac_c_werror_flag" ||
17112 test ! -s conftest.err
17113 } && test -s conftest
$ac_exeext &&
17114 $as_test_x conftest
$ac_exeext; then
17115 ac_cv_lib_c_inet_aton
=yes
17117 echo "$as_me: failed program was:" >&5
17118 sed 's/^/| /' conftest.
$ac_ext >&5
17120 ac_cv_lib_c_inet_aton
=no
17123 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17124 conftest
$ac_exeext conftest.
$ac_ext
17125 LIBS
=$ac_check_lib_save_LIBS
17127 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
17128 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
17129 if test $ac_cv_lib_c_inet_aton = yes; then
17133 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
17134 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
17135 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
17136 echo $ECHO_N "(cached) $ECHO_C" >&6
17138 ac_check_lib_save_LIBS
=$LIBS
17139 LIBS
="-lresolv $LIBS"
17140 cat >conftest.
$ac_ext <<_ACEOF
17143 cat confdefs.h
>>conftest.
$ac_ext
17144 cat >>conftest.
$ac_ext <<_ACEOF
17145 /* end confdefs.h. */
17147 /* Override any GCC internal prototype to avoid an error.
17148 Use char because int might match the return type of a GCC
17149 builtin and then its argument prototype would still apply. */
17157 return inet_aton ();
17162 rm -f conftest.
$ac_objext conftest
$ac_exeext
17163 if { (ac_try
="$ac_link"
17164 case "(($ac_try" in
17165 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17166 *) ac_try_echo=$ac_try;;
17168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17169 (eval "$ac_link") 2>conftest.er1
17171 grep -v '^ *+' conftest.er1 >conftest.err
17173 cat conftest.err >&5
17174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17175 (exit $ac_status); } && {
17176 test -z "$ac_c_werror_flag" ||
17177 test ! -s conftest.err
17178 } && test -s conftest$ac_exeext &&
17179 $as_test_x conftest$ac_exeext; then
17180 ac_cv_lib_resolv_inet_aton=yes
17182 echo "$as_me: failed program was:" >&5
17183 sed 's/^/| /' conftest.$ac_ext >&5
17185 ac_cv_lib_resolv_inet_aton=no
17188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17189 conftest$ac_exeext conftest.$ac_ext
17190 LIBS=$ac_check_lib_save_LIBS
17192 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
17193 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
17194 if test $ac_cv_lib_resolv_inet_aton = yes; then
17195 cat >>confdefs.h <<_ACEOF
17196 #define HAVE_LIBRESOLV 1
17199 LIBS="-lresolv $LIBS"
17207 # On Tru64, chflags seems to be present, but calling it will
17209 { echo "$as_me:$LINENO: checking for chflags" >&5
17210 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
17211 if test "$cross_compiling" = yes; then
17212 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17213 See \`config.log
' for more details." >&5
17214 echo "$as_me: error: cannot run test program while cross compiling
17215 See \`config.log' for more details.
" >&2;}
17216 { (exit 1); exit 1; }; }
17218 cat >conftest.$ac_ext <<_ACEOF
17221 cat confdefs.h >>conftest.$ac_ext
17222 cat >>conftest.$ac_ext <<_ACEOF
17223 /* end confdefs.h. */
17225 #include <sys/stat.h>
17226 #include <unistd.h>
17227 int main(int argc, char*argv[])
17229 if(chflags(argv[0], 0) != 0)
17235 rm -f conftest$ac_exeext
17236 if { (ac_try="$ac_link"
17237 case "(($ac_try" in
17238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17239 *) ac_try_echo=$ac_try;;
17241 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17242 (eval "$ac_link") 2>&5
17244 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17245 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17246 { (case "(($ac_try" in
17247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17248 *) ac_try_echo=$ac_try;;
17250 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17251 (eval "$ac_try") 2>&5
17253 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17254 (exit $ac_status); }; }; then
17256 cat >>confdefs.h <<\_ACEOF
17257 #define HAVE_CHFLAGS 1
17260 { echo "$as_me:$LINENO: result
: yes" >&5
17261 echo "${ECHO_T}yes" >&6; }
17263 echo "$as_me: program exited with status
$ac_status" >&5
17264 echo "$as_me: failed program was
:" >&5
17265 sed 's/^/| /' conftest.$ac_ext >&5
17267 ( exit $ac_status )
17268 { echo "$as_me:$LINENO: result
: no
" >&5
17269 echo "${ECHO_T}no
" >&6; }
17272 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17277 { echo "$as_me:$LINENO: checking
for lchflags
" >&5
17278 echo $ECHO_N "checking
for lchflags...
$ECHO_C" >&6; }
17279 if test "$cross_compiling" = yes; then
17280 { { echo "$as_me:$LINENO: error
: cannot run
test program
while cross compiling
17281 See \
`config.log' for more details." >&5
17282 echo "$as_me: error: cannot run test program while cross compiling
17283 See \`config.log
' for more details." >&2;}
17284 { (exit 1); exit 1; }; }
17286 cat >conftest.$ac_ext <<_ACEOF
17289 cat confdefs.h >>conftest.$ac_ext
17290 cat >>conftest.$ac_ext <<_ACEOF
17291 /* end confdefs.h. */
17293 #include <sys/stat.h>
17294 #include <unistd.h>
17295 int main(int argc, char*argv[])
17297 if(lchflags(argv[0], 0) != 0)
17303 rm -f conftest$ac_exeext
17304 if { (ac_try="$ac_link"
17305 case "(($ac_try" in
17306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17307 *) ac_try_echo=$ac_try;;
17309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17310 (eval "$ac_link") 2>&5
17312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
17314 { (case "(($ac_try" in
17315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17316 *) ac_try_echo=$ac_try;;
17318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17319 (eval "$ac_try") 2>&5
17321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17322 (exit $ac_status); }; }; then
17324 cat >>confdefs.h <<\_ACEOF
17325 #define HAVE_LCHFLAGS 1
17328 { echo "$as_me:$LINENO: result: yes" >&5
17329 echo "${ECHO_T}yes" >&6; }
17331 echo "$as_me: program exited with status $ac_status" >&5
17332 echo "$as_me: failed program was:" >&5
17333 sed 's
/^
/|
/' conftest.$ac_ext >&5
17335 ( exit $ac_status )
17336 { echo "$as_me:$LINENO: result: no" >&5
17337 echo "${ECHO_T}no" >&6; }
17340 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17345 case $ac_sys_system/$ac_sys_release in
17347 _CUR_CFLAGS="${CFLAGS}"
17348 _CUR_LDFLAGS="${LDFLAGS}"
17349 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
17350 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
17354 { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
17355 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
17356 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
17357 echo $ECHO_N "(cached) $ECHO_C" >&6
17359 ac_check_lib_save_LIBS=$LIBS
17361 cat >conftest.$ac_ext <<_ACEOF
17364 cat confdefs.h >>conftest.$ac_ext
17365 cat >>conftest.$ac_ext <<_ACEOF
17366 /* end confdefs.h. */
17368 /* Override any GCC internal prototype to avoid an error.
17369 Use char because int might match the return type of a GCC
17370 builtin and then its argument prototype would still apply. */
17374 char inflateCopy ();
17378 return inflateCopy ();
17383 rm -f conftest.$ac_objext conftest$ac_exeext
17384 if { (ac_try="$ac_link"
17385 case "(($ac_try" in
17386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17387 *) ac_try_echo=$ac_try;;
17389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17390 (eval "$ac_link") 2>conftest.er1
17392 grep -v '^
*+' conftest.er1 >conftest.err
17394 cat conftest.err >&5
17395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396 (exit $ac_status); } && {
17397 test -z "$ac_c_werror_flag" ||
17398 test ! -s conftest.err
17399 } && test -s conftest$ac_exeext &&
17400 $as_test_x conftest$ac_exeext; then
17401 ac_cv_lib_z_inflateCopy=yes
17403 echo "$as_me: failed program was:" >&5
17404 sed 's
/^
/|
/' conftest.$ac_ext >&5
17406 ac_cv_lib_z_inflateCopy=no
17409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17410 conftest$ac_exeext conftest.$ac_ext
17411 LIBS=$ac_check_lib_save_LIBS
17413 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
17414 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
17415 if test $ac_cv_lib_z_inflateCopy = yes; then
17417 cat >>confdefs.h <<\_ACEOF
17418 #define HAVE_ZLIB_COPY 1
17424 case $ac_sys_system/$ac_sys_release in
17426 CFLAGS="${_CUR_CFLAGS}"
17427 LDFLAGS="${_CUR_LDFLAGS}"
17431 { echo "$as_me:$LINENO: checking for hstrerror" >&5
17432 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
17433 cat >conftest.$ac_ext <<_ACEOF
17436 cat confdefs.h >>conftest.$ac_ext
17437 cat >>conftest.$ac_ext <<_ACEOF
17438 /* end confdefs.h. */
17440 #include "confdefs.h"
17446 void* p = hstrerror; hstrerror(0)
17451 rm -f conftest.$ac_objext conftest$ac_exeext
17452 if { (ac_try="$ac_link"
17453 case "(($ac_try" in
17454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17455 *) ac_try_echo=$ac_try;;
17457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17458 (eval "$ac_link") 2>conftest.er1
17460 grep -v '^
*+' conftest.er1 >conftest.err
17462 cat conftest.err >&5
17463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17464 (exit $ac_status); } && {
17465 test -z "$ac_c_werror_flag" ||
17466 test ! -s conftest.err
17467 } && test -s conftest$ac_exeext &&
17468 $as_test_x conftest$ac_exeext; then
17470 cat >>confdefs.h <<\_ACEOF
17471 #define HAVE_HSTRERROR 1
17474 { echo "$as_me:$LINENO: result: yes" >&5
17475 echo "${ECHO_T}yes" >&6; }
17477 echo "$as_me: failed program was:" >&5
17478 sed 's
/^
/|
/' conftest.$ac_ext >&5
17480 { echo "$as_me:$LINENO: result: no" >&5
17481 echo "${ECHO_T}no" >&6; }
17485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17486 conftest$ac_exeext conftest.$ac_ext
17488 { echo "$as_me:$LINENO: checking for inet_aton" >&5
17489 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
17490 cat >conftest.$ac_ext <<_ACEOF
17493 cat confdefs.h >>conftest.$ac_ext
17494 cat >>conftest.$ac_ext <<_ACEOF
17495 /* end confdefs.h. */
17497 #include "confdefs.h"
17498 #include <sys/types.h>
17499 #include <sys/socket.h>
17500 #include <netinet/in.h>
17501 #include <arpa/inet.h>
17506 void* p = inet_aton;inet_aton(0,0)
17511 rm -f conftest.$ac_objext conftest$ac_exeext
17512 if { (ac_try="$ac_link"
17513 case "(($ac_try" in
17514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17515 *) ac_try_echo=$ac_try;;
17517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17518 (eval "$ac_link") 2>conftest.er1
17520 grep -v '^
*+' conftest.er1 >conftest.err
17522 cat conftest.err >&5
17523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17524 (exit $ac_status); } && {
17525 test -z "$ac_c_werror_flag" ||
17526 test ! -s conftest.err
17527 } && test -s conftest$ac_exeext &&
17528 $as_test_x conftest$ac_exeext; then
17530 cat >>confdefs.h <<\_ACEOF
17531 #define HAVE_INET_ATON 1
17534 { echo "$as_me:$LINENO: result: yes" >&5
17535 echo "${ECHO_T}yes" >&6; }
17537 echo "$as_me: failed program was:" >&5
17538 sed 's
/^
/|
/' conftest.$ac_ext >&5
17540 { echo "$as_me:$LINENO: result: no" >&5
17541 echo "${ECHO_T}no" >&6; }
17545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17546 conftest$ac_exeext conftest.$ac_ext
17548 { echo "$as_me:$LINENO: checking for inet_pton" >&5
17549 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
17550 cat >conftest.$ac_ext <<_ACEOF
17553 cat confdefs.h >>conftest.$ac_ext
17554 cat >>conftest.$ac_ext <<_ACEOF
17555 /* end confdefs.h. */
17557 #include "confdefs.h"
17558 #include <sys/types.h>
17559 #include <sys/socket.h>
17560 #include <netinet/in.h>
17561 #include <arpa/inet.h>
17566 void* p = inet_pton
17571 rm -f conftest.$ac_objext
17572 if { (ac_try="$ac_compile"
17573 case "(($ac_try" in
17574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17575 *) ac_try_echo=$ac_try;;
17577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17578 (eval "$ac_compile") 2>conftest.er1
17580 grep -v '^
*+' conftest.er1 >conftest.err
17582 cat conftest.err >&5
17583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17584 (exit $ac_status); } && {
17585 test -z "$ac_c_werror_flag" ||
17586 test ! -s conftest.err
17587 } && test -s conftest.$ac_objext; then
17589 cat >>confdefs.h <<\_ACEOF
17590 #define HAVE_INET_PTON 1
17593 { echo "$as_me:$LINENO: result: yes" >&5
17594 echo "${ECHO_T}yes" >&6; }
17596 echo "$as_me: failed program was:" >&5
17597 sed 's
/^
/|
/' conftest.$ac_ext >&5
17599 { echo "$as_me:$LINENO: result: no" >&5
17600 echo "${ECHO_T}no" >&6; }
17604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17606 # On some systems, setgroups is in unistd.h, on others, in grp.h
17607 { echo "$as_me:$LINENO: checking for setgroups" >&5
17608 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
17609 cat >conftest.$ac_ext <<_ACEOF
17612 cat confdefs.h >>conftest.$ac_ext
17613 cat >>conftest.$ac_ext <<_ACEOF
17614 /* end confdefs.h. */
17616 #include "confdefs.h"
17617 #include <unistd.h>
17625 void* p = setgroups
17630 rm -f conftest.$ac_objext
17631 if { (ac_try="$ac_compile"
17632 case "(($ac_try" in
17633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17634 *) ac_try_echo=$ac_try;;
17636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17637 (eval "$ac_compile") 2>conftest.er1
17639 grep -v '^
*+' conftest.er1 >conftest.err
17641 cat conftest.err >&5
17642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643 (exit $ac_status); } && {
17644 test -z "$ac_c_werror_flag" ||
17645 test ! -s conftest.err
17646 } && test -s conftest.$ac_objext; then
17648 cat >>confdefs.h <<\_ACEOF
17649 #define HAVE_SETGROUPS 1
17652 { echo "$as_me:$LINENO: result: yes" >&5
17653 echo "${ECHO_T}yes" >&6; }
17655 echo "$as_me: failed program was:" >&5
17656 sed 's
/^
/|
/' conftest.$ac_ext >&5
17658 { echo "$as_me:$LINENO: result: no" >&5
17659 echo "${ECHO_T}no" >&6; }
17663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17665 # check for openpty and forkpty
17668 for ac_func in openpty
17670 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17671 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17672 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17673 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17674 echo $ECHO_N "(cached) $ECHO_C" >&6
17676 cat >conftest.$ac_ext <<_ACEOF
17679 cat confdefs.h >>conftest.$ac_ext
17680 cat >>conftest.$ac_ext <<_ACEOF
17681 /* end confdefs.h. */
17682 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17683 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17684 #define $ac_func innocuous_$ac_func
17686 /* System header to define __stub macros and hopefully few prototypes,
17687 which can conflict with char $ac_func (); below.
17688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17689 <limits.h> exists even on freestanding compilers. */
17692 # include <limits.h>
17694 # include <assert.h>
17699 /* Override any GCC internal prototype to avoid an error.
17700 Use char because int might match the return type of a GCC
17701 builtin and then its argument prototype would still apply. */
17706 /* The GNU C library defines this for functions which it implements
17707 to always fail with ENOSYS. Some functions are actually named
17708 something starting with __ and the normal name is an alias. */
17709 #if defined __stub_$ac_func || defined __stub___$ac_func
17716 return $ac_func ();
17721 rm -f conftest.$ac_objext conftest$ac_exeext
17722 if { (ac_try="$ac_link"
17723 case "(($ac_try" in
17724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17725 *) ac_try_echo=$ac_try;;
17727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17728 (eval "$ac_link") 2>conftest.er1
17730 grep -v '^
*+' conftest.er1 >conftest.err
17732 cat conftest.err >&5
17733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17734 (exit $ac_status); } && {
17735 test -z "$ac_c_werror_flag" ||
17736 test ! -s conftest.err
17737 } && test -s conftest$ac_exeext &&
17738 $as_test_x conftest$ac_exeext; then
17739 eval "$as_ac_var=yes"
17741 echo "$as_me: failed program was:" >&5
17742 sed 's
/^
/|
/' conftest.$ac_ext >&5
17744 eval "$as_ac_var=no"
17747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17748 conftest$ac_exeext conftest.$ac_ext
17750 ac_res=`eval echo '${'$as_ac_var'}'`
17751 { echo "$as_me:$LINENO: result: $ac_res" >&5
17752 echo "${ECHO_T}$ac_res" >&6; }
17753 if test `eval echo '${'$as_ac_var'}'` = yes; then
17754 cat >>confdefs.h <<_ACEOF
17755 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17759 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
17760 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
17761 if test "${ac_cv_lib_util_openpty+set}" = set; then
17762 echo $ECHO_N "(cached) $ECHO_C" >&6
17764 ac_check_lib_save_LIBS=$LIBS
17765 LIBS="-lutil $LIBS"
17766 cat >conftest.$ac_ext <<_ACEOF
17769 cat confdefs.h >>conftest.$ac_ext
17770 cat >>conftest.$ac_ext <<_ACEOF
17771 /* end confdefs.h. */
17773 /* Override any GCC internal prototype to avoid an error.
17774 Use char because int might match the return type of a GCC
17775 builtin and then its argument prototype would still apply. */
17788 rm -f conftest.$ac_objext conftest$ac_exeext
17789 if { (ac_try="$ac_link"
17790 case "(($ac_try" in
17791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17792 *) ac_try_echo=$ac_try;;
17794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17795 (eval "$ac_link") 2>conftest.er1
17797 grep -v '^
*+' conftest.er1 >conftest.err
17799 cat conftest.err >&5
17800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17801 (exit $ac_status); } && {
17802 test -z "$ac_c_werror_flag" ||
17803 test ! -s conftest.err
17804 } && test -s conftest$ac_exeext &&
17805 $as_test_x conftest$ac_exeext; then
17806 ac_cv_lib_util_openpty=yes
17808 echo "$as_me: failed program was:" >&5
17809 sed 's
/^
/|
/' conftest.$ac_ext >&5
17811 ac_cv_lib_util_openpty=no
17814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17815 conftest$ac_exeext conftest.$ac_ext
17816 LIBS=$ac_check_lib_save_LIBS
17818 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
17819 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
17820 if test $ac_cv_lib_util_openpty = yes; then
17821 cat >>confdefs.h <<\_ACEOF
17822 #define HAVE_OPENPTY 1
17824 LIBS="$LIBS -lutil"
17826 { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
17827 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
17828 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
17829 echo $ECHO_N "(cached) $ECHO_C" >&6
17831 ac_check_lib_save_LIBS=$LIBS
17833 cat >conftest.$ac_ext <<_ACEOF
17836 cat confdefs.h >>conftest.$ac_ext
17837 cat >>conftest.$ac_ext <<_ACEOF
17838 /* end confdefs.h. */
17840 /* Override any GCC internal prototype to avoid an error.
17841 Use char because int might match the return type of a GCC
17842 builtin and then its argument prototype would still apply. */
17855 rm -f conftest.$ac_objext conftest$ac_exeext
17856 if { (ac_try="$ac_link"
17857 case "(($ac_try" in
17858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17859 *) ac_try_echo=$ac_try;;
17861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17862 (eval "$ac_link") 2>conftest.er1
17864 grep -v '^
*+' conftest.er1 >conftest.err
17866 cat conftest.err >&5
17867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868 (exit $ac_status); } && {
17869 test -z "$ac_c_werror_flag" ||
17870 test ! -s conftest.err
17871 } && test -s conftest$ac_exeext &&
17872 $as_test_x conftest$ac_exeext; then
17873 ac_cv_lib_bsd_openpty=yes
17875 echo "$as_me: failed program was:" >&5
17876 sed 's
/^
/|
/' conftest.$ac_ext >&5
17878 ac_cv_lib_bsd_openpty=no
17881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17882 conftest$ac_exeext conftest.$ac_ext
17883 LIBS=$ac_check_lib_save_LIBS
17885 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
17886 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
17887 if test $ac_cv_lib_bsd_openpty = yes; then
17888 cat >>confdefs.h <<\_ACEOF
17889 #define HAVE_OPENPTY 1
17902 for ac_func in forkpty
17904 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17905 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17906 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17907 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17908 echo $ECHO_N "(cached) $ECHO_C" >&6
17910 cat >conftest.$ac_ext <<_ACEOF
17913 cat confdefs.h >>conftest.$ac_ext
17914 cat >>conftest.$ac_ext <<_ACEOF
17915 /* end confdefs.h. */
17916 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17917 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17918 #define $ac_func innocuous_$ac_func
17920 /* System header to define __stub macros and hopefully few prototypes,
17921 which can conflict with char $ac_func (); below.
17922 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17923 <limits.h> exists even on freestanding compilers. */
17926 # include <limits.h>
17928 # include <assert.h>
17933 /* Override any GCC internal prototype to avoid an error.
17934 Use char because int might match the return type of a GCC
17935 builtin and then its argument prototype would still apply. */
17940 /* The GNU C library defines this for functions which it implements
17941 to always fail with ENOSYS. Some functions are actually named
17942 something starting with __ and the normal name is an alias. */
17943 #if defined __stub_$ac_func || defined __stub___$ac_func
17950 return $ac_func ();
17955 rm -f conftest.$ac_objext conftest$ac_exeext
17956 if { (ac_try="$ac_link"
17957 case "(($ac_try" in
17958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17959 *) ac_try_echo=$ac_try;;
17961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17962 (eval "$ac_link") 2>conftest.er1
17964 grep -v '^
*+' conftest.er1 >conftest.err
17966 cat conftest.err >&5
17967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17968 (exit $ac_status); } && {
17969 test -z "$ac_c_werror_flag" ||
17970 test ! -s conftest.err
17971 } && test -s conftest$ac_exeext &&
17972 $as_test_x conftest$ac_exeext; then
17973 eval "$as_ac_var=yes"
17975 echo "$as_me: failed program was:" >&5
17976 sed 's
/^
/|
/' conftest.$ac_ext >&5
17978 eval "$as_ac_var=no"
17981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17982 conftest$ac_exeext conftest.$ac_ext
17984 ac_res=`eval echo '${'$as_ac_var'}'`
17985 { echo "$as_me:$LINENO: result: $ac_res" >&5
17986 echo "${ECHO_T}$ac_res" >&6; }
17987 if test `eval echo '${'$as_ac_var'}'` = yes; then
17988 cat >>confdefs.h <<_ACEOF
17989 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17993 { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
17994 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
17995 if test "${ac_cv_lib_util_forkpty+set}" = set; then
17996 echo $ECHO_N "(cached) $ECHO_C" >&6
17998 ac_check_lib_save_LIBS=$LIBS
17999 LIBS="-lutil $LIBS"
18000 cat >conftest.$ac_ext <<_ACEOF
18003 cat confdefs.h >>conftest.$ac_ext
18004 cat >>conftest.$ac_ext <<_ACEOF
18005 /* end confdefs.h. */
18007 /* Override any GCC internal prototype to avoid an error.
18008 Use char because int might match the return type of a GCC
18009 builtin and then its argument prototype would still apply. */
18022 rm -f conftest.$ac_objext conftest$ac_exeext
18023 if { (ac_try="$ac_link"
18024 case "(($ac_try" in
18025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18026 *) ac_try_echo=$ac_try;;
18028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18029 (eval "$ac_link") 2>conftest.er1
18031 grep -v '^
*+' conftest.er1 >conftest.err
18033 cat conftest.err >&5
18034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18035 (exit $ac_status); } && {
18036 test -z "$ac_c_werror_flag" ||
18037 test ! -s conftest.err
18038 } && test -s conftest$ac_exeext &&
18039 $as_test_x conftest$ac_exeext; then
18040 ac_cv_lib_util_forkpty=yes
18042 echo "$as_me: failed program was:" >&5
18043 sed 's
/^
/|
/' conftest.$ac_ext >&5
18045 ac_cv_lib_util_forkpty=no
18048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18049 conftest$ac_exeext conftest.$ac_ext
18050 LIBS=$ac_check_lib_save_LIBS
18052 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
18053 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
18054 if test $ac_cv_lib_util_forkpty = yes; then
18055 cat >>confdefs.h <<\_ACEOF
18056 #define HAVE_FORKPTY 1
18058 LIBS="$LIBS -lutil"
18060 { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
18061 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
18062 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
18063 echo $ECHO_N "(cached) $ECHO_C" >&6
18065 ac_check_lib_save_LIBS=$LIBS
18067 cat >conftest.$ac_ext <<_ACEOF
18070 cat confdefs.h >>conftest.$ac_ext
18071 cat >>conftest.$ac_ext <<_ACEOF
18072 /* end confdefs.h. */
18074 /* Override any GCC internal prototype to avoid an error.
18075 Use char because int might match the return type of a GCC
18076 builtin and then its argument prototype would still apply. */
18089 rm -f conftest.$ac_objext conftest$ac_exeext
18090 if { (ac_try="$ac_link"
18091 case "(($ac_try" in
18092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18093 *) ac_try_echo=$ac_try;;
18095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18096 (eval "$ac_link") 2>conftest.er1
18098 grep -v '^
*+' conftest.er1 >conftest.err
18100 cat conftest.err >&5
18101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18102 (exit $ac_status); } && {
18103 test -z "$ac_c_werror_flag" ||
18104 test ! -s conftest.err
18105 } && test -s conftest$ac_exeext &&
18106 $as_test_x conftest$ac_exeext; then
18107 ac_cv_lib_bsd_forkpty=yes
18109 echo "$as_me: failed program was:" >&5
18110 sed 's
/^
/|
/' conftest.$ac_ext >&5
18112 ac_cv_lib_bsd_forkpty=no
18115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18116 conftest$ac_exeext conftest.$ac_ext
18117 LIBS=$ac_check_lib_save_LIBS
18119 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
18120 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
18121 if test $ac_cv_lib_bsd_forkpty = yes; then
18122 cat >>confdefs.h <<\_ACEOF
18123 #define HAVE_FORKPTY 1
18138 for ac_func in memmove
18140 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18141 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18142 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18143 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18144 echo $ECHO_N "(cached) $ECHO_C" >&6
18146 cat >conftest.$ac_ext <<_ACEOF
18149 cat confdefs.h >>conftest.$ac_ext
18150 cat >>conftest.$ac_ext <<_ACEOF
18151 /* end confdefs.h. */
18152 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18153 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18154 #define $ac_func innocuous_$ac_func
18156 /* System header to define __stub macros and hopefully few prototypes,
18157 which can conflict with char $ac_func (); below.
18158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18159 <limits.h> exists even on freestanding compilers. */
18162 # include <limits.h>
18164 # include <assert.h>
18169 /* Override any GCC internal prototype to avoid an error.
18170 Use char because int might match the return type of a GCC
18171 builtin and then its argument prototype would still apply. */
18176 /* The GNU C library defines this for functions which it implements
18177 to always fail with ENOSYS. Some functions are actually named
18178 something starting with __ and the normal name is an alias. */
18179 #if defined __stub_$ac_func || defined __stub___$ac_func
18186 return $ac_func ();
18191 rm -f conftest.$ac_objext conftest$ac_exeext
18192 if { (ac_try="$ac_link"
18193 case "(($ac_try" in
18194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18195 *) ac_try_echo=$ac_try;;
18197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18198 (eval "$ac_link") 2>conftest.er1
18200 grep -v '^
*+' conftest.er1 >conftest.err
18202 cat conftest.err >&5
18203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18204 (exit $ac_status); } && {
18205 test -z "$ac_c_werror_flag" ||
18206 test ! -s conftest.err
18207 } && test -s conftest$ac_exeext &&
18208 $as_test_x conftest$ac_exeext; then
18209 eval "$as_ac_var=yes"
18211 echo "$as_me: failed program was:" >&5
18212 sed 's
/^
/|
/' conftest.$ac_ext >&5
18214 eval "$as_ac_var=no"
18217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18218 conftest$ac_exeext conftest.$ac_ext
18220 ac_res=`eval echo '${'$as_ac_var'}'`
18221 { echo "$as_me:$LINENO: result: $ac_res" >&5
18222 echo "${ECHO_T}$ac_res" >&6; }
18223 if test `eval echo '${'$as_ac_var'}'` = yes; then
18224 cat >>confdefs.h <<_ACEOF
18225 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18232 # check for long file support functions
18239 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
18241 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18242 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18243 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18244 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18245 echo $ECHO_N "(cached) $ECHO_C" >&6
18247 cat >conftest.$ac_ext <<_ACEOF
18250 cat confdefs.h >>conftest.$ac_ext
18251 cat >>conftest.$ac_ext <<_ACEOF
18252 /* end confdefs.h. */
18253 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18254 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18255 #define $ac_func innocuous_$ac_func
18257 /* System header to define __stub macros and hopefully few prototypes,
18258 which can conflict with char $ac_func (); below.
18259 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18260 <limits.h> exists even on freestanding compilers. */
18263 # include <limits.h>
18265 # include <assert.h>
18270 /* Override any GCC internal prototype to avoid an error.
18271 Use char because int might match the return type of a GCC
18272 builtin and then its argument prototype would still apply. */
18277 /* The GNU C library defines this for functions which it implements
18278 to always fail with ENOSYS. Some functions are actually named
18279 something starting with __ and the normal name is an alias. */
18280 #if defined __stub_$ac_func || defined __stub___$ac_func
18287 return $ac_func ();
18292 rm -f conftest.$ac_objext conftest$ac_exeext
18293 if { (ac_try="$ac_link"
18294 case "(($ac_try" in
18295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18296 *) ac_try_echo=$ac_try;;
18298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18299 (eval "$ac_link") 2>conftest.er1
18301 grep -v '^
*+' conftest.er1 >conftest.err
18303 cat conftest.err >&5
18304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305 (exit $ac_status); } && {
18306 test -z "$ac_c_werror_flag" ||
18307 test ! -s conftest.err
18308 } && test -s conftest$ac_exeext &&
18309 $as_test_x conftest$ac_exeext; then
18310 eval "$as_ac_var=yes"
18312 echo "$as_me: failed program was:" >&5
18313 sed 's
/^
/|
/' conftest.$ac_ext >&5
18315 eval "$as_ac_var=no"
18318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18319 conftest$ac_exeext conftest.$ac_ext
18321 ac_res=`eval echo '${'$as_ac_var'}'`
18322 { echo "$as_me:$LINENO: result: $ac_res" >&5
18323 echo "${ECHO_T}$ac_res" >&6; }
18324 if test `eval echo '${'$as_ac_var'}'` = yes; then
18325 cat >>confdefs.h <<_ACEOF
18326 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18336 for ac_func in dup2 getcwd strdup
18338 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18339 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18340 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18341 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18342 echo $ECHO_N "(cached) $ECHO_C" >&6
18344 cat >conftest.$ac_ext <<_ACEOF
18347 cat confdefs.h >>conftest.$ac_ext
18348 cat >>conftest.$ac_ext <<_ACEOF
18349 /* end confdefs.h. */
18350 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18352 #define $ac_func innocuous_$ac_func
18354 /* System header to define __stub macros and hopefully few prototypes,
18355 which can conflict with char $ac_func (); below.
18356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18357 <limits.h> exists even on freestanding compilers. */
18360 # include <limits.h>
18362 # include <assert.h>
18367 /* Override any GCC internal prototype to avoid an error.
18368 Use char because int might match the return type of a GCC
18369 builtin and then its argument prototype would still apply. */
18374 /* The GNU C library defines this for functions which it implements
18375 to always fail with ENOSYS. Some functions are actually named
18376 something starting with __ and the normal name is an alias. */
18377 #if defined __stub_$ac_func || defined __stub___$ac_func
18384 return $ac_func ();
18389 rm -f conftest.$ac_objext conftest$ac_exeext
18390 if { (ac_try="$ac_link"
18391 case "(($ac_try" in
18392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18393 *) ac_try_echo=$ac_try;;
18395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18396 (eval "$ac_link") 2>conftest.er1
18398 grep -v '^
*+' conftest.er1 >conftest.err
18400 cat conftest.err >&5
18401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18402 (exit $ac_status); } && {
18403 test -z "$ac_c_werror_flag" ||
18404 test ! -s conftest.err
18405 } && test -s conftest$ac_exeext &&
18406 $as_test_x conftest$ac_exeext; then
18407 eval "$as_ac_var=yes"
18409 echo "$as_me: failed program was:" >&5
18410 sed 's
/^
/|
/' conftest.$ac_ext >&5
18412 eval "$as_ac_var=no"
18415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18416 conftest$ac_exeext conftest.$ac_ext
18418 ac_res=`eval echo '${'$as_ac_var'}'`
18419 { echo "$as_me:$LINENO: result: $ac_res" >&5
18420 echo "${ECHO_T}$ac_res" >&6; }
18421 if test `eval echo '${'$as_ac_var'}'` = yes; then
18422 cat >>confdefs.h <<_ACEOF
18423 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18427 case " $LIBOBJS " in
18428 *" $ac_func.$ac_objext "* ) ;;
18429 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18438 for ac_func in getpgrp
18440 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18441 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18442 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18443 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18444 echo $ECHO_N "(cached) $ECHO_C" >&6
18446 cat >conftest.$ac_ext <<_ACEOF
18449 cat confdefs.h >>conftest.$ac_ext
18450 cat >>conftest.$ac_ext <<_ACEOF
18451 /* end confdefs.h. */
18452 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18453 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18454 #define $ac_func innocuous_$ac_func
18456 /* System header to define __stub macros and hopefully few prototypes,
18457 which can conflict with char $ac_func (); below.
18458 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18459 <limits.h> exists even on freestanding compilers. */
18462 # include <limits.h>
18464 # include <assert.h>
18469 /* Override any GCC internal prototype to avoid an error.
18470 Use char because int might match the return type of a GCC
18471 builtin and then its argument prototype would still apply. */
18476 /* The GNU C library defines this for functions which it implements
18477 to always fail with ENOSYS. Some functions are actually named
18478 something starting with __ and the normal name is an alias. */
18479 #if defined __stub_$ac_func || defined __stub___$ac_func
18486 return $ac_func ();
18491 rm -f conftest.$ac_objext conftest$ac_exeext
18492 if { (ac_try="$ac_link"
18493 case "(($ac_try" in
18494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18495 *) ac_try_echo=$ac_try;;
18497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18498 (eval "$ac_link") 2>conftest.er1
18500 grep -v '^
*+' conftest.er1 >conftest.err
18502 cat conftest.err >&5
18503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18504 (exit $ac_status); } && {
18505 test -z "$ac_c_werror_flag" ||
18506 test ! -s conftest.err
18507 } && test -s conftest$ac_exeext &&
18508 $as_test_x conftest$ac_exeext; then
18509 eval "$as_ac_var=yes"
18511 echo "$as_me: failed program was:" >&5
18512 sed 's
/^
/|
/' conftest.$ac_ext >&5
18514 eval "$as_ac_var=no"
18517 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18518 conftest$ac_exeext conftest.$ac_ext
18520 ac_res=`eval echo '${'$as_ac_var'}'`
18521 { echo "$as_me:$LINENO: result: $ac_res" >&5
18522 echo "${ECHO_T}$ac_res" >&6; }
18523 if test `eval echo '${'$as_ac_var'}'` = yes; then
18524 cat >>confdefs.h <<_ACEOF
18525 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18527 cat >conftest.$ac_ext <<_ACEOF
18530 cat confdefs.h >>conftest.$ac_ext
18531 cat >>conftest.$ac_ext <<_ACEOF
18532 /* end confdefs.h. */
18533 #include <unistd.h>
18542 rm -f conftest.$ac_objext
18543 if { (ac_try="$ac_compile"
18544 case "(($ac_try" in
18545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18546 *) ac_try_echo=$ac_try;;
18548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18549 (eval "$ac_compile") 2>conftest.er1
18551 grep -v '^
*+' conftest.er1 >conftest.err
18553 cat conftest.err >&5
18554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18555 (exit $ac_status); } && {
18556 test -z "$ac_c_werror_flag" ||
18557 test ! -s conftest.err
18558 } && test -s conftest.$ac_objext; then
18560 cat >>confdefs.h <<\_ACEOF
18561 #define GETPGRP_HAVE_ARG 1
18566 echo "$as_me: failed program was:" >&5
18567 sed 's
/^
/|
/' conftest.$ac_ext >&5
18572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18578 for ac_func in setpgrp
18580 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18581 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18582 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18583 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18584 echo $ECHO_N "(cached) $ECHO_C" >&6
18586 cat >conftest.$ac_ext <<_ACEOF
18589 cat confdefs.h >>conftest.$ac_ext
18590 cat >>conftest.$ac_ext <<_ACEOF
18591 /* end confdefs.h. */
18592 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18593 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18594 #define $ac_func innocuous_$ac_func
18596 /* System header to define __stub macros and hopefully few prototypes,
18597 which can conflict with char $ac_func (); below.
18598 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18599 <limits.h> exists even on freestanding compilers. */
18602 # include <limits.h>
18604 # include <assert.h>
18609 /* Override any GCC internal prototype to avoid an error.
18610 Use char because int might match the return type of a GCC
18611 builtin and then its argument prototype would still apply. */
18616 /* The GNU C library defines this for functions which it implements
18617 to always fail with ENOSYS. Some functions are actually named
18618 something starting with __ and the normal name is an alias. */
18619 #if defined __stub_$ac_func || defined __stub___$ac_func
18626 return $ac_func ();
18631 rm -f conftest.$ac_objext conftest$ac_exeext
18632 if { (ac_try="$ac_link"
18633 case "(($ac_try" in
18634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18635 *) ac_try_echo=$ac_try;;
18637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18638 (eval "$ac_link") 2>conftest.er1
18640 grep -v '^
*+' conftest.er1 >conftest.err
18642 cat conftest.err >&5
18643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18644 (exit $ac_status); } && {
18645 test -z "$ac_c_werror_flag" ||
18646 test ! -s conftest.err
18647 } && test -s conftest$ac_exeext &&
18648 $as_test_x conftest$ac_exeext; then
18649 eval "$as_ac_var=yes"
18651 echo "$as_me: failed program was:" >&5
18652 sed 's
/^
/|
/' conftest.$ac_ext >&5
18654 eval "$as_ac_var=no"
18657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18658 conftest$ac_exeext conftest.$ac_ext
18660 ac_res=`eval echo '${'$as_ac_var'}'`
18661 { echo "$as_me:$LINENO: result: $ac_res" >&5
18662 echo "${ECHO_T}$ac_res" >&6; }
18663 if test `eval echo '${'$as_ac_var'}'` = yes; then
18664 cat >>confdefs.h <<_ACEOF
18665 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18667 cat >conftest.$ac_ext <<_ACEOF
18670 cat confdefs.h >>conftest.$ac_ext
18671 cat >>conftest.$ac_ext <<_ACEOF
18672 /* end confdefs.h. */
18673 #include <unistd.h>
18682 rm -f conftest.$ac_objext
18683 if { (ac_try="$ac_compile"
18684 case "(($ac_try" in
18685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18686 *) ac_try_echo=$ac_try;;
18688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18689 (eval "$ac_compile") 2>conftest.er1
18691 grep -v '^
*+' conftest.er1 >conftest.err
18693 cat conftest.err >&5
18694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18695 (exit $ac_status); } && {
18696 test -z "$ac_c_werror_flag" ||
18697 test ! -s conftest.err
18698 } && test -s conftest.$ac_objext; then
18700 cat >>confdefs.h <<\_ACEOF
18701 #define SETPGRP_HAVE_ARG 1
18706 echo "$as_me: failed program was:" >&5
18707 sed 's
/^
/|
/' conftest.$ac_ext >&5
18712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18718 for ac_func in gettimeofday
18720 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18721 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18722 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18723 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18724 echo $ECHO_N "(cached) $ECHO_C" >&6
18726 cat >conftest.$ac_ext <<_ACEOF
18729 cat confdefs.h >>conftest.$ac_ext
18730 cat >>conftest.$ac_ext <<_ACEOF
18731 /* end confdefs.h. */
18732 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18733 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18734 #define $ac_func innocuous_$ac_func
18736 /* System header to define __stub macros and hopefully few prototypes,
18737 which can conflict with char $ac_func (); below.
18738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18739 <limits.h> exists even on freestanding compilers. */
18742 # include <limits.h>
18744 # include <assert.h>
18749 /* Override any GCC internal prototype to avoid an error.
18750 Use char because int might match the return type of a GCC
18751 builtin and then its argument prototype would still apply. */
18756 /* The GNU C library defines this for functions which it implements
18757 to always fail with ENOSYS. Some functions are actually named
18758 something starting with __ and the normal name is an alias. */
18759 #if defined __stub_$ac_func || defined __stub___$ac_func
18766 return $ac_func ();
18771 rm -f conftest.$ac_objext conftest$ac_exeext
18772 if { (ac_try="$ac_link"
18773 case "(($ac_try" in
18774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18775 *) ac_try_echo=$ac_try;;
18777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18778 (eval "$ac_link") 2>conftest.er1
18780 grep -v '^
*+' conftest.er1 >conftest.err
18782 cat conftest.err >&5
18783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18784 (exit $ac_status); } && {
18785 test -z "$ac_c_werror_flag" ||
18786 test ! -s conftest.err
18787 } && test -s conftest$ac_exeext &&
18788 $as_test_x conftest$ac_exeext; then
18789 eval "$as_ac_var=yes"
18791 echo "$as_me: failed program was:" >&5
18792 sed 's
/^
/|
/' conftest.$ac_ext >&5
18794 eval "$as_ac_var=no"
18797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18798 conftest$ac_exeext conftest.$ac_ext
18800 ac_res=`eval echo '${'$as_ac_var'}'`
18801 { echo "$as_me:$LINENO: result: $ac_res" >&5
18802 echo "${ECHO_T}$ac_res" >&6; }
18803 if test `eval echo '${'$as_ac_var'}'` = yes; then
18804 cat >>confdefs.h <<_ACEOF
18805 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18807 cat >conftest.$ac_ext <<_ACEOF
18810 cat confdefs.h >>conftest.$ac_ext
18811 cat >>conftest.$ac_ext <<_ACEOF
18812 /* end confdefs.h. */
18813 #include <sys/time.h>
18817 gettimeofday((struct timeval*)0,(struct timezone*)0);
18822 rm -f conftest.$ac_objext
18823 if { (ac_try="$ac_compile"
18824 case "(($ac_try" in
18825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18826 *) ac_try_echo=$ac_try;;
18828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18829 (eval "$ac_compile") 2>conftest.er1
18831 grep -v '^
*+' conftest.er1 >conftest.err
18833 cat conftest.err >&5
18834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835 (exit $ac_status); } && {
18836 test -z "$ac_c_werror_flag" ||
18837 test ! -s conftest.err
18838 } && test -s conftest.$ac_objext; then
18841 echo "$as_me: failed program was:" >&5
18842 sed 's
/^
/|
/' conftest.$ac_ext >&5
18845 cat >>confdefs.h <<\_ACEOF
18846 #define GETTIMEOFDAY_NO_TZ 1
18852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18858 { echo "$as_me:$LINENO: checking for major" >&5
18859 echo $ECHO_N "checking for major... $ECHO_C" >&6; }
18860 cat >conftest.$ac_ext <<_ACEOF
18863 cat confdefs.h >>conftest.$ac_ext
18864 cat >>conftest.$ac_ext <<_ACEOF
18865 /* end confdefs.h. */
18867 #if defined(MAJOR_IN_MKDEV)
18868 #include <sys/mkdev.h>
18869 #elif defined(MAJOR_IN_SYSMACROS)
18870 #include <sys/sysmacros.h>
18872 #include <sys/types.h>
18879 makedev(major(0),minor(0));
18885 rm -f conftest.$ac_objext conftest$ac_exeext
18886 if { (ac_try="$ac_link"
18887 case "(($ac_try" in
18888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18889 *) ac_try_echo=$ac_try;;
18891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18892 (eval "$ac_link") 2>conftest.er1
18894 grep -v '^
*+' conftest.er1 >conftest.err
18896 cat conftest.err >&5
18897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898 (exit $ac_status); } && {
18899 test -z "$ac_c_werror_flag" ||
18900 test ! -s conftest.err
18901 } && test -s conftest$ac_exeext &&
18902 $as_test_x conftest$ac_exeext; then
18905 cat >>confdefs.h <<\_ACEOF
18906 #define HAVE_DEVICE_MACROS 1
18909 { echo "$as_me:$LINENO: result: yes" >&5
18910 echo "${ECHO_T}yes" >&6; }
18913 echo "$as_me: failed program was:" >&5
18914 sed 's
/^
/|
/' conftest.$ac_ext >&5
18917 { echo "$as_me:$LINENO: result: no" >&5
18918 echo "${ECHO_T}no" >&6; }
18922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18923 conftest$ac_exeext conftest.$ac_ext
18925 # On OSF/1 V5.1, getaddrinfo is available, but a define
18926 # for [no]getaddrinfo in netdb.h.
18927 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
18928 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
18929 cat >conftest.$ac_ext <<_ACEOF
18932 cat confdefs.h >>conftest.$ac_ext
18933 cat >>conftest.$ac_ext <<_ACEOF
18934 /* end confdefs.h. */
18936 #include <sys/types.h>
18937 #include <sys/socket.h>
18945 getaddrinfo(NULL, NULL, NULL, NULL);
18951 rm -f conftest.$ac_objext conftest$ac_exeext
18952 if { (ac_try="$ac_link"
18953 case "(($ac_try" in
18954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18955 *) ac_try_echo=$ac_try;;
18957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18958 (eval "$ac_link") 2>conftest.er1
18960 grep -v '^
*+' conftest.er1 >conftest.err
18962 cat conftest.err >&5
18963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18964 (exit $ac_status); } && {
18965 test -z "$ac_c_werror_flag" ||
18966 test ! -s conftest.err
18967 } && test -s conftest$ac_exeext &&
18968 $as_test_x conftest$ac_exeext; then
18970 { echo "$as_me:$LINENO: result: yes" >&5
18971 echo "${ECHO_T}yes" >&6; }
18972 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
18973 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
18974 if test "$cross_compiling" = yes; then
18975 { echo "$as_me:$LINENO: result: buggy" >&5
18976 echo "${ECHO_T}buggy" >&6; }
18977 buggygetaddrinfo=yes
18979 cat >conftest.$ac_ext <<_ACEOF
18982 cat confdefs.h >>conftest.$ac_ext
18983 cat >>conftest.$ac_ext <<_ACEOF
18984 /* end confdefs.h. */
18986 #include <sys/types.h>
18988 #include <string.h>
18989 #include <sys/socket.h>
18990 #include <netinet/in.h>
18994 int passive, gaierr, inet4 = 0, inet6 = 0;
18995 struct addrinfo hints, *ai, *aitop;
18996 char straddr[INET6_ADDRSTRLEN], strport[16];
18998 for (passive = 0; passive <= 1; passive++) {
18999 memset(&hints, 0, sizeof(hints));
19000 hints.ai_family = AF_UNSPEC;
19001 hints.ai_flags = passive ? AI_PASSIVE : 0;
19002 hints.ai_socktype = SOCK_STREAM;
19003 hints.ai_protocol = IPPROTO_TCP;
19004 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
19005 (void)gai_strerror(gaierr);
19008 for (ai = aitop; ai; ai = ai->ai_next) {
19009 if (ai->ai_addr == NULL ||
19010 ai->ai_addrlen == 0 ||
19011 getnameinfo(ai->ai_addr, ai->ai_addrlen,
19012 straddr, sizeof(straddr), strport, sizeof(strport),
19013 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
19016 switch (ai->ai_family) {
19018 if (strcmp(strport, "54321") != 0) {
19022 if (strcmp(straddr, "0.0.0.0") != 0) {
19026 if (strcmp(straddr, "127.0.0.1") != 0) {
19033 if (strcmp(strport, "54321") != 0) {
19037 if (strcmp(straddr, "::") != 0) {
19041 if (strcmp(straddr, "::1") != 0) {
19051 /* another family support? */
19057 if (!(inet4 == 0 || inet4 == 2))
19059 if (!(inet6 == 0 || inet6 == 2))
19063 freeaddrinfo(aitop);
19068 freeaddrinfo(aitop);
19073 rm -f conftest$ac_exeext
19074 if { (ac_try="$ac_link"
19075 case "(($ac_try" in
19076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19077 *) ac_try_echo=$ac_try;;
19079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19080 (eval "$ac_link") 2>&5
19082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19083 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
19084 { (case "(($ac_try" in
19085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19086 *) ac_try_echo=$ac_try;;
19088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19089 (eval "$ac_try") 2>&5
19091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19092 (exit $ac_status); }; }; then
19093 { echo "$as_me:$LINENO: result: good" >&5
19094 echo "${ECHO_T}good" >&6; }
19095 buggygetaddrinfo=no
19097 echo "$as_me: program exited with status $ac_status" >&5
19098 echo "$as_me: failed program was:" >&5
19099 sed 's
/^
/|
/' conftest.$ac_ext >&5
19101 ( exit $ac_status )
19102 { echo "$as_me:$LINENO: result: buggy" >&5
19103 echo "${ECHO_T}buggy" >&6; }
19104 buggygetaddrinfo=yes
19106 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19111 echo "$as_me: failed program was:" >&5
19112 sed 's
/^
/|
/' conftest.$ac_ext >&5
19115 { echo "$as_me:$LINENO: result: no" >&5
19116 echo "${ECHO_T}no" >&6; }
19117 buggygetaddrinfo=yes
19121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19122 conftest$ac_exeext conftest.$ac_ext
19124 if test "$buggygetaddrinfo" = "yes"; then
19125 if test "$ipv6" = "yes"; then
19126 echo 'Fatal
: You must get working getaddrinfo
() function.
'
19127 echo ' or you can specify
"--disable-ipv6"'.
19132 cat >>confdefs.h <<\_ACEOF
19133 #define HAVE_GETADDRINFO 1
19138 for ac_func in getnameinfo
19140 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19141 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19142 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19143 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19144 echo $ECHO_N "(cached) $ECHO_C" >&6
19146 cat >conftest.$ac_ext <<_ACEOF
19149 cat confdefs.h >>conftest.$ac_ext
19150 cat >>conftest.$ac_ext <<_ACEOF
19151 /* end confdefs.h. */
19152 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19153 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19154 #define $ac_func innocuous_$ac_func
19156 /* System header to define __stub macros and hopefully few prototypes,
19157 which can conflict with char $ac_func (); below.
19158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19159 <limits.h> exists even on freestanding compilers. */
19162 # include <limits.h>
19164 # include <assert.h>
19169 /* Override any GCC internal prototype to avoid an error.
19170 Use char because int might match the return type of a GCC
19171 builtin and then its argument prototype would still apply. */
19176 /* The GNU C library defines this for functions which it implements
19177 to always fail with ENOSYS. Some functions are actually named
19178 something starting with __ and the normal name is an alias. */
19179 #if defined __stub_$ac_func || defined __stub___$ac_func
19186 return $ac_func ();
19191 rm -f conftest.$ac_objext conftest$ac_exeext
19192 if { (ac_try="$ac_link"
19193 case "(($ac_try" in
19194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19195 *) ac_try_echo=$ac_try;;
19197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19198 (eval "$ac_link") 2>conftest.er1
19200 grep -v '^
*+' conftest.er1 >conftest.err
19202 cat conftest.err >&5
19203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19204 (exit $ac_status); } && {
19205 test -z "$ac_c_werror_flag" ||
19206 test ! -s conftest.err
19207 } && test -s conftest$ac_exeext &&
19208 $as_test_x conftest$ac_exeext; then
19209 eval "$as_ac_var=yes"
19211 echo "$as_me: failed program was:" >&5
19212 sed 's
/^
/|
/' conftest.$ac_ext >&5
19214 eval "$as_ac_var=no"
19217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19218 conftest$ac_exeext conftest.$ac_ext
19220 ac_res=`eval echo '${'$as_ac_var'}'`
19221 { echo "$as_me:$LINENO: result: $ac_res" >&5
19222 echo "${ECHO_T}$ac_res" >&6; }
19223 if test `eval echo '${'$as_ac_var'}'` = yes; then
19224 cat >>confdefs.h <<_ACEOF
19225 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19232 # checks for structures
19233 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19234 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
19235 if test "${ac_cv_header_time+set}" = set; then
19236 echo $ECHO_N "(cached) $ECHO_C" >&6
19238 cat >conftest.$ac_ext <<_ACEOF
19241 cat confdefs.h >>conftest.$ac_ext
19242 cat >>conftest.$ac_ext <<_ACEOF
19243 /* end confdefs.h. */
19244 #include <sys/types.h>
19245 #include <sys/time.h>
19251 if ((struct tm *) 0)
19257 rm -f conftest.$ac_objext
19258 if { (ac_try="$ac_compile"
19259 case "(($ac_try" in
19260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19261 *) ac_try_echo=$ac_try;;
19263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19264 (eval "$ac_compile") 2>conftest.er1
19266 grep -v '^
*+' conftest.er1 >conftest.err
19268 cat conftest.err >&5
19269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19270 (exit $ac_status); } && {
19271 test -z "$ac_c_werror_flag" ||
19272 test ! -s conftest.err
19273 } && test -s conftest.$ac_objext; then
19274 ac_cv_header_time=yes
19276 echo "$as_me: failed program was:" >&5
19277 sed 's
/^
/|
/' conftest.$ac_ext >&5
19279 ac_cv_header_time=no
19282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19284 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19285 echo "${ECHO_T}$ac_cv_header_time" >&6; }
19286 if test $ac_cv_header_time = yes; then
19288 cat >>confdefs.h <<\_ACEOF
19289 #define TIME_WITH_SYS_TIME 1
19294 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19295 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
19296 if test "${ac_cv_struct_tm+set}" = set; then
19297 echo $ECHO_N "(cached) $ECHO_C" >&6
19299 cat >conftest.$ac_ext <<_ACEOF
19302 cat confdefs.h >>conftest.$ac_ext
19303 cat >>conftest.$ac_ext <<_ACEOF
19304 /* end confdefs.h. */
19305 #include <sys/types.h>
19312 int *p = &tm.tm_sec;
19318 rm -f conftest.$ac_objext
19319 if { (ac_try="$ac_compile"
19320 case "(($ac_try" in
19321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19322 *) ac_try_echo=$ac_try;;
19324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19325 (eval "$ac_compile") 2>conftest.er1
19327 grep -v '^
*+' conftest.er1 >conftest.err
19329 cat conftest.err >&5
19330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331 (exit $ac_status); } && {
19332 test -z "$ac_c_werror_flag" ||
19333 test ! -s conftest.err
19334 } && test -s conftest.$ac_objext; then
19335 ac_cv_struct_tm=time.h
19337 echo "$as_me: failed program was:" >&5
19338 sed 's
/^
/|
/' conftest.$ac_ext >&5
19340 ac_cv_struct_tm=sys/time.h
19343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19345 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19346 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
19347 if test $ac_cv_struct_tm = sys/time.h; then
19349 cat >>confdefs.h <<\_ACEOF
19350 #define TM_IN_SYS_TIME 1
19355 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
19356 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
19357 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
19358 echo $ECHO_N "(cached) $ECHO_C" >&6
19360 cat >conftest.$ac_ext <<_ACEOF
19363 cat confdefs.h >>conftest.$ac_ext
19364 cat >>conftest.$ac_ext <<_ACEOF
19365 /* end confdefs.h. */
19366 #include <sys/types.h>
19367 #include <$ac_cv_struct_tm>
19373 static struct tm ac_aggr;
19374 if (ac_aggr.tm_zone)
19380 rm -f conftest.$ac_objext
19381 if { (ac_try="$ac_compile"
19382 case "(($ac_try" in
19383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19384 *) ac_try_echo=$ac_try;;
19386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19387 (eval "$ac_compile") 2>conftest.er1
19389 grep -v '^
*+' conftest.er1 >conftest.err
19391 cat conftest.err >&5
19392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19393 (exit $ac_status); } && {
19394 test -z "$ac_c_werror_flag" ||
19395 test ! -s conftest.err
19396 } && test -s conftest.$ac_objext; then
19397 ac_cv_member_struct_tm_tm_zone=yes
19399 echo "$as_me: failed program was:" >&5
19400 sed 's
/^
/|
/' conftest.$ac_ext >&5
19402 cat >conftest.$ac_ext <<_ACEOF
19405 cat confdefs.h >>conftest.$ac_ext
19406 cat >>conftest.$ac_ext <<_ACEOF
19407 /* end confdefs.h. */
19408 #include <sys/types.h>
19409 #include <$ac_cv_struct_tm>
19415 static struct tm ac_aggr;
19416 if (sizeof ac_aggr.tm_zone)
19422 rm -f conftest.$ac_objext
19423 if { (ac_try="$ac_compile"
19424 case "(($ac_try" in
19425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19426 *) ac_try_echo=$ac_try;;
19428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19429 (eval "$ac_compile") 2>conftest.er1
19431 grep -v '^
*+' conftest.er1 >conftest.err
19433 cat conftest.err >&5
19434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435 (exit $ac_status); } && {
19436 test -z "$ac_c_werror_flag" ||
19437 test ! -s conftest.err
19438 } && test -s conftest.$ac_objext; then
19439 ac_cv_member_struct_tm_tm_zone=yes
19441 echo "$as_me: failed program was:" >&5
19442 sed 's
/^
/|
/' conftest.$ac_ext >&5
19444 ac_cv_member_struct_tm_tm_zone=no
19447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19452 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
19453 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
19454 if test $ac_cv_member_struct_tm_tm_zone = yes; then
19456 cat >>confdefs.h <<_ACEOF
19457 #define HAVE_STRUCT_TM_TM_ZONE 1
19463 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19465 cat >>confdefs.h <<\_ACEOF
19466 #define HAVE_TM_ZONE 1
19470 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
19471 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
19472 if test "${ac_cv_have_decl_tzname+set}" = set; then
19473 echo $ECHO_N "(cached) $ECHO_C" >&6
19475 cat >conftest.$ac_ext <<_ACEOF
19478 cat confdefs.h >>conftest.$ac_ext
19479 cat >>conftest.$ac_ext <<_ACEOF
19480 /* end confdefs.h. */
19494 rm -f conftest.$ac_objext
19495 if { (ac_try="$ac_compile"
19496 case "(($ac_try" in
19497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19498 *) ac_try_echo=$ac_try;;
19500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19501 (eval "$ac_compile") 2>conftest.er1
19503 grep -v '^
*+' conftest.er1 >conftest.err
19505 cat conftest.err >&5
19506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19507 (exit $ac_status); } && {
19508 test -z "$ac_c_werror_flag" ||
19509 test ! -s conftest.err
19510 } && test -s conftest.$ac_objext; then
19511 ac_cv_have_decl_tzname=yes
19513 echo "$as_me: failed program was:" >&5
19514 sed 's
/^
/|
/' conftest.$ac_ext >&5
19516 ac_cv_have_decl_tzname=no
19519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19521 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
19522 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
19523 if test $ac_cv_have_decl_tzname = yes; then
19525 cat >>confdefs.h <<_ACEOF
19526 #define HAVE_DECL_TZNAME 1
19531 cat >>confdefs.h <<_ACEOF
19532 #define HAVE_DECL_TZNAME 0
19539 { echo "$as_me:$LINENO: checking for tzname" >&5
19540 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
19541 if test "${ac_cv_var_tzname+set}" = set; then
19542 echo $ECHO_N "(cached) $ECHO_C" >&6
19544 cat >conftest.$ac_ext <<_ACEOF
19547 cat confdefs.h >>conftest.$ac_ext
19548 cat >>conftest.$ac_ext <<_ACEOF
19549 /* end confdefs.h. */
19551 #if !HAVE_DECL_TZNAME
19552 extern char *tzname[];
19558 return tzname[0][0];
19563 rm -f conftest.$ac_objext conftest$ac_exeext
19564 if { (ac_try="$ac_link"
19565 case "(($ac_try" in
19566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19567 *) ac_try_echo=$ac_try;;
19569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19570 (eval "$ac_link") 2>conftest.er1
19572 grep -v '^
*+' conftest.er1 >conftest.err
19574 cat conftest.err >&5
19575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19576 (exit $ac_status); } && {
19577 test -z "$ac_c_werror_flag" ||
19578 test ! -s conftest.err
19579 } && test -s conftest$ac_exeext &&
19580 $as_test_x conftest$ac_exeext; then
19581 ac_cv_var_tzname=yes
19583 echo "$as_me: failed program was:" >&5
19584 sed 's
/^
/|
/' conftest.$ac_ext >&5
19586 ac_cv_var_tzname=no
19589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19590 conftest$ac_exeext conftest.$ac_ext
19592 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
19593 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
19594 if test $ac_cv_var_tzname = yes; then
19596 cat >>confdefs.h <<\_ACEOF
19597 #define HAVE_TZNAME 1
19603 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
19604 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
19605 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
19606 echo $ECHO_N "(cached) $ECHO_C" >&6
19608 cat >conftest.$ac_ext <<_ACEOF
19611 cat confdefs.h >>conftest.$ac_ext
19612 cat >>conftest.$ac_ext <<_ACEOF
19613 /* end confdefs.h. */
19614 $ac_includes_default
19618 static struct stat ac_aggr;
19619 if (ac_aggr.st_rdev)
19625 rm -f conftest.$ac_objext
19626 if { (ac_try="$ac_compile"
19627 case "(($ac_try" in
19628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19629 *) ac_try_echo=$ac_try;;
19631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19632 (eval "$ac_compile") 2>conftest.er1
19634 grep -v '^
*+' conftest.er1 >conftest.err
19636 cat conftest.err >&5
19637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638 (exit $ac_status); } && {
19639 test -z "$ac_c_werror_flag" ||
19640 test ! -s conftest.err
19641 } && test -s conftest.$ac_objext; then
19642 ac_cv_member_struct_stat_st_rdev=yes
19644 echo "$as_me: failed program was:" >&5
19645 sed 's
/^
/|
/' conftest.$ac_ext >&5
19647 cat >conftest.$ac_ext <<_ACEOF
19650 cat confdefs.h >>conftest.$ac_ext
19651 cat >>conftest.$ac_ext <<_ACEOF
19652 /* end confdefs.h. */
19653 $ac_includes_default
19657 static struct stat ac_aggr;
19658 if (sizeof ac_aggr.st_rdev)
19664 rm -f conftest.$ac_objext
19665 if { (ac_try="$ac_compile"
19666 case "(($ac_try" in
19667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19668 *) ac_try_echo=$ac_try;;
19670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19671 (eval "$ac_compile") 2>conftest.er1
19673 grep -v '^
*+' conftest.er1 >conftest.err
19675 cat conftest.err >&5
19676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19677 (exit $ac_status); } && {
19678 test -z "$ac_c_werror_flag" ||
19679 test ! -s conftest.err
19680 } && test -s conftest.$ac_objext; then
19681 ac_cv_member_struct_stat_st_rdev=yes
19683 echo "$as_me: failed program was:" >&5
19684 sed 's
/^
/|
/' conftest.$ac_ext >&5
19686 ac_cv_member_struct_stat_st_rdev=no
19689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19694 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
19695 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
19696 if test $ac_cv_member_struct_stat_st_rdev = yes; then
19698 cat >>confdefs.h <<_ACEOF
19699 #define HAVE_STRUCT_STAT_ST_RDEV 1
19705 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
19706 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
19707 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
19708 echo $ECHO_N "(cached) $ECHO_C" >&6
19710 cat >conftest.$ac_ext <<_ACEOF
19713 cat confdefs.h >>conftest.$ac_ext
19714 cat >>conftest.$ac_ext <<_ACEOF
19715 /* end confdefs.h. */
19716 $ac_includes_default
19720 static struct stat ac_aggr;
19721 if (ac_aggr.st_blksize)
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_member_struct_stat_st_blksize=yes
19746 echo "$as_me: failed program was:" >&5
19747 sed 's
/^
/|
/' conftest.$ac_ext >&5
19749 cat >conftest.$ac_ext <<_ACEOF
19752 cat confdefs.h >>conftest.$ac_ext
19753 cat >>conftest.$ac_ext <<_ACEOF
19754 /* end confdefs.h. */
19755 $ac_includes_default
19759 static struct stat ac_aggr;
19760 if (sizeof ac_aggr.st_blksize)
19766 rm -f conftest.$ac_objext
19767 if { (ac_try="$ac_compile"
19768 case "(($ac_try" in
19769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19770 *) ac_try_echo=$ac_try;;
19772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19773 (eval "$ac_compile") 2>conftest.er1
19775 grep -v '^
*+' conftest.er1 >conftest.err
19777 cat conftest.err >&5
19778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779 (exit $ac_status); } && {
19780 test -z "$ac_c_werror_flag" ||
19781 test ! -s conftest.err
19782 } && test -s conftest.$ac_objext; then
19783 ac_cv_member_struct_stat_st_blksize=yes
19785 echo "$as_me: failed program was:" >&5
19786 sed 's
/^
/|
/' conftest.$ac_ext >&5
19788 ac_cv_member_struct_stat_st_blksize=no
19791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19796 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
19797 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
19798 if test $ac_cv_member_struct_stat_st_blksize = yes; then
19800 cat >>confdefs.h <<_ACEOF
19801 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
19807 { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
19808 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
19809 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
19810 echo $ECHO_N "(cached) $ECHO_C" >&6
19812 cat >conftest.$ac_ext <<_ACEOF
19815 cat confdefs.h >>conftest.$ac_ext
19816 cat >>conftest.$ac_ext <<_ACEOF
19817 /* end confdefs.h. */
19818 $ac_includes_default
19822 static struct stat ac_aggr;
19823 if (ac_aggr.st_flags)
19829 rm -f conftest.$ac_objext
19830 if { (ac_try="$ac_compile"
19831 case "(($ac_try" in
19832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19833 *) ac_try_echo=$ac_try;;
19835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19836 (eval "$ac_compile") 2>conftest.er1
19838 grep -v '^
*+' conftest.er1 >conftest.err
19840 cat conftest.err >&5
19841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19842 (exit $ac_status); } && {
19843 test -z "$ac_c_werror_flag" ||
19844 test ! -s conftest.err
19845 } && test -s conftest.$ac_objext; then
19846 ac_cv_member_struct_stat_st_flags=yes
19848 echo "$as_me: failed program was:" >&5
19849 sed 's
/^
/|
/' conftest.$ac_ext >&5
19851 cat >conftest.$ac_ext <<_ACEOF
19854 cat confdefs.h >>conftest.$ac_ext
19855 cat >>conftest.$ac_ext <<_ACEOF
19856 /* end confdefs.h. */
19857 $ac_includes_default
19861 static struct stat ac_aggr;
19862 if (sizeof ac_aggr.st_flags)
19868 rm -f conftest.$ac_objext
19869 if { (ac_try="$ac_compile"
19870 case "(($ac_try" in
19871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19872 *) ac_try_echo=$ac_try;;
19874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19875 (eval "$ac_compile") 2>conftest.er1
19877 grep -v '^
*+' conftest.er1 >conftest.err
19879 cat conftest.err >&5
19880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19881 (exit $ac_status); } && {
19882 test -z "$ac_c_werror_flag" ||
19883 test ! -s conftest.err
19884 } && test -s conftest.$ac_objext; then
19885 ac_cv_member_struct_stat_st_flags=yes
19887 echo "$as_me: failed program was:" >&5
19888 sed 's
/^
/|
/' conftest.$ac_ext >&5
19890 ac_cv_member_struct_stat_st_flags=no
19893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19898 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
19899 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
19900 if test $ac_cv_member_struct_stat_st_flags = yes; then
19902 cat >>confdefs.h <<_ACEOF
19903 #define HAVE_STRUCT_STAT_ST_FLAGS 1
19909 { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
19910 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
19911 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
19912 echo $ECHO_N "(cached) $ECHO_C" >&6
19914 cat >conftest.$ac_ext <<_ACEOF
19917 cat confdefs.h >>conftest.$ac_ext
19918 cat >>conftest.$ac_ext <<_ACEOF
19919 /* end confdefs.h. */
19920 $ac_includes_default
19924 static struct stat ac_aggr;
19925 if (ac_aggr.st_gen)
19931 rm -f conftest.$ac_objext
19932 if { (ac_try="$ac_compile"
19933 case "(($ac_try" in
19934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19935 *) ac_try_echo=$ac_try;;
19937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19938 (eval "$ac_compile") 2>conftest.er1
19940 grep -v '^
*+' conftest.er1 >conftest.err
19942 cat conftest.err >&5
19943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19944 (exit $ac_status); } && {
19945 test -z "$ac_c_werror_flag" ||
19946 test ! -s conftest.err
19947 } && test -s conftest.$ac_objext; then
19948 ac_cv_member_struct_stat_st_gen=yes
19950 echo "$as_me: failed program was:" >&5
19951 sed 's
/^
/|
/' conftest.$ac_ext >&5
19953 cat >conftest.$ac_ext <<_ACEOF
19956 cat confdefs.h >>conftest.$ac_ext
19957 cat >>conftest.$ac_ext <<_ACEOF
19958 /* end confdefs.h. */
19959 $ac_includes_default
19963 static struct stat ac_aggr;
19964 if (sizeof ac_aggr.st_gen)
19970 rm -f conftest.$ac_objext
19971 if { (ac_try="$ac_compile"
19972 case "(($ac_try" in
19973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19974 *) ac_try_echo=$ac_try;;
19976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19977 (eval "$ac_compile") 2>conftest.er1
19979 grep -v '^
*+' conftest.er1 >conftest.err
19981 cat conftest.err >&5
19982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19983 (exit $ac_status); } && {
19984 test -z "$ac_c_werror_flag" ||
19985 test ! -s conftest.err
19986 } && test -s conftest.$ac_objext; then
19987 ac_cv_member_struct_stat_st_gen=yes
19989 echo "$as_me: failed program was:" >&5
19990 sed 's
/^
/|
/' conftest.$ac_ext >&5
19992 ac_cv_member_struct_stat_st_gen=no
19995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20000 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
20001 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
20002 if test $ac_cv_member_struct_stat_st_gen = yes; then
20004 cat >>confdefs.h <<_ACEOF
20005 #define HAVE_STRUCT_STAT_ST_GEN 1
20011 { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
20012 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
20013 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
20014 echo $ECHO_N "(cached) $ECHO_C" >&6
20016 cat >conftest.$ac_ext <<_ACEOF
20019 cat confdefs.h >>conftest.$ac_ext
20020 cat >>conftest.$ac_ext <<_ACEOF
20021 /* end confdefs.h. */
20022 $ac_includes_default
20026 static struct stat ac_aggr;
20027 if (ac_aggr.st_birthtime)
20033 rm -f conftest.$ac_objext
20034 if { (ac_try="$ac_compile"
20035 case "(($ac_try" in
20036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20037 *) ac_try_echo=$ac_try;;
20039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20040 (eval "$ac_compile") 2>conftest.er1
20042 grep -v '^
*+' conftest.er1 >conftest.err
20044 cat conftest.err >&5
20045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20046 (exit $ac_status); } && {
20047 test -z "$ac_c_werror_flag" ||
20048 test ! -s conftest.err
20049 } && test -s conftest.$ac_objext; then
20050 ac_cv_member_struct_stat_st_birthtime=yes
20052 echo "$as_me: failed program was:" >&5
20053 sed 's
/^
/|
/' conftest.$ac_ext >&5
20055 cat >conftest.$ac_ext <<_ACEOF
20058 cat confdefs.h >>conftest.$ac_ext
20059 cat >>conftest.$ac_ext <<_ACEOF
20060 /* end confdefs.h. */
20061 $ac_includes_default
20065 static struct stat ac_aggr;
20066 if (sizeof ac_aggr.st_birthtime)
20072 rm -f conftest.$ac_objext
20073 if { (ac_try="$ac_compile"
20074 case "(($ac_try" in
20075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20076 *) ac_try_echo=$ac_try;;
20078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20079 (eval "$ac_compile") 2>conftest.er1
20081 grep -v '^
*+' conftest.er1 >conftest.err
20083 cat conftest.err >&5
20084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20085 (exit $ac_status); } && {
20086 test -z "$ac_c_werror_flag" ||
20087 test ! -s conftest.err
20088 } && test -s conftest.$ac_objext; then
20089 ac_cv_member_struct_stat_st_birthtime=yes
20091 echo "$as_me: failed program was:" >&5
20092 sed 's
/^
/|
/' conftest.$ac_ext >&5
20094 ac_cv_member_struct_stat_st_birthtime=no
20097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20102 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
20103 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
20104 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
20106 cat >>confdefs.h <<_ACEOF
20107 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
20113 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20114 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
20115 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20116 echo $ECHO_N "(cached) $ECHO_C" >&6
20118 cat >conftest.$ac_ext <<_ACEOF
20121 cat confdefs.h >>conftest.$ac_ext
20122 cat >>conftest.$ac_ext <<_ACEOF
20123 /* end confdefs.h. */
20124 $ac_includes_default
20128 static struct stat ac_aggr;
20129 if (ac_aggr.st_blocks)
20135 rm -f conftest.$ac_objext
20136 if { (ac_try="$ac_compile"
20137 case "(($ac_try" in
20138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20139 *) ac_try_echo=$ac_try;;
20141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20142 (eval "$ac_compile") 2>conftest.er1
20144 grep -v '^
*+' conftest.er1 >conftest.err
20146 cat conftest.err >&5
20147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148 (exit $ac_status); } && {
20149 test -z "$ac_c_werror_flag" ||
20150 test ! -s conftest.err
20151 } && test -s conftest.$ac_objext; then
20152 ac_cv_member_struct_stat_st_blocks=yes
20154 echo "$as_me: failed program was:" >&5
20155 sed 's
/^
/|
/' conftest.$ac_ext >&5
20157 cat >conftest.$ac_ext <<_ACEOF
20160 cat confdefs.h >>conftest.$ac_ext
20161 cat >>conftest.$ac_ext <<_ACEOF
20162 /* end confdefs.h. */
20163 $ac_includes_default
20167 static struct stat ac_aggr;
20168 if (sizeof ac_aggr.st_blocks)
20174 rm -f conftest.$ac_objext
20175 if { (ac_try="$ac_compile"
20176 case "(($ac_try" in
20177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20178 *) ac_try_echo=$ac_try;;
20180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20181 (eval "$ac_compile") 2>conftest.er1
20183 grep -v '^
*+' conftest.er1 >conftest.err
20185 cat conftest.err >&5
20186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20187 (exit $ac_status); } && {
20188 test -z "$ac_c_werror_flag" ||
20189 test ! -s conftest.err
20190 } && test -s conftest.$ac_objext; then
20191 ac_cv_member_struct_stat_st_blocks=yes
20193 echo "$as_me: failed program was:" >&5
20194 sed 's
/^
/|
/' conftest.$ac_ext >&5
20196 ac_cv_member_struct_stat_st_blocks=no
20199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20204 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20205 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
20206 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20208 cat >>confdefs.h <<_ACEOF
20209 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20213 cat >>confdefs.h <<\_ACEOF
20214 #define HAVE_ST_BLOCKS 1
20218 case " $LIBOBJS " in
20219 *" fileblocks.$ac_objext "* ) ;;
20220 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
20228 { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
20229 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
20230 if test "${ac_cv_header_time_altzone+set}" = set; then
20231 echo $ECHO_N "(cached) $ECHO_C" >&6
20233 cat >conftest.$ac_ext <<_ACEOF
20236 cat confdefs.h >>conftest.$ac_ext
20237 cat >>conftest.$ac_ext <<_ACEOF
20238 /* end confdefs.h. */
20248 rm -f conftest.$ac_objext
20249 if { (ac_try="$ac_compile"
20250 case "(($ac_try" in
20251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20252 *) ac_try_echo=$ac_try;;
20254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20255 (eval "$ac_compile") 2>conftest.er1
20257 grep -v '^
*+' conftest.er1 >conftest.err
20259 cat conftest.err >&5
20260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20261 (exit $ac_status); } && {
20262 test -z "$ac_c_werror_flag" ||
20263 test ! -s conftest.err
20264 } && test -s conftest.$ac_objext; then
20265 ac_cv_header_time_altzone=yes
20267 echo "$as_me: failed program was:" >&5
20268 sed 's
/^
/|
/' conftest.$ac_ext >&5
20270 ac_cv_header_time_altzone=no
20273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20276 { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
20277 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
20278 if test $ac_cv_header_time_altzone = yes; then
20280 cat >>confdefs.h <<\_ACEOF
20281 #define HAVE_ALTZONE 1
20287 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
20288 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
20289 cat >conftest.$ac_ext <<_ACEOF
20292 cat confdefs.h >>conftest.$ac_ext
20293 cat >>conftest.$ac_ext <<_ACEOF
20294 /* end confdefs.h. */
20296 #include <sys/types.h>
20297 #include <sys/select.h>
20298 #include <sys/time.h>
20308 rm -f conftest.$ac_objext
20309 if { (ac_try="$ac_compile"
20310 case "(($ac_try" in
20311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20312 *) ac_try_echo=$ac_try;;
20314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20315 (eval "$ac_compile") 2>conftest.er1
20317 grep -v '^
*+' conftest.er1 >conftest.err
20319 cat conftest.err >&5
20320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20321 (exit $ac_status); } && {
20322 test -z "$ac_c_werror_flag" ||
20323 test ! -s conftest.err
20324 } && test -s conftest.$ac_objext; then
20327 cat >>confdefs.h <<\_ACEOF
20328 #define SYS_SELECT_WITH_SYS_TIME 1
20334 echo "$as_me: failed program was:" >&5
20335 sed 's
/^
/|
/' conftest.$ac_ext >&5
20340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20341 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
20342 echo "${ECHO_T}$was_it_defined" >&6; }
20344 { echo "$as_me:$LINENO: checking for addrinfo" >&5
20345 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
20346 if test "${ac_cv_struct_addrinfo+set}" = set; then
20347 echo $ECHO_N "(cached) $ECHO_C" >&6
20349 cat >conftest.$ac_ext <<_ACEOF
20352 cat confdefs.h >>conftest.$ac_ext
20353 cat >>conftest.$ac_ext <<_ACEOF
20354 /* end confdefs.h. */
20356 # include <netdb.h>
20365 rm -f conftest.$ac_objext
20366 if { (ac_try="$ac_compile"
20367 case "(($ac_try" in
20368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20369 *) ac_try_echo=$ac_try;;
20371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20372 (eval "$ac_compile") 2>conftest.er1
20374 grep -v '^
*+' conftest.er1 >conftest.err
20376 cat conftest.err >&5
20377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378 (exit $ac_status); } && {
20379 test -z "$ac_c_werror_flag" ||
20380 test ! -s conftest.err
20381 } && test -s conftest.$ac_objext; then
20382 ac_cv_struct_addrinfo=yes
20384 echo "$as_me: failed program was:" >&5
20385 sed 's
/^
/|
/' conftest.$ac_ext >&5
20387 ac_cv_struct_addrinfo=no
20390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20393 { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
20394 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
20395 if test $ac_cv_struct_addrinfo = yes; then
20397 cat >>confdefs.h <<\_ACEOF
20398 #define HAVE_ADDRINFO 1
20403 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
20404 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
20405 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
20406 echo $ECHO_N "(cached) $ECHO_C" >&6
20408 cat >conftest.$ac_ext <<_ACEOF
20411 cat confdefs.h >>conftest.$ac_ext
20412 cat >>conftest.$ac_ext <<_ACEOF
20413 /* end confdefs.h. */
20415 # include <sys/types.h>
20416 # include <sys/socket.h>
20420 struct sockaddr_storage s
20425 rm -f conftest.$ac_objext
20426 if { (ac_try="$ac_compile"
20427 case "(($ac_try" in
20428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20429 *) ac_try_echo=$ac_try;;
20431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20432 (eval "$ac_compile") 2>conftest.er1
20434 grep -v '^
*+' conftest.er1 >conftest.err
20436 cat conftest.err >&5
20437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20438 (exit $ac_status); } && {
20439 test -z "$ac_c_werror_flag" ||
20440 test ! -s conftest.err
20441 } && test -s conftest.$ac_objext; then
20442 ac_cv_struct_sockaddr_storage=yes
20444 echo "$as_me: failed program was:" >&5
20445 sed 's
/^
/|
/' conftest.$ac_ext >&5
20447 ac_cv_struct_sockaddr_storage=no
20450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20453 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
20454 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
20455 if test $ac_cv_struct_sockaddr_storage = yes; then
20457 cat >>confdefs.h <<\_ACEOF
20458 #define HAVE_SOCKADDR_STORAGE 1
20463 # checks for compiler characteristics
20466 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
20467 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
20468 if test "${ac_cv_c_char_unsigned+set}" = set; then
20469 echo $ECHO_N "(cached) $ECHO_C" >&6
20471 cat >conftest.$ac_ext <<_ACEOF
20474 cat confdefs.h >>conftest.$ac_ext
20475 cat >>conftest.$ac_ext <<_ACEOF
20476 /* end confdefs.h. */
20477 $ac_includes_default
20481 static int test_array [1 - 2 * !(((char) -1) < 0)];
20488 rm -f conftest.$ac_objext
20489 if { (ac_try="$ac_compile"
20490 case "(($ac_try" in
20491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20492 *) ac_try_echo=$ac_try;;
20494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20495 (eval "$ac_compile") 2>conftest.er1
20497 grep -v '^
*+' conftest.er1 >conftest.err
20499 cat conftest.err >&5
20500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20501 (exit $ac_status); } && {
20502 test -z "$ac_c_werror_flag" ||
20503 test ! -s conftest.err
20504 } && test -s conftest.$ac_objext; then
20505 ac_cv_c_char_unsigned=no
20507 echo "$as_me: failed program was:" >&5
20508 sed 's
/^
/|
/' conftest.$ac_ext >&5
20510 ac_cv_c_char_unsigned=yes
20513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20515 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
20516 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
20517 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
20518 cat >>confdefs.h <<\_ACEOF
20519 #define __CHAR_UNSIGNED__ 1
20524 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20525 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20526 if test "${ac_cv_c_const+set}" = set; then
20527 echo $ECHO_N "(cached) $ECHO_C" >&6
20529 cat >conftest.$ac_ext <<_ACEOF
20532 cat confdefs.h >>conftest.$ac_ext
20533 cat >>conftest.$ac_ext <<_ACEOF
20534 /* end confdefs.h. */
20539 /* FIXME: Include the comments suggested by Paul. */
20540 #ifndef __cplusplus
20541 /* Ultrix mips cc rejects this. */
20542 typedef int charset[2];
20544 /* SunOS 4.1.1 cc rejects this. */
20545 char const *const *pcpcc;
20547 /* NEC SVR4.0.2 mips cc rejects this. */
20548 struct point {int x, y;};
20549 static struct point const zero = {0,0};
20550 /* AIX XL C 1.02.0.0 rejects this.
20551 It does not let you subtract one const X* pointer from another in
20552 an arm of an if-expression whose if-part is not a constant
20554 const char *g = "string";
20555 pcpcc = &g + (g ? g-g : 0);
20556 /* HPUX 7.0 cc rejects these. */
20558 ppc = (char**) pcpcc;
20559 pcpcc = (char const *const *) ppc;
20560 { /* SCO 3.2v4 cc rejects this. */
20562 char const *s = 0 ? (char *) 0 : (char const *) 0;
20567 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20568 int x[] = {25, 17};
20569 const int *foo = &x[0];
20572 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20573 typedef const int *iptr;
20577 { /* AIX XL C 1.02.0.0 rejects this saying
20578 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20579 struct s { int j; const int *ap[3]; };
20580 struct s *b; b->j = 5;
20582 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20583 const int foo = 10;
20584 if (!foo) return 0;
20586 return !cs[0] && !zero.x;
20593 rm -f conftest.$ac_objext
20594 if { (ac_try="$ac_compile"
20595 case "(($ac_try" in
20596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20597 *) ac_try_echo=$ac_try;;
20599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20600 (eval "$ac_compile") 2>conftest.er1
20602 grep -v '^
*+' conftest.er1 >conftest.err
20604 cat conftest.err >&5
20605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20606 (exit $ac_status); } && {
20607 test -z "$ac_c_werror_flag" ||
20608 test ! -s conftest.err
20609 } && test -s conftest.$ac_objext; then
20612 echo "$as_me: failed program was:" >&5
20613 sed 's
/^
/|
/' conftest.$ac_ext >&5
20618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20620 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20621 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20622 if test $ac_cv_c_const = no; then
20624 cat >>confdefs.h <<\_ACEOF
20632 { echo "$as_me:$LINENO: checking for working volatile" >&5
20633 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
20634 cat >conftest.$ac_ext <<_ACEOF
20637 cat confdefs.h >>conftest.$ac_ext
20638 cat >>conftest.$ac_ext <<_ACEOF
20639 /* end confdefs.h. */
20644 volatile int x; x = 0;
20649 rm -f conftest.$ac_objext
20650 if { (ac_try="$ac_compile"
20651 case "(($ac_try" in
20652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20653 *) ac_try_echo=$ac_try;;
20655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20656 (eval "$ac_compile") 2>conftest.er1
20658 grep -v '^
*+' conftest.er1 >conftest.err
20660 cat conftest.err >&5
20661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20662 (exit $ac_status); } && {
20663 test -z "$ac_c_werror_flag" ||
20664 test ! -s conftest.err
20665 } && test -s conftest.$ac_objext; then
20668 echo "$as_me: failed program was:" >&5
20669 sed 's
/^
/|
/' conftest.$ac_ext >&5
20672 cat >>confdefs.h <<\_ACEOF
20679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20680 { echo "$as_me:$LINENO: result: $works" >&5
20681 echo "${ECHO_T}$works" >&6; }
20684 { echo "$as_me:$LINENO: checking for working signed char" >&5
20685 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
20686 cat >conftest.$ac_ext <<_ACEOF
20689 cat confdefs.h >>conftest.$ac_ext
20690 cat >>conftest.$ac_ext <<_ACEOF
20691 /* end confdefs.h. */
20701 rm -f conftest.$ac_objext
20702 if { (ac_try="$ac_compile"
20703 case "(($ac_try" in
20704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20705 *) ac_try_echo=$ac_try;;
20707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20708 (eval "$ac_compile") 2>conftest.er1
20710 grep -v '^
*+' conftest.er1 >conftest.err
20712 cat conftest.err >&5
20713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714 (exit $ac_status); } && {
20715 test -z "$ac_c_werror_flag" ||
20716 test ! -s conftest.err
20717 } && test -s conftest.$ac_objext; then
20720 echo "$as_me: failed program was:" >&5
20721 sed 's
/^
/|
/' conftest.$ac_ext >&5
20724 cat >>confdefs.h <<\_ACEOF
20731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20732 { echo "$as_me:$LINENO: result: $works" >&5
20733 echo "${ECHO_T}$works" >&6; }
20736 { echo "$as_me:$LINENO: checking for prototypes" >&5
20737 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
20738 cat >conftest.$ac_ext <<_ACEOF
20741 cat confdefs.h >>conftest.$ac_ext
20742 cat >>conftest.$ac_ext <<_ACEOF
20743 /* end confdefs.h. */
20744 int foo(int x) { return 0; }
20753 rm -f conftest.$ac_objext
20754 if { (ac_try="$ac_compile"
20755 case "(($ac_try" in
20756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20757 *) ac_try_echo=$ac_try;;
20759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20760 (eval "$ac_compile") 2>conftest.er1
20762 grep -v '^
*+' conftest.er1 >conftest.err
20764 cat conftest.err >&5
20765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20766 (exit $ac_status); } && {
20767 test -z "$ac_c_werror_flag" ||
20768 test ! -s conftest.err
20769 } && test -s conftest.$ac_objext; then
20772 cat >>confdefs.h <<\_ACEOF
20773 #define HAVE_PROTOTYPES 1
20776 have_prototypes=yes
20779 echo "$as_me: failed program was:" >&5
20780 sed 's
/^
/|
/' conftest.$ac_ext >&5
20785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20786 { echo "$as_me:$LINENO: result: $have_prototypes" >&5
20787 echo "${ECHO_T}$have_prototypes" >&6; }
20790 { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
20791 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
20792 cat >conftest.$ac_ext <<_ACEOF
20795 cat confdefs.h >>conftest.$ac_ext
20796 cat >>conftest.$ac_ext <<_ACEOF
20797 /* end confdefs.h. */
20799 #include <stdarg.h>
20800 int foo(int x, ...) {
20804 va_arg(va, char *);
20805 va_arg(va, double);
20812 return foo(10, "", 3.14);
20817 rm -f conftest.$ac_objext
20818 if { (ac_try="$ac_compile"
20819 case "(($ac_try" in
20820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20821 *) ac_try_echo=$ac_try;;
20823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20824 (eval "$ac_compile") 2>conftest.er1
20826 grep -v '^
*+' conftest.er1 >conftest.err
20828 cat conftest.err >&5
20829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20830 (exit $ac_status); } && {
20831 test -z "$ac_c_werror_flag" ||
20832 test ! -s conftest.err
20833 } && test -s conftest.$ac_objext; then
20836 cat >>confdefs.h <<\_ACEOF
20837 #define HAVE_STDARG_PROTOTYPES 1
20843 echo "$as_me: failed program was:" >&5
20844 sed 's
/^
/|
/' conftest.$ac_ext >&5
20849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20850 { echo "$as_me:$LINENO: result: $works" >&5
20851 echo "${ECHO_T}$works" >&6; }
20853 # check for socketpair
20854 { echo "$as_me:$LINENO: checking for socketpair" >&5
20855 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
20856 cat >conftest.$ac_ext <<_ACEOF
20859 cat confdefs.h >>conftest.$ac_ext
20860 cat >>conftest.$ac_ext <<_ACEOF
20861 /* end confdefs.h. */
20863 #include <sys/types.h>
20864 #include <sys/socket.h>
20874 rm -f conftest.$ac_objext
20875 if { (ac_try="$ac_compile"
20876 case "(($ac_try" in
20877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20878 *) ac_try_echo=$ac_try;;
20880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20881 (eval "$ac_compile") 2>conftest.er1
20883 grep -v '^
*+' conftest.er1 >conftest.err
20885 cat conftest.err >&5
20886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20887 (exit $ac_status); } && {
20888 test -z "$ac_c_werror_flag" ||
20889 test ! -s conftest.err
20890 } && test -s conftest.$ac_objext; then
20892 cat >>confdefs.h <<\_ACEOF
20893 #define HAVE_SOCKETPAIR 1
20896 { echo "$as_me:$LINENO: result: yes" >&5
20897 echo "${ECHO_T}yes" >&6; }
20899 echo "$as_me: failed program was:" >&5
20900 sed 's
/^
/|
/' conftest.$ac_ext >&5
20902 { echo "$as_me:$LINENO: result: no" >&5
20903 echo "${ECHO_T}no" >&6; }
20907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20909 # check if sockaddr has sa_len member
20910 { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
20911 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; }
20912 cat >conftest.$ac_ext <<_ACEOF
20915 cat confdefs.h >>conftest.$ac_ext
20916 cat >>conftest.$ac_ext <<_ACEOF
20917 /* end confdefs.h. */
20918 #include <sys/types.h>
20919 #include <sys/socket.h>
20929 rm -f conftest.$ac_objext
20930 if { (ac_try="$ac_compile"
20931 case "(($ac_try" in
20932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20933 *) ac_try_echo=$ac_try;;
20935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20936 (eval "$ac_compile") 2>conftest.er1
20938 grep -v '^
*+' conftest.er1 >conftest.err
20940 cat conftest.err >&5
20941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20942 (exit $ac_status); } && {
20943 test -z "$ac_c_werror_flag" ||
20944 test ! -s conftest.err
20945 } && test -s conftest.$ac_objext; then
20946 { echo "$as_me:$LINENO: result: yes" >&5
20947 echo "${ECHO_T}yes" >&6; }
20949 cat >>confdefs.h <<\_ACEOF
20950 #define HAVE_SOCKADDR_SA_LEN 1
20954 echo "$as_me: failed program was:" >&5
20955 sed 's
/^
/|
/' conftest.$ac_ext >&5
20957 { echo "$as_me:$LINENO: result: no" >&5
20958 echo "${ECHO_T}no" >&6; }
20961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20963 va_list_is_array=no
20964 { echo "$as_me:$LINENO: checking whether va_list is an array" >&5
20965 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
20966 cat >conftest.$ac_ext <<_ACEOF
20969 cat confdefs.h >>conftest.$ac_ext
20970 cat >>conftest.$ac_ext <<_ACEOF
20971 /* end confdefs.h. */
20973 #ifdef HAVE_STDARG_PROTOTYPES
20974 #include <stdarg.h>
20976 #include <varargs.h>
20982 va_list list1, list2; list1 = list2;
20987 rm -f conftest.$ac_objext
20988 if { (ac_try="$ac_compile"
20989 case "(($ac_try" in
20990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20991 *) ac_try_echo=$ac_try;;
20993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20994 (eval "$ac_compile") 2>conftest.er1
20996 grep -v '^
*+' conftest.er1 >conftest.err
20998 cat conftest.err >&5
20999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21000 (exit $ac_status); } && {
21001 test -z "$ac_c_werror_flag" ||
21002 test ! -s conftest.err
21003 } && test -s conftest.$ac_objext; then
21006 echo "$as_me: failed program was:" >&5
21007 sed 's
/^
/|
/' conftest.$ac_ext >&5
21011 cat >>confdefs.h <<\_ACEOF
21012 #define VA_LIST_IS_ARRAY 1
21015 va_list_is_array=yes
21019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21020 { echo "$as_me:$LINENO: result: $va_list_is_array" >&5
21021 echo "${ECHO_T}$va_list_is_array" >&6; }
21023 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
21027 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
21028 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
21029 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
21030 echo $ECHO_N "(cached) $ECHO_C" >&6
21032 cat >conftest.$ac_ext <<_ACEOF
21035 cat confdefs.h >>conftest.$ac_ext
21036 cat >>conftest.$ac_ext <<_ACEOF
21037 /* end confdefs.h. */
21038 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
21039 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21040 #define gethostbyname_r innocuous_gethostbyname_r
21042 /* System header to define __stub macros and hopefully few prototypes,
21043 which can conflict with char gethostbyname_r (); below.
21044 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21045 <limits.h> exists even on freestanding compilers. */
21048 # include <limits.h>
21050 # include <assert.h>
21053 #undef gethostbyname_r
21055 /* Override any GCC internal prototype to avoid an error.
21056 Use char because int might match the return type of a GCC
21057 builtin and then its argument prototype would still apply. */
21061 char gethostbyname_r ();
21062 /* The GNU C library defines this for functions which it implements
21063 to always fail with ENOSYS. Some functions are actually named
21064 something starting with __ and the normal name is an alias. */
21065 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
21072 return gethostbyname_r ();
21077 rm -f conftest.$ac_objext conftest$ac_exeext
21078 if { (ac_try="$ac_link"
21079 case "(($ac_try" in
21080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21081 *) ac_try_echo=$ac_try;;
21083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21084 (eval "$ac_link") 2>conftest.er1
21086 grep -v '^
*+' conftest.er1 >conftest.err
21088 cat conftest.err >&5
21089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21090 (exit $ac_status); } && {
21091 test -z "$ac_c_werror_flag" ||
21092 test ! -s conftest.err
21093 } && test -s conftest$ac_exeext &&
21094 $as_test_x conftest$ac_exeext; then
21095 ac_cv_func_gethostbyname_r=yes
21097 echo "$as_me: failed program was:" >&5
21098 sed 's
/^
/|
/' conftest.$ac_ext >&5
21100 ac_cv_func_gethostbyname_r=no
21103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21104 conftest$ac_exeext conftest.$ac_ext
21106 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
21107 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
21108 if test $ac_cv_func_gethostbyname_r = yes; then
21110 cat >>confdefs.h <<\_ACEOF
21111 #define HAVE_GETHOSTBYNAME_R 1
21114 { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
21115 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
21117 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
21118 cat >conftest.$ac_ext <<_ACEOF
21121 cat confdefs.h >>conftest.$ac_ext
21122 cat >>conftest.$ac_ext <<_ACEOF
21123 /* end confdefs.h. */
21125 # include <netdb.h>
21132 struct hostent *he, *res;
21137 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
21143 rm -f conftest.$ac_objext
21144 if { (ac_try="$ac_compile"
21145 case "(($ac_try" in
21146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21147 *) ac_try_echo=$ac_try;;
21149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21150 (eval "$ac_compile") 2>conftest.er1
21152 grep -v '^
*+' conftest.er1 >conftest.err
21154 cat conftest.err >&5
21155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21156 (exit $ac_status); } && {
21157 test -z "$ac_c_werror_flag" ||
21158 test ! -s conftest.err
21159 } && test -s conftest.$ac_objext; then
21161 cat >>confdefs.h <<\_ACEOF
21162 #define HAVE_GETHOSTBYNAME_R 1
21166 cat >>confdefs.h <<\_ACEOF
21167 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
21170 { echo "$as_me:$LINENO: result: yes" >&5
21171 echo "${ECHO_T}yes" >&6; }
21174 echo "$as_me: failed program was:" >&5
21175 sed 's
/^
/|
/' conftest.$ac_ext >&5
21178 { echo "$as_me:$LINENO: result: no" >&5
21179 echo "${ECHO_T}no" >&6; }
21180 { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
21181 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
21182 cat >conftest.$ac_ext <<_ACEOF
21185 cat confdefs.h >>conftest.$ac_ext
21186 cat >>conftest.$ac_ext <<_ACEOF
21187 /* end confdefs.h. */
21189 # include <netdb.h>
21196 struct hostent *he;
21201 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
21207 rm -f conftest.$ac_objext
21208 if { (ac_try="$ac_compile"
21209 case "(($ac_try" in
21210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21211 *) ac_try_echo=$ac_try;;
21213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21214 (eval "$ac_compile") 2>conftest.er1
21216 grep -v '^
*+' conftest.er1 >conftest.err
21218 cat conftest.err >&5
21219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21220 (exit $ac_status); } && {
21221 test -z "$ac_c_werror_flag" ||
21222 test ! -s conftest.err
21223 } && test -s conftest.$ac_objext; then
21225 cat >>confdefs.h <<\_ACEOF
21226 #define HAVE_GETHOSTBYNAME_R 1
21230 cat >>confdefs.h <<\_ACEOF
21231 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
21234 { echo "$as_me:$LINENO: result: yes" >&5
21235 echo "${ECHO_T}yes" >&6; }
21238 echo "$as_me: failed program was:" >&5
21239 sed 's
/^
/|
/' conftest.$ac_ext >&5
21242 { echo "$as_me:$LINENO: result: no" >&5
21243 echo "${ECHO_T}no" >&6; }
21244 { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
21245 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
21246 cat >conftest.$ac_ext <<_ACEOF
21249 cat confdefs.h >>conftest.$ac_ext
21250 cat >>conftest.$ac_ext <<_ACEOF
21251 /* end confdefs.h. */
21253 # include <netdb.h>
21260 struct hostent *he;
21261 struct hostent_data data;
21263 (void) gethostbyname_r(name, he, &data);
21269 rm -f conftest.$ac_objext
21270 if { (ac_try="$ac_compile"
21271 case "(($ac_try" in
21272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21273 *) ac_try_echo=$ac_try;;
21275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21276 (eval "$ac_compile") 2>conftest.er1
21278 grep -v '^
*+' conftest.er1 >conftest.err
21280 cat conftest.err >&5
21281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21282 (exit $ac_status); } && {
21283 test -z "$ac_c_werror_flag" ||
21284 test ! -s conftest.err
21285 } && test -s conftest.$ac_objext; then
21287 cat >>confdefs.h <<\_ACEOF
21288 #define HAVE_GETHOSTBYNAME_R 1
21292 cat >>confdefs.h <<\_ACEOF
21293 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
21296 { echo "$as_me:$LINENO: result: yes" >&5
21297 echo "${ECHO_T}yes" >&6; }
21300 echo "$as_me: failed program was:" >&5
21301 sed 's
/^
/|
/' conftest.$ac_ext >&5
21304 { echo "$as_me:$LINENO: result: no" >&5
21305 echo "${ECHO_T}no" >&6; }
21309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21323 for ac_func in gethostbyname
21325 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21326 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21327 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21328 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21329 echo $ECHO_N "(cached) $ECHO_C" >&6
21331 cat >conftest.$ac_ext <<_ACEOF
21334 cat confdefs.h >>conftest.$ac_ext
21335 cat >>conftest.$ac_ext <<_ACEOF
21336 /* end confdefs.h. */
21337 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21338 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21339 #define $ac_func innocuous_$ac_func
21341 /* System header to define __stub macros and hopefully few prototypes,
21342 which can conflict with char $ac_func (); below.
21343 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21344 <limits.h> exists even on freestanding compilers. */
21347 # include <limits.h>
21349 # include <assert.h>
21354 /* Override any GCC internal prototype to avoid an error.
21355 Use char because int might match the return type of a GCC
21356 builtin and then its argument prototype would still apply. */
21361 /* The GNU C library defines this for functions which it implements
21362 to always fail with ENOSYS. Some functions are actually named
21363 something starting with __ and the normal name is an alias. */
21364 #if defined __stub_$ac_func || defined __stub___$ac_func
21371 return $ac_func ();
21376 rm -f conftest.$ac_objext conftest$ac_exeext
21377 if { (ac_try="$ac_link"
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_link") 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_exeext &&
21393 $as_test_x conftest$ac_exeext; then
21394 eval "$as_ac_var=yes"
21396 echo "$as_me: failed program was:" >&5
21397 sed 's
/^
/|
/' conftest.$ac_ext >&5
21399 eval "$as_ac_var=no"
21402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21403 conftest$ac_exeext conftest.$ac_ext
21405 ac_res=`eval echo '${'$as_ac_var'}'`
21406 { echo "$as_me:$LINENO: result: $ac_res" >&5
21407 echo "${ECHO_T}$ac_res" >&6; }
21408 if test `eval echo '${'$as_ac_var'}'` = yes; then
21409 cat >>confdefs.h <<_ACEOF
21410 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21425 # checks for system services
21428 # Linux requires this for correct f.p. operations
21429 { echo "$as_me:$LINENO: checking for __fpu_control" >&5
21430 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
21431 if test "${ac_cv_func___fpu_control+set}" = set; then
21432 echo $ECHO_N "(cached) $ECHO_C" >&6
21434 cat >conftest.$ac_ext <<_ACEOF
21437 cat confdefs.h >>conftest.$ac_ext
21438 cat >>conftest.$ac_ext <<_ACEOF
21439 /* end confdefs.h. */
21440 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
21441 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21442 #define __fpu_control innocuous___fpu_control
21444 /* System header to define __stub macros and hopefully few prototypes,
21445 which can conflict with char __fpu_control (); below.
21446 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21447 <limits.h> exists even on freestanding compilers. */
21450 # include <limits.h>
21452 # include <assert.h>
21455 #undef __fpu_control
21457 /* Override any GCC internal prototype to avoid an error.
21458 Use char because int might match the return type of a GCC
21459 builtin and then its argument prototype would still apply. */
21463 char __fpu_control ();
21464 /* The GNU C library defines this for functions which it implements
21465 to always fail with ENOSYS. Some functions are actually named
21466 something starting with __ and the normal name is an alias. */
21467 #if defined __stub___fpu_control || defined __stub_____fpu_control
21474 return __fpu_control ();
21479 rm -f conftest.$ac_objext conftest$ac_exeext
21480 if { (ac_try="$ac_link"
21481 case "(($ac_try" in
21482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21483 *) ac_try_echo=$ac_try;;
21485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21486 (eval "$ac_link") 2>conftest.er1
21488 grep -v '^
*+' conftest.er1 >conftest.err
21490 cat conftest.err >&5
21491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21492 (exit $ac_status); } && {
21493 test -z "$ac_c_werror_flag" ||
21494 test ! -s conftest.err
21495 } && test -s conftest$ac_exeext &&
21496 $as_test_x conftest$ac_exeext; then
21497 ac_cv_func___fpu_control=yes
21499 echo "$as_me: failed program was:" >&5
21500 sed 's
/^
/|
/' conftest.$ac_ext >&5
21502 ac_cv_func___fpu_control=no
21505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21506 conftest$ac_exeext conftest.$ac_ext
21508 { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
21509 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
21510 if test $ac_cv_func___fpu_control = yes; then
21514 { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
21515 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
21516 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
21517 echo $ECHO_N "(cached) $ECHO_C" >&6
21519 ac_check_lib_save_LIBS=$LIBS
21520 LIBS="-lieee $LIBS"
21521 cat >conftest.$ac_ext <<_ACEOF
21524 cat confdefs.h >>conftest.$ac_ext
21525 cat >>conftest.$ac_ext <<_ACEOF
21526 /* end confdefs.h. */
21528 /* Override any GCC internal prototype to avoid an error.
21529 Use char because int might match the return type of a GCC
21530 builtin and then its argument prototype would still apply. */
21534 char __fpu_control ();
21538 return __fpu_control ();
21543 rm -f conftest.$ac_objext conftest$ac_exeext
21544 if { (ac_try="$ac_link"
21545 case "(($ac_try" in
21546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21547 *) ac_try_echo=$ac_try;;
21549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21550 (eval "$ac_link") 2>conftest.er1
21552 grep -v '^
*+' conftest.er1 >conftest.err
21554 cat conftest.err >&5
21555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21556 (exit $ac_status); } && {
21557 test -z "$ac_c_werror_flag" ||
21558 test ! -s conftest.err
21559 } && test -s conftest$ac_exeext &&
21560 $as_test_x conftest$ac_exeext; then
21561 ac_cv_lib_ieee___fpu_control=yes
21563 echo "$as_me: failed program was:" >&5
21564 sed 's
/^
/|
/' conftest.$ac_ext >&5
21566 ac_cv_lib_ieee___fpu_control=no
21569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21570 conftest$ac_exeext conftest.$ac_ext
21571 LIBS=$ac_check_lib_save_LIBS
21573 { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
21574 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
21575 if test $ac_cv_lib_ieee___fpu_control = yes; then
21576 cat >>confdefs.h <<_ACEOF
21577 #define HAVE_LIBIEEE 1
21580 LIBS="-lieee $LIBS"
21588 # Check for --with-fpectl
21589 { echo "$as_me:$LINENO: checking for --with-fpectl" >&5
21590 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
21592 # Check whether --with-fpectl was given.
21593 if test "${with_fpectl+set}" = set; then
21594 withval=$with_fpectl;
21595 if test "$withval" != no
21598 cat >>confdefs.h <<\_ACEOF
21599 #define WANT_SIGFPE_HANDLER 1
21602 { echo "$as_me:$LINENO: result: yes" >&5
21603 echo "${ECHO_T}yes" >&6; }
21604 else { echo "$as_me:$LINENO: result: no" >&5
21605 echo "${ECHO_T}no" >&6; }
21608 { echo "$as_me:$LINENO: result: no" >&5
21609 echo "${ECHO_T}no" >&6; }
21613 # check for --with-libm=...
21615 case $ac_sys_system in
21619 { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
21620 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
21622 # Check whether --with-libm was given.
21623 if test "${with_libm+set}" = set; then
21624 withval=$with_libm;
21625 if test "$withval" = no
21627 { echo "$as_me:$LINENO: result: force LIBM empty" >&5
21628 echo "${ECHO_T}force LIBM empty" >&6; }
21629 elif test "$withval" != yes
21631 { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
21632 echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
21633 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
21634 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
21635 { (exit 1); exit 1; }; }
21638 { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
21639 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
21643 # check for --with-libc=...
21645 { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
21646 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
21648 # Check whether --with-libc was given.
21649 if test "${with_libc+set}" = set; then
21650 withval=$with_libc;
21651 if test "$withval" = no
21653 { echo "$as_me:$LINENO: result: force LIBC empty" >&5
21654 echo "${ECHO_T}force LIBC empty" >&6; }
21655 elif test "$withval" != yes
21657 { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
21658 echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
21659 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
21660 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
21661 { (exit 1); exit 1; }; }
21664 { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
21665 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
21669 # **************************************************
21670 # * Check for various properties of floating point *
21671 # **************************************************
21673 { echo "$as_me:$LINENO: checking whether C doubles are little-endian IEEE 754 binary64" >&5
21674 echo $ECHO_N "checking whether C doubles are little-endian IEEE 754 binary64... $ECHO_C" >&6; }
21675 if test "${ac_cv_little_endian_double+set}" = set; then
21676 echo $ECHO_N "(cached) $ECHO_C" >&6
21679 if test "$cross_compiling" = yes; then
21680 ac_cv_little_endian_double=no
21682 cat >conftest.$ac_ext <<_ACEOF
21685 cat confdefs.h >>conftest.$ac_ext
21686 cat >>conftest.$ac_ext <<_ACEOF
21687 /* end confdefs.h. */
21689 #include <string.h>
21691 double x = 9006104071832581.0;
21692 if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0)
21699 rm -f conftest$ac_exeext
21700 if { (ac_try="$ac_link"
21701 case "(($ac_try" in
21702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21703 *) ac_try_echo=$ac_try;;
21705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21706 (eval "$ac_link") 2>&5
21708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21709 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
21710 { (case "(($ac_try" in
21711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21712 *) ac_try_echo=$ac_try;;
21714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21715 (eval "$ac_try") 2>&5
21717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21718 (exit $ac_status); }; }; then
21719 ac_cv_little_endian_double=yes
21721 echo "$as_me: program exited with status $ac_status" >&5
21722 echo "$as_me: failed program was:" >&5
21723 sed 's
/^
/|
/' conftest.$ac_ext >&5
21725 ( exit $ac_status )
21726 ac_cv_little_endian_double=no
21728 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21734 { echo "$as_me:$LINENO: result: $ac_cv_little_endian_double" >&5
21735 echo "${ECHO_T}$ac_cv_little_endian_double" >&6; }
21736 if test "$ac_cv_little_endian_double" = yes
21739 cat >>confdefs.h <<\_ACEOF
21740 #define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1
21745 { echo "$as_me:$LINENO: checking whether C doubles are big-endian IEEE 754 binary64" >&5
21746 echo $ECHO_N "checking whether C doubles are big-endian IEEE 754 binary64... $ECHO_C" >&6; }
21747 if test "${ac_cv_big_endian_double+set}" = set; then
21748 echo $ECHO_N "(cached) $ECHO_C" >&6
21751 if test "$cross_compiling" = yes; then
21752 ac_cv_big_endian_double=no
21754 cat >conftest.$ac_ext <<_ACEOF
21757 cat confdefs.h >>conftest.$ac_ext
21758 cat >>conftest.$ac_ext <<_ACEOF
21759 /* end confdefs.h. */
21761 #include <string.h>
21763 double x = 9006104071832581.0;
21764 if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0)
21771 rm -f conftest$ac_exeext
21772 if { (ac_try="$ac_link"
21773 case "(($ac_try" in
21774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21775 *) ac_try_echo=$ac_try;;
21777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21778 (eval "$ac_link") 2>&5
21780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21781 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
21782 { (case "(($ac_try" in
21783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21784 *) ac_try_echo=$ac_try;;
21786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21787 (eval "$ac_try") 2>&5
21789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21790 (exit $ac_status); }; }; then
21791 ac_cv_big_endian_double=yes
21793 echo "$as_me: program exited with status $ac_status" >&5
21794 echo "$as_me: failed program was:" >&5
21795 sed 's
/^
/|
/' conftest.$ac_ext >&5
21797 ( exit $ac_status )
21798 ac_cv_big_endian_double=no
21800 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21806 { echo "$as_me:$LINENO: result: $ac_cv_big_endian_double" >&5
21807 echo "${ECHO_T}$ac_cv_big_endian_double" >&6; }
21808 if test "$ac_cv_big_endian_double" = yes
21811 cat >>confdefs.h <<\_ACEOF
21812 #define DOUBLE_IS_BIG_ENDIAN_IEEE754 1
21817 # Some ARM platforms use a mixed-endian representation for doubles.
21818 # While Python doesn't currently have full support
for these platforms
21819 # (see e.g., issue 1762561), we can at least make sure that float <-> string
21820 # conversions work.
21821 { echo "$as_me:$LINENO: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5
21822 echo $ECHO_N "checking whether C doubles are ARM mixed-endian IEEE 754 binary64... $ECHO_C" >&6; }
21823 if test "${ac_cv_mixed_endian_double+set}" = set; then
21824 echo $ECHO_N "(cached) $ECHO_C" >&6
21827 if test "$cross_compiling" = yes; then
21828 ac_cv_mixed_endian_double
=no
21830 cat >conftest.
$ac_ext <<_ACEOF
21833 cat confdefs.h
>>conftest.
$ac_ext
21834 cat >>conftest.
$ac_ext <<_ACEOF
21835 /* end confdefs.h. */
21837 #include <string.h>
21839 double x = 9006104071832581.0;
21840 if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0)
21847 rm -f conftest
$ac_exeext
21848 if { (ac_try
="$ac_link"
21849 case "(($ac_try" in
21850 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21851 *) ac_try_echo=$ac_try;;
21853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21854 (eval "$ac_link") 2>&5
21856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21857 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21858 { (case "(($ac_try" in
21859 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21860 *) ac_try_echo
=$ac_try;;
21862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21863 (eval "$ac_try") 2>&5
21865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21866 (exit $ac_status); }; }; then
21867 ac_cv_mixed_endian_double
=yes
21869 echo "$as_me: program exited with status $ac_status" >&5
21870 echo "$as_me: failed program was:" >&5
21871 sed 's/^/| /' conftest.
$ac_ext >&5
21873 ( exit $ac_status )
21874 ac_cv_mixed_endian_double
=no
21876 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21882 { echo "$as_me:$LINENO: result: $ac_cv_mixed_endian_double" >&5
21883 echo "${ECHO_T}$ac_cv_mixed_endian_double" >&6; }
21884 if test "$ac_cv_mixed_endian_double" = yes
21887 cat >>confdefs.h
<<\_ACEOF
21888 #define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1
21893 # The short float repr introduced in Python 3.1 requires the
21894 # correctly-rounded string <-> double conversion functions from
21895 # Python/dtoa.c, which in turn require that the FPU uses 53-bit
21896 # rounding; this is a problem on x86, where the x87 FPU has a default
21897 # rounding precision of 64 bits. For gcc/x86, we try to fix this by
21898 # using inline assembler to get and set the x87 FPU control word.
21899 if test "$GCC" = yes && test -n "`$CC -dM -E - </dev/null | grep i386`"
21901 # Check that it's okay to use gcc inline assembler to get and set
21902 # x87 control word. It should be, but you never know...
21903 { echo "$as_me:$LINENO: checking whether we can use gcc inline assembler to get and set x87 control word" >&5
21904 echo $ECHO_N "checking whether we can use gcc inline assembler to get and set x87 control word... $ECHO_C" >&6; }
21905 cat >conftest.
$ac_ext <<_ACEOF
21908 cat confdefs.h
>>conftest.
$ac_ext
21909 cat >>conftest.
$ac_ext <<_ACEOF
21910 /* end confdefs.h. */
21917 __asm__ __volatile__ ("fnstcw %0" : "=m" (cw));
21918 __asm__ __volatile__ ("fldcw %0" : : "m" (cw));
21924 rm -f conftest.
$ac_objext
21925 if { (ac_try
="$ac_compile"
21926 case "(($ac_try" in
21927 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21928 *) ac_try_echo=$ac_try;;
21930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21931 (eval "$ac_compile") 2>conftest.er1
21933 grep -v '^ *+' conftest.er1 >conftest.err
21935 cat conftest.err >&5
21936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21937 (exit $ac_status); } && {
21938 test -z "$ac_c_werror_flag" ||
21939 test ! -s conftest.err
21940 } && test -s conftest.$ac_objext; then
21941 have_gcc_asm_for_x87=yes
21943 echo "$as_me: failed program was:" >&5
21944 sed 's/^/| /' conftest.$ac_ext >&5
21946 have_gcc_asm_for_x87=no
21949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21950 { echo "$as_me:$LINENO: result: $have_gcc_asm_for_x87" >&5
21951 echo "${ECHO_T}$have_gcc_asm_for_x87" >&6; }
21952 if test "$have_gcc_asm_for_x87" = yes
21955 cat >>confdefs.h <<\_ACEOF
21956 #define HAVE_GCC_ASM_FOR_X87 1
21962 # Detect whether system arithmetic is subject to x87-style double
21963 # rounding issues. The result of this test has little meaning on non
21964 # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding
21965 # mode is round-to-nearest and double rounding issues are present, and
21966 # 0 otherwise. See http://bugs.python.org/issue2937 for more info.
21967 { echo "$as_me:$LINENO: checking for x87-style double rounding" >&5
21968 echo $ECHO_N "checking for x87-style double rounding... $ECHO_C" >&6; }
21969 # $BASECFLAGS may affect the result
21971 CC="$CC $BASECFLAGS"
21972 if test "$cross_compiling" = yes; then
21973 ac_cv_x87_double_rounding=no
21975 cat >conftest.$ac_ext <<_ACEOF
21978 cat confdefs.h >>conftest.$ac_ext
21979 cat >>conftest.$ac_ext <<_ACEOF
21980 /* end confdefs.h. */
21982 #include <stdlib.h>
21985 volatile double x, y, z;
21986 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
21987 x = 0.99999999999999989; /* 1-2**-53 */
21991 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
21997 /* both tests show evidence of double rounding */
22002 rm -f conftest$ac_exeext
22003 if { (ac_try="$ac_link"
22004 case "(($ac_try" in
22005 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22006 *) ac_try_echo
=$ac_try;;
22008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22009 (eval "$ac_link") 2>&5
22011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22012 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22013 { (case "(($ac_try" in
22014 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22015 *) ac_try_echo=$ac_try;;
22017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22018 (eval "$ac_try") 2>&5
22020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22021 (exit $ac_status); }; }; then
22022 ac_cv_x87_double_rounding=no
22024 echo "$as_me: program exited with status $ac_status" >&5
22025 echo "$as_me: failed program was:" >&5
22026 sed 's/^/| /' conftest.$ac_ext >&5
22028 ( exit $ac_status )
22029 ac_cv_x87_double_rounding=yes
22031 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22036 { echo "$as_me:$LINENO: result: $ac_cv_x87_double_rounding" >&5
22037 echo "${ECHO_T}$ac_cv_x87_double_rounding" >&6; }
22038 if test "$ac_cv_x87_double_rounding" = yes
22041 cat >>confdefs.h <<\_ACEOF
22042 #define X87_DOUBLE_ROUNDING 1
22047 # ************************************
22048 # * Check for mathematical functions *
22049 # ************************************
22054 # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
22055 # -0. on some architectures.
22056 { echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5
22057 echo $ECHO_N "checking whether tanh preserves the sign of zero... $ECHO_C" >&6; }
22058 if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then
22059 echo $ECHO_N "(cached) $ECHO_C" >&6
22062 if test "$cross_compiling" = yes; then
22063 ac_cv_tanh_preserves_zero_sign=no
22065 cat >conftest.$ac_ext <<_ACEOF
22068 cat confdefs.h >>conftest.$ac_ext
22069 cat >>conftest.$ac_ext <<_ACEOF
22070 /* end confdefs.h. */
22073 #include <stdlib.h>
22075 /* return 0 if either negative zeros don't exist
22076 on this platform or if negative zeros exist
22077 and tanh(-0.) == -0. */
22078 if (atan2(0., -1.) == atan2(-0., -1.) ||
22079 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
22084 rm -f conftest$ac_exeext
22085 if { (ac_try="$ac_link"
22086 case "(($ac_try" in
22087 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22088 *) ac_try_echo
=$ac_try;;
22090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22091 (eval "$ac_link") 2>&5
22093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22094 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22095 { (case "(($ac_try" in
22096 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22097 *) ac_try_echo=$ac_try;;
22099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22100 (eval "$ac_try") 2>&5
22102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22103 (exit $ac_status); }; }; then
22104 ac_cv_tanh_preserves_zero_sign=yes
22106 echo "$as_me: program exited with status $ac_status" >&5
22107 echo "$as_me: failed program was:" >&5
22108 sed 's/^/| /' conftest.$ac_ext >&5
22110 ( exit $ac_status )
22111 ac_cv_tanh_preserves_zero_sign=no
22113 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22119 { echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5
22120 echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; }
22121 if test "$ac_cv_tanh_preserves_zero_sign" = yes
22124 cat >>confdefs.h <<\_ACEOF
22125 #define TANH_PRESERVES_ZERO_SIGN 1
22139 for ac_func in acosh asinh atanh copysign expm1 finite hypot log1p round
22141 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
22142 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22143 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22144 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22145 echo $ECHO_N "(cached) $ECHO_C" >&6
22147 cat >conftest.$ac_ext <<_ACEOF
22150 cat confdefs.h >>conftest.$ac_ext
22151 cat >>conftest.$ac_ext <<_ACEOF
22152 /* end confdefs.h. */
22153 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22154 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22155 #define $ac_func innocuous_$ac_func
22157 /* System header to define __stub macros and hopefully few prototypes,
22158 which can conflict with char $ac_func (); below.
22159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22160 <limits.h> exists even on freestanding compilers. */
22163 # include <limits.h>
22165 # include <assert.h>
22170 /* Override any GCC internal prototype to avoid an error.
22171 Use char because int might match the return type of a GCC
22172 builtin and then its argument prototype would still apply. */
22177 /* The GNU C library defines this for functions which it implements
22178 to always fail with ENOSYS. Some functions are actually named
22179 something starting with __ and the normal name is an alias. */
22180 #if defined __stub_$ac_func || defined __stub___$ac_func
22187 return $ac_func ();
22192 rm -f conftest.$ac_objext conftest$ac_exeext
22193 if { (ac_try="$ac_link"
22194 case "(($ac_try" in
22195 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22196 *) ac_try_echo
=$ac_try;;
22198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22199 (eval "$ac_link") 2>conftest.er1
22201 grep -v '^ *+' conftest.er1
>conftest.err
22203 cat conftest.err
>&5
22204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22205 (exit $ac_status); } && {
22206 test -z "$ac_c_werror_flag" ||
22207 test ! -s conftest.err
22208 } && test -s conftest
$ac_exeext &&
22209 $as_test_x conftest
$ac_exeext; then
22210 eval "$as_ac_var=yes"
22212 echo "$as_me: failed program was:" >&5
22213 sed 's/^/| /' conftest.
$ac_ext >&5
22215 eval "$as_ac_var=no"
22218 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22219 conftest
$ac_exeext conftest.
$ac_ext
22221 ac_res
=`eval echo '${'$as_ac_var'}'`
22222 { echo "$as_me:$LINENO: result: $ac_res" >&5
22223 echo "${ECHO_T}$ac_res" >&6; }
22224 if test `eval echo '${'$as_ac_var'}'` = yes; then
22225 cat >>confdefs.h
<<_ACEOF
22226 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22232 { echo "$as_me:$LINENO: checking whether isinf is declared" >&5
22233 echo $ECHO_N "checking whether isinf is declared... $ECHO_C" >&6; }
22234 if test "${ac_cv_have_decl_isinf+set}" = set; then
22235 echo $ECHO_N "(cached) $ECHO_C" >&6
22237 cat >conftest.
$ac_ext <<_ACEOF
22240 cat confdefs.h
>>conftest.
$ac_ext
22241 cat >>conftest.
$ac_ext <<_ACEOF
22242 /* end confdefs.h. */
22256 rm -f conftest.
$ac_objext
22257 if { (ac_try
="$ac_compile"
22258 case "(($ac_try" in
22259 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22260 *) ac_try_echo=$ac_try;;
22262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22263 (eval "$ac_compile") 2>conftest.er1
22265 grep -v '^ *+' conftest.er1 >conftest.err
22267 cat conftest.err >&5
22268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22269 (exit $ac_status); } && {
22270 test -z "$ac_c_werror_flag" ||
22271 test ! -s conftest.err
22272 } && test -s conftest.$ac_objext; then
22273 ac_cv_have_decl_isinf=yes
22275 echo "$as_me: failed program was:" >&5
22276 sed 's/^/| /' conftest.$ac_ext >&5
22278 ac_cv_have_decl_isinf=no
22281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22283 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isinf" >&5
22284 echo "${ECHO_T}$ac_cv_have_decl_isinf" >&6; }
22285 if test $ac_cv_have_decl_isinf = yes; then
22287 cat >>confdefs.h <<_ACEOF
22288 #define HAVE_DECL_ISINF 1
22293 cat >>confdefs.h <<_ACEOF
22294 #define HAVE_DECL_ISINF 0
22299 { echo "$as_me:$LINENO: checking whether isnan is declared" >&5
22300 echo $ECHO_N "checking whether isnan is declared... $ECHO_C" >&6; }
22301 if test "${ac_cv_have_decl_isnan+set}" = set; then
22302 echo $ECHO_N "(cached) $ECHO_C" >&6
22304 cat >conftest.$ac_ext <<_ACEOF
22307 cat confdefs.h >>conftest.$ac_ext
22308 cat >>conftest.$ac_ext <<_ACEOF
22309 /* end confdefs.h. */
22323 rm -f conftest.$ac_objext
22324 if { (ac_try="$ac_compile"
22325 case "(($ac_try" in
22326 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22327 *) ac_try_echo
=$ac_try;;
22329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22330 (eval "$ac_compile") 2>conftest.er1
22332 grep -v '^ *+' conftest.er1
>conftest.err
22334 cat conftest.err
>&5
22335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22336 (exit $ac_status); } && {
22337 test -z "$ac_c_werror_flag" ||
22338 test ! -s conftest.err
22339 } && test -s conftest.
$ac_objext; then
22340 ac_cv_have_decl_isnan
=yes
22342 echo "$as_me: failed program was:" >&5
22343 sed 's/^/| /' conftest.
$ac_ext >&5
22345 ac_cv_have_decl_isnan
=no
22348 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22350 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isnan" >&5
22351 echo "${ECHO_T}$ac_cv_have_decl_isnan" >&6; }
22352 if test $ac_cv_have_decl_isnan = yes; then
22354 cat >>confdefs.h
<<_ACEOF
22355 #define HAVE_DECL_ISNAN 1
22360 cat >>confdefs.h
<<_ACEOF
22361 #define HAVE_DECL_ISNAN 0
22366 { echo "$as_me:$LINENO: checking whether isfinite is declared" >&5
22367 echo $ECHO_N "checking whether isfinite is declared... $ECHO_C" >&6; }
22368 if test "${ac_cv_have_decl_isfinite+set}" = set; then
22369 echo $ECHO_N "(cached) $ECHO_C" >&6
22371 cat >conftest.
$ac_ext <<_ACEOF
22374 cat confdefs.h
>>conftest.
$ac_ext
22375 cat >>conftest.
$ac_ext <<_ACEOF
22376 /* end confdefs.h. */
22390 rm -f conftest.
$ac_objext
22391 if { (ac_try
="$ac_compile"
22392 case "(($ac_try" in
22393 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22394 *) ac_try_echo=$ac_try;;
22396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22397 (eval "$ac_compile") 2>conftest.er1
22399 grep -v '^ *+' conftest.er1 >conftest.err
22401 cat conftest.err >&5
22402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22403 (exit $ac_status); } && {
22404 test -z "$ac_c_werror_flag" ||
22405 test ! -s conftest.err
22406 } && test -s conftest.$ac_objext; then
22407 ac_cv_have_decl_isfinite=yes
22409 echo "$as_me: failed program was:" >&5
22410 sed 's/^/| /' conftest.$ac_ext >&5
22412 ac_cv_have_decl_isfinite=no
22415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22417 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isfinite" >&5
22418 echo "${ECHO_T}$ac_cv_have_decl_isfinite" >&6; }
22419 if test $ac_cv_have_decl_isfinite = yes; then
22421 cat >>confdefs.h <<_ACEOF
22422 #define HAVE_DECL_ISFINITE 1
22427 cat >>confdefs.h <<_ACEOF
22428 #define HAVE_DECL_ISFINITE 0
22438 # Multiprocessing check for broken sem_getvalue
22439 { echo "$as_me:$LINENO: checking for broken sem_getvalue" >&5
22440 echo $ECHO_N "checking for broken sem_getvalue... $ECHO_C" >&6; }
22441 if test "$cross_compiling" = yes; then
22442 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22443 See \`config.log
' for more details." >&5
22444 echo "$as_me: error: cannot run test program while cross compiling
22445 See \`config.log' for more details.
" >&2;}
22446 { (exit 1); exit 1; }; }
22448 cat >conftest.$ac_ext <<_ACEOF
22451 cat confdefs.h >>conftest.$ac_ext
22452 cat >>conftest.$ac_ext <<_ACEOF
22453 /* end confdefs.h. */
22455 #include <unistd.h>
22458 #include <semaphore.h>
22459 #include <sys/stat.h>
22462 sem_t *a = sem_open("/autoconf
", O_CREAT, S_IRUSR|S_IWUSR, 0);
22466 perror("sem_open
");
22470 res = sem_getvalue(a, &count);
22472 return res==-1 ? 1 : 0;
22477 rm -f conftest$ac_exeext
22478 if { (ac_try="$ac_link"
22479 case "(($ac_try" in
22480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22481 *) ac_try_echo=$ac_try;;
22483 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22484 (eval "$ac_link") 2>&5
22486 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22487 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22488 { (case "(($ac_try" in
22489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22490 *) ac_try_echo=$ac_try;;
22492 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22493 (eval "$ac_try") 2>&5
22495 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22496 (exit $ac_status); }; }; then
22497 { echo "$as_me:$LINENO: result
: no
" >&5
22498 echo "${ECHO_T}no
" >&6; }
22500 echo "$as_me: program exited with status
$ac_status" >&5
22501 echo "$as_me: failed program was
:" >&5
22502 sed 's/^/| /' conftest.$ac_ext >&5
22504 ( exit $ac_status )
22505 { echo "$as_me:$LINENO: result
: yes" >&5
22506 echo "${ECHO_T}yes" >&6; }
22508 cat >>confdefs.h <<\_ACEOF
22509 #define HAVE_BROKEN_SEM_GETVALUE 1
22514 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22519 # determine what size digit to use for Python's longs
22520 { echo "$as_me:$LINENO: checking digit size
for Python
's longs" >&5
22521 echo $ECHO_N "checking digit size for Python's longs...
$ECHO_C" >&6; }
22522 # Check whether --enable-big-digits was given.
22523 if test "${enable_big_digits+set}" = set; then
22524 enableval=$enable_big_digits; case $enable_big_digits in
22526 enable_big_digits=30 ;;
22528 enable_big_digits=15 ;;
22532 { { echo "$as_me:$LINENO: error
: bad value
$enable_big_digits for --enable-big-digits; value should be
15 or
30" >&5
22533 echo "$as_me: error
: bad value
$enable_big_digits for --enable-big-digits; value should be
15 or
30" >&2;}
22534 { (exit 1); exit 1; }; } ;;
22536 { echo "$as_me:$LINENO: result
: $enable_big_digits" >&5
22537 echo "${ECHO_T}$enable_big_digits" >&6; }
22539 cat >>confdefs.h <<_ACEOF
22540 #define PYLONG_BITS_IN_DIGIT $enable_big_digits
22545 { echo "$as_me:$LINENO: result
: no value specified
" >&5
22546 echo "${ECHO_T}no value specified
" >&6; }
22550 # check for wchar.h
22551 if test "${ac_cv_header_wchar_h+set}" = set; then
22552 { echo "$as_me:$LINENO: checking
for wchar.h
" >&5
22553 echo $ECHO_N "checking
for wchar.h...
$ECHO_C" >&6; }
22554 if test "${ac_cv_header_wchar_h+set}" = set; then
22555 echo $ECHO_N "(cached
) $ECHO_C" >&6
22557 { echo "$as_me:$LINENO: result
: $ac_cv_header_wchar_h" >&5
22558 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
22560 # Is the header compilable?
22561 { echo "$as_me:$LINENO: checking wchar.h usability
" >&5
22562 echo $ECHO_N "checking wchar.h usability...
$ECHO_C" >&6; }
22563 cat >conftest.$ac_ext <<_ACEOF
22566 cat confdefs.h >>conftest.$ac_ext
22567 cat >>conftest.$ac_ext <<_ACEOF
22568 /* end confdefs.h. */
22569 $ac_includes_default
22572 rm -f conftest.$ac_objext
22573 if { (ac_try="$ac_compile"
22574 case "(($ac_try" in
22575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22576 *) ac_try_echo=$ac_try;;
22578 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22579 (eval "$ac_compile") 2>conftest.er1
22581 grep -v '^ *+' conftest.er1 >conftest.err
22583 cat conftest.err >&5
22584 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22585 (exit $ac_status); } && {
22586 test -z "$ac_c_werror_flag" ||
22587 test ! -s conftest.err
22588 } && test -s conftest.$ac_objext; then
22589 ac_header_compiler=yes
22591 echo "$as_me: failed program was
:" >&5
22592 sed 's/^/| /' conftest.$ac_ext >&5
22594 ac_header_compiler=no
22597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22598 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22599 echo "${ECHO_T}$ac_header_compiler" >&6; }
22601 # Is the header present?
22602 { echo "$as_me:$LINENO: checking wchar.h presence
" >&5
22603 echo $ECHO_N "checking wchar.h presence...
$ECHO_C" >&6; }
22604 cat >conftest.$ac_ext <<_ACEOF
22607 cat confdefs.h >>conftest.$ac_ext
22608 cat >>conftest.$ac_ext <<_ACEOF
22609 /* end confdefs.h. */
22612 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22613 case "(($ac_try" in
22614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22615 *) ac_try_echo=$ac_try;;
22617 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22618 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22620 grep -v '^ *+' conftest.er1 >conftest.err
22622 cat conftest.err >&5
22623 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22624 (exit $ac_status); } >/dev/null && {
22625 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22626 test ! -s conftest.err
22628 ac_header_preproc=yes
22630 echo "$as_me: failed program was
:" >&5
22631 sed 's/^/| /' conftest.$ac_ext >&5
22633 ac_header_preproc=no
22636 rm -f conftest.err conftest.$ac_ext
22637 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22638 echo "${ECHO_T}$ac_header_preproc" >&6; }
22640 # So? What about this header?
22641 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22643 { echo "$as_me:$LINENO: WARNING
: wchar.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22644 echo "$as_me: WARNING
: wchar.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22645 { echo "$as_me:$LINENO: WARNING
: wchar.h
: proceeding with the compiler
's result" >&5
22646 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result
" >&2;}
22647 ac_header_preproc=yes
22650 { echo "$as_me:$LINENO: WARNING
: wchar.h
: present but cannot be compiled
" >&5
22651 echo "$as_me: WARNING
: wchar.h
: present but cannot be compiled
" >&2;}
22652 { echo "$as_me:$LINENO: WARNING
: wchar.h
: check
for missing prerequisite headers?
" >&5
22653 echo "$as_me: WARNING
: wchar.h
: check
for missing prerequisite headers?
" >&2;}
22654 { echo "$as_me:$LINENO: WARNING
: wchar.h
: see the Autoconf documentation
" >&5
22655 echo "$as_me: WARNING
: wchar.h
: see the Autoconf documentation
" >&2;}
22656 { echo "$as_me:$LINENO: WARNING
: wchar.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22657 echo "$as_me: WARNING
: wchar.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22658 { echo "$as_me:$LINENO: WARNING
: wchar.h
: proceeding with the preprocessor
's result" >&5
22659 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result
" >&2;}
22660 { echo "$as_me:$LINENO: WARNING
: wchar.h
: in the future
, the compiler will take precedence
" >&5
22661 echo "$as_me: WARNING
: wchar.h
: in the future
, the compiler will take precedence
" >&2;}
22663 ## -------------------------------------- ##
22664 ## Report this to http://bugs.python.org/ ##
22665 ## -------------------------------------- ##
22667 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
22670 { echo "$as_me:$LINENO: checking
for wchar.h
" >&5
22671 echo $ECHO_N "checking
for wchar.h...
$ECHO_C" >&6; }
22672 if test "${ac_cv_header_wchar_h+set}" = set; then
22673 echo $ECHO_N "(cached
) $ECHO_C" >&6
22675 ac_cv_header_wchar_h=$ac_header_preproc
22677 { echo "$as_me:$LINENO: result
: $ac_cv_header_wchar_h" >&5
22678 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
22681 if test $ac_cv_header_wchar_h = yes; then
22684 cat >>confdefs.h <<\_ACEOF
22685 #define HAVE_WCHAR_H 1
22697 # determine wchar_t size
22698 if test "$wchar_h" = yes
22700 { echo "$as_me:$LINENO: checking
for wchar_t
" >&5
22701 echo $ECHO_N "checking
for wchar_t...
$ECHO_C" >&6; }
22702 if test "${ac_cv_type_wchar_t+set}" = set; then
22703 echo $ECHO_N "(cached
) $ECHO_C" >&6
22705 cat >conftest.$ac_ext <<_ACEOF
22708 cat confdefs.h >>conftest.$ac_ext
22709 cat >>conftest.$ac_ext <<_ACEOF
22710 /* end confdefs.h. */
22713 typedef wchar_t ac__type_new_;
22717 if ((ac__type_new_ *) 0)
22719 if (sizeof (ac__type_new_))
22725 rm -f conftest.$ac_objext
22726 if { (ac_try="$ac_compile"
22727 case "(($ac_try" in
22728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22729 *) ac_try_echo=$ac_try;;
22731 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22732 (eval "$ac_compile") 2>conftest.er1
22734 grep -v '^ *+' conftest.er1 >conftest.err
22736 cat conftest.err >&5
22737 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22738 (exit $ac_status); } && {
22739 test -z "$ac_c_werror_flag" ||
22740 test ! -s conftest.err
22741 } && test -s conftest.$ac_objext; then
22742 ac_cv_type_wchar_t=yes
22744 echo "$as_me: failed program was
:" >&5
22745 sed 's/^/| /' conftest.$ac_ext >&5
22747 ac_cv_type_wchar_t=no
22750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22752 { echo "$as_me:$LINENO: result
: $ac_cv_type_wchar_t" >&5
22753 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
22755 # The cast to long int works around a bug in the HP C Compiler
22756 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22757 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22758 # This bug is HP SR number 8606223364.
22759 { echo "$as_me:$LINENO: checking size of wchar_t
" >&5
22760 echo $ECHO_N "checking size of wchar_t...
$ECHO_C" >&6; }
22761 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
22762 echo $ECHO_N "(cached
) $ECHO_C" >&6
22764 if test "$cross_compiling" = yes; then
22765 # Depending upon the size, compute the lo and hi bounds.
22766 cat >conftest.$ac_ext <<_ACEOF
22769 cat confdefs.h >>conftest.$ac_ext
22770 cat >>conftest.$ac_ext <<_ACEOF
22771 /* end confdefs.h. */
22774 typedef wchar_t ac__type_sizeof_;
22778 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22785 rm -f conftest.$ac_objext
22786 if { (ac_try="$ac_compile"
22787 case "(($ac_try" in
22788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22789 *) ac_try_echo=$ac_try;;
22791 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22792 (eval "$ac_compile") 2>conftest.er1
22794 grep -v '^ *+' conftest.er1 >conftest.err
22796 cat conftest.err >&5
22797 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22798 (exit $ac_status); } && {
22799 test -z "$ac_c_werror_flag" ||
22800 test ! -s conftest.err
22801 } && test -s conftest.$ac_objext; then
22804 cat >conftest.$ac_ext <<_ACEOF
22807 cat confdefs.h >>conftest.$ac_ext
22808 cat >>conftest.$ac_ext <<_ACEOF
22809 /* end confdefs.h. */
22812 typedef wchar_t ac__type_sizeof_;
22816 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22823 rm -f conftest.$ac_objext
22824 if { (ac_try="$ac_compile"
22825 case "(($ac_try" in
22826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22827 *) ac_try_echo=$ac_try;;
22829 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22830 (eval "$ac_compile") 2>conftest.er1
22832 grep -v '^ *+' conftest.er1 >conftest.err
22834 cat conftest.err >&5
22835 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22836 (exit $ac_status); } && {
22837 test -z "$ac_c_werror_flag" ||
22838 test ! -s conftest.err
22839 } && test -s conftest.$ac_objext; then
22840 ac_hi=$ac_mid; break
22842 echo "$as_me: failed program was
:" >&5
22843 sed 's/^/| /' conftest.$ac_ext >&5
22845 ac_lo=`expr $ac_mid + 1`
22846 if test $ac_lo -le $ac_mid; then
22850 ac_mid=`expr 2 '*' $ac_mid + 1`
22853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22856 echo "$as_me: failed program was
:" >&5
22857 sed 's/^/| /' conftest.$ac_ext >&5
22859 cat >conftest.$ac_ext <<_ACEOF
22862 cat confdefs.h >>conftest.$ac_ext
22863 cat >>conftest.$ac_ext <<_ACEOF
22864 /* end confdefs.h. */
22867 typedef wchar_t ac__type_sizeof_;
22871 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22878 rm -f conftest.$ac_objext
22879 if { (ac_try="$ac_compile"
22880 case "(($ac_try" in
22881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22882 *) ac_try_echo=$ac_try;;
22884 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22885 (eval "$ac_compile") 2>conftest.er1
22887 grep -v '^ *+' conftest.er1 >conftest.err
22889 cat conftest.err >&5
22890 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22891 (exit $ac_status); } && {
22892 test -z "$ac_c_werror_flag" ||
22893 test ! -s conftest.err
22894 } && test -s conftest.$ac_objext; then
22897 cat >conftest.$ac_ext <<_ACEOF
22900 cat confdefs.h >>conftest.$ac_ext
22901 cat >>conftest.$ac_ext <<_ACEOF
22902 /* end confdefs.h. */
22905 typedef wchar_t ac__type_sizeof_;
22909 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22916 rm -f conftest.$ac_objext
22917 if { (ac_try="$ac_compile"
22918 case "(($ac_try" in
22919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22920 *) ac_try_echo=$ac_try;;
22922 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22923 (eval "$ac_compile") 2>conftest.er1
22925 grep -v '^ *+' conftest.er1 >conftest.err
22927 cat conftest.err >&5
22928 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22929 (exit $ac_status); } && {
22930 test -z "$ac_c_werror_flag" ||
22931 test ! -s conftest.err
22932 } && test -s conftest.$ac_objext; then
22933 ac_lo=$ac_mid; break
22935 echo "$as_me: failed program was
:" >&5
22936 sed 's/^/| /' conftest.$ac_ext >&5
22938 ac_hi=`expr '(' $ac_mid ')' - 1`
22939 if test $ac_mid -le $ac_hi; then
22943 ac_mid=`expr 2 '*' $ac_mid`
22946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22949 echo "$as_me: failed program was
:" >&5
22950 sed 's/^/| /' conftest.$ac_ext >&5
22955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22959 # Binary search between lo and hi bounds.
22960 while test "x
$ac_lo" != "x
$ac_hi"; do
22961 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22962 cat >conftest.$ac_ext <<_ACEOF
22965 cat confdefs.h >>conftest.$ac_ext
22966 cat >>conftest.$ac_ext <<_ACEOF
22967 /* end confdefs.h. */
22970 typedef wchar_t ac__type_sizeof_;
22974 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22981 rm -f conftest.$ac_objext
22982 if { (ac_try="$ac_compile"
22983 case "(($ac_try" in
22984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22985 *) ac_try_echo=$ac_try;;
22987 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22988 (eval "$ac_compile") 2>conftest.er1
22990 grep -v '^ *+' conftest.er1 >conftest.err
22992 cat conftest.err >&5
22993 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22994 (exit $ac_status); } && {
22995 test -z "$ac_c_werror_flag" ||
22996 test ! -s conftest.err
22997 } && test -s conftest.$ac_objext; then
23000 echo "$as_me: failed program was
:" >&5
23001 sed 's/^/| /' conftest.$ac_ext >&5
23003 ac_lo=`expr '(' $ac_mid ')' + 1`
23006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23009 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
23010 '') if test "$ac_cv_type_wchar_t" = yes; then
23011 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(wchar_t
)
23012 See \
`config.log' for more details." >&5
23013 echo "$as_me: error: cannot compute sizeof (wchar_t)
23014 See \`config.log
' for more details." >&2;}
23015 { (exit 77); exit 77; }; }
23017 ac_cv_sizeof_wchar_t=0
23021 cat >conftest.$ac_ext <<_ACEOF
23024 cat confdefs.h >>conftest.$ac_ext
23025 cat >>conftest.$ac_ext <<_ACEOF
23026 /* end confdefs.h. */
23029 typedef wchar_t ac__type_sizeof_;
23030 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23031 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23033 #include <stdlib.h>
23038 FILE *f = fopen ("conftest.val", "w");
23041 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23043 long int i = longval ();
23044 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23046 fprintf (f, "%ld\n", i);
23050 unsigned long int i = ulongval ();
23051 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23053 fprintf (f, "%lu\n", i);
23055 return ferror (f) || fclose (f) != 0;
23061 rm -f conftest$ac_exeext
23062 if { (ac_try="$ac_link"
23063 case "(($ac_try" in
23064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23065 *) ac_try_echo=$ac_try;;
23067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23068 (eval "$ac_link") 2>&5
23070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23071 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
23072 { (case "(($ac_try" in
23073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23074 *) ac_try_echo=$ac_try;;
23076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23077 (eval "$ac_try") 2>&5
23079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23080 (exit $ac_status); }; }; then
23081 ac_cv_sizeof_wchar_t=`cat conftest.val`
23083 echo "$as_me: program exited with status $ac_status" >&5
23084 echo "$as_me: failed program was:" >&5
23085 sed 's
/^
/|
/' conftest.$ac_ext >&5
23087 ( exit $ac_status )
23088 if test "$ac_cv_type_wchar_t" = yes; then
23089 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
23090 See \`config.log' for more details.
" >&5
23091 echo "$as_me: error
: cannot compute sizeof
(wchar_t
)
23092 See \
`config.log' for more details." >&2;}
23093 { (exit 77); exit 77; }; }
23095 ac_cv_sizeof_wchar_t=0
23098 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23102 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
23103 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
23107 cat >>confdefs.h <<_ACEOF
23108 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
23114 { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
23115 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6; }
23117 cat >conftest.$ac_ext <<_ACEOF
23120 cat confdefs.h >>conftest.$ac_ext
23121 cat >>conftest.$ac_ext <<_ACEOF
23122 /* end confdefs.h. */
23125 #if TCL_UTF_MAX != 6
23126 # error "NOT UCS4_TCL"
23136 rm -f conftest.$ac_objext
23137 if { (ac_try="$ac_compile"
23138 case "(($ac_try" in
23139 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23140 *) ac_try_echo
=$ac_try;;
23142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23143 (eval "$ac_compile") 2>conftest.er1
23145 grep -v '^ *+' conftest.er1
>conftest.err
23147 cat conftest.err
>&5
23148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23149 (exit $ac_status); } && {
23150 test -z "$ac_c_werror_flag" ||
23151 test ! -s conftest.err
23152 } && test -s conftest.
$ac_objext; then
23155 cat >>confdefs.h
<<\_ACEOF
23156 #define HAVE_UCS4_TCL 1
23162 echo "$as_me: failed program was:" >&5
23163 sed 's/^/| /' conftest.
$ac_ext >&5
23168 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23169 { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
23170 echo "${ECHO_T}$have_ucs4_tcl" >&6; }
23172 # check whether wchar_t is signed or not
23173 if test "$wchar_h" = yes
23175 # check whether wchar_t is signed or not
23176 { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
23177 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6; }
23178 if test "${ac_cv_wchar_t_signed+set}" = set; then
23179 echo $ECHO_N "(cached) $ECHO_C" >&6
23182 if test "$cross_compiling" = yes; then
23183 ac_cv_wchar_t_signed
=yes
23185 cat >conftest.
$ac_ext <<_ACEOF
23188 cat confdefs.h
>>conftest.
$ac_ext
23189 cat >>conftest.
$ac_ext <<_ACEOF
23190 /* end confdefs.h. */
23195 /* Success: exit code 0 */
23196 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
23200 rm -f conftest
$ac_exeext
23201 if { (ac_try
="$ac_link"
23202 case "(($ac_try" in
23203 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23204 *) ac_try_echo=$ac_try;;
23206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23207 (eval "$ac_link") 2>&5
23209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23210 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23211 { (case "(($ac_try" in
23212 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23213 *) ac_try_echo
=$ac_try;;
23215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23216 (eval "$ac_try") 2>&5
23218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23219 (exit $ac_status); }; }; then
23220 ac_cv_wchar_t_signed
=yes
23222 echo "$as_me: program exited with status $ac_status" >&5
23223 echo "$as_me: failed program was:" >&5
23224 sed 's/^/| /' conftest.
$ac_ext >&5
23226 ( exit $ac_status )
23227 ac_cv_wchar_t_signed
=no
23229 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
23235 { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
23236 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
23239 { echo "$as_me:$LINENO: checking what type to use for str" >&5
23240 echo $ECHO_N "checking what type to use for str... $ECHO_C" >&6; }
23242 # Check whether --with-wide-unicode was given.
23243 if test "${with_wide_unicode+set}" = set; then
23244 withval
=$with_wide_unicode;
23245 if test "$withval" != no
23246 then unicode_size
="4"
23247 else unicode_size
="2"
23252 case "$have_ucs4_tcl" in
23253 yes) unicode_size
="4" ;;
23254 *) unicode_size
="2" ;;
23262 case "$unicode_size" in
23263 4) cat >>confdefs.h
<<\_ACEOF
23264 #define Py_UNICODE_SIZE 4
23267 *) cat >>confdefs.h
<<\_ACEOF
23268 #define Py_UNICODE_SIZE 2
23276 # wchar_t is only usable if it maps to an unsigned type
23277 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
23278 -a "$ac_cv_wchar_t_signed" = "no"
23280 PY_UNICODE_TYPE
="wchar_t"
23282 cat >>confdefs.h
<<\_ACEOF
23283 #define HAVE_USABLE_WCHAR_T 1
23286 cat >>confdefs.h
<<\_ACEOF
23287 #define PY_UNICODE_TYPE wchar_t
23290 elif test "$ac_cv_sizeof_short" = "$unicode_size"
23292 PY_UNICODE_TYPE
="unsigned short"
23293 cat >>confdefs.h
<<\_ACEOF
23294 #define PY_UNICODE_TYPE unsigned short
23297 elif test "$ac_cv_sizeof_long" = "$unicode_size"
23299 PY_UNICODE_TYPE
="unsigned long"
23300 cat >>confdefs.h
<<\_ACEOF
23301 #define PY_UNICODE_TYPE unsigned long
23305 PY_UNICODE_TYPE
="no type found"
23307 { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
23308 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
23310 # check for endianness
23311 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
23312 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
23313 if test "${ac_cv_c_bigendian+set}" = set; then
23314 echo $ECHO_N "(cached) $ECHO_C" >&6
23316 # See if sys/param.h defines the BYTE_ORDER macro.
23317 cat >conftest.
$ac_ext <<_ACEOF
23320 cat confdefs.h
>>conftest.
$ac_ext
23321 cat >>conftest.
$ac_ext <<_ACEOF
23322 /* end confdefs.h. */
23323 #include <sys/types.h>
23324 #include <sys/param.h>
23329 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
23330 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
23331 bogus endian macros
23338 rm -f conftest.
$ac_objext
23339 if { (ac_try
="$ac_compile"
23340 case "(($ac_try" in
23341 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23342 *) ac_try_echo=$ac_try;;
23344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23345 (eval "$ac_compile") 2>conftest.er1
23347 grep -v '^ *+' conftest.er1 >conftest.err
23349 cat conftest.err >&5
23350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23351 (exit $ac_status); } && {
23352 test -z "$ac_c_werror_flag" ||
23353 test ! -s conftest.err
23354 } && test -s conftest.$ac_objext; then
23355 # It does; now see whether it defined to BIG_ENDIAN or not.
23356 cat >conftest.$ac_ext <<_ACEOF
23359 cat confdefs.h >>conftest.$ac_ext
23360 cat >>conftest.$ac_ext <<_ACEOF
23361 /* end confdefs.h. */
23362 #include <sys/types.h>
23363 #include <sys/param.h>
23368 #if BYTE_ORDER != BIG_ENDIAN
23376 rm -f conftest.$ac_objext
23377 if { (ac_try="$ac_compile"
23378 case "(($ac_try" in
23379 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23380 *) ac_try_echo
=$ac_try;;
23382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23383 (eval "$ac_compile") 2>conftest.er1
23385 grep -v '^ *+' conftest.er1
>conftest.err
23387 cat conftest.err
>&5
23388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23389 (exit $ac_status); } && {
23390 test -z "$ac_c_werror_flag" ||
23391 test ! -s conftest.err
23392 } && test -s conftest.
$ac_objext; then
23393 ac_cv_c_bigendian
=yes
23395 echo "$as_me: failed program was:" >&5
23396 sed 's/^/| /' conftest.
$ac_ext >&5
23398 ac_cv_c_bigendian
=no
23401 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23403 echo "$as_me: failed program was:" >&5
23404 sed 's/^/| /' conftest.
$ac_ext >&5
23406 # It does not; compile a test program.
23407 if test "$cross_compiling" = yes; then
23408 # try to guess the endianness by grepping values into an object file
23409 ac_cv_c_bigendian
=unknown
23410 cat >conftest.
$ac_ext <<_ACEOF
23413 cat confdefs.h
>>conftest.
$ac_ext
23414 cat >>conftest.
$ac_ext <<_ACEOF
23415 /* end confdefs.h. */
23416 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23417 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23418 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
23419 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23420 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23421 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
23425 _ascii (); _ebcdic ();
23430 rm -f conftest.
$ac_objext
23431 if { (ac_try
="$ac_compile"
23432 case "(($ac_try" in
23433 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23434 *) ac_try_echo=$ac_try;;
23436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23437 (eval "$ac_compile") 2>conftest.er1
23439 grep -v '^ *+' conftest.er1 >conftest.err
23441 cat conftest.err >&5
23442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23443 (exit $ac_status); } && {
23444 test -z "$ac_c_werror_flag" ||
23445 test ! -s conftest.err
23446 } && test -s conftest.$ac_objext; then
23447 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
23448 ac_cv_c_bigendian=yes
23450 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23451 if test "$ac_cv_c_bigendian" = unknown; then
23452 ac_cv_c_bigendian=no
23454 # finding both strings is unlikely to happen, but who knows?
23455 ac_cv_c_bigendian=unknown
23459 echo "$as_me: failed program was:" >&5
23460 sed 's/^/| /' conftest.$ac_ext >&5
23465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23467 cat >conftest.$ac_ext <<_ACEOF
23470 cat confdefs.h >>conftest.$ac_ext
23471 cat >>conftest.$ac_ext <<_ACEOF
23472 /* end confdefs.h. */
23473 $ac_includes_default
23478 /* Are we little or big endian? From Harbison&Steele. */
23482 char c[sizeof (long int)];
23485 return u.c[sizeof (long int) - 1] == 1;
23491 rm -f conftest$ac_exeext
23492 if { (ac_try="$ac_link"
23493 case "(($ac_try" in
23494 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23495 *) ac_try_echo
=$ac_try;;
23497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23498 (eval "$ac_link") 2>&5
23500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23501 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23502 { (case "(($ac_try" in
23503 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23504 *) ac_try_echo=$ac_try;;
23506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23507 (eval "$ac_try") 2>&5
23509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23510 (exit $ac_status); }; }; then
23511 ac_cv_c_bigendian=no
23513 echo "$as_me: program exited with status $ac_status" >&5
23514 echo "$as_me: failed program was:" >&5
23515 sed 's/^/| /' conftest.$ac_ext >&5
23517 ( exit $ac_status )
23518 ac_cv_c_bigendian=yes
23520 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23528 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
23529 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
23530 case $ac_cv_c_bigendian in
23533 cat >>confdefs.h <<\_ACEOF
23534 #define WORDS_BIGENDIAN 1
23540 { { echo "$as_me:$LINENO: error: unknown endianness
23541 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
23542 echo "$as_me: error: unknown endianness
23543 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
23544 { (exit 1); exit 1; }; } ;;
23548 # Check whether right shifting a negative integer extends the sign bit
23549 # or fills with zeros (like the Cray J90, according to Tim Peters).
23550 { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
23551 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6; }
23552 if test "${ac_cv_rshift_extends_sign+set}" = set; then
23553 echo $ECHO_N "(cached) $ECHO_C" >&6
23556 if test "$cross_compiling" = yes; then
23557 ac_cv_rshift_extends_sign=yes
23559 cat >conftest.$ac_ext <<_ACEOF
23562 cat confdefs.h >>conftest.$ac_ext
23563 cat >>conftest.$ac_ext <<_ACEOF
23564 /* end confdefs.h. */
23568 exit(((-1)>>3 == -1) ? 0 : 1);
23572 rm -f conftest$ac_exeext
23573 if { (ac_try="$ac_link"
23574 case "(($ac_try" in
23575 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23576 *) ac_try_echo
=$ac_try;;
23578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23579 (eval "$ac_link") 2>&5
23581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23582 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23583 { (case "(($ac_try" in
23584 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23585 *) ac_try_echo=$ac_try;;
23587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23588 (eval "$ac_try") 2>&5
23590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23591 (exit $ac_status); }; }; then
23592 ac_cv_rshift_extends_sign=yes
23594 echo "$as_me: program exited with status $ac_status" >&5
23595 echo "$as_me: failed program was:" >&5
23596 sed 's/^/| /' conftest.$ac_ext >&5
23598 ( exit $ac_status )
23599 ac_cv_rshift_extends_sign=no
23601 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23607 { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
23608 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
23609 if test "$ac_cv_rshift_extends_sign" = no
23612 cat >>confdefs.h <<\_ACEOF
23613 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
23618 # check for getc_unlocked and related locking functions
23619 { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
23620 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6; }
23621 if test "${ac_cv_have_getc_unlocked+set}" = set; then
23622 echo $ECHO_N "(cached) $ECHO_C" >&6
23625 cat >conftest.$ac_ext <<_ACEOF
23628 cat confdefs.h >>conftest.$ac_ext
23629 cat >>conftest.$ac_ext <<_ACEOF
23630 /* end confdefs.h. */
23636 FILE *f = fopen("/dev/null", "r");
23645 rm -f conftest.$ac_objext conftest$ac_exeext
23646 if { (ac_try="$ac_link"
23647 case "(($ac_try" in
23648 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23649 *) ac_try_echo
=$ac_try;;
23651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23652 (eval "$ac_link") 2>conftest.er1
23654 grep -v '^ *+' conftest.er1
>conftest.err
23656 cat conftest.err
>&5
23657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23658 (exit $ac_status); } && {
23659 test -z "$ac_c_werror_flag" ||
23660 test ! -s conftest.err
23661 } && test -s conftest
$ac_exeext &&
23662 $as_test_x conftest
$ac_exeext; then
23663 ac_cv_have_getc_unlocked
=yes
23665 echo "$as_me: failed program was:" >&5
23666 sed 's/^/| /' conftest.
$ac_ext >&5
23668 ac_cv_have_getc_unlocked
=no
23671 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23672 conftest
$ac_exeext conftest.
$ac_ext
23675 { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
23676 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
23677 if test "$ac_cv_have_getc_unlocked" = yes
23680 cat >>confdefs.h
<<\_ACEOF
23681 #define HAVE_GETC_UNLOCKED 1
23686 # check where readline lives
23687 # save the value of LIBS so we don't actually link Python with readline
23688 LIBS_no_readline
=$LIBS
23690 # On some systems we need to link readline to a termcap compatible
23691 # library. NOTE: Keep the precedence of listed libraries synchronised
23693 py_cv_lib_readline
=no
23694 { echo "$as_me:$LINENO: checking how to link readline libs" >&5
23695 echo $ECHO_N "checking how to link readline libs... $ECHO_C" >&6; }
23696 for py_libtermcap
in "" ncursesw ncurses curses termcap
; do
23697 if test -z "$py_libtermcap"; then
23698 READLINE_LIBS
="-lreadline"
23700 READLINE_LIBS
="-lreadline -l$py_libtermcap"
23702 LIBS
="$READLINE_LIBS $LIBS_no_readline"
23703 cat >conftest.
$ac_ext <<_ACEOF
23706 cat confdefs.h
>>conftest.
$ac_ext
23707 cat >>conftest.
$ac_ext <<_ACEOF
23708 /* end confdefs.h. */
23710 /* Override any GCC internal prototype to avoid an error.
23711 Use char because int might match the return type of a GCC
23712 builtin and then its argument prototype would still apply. */
23720 return readline ();
23725 rm -f conftest.
$ac_objext conftest
$ac_exeext
23726 if { (ac_try
="$ac_link"
23727 case "(($ac_try" in
23728 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23729 *) ac_try_echo=$ac_try;;
23731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23732 (eval "$ac_link") 2>conftest.er1
23734 grep -v '^ *+' conftest.er1 >conftest.err
23736 cat conftest.err >&5
23737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23738 (exit $ac_status); } && {
23739 test -z "$ac_c_werror_flag" ||
23740 test ! -s conftest.err
23741 } && test -s conftest$ac_exeext &&
23742 $as_test_x conftest$ac_exeext; then
23743 py_cv_lib_readline=yes
23745 echo "$as_me: failed program was:" >&5
23746 sed 's/^/| /' conftest.$ac_ext >&5
23751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23752 conftest$ac_exeext conftest.$ac_ext
23753 if test $py_cv_lib_readline = yes; then
23757 # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts
23758 #AC_SUBST([READLINE_LIBS])
23759 if test $py_cv_lib_readline = no; then
23760 { echo "$as_me:$LINENO: result: none" >&5
23761 echo "${ECHO_T}none" >&6; }
23763 { echo "$as_me:$LINENO: result: $READLINE_LIBS" >&5
23764 echo "${ECHO_T}$READLINE_LIBS" >&6; }
23766 cat >>confdefs.h <<\_ACEOF
23767 #define HAVE_LIBREADLINE 1
23772 # check for readline 2.1
23773 { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
23774 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6; }
23775 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
23776 echo $ECHO_N "(cached) $ECHO_C" >&6
23778 ac_check_lib_save_LIBS=$LIBS
23779 LIBS="-lreadline $READLINE_LIBS $LIBS"
23780 cat >conftest.$ac_ext <<_ACEOF
23783 cat confdefs.h >>conftest.$ac_ext
23784 cat >>conftest.$ac_ext <<_ACEOF
23785 /* end confdefs.h. */
23787 /* Override any GCC internal prototype to avoid an error.
23788 Use char because int might match the return type of a GCC
23789 builtin and then its argument prototype would still apply. */
23793 char rl_callback_handler_install ();
23797 return rl_callback_handler_install ();
23802 rm -f conftest.$ac_objext conftest$ac_exeext
23803 if { (ac_try="$ac_link"
23804 case "(($ac_try" in
23805 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23806 *) ac_try_echo
=$ac_try;;
23808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23809 (eval "$ac_link") 2>conftest.er1
23811 grep -v '^ *+' conftest.er1
>conftest.err
23813 cat conftest.err
>&5
23814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23815 (exit $ac_status); } && {
23816 test -z "$ac_c_werror_flag" ||
23817 test ! -s conftest.err
23818 } && test -s conftest
$ac_exeext &&
23819 $as_test_x conftest
$ac_exeext; then
23820 ac_cv_lib_readline_rl_callback_handler_install
=yes
23822 echo "$as_me: failed program was:" >&5
23823 sed 's/^/| /' conftest.
$ac_ext >&5
23825 ac_cv_lib_readline_rl_callback_handler_install
=no
23828 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23829 conftest
$ac_exeext conftest.
$ac_ext
23830 LIBS
=$ac_check_lib_save_LIBS
23832 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
23833 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
23834 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
23836 cat >>confdefs.h
<<\_ACEOF
23837 #define HAVE_RL_CALLBACK 1
23843 # check for readline 2.2
23844 cat >conftest.
$ac_ext <<_ACEOF
23847 cat confdefs.h
>>conftest.
$ac_ext
23848 cat >>conftest.
$ac_ext <<_ACEOF
23849 /* end confdefs.h. */
23850 #include <readline/readline.h>
23852 if { (ac_try
="$ac_cpp conftest.$ac_ext"
23853 case "(($ac_try" in
23854 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23855 *) ac_try_echo=$ac_try;;
23857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23858 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23860 grep -v '^ *+' conftest.er1 >conftest.err
23862 cat conftest.err >&5
23863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23864 (exit $ac_status); } >/dev/null && {
23865 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23866 test ! -s conftest.err
23870 echo "$as_me: failed program was:" >&5
23871 sed 's/^/| /' conftest.$ac_ext >&5
23876 rm -f conftest.err conftest.$ac_ext
23877 if test $have_readline = yes
23879 cat >conftest.$ac_ext <<_ACEOF
23882 cat confdefs.h >>conftest.$ac_ext
23883 cat >>conftest.$ac_ext <<_ACEOF
23884 /* end confdefs.h. */
23885 #include <readline/readline.h>
23888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23889 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
23891 cat >>confdefs.h <<\_ACEOF
23892 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
23900 # check for readline 4.0
23901 { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
23902 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6; }
23903 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
23904 echo $ECHO_N "(cached) $ECHO_C" >&6
23906 ac_check_lib_save_LIBS=$LIBS
23907 LIBS="-lreadline $READLINE_LIBS $LIBS"
23908 cat >conftest.$ac_ext <<_ACEOF
23911 cat confdefs.h >>conftest.$ac_ext
23912 cat >>conftest.$ac_ext <<_ACEOF
23913 /* end confdefs.h. */
23915 /* Override any GCC internal prototype to avoid an error.
23916 Use char because int might match the return type of a GCC
23917 builtin and then its argument prototype would still apply. */
23921 char rl_pre_input_hook ();
23925 return rl_pre_input_hook ();
23930 rm -f conftest.$ac_objext conftest$ac_exeext
23931 if { (ac_try="$ac_link"
23932 case "(($ac_try" in
23933 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23934 *) ac_try_echo
=$ac_try;;
23936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23937 (eval "$ac_link") 2>conftest.er1
23939 grep -v '^ *+' conftest.er1
>conftest.err
23941 cat conftest.err
>&5
23942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23943 (exit $ac_status); } && {
23944 test -z "$ac_c_werror_flag" ||
23945 test ! -s conftest.err
23946 } && test -s conftest
$ac_exeext &&
23947 $as_test_x conftest
$ac_exeext; then
23948 ac_cv_lib_readline_rl_pre_input_hook
=yes
23950 echo "$as_me: failed program was:" >&5
23951 sed 's/^/| /' conftest.
$ac_ext >&5
23953 ac_cv_lib_readline_rl_pre_input_hook
=no
23956 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23957 conftest
$ac_exeext conftest.
$ac_ext
23958 LIBS
=$ac_check_lib_save_LIBS
23960 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
23961 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
23962 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
23964 cat >>confdefs.h
<<\_ACEOF
23965 #define HAVE_RL_PRE_INPUT_HOOK 1
23972 { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5
23973 echo $ECHO_N "checking for rl_completion_display_matches_hook in -lreadline... $ECHO_C" >&6; }
23974 if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
23975 echo $ECHO_N "(cached) $ECHO_C" >&6
23977 ac_check_lib_save_LIBS
=$LIBS
23978 LIBS
="-lreadline $READLINE_LIBS $LIBS"
23979 cat >conftest.
$ac_ext <<_ACEOF
23982 cat confdefs.h
>>conftest.
$ac_ext
23983 cat >>conftest.
$ac_ext <<_ACEOF
23984 /* end confdefs.h. */
23986 /* Override any GCC internal prototype to avoid an error.
23987 Use char because int might match the return type of a GCC
23988 builtin and then its argument prototype would still apply. */
23992 char rl_completion_display_matches_hook ();
23996 return rl_completion_display_matches_hook ();
24001 rm -f conftest.
$ac_objext conftest
$ac_exeext
24002 if { (ac_try
="$ac_link"
24003 case "(($ac_try" in
24004 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24005 *) ac_try_echo=$ac_try;;
24007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24008 (eval "$ac_link") 2>conftest.er1
24010 grep -v '^ *+' conftest.er1 >conftest.err
24012 cat conftest.err >&5
24013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24014 (exit $ac_status); } && {
24015 test -z "$ac_c_werror_flag" ||
24016 test ! -s conftest.err
24017 } && test -s conftest$ac_exeext &&
24018 $as_test_x conftest$ac_exeext; then
24019 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
24021 echo "$as_me: failed program was:" >&5
24022 sed 's/^/| /' conftest.$ac_ext >&5
24024 ac_cv_lib_readline_rl_completion_display_matches_hook=no
24027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24028 conftest$ac_exeext conftest.$ac_ext
24029 LIBS=$ac_check_lib_save_LIBS
24031 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
24032 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
24033 if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then
24035 cat >>confdefs.h <<\_ACEOF
24036 #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
24042 # check for readline 4.2
24043 { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
24044 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; }
24045 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
24046 echo $ECHO_N "(cached) $ECHO_C" >&6
24048 ac_check_lib_save_LIBS=$LIBS
24049 LIBS="-lreadline $READLINE_LIBS $LIBS"
24050 cat >conftest.$ac_ext <<_ACEOF
24053 cat confdefs.h >>conftest.$ac_ext
24054 cat >>conftest.$ac_ext <<_ACEOF
24055 /* end confdefs.h. */
24057 /* Override any GCC internal prototype to avoid an error.
24058 Use char because int might match the return type of a GCC
24059 builtin and then its argument prototype would still apply. */
24063 char rl_completion_matches ();
24067 return rl_completion_matches ();
24072 rm -f conftest.$ac_objext conftest$ac_exeext
24073 if { (ac_try="$ac_link"
24074 case "(($ac_try" in
24075 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24076 *) ac_try_echo
=$ac_try;;
24078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24079 (eval "$ac_link") 2>conftest.er1
24081 grep -v '^ *+' conftest.er1
>conftest.err
24083 cat conftest.err
>&5
24084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24085 (exit $ac_status); } && {
24086 test -z "$ac_c_werror_flag" ||
24087 test ! -s conftest.err
24088 } && test -s conftest
$ac_exeext &&
24089 $as_test_x conftest
$ac_exeext; then
24090 ac_cv_lib_readline_rl_completion_matches
=yes
24092 echo "$as_me: failed program was:" >&5
24093 sed 's/^/| /' conftest.
$ac_ext >&5
24095 ac_cv_lib_readline_rl_completion_matches
=no
24098 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24099 conftest
$ac_exeext conftest.
$ac_ext
24100 LIBS
=$ac_check_lib_save_LIBS
24102 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
24103 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
24104 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
24106 cat >>confdefs.h
<<\_ACEOF
24107 #define HAVE_RL_COMPLETION_MATCHES 1
24113 # also in readline 4.2
24114 cat >conftest.
$ac_ext <<_ACEOF
24117 cat confdefs.h
>>conftest.
$ac_ext
24118 cat >>conftest.
$ac_ext <<_ACEOF
24119 /* end confdefs.h. */
24120 #include <readline/readline.h>
24122 if { (ac_try
="$ac_cpp conftest.$ac_ext"
24123 case "(($ac_try" in
24124 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24125 *) ac_try_echo=$ac_try;;
24127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24128 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24130 grep -v '^ *+' conftest.er1 >conftest.err
24132 cat conftest.err >&5
24133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24134 (exit $ac_status); } >/dev/null && {
24135 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24136 test ! -s conftest.err
24140 echo "$as_me: failed program was:" >&5
24141 sed 's/^/| /' conftest.$ac_ext >&5
24146 rm -f conftest.err conftest.$ac_ext
24147 if test $have_readline = yes
24149 cat >conftest.$ac_ext <<_ACEOF
24152 cat confdefs.h >>conftest.$ac_ext
24153 cat >>conftest.$ac_ext <<_ACEOF
24154 /* end confdefs.h. */
24155 #include <readline/readline.h>
24158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24159 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
24161 cat >>confdefs.h <<\_ACEOF
24162 #define HAVE_RL_CATCH_SIGNAL 1
24170 # End of readline checks: restore LIBS
24171 LIBS=$LIBS_no_readline
24173 { echo "$as_me:$LINENO: checking for broken nice()" >&5
24174 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; }
24175 if test "${ac_cv_broken_nice+set}" = set; then
24176 echo $ECHO_N "(cached) $ECHO_C" >&6
24179 if test "$cross_compiling" = yes; then
24180 ac_cv_broken_nice=no
24182 cat >conftest.$ac_ext <<_ACEOF
24185 cat confdefs.h >>conftest.$ac_ext
24186 cat >>conftest.$ac_ext <<_ACEOF
24187 /* end confdefs.h. */
24191 int val1 = nice(1);
24192 if (val1 != -1 && val1 == nice(2))
24198 rm -f conftest$ac_exeext
24199 if { (ac_try="$ac_link"
24200 case "(($ac_try" in
24201 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24202 *) ac_try_echo
=$ac_try;;
24204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24205 (eval "$ac_link") 2>&5
24207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24208 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24209 { (case "(($ac_try" in
24210 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24211 *) ac_try_echo=$ac_try;;
24213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24214 (eval "$ac_try") 2>&5
24216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24217 (exit $ac_status); }; }; then
24218 ac_cv_broken_nice=yes
24220 echo "$as_me: program exited with status $ac_status" >&5
24221 echo "$as_me: failed program was:" >&5
24222 sed 's/^/| /' conftest.$ac_ext >&5
24224 ( exit $ac_status )
24225 ac_cv_broken_nice=no
24227 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24233 { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
24234 echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
24235 if test "$ac_cv_broken_nice" = yes
24238 cat >>confdefs.h <<\_ACEOF
24239 #define HAVE_BROKEN_NICE 1
24244 { echo "$as_me:$LINENO: checking for broken poll()" >&5
24245 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; }
24246 if test "$cross_compiling" = yes; then
24247 ac_cv_broken_poll=no
24249 cat >conftest.$ac_ext <<_ACEOF
24252 cat confdefs.h >>conftest.$ac_ext
24253 cat >>conftest.$ac_ext <<_ACEOF
24254 /* end confdefs.h. */
24260 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
24264 int poll_test = poll (&poll_struct, 1, 0);
24270 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
24281 rm -f conftest$ac_exeext
24282 if { (ac_try="$ac_link"
24283 case "(($ac_try" in
24284 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24285 *) ac_try_echo
=$ac_try;;
24287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24288 (eval "$ac_link") 2>&5
24290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24291 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24292 { (case "(($ac_try" in
24293 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24294 *) ac_try_echo=$ac_try;;
24296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24297 (eval "$ac_try") 2>&5
24299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24300 (exit $ac_status); }; }; then
24301 ac_cv_broken_poll=yes
24303 echo "$as_me: program exited with status $ac_status" >&5
24304 echo "$as_me: failed program was:" >&5
24305 sed 's/^/| /' conftest.$ac_ext >&5
24307 ( exit $ac_status )
24308 ac_cv_broken_poll=no
24310 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24314 { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
24315 echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
24316 if test "$ac_cv_broken_poll" = yes
24319 cat >>confdefs.h <<\_ACEOF
24320 #define HAVE_BROKEN_POLL 1
24325 # Before we can test tzset, we need to check if struct tm has a tm_zone
24326 # (which is not required by ISO C or UNIX spec) and/or if we support
24328 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
24329 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
24330 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
24331 echo $ECHO_N "(cached) $ECHO_C" >&6
24333 cat >conftest.$ac_ext <<_ACEOF
24336 cat confdefs.h >>conftest.$ac_ext
24337 cat >>conftest.$ac_ext <<_ACEOF
24338 /* end confdefs.h. */
24339 #include <sys/types.h>
24340 #include <$ac_cv_struct_tm>
24346 static struct tm ac_aggr;
24347 if (ac_aggr.tm_zone)
24353 rm -f conftest.$ac_objext
24354 if { (ac_try="$ac_compile"
24355 case "(($ac_try" in
24356 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24357 *) ac_try_echo
=$ac_try;;
24359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24360 (eval "$ac_compile") 2>conftest.er1
24362 grep -v '^ *+' conftest.er1
>conftest.err
24364 cat conftest.err
>&5
24365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24366 (exit $ac_status); } && {
24367 test -z "$ac_c_werror_flag" ||
24368 test ! -s conftest.err
24369 } && test -s conftest.
$ac_objext; then
24370 ac_cv_member_struct_tm_tm_zone
=yes
24372 echo "$as_me: failed program was:" >&5
24373 sed 's/^/| /' conftest.
$ac_ext >&5
24375 cat >conftest.
$ac_ext <<_ACEOF
24378 cat confdefs.h
>>conftest.
$ac_ext
24379 cat >>conftest.
$ac_ext <<_ACEOF
24380 /* end confdefs.h. */
24381 #include <sys/types.h>
24382 #include <$ac_cv_struct_tm>
24388 static struct tm ac_aggr;
24389 if (sizeof ac_aggr.tm_zone)
24395 rm -f conftest.
$ac_objext
24396 if { (ac_try
="$ac_compile"
24397 case "(($ac_try" in
24398 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24399 *) ac_try_echo=$ac_try;;
24401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24402 (eval "$ac_compile") 2>conftest.er1
24404 grep -v '^ *+' conftest.er1 >conftest.err
24406 cat conftest.err >&5
24407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24408 (exit $ac_status); } && {
24409 test -z "$ac_c_werror_flag" ||
24410 test ! -s conftest.err
24411 } && test -s conftest.$ac_objext; then
24412 ac_cv_member_struct_tm_tm_zone=yes
24414 echo "$as_me: failed program was:" >&5
24415 sed 's/^/| /' conftest.$ac_ext >&5
24417 ac_cv_member_struct_tm_tm_zone=no
24420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24425 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
24426 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
24427 if test $ac_cv_member_struct_tm_tm_zone = yes; then
24429 cat >>confdefs.h <<_ACEOF
24430 #define HAVE_STRUCT_TM_TM_ZONE 1
24436 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
24438 cat >>confdefs.h <<\_ACEOF
24439 #define HAVE_TM_ZONE 1
24443 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
24444 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
24445 if test "${ac_cv_have_decl_tzname+set}" = set; then
24446 echo $ECHO_N "(cached) $ECHO_C" >&6
24448 cat >conftest.$ac_ext <<_ACEOF
24451 cat confdefs.h >>conftest.$ac_ext
24452 cat >>conftest.$ac_ext <<_ACEOF
24453 /* end confdefs.h. */
24467 rm -f conftest.$ac_objext
24468 if { (ac_try="$ac_compile"
24469 case "(($ac_try" in
24470 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24471 *) ac_try_echo
=$ac_try;;
24473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24474 (eval "$ac_compile") 2>conftest.er1
24476 grep -v '^ *+' conftest.er1
>conftest.err
24478 cat conftest.err
>&5
24479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24480 (exit $ac_status); } && {
24481 test -z "$ac_c_werror_flag" ||
24482 test ! -s conftest.err
24483 } && test -s conftest.
$ac_objext; then
24484 ac_cv_have_decl_tzname
=yes
24486 echo "$as_me: failed program was:" >&5
24487 sed 's/^/| /' conftest.
$ac_ext >&5
24489 ac_cv_have_decl_tzname
=no
24492 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24494 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
24495 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
24496 if test $ac_cv_have_decl_tzname = yes; then
24498 cat >>confdefs.h
<<_ACEOF
24499 #define HAVE_DECL_TZNAME 1
24504 cat >>confdefs.h
<<_ACEOF
24505 #define HAVE_DECL_TZNAME 0
24512 { echo "$as_me:$LINENO: checking for tzname" >&5
24513 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
24514 if test "${ac_cv_var_tzname+set}" = set; then
24515 echo $ECHO_N "(cached) $ECHO_C" >&6
24517 cat >conftest.
$ac_ext <<_ACEOF
24520 cat confdefs.h
>>conftest.
$ac_ext
24521 cat >>conftest.
$ac_ext <<_ACEOF
24522 /* end confdefs.h. */
24524 #if !HAVE_DECL_TZNAME
24525 extern char *tzname[];
24531 return tzname[0][0];
24536 rm -f conftest.
$ac_objext conftest
$ac_exeext
24537 if { (ac_try
="$ac_link"
24538 case "(($ac_try" in
24539 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24540 *) ac_try_echo=$ac_try;;
24542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24543 (eval "$ac_link") 2>conftest.er1
24545 grep -v '^ *+' conftest.er1 >conftest.err
24547 cat conftest.err >&5
24548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24549 (exit $ac_status); } && {
24550 test -z "$ac_c_werror_flag" ||
24551 test ! -s conftest.err
24552 } && test -s conftest$ac_exeext &&
24553 $as_test_x conftest$ac_exeext; then
24554 ac_cv_var_tzname=yes
24556 echo "$as_me: failed program was:" >&5
24557 sed 's/^/| /' conftest.$ac_ext >&5
24559 ac_cv_var_tzname=no
24562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24563 conftest$ac_exeext conftest.$ac_ext
24565 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
24566 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
24567 if test $ac_cv_var_tzname = yes; then
24569 cat >>confdefs.h <<\_ACEOF
24570 #define HAVE_TZNAME 1
24577 # check tzset(3) exists and works like we expect it to
24578 { echo "$as_me:$LINENO: checking for working tzset()" >&5
24579 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; }
24580 if test "${ac_cv_working_tzset+set}" = set; then
24581 echo $ECHO_N "(cached) $ECHO_C" >&6
24584 if test "$cross_compiling" = yes; then
24585 ac_cv_working_tzset=no
24587 cat >conftest.$ac_ext <<_ACEOF
24590 cat confdefs.h >>conftest.$ac_ext
24591 cat >>conftest.$ac_ext <<_ACEOF
24592 /* end confdefs.h. */
24594 #include <stdlib.h>
24596 #include <string.h>
24599 extern char *tzname[];
24604 /* Note that we need to ensure that not only does tzset(3)
24605 do 'something' with localtime, but it works as documented
24606 in the library reference and as expected by the test suite.
24607 This includes making sure that tzname is set properly if
24608 tm->tm_zone does not exist since it is the alternative way
24609 of getting timezone info.
24611 Red Hat 6.2 doesn't understand the southern hemisphere
24612 after New Year's Day.
24615 time_t groundhogday = 1044144000; /* GMT-based */
24616 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
24618 putenv("TZ=UTC+0");
24620 if (localtime(&groundhogday)->tm_hour != 0)
24623 /* For UTC, tzname[1] is sometimes "", sometimes " " */
24624 if (strcmp(tzname[0], "UTC") ||
24625 (tzname[1][0] != 0 && tzname[1][0] != ' '))
24629 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
24631 if (localtime(&groundhogday)->tm_hour != 19)
24634 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
24638 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
24640 if (localtime(&groundhogday)->tm_hour != 11)
24643 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
24647 #if HAVE_STRUCT_TM_TM_ZONE
24648 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
24650 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
24658 rm -f conftest$ac_exeext
24659 if { (ac_try="$ac_link"
24660 case "(($ac_try" in
24661 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24662 *) ac_try_echo
=$ac_try;;
24664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24665 (eval "$ac_link") 2>&5
24667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24668 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24669 { (case "(($ac_try" in
24670 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24671 *) ac_try_echo=$ac_try;;
24673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24674 (eval "$ac_try") 2>&5
24676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24677 (exit $ac_status); }; }; then
24678 ac_cv_working_tzset=yes
24680 echo "$as_me: program exited with status $ac_status" >&5
24681 echo "$as_me: failed program was:" >&5
24682 sed 's/^/| /' conftest.$ac_ext >&5
24684 ( exit $ac_status )
24685 ac_cv_working_tzset=no
24687 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24693 { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
24694 echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
24695 if test "$ac_cv_working_tzset" = yes
24698 cat >>confdefs.h <<\_ACEOF
24699 #define HAVE_WORKING_TZSET 1
24704 # Look for subsecond timestamps in struct stat
24705 { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
24706 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6; }
24707 if test "${ac_cv_stat_tv_nsec+set}" = set; then
24708 echo $ECHO_N "(cached) $ECHO_C" >&6
24710 cat >conftest.$ac_ext <<_ACEOF
24713 cat confdefs.h >>conftest.$ac_ext
24714 cat >>conftest.$ac_ext <<_ACEOF
24715 /* end confdefs.h. */
24716 #include <sys/stat.h>
24722 st.st_mtim.tv_nsec = 1;
24728 rm -f conftest.$ac_objext
24729 if { (ac_try="$ac_compile"
24730 case "(($ac_try" in
24731 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24732 *) ac_try_echo
=$ac_try;;
24734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24735 (eval "$ac_compile") 2>conftest.er1
24737 grep -v '^ *+' conftest.er1
>conftest.err
24739 cat conftest.err
>&5
24740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24741 (exit $ac_status); } && {
24742 test -z "$ac_c_werror_flag" ||
24743 test ! -s conftest.err
24744 } && test -s conftest.
$ac_objext; then
24745 ac_cv_stat_tv_nsec
=yes
24747 echo "$as_me: failed program was:" >&5
24748 sed 's/^/| /' conftest.
$ac_ext >&5
24750 ac_cv_stat_tv_nsec
=no
24753 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24756 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
24757 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
24758 if test "$ac_cv_stat_tv_nsec" = yes
24761 cat >>confdefs.h
<<\_ACEOF
24762 #define HAVE_STAT_TV_NSEC 1
24767 # Look for BSD style subsecond timestamps in struct stat
24768 { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
24769 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6; }
24770 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
24771 echo $ECHO_N "(cached) $ECHO_C" >&6
24773 cat >conftest.
$ac_ext <<_ACEOF
24776 cat confdefs.h
>>conftest.
$ac_ext
24777 cat >>conftest.
$ac_ext <<_ACEOF
24778 /* end confdefs.h. */
24779 #include <sys/stat.h>
24785 st.st_mtimespec.tv_nsec = 1;
24791 rm -f conftest.
$ac_objext
24792 if { (ac_try
="$ac_compile"
24793 case "(($ac_try" in
24794 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24795 *) ac_try_echo=$ac_try;;
24797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24798 (eval "$ac_compile") 2>conftest.er1
24800 grep -v '^ *+' conftest.er1 >conftest.err
24802 cat conftest.err >&5
24803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24804 (exit $ac_status); } && {
24805 test -z "$ac_c_werror_flag" ||
24806 test ! -s conftest.err
24807 } && test -s conftest.$ac_objext; then
24808 ac_cv_stat_tv_nsec2=yes
24810 echo "$as_me: failed program was:" >&5
24811 sed 's/^/| /' conftest.$ac_ext >&5
24813 ac_cv_stat_tv_nsec2=no
24816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24819 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
24820 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
24821 if test "$ac_cv_stat_tv_nsec2" = yes
24824 cat >>confdefs.h <<\_ACEOF
24825 #define HAVE_STAT_TV_NSEC2 1
24830 # On HP/UX 11.0, mvwdelch is a block with a return statement
24831 { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
24832 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6; }
24833 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
24834 echo $ECHO_N "(cached) $ECHO_C" >&6
24836 cat >conftest.$ac_ext <<_ACEOF
24839 cat confdefs.h >>conftest.$ac_ext
24840 cat >>conftest.$ac_ext <<_ACEOF
24841 /* end confdefs.h. */
24842 #include <curses.h>
24848 rtn = mvwdelch(0,0,0);
24854 rm -f conftest.$ac_objext
24855 if { (ac_try="$ac_compile"
24856 case "(($ac_try" in
24857 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24858 *) ac_try_echo
=$ac_try;;
24860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24861 (eval "$ac_compile") 2>conftest.er1
24863 grep -v '^ *+' conftest.er1
>conftest.err
24865 cat conftest.err
>&5
24866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24867 (exit $ac_status); } && {
24868 test -z "$ac_c_werror_flag" ||
24869 test ! -s conftest.err
24870 } && test -s conftest.
$ac_objext; then
24871 ac_cv_mvwdelch_is_expression
=yes
24873 echo "$as_me: failed program was:" >&5
24874 sed 's/^/| /' conftest.
$ac_ext >&5
24876 ac_cv_mvwdelch_is_expression
=no
24879 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24882 { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
24883 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
24885 if test "$ac_cv_mvwdelch_is_expression" = yes
24888 cat >>confdefs.h
<<\_ACEOF
24889 #define MVWDELCH_IS_EXPRESSION 1
24894 { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
24895 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6; }
24896 if test "${ac_cv_window_has_flags+set}" = set; then
24897 echo $ECHO_N "(cached) $ECHO_C" >&6
24899 cat >conftest.
$ac_ext <<_ACEOF
24902 cat confdefs.h
>>conftest.
$ac_ext
24903 cat >>conftest.
$ac_ext <<_ACEOF
24904 /* end confdefs.h. */
24905 #include <curses.h>
24917 rm -f conftest.
$ac_objext
24918 if { (ac_try
="$ac_compile"
24919 case "(($ac_try" in
24920 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24921 *) ac_try_echo=$ac_try;;
24923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24924 (eval "$ac_compile") 2>conftest.er1
24926 grep -v '^ *+' conftest.er1 >conftest.err
24928 cat conftest.err >&5
24929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24930 (exit $ac_status); } && {
24931 test -z "$ac_c_werror_flag" ||
24932 test ! -s conftest.err
24933 } && test -s conftest.$ac_objext; then
24934 ac_cv_window_has_flags=yes
24936 echo "$as_me: failed program was:" >&5
24937 sed 's/^/| /' conftest.$ac_ext >&5
24939 ac_cv_window_has_flags=no
24942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24945 { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
24946 echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
24949 if test "$ac_cv_window_has_flags" = yes
24952 cat >>confdefs.h <<\_ACEOF
24953 #define WINDOW_HAS_FLAGS 1
24958 { echo "$as_me:$LINENO: checking for is_term_resized" >&5
24959 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; }
24960 cat >conftest.$ac_ext <<_ACEOF
24963 cat confdefs.h >>conftest.$ac_ext
24964 cat >>conftest.$ac_ext <<_ACEOF
24965 /* end confdefs.h. */
24966 #include <curses.h>
24970 void *x=is_term_resized
24975 rm -f conftest.$ac_objext
24976 if { (ac_try="$ac_compile"
24977 case "(($ac_try" in
24978 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24979 *) ac_try_echo
=$ac_try;;
24981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24982 (eval "$ac_compile") 2>conftest.er1
24984 grep -v '^ *+' conftest.er1
>conftest.err
24986 cat conftest.err
>&5
24987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24988 (exit $ac_status); } && {
24989 test -z "$ac_c_werror_flag" ||
24990 test ! -s conftest.err
24991 } && test -s conftest.
$ac_objext; then
24993 cat >>confdefs.h
<<\_ACEOF
24994 #define HAVE_CURSES_IS_TERM_RESIZED 1
24997 { echo "$as_me:$LINENO: result: yes" >&5
24998 echo "${ECHO_T}yes" >&6; }
25000 echo "$as_me: failed program was:" >&5
25001 sed 's/^/| /' conftest.
$ac_ext >&5
25003 { echo "$as_me:$LINENO: result: no" >&5
25004 echo "${ECHO_T}no" >&6; }
25008 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25010 { echo "$as_me:$LINENO: checking for resize_term" >&5
25011 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; }
25012 cat >conftest.
$ac_ext <<_ACEOF
25015 cat confdefs.h
>>conftest.
$ac_ext
25016 cat >>conftest.
$ac_ext <<_ACEOF
25017 /* end confdefs.h. */
25018 #include <curses.h>
25022 void *x=resize_term
25027 rm -f conftest.
$ac_objext
25028 if { (ac_try
="$ac_compile"
25029 case "(($ac_try" in
25030 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25031 *) ac_try_echo=$ac_try;;
25033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25034 (eval "$ac_compile") 2>conftest.er1
25036 grep -v '^ *+' conftest.er1 >conftest.err
25038 cat conftest.err >&5
25039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25040 (exit $ac_status); } && {
25041 test -z "$ac_c_werror_flag" ||
25042 test ! -s conftest.err
25043 } && test -s conftest.$ac_objext; then
25045 cat >>confdefs.h <<\_ACEOF
25046 #define HAVE_CURSES_RESIZE_TERM 1
25049 { echo "$as_me:$LINENO: result: yes" >&5
25050 echo "${ECHO_T}yes" >&6; }
25052 echo "$as_me: failed program was:" >&5
25053 sed 's/^/| /' conftest.$ac_ext >&5
25055 { echo "$as_me:$LINENO: result: no" >&5
25056 echo "${ECHO_T}no" >&6; }
25060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25062 { echo "$as_me:$LINENO: checking for resizeterm" >&5
25063 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; }
25064 cat >conftest.$ac_ext <<_ACEOF
25067 cat confdefs.h >>conftest.$ac_ext
25068 cat >>conftest.$ac_ext <<_ACEOF
25069 /* end confdefs.h. */
25070 #include <curses.h>
25079 rm -f conftest.$ac_objext
25080 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
25088 grep -v '^ *+' conftest.er1
>conftest.err
25090 cat conftest.err
>&5
25091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25092 (exit $ac_status); } && {
25093 test -z "$ac_c_werror_flag" ||
25094 test ! -s conftest.err
25095 } && test -s conftest.
$ac_objext; then
25097 cat >>confdefs.h
<<\_ACEOF
25098 #define HAVE_CURSES_RESIZETERM 1
25101 { echo "$as_me:$LINENO: result: yes" >&5
25102 echo "${ECHO_T}yes" >&6; }
25104 echo "$as_me: failed program was:" >&5
25105 sed 's/^/| /' conftest.
$ac_ext >&5
25107 { echo "$as_me:$LINENO: result: no" >&5
25108 echo "${ECHO_T}no" >&6; }
25112 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25114 { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
25115 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; }
25117 if test -r /dev
/ptmx
25119 { echo "$as_me:$LINENO: result: yes" >&5
25120 echo "${ECHO_T}yes" >&6; }
25122 cat >>confdefs.h
<<\_ACEOF
25123 #define HAVE_DEV_PTMX 1
25127 { echo "$as_me:$LINENO: result: no" >&5
25128 echo "${ECHO_T}no" >&6; }
25131 { echo "$as_me:$LINENO: checking for /dev/ptc" >&5
25132 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
25134 if test -r /dev
/ptc
25136 { echo "$as_me:$LINENO: result: yes" >&5
25137 echo "${ECHO_T}yes" >&6; }
25139 cat >>confdefs.h
<<\_ACEOF
25140 #define HAVE_DEV_PTC 1
25144 { echo "$as_me:$LINENO: result: no" >&5
25145 echo "${ECHO_T}no" >&6; }
25148 { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
25149 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; }
25150 if test "$cross_compiling" = yes; then
25151 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25152 See \`config.log' for more details." >&5
25153 echo "$as_me: error: cannot run test program while cross compiling
25154 See \`config.log' for more details." >&2;}
25155 { (exit 1); exit 1; }; }
25157 cat >conftest.
$ac_ext <<_ACEOF
25160 cat confdefs.h
>>conftest.
$ac_ext
25161 cat >>conftest.
$ac_ext <<_ACEOF
25162 /* end confdefs.h. */
25164 #include <stddef.h>
25165 #include <string.h>
25167 #ifdef HAVE_SYS_TYPES_H
25168 #include <sys/types.h>
25171 #ifdef HAVE_SSIZE_T
25172 typedef ssize_t Py_ssize_t;
25173 #elif SIZEOF_VOID_P == SIZEOF_LONG
25174 typedef long Py_ssize_t;
25176 typedef int Py_ssize_t;
25183 if(sprintf(buffer, "%zd", (size_t)123) < 0)
25186 if (strcmp(buffer, "123"))
25189 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
25192 if (strcmp(buffer, "-123"))
25198 rm -f conftest
$ac_exeext
25199 if { (ac_try
="$ac_link"
25200 case "(($ac_try" in
25201 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25202 *) ac_try_echo=$ac_try;;
25204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25205 (eval "$ac_link") 2>&5
25207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25208 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25209 { (case "(($ac_try" in
25210 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25211 *) ac_try_echo
=$ac_try;;
25213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25214 (eval "$ac_try") 2>&5
25216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25217 (exit $ac_status); }; }; then
25218 { echo "$as_me:$LINENO: result: yes" >&5
25219 echo "${ECHO_T}yes" >&6; }
25221 cat >>confdefs.h
<<\_ACEOF
25222 #define PY_FORMAT_SIZE_T "z"
25226 echo "$as_me: program exited with status $ac_status" >&5
25227 echo "$as_me: failed program was:" >&5
25228 sed 's/^/| /' conftest.
$ac_ext >&5
25230 ( exit $ac_status )
25231 { echo "$as_me:$LINENO: result: no" >&5
25232 echo "${ECHO_T}no" >&6; }
25234 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
25239 { echo "$as_me:$LINENO: checking for socklen_t" >&5
25240 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
25241 if test "${ac_cv_type_socklen_t+set}" = set; then
25242 echo $ECHO_N "(cached) $ECHO_C" >&6
25244 cat >conftest.
$ac_ext <<_ACEOF
25247 cat confdefs.h
>>conftest.
$ac_ext
25248 cat >>conftest.
$ac_ext <<_ACEOF
25249 /* end confdefs.h. */
25251 #ifdef HAVE_SYS_TYPES_H
25252 #include <sys/types.h>
25254 #ifdef HAVE_SYS_SOCKET_H
25255 #include <sys/socket.h>
25259 typedef socklen_t ac__type_new_;
25263 if ((ac__type_new_ *) 0)
25265 if (sizeof (ac__type_new_))
25271 rm -f conftest.
$ac_objext
25272 if { (ac_try
="$ac_compile"
25273 case "(($ac_try" in
25274 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25275 *) ac_try_echo=$ac_try;;
25277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25278 (eval "$ac_compile") 2>conftest.er1
25280 grep -v '^ *+' conftest.er1 >conftest.err
25282 cat conftest.err >&5
25283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25284 (exit $ac_status); } && {
25285 test -z "$ac_c_werror_flag" ||
25286 test ! -s conftest.err
25287 } && test -s conftest.$ac_objext; then
25288 ac_cv_type_socklen_t=yes
25290 echo "$as_me: failed program was:" >&5
25291 sed 's/^/| /' conftest.$ac_ext >&5
25293 ac_cv_type_socklen_t=no
25296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25298 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
25299 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
25300 if test $ac_cv_type_socklen_t = yes; then
25304 cat >>confdefs.h <<\_ACEOF
25305 #define socklen_t int
25311 { echo "$as_me:$LINENO: checking for broken mbstowcs" >&5
25312 echo $ECHO_N "checking for broken mbstowcs... $ECHO_C" >&6; }
25313 if test "$cross_compiling" = yes; then
25314 ac_cv_broken_mbstowcs=no
25316 cat >conftest.$ac_ext <<_ACEOF
25319 cat confdefs.h >>conftest.$ac_ext
25320 cat >>conftest.$ac_ext <<_ACEOF
25321 /* end confdefs.h. */
25326 const char *str = "text";
25327 len = mbstowcs(NULL, str, 0);
25332 rm -f conftest$ac_exeext
25333 if { (ac_try="$ac_link"
25334 case "(($ac_try" in
25335 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25336 *) ac_try_echo
=$ac_try;;
25338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25339 (eval "$ac_link") 2>&5
25341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25342 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
25343 { (case "(($ac_try" in
25344 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25345 *) ac_try_echo=$ac_try;;
25347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25348 (eval "$ac_try") 2>&5
25350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25351 (exit $ac_status); }; }; then
25352 ac_cv_broken_mbstowcs=no
25354 echo "$as_me: program exited with status $ac_status" >&5
25355 echo "$as_me: failed program was:" >&5
25356 sed 's/^/| /' conftest.$ac_ext >&5
25358 ( exit $ac_status )
25359 ac_cv_broken_mbstowcs=yes
25361 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25365 { echo "$as_me:$LINENO: result: $ac_cv_broken_mbstowcs" >&5
25366 echo "${ECHO_T}$ac_cv_broken_mbstowcs" >&6; }
25367 if test "$ac_cv_broken_mbstowcs" = yes
25370 cat >>confdefs.h <<\_ACEOF
25371 #define HAVE_BROKEN_MBSTOWCS 1
25376 # Check for --with-computed-gotos
25377 { echo "$as_me:$LINENO: checking for --with-computed-gotos" >&5
25378 echo $ECHO_N "checking for --with-computed-gotos... $ECHO_C" >&6; }
25380 # Check whether --with-computed-gotos was given.
25381 if test "${with_computed_gotos+set}" = set; then
25382 withval=$with_computed_gotos;
25383 if test "$withval" != no
25386 cat >>confdefs.h <<\_ACEOF
25387 #define USE_COMPUTED_GOTOS 1
25390 { echo "$as_me:$LINENO: result: yes" >&5
25391 echo "${ECHO_T}yes" >&6; }
25392 else { echo "$as_me:$LINENO: result: no" >&5
25393 echo "${ECHO_T}no" >&6; }
25396 { echo "$as_me:$LINENO: result: no" >&5
25397 echo "${ECHO_T}no" >&6; }
25404 for h in `(cd $srcdir;echo Python
/thread_
*.h
)`
25406 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
25410 SRCDIRS="Parser Grammar Objects Python Modules Mac"
25411 { echo "$as_me:$LINENO: checking for build directories" >&5
25412 echo $ECHO_N "checking for build directories... $ECHO_C" >&6; }
25413 for dir in $SRCDIRS; do
25414 if test ! -d $dir; then
25418 { echo "$as_me:$LINENO: result: done" >&5
25419 echo "${ECHO_T}done" >&6; }
25421 # generate output files
25422 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config Misc/python.pc"
25424 cat >confcache <<\_ACEOF
25425 # This file is a shell script that caches the results of configure
25426 # tests run on this system so they can be shared between configure
25427 # scripts and configure runs, see configure's option --config-cache.
25428 # It is not useful on other systems. If it contains results you don't
25429 # want to keep, you may remove or edit it.
25431 # config.status only pays attention to the cache file if you give it
25432 # the --recheck option to rerun configure.
25434 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
25435 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25436 # following values.
25440 # The following way of writing the cache mishandles newlines in values,
25441 # but we know of no workaround that is simple, portable, and efficient.
25442 # So, we kill variables containing newlines.
25443 # Ultrix sh set writes to stderr and can't be redirected directly,
25444 # and sets the high bit in the cache file unless we assign to the vars.
25446 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25447 eval ac_val
=\$
$ac_var
25451 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25452 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25455 _ | IFS | as_nl
) ;; #(
25456 *) $as_unset $ac_var ;;
25462 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25463 *${as_nl}ac_space
=\
*)
25464 # `set' does not quote correctly, so add quotes (double-quote
25465 # substitution turns \\\\ into \\, and sed turns \\ into \).
25468 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25471 # `set' quotes correctly as required by POSIX, so do not add quotes.
25472 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25481 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25483 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25485 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
25486 if test -w "$cache_file"; then
25487 test "x$cache_file" != "x/dev/null" &&
25488 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25489 echo "$as_me: updating cache $cache_file" >&6;}
25490 cat confcache
>$cache_file
25492 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25493 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25498 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
25499 # Let make expand exec_prefix.
25500 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
25502 DEFS
=-DHAVE_CONFIG_H
25506 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
25507 # 1. Remove the extension, and $U if already installed.
25508 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
25509 ac_i
=`echo "$ac_i" | sed "$ac_script"`
25510 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25511 # will be set to the directory where LIBOBJS objects are built.
25512 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25513 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25515 LIBOBJS
=$ac_libobjs
25517 LTLIBOBJS
=$ac_ltlibobjs
25521 : ${CONFIG_STATUS=./config.status}
25522 ac_clean_files_save
=$ac_clean_files
25523 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
25524 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25525 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25526 cat >$CONFIG_STATUS <<_ACEOF
25528 # Generated by $as_me.
25529 # Run this file to recreate the current configuration.
25530 # Compiler output produced by configure, useful for debugging
25531 # configure, is in config.log if it exists.
25534 ac_cs_recheck=false
25536 SHELL=\${CONFIG_SHELL-$SHELL}
25539 cat >>$CONFIG_STATUS <<\_ACEOF
25540 ## --------------------- ##
25541 ## M4sh Initialization. ##
25542 ## --------------------- ##
25544 # Be more Bourne compatible
25545 DUALCASE
=1; export DUALCASE
# for MKS sh
25546 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
25549 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25550 # is contrary to our usage. Disable this feature.
25551 alias -g '${1+"$@"}'='"$@"'
25552 setopt NO_GLOB_SUBST
25554 case `(set -o) 2>/dev/null` in
25555 *posix
*) set -o posix
;;
25564 # Avoid depending upon Character Ranges.
25565 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
25566 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25567 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
25568 as_cr_digits
='0123456789'
25569 as_cr_alnum
=$as_cr_Letters$as_cr_digits
25571 # The user is always right.
25572 if test "${PATH_SEPARATOR+set}" != set; then
25573 echo "#! /bin/sh" >conf$$.sh
25574 echo "exit 0" >>conf$$.sh
25576 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
25584 # Support unset when possible.
25585 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
25593 # We need space, tab and new line, in precisely that order. Quoting is
25594 # there to prevent editors from complaining about space-tab.
25595 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25596 # splitting by setting IFS to empty value.)
25601 # Find who we are. Look in the path if we contain no directory separator.
25603 *[\\/]* ) as_myself
=$0 ;;
25604 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25605 for as_dir
in $PATH
25608 test -z "$as_dir" && as_dir
=.
25609 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
25615 # We did not find ourselves, most probably we were run as `sh COMMAND'
25616 # in which case we are not to be found in the path.
25617 if test "x$as_myself" = x
; then
25620 if test ! -f "$as_myself"; then
25621 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25622 { (exit 1); exit 1; }
25625 # Work around bugs in pre-3.0 UWIN ksh.
25626 for as_var
in ENV MAIL MAILPATH
25627 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
25635 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25636 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25637 LC_TELEPHONE LC_TIME
25639 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25640 eval $as_var=C
; export $as_var
25642 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
25646 # Required to use basename.
25647 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
25648 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
25654 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25655 as_basename
=basename
25661 # Name of the executable.
25662 as_me
=`$as_basename -- "$0" ||
25663 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25664 X"$0" : 'X\(//\)$' \| \
25665 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25667 sed '/^.*\/\([^/][^/]*\)\/*$/{
25686 as_lineno_1
=$LINENO
25687 as_lineno_2
=$LINENO
25688 test "x$as_lineno_1" != "x$as_lineno_2" &&
25689 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
25691 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25692 # uniformly replaced by the line number. The first 'sed' inserts a
25693 # line-number line after each line using $LINENO; the second 'sed'
25694 # does the real work. The second script uses 'N' to pair each
25695 # line-number line with the line containing $LINENO, and appends
25696 # trailing '-' during substitution so that $LINENO is not a special
25697 # case at line end.
25698 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25699 # scripts with optimization help from Paolo Bonzini. Blame Lee
25700 # E. McMahon (1931-1989) for sed's syntax. :-)
25712 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25715 ' >$as_me.lineno
&&
25716 chmod +x
"$as_me.lineno" ||
25717 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25718 { (exit 1); exit 1; }; }
25720 # Don't try to exec as it changes $[0], causing all sort of problems
25721 # (the dirname of $[0] is not the place where we might find the
25722 # original and so on. Autoconf is especially sensitive to this).
25723 .
"./$as_me.lineno"
25724 # Exit status is that of the last command.
25729 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
25735 ECHO_C
= ECHO_N
= ECHO_T
=
25736 case `echo -n x` in
25738 case `echo 'x\c'` in
25739 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
25746 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
25747 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
25753 rm -f conf$$ conf$$.exe conf$$.
file
25754 if test -d conf$$.dir
; then
25755 rm -f conf$$.dir
/conf$$.
file
25761 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
25763 # ... but there are two gotchas:
25764 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25765 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25766 # In both cases, we have to default to `cp -p'.
25767 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
25769 elif ln conf$$.
file conf$$
2>/dev
/null
; then
25774 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
25775 rmdir conf$$.dir
2>/dev
/null
25777 if mkdir
-p .
2>/dev
/null
; then
25780 test -d .
/-p && rmdir .
/-p
25784 if test -x / >/dev
/null
2>&1; then
25785 as_test_x
='test -x'
25787 if ls -dL / >/dev
/null
2>&1; then
25794 if test -d "$1"; then
25800 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25801 ???[sx]*):;;*)false;;esac;fi
25805 as_executable_p
=$as_test_x
25807 # Sed expression to map a string onto a valid CPP name.
25808 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25810 # Sed expression to map a string onto a valid variable name.
25811 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25816 # Save the log message, to keep $[0] and so on meaningful, and to
25817 # report actual input values of CONFIG_FILES etc. instead of their
25818 # values after options handling.
25820 This file was extended by python $as_me 3.1, which was
25821 generated by GNU Autoconf 2.61. Invocation command line was
25823 CONFIG_FILES = $CONFIG_FILES
25824 CONFIG_HEADERS = $CONFIG_HEADERS
25825 CONFIG_LINKS = $CONFIG_LINKS
25826 CONFIG_COMMANDS = $CONFIG_COMMANDS
25829 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25834 cat >>$CONFIG_STATUS <<_ACEOF
25835 # Files that config.status was made for.
25836 config_files="$ac_config_files"
25837 config_headers="$ac_config_headers"
25841 cat >>$CONFIG_STATUS <<\_ACEOF
25843 \`$as_me' instantiates files from templates according to the
25844 current configuration.
25846 Usage: $0 [OPTIONS] [FILE]...
25848 -h, --help print this help, then exit
25849 -V, --version print version number and configuration settings, then exit
25850 -q, --quiet do not print progress messages
25851 -d, --debug don't remove temporary files
25852 --recheck update $as_me by reconfiguring in the same conditions
25853 --file=FILE[:TEMPLATE]
25854 instantiate the configuration file FILE
25855 --header=FILE[:TEMPLATE]
25856 instantiate the configuration header FILE
25858 Configuration files:
25861 Configuration headers:
25864 Report bugs to <bug-autoconf@gnu.org>."
25867 cat >>$CONFIG_STATUS <<_ACEOF
25869 python config.status 3.1
25870 configured by $0, generated by GNU Autoconf 2.61,
25871 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25873 Copyright (C) 2006 Free Software Foundation, Inc.
25874 This config.status script is free software; the Free Software Foundation
25875 gives unlimited permission to copy, distribute and modify it."
25882 cat >>$CONFIG_STATUS <<\_ACEOF
25883 # If no file are specified by the user, then we need to provide default
25884 # value. By we need to know if files were specified by the user.
25890 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
25891 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
25902 # Handling of the options.
25903 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
25905 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
25906 echo "$ac_cs_version"; exit ;;
25907 --debug |
--debu |
--deb |
--de |
--d |
-d )
25909 --file |
--fil |
--fi |
--f )
25911 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
25912 ac_need_defaults
=false
;;
25913 --header |
--heade |
--head |
--hea )
25915 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
25916 ac_need_defaults
=false
;;
25918 # Conflict between --help and --header
25919 { echo "$as_me: error: ambiguous option: $1
25920 Try \`$0 --help' for more information." >&2
25921 { (exit 1); exit 1; }; };;
25922 --help |
--hel |
-h )
25923 echo "$ac_cs_usage"; exit ;;
25924 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
25925 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
25928 # This is an error.
25929 -*) { echo "$as_me: error: unrecognized option: $1
25930 Try \`$0 --help' for more information." >&2
25931 { (exit 1); exit 1; }; } ;;
25933 *) ac_config_targets
="$ac_config_targets $1"
25934 ac_need_defaults
=false
;;
25940 ac_configure_extra_args
=
25942 if $ac_cs_silent; then
25944 ac_configure_extra_args
="$ac_configure_extra_args --silent"
25948 cat >>$CONFIG_STATUS <<_ACEOF
25949 if \$ac_cs_recheck; then
25950 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25951 CONFIG_SHELL=$SHELL
25952 export CONFIG_SHELL
25953 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25957 cat >>$CONFIG_STATUS <<\_ACEOF
25961 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25962 ## Running $as_me. ##
25968 cat >>$CONFIG_STATUS <<_ACEOF
25971 cat >>$CONFIG_STATUS <<\_ACEOF
25973 # Handling of arguments.
25974 for ac_config_target
in $ac_config_targets
25976 case $ac_config_target in
25977 "pyconfig.h") CONFIG_HEADERS
="$CONFIG_HEADERS pyconfig.h" ;;
25978 "Mac/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/Makefile" ;;
25979 "Mac/PythonLauncher/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
25980 "Mac/Resources/framework/Info.plist") CONFIG_FILES
="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
25981 "Mac/Resources/app/Info.plist") CONFIG_FILES
="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
25982 "Makefile.pre") CONFIG_FILES
="$CONFIG_FILES Makefile.pre" ;;
25983 "Modules/Setup.config") CONFIG_FILES
="$CONFIG_FILES Modules/Setup.config" ;;
25984 "Misc/python.pc") CONFIG_FILES
="$CONFIG_FILES Misc/python.pc" ;;
25986 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25987 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25988 { (exit 1); exit 1; }; };;
25993 # If the user did not use the arguments to specify the items to instantiate,
25994 # then the envvar interface is used. Set only those that are not.
25995 # We use the long form for the default assignment because of an extremely
25996 # bizarre bug on SunOS 4.1.3.
25997 if $ac_need_defaults; then
25998 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
25999 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
26002 # Have a temporary directory for convenience. Make it in the build tree
26003 # simply because there is no reason against having it here, and in addition,
26004 # creating and moving files from /tmp can sometimes cause problems.
26005 # Hook for its removal unless debugging.
26006 # Note that there is a small window in which the directory will not be cleaned:
26007 # after its creation but before its name has been assigned to `$tmp'.
26011 trap 'exit_status=$?
26012 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26014 trap '{ (exit 1); exit 1; }' 1 2 13 15
26016 # Create a (secure) tmp directory for tmp files.
26019 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26020 test -n "$tmp" && test -d "$tmp"
26023 tmp
=.
/conf$$
-$RANDOM
26024 (umask 077 && mkdir
"$tmp")
26027 echo "$me: cannot create a temporary directory in ." >&2
26028 { (exit 1); exit 1; }
26032 # Set up the sed scripts for CONFIG_FILES section.
26035 # No need to generate the scripts if there are no CONFIG_FILES.
26036 # This happens for instance when ./config.status config.h
26037 if test -n "$CONFIG_FILES"; then
26044 for ac_last_try
in false false false false false
:; do
26045 cat >conf$
$subs.
sed <<_ACEOF
26046 SHELL!$SHELL$ac_delim
26047 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26048 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26049 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26050 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26051 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26052 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26053 exec_prefix!$exec_prefix$ac_delim
26054 prefix!$prefix$ac_delim
26055 program_transform_name!$program_transform_name$ac_delim
26056 bindir!$bindir$ac_delim
26057 sbindir!$sbindir$ac_delim
26058 libexecdir!$libexecdir$ac_delim
26059 datarootdir!$datarootdir$ac_delim
26060 datadir!$datadir$ac_delim
26061 sysconfdir!$sysconfdir$ac_delim
26062 sharedstatedir!$sharedstatedir$ac_delim
26063 localstatedir!$localstatedir$ac_delim
26064 includedir!$includedir$ac_delim
26065 oldincludedir!$oldincludedir$ac_delim
26066 docdir!$docdir$ac_delim
26067 infodir!$infodir$ac_delim
26068 htmldir!$htmldir$ac_delim
26069 dvidir!$dvidir$ac_delim
26070 pdfdir!$pdfdir$ac_delim
26071 psdir!$psdir$ac_delim
26072 libdir!$libdir$ac_delim
26073 localedir!$localedir$ac_delim
26074 mandir!$mandir$ac_delim
26075 DEFS!$DEFS$ac_delim
26076 ECHO_C!$ECHO_C$ac_delim
26077 ECHO_N!$ECHO_N$ac_delim
26078 ECHO_T!$ECHO_T$ac_delim
26079 LIBS!$LIBS$ac_delim
26080 build_alias!$build_alias$ac_delim
26081 host_alias!$host_alias$ac_delim
26082 target_alias!$target_alias$ac_delim
26083 VERSION!$VERSION$ac_delim
26084 SOVERSION!$SOVERSION$ac_delim
26085 CONFIG_ARGS!$CONFIG_ARGS$ac_delim
26086 UNIVERSALSDK!$UNIVERSALSDK$ac_delim
26087 ARCH_RUN_32BIT!$ARCH_RUN_32BIT$ac_delim
26088 PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
26089 PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim
26090 PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
26091 PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
26092 PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
26093 FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
26094 FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
26095 FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
26096 FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
26097 FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
26098 MACHDEP!$MACHDEP$ac_delim
26099 SGI_ABI!$SGI_ABI$ac_delim
26100 CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
26101 EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
26103 CFLAGS!$CFLAGS$ac_delim
26104 LDFLAGS!$LDFLAGS$ac_delim
26105 CPPFLAGS!$CPPFLAGS$ac_delim
26106 ac_ct_CC!$ac_ct_CC$ac_delim
26107 EXEEXT!$EXEEXT$ac_delim
26108 OBJEXT!$OBJEXT$ac_delim
26110 MAINCC!$MAINCC$ac_delim
26112 GREP!$GREP$ac_delim
26113 EGREP!$EGREP$ac_delim
26114 BUILDEXEEXT!$BUILDEXEEXT$ac_delim
26115 LIBRARY!$LIBRARY$ac_delim
26116 LDLIBRARY!$LDLIBRARY$ac_delim
26117 DLLLIBRARY!$DLLLIBRARY$ac_delim
26118 BLDLIBRARY!$BLDLIBRARY$ac_delim
26119 LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
26120 INSTSONAME!$INSTSONAME$ac_delim
26121 RUNSHARED!$RUNSHARED$ac_delim
26122 LINKCC!$LINKCC$ac_delim
26123 GNULD!$GNULD$ac_delim
26124 RANLIB!$RANLIB$ac_delim
26126 ARFLAGS!$ARFLAGS$ac_delim
26127 SVNVERSION!$SVNVERSION$ac_delim
26128 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
26129 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
26130 INSTALL_DATA!$INSTALL_DATA$ac_delim
26133 BASECFLAGS!$BASECFLAGS$ac_delim
26134 UNIVERSAL_ARCH_FLAGS!$UNIVERSAL_ARCH_FLAGS$ac_delim
26135 OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
26136 LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
26138 LDSHARED!$LDSHARED$ac_delim
26139 BLDSHARED!$BLDSHARED$ac_delim
26140 CCSHARED!$CCSHARED$ac_delim
26141 LINKFORSHARED!$LINKFORSHARED$ac_delim
26142 CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
26145 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26147 elif $ac_last_try; then
26148 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26149 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26150 { (exit 1); exit 1; }; }
26152 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
26156 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26157 if test -n "$ac_eof"; then
26158 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
26159 ac_eof
=`expr $ac_eof + 1`
26162 cat >>$CONFIG_STATUS <<_ACEOF
26163 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26164 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26167 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26168 s/^/s,@/; s/!/@,|#_!!_#|/
26171 s/'"$ac_delim"'$/,g/; t
26173 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26174 ' >>$CONFIG_STATUS <conf$
$subs.
sed
26175 rm -f conf$
$subs.
sed
26176 cat >>$CONFIG_STATUS <<_ACEOF
26182 for ac_last_try
in false false false false false
:; do
26183 cat >conf$
$subs.
sed <<_ACEOF
26184 SHLIBS!$SHLIBS$ac_delim
26185 USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
26186 SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
26187 USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
26188 LDLAST!$LDLAST$ac_delim
26189 THREADOBJ!$THREADOBJ$ac_delim
26190 DLINCLDIR!$DLINCLDIR$ac_delim
26191 DYNLOADFILE!$DYNLOADFILE$ac_delim
26192 MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
26193 TRUE!$TRUE$ac_delim
26194 LIBOBJS!$LIBOBJS$ac_delim
26195 HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
26196 HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
26197 HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
26198 HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
26199 HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
26200 LIBM!$LIBM$ac_delim
26201 LIBC!$LIBC$ac_delim
26202 THREADHEADERS!$THREADHEADERS$ac_delim
26203 SRCDIRS!$SRCDIRS$ac_delim
26204 LTLIBOBJS!$LTLIBOBJS$ac_delim
26207 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 21; then
26209 elif $ac_last_try; then
26210 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26211 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26212 { (exit 1); exit 1; }; }
26214 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
26218 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26219 if test -n "$ac_eof"; then
26220 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
26221 ac_eof
=`expr $ac_eof + 1`
26224 cat >>$CONFIG_STATUS <<_ACEOF
26225 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26226 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26229 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26230 s/^/s,@/; s/!/@,|#_!!_#|/
26233 s/'"$ac_delim"'$/,g/; t
26235 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26236 ' >>$CONFIG_STATUS <conf$
$subs.
sed
26237 rm -f conf$
$subs.
sed
26238 cat >>$CONFIG_STATUS <<_ACEOF
26245 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26246 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26247 # trailing colons and then remove the whole line if VPATH becomes empty
26248 # (actually we leave an empty line to preserve line numbers).
26249 if test "x$srcdir" = x.
; then
26250 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
26251 s/:*\$(srcdir):*/:/
26252 s/:*\${srcdir}:*/:/
26254 s/^\([^=]*=[ ]*\):*/\1/
26260 cat >>$CONFIG_STATUS <<\_ACEOF
26261 fi # test -n "$CONFIG_FILES"
26264 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
26267 :[FHLC
]) ac_mode
=$ac_tag; continue;;
26269 case $ac_mode$ac_tag in
26271 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26272 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26273 { (exit 1); exit 1; }; };;
26274 :[FH
]-) ac_tag
=-:-;;
26275 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
26292 -) ac_f
="$tmp/stdin";;
26293 *) # Look for the file first in the build tree, then in the source tree
26294 # (if the path is not absolute). The absolute path cannot be DOS-style,
26295 # because $ac_f cannot contain `:'.
26299 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
26301 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26302 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26303 { (exit 1); exit 1; }; };;
26305 ac_file_inputs
="$ac_file_inputs $ac_f"
26308 # Let's still pretend it is `configure' which instantiates (i.e., don't
26309 # use $as_me), people would be surprised to read:
26310 # /* config.h. Generated by config.status. */
26311 configure_input
="Generated from "`IFS=:
26312 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26313 if test x
"$ac_file" != x-
; then
26314 configure_input
="$ac_file. $configure_input"
26315 { echo "$as_me:$LINENO: creating $ac_file" >&5
26316 echo "$as_me: creating $ac_file" >&6;}
26320 *:-:* |
*:-) cat >"$tmp/stdin";;
26325 ac_dir
=`$as_dirname -- "$ac_file" ||
26326 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26327 X"$ac_file" : 'X\(//\)[^/]' \| \
26328 X"$ac_file" : 'X\(//\)$' \| \
26329 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26335 /^X\(\/\/\)[^/].*/{
26350 -*) as_dir
=.
/$as_dir;;
26352 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
26356 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26357 *) as_qdir
=$as_dir;;
26359 as_dirs
="'$as_qdir' $as_dirs"
26360 as_dir
=`$as_dirname -- "$as_dir" ||
26361 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26362 X"$as_dir" : 'X\(//\)[^/]' \| \
26363 X"$as_dir" : 'X\(//\)$' \| \
26364 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26366 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26370 /^X\(\/\/\)[^/].*/{
26383 test -d "$as_dir" && break
26385 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
26386 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26387 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26388 { (exit 1); exit 1; }; }; }
26392 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26394 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26395 # A ".." for each directory in $ac_dir_suffix.
26396 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26397 case $ac_top_builddir_sub in
26398 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26399 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
26402 ac_abs_top_builddir
=$ac_pwd
26403 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
26404 # for backward compatibility:
26405 ac_top_builddir
=$ac_top_build_prefix
26408 .
) # We are building in place.
26410 ac_top_srcdir
=$ac_top_builddir_sub
26411 ac_abs_top_srcdir
=$ac_pwd ;;
26412 [\\/]* | ?
:[\\/]* ) # Absolute name.
26413 ac_srcdir
=$srcdir$ac_dir_suffix;
26414 ac_top_srcdir
=$srcdir
26415 ac_abs_top_srcdir
=$srcdir ;;
26416 *) # Relative name.
26417 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
26418 ac_top_srcdir
=$ac_top_build_prefix$srcdir
26419 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
26421 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
26431 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
26432 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
26436 cat >>$CONFIG_STATUS <<\_ACEOF
26437 # If the template does not know about datarootdir, expand it.
26438 # FIXME: This hack should be removed a few years after 2.60.
26439 ac_datarootdir_hack
=; ac_datarootdir_seen
=
26441 case `sed -n '/datarootdir/ {
26450 ' $ac_file_inputs` in
26451 *datarootdir
*) ac_datarootdir_seen
=yes;;
26452 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
26453 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26454 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26456 cat >>$CONFIG_STATUS <<_ACEOF
26457 ac_datarootdir_hack='
26458 s&@datadir@&$datadir&g
26459 s&@docdir@&$docdir&g
26460 s&@infodir@&$infodir&g
26461 s&@localedir@&$localedir&g
26462 s&@mandir@&$mandir&g
26463 s&\\\${datarootdir}&$datarootdir&g' ;;
26467 # Neutralize VPATH when `$srcdir' = `.'.
26468 # Shell code in configure.ac might set extrasub.
26469 # FIXME: do we really want to maintain this feature?
26470 cat >>$CONFIG_STATUS <<_ACEOF
26474 cat >>$CONFIG_STATUS <<\_ACEOF
26476 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
26477 s
&@configure_input@
&$configure_input&;t t
26478 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
26479 s
&@srcdir@
&$ac_srcdir&;t t
26480 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
26481 s
&@top_srcdir@
&$ac_top_srcdir&;t t
26482 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
26483 s
&@builddir@
&$ac_builddir&;t t
26484 s
&@abs_builddir@
&$ac_abs_builddir&;t t
26485 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
26486 s
&@INSTALL@
&$ac_INSTALL&;t t
26487 $ac_datarootdir_hack
26488 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
26490 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26491 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
26492 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
26493 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
26494 which seems to be undefined. Please make sure it is defined." >&5
26495 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
26496 which seems to be undefined. Please make sure it is defined." >&2;}
26500 -) cat "$tmp/out"; rm -f "$tmp/out";;
26501 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
26510 # Transform confdefs.h into a sed script `conftest.defines', that
26511 # substitutes the proper values into config.h.in to produce config.h.
26512 rm -f conftest.defines conftest.
tail
26513 # First, append a space to every undef/define line, to ease matching.
26514 echo 's/$/ /' >conftest.defines
26515 # Then, protect against being on the right side of a sed subst, or in
26516 # an unquoted here document, in config.status. If some macros were
26517 # called several times there might be several #defines for the same
26518 # symbol, which is useless. But do not sort them, since the last
26519 # AC_DEFINE must be honored.
26520 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
26521 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
26522 # NAME is the cpp macro being defined, VALUE is the value it is being given.
26523 # PARAMS is the parameter list in the macro definition--in most cases, it's
26524 # just an empty string.
26525 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
26526 ac_dB
='\\)[ (].*,\\1define\\2'
26534 s/^[ ]*#[ ]*define[ ][ ]*//
26539 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
26540 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
26541 ' >>conftest.defines
26543 # Remove the space that was appended to ease matching.
26544 # Then replace #undef with comments. This is necessary, for
26545 # example, in the case of _POSIX_SOURCE, which is predefined and required
26546 # on some systems where configure will not decide to define it.
26547 # (The regexp can be short, since the line contains either #define or #undef.)
26549 s,^[ #]*u.*,/* & */,' >>conftest.defines
26551 # Break up conftest.defines:
26552 ac_max_sed_lines
=50
26554 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
26555 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
26556 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
26558 ac_in
='$ac_file_inputs'
26559 ac_out
='"$tmp/out1"'
26560 ac_nxt
='"$tmp/out2"'
26564 # Write a here document:
26565 cat >>$CONFIG_STATUS <<_ACEOF
26566 # First, check the format of the line:
26567 cat >"\$tmp/defines.sed" <<\\CEOF
26568 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
26569 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
26573 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
26575 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
26576 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
26577 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
26578 grep . conftest.
tail >/dev
/null ||
break
26579 rm -f conftest.defines
26580 mv conftest.
tail conftest.defines
26582 rm -f conftest.defines conftest.
tail
26584 echo "ac_result=$ac_in" >>$CONFIG_STATUS
26585 cat >>$CONFIG_STATUS <<\_ACEOF
26586 if test x
"$ac_file" != x-
; then
26587 echo "/* $configure_input */" >"$tmp/config.h"
26588 cat "$ac_result" >>"$tmp/config.h"
26589 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
26590 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26591 echo "$as_me: $ac_file is unchanged" >&6;}
26594 mv "$tmp/config.h" $ac_file
26597 echo "/* $configure_input */"
26609 { (exit 0); exit 0; }
26611 chmod +x
$CONFIG_STATUS
26612 ac_clean_files
=$ac_clean_files_save
26615 # configure is writing to config.log, and then calls config.status.
26616 # config.status does its own redirection, appending to config.log.
26617 # Unfortunately, on DOS this fails, as config.log is still kept open
26618 # by configure, so config.status won't be able to write to it; its
26619 # output is simply discarded. So we exec the FD to /dev/null,
26620 # effectively closing config.log, so it can be properly (re)opened and
26621 # appended to by config.status. When coming back to configure, we
26622 # need to make the FD available again.
26623 if test "$no_create" != yes; then
26625 ac_config_status_args
=
26626 test "$silent" = yes &&
26627 ac_config_status_args
="$ac_config_status_args --quiet"
26629 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
26631 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26632 # would make configure fail if this is the last instruction.
26633 $ac_cs_success ||
{ (exit 1); exit 1; }
26637 echo "creating Modules/Setup"
26638 if test ! -f Modules
/Setup
26640 cp $srcdir/Modules
/Setup.dist Modules
/Setup
26643 echo "creating Modules/Setup.local"
26644 if test ! -f Modules
/Setup.
local
26646 echo "# Edit this file for local setup changes" >Modules
/Setup.
local
26649 echo "creating Makefile"
26650 $SHELL $srcdir/Modules
/makesetup
-c $srcdir/Modules
/config.c.
in \
26651 -s Modules Modules
/Setup.config \
26652 Modules
/Setup.
local Modules
/Setup
26653 mv config.c Modules