2 # From configure.in Revision: 68312 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for python 2.7.
6 # Report bugs to <http://www.python.org/python-bugs>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be more Bourne compatible
17 DUALCASE
=1; export DUALCASE
# for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in
27 *posix
*) set -o posix
;;
36 # Avoid depending upon Character Ranges.
37 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits
='0123456789'
41 as_cr_alnum
=$as_cr_Letters$as_cr_digits
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45 echo "#! /bin/sh" >conf$$.sh
46 echo "exit 0" >>conf$$.sh
48 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
56 # Support unset when possible.
57 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
65 # We need space, tab and new line, in precisely that order. Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
73 # Find who we are. Look in the path if we contain no directory separator.
75 *[\\/]* ) as_myself
=$0 ;;
76 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
80 test -z "$as_dir" && as_dir
=.
81 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x
; then
92 if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var
in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
111 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C
; export $as_var
114 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
118 # Required to use basename.
119 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
126 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
133 # Name of the executable.
134 as_me
=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
139 sed '/^.*\/\([^/][^/]*\)\/*$/{
157 if test "x$CONFIG_SHELL" = x
; then
158 if (eval ":") 2>/dev
/null
; then
164 if test $as_have_required = yes && (eval ":
174 as_func_ret_success () {
177 as_func_ret_failure () {
182 if as_func_success; then
186 echo as_func_success failed.
189 if as_func_failure; then
191 echo as_func_failure succeeded.
194 if as_func_ret_success; then
198 echo as_func_ret_success failed.
201 if as_func_ret_failure; then
203 echo as_func_ret_failure succeeded.
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
210 echo positional parameters were not saved.
213 test \$exitcode = 0) || { (exit 1); exit 1; }
218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev
/null
; then
224 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
225 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
228 test -z "$as_dir" && as_dir
=.
231 for as_base
in sh bash ksh sh5
; do
232 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
239 for as_shell
in $as_candidate_shells $SHELL; do
240 # Try only shells that exist, to save several forks.
241 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
242 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247 # is contrary to our usage. Disable this feature.
248 alias -g '${1+"$@"}'='"$@"'
251 case `(set -o) 2>/dev/null` in
252 *posix
*) set -o posix
;;
261 CONFIG_SHELL
=$as_shell
263 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
272 case `(set -o) 2>/dev/null` in
273 *posix
*) set -o posix
;;
289 as_func_ret_success
() {
292 as_func_ret_failure
() {
297 if as_func_success
; then
301 echo as_func_success failed.
304 if as_func_failure
; then
306 echo as_func_failure succeeded.
309 if as_func_ret_success
; then
313 echo as_func_ret_success failed.
316 if as_func_ret_failure
; then
318 echo as_func_ret_failure succeeded.
321 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
325 echo positional parameters were not saved.
328 test $exitcode = 0) ||
{ (exit 1); exit 1; }
333 test "x$as_lineno_1" != "x$as_lineno_2" &&
334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
345 if test "x$CONFIG_SHELL" != x
; then
346 for as_var
in BASH_ENV ENV
347 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
354 if test $as_have_required = no
; then
355 echo This
script requires a shell
more modern than all the
356 echo shells that I found on your system. Please
install a
357 echo modern shell
, or manually run the
script under such a
358 echo shell
if you
do have one.
359 { (exit 1); exit 1; }
369 (eval "as_func_return () {
378 as_func_ret_success () {
381 as_func_ret_failure () {
386 if as_func_success; then
390 echo as_func_success failed.
393 if as_func_failure; then
395 echo as_func_failure succeeded.
398 if as_func_ret_success; then
402 echo as_func_ret_success failed.
405 if as_func_ret_failure; then
407 echo as_func_ret_failure succeeded.
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
414 echo positional parameters were not saved.
417 test \$exitcode = 0") ||
{
418 echo No shell found that supports shell functions.
419 echo Please tell autoconf@gnu.org about your system
,
420 echo including any error possibly output before this
428 test "x$as_lineno_1" != "x$as_lineno_2" &&
429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432 # uniformly replaced by the line number. The first 'sed' inserts a
433 # line-number line after each line using $LINENO; the second 'sed'
434 # does the real work. The second script uses 'N' to pair each
435 # line-number line with the line containing $LINENO, and appends
436 # trailing '-' during substitution so that $LINENO is not a special
438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439 # scripts with optimization help from Paolo Bonzini. Blame Lee
440 # E. McMahon (1931-1989) for sed's syntax. :-)
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
456 chmod +x
"$as_me.lineno" ||
457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458 { (exit 1); exit 1; }; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
464 # Exit status is that of the last command.
469 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
475 ECHO_C
= ECHO_N
= ECHO_T
=
479 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
486 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
493 rm -f conf$$ conf$$.exe conf$$.
file
494 if test -d conf$$.dir
; then
495 rm -f conf$$.dir
/conf$$.
file
501 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
503 # ... but there are two gotchas:
504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506 # In both cases, we have to default to `cp -p'.
507 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
509 elif ln conf$$.
file conf$$
2>/dev
/null
; then
514 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
515 rmdir conf$$.dir
2>/dev
/null
517 if mkdir
-p .
2>/dev
/null
; then
520 test -d .
/-p && rmdir .
/-p
524 if test -x / >/dev
/null
2>&1; then
527 if ls -dL / >/dev
/null
2>&1; then
534 if test -d "$1"; then
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
545 as_executable_p
=$as_test_x
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 exec 7<&0 </dev
/null
6>&1
558 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559 # so uname gets run too.
560 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
565 ac_default_prefix
=/usr
/local
567 ac_config_libobj_dir
=.
573 SHELL
=${CONFIG_SHELL-/bin/sh}
575 # Identity of this package.
576 PACKAGE_NAME
='python'
577 PACKAGE_TARNAME
='python'
578 PACKAGE_VERSION
='2.7'
579 PACKAGE_STRING
='python 2.7'
580 PACKAGE_BUGREPORT
='http://www.python.org/python-bugs'
582 ac_unique_file
="Include/object.h"
583 # Factoring default headers for most tests.
584 ac_includes_default
="\
586 #ifdef HAVE_SYS_TYPES_H
587 # include <sys/types.h>
589 #ifdef HAVE_SYS_STAT_H
590 # include <sys/stat.h>
596 # ifdef HAVE_STDLIB_H
601 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
606 #ifdef HAVE_STRINGS_H
607 # include <strings.h>
609 #ifdef HAVE_INTTYPES_H
610 # include <inttypes.h>
628 program_transform_name
662 PYTHONFRAMEWORKIDENTIFIER
664 PYTHONFRAMEWORKPREFIX
665 PYTHONFRAMEWORKINSTALLDIR
666 FRAMEWORKINSTALLFIRST
668 FRAMEWORKALTINSTALLFIRST
669 FRAMEWORKALTINSTALLLAST
670 FRAMEWORKUNIXTOOLSPREFIX
675 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
676 EXPORT_MACOSX_DEPLOYMENT_TARGET
727 HAVE_GETHOSTBYNAME_R_6_ARG
728 HAVE_GETHOSTBYNAME_R_5_ARG
729 HAVE_GETHOSTBYNAME_R_3_ARG
739 ac_precious_vars
='build_alias
750 # Initialize some variables set by options.
752 ac_init_version
=false
753 # The variables have the same names as the options, with
754 # dashes changed to underlines.
762 program_transform_name
=s
,x
,x
,
770 # Installation directory options.
771 # These are left unexpanded so users can "make install exec_prefix=/foo"
772 # and all the variables that are supposed to be based on exec_prefix
773 # by default will actually change.
774 # Use braces instead of parens because sh, perl, etc. also accept them.
775 # (The list follows the same order as the GNU Coding Standards.)
776 bindir
='${exec_prefix}/bin'
777 sbindir
='${exec_prefix}/sbin'
778 libexecdir
='${exec_prefix}/libexec'
779 datarootdir
='${prefix}/share'
780 datadir
='${datarootdir}'
781 sysconfdir
='${prefix}/etc'
782 sharedstatedir
='${prefix}/com'
783 localstatedir
='${prefix}/var'
784 includedir
='${prefix}/include'
785 oldincludedir
='/usr/include'
786 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
787 infodir
='${datarootdir}/info'
792 libdir
='${exec_prefix}/lib'
793 localedir
='${datarootdir}/locale'
794 mandir
='${datarootdir}/man'
800 # If the previous option needs an argument, assign it.
801 if test -n "$ac_prev"; then
802 eval $ac_prev=\
$ac_option
808 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
812 # Accept the important Cygnus configure options, so we can diagnose typos.
814 case $ac_dashdash$ac_option in
818 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
820 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
823 -build |
--build |
--buil |
--bui |
--bu)
824 ac_prev
=build_alias
;;
825 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
826 build_alias
=$ac_optarg ;;
828 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
829 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
830 ac_prev
=cache_file
;;
831 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
832 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
833 cache_file
=$ac_optarg ;;
836 cache_file
=config.cache
;;
838 -datadir |
--datadir |
--datadi |
--datad)
840 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
841 datadir
=$ac_optarg ;;
843 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
844 |
--dataroo |
--dataro |
--datar)
845 ac_prev
=datarootdir
;;
846 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
847 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
848 datarootdir
=$ac_optarg ;;
850 -disable-* |
--disable-*)
851 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
852 # Reject names that are not valid shell variable names.
853 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
854 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
855 { (exit 1); exit 1; }; }
856 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
857 eval enable_
$ac_feature=no
;;
859 -docdir |
--docdir |
--docdi |
--doc |
--do)
861 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
864 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
866 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
869 -enable-* |
--enable-*)
870 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
871 # Reject names that are not valid shell variable names.
872 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
873 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
874 { (exit 1); exit 1; }; }
875 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
876 eval enable_
$ac_feature=\
$ac_optarg ;;
878 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
879 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
880 |
--exec |
--exe |
--ex)
881 ac_prev
=exec_prefix
;;
882 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
883 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
884 |
--exec=* |
--exe=* |
--ex=*)
885 exec_prefix
=$ac_optarg ;;
887 -gas |
--gas |
--ga |
--g)
888 # Obsolete; use --with-gas.
891 -help |
--help |
--hel |
--he |
-h)
893 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
894 ac_init_help
=recursive
;;
895 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
896 ac_init_help
=short
;;
898 -host |
--host |
--hos |
--ho)
899 ac_prev
=host_alias
;;
900 -host=* |
--host=* |
--hos=* |
--ho=*)
901 host_alias
=$ac_optarg ;;
903 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
905 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
907 htmldir
=$ac_optarg ;;
909 -includedir |
--includedir |
--includedi |
--included |
--include \
910 |
--includ |
--inclu |
--incl |
--inc)
911 ac_prev
=includedir
;;
912 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
913 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
914 includedir
=$ac_optarg ;;
916 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
918 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
919 infodir
=$ac_optarg ;;
921 -libdir |
--libdir |
--libdi |
--libd)
923 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
926 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
927 |
--libexe |
--libex |
--libe)
928 ac_prev
=libexecdir
;;
929 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
930 |
--libexe=* |
--libex=* |
--libe=*)
931 libexecdir
=$ac_optarg ;;
933 -localedir |
--localedir |
--localedi |
--localed |
--locale)
935 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
936 localedir
=$ac_optarg ;;
938 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
939 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
940 ac_prev
=localstatedir
;;
941 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
942 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
943 localstatedir
=$ac_optarg ;;
945 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
947 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
951 # Obsolete; use --without-fp.
954 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
955 |
--no-cr |
--no-c |
-n)
958 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
959 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
962 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
963 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
964 |
--oldin |
--oldi |
--old |
--ol |
--o)
965 ac_prev
=oldincludedir
;;
966 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
967 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
968 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
969 oldincludedir
=$ac_optarg ;;
971 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
973 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
976 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
977 |
--program-pre |
--program-pr |
--program-p)
978 ac_prev
=program_prefix
;;
979 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
980 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
981 program_prefix
=$ac_optarg ;;
983 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
984 |
--program-suf |
--program-su |
--program-s)
985 ac_prev
=program_suffix
;;
986 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
987 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
988 program_suffix
=$ac_optarg ;;
990 -program-transform-name |
--program-transform-name \
991 |
--program-transform-nam |
--program-transform-na \
992 |
--program-transform-n |
--program-transform- \
993 |
--program-transform |
--program-transfor \
994 |
--program-transfo |
--program-transf \
995 |
--program-trans |
--program-tran \
996 |
--progr-tra |
--program-tr |
--program-t)
997 ac_prev
=program_transform_name
;;
998 -program-transform-name=* |
--program-transform-name=* \
999 |
--program-transform-nam=* |
--program-transform-na=* \
1000 |
--program-transform-n=* |
--program-transform-=* \
1001 |
--program-transform=* |
--program-transfor=* \
1002 |
--program-transfo=* |
--program-transf=* \
1003 |
--program-trans=* |
--program-tran=* \
1004 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1005 program_transform_name
=$ac_optarg ;;
1007 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1009 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1010 pdfdir
=$ac_optarg ;;
1012 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1014 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1017 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1018 |
-silent |
--silent |
--silen |
--sile |
--sil)
1021 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1023 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1025 sbindir
=$ac_optarg ;;
1027 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1028 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1029 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1031 ac_prev
=sharedstatedir
;;
1032 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1033 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1034 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1036 sharedstatedir
=$ac_optarg ;;
1038 -site |
--site |
--sit)
1040 -site=* |
--site=* |
--sit=*)
1043 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1045 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1046 srcdir
=$ac_optarg ;;
1048 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1049 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1050 ac_prev
=sysconfdir
;;
1051 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1052 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1053 sysconfdir
=$ac_optarg ;;
1055 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1056 ac_prev
=target_alias
;;
1057 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1058 target_alias
=$ac_optarg ;;
1060 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1063 -version |
--version |
--versio |
--versi |
--vers |
-V)
1064 ac_init_version
=: ;;
1067 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1068 # Reject names that are not valid shell variable names.
1069 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1070 { echo "$as_me: error: invalid package name: $ac_package" >&2
1071 { (exit 1); exit 1; }; }
1072 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1073 eval with_
$ac_package=\
$ac_optarg ;;
1075 -without-* |
--without-*)
1076 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1079 { echo "$as_me: error: invalid package name: $ac_package" >&2
1080 { (exit 1); exit 1; }; }
1081 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1082 eval with_
$ac_package=no
;;
1085 # Obsolete; use --with-x.
1088 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1089 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1090 ac_prev
=x_includes
;;
1091 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1092 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1093 x_includes
=$ac_optarg ;;
1095 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1096 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1097 ac_prev
=x_libraries
;;
1098 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1099 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1100 x_libraries
=$ac_optarg ;;
1102 -*) { echo "$as_me: error: unrecognized option: $ac_option
1103 Try \`$0 --help' for more information." >&2
1104 { (exit 1); exit 1; }; }
1108 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1109 # Reject names that are not valid shell variable names.
1110 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1111 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1112 { (exit 1); exit 1; }; }
1113 eval $ac_envvar=\
$ac_optarg
1114 export $ac_envvar ;;
1117 # FIXME: should be removed in autoconf 3.0.
1118 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1119 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1120 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1121 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1127 if test -n "$ac_prev"; then
1128 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1129 { echo "$as_me: error: missing argument to $ac_option" >&2
1130 { (exit 1); exit 1; }; }
1133 # Be sure to have absolute directory names.
1134 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1135 datadir sysconfdir sharedstatedir localstatedir includedir \
1136 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1137 libdir localedir mandir
1139 eval ac_val
=\$
$ac_var
1141 [\\/$
]* | ?
:[\\/]* ) continue;;
1142 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1144 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1145 { (exit 1); exit 1; }; }
1148 # There might be people who depend on the old broken behavior: `$host'
1149 # used to hold the argument of --host etc.
1150 # FIXME: To remove some day.
1153 target
=$target_alias
1155 # FIXME: To remove some day.
1156 if test "x$host_alias" != x
; then
1157 if test "x$build_alias" = x
; then
1158 cross_compiling
=maybe
1159 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1160 If a cross compiler is detected then cross compile mode will be used." >&2
1161 elif test "x$build_alias" != "x$host_alias"; then
1167 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1169 test "$silent" = yes && exec 6>/dev
/null
1172 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1173 ac_ls_di
=`ls -di .` &&
1174 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1175 { echo "$as_me: error: Working directory cannot be determined" >&2
1176 { (exit 1); exit 1; }; }
1177 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1178 { echo "$as_me: error: pwd does not report name of working directory" >&2
1179 { (exit 1); exit 1; }; }
1182 # Find the source files, if location was not specified.
1183 if test -z "$srcdir"; then
1184 ac_srcdir_defaulted
=yes
1185 # Try the directory containing this script, then the parent directory.
1186 ac_confdir
=`$as_dirname -- "$0" ||
1187 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1188 X"$0" : 'X\(//\)[^/]' \| \
1189 X"$0" : 'X\(//\)$' \| \
1190 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1192 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1210 if test ! -r "$srcdir/$ac_unique_file"; then
1214 ac_srcdir_defaulted
=no
1216 if test ! -r "$srcdir/$ac_unique_file"; then
1217 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1218 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1219 { (exit 1); exit 1; }; }
1221 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1223 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1224 { (exit 1); exit 1; }; }
1226 # When building in place, set srcdir=.
1227 if test "$ac_abs_confdir" = "$ac_pwd"; then
1230 # Remove unnecessary trailing slashes from srcdir.
1231 # Double slashes in file names in object file debugging info
1232 # mess up M-x gdb in Emacs.
1234 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1236 for ac_var
in $ac_precious_vars; do
1237 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1238 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1239 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1240 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1244 # Report the --help message.
1246 if test "$ac_init_help" = "long"; then
1247 # Omit some internal or obsolete options to make the list less imposing.
1248 # This message is too long to be a string in the A/UX 3.1 sh.
1250 \`configure' configures python 2.7 to adapt to many kinds of systems.
1252 Usage: $0 [OPTION]... [VAR=VALUE]...
1254 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1255 VAR=VALUE. See below for descriptions of some of the useful variables.
1257 Defaults for the options are specified in brackets.
1260 -h, --help display this help and exit
1261 --help=short display options specific to this package
1262 --help=recursive display the short help of all the included packages
1263 -V, --version display version information and exit
1264 -q, --quiet, --silent do not print \`checking...' messages
1265 --cache-file=FILE cache test results in FILE [disabled]
1266 -C, --config-cache alias for \`--cache-file=config.cache'
1267 -n, --no-create do not create output files
1268 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1270 Installation directories:
1271 --prefix=PREFIX install architecture-independent files in PREFIX
1272 [$ac_default_prefix]
1273 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1276 By default, \`make install' will install all the files in
1277 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1278 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1279 for instance \`--prefix=\$HOME'.
1281 For better control, use the options below.
1283 Fine tuning of the installation directories:
1284 --bindir=DIR user executables [EPREFIX/bin]
1285 --sbindir=DIR system admin executables [EPREFIX/sbin]
1286 --libexecdir=DIR program executables [EPREFIX/libexec]
1287 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1288 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1289 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1290 --libdir=DIR object code libraries [EPREFIX/lib]
1291 --includedir=DIR C header files [PREFIX/include]
1292 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1293 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1294 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1295 --infodir=DIR info documentation [DATAROOTDIR/info]
1296 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1297 --mandir=DIR man documentation [DATAROOTDIR/man]
1298 --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1299 --htmldir=DIR html documentation [DOCDIR]
1300 --dvidir=DIR dvi documentation [DOCDIR]
1301 --pdfdir=DIR pdf documentation [DOCDIR]
1302 --psdir=DIR ps documentation [DOCDIR]
1309 if test -n "$ac_init_help"; then
1310 case $ac_init_help in
1311 short | recursive
) echo "Configuration of python 2.7:";;
1316 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1317 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1318 --enable-universalsdk[=SDKDIR
]
1319 Build against Mac OS X
10.4u SDK
(ppc
/i386
)
1320 --enable-framework[=INSTALLDIR
]
1321 Build
(MacOSX|Darwin
) framework
1322 --enable-shared disable
/enable building shared python library
1323 --enable-profiling enable C-level code profiling
1324 --enable-toolbox-glue disable
/enable MacOSX glue code
for extensions
1325 --enable-ipv6 Enable ipv6
(with ipv4
) support
1326 --disable-ipv6 Disable ipv6 support
1327 --enable-big-digits[=BITS
]
1328 use big digits
for Python longs
[BITS
=30]
1329 --enable-unicode[=ucs
[24]]
1330 Enable Unicode
strings (default is
yes)
1333 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1334 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1335 --with-universal-archs=ARCH
1336 select architectures
for universal build
("32-bit",
1338 --with-framework-name=FRAMEWORK
1339 specify an alternate name of the framework built
1340 with
--enable-framework
1341 --without-gcc never use gcc
1342 --with-cxx-main=<compiler
>
1343 compile main
() and link python executable with C
++
1345 --with-suffix=.exe
set executable suffix
1346 --with-pydebug build with Py_DEBUG defined
1347 --with-libs='lib1 ...' link against additional libs
1348 --with-system-ffi build _ctypes module using an installed ffi library
1349 --with-signal-module disable
/enable signal module
1350 --with-dec-threads use DEC Alpha
/OSF1 thread-safe libraries
1351 --with(out
)-threads[=DIRECTORY
]
1352 disable
/enable thread support
1353 --with(out
)-thread[=DIRECTORY
]
1354 deprecated
; use
--with(out
)-threads
1355 --with-pth use GNU pth threading libraries
1356 --with(out
)-doc-strings disable
/enable documentation
strings
1357 --with(out
)-tsc enable
/disable timestamp counter profile
1358 --with(out
)-pymalloc disable
/enable specialized mallocs
1359 --with-wctype-functions use wctype.h functions
1360 --with-fpectl enable SIGFPE catching
1361 --with-libm=STRING math library
1362 --with-libc=STRING C library
1364 Some influential environment variables
:
1365 CC C compiler
command
1366 CFLAGS C compiler flags
1367 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1368 nonstandard directory
<lib dir
>
1369 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1370 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1371 you have headers
in a nonstandard directory
<include dir
>
1374 Use these variables to override the choices made by
`configure' or to help
1375 it to find libraries and programs with nonstandard names/locations.
1377 Report bugs to <http://www.python.org/python-bugs>.
1382 if test "$ac_init_help" = "recursive"; then
1383 # If there are subdirs, report their specific --help.
1384 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1385 test -d "$ac_dir" || continue
1389 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1391 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1392 # A ".." for each directory in $ac_dir_suffix.
1393 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1394 case $ac_top_builddir_sub in
1395 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1396 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1399 ac_abs_top_builddir=$ac_pwd
1400 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1401 # for backward compatibility:
1402 ac_top_builddir=$ac_top_build_prefix
1405 .) # We are building in place.
1407 ac_top_srcdir=$ac_top_builddir_sub
1408 ac_abs_top_srcdir=$ac_pwd ;;
1409 [\\/]* | ?:[\\/]* ) # Absolute name.
1410 ac_srcdir=$srcdir$ac_dir_suffix;
1411 ac_top_srcdir=$srcdir
1412 ac_abs_top_srcdir=$srcdir ;;
1414 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1415 ac_top_srcdir=$ac_top_build_prefix$srcdir
1416 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1418 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1420 cd "$ac_dir" || { ac_status=$?; continue; }
1421 # Check for guested configure.
1422 if test -f "$ac_srcdir/configure.gnu"; then
1424 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1425 elif test -f "$ac_srcdir/configure"; then
1427 $SHELL "$ac_srcdir/configure" --help=recursive
1429 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1431 cd "$ac_pwd" || { ac_status=$?; break; }
1435 test -n "$ac_init_help" && exit $ac_status
1436 if $ac_init_version; then
1438 python configure 2.7
1439 generated by GNU Autoconf 2.61
1441 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1442 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1443 This configure script is free software; the Free Software Foundation
1444 gives unlimited permission to copy, distribute and modify it.
1448 cat >config.log <<_ACEOF
1449 This file contains any messages produced by compilers while
1450 running configure, to aid debugging if configure makes a mistake.
1452 It was created by python $as_me 2.7, which was
1453 generated by GNU Autoconf 2.61. Invocation command line was
1465 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1466 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1467 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1468 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1469 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1471 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1472 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1474 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1475 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1476 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1477 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1478 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1479 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1480 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1488 test -z "$as_dir" && as_dir=.
1489 echo "PATH: $as_dir"
1505 # Keep a trace of the command line.
1506 # Strip out --no-create and --no-recursion so they do not pile up.
1507 # Strip out --silent because we don't want to record it for future runs.
1508 # Also quote any args containing shell meta-characters.
1509 # Make two passes to allow for proper duplicate-argument suppression.
1513 ac_must_keep_next=false
1519 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1520 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1521 | -silent | --silent | --silen | --sile | --sil)
1524 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1527 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1529 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1530 if test $ac_must_keep_next = true; then
1531 ac_must_keep_next=false # Got value, back to normal.
1534 *=* | --config-cache | -C | -disable-* | --disable-* \
1535 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1536 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1537 | -with-* | --with-* | -without-* | --without-* | --x)
1538 case "$ac_configure_args0 " in
1539 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1542 -* ) ac_must_keep_next=true ;;
1545 ac_configure_args="$ac_configure_args '$ac_arg'"
1550 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1551 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1553 # When interrupted or exit'd, cleanup temporary files, and complete
1554 # config.log. We remove comments because anyway the quotes in there
1555 # would cause problems or look ugly.
1556 # WARNING: Use '\'' to represent an apostrophe within the trap.
1557 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1558 trap 'exit_status=$?
1559 # Save into config.log some information that might help in debugging.
1564 ## ---------------- ##
1565 ## Cache variables. ##
1566 ## ---------------- ##
1569 # The following way of writing the cache mishandles newlines in values,
1571 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1572 eval ac_val=\$$ac_var
1576 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1577 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1580 _ | IFS | as_nl) ;; #(
1581 *) $as_unset $ac_var ;;
1586 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1587 *${as_nl}ac_space=\ *)
1589 "s/'\''/'\''\\\\'\'''\''/g;
1590 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1593 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1601 ## ----------------- ##
1602 ## Output variables. ##
1603 ## ----------------- ##
1606 for ac_var in $ac_subst_vars
1608 eval ac_val=\$$ac_var
1610 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1612 echo "$ac_var='\''$ac_val'\''"
1616 if test -n "$ac_subst_files"; then
1618 ## ------------------- ##
1619 ## File substitutions. ##
1620 ## ------------------- ##
1623 for ac_var in $ac_subst_files
1625 eval ac_val=\$$ac_var
1627 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1629 echo "$ac_var='\''$ac_val'\''"
1634 if test -s confdefs.h; then
1644 test "$ac_signal" != 0 &&
1645 echo "$as_me: caught signal $ac_signal"
1646 echo "$as_me: exit $exit_status"
1648 rm -f core *.core core.conftest.* &&
1649 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1652 for ac_signal in 1 2 13 15; do
1653 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1657 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1658 rm -f -r conftest* confdefs.h
1660 # Predefined preprocessor variables.
1662 cat >>confdefs.h <<_ACEOF
1663 #define PACKAGE_NAME "$PACKAGE_NAME"
1667 cat >>confdefs.h <<_ACEOF
1668 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1672 cat >>confdefs.h <<_ACEOF
1673 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1677 cat >>confdefs.h <<_ACEOF
1678 #define PACKAGE_STRING "$PACKAGE_STRING"
1682 cat >>confdefs.h <<_ACEOF
1683 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1687 # Let the site file select an alternate cache file if it wants to.
1688 # Prefer explicitly selected file to automatically selected ones.
1689 if test -n "$CONFIG_SITE"; then
1690 set x "$CONFIG_SITE"
1691 elif test "x$prefix" != xNONE; then
1692 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1694 set x "$ac_default_prefix/share/config.site" \
1695 "$ac_default_prefix/etc/config.site"
1700 if test -r "$ac_site_file"; then
1701 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1702 echo "$as_me: loading site script $ac_site_file" >&6;}
1703 sed 's/^/| /' "$ac_site_file" >&5
1708 if test -r "$cache_file"; then
1709 # Some versions of bash will fail to source /dev/null (special
1710 # files actually), so we avoid doing that.
1711 if test -f "$cache_file"; then
1712 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1713 echo "$as_me: loading cache $cache_file" >&6;}
1715 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1716 *) . "./$cache_file";;
1720 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1721 echo "$as_me: creating cache $cache_file" >&6;}
1725 # Check that the precious variables saved in the cache have kept the same
1727 ac_cache_corrupted=false
1728 for ac_var in $ac_precious_vars; do
1729 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1730 eval ac_new_set=\$ac_env_${ac_var}_set
1731 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1732 eval ac_new_val=\$ac_env_${ac_var}_value
1733 case $ac_old_set,$ac_new_set in
1735 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1736 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1737 ac_cache_corrupted=: ;;
1739 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1740 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1741 ac_cache_corrupted=: ;;
1744 if test "x$ac_old_val" != "x$ac_new_val"; then
1745 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1746 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1747 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1748 echo "$as_me: former value
: $ac_old_val" >&2;}
1749 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1750 echo "$as_me: current value
: $ac_new_val" >&2;}
1751 ac_cache_corrupted=:
1754 # Pass precious variables to config.status.
1755 if test "$ac_new_set" = set; then
1757 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1758 *) ac_arg=$ac_var=$ac_new_val ;;
1760 case " $ac_configure_args " in
1761 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1762 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1766 if $ac_cache_corrupted; then
1767 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1768 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1769 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1770 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1771 { (exit 1); exit 1; }; }
1799 ac_cpp='$CPP $CPPFLAGS'
1800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1806 ac_config_headers="$ac_config_headers pyconfig.h"
1814 # We don't use PACKAGE_ variables, and they cause conflicts
1815 # with other autoconf-based packages that include Python.h
1816 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1818 mv confdefs.h.new confdefs.h
1826 # The later defininition of _XOPEN_SOURCE disables certain features
1827 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1829 cat >>confdefs.h <<\_ACEOF
1830 #define _GNU_SOURCE 1
1834 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1835 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1838 cat >>confdefs.h <<\_ACEOF
1839 #define _NETBSD_SOURCE 1
1843 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1844 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1847 cat >>confdefs.h <<\_ACEOF
1848 #define __BSD_VISIBLE 1
1852 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1853 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1855 cat >>confdefs.h <<\_ACEOF
1856 #define _BSD_TYPES 1
1860 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1861 # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
1864 cat >>confdefs.h <<\_ACEOF
1865 #define _DARWIN_C_SOURCE 1
1870 define_xopen_source=yes
1872 # Arguments passed to configure.
1874 CONFIG_ARGS="$ac_configure_args"
1876 # Check whether --enable-universalsdk was given.
1877 if test "${enable_universalsdk+set}" = set; then
1878 enableval=$enable_universalsdk;
1881 enableval=/Developer/SDKs/MacOSX10.4u.sdk
1887 enable_universalsdk=
1890 UNIVERSALSDK=$enableval
1897 enable_universalsdk=
1906 UNIVERSAL_ARCHS="32-bit"
1907 { echo "$as_me:$LINENO: checking for --with-universal-archs" >&5
1908 echo $ECHO_N "checking for --with-universal-archs... $ECHO_C" >&6; }
1910 # Check whether --with-universal-archs was given.
1911 if test "${with_universal_archs+set}" = set; then
1912 withval=$with_universal_archs;
1913 { echo "$as_me:$LINENO: result: $withval" >&5
1914 echo "${ECHO_T}$withval" >&6; }
1915 UNIVERSAL_ARCHS="$withval"
1919 { echo "$as_me:$LINENO: result: 32-bit" >&5
1920 echo "${ECHO_T}32-bit" >&6; }
1928 # Check whether --with-framework-name was given.
1929 if test "${with_framework_name+set}" = set; then
1930 withval=$with_framework_name;
1931 PYTHONFRAMEWORK=${withval}
1932 PYTHONFRAMEWORKDIR=${withval}.framework
1933 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval |
tr 'A-Z' 'a-z'`
1937 PYTHONFRAMEWORK=Python
1938 PYTHONFRAMEWORKDIR=Python.framework
1939 PYTHONFRAMEWORKIDENTIFIER=org.python.python
1943 # Check whether --enable-framework was given.
1944 if test "${enable_framework+set}" = set; then
1945 enableval=$enable_framework;
1948 enableval=/Library/Frameworks
1953 PYTHONFRAMEWORKDIR=no-framework
1954 PYTHONFRAMEWORKPREFIX=
1955 PYTHONFRAMEWORKINSTALLDIR=
1956 FRAMEWORKINSTALLFIRST=
1957 FRAMEWORKINSTALLLAST=
1958 FRAMEWORKALTINSTALLFIRST=
1959 FRAMEWORKALTINSTALLLAST=
1960 if test "x${prefix}" = "xNONE"; then
1961 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1963 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1968 PYTHONFRAMEWORKPREFIX=$enableval
1969 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1970 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
1971 FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall"
1972 if test "$UNIVERSAL_ARCHS" = "all"
1974 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkinstallunixtools4way"
1976 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
1979 if test "x${prefix}" = "xNONE" ; then
1980 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1982 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1984 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
1986 # Add files for Mac specific code to the list of output
1988 ac_config_files="$ac_config_files Mac/Makefile"
1990 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
1992 ac_config_files="$ac_config_files Mac/IDLE/Makefile"
1994 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
1996 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
2003 PYTHONFRAMEWORKDIR=no-framework
2004 PYTHONFRAMEWORKPREFIX=
2005 PYTHONFRAMEWORKINSTALLDIR=
2006 FRAMEWORKINSTALLFIRST=
2007 FRAMEWORKINSTALLLAST=
2008 FRAMEWORKALTINSTALLFIRST=
2009 FRAMEWORKALTINSTALLLAST=
2010 if test "x${prefix}" = "xNONE" ; then
2011 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2013 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2017 if test "$UNIVERSAL_ARCHS" = "all"
2019 FRAMEWORKINSTALLLAST=update4wayuniversal
2020 FRAMEWORKALTINSTALLLAST=update4wayuniversal
2037 ## AC_HELP_STRING(--with-dyld,
2038 ## Use (OpenStep|Rhapsody) dynamic linker))
2040 # Set name for machine-dependent library files
2042 { echo "$as_me:$LINENO: checking MACHDEP" >&5
2043 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; }
2044 if test -z "$MACHDEP"
2046 ac_sys_system=`uname
-s`
2047 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
2048 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
2049 ac_sys_release=`uname
-v`
2051 ac_sys_release=`uname
-r`
2053 ac_md_system=`echo $ac_sys_system |
2054 tr -d '/ ' |
tr '[A-Z]' '[a-z]'`
2055 ac_md_release=`echo $ac_sys_release |
2056 tr -d '/ ' |
sed 's/^[A-Z]\.//' |
sed 's/\..*//'`
2057 MACHDEP="$ac_md_system$ac_md_release"
2060 cygwin*) MACHDEP="cygwin";;
2061 darwin*) MACHDEP="darwin";;
2062 atheos*) MACHDEP="atheos";;
2063 irix646) MACHDEP="irix6";;
2064 '') MACHDEP="unknown";;
2068 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
2069 # disable features if it is defined, without any means to access these
2070 # features as extensions. For these systems, we skip the definition of
2071 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
2072 # some feature, make sure there is no alternative way to access this
2073 # feature. Also, when using wildcards, make sure you have verified the
2074 # need for not defining _XOPEN_SOURCE on all systems matching the
2075 # wildcard, and that the wildcard does not include future systems
2076 # (which may remove their limitations).
2077 case $ac_sys_system/$ac_sys_release in
2078 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
2079 # even though select is a POSIX function. Reported by J. Ribbens.
2080 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
2081 OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123])
2082 define_xopen_source=no
2083 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2084 # also defined. This can be overridden by defining _BSD_SOURCE
2085 # As this has a different meaning on Linux, only define it on OpenBSD
2087 cat >>confdefs.h <<\_ACEOF
2088 #define _BSD_SOURCE 1
2092 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
2093 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
2095 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
2096 define_xopen_source=no;;
2097 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
2098 # of union __?sigval. Reported by Stuart Bishop.
2100 define_xopen_source=no;;
2101 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
2102 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
2103 # Reconfirmed for 7.1.4 by Martin v. Loewis.
2104 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
2105 define_xopen_source=no;;
2106 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
2107 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
2109 define_xopen_source=no;;
2110 # On FreeBSD 4, the math functions C89 does not cover are never defined
2111 # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them.
2113 define_xopen_source=no;;
2114 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
2115 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
2116 # identifies itself as Darwin/7.*
2117 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2118 # disables platform specific features beyond repair.
2119 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2120 # has no effect, don't bother defining them
2122 define_xopen_source=no;;
2123 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
2124 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
2125 # or has another value. By not (re)defining it, the defaults come in place.
2127 define_xopen_source=no;;
2129 if test `uname
-r` -eq 1; then
2130 define_xopen_source=no
2133 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
2134 # defining NI_NUMERICHOST.
2136 define_xopen_source=no
2141 if test $define_xopen_source = yes
2143 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
2144 # defined precisely as g++ defines it
2145 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
2147 case $ac_sys_system/$ac_sys_release in
2148 SunOS/5.8|SunOS/5.9|SunOS/5.10)
2150 cat >>confdefs.h <<\_ACEOF
2151 #define _XOPEN_SOURCE 500
2157 cat >>confdefs.h <<\_ACEOF
2158 #define _XOPEN_SOURCE 600
2164 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
2165 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
2166 # several APIs are not declared. Since this is also needed in some
2167 # cases for HP-UX, we define it globally.
2168 # except for Solaris 10, where it must not be defined,
2169 # as it implies XPG4.2
2170 case $ac_sys_system/$ac_sys_release in
2175 cat >>confdefs.h <<\_ACEOF
2176 #define _XOPEN_SOURCE_EXTENDED 1
2183 cat >>confdefs.h <<\_ACEOF
2184 #define _POSIX_C_SOURCE 200112L
2191 # SGI compilers allow the specification of the both the ABI and the
2192 # ISA on the command line. Depending on the values of these switches,
2193 # different and often incompatable code will be generated.
2195 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
2196 # thus supply support for various ABI/ISA combinations. The MACHDEP
2197 # variable is also adjusted.
2200 if test ! -z "$SGI_ABI"
2203 LDFLAGS="$SGI_ABI $LDFLAGS"
2204 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" |
sed 's/ *//g'`
2206 { echo "$as_me:$LINENO: result: $MACHDEP" >&5
2207 echo "${ECHO_T}$MACHDEP" >&6; }
2209 # And add extra plat-mac for darwin
2212 { echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
2213 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6; }
2214 if test -z "$EXTRAPLATDIR"
2218 EXTRAPLATDIR="\$(PLATMACDIRS)"
2219 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
2227 { echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
2228 echo "${ECHO_T}$EXTRAPLATDIR" >&6; }
2230 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
2231 # it may influence the way we can build extensions, so distutils
2235 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
2236 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
2238 { echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5
2239 echo $ECHO_N "checking machine type as reported by uname -m... $ECHO_C" >&6; }
2240 ac_sys_machine=`uname
-m`
2241 { echo "$as_me:$LINENO: result: $ac_sys_machine" >&5
2242 echo "${ECHO_T}$ac_sys_machine" >&6; }
2244 # checks for alternative programs
2246 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
2247 # for debug/optimization stuff. BASECFLAGS is for flags that are required
2248 # just to get things to compile and link. Users are free to override OPT
2249 # when running configure or make. The build should not break if they do.
2250 # BASECFLAGS should generally not be messed with, however.
2252 # XXX shouldn't some/most/all of this code be merged with the stuff later
2253 # on that fiddles with OPT and BASECFLAGS?
2254 { echo "$as_me:$LINENO: checking for --without-gcc" >&5
2255 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; }
2257 # Check whether --with-gcc was given.
2258 if test "${with_gcc+set}" = set; then
2266 without_gcc=$withval;;
2270 case $ac_sys_system in
2274 case $BE_HOST_CPU in
2278 BASECFLAGS="$BASECFLAGS -export pragma"
2280 LDFLAGS="$LDFLAGS -nodup"
2288 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
2289 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
2290 { (exit 1); exit 1; }; }
2293 AR="\$(srcdir)/Modules/ar_beos"
2303 { echo "$as_me:$LINENO: result: $without_gcc" >&5
2304 echo "${ECHO_T}$without_gcc" >&6; }
2306 # If the user switches compilers, we can't believe the cache
2307 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
2309 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
2310 (it is also a good idea to do 'make clean' before compiling)" >&5
2311 echo "$as_me: error: cached CC is different -- throw away $cache_file
2312 (it is also a good idea to do 'make clean' before compiling)" >&2;}
2313 { (exit 1); exit 1; }; }
2317 ac_cpp='$CPP $CPPFLAGS'
2318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2321 if test -n "$ac_tool_prefix"; then
2322 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2323 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2324 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2326 if test "${ac_cv_prog_CC+set}" = set; then
2327 echo $ECHO_N "(cached) $ECHO_C" >&6
2329 if test -n "$CC"; then
2330 ac_cv_prog_CC="$CC" # Let the user override the test.
2332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2336 test -z "$as_dir" && as_dir=.
2337 for ac_exec_ext in '' $ac_executable_extensions; do
2338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2339 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2350 if test -n "$CC"; then
2351 { echo "$as_me:$LINENO: result: $CC" >&5
2352 echo "${ECHO_T}$CC" >&6; }
2354 { echo "$as_me:$LINENO: result: no" >&5
2355 echo "${ECHO_T}no" >&6; }
2360 if test -z "$ac_cv_prog_CC"; then
2362 # Extract the first word of "gcc", so it can be a program name with args.
2363 set dummy gcc; ac_word=$2
2364 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2366 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2367 echo $ECHO_N "(cached) $ECHO_C" >&6
2369 if test -n "$ac_ct_CC"; then
2370 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2376 test -z "$as_dir" && as_dir=.
2377 for ac_exec_ext in '' $ac_executable_extensions; do
2378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2379 ac_cv_prog_ac_ct_CC="gcc"
2380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2389 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2390 if test -n "$ac_ct_CC"; then
2391 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2392 echo "${ECHO_T}$ac_ct_CC" >&6; }
2394 { echo "$as_me:$LINENO: result: no" >&5
2395 echo "${ECHO_T}no" >&6; }
2398 if test "x$ac_ct_CC" = x; then
2401 case $cross_compiling:$ac_tool_warned in
2403 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2404 whose name does not start with the host triplet. If you think this
2405 configuration is useful to you, please write to autoconf@gnu.org." >&5
2406 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2407 whose name does not start with the host triplet. If you think this
2408 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2409 ac_tool_warned=yes ;;
2417 if test -z "$CC"; then
2418 if test -n "$ac_tool_prefix"; then
2419 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2420 set dummy ${ac_tool_prefix}cc; ac_word=$2
2421 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2423 if test "${ac_cv_prog_CC+set}" = set; then
2424 echo $ECHO_N "(cached) $ECHO_C" >&6
2426 if test -n "$CC"; then
2427 ac_cv_prog_CC="$CC" # Let the user override the test.
2429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2433 test -z "$as_dir" && as_dir=.
2434 for ac_exec_ext in '' $ac_executable_extensions; do
2435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2436 ac_cv_prog_CC="${ac_tool_prefix}cc"
2437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2447 if test -n "$CC"; then
2448 { echo "$as_me:$LINENO: result: $CC" >&5
2449 echo "${ECHO_T}$CC" >&6; }
2451 { echo "$as_me:$LINENO: result: no" >&5
2452 echo "${ECHO_T}no" >&6; }
2458 if test -z "$CC"; then
2459 # Extract the first word of "cc", so it can be a program name with args.
2460 set dummy cc; ac_word=$2
2461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2463 if test "${ac_cv_prog_CC+set}" = set; then
2464 echo $ECHO_N "(cached) $ECHO_C" >&6
2466 if test -n "$CC"; then
2467 ac_cv_prog_CC="$CC" # Let the user override the test.
2470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2474 test -z "$as_dir" && as_dir=.
2475 for ac_exec_ext in '' $ac_executable_extensions; do
2476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2477 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2478 ac_prog_rejected=yes
2482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2489 if test $ac_prog_rejected = yes; then
2490 # We found a bogon in the path, so make sure we never use it.
2491 set dummy $ac_cv_prog_CC
2493 if test $# != 0; then
2494 # We chose a different compiler from the bogus one.
2495 # However, it has the same basename, so the bogon will be chosen
2496 # first if we set CC to just the basename; use the full file name.
2498 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2504 if test -n "$CC"; then
2505 { echo "$as_me:$LINENO: result: $CC" >&5
2506 echo "${ECHO_T}$CC" >&6; }
2508 { echo "$as_me:$LINENO: result: no" >&5
2509 echo "${ECHO_T}no" >&6; }
2514 if test -z "$CC"; then
2515 if test -n "$ac_tool_prefix"; then
2516 for ac_prog in cl.exe
2518 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2519 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2520 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2522 if test "${ac_cv_prog_CC+set}" = set; then
2523 echo $ECHO_N "(cached) $ECHO_C" >&6
2525 if test -n "$CC"; then
2526 ac_cv_prog_CC="$CC" # Let the user override the test.
2528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2532 test -z "$as_dir" && as_dir=.
2533 for ac_exec_ext in '' $ac_executable_extensions; do
2534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2535 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2546 if test -n "$CC"; then
2547 { echo "$as_me:$LINENO: result: $CC" >&5
2548 echo "${ECHO_T}$CC" >&6; }
2550 { echo "$as_me:$LINENO: result: no" >&5
2551 echo "${ECHO_T}no" >&6; }
2555 test -n "$CC" && break
2558 if test -z "$CC"; then
2560 for ac_prog in cl.exe
2562 # Extract the first word of "$ac_prog", so it can be a program name with args.
2563 set dummy $ac_prog; ac_word=$2
2564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2566 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2567 echo $ECHO_N "(cached) $ECHO_C" >&6
2569 if test -n "$ac_ct_CC"; then
2570 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2576 test -z "$as_dir" && as_dir=.
2577 for ac_exec_ext in '' $ac_executable_extensions; do
2578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2579 ac_cv_prog_ac_ct_CC="$ac_prog"
2580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2589 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2590 if test -n "$ac_ct_CC"; then
2591 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2592 echo "${ECHO_T}$ac_ct_CC" >&6; }
2594 { echo "$as_me:$LINENO: result: no" >&5
2595 echo "${ECHO_T}no" >&6; }
2599 test -n "$ac_ct_CC" && break
2602 if test "x$ac_ct_CC" = x; then
2605 case $cross_compiling:$ac_tool_warned in
2607 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2608 whose name does not start with the host triplet. If you think this
2609 configuration is useful to you, please write to autoconf@gnu.org." >&5
2610 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2611 whose name does not start with the host triplet. If you think this
2612 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2613 ac_tool_warned=yes ;;
2622 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2623 See \`config.log
' for more details." >&5
2624 echo "$as_me: error: no acceptable C compiler found in \$PATH
2625 See \`config.log' for more details.
" >&2;}
2626 { (exit 1); exit 1; }; }
2628 # Provide some information about the compiler.
2629 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2630 ac_compiler=`set X $ac_compile; echo $2`
2631 { (ac_try="$ac_compiler --version >&5"
2633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2634 *) ac_try_echo=$ac_try;;
2636 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2637 (eval "$ac_compiler --version >&5") 2>&5
2639 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2640 (exit $ac_status); }
2641 { (ac_try="$ac_compiler -v >&5"
2643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2644 *) ac_try_echo=$ac_try;;
2646 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2647 (eval "$ac_compiler -v >&5") 2>&5
2649 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2650 (exit $ac_status); }
2651 { (ac_try="$ac_compiler -V >&5"
2653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2654 *) ac_try_echo=$ac_try;;
2656 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2657 (eval "$ac_compiler -V >&5") 2>&5
2659 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2660 (exit $ac_status); }
2662 cat >conftest.$ac_ext <<_ACEOF
2665 cat confdefs.h >>conftest.$ac_ext
2666 cat >>conftest.$ac_ext <<_ACEOF
2667 /* end confdefs.h. */
2677 ac_clean_files_save=$ac_clean_files
2678 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2679 # Try to create an executable without -o first, disregard a.out.
2680 # It will help us diagnose broken compilers, and finding out an intuition
2682 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2683 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2684 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2686 # List of possible output files, starting from the most likely.
2687 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2688 # only as a last resort. b.out is created by i960 compilers.
2689 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2691 # The IRIX 6 linker writes into existing files which may not be
2692 # executable, retaining their permissions. Remove them first so a
2693 # subsequent execution test works.
2695 for ac_file in $ac_files
2698 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2699 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2704 if { (ac_try="$ac_link_default"
2706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2707 *) ac_try_echo=$ac_try;;
2709 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2710 (eval "$ac_link_default") 2>&5
2712 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2713 (exit $ac_status); }; then
2714 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2715 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2716 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2717 # so that the user can short-circuit this test for compilers unknown to
2719 for ac_file in $ac_files ''
2721 test -f "$ac_file" || continue
2723 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2726 # We found the default executable, but exeext='' is most
2730 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2732 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2734 # We set ac_cv_exeext here because the later test for it is not
2735 # safe: cross compilers may not add the suffix if given an `-o'
2736 # argument, so we may need to know it at that point already.
2737 # Even if this section looks crufty: it has the advantage of
2744 test "$ac_cv_exeext" = no && ac_cv_exeext=
2750 { echo "$as_me:$LINENO: result
: $ac_file" >&5
2751 echo "${ECHO_T}$ac_file" >&6; }
2752 if test -z "$ac_file"; then
2753 echo "$as_me: failed program was
:" >&5
2754 sed 's/^/| /' conftest.$ac_ext >&5
2756 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2757 See \
`config.log' for more details." >&5
2758 echo "$as_me: error: C compiler cannot create executables
2759 See \`config.log
' for more details." >&2;}
2760 { (exit 77); exit 77; }; }
2763 ac_exeext=$ac_cv_exeext
2765 # Check that the compiler produces executables we can run. If not, either
2766 # the compiler is broken, or we cross compile.
2767 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2768 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2769 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2770 # If not cross compiling, check that we can run a simple program.
2771 if test "$cross_compiling" != yes; then
2772 if { ac_try='.
/$ac_file'
2773 { (case "(($ac_try" in
2774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2775 *) ac_try_echo=$ac_try;;
2777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2778 (eval "$ac_try") 2>&5
2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781 (exit $ac_status); }; }; then
2784 if test "$cross_compiling" = maybe; then
2787 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2788 If you meant to cross compile, use \`--host'.
2789 See \
`config.log' for more details." >&5
2790 echo "$as_me: error: cannot run C compiled programs.
2791 If you meant to cross compile, use \`--host'.
2792 See \`config.log' for more details.
" >&2;}
2793 { (exit 1); exit 1; }; }
2797 { echo "$as_me:$LINENO: result
: yes" >&5
2798 echo "${ECHO_T}yes" >&6; }
2800 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2801 ac_clean_files=$ac_clean_files_save
2802 # Check that the compiler produces executables we can run. If not, either
2803 # the compiler is broken, or we cross compile.
2804 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2805 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2806 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2807 echo "${ECHO_T}$cross_compiling" >&6; }
2809 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2810 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2811 if { (ac_try="$ac_link"
2813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2814 *) ac_try_echo=$ac_try;;
2816 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2817 (eval "$ac_link") 2>&5
2819 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2820 (exit $ac_status); }; then
2821 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2822 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2823 # work properly (i.e., refer to `conftest.exe'), while it won't with
2825 for ac_file in conftest.exe conftest conftest.*; do
2826 test -f "$ac_file" || continue
2828 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2829 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2835 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2836 See \
`config.log' for more details." >&5
2837 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2838 See \`config.log
' for more details." >&2;}
2839 { (exit 1); exit 1; }; }
2842 rm -f conftest$ac_cv_exeext
2843 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2844 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2846 rm -f conftest.$ac_ext
2847 EXEEXT=$ac_cv_exeext
2849 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2850 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2851 if test "${ac_cv_objext+set}" = set; then
2852 echo $ECHO_N "(cached) $ECHO_C" >&6
2854 cat >conftest.$ac_ext <<_ACEOF
2857 cat confdefs.h >>conftest.$ac_ext
2858 cat >>conftest.$ac_ext <<_ACEOF
2859 /* end confdefs.h. */
2869 rm -f conftest.o conftest.obj
2870 if { (ac_try="$ac_compile"
2872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2873 *) ac_try_echo=$ac_try;;
2875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2876 (eval "$ac_compile") 2>&5
2878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879 (exit $ac_status); }; then
2880 for ac_file in conftest.o conftest.obj conftest.*; do
2881 test -f "$ac_file" || continue;
2883 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2884 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2889 echo "$as_me: failed program was:" >&5
2890 sed 's
/^
/|
/' conftest.$ac_ext >&5
2892 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2893 See \`config.log' for more details.
" >&5
2894 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
2895 See \
`config.log' for more details." >&2;}
2896 { (exit 1); exit 1; }; }
2899 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2901 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2902 echo "${ECHO_T}$ac_cv_objext" >&6; }
2903 OBJEXT=$ac_cv_objext
2905 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2906 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2907 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2908 echo $ECHO_N "(cached) $ECHO_C" >&6
2910 cat >conftest.$ac_ext <<_ACEOF
2913 cat confdefs.h >>conftest.$ac_ext
2914 cat >>conftest.$ac_ext <<_ACEOF
2915 /* end confdefs.h. */
2928 rm -f conftest.$ac_objext
2929 if { (ac_try="$ac_compile"
2931 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2932 *) ac_try_echo
=$ac_try;;
2934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2935 (eval "$ac_compile") 2>conftest.er1
2937 grep -v '^ *+' conftest.er1
>conftest.err
2939 cat conftest.err
>&5
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); } && {
2942 test -z "$ac_c_werror_flag" ||
2943 test ! -s conftest.err
2944 } && test -s conftest.
$ac_objext; then
2947 echo "$as_me: failed program was:" >&5
2948 sed 's/^/| /' conftest.
$ac_ext >&5
2953 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2954 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2957 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2958 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2959 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2960 ac_test_CFLAGS
=${CFLAGS+set}
2961 ac_save_CFLAGS
=$CFLAGS
2962 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2963 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2964 if test "${ac_cv_prog_cc_g+set}" = set; then
2965 echo $ECHO_N "(cached) $ECHO_C" >&6
2967 ac_save_c_werror_flag
=$ac_c_werror_flag
2968 ac_c_werror_flag
=yes
2971 cat >conftest.
$ac_ext <<_ACEOF
2974 cat confdefs.h
>>conftest.
$ac_ext
2975 cat >>conftest.
$ac_ext <<_ACEOF
2976 /* end confdefs.h. */
2986 rm -f conftest.
$ac_objext
2987 if { (ac_try
="$ac_compile"
2989 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2990 *) ac_try_echo=$ac_try;;
2992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2993 (eval "$ac_compile") 2>conftest.er1
2995 grep -v '^ *+' conftest.er1 >conftest.err
2997 cat conftest.err >&5
2998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999 (exit $ac_status); } && {
3000 test -z "$ac_c_werror_flag" ||
3001 test ! -s conftest.err
3002 } && test -s conftest.$ac_objext; then
3005 echo "$as_me: failed program was:" >&5
3006 sed 's/^/| /' conftest.$ac_ext >&5
3009 cat >conftest.$ac_ext <<_ACEOF
3012 cat confdefs.h >>conftest.$ac_ext
3013 cat >>conftest.$ac_ext <<_ACEOF
3014 /* end confdefs.h. */
3024 rm -f conftest.$ac_objext
3025 if { (ac_try="$ac_compile"
3027 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3028 *) ac_try_echo
=$ac_try;;
3030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3031 (eval "$ac_compile") 2>conftest.er1
3033 grep -v '^ *+' conftest.er1
>conftest.err
3035 cat conftest.err
>&5
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); } && {
3038 test -z "$ac_c_werror_flag" ||
3039 test ! -s conftest.err
3040 } && test -s conftest.
$ac_objext; then
3043 echo "$as_me: failed program was:" >&5
3044 sed 's/^/| /' conftest.
$ac_ext >&5
3046 ac_c_werror_flag
=$ac_save_c_werror_flag
3048 cat >conftest.
$ac_ext <<_ACEOF
3051 cat confdefs.h
>>conftest.
$ac_ext
3052 cat >>conftest.
$ac_ext <<_ACEOF
3053 /* end confdefs.h. */
3063 rm -f conftest.
$ac_objext
3064 if { (ac_try
="$ac_compile"
3066 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3067 *) ac_try_echo=$ac_try;;
3069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3070 (eval "$ac_compile") 2>conftest.er1
3072 grep -v '^ *+' conftest.er1 >conftest.err
3074 cat conftest.err >&5
3075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076 (exit $ac_status); } && {
3077 test -z "$ac_c_werror_flag" ||
3078 test ! -s conftest.err
3079 } && test -s conftest.$ac_objext; then
3082 echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3095 ac_c_werror_flag=$ac_save_c_werror_flag
3097 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3098 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3099 if test "$ac_test_CFLAGS" = set; then
3100 CFLAGS=$ac_save_CFLAGS
3101 elif test $ac_cv_prog_cc_g = yes; then
3102 if test "$GCC" = yes; then
3108 if test "$GCC" = yes; then
3114 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3115 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3116 if test "${ac_cv_prog_cc_c89+set}" = set; then
3117 echo $ECHO_N "(cached) $ECHO_C" >&6
3119 ac_cv_prog_cc_c89=no
3121 cat >conftest.$ac_ext <<_ACEOF
3124 cat confdefs.h >>conftest.$ac_ext
3125 cat >>conftest.$ac_ext <<_ACEOF
3126 /* end confdefs.h. */
3129 #include <sys/types.h>
3130 #include <sys/stat.h>
3131 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3132 struct buf { int x; };
3133 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3134 static char *e (p, i)
3140 static char *f (char * (*g) (char **, int), char **p, ...)
3145 s = g (p, va_arg (v,int));
3150 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3151 function prototypes and stuff, but not '\xHH' hex character constants.
3152 These don't provoke an error unfortunately, instead are silently treated
3153 as 'x'. The following induces an error, until -std is added to get
3154 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3155 array size at least. It's necessary to write '\x00'==0 to get something
3156 that's true only with -std. */
3157 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3159 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3160 inside strings and character constants. */
3162 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3164 int test (int i, double x);
3165 struct s1 {int (*f) (int a);};
3166 struct s2 {int (*f) (double a);};
3167 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3173 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3178 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3179 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3181 CC="$ac_save_CC $ac_arg"
3182 rm -f conftest.$ac_objext
3183 if { (ac_try="$ac_compile"
3185 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3186 *) ac_try_echo
=$ac_try;;
3188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3189 (eval "$ac_compile") 2>conftest.er1
3191 grep -v '^ *+' conftest.er1
>conftest.err
3193 cat conftest.err
>&5
3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195 (exit $ac_status); } && {
3196 test -z "$ac_c_werror_flag" ||
3197 test ! -s conftest.err
3198 } && test -s conftest.
$ac_objext; then
3199 ac_cv_prog_cc_c89
=$ac_arg
3201 echo "$as_me: failed program was:" >&5
3202 sed 's/^/| /' conftest.
$ac_ext >&5
3207 rm -f core conftest.err conftest.
$ac_objext
3208 test "x$ac_cv_prog_cc_c89" != "xno" && break
3210 rm -f conftest.
$ac_ext
3215 case "x$ac_cv_prog_cc_c89" in
3217 { echo "$as_me:$LINENO: result: none needed" >&5
3218 echo "${ECHO_T}none needed" >&6; } ;;
3220 { echo "$as_me:$LINENO: result: unsupported" >&5
3221 echo "${ECHO_T}unsupported" >&6; } ;;
3223 CC
="$CC $ac_cv_prog_cc_c89"
3224 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3225 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3230 ac_cpp
='$CPP $CPPFLAGS'
3231 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3232 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3233 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3238 { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
3239 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; }
3241 # Check whether --with-cxx_main was given.
3242 if test "${with_cxx_main+set}" = set; then
3243 withval
=$with_cxx_main;
3246 no
) with_cxx_main
=no
3248 yes) with_cxx_main
=yes
3250 *) with_cxx_main
=yes
3264 { echo "$as_me:$LINENO: result: $with_cxx_main" >&5
3265 echo "${ECHO_T}$with_cxx_main" >&6; }
3271 gcc
) # Extract the first word of "g++", so it can be a program name with args.
3272 set dummy g
++; ac_word
=$2
3273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3275 if test "${ac_cv_path_CXX+set}" = set; then
3276 echo $ECHO_N "(cached) $ECHO_C" >&6
3280 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
3283 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3284 for as_dir
in notfound
3287 test -z "$as_dir" && as_dir
=.
3288 for ac_exec_ext
in '' $ac_executable_extensions; do
3289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3290 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
3291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3298 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="g++"
3303 if test -n "$CXX"; then
3304 { echo "$as_me:$LINENO: result: $CXX" >&5
3305 echo "${ECHO_T}$CXX" >&6; }
3307 { echo "$as_me:$LINENO: result: no" >&5
3308 echo "${ECHO_T}no" >&6; }
3312 cc
) # Extract the first word of "c++", so it can be a program name with args.
3313 set dummy c
++; ac_word
=$2
3314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3316 if test "${ac_cv_path_CXX+set}" = set; then
3317 echo $ECHO_N "(cached) $ECHO_C" >&6
3321 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
3324 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3325 for as_dir
in notfound
3328 test -z "$as_dir" && as_dir
=.
3329 for ac_exec_ext
in '' $ac_executable_extensions; do
3330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3331 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
3332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3339 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="c++"
3344 if test -n "$CXX"; then
3345 { echo "$as_me:$LINENO: result: $CXX" >&5
3346 echo "${ECHO_T}$CXX" >&6; }
3348 { echo "$as_me:$LINENO: result: no" >&5
3349 echo "${ECHO_T}no" >&6; }
3354 if test "$CXX" = "notfound"
3361 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
3363 # Extract the first word of "$ac_prog", so it can be a program name with args.
3364 set dummy
$ac_prog; ac_word
=$2
3365 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3367 if test "${ac_cv_prog_CXX+set}" = set; then
3368 echo $ECHO_N "(cached) $ECHO_C" >&6
3370 if test -n "$CXX"; then
3371 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
3373 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3377 test -z "$as_dir" && as_dir
=.
3378 for ac_exec_ext
in '' $ac_executable_extensions; do
3379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3380 ac_cv_prog_CXX
="$ac_prog"
3381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3391 if test -n "$CXX"; then
3392 { echo "$as_me:$LINENO: result: $CXX" >&5
3393 echo "${ECHO_T}$CXX" >&6; }
3395 { echo "$as_me:$LINENO: result: no" >&5
3396 echo "${ECHO_T}no" >&6; }
3400 test -n "$CXX" && break
3402 test -n "$CXX" || CXX
="notfound"
3404 if test "$CXX" = "notfound"
3409 if test "$preset_cxx" != "$CXX"
3411 { echo "$as_me:$LINENO: WARNING:
3413 By default, distutils will build C++ extension modules with \"$CXX\".
3414 If this is not intended, then set CXX on the configure command line.
3416 echo "$as_me: WARNING:
3418 By default, distutils will build C++ extension modules with \"$CXX\".
3419 If this is not intended, then set CXX on the configure command line.
3424 # checks for UNIX variants that set C preprocessor variables
3427 ac_cpp
='$CPP $CPPFLAGS'
3428 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3429 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3430 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3431 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3432 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3433 # On Suns, sometimes $CPP names a directory.
3434 if test -n "$CPP" && test -d "$CPP"; then
3437 if test -z "$CPP"; then
3438 if test "${ac_cv_prog_CPP+set}" = set; then
3439 echo $ECHO_N "(cached) $ECHO_C" >&6
3441 # Double quotes because CPP needs to be expanded
3442 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3445 for ac_c_preproc_warn_flag
in '' yes
3447 # Use a header file that comes with gcc, so configuring glibc
3448 # with a fresh cross-compiler works.
3449 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3450 # <limits.h> exists even on freestanding compilers.
3451 # On the NeXT, cc -E runs the code through the compiler's parser,
3452 # not just through cpp. "Syntax error" is here to catch this case.
3453 cat >conftest.
$ac_ext <<_ACEOF
3456 cat confdefs.h
>>conftest.
$ac_ext
3457 cat >>conftest.
$ac_ext <<_ACEOF
3458 /* end confdefs.h. */
3460 # include <limits.h>
3462 # include <assert.h>
3466 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3468 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3469 *) ac_try_echo=$ac_try;;
3471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3472 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3474 grep -v '^ *+' conftest.er1 >conftest.err
3476 cat conftest.err >&5
3477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478 (exit $ac_status); } >/dev/null && {
3479 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3480 test ! -s conftest.err
3484 echo "$as_me: failed program was:" >&5
3485 sed 's/^/| /' conftest.$ac_ext >&5
3487 # Broken: fails on valid input.
3491 rm -f conftest.err conftest.$ac_ext
3493 # OK, works on sane cases. Now check whether nonexistent headers
3494 # can be detected and how.
3495 cat >conftest.$ac_ext <<_ACEOF
3498 cat confdefs.h >>conftest.$ac_ext
3499 cat >>conftest.$ac_ext <<_ACEOF
3500 /* end confdefs.h. */
3501 #include <ac_nonexistent.h>
3503 if { (ac_try="$ac_cpp conftest.$ac_ext"
3505 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3506 *) ac_try_echo
=$ac_try;;
3508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3509 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3511 grep -v '^ *+' conftest.er1
>conftest.err
3513 cat conftest.err
>&5
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); } >/dev
/null
&& {
3516 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3517 test ! -s conftest.err
3519 # Broken: success on invalid input.
3522 echo "$as_me: failed program was:" >&5
3523 sed 's/^/| /' conftest.
$ac_ext >&5
3525 # Passes both tests.
3530 rm -f conftest.err conftest.
$ac_ext
3533 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3534 rm -f conftest.err conftest.
$ac_ext
3535 if $ac_preproc_ok; then
3547 { echo "$as_me:$LINENO: result: $CPP" >&5
3548 echo "${ECHO_T}$CPP" >&6; }
3550 for ac_c_preproc_warn_flag
in '' yes
3552 # Use a header file that comes with gcc, so configuring glibc
3553 # with a fresh cross-compiler works.
3554 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3555 # <limits.h> exists even on freestanding compilers.
3556 # On the NeXT, cc -E runs the code through the compiler's parser,
3557 # not just through cpp. "Syntax error" is here to catch this case.
3558 cat >conftest.
$ac_ext <<_ACEOF
3561 cat confdefs.h
>>conftest.
$ac_ext
3562 cat >>conftest.
$ac_ext <<_ACEOF
3563 /* end confdefs.h. */
3565 # include <limits.h>
3567 # include <assert.h>
3571 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3573 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3574 *) ac_try_echo=$ac_try;;
3576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3577 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3579 grep -v '^ *+' conftest.er1 >conftest.err
3581 cat conftest.err >&5
3582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583 (exit $ac_status); } >/dev/null && {
3584 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3585 test ! -s conftest.err
3589 echo "$as_me: failed program was:" >&5
3590 sed 's/^/| /' conftest.$ac_ext >&5
3592 # Broken: fails on valid input.
3596 rm -f conftest.err conftest.$ac_ext
3598 # OK, works on sane cases. Now check whether nonexistent headers
3599 # can be detected and how.
3600 cat >conftest.$ac_ext <<_ACEOF
3603 cat confdefs.h >>conftest.$ac_ext
3604 cat >>conftest.$ac_ext <<_ACEOF
3605 /* end confdefs.h. */
3606 #include <ac_nonexistent.h>
3608 if { (ac_try="$ac_cpp conftest.$ac_ext"
3610 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3611 *) ac_try_echo
=$ac_try;;
3613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3614 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3616 grep -v '^ *+' conftest.er1
>conftest.err
3618 cat conftest.err
>&5
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); } >/dev
/null
&& {
3621 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3622 test ! -s conftest.err
3624 # Broken: success on invalid input.
3627 echo "$as_me: failed program was:" >&5
3628 sed 's/^/| /' conftest.
$ac_ext >&5
3630 # Passes both tests.
3635 rm -f conftest.err conftest.
$ac_ext
3638 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3639 rm -f conftest.err conftest.
$ac_ext
3640 if $ac_preproc_ok; then
3643 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3644 See \`config.log' for more details." >&5
3645 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3646 See \`config.log' for more details." >&2;}
3647 { (exit 1); exit 1; }; }
3651 ac_cpp
='$CPP $CPPFLAGS'
3652 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3653 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3654 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3657 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3658 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3659 if test "${ac_cv_path_GREP+set}" = set; then
3660 echo $ECHO_N "(cached) $ECHO_C" >&6
3662 # Extract the first word of "grep ggrep" to use in msg output
3663 if test -z "$GREP"; then
3664 set dummy
grep ggrep
; ac_prog_name
=$2
3665 if test "${ac_cv_path_GREP+set}" = set; then
3666 echo $ECHO_N "(cached) $ECHO_C" >&6
3668 ac_path_GREP_found
=false
3669 # Loop through the user's path and test for each of PROGNAME-LIST
3670 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3671 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3674 test -z "$as_dir" && as_dir
=.
3675 for ac_prog
in grep ggrep
; do
3676 for ac_exec_ext
in '' $ac_executable_extensions; do
3677 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3678 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3679 # Check for GNU ac_path_GREP and select it if it is found.
3680 # Check for GNU $ac_path_GREP
3681 case `"$ac_path_GREP" --version 2>&1` in
3683 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3686 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3689 cat "conftest.in" "conftest.in" >"conftest.tmp"
3690 mv "conftest.tmp" "conftest.in"
3691 cp "conftest.in" "conftest.nl"
3692 echo 'GREP' >> "conftest.nl"
3693 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3694 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3695 ac_count
=`expr $ac_count + 1`
3696 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3697 # Best one so far, save it but keep looking for a better one
3698 ac_cv_path_GREP
="$ac_path_GREP"
3699 ac_path_GREP_max
=$ac_count
3701 # 10*(2^10) chars as input seems more than enough
3702 test $ac_count -gt 10 && break
3704 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3708 $ac_path_GREP_found && break 3
3718 GREP
="$ac_cv_path_GREP"
3719 if test -z "$GREP"; then
3720 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3721 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3722 { (exit 1); exit 1; }; }
3726 ac_cv_path_GREP
=$GREP
3731 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3732 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3733 GREP
="$ac_cv_path_GREP"
3736 { echo "$as_me:$LINENO: checking for egrep" >&5
3737 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3738 if test "${ac_cv_path_EGREP+set}" = set; then
3739 echo $ECHO_N "(cached) $ECHO_C" >&6
3741 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3742 then ac_cv_path_EGREP
="$GREP -E"
3744 # Extract the first word of "egrep" to use in msg output
3745 if test -z "$EGREP"; then
3746 set dummy
egrep; ac_prog_name
=$2
3747 if test "${ac_cv_path_EGREP+set}" = set; then
3748 echo $ECHO_N "(cached) $ECHO_C" >&6
3750 ac_path_EGREP_found
=false
3751 # Loop through the user's path and test for each of PROGNAME-LIST
3752 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3753 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3756 test -z "$as_dir" && as_dir
=.
3757 for ac_prog
in egrep; do
3758 for ac_exec_ext
in '' $ac_executable_extensions; do
3759 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3760 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3761 # Check for GNU ac_path_EGREP and select it if it is found.
3762 # Check for GNU $ac_path_EGREP
3763 case `"$ac_path_EGREP" --version 2>&1` in
3765 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3768 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3771 cat "conftest.in" "conftest.in" >"conftest.tmp"
3772 mv "conftest.tmp" "conftest.in"
3773 cp "conftest.in" "conftest.nl"
3774 echo 'EGREP' >> "conftest.nl"
3775 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3776 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3777 ac_count
=`expr $ac_count + 1`
3778 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3779 # Best one so far, save it but keep looking for a better one
3780 ac_cv_path_EGREP
="$ac_path_EGREP"
3781 ac_path_EGREP_max
=$ac_count
3783 # 10*(2^10) chars as input seems more than enough
3784 test $ac_count -gt 10 && break
3786 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3790 $ac_path_EGREP_found && break 3
3800 EGREP
="$ac_cv_path_EGREP"
3801 if test -z "$EGREP"; then
3802 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3803 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3804 { (exit 1); exit 1; }; }
3808 ac_cv_path_EGREP
=$EGREP
3814 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3815 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3816 EGREP
="$ac_cv_path_EGREP"
3820 { echo "$as_me:$LINENO: checking for AIX" >&5
3821 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3822 cat >conftest.
$ac_ext <<_ACEOF
3825 cat confdefs.h
>>conftest.
$ac_ext
3826 cat >>conftest.
$ac_ext <<_ACEOF
3827 /* end confdefs.h. */
3833 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3834 $EGREP "yes" >/dev
/null
2>&1; then
3835 { echo "$as_me:$LINENO: result: yes" >&5
3836 echo "${ECHO_T}yes" >&6; }
3837 cat >>confdefs.h
<<\_ACEOF
3838 #define _ALL_SOURCE 1
3842 { echo "$as_me:$LINENO: result: no" >&5
3843 echo "${ECHO_T}no" >&6; }
3849 # Check for unsupported systems
3850 case $ac_sys_system/$ac_sys_release in
3852 echo This system \
($ac_sys_system/$ac_sys_release\
) is no longer supported.
3853 echo See README
for details.
3858 { echo "$as_me:$LINENO: checking for --with-suffix" >&5
3859 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; }
3861 # Check whether --with-suffix was given.
3862 if test "${with_suffix+set}" = set; then
3863 withval
=$with_suffix;
3867 *) EXEEXT
=$withval;;
3871 { echo "$as_me:$LINENO: result: $EXEEXT" >&5
3872 echo "${ECHO_T}$EXEEXT" >&6; }
3874 # Test whether we're running on a non-case-sensitive system, in which
3875 # case we give a warning if no ext is given
3877 { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3878 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; }
3879 if test ! -d CaseSensitiveTestDir
; then
3880 mkdir CaseSensitiveTestDir
3883 if test -d casesensitivetestdir
3885 { echo "$as_me:$LINENO: result: yes" >&5
3886 echo "${ECHO_T}yes" >&6; }
3889 { echo "$as_me:$LINENO: result: no" >&5
3890 echo "${ECHO_T}no" >&6; }
3893 rmdir CaseSensitiveTestDir
3898 gcc
) CC
="$CC -D_HAVE_BSDI";;
3902 case $ac_sys_system in
3905 cc|
*/cc
) CC
="$CC -Ae";;
3909 cc
) CC
="$CC -Wl,-Bexport";;
3912 # Some functions have a prototype only with that define, e.g. confstr
3914 cat >>confdefs.h
<<\_ACEOF
3915 #define __EXTENSIONS__ 1
3923 { echo "$as_me:$LINENO: checking LIBRARY" >&5
3924 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; }
3925 if test -z "$LIBRARY"
3927 LIBRARY
='libpython$(VERSION).a'
3929 { echo "$as_me:$LINENO: result: $LIBRARY" >&5
3930 echo "${ECHO_T}$LIBRARY" >&6; }
3932 # LDLIBRARY is the name of the library to link against (as opposed to the
3933 # name of the library into which to insert object files). BLDLIBRARY is also
3934 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3935 # is blank as the main program is not linked directly against LDLIBRARY.
3936 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3937 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3938 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3939 # DLLLIBRARY is the shared (i.e., DLL) library.
3941 # RUNSHARED is used to run shared python without installed libraries
3943 # INSTSONAME is the name of the shared library that will be use to install
3944 # on the system - some systems like version suffix, others don't
3951 LDLIBRARY
="$LIBRARY"
3952 BLDLIBRARY
='$(LDLIBRARY)'
3953 INSTSONAME
='$(LDLIBRARY)'
3958 # LINKCC is the command that links the python executable -- default is $(CC).
3959 # If CXX is set, and if it is needed to link a main function that was
3960 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3961 # python might then depend on the C++ runtime
3962 # This is altered for AIX in order to build the export list before
3965 { echo "$as_me:$LINENO: checking LINKCC" >&5
3966 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; }
3967 if test -z "$LINKCC"
3969 LINKCC
='$(PURIFY) $(MAINCC)'
3970 case $ac_sys_system in
3973 if test $ac_sys_release -ge 5 -o \
3974 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3977 LINKCC
="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3979 LINKCC
="$LINKCC -L/usr/lib/ia64l64";;
3981 # qcc must be used because the other compilers do not
3986 { echo "$as_me:$LINENO: result: $LINKCC" >&5
3987 echo "${ECHO_T}$LINKCC" >&6; }
3989 { echo "$as_me:$LINENO: checking for --enable-shared" >&5
3990 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; }
3991 # Check whether --enable-shared was given.
3992 if test "${enable_shared+set}" = set; then
3993 enableval
=$enable_shared;
3997 if test -z "$enable_shared"
3999 case $ac_sys_system in
4001 enable_shared
="yes";;
4003 enable_shared
="no";;
4006 { echo "$as_me:$LINENO: result: $enable_shared" >&5
4007 echo "${ECHO_T}$enable_shared" >&6; }
4009 { echo "$as_me:$LINENO: checking for --enable-profiling" >&5
4010 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; }
4011 # Check whether --enable-profiling was given.
4012 if test "${enable_profiling+set}" = set; then
4013 enableval
=$enable_profiling; ac_save_cc
="$CC"
4015 if test "$cross_compiling" = yes; then
4016 ac_enable_profiling
="no"
4018 cat >conftest.
$ac_ext <<_ACEOF
4021 cat confdefs.h
>>conftest.
$ac_ext
4022 cat >>conftest.
$ac_ext <<_ACEOF
4023 /* end confdefs.h. */
4024 int main() { return 0; }
4026 rm -f conftest
$ac_exeext
4027 if { (ac_try
="$ac_link"
4029 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4030 *) ac_try_echo=$ac_try;;
4032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4033 (eval "$ac_link") 2>&5
4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4037 { (case "(($ac_try" in
4038 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4039 *) ac_try_echo
=$ac_try;;
4041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4042 (eval "$ac_try") 2>&5
4044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045 (exit $ac_status); }; }; then
4046 ac_enable_profiling
="yes"
4048 echo "$as_me: program exited with status $ac_status" >&5
4049 echo "$as_me: failed program was:" >&5
4050 sed 's/^/| /' conftest.
$ac_ext >&5
4053 ac_enable_profiling
="no"
4055 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4062 { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
4063 echo "${ECHO_T}$ac_enable_profiling" >&6; }
4065 case "$ac_enable_profiling" in
4067 BASECFLAGS
="-pg $BASECFLAGS"
4068 LDFLAGS
="-pg $LDFLAGS"
4072 { echo "$as_me:$LINENO: checking LDLIBRARY" >&5
4073 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; }
4075 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
4076 # library that we build, but we do not want to link against it (we
4077 # will find it with a -framework option). For this reason there is an
4078 # extra variable BLDLIBRARY against which Python and the extension
4079 # modules are linked, BLDLIBRARY. This is normally the same as
4080 # LDLIBRARY, but empty for MacOSX framework builds.
4081 if test "$enable_framework"
4083 LDLIBRARY
='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
4084 RUNSHARED
=DYLD_FRAMEWORK_PATH
="`pwd`:$DYLD_FRAMEWORK_PATH"
4087 BLDLIBRARY
='$(LDLIBRARY)'
4090 # Other platforms follow
4091 if test $enable_shared = "yes"; then
4093 cat >>confdefs.h
<<\_ACEOF
4094 #define Py_ENABLE_SHARED 1
4097 case $ac_sys_system in
4099 LDLIBRARY
='libpython$(VERSION).so'
4102 LDLIBRARY
='libpython$(VERSION).dll.a'
4103 DLLLIBRARY
='libpython$(VERSION).dll'
4106 LDLIBRARY
='libpython$(VERSION).so'
4107 BLDLIBRARY
='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
4108 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4109 INSTSONAME
="$LDLIBRARY".
$SOVERSION
4111 Linux
*|GNU
*|NetBSD
*|FreeBSD
*|DragonFly
*)
4112 LDLIBRARY
='libpython$(VERSION).so'
4113 BLDLIBRARY
='-L. -lpython$(VERSION)'
4114 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4115 case $ac_sys_system in
4117 SOVERSION
=`echo $SOVERSION|cut -d "." -f 1`
4120 INSTSONAME
="$LDLIBRARY".
$SOVERSION
4125 LDLIBRARY
='libpython$(VERSION).so'
4128 LDLIBRARY
='libpython$(VERSION).sl'
4131 BLDLIBRARY
='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
4132 RUNSHARED
=SHLIB_PATH
=`pwd`:${SHLIB_PATH}
4135 LDLIBRARY
='libpython$(VERSION).so'
4136 BLDLIBRARY
='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
4137 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4140 LDLIBRARY
='libpython$(VERSION).so'
4141 BLDLIBRARY
='-L. -lpython$(VERSION)'
4142 RUNSHARED
=DLL_PATH
=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
4145 LDLIBRARY
='libpython$(VERSION).dylib'
4146 BLDLIBRARY
='-L. -lpython$(VERSION)'
4147 RUNSHARED
='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}'
4151 else # shared is disabled
4152 case $ac_sys_system in
4154 BLDLIBRARY
='$(LIBRARY)'
4155 LDLIBRARY
='libpython$(VERSION).dll.a'
4160 { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
4161 echo "${ECHO_T}$LDLIBRARY" >&6; }
4163 if test -n "$ac_tool_prefix"; then
4164 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4165 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4166 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4168 if test "${ac_cv_prog_RANLIB+set}" = set; then
4169 echo $ECHO_N "(cached) $ECHO_C" >&6
4171 if test -n "$RANLIB"; then
4172 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4174 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4178 test -z "$as_dir" && as_dir
=.
4179 for ac_exec_ext
in '' $ac_executable_extensions; do
4180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4181 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4191 RANLIB
=$ac_cv_prog_RANLIB
4192 if test -n "$RANLIB"; then
4193 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4194 echo "${ECHO_T}$RANLIB" >&6; }
4196 { echo "$as_me:$LINENO: result: no" >&5
4197 echo "${ECHO_T}no" >&6; }
4202 if test -z "$ac_cv_prog_RANLIB"; then
4203 ac_ct_RANLIB
=$RANLIB
4204 # Extract the first word of "ranlib", so it can be a program name with args.
4205 set dummy ranlib
; ac_word
=$2
4206 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4208 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4209 echo $ECHO_N "(cached) $ECHO_C" >&6
4211 if test -n "$ac_ct_RANLIB"; then
4212 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4214 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4218 test -z "$as_dir" && as_dir
=.
4219 for ac_exec_ext
in '' $ac_executable_extensions; do
4220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4221 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4231 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4232 if test -n "$ac_ct_RANLIB"; then
4233 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4234 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4236 { echo "$as_me:$LINENO: result: no" >&5
4237 echo "${ECHO_T}no" >&6; }
4240 if test "x$ac_ct_RANLIB" = x
; then
4243 case $cross_compiling:$ac_tool_warned in
4245 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4246 whose name does not start with the host triplet. If you think this
4247 configuration is useful to you, please write to autoconf@gnu.org." >&5
4248 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4249 whose name does not start with the host triplet. If you think this
4250 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4251 ac_tool_warned
=yes ;;
4253 RANLIB
=$ac_ct_RANLIB
4256 RANLIB
="$ac_cv_prog_RANLIB"
4260 for ac_prog
in ar aal
4262 # Extract the first word of "$ac_prog", so it can be a program name with args.
4263 set dummy
$ac_prog; ac_word
=$2
4264 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4266 if test "${ac_cv_prog_AR+set}" = set; then
4267 echo $ECHO_N "(cached) $ECHO_C" >&6
4269 if test -n "$AR"; then
4270 ac_cv_prog_AR
="$AR" # Let the user override the test.
4272 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4276 test -z "$as_dir" && as_dir
=.
4277 for ac_exec_ext
in '' $ac_executable_extensions; do
4278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4279 ac_cv_prog_AR
="$ac_prog"
4280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4290 if test -n "$AR"; then
4291 { echo "$as_me:$LINENO: result: $AR" >&5
4292 echo "${ECHO_T}$AR" >&6; }
4294 { echo "$as_me:$LINENO: result: no" >&5
4295 echo "${ECHO_T}no" >&6; }
4299 test -n "$AR" && break
4301 test -n "$AR" || AR
="ar"
4305 # Extract the first word of "svnversion", so it can be a program name with args.
4306 set dummy svnversion
; ac_word
=$2
4307 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4309 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
4310 echo $ECHO_N "(cached) $ECHO_C" >&6
4312 if test -n "$SVNVERSION"; then
4313 ac_cv_prog_SVNVERSION
="$SVNVERSION" # Let the user override the test.
4315 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4319 test -z "$as_dir" && as_dir
=.
4320 for ac_exec_ext
in '' $ac_executable_extensions; do
4321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4322 ac_cv_prog_SVNVERSION
="found"
4323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4330 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION
="not-found"
4333 SVNVERSION
=$ac_cv_prog_SVNVERSION
4334 if test -n "$SVNVERSION"; then
4335 { echo "$as_me:$LINENO: result: $SVNVERSION" >&5
4336 echo "${ECHO_T}$SVNVERSION" >&6; }
4338 { echo "$as_me:$LINENO: result: no" >&5
4339 echo "${ECHO_T}no" >&6; }
4343 if test $SVNVERSION = found
4345 SVNVERSION
="svnversion \$(srcdir)"
4347 SVNVERSION
="echo exported"
4352 # install -d does not work on BSDI or HP-UX
4353 if test -z "$INSTALL"
4355 INSTALL
="${srcdir}/install-sh -c"
4359 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4360 if test -f "$ac_dir/install-sh"; then
4362 ac_install_sh
="$ac_aux_dir/install-sh -c"
4364 elif test -f "$ac_dir/install.sh"; then
4366 ac_install_sh
="$ac_aux_dir/install.sh -c"
4368 elif test -f "$ac_dir/shtool"; then
4370 ac_install_sh
="$ac_aux_dir/shtool install -c"
4374 if test -z "$ac_aux_dir"; then
4375 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4376 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4377 { (exit 1); exit 1; }; }
4380 # These three variables are undocumented and unsupported,
4381 # and are intended to be withdrawn in a future Autoconf release.
4382 # They can cause serious problems if a builder's source tree is in a directory
4383 # whose full name contains unusual characters.
4384 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4385 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4386 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4389 # Find a good install program. We prefer a C program (faster),
4390 # so one script is as good as another. But avoid the broken or
4391 # incompatible versions:
4392 # SysV /etc/install, /usr/sbin/install
4393 # SunOS /usr/etc/install
4394 # IRIX /sbin/install
4396 # AmigaOS /C/install, which installs bootblocks on floppy discs
4397 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4398 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4399 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4400 # OS/2's system install, which has a completely different semantic
4401 # ./install, which can be erroneously created by make from ./install.sh.
4402 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4403 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4404 if test -z "$INSTALL"; then
4405 if test "${ac_cv_path_install+set}" = set; then
4406 echo $ECHO_N "(cached) $ECHO_C" >&6
4408 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4412 test -z "$as_dir" && as_dir
=.
4413 # Account for people who put trailing slashes in PATH elements.
4415 .
/ | .
// |
/cC
/* | \
4416 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4417 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4420 # OSF1 and SCO ODT 3.0 have their own names for install.
4421 # Don't use installbsd from OSF since it installs stuff as root
4423 for ac_prog
in ginstall scoinst
install; do
4424 for ac_exec_ext
in '' $ac_executable_extensions; do
4425 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4426 if test $ac_prog = install &&
4427 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4428 # AIX install. It has an incompatible calling convention.
4430 elif test $ac_prog = install &&
4431 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4432 # program-specific install script used by HP pwplus--don't use.
4435 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4448 if test "${ac_cv_path_install+set}" = set; then
4449 INSTALL
=$ac_cv_path_install
4451 # As a last resort, use the slow shell script. Don't cache a
4452 # value for INSTALL within a source directory, because that will
4453 # break other packages using the cache if that directory is
4454 # removed, or if the value is a relative name.
4455 INSTALL
=$ac_install_sh
4458 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4459 echo "${ECHO_T}$INSTALL" >&6; }
4461 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4462 # It thinks the first close brace ends the variable substitution.
4463 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4465 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4467 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4470 # Not every filesystem supports hard links
4472 if test -z "$LN" ; then
4473 case $ac_sys_system in
4475 CYGWIN
*) LN
="ln -s";;
4476 atheos
*) LN
="ln -s";;
4481 # Check for --with-pydebug
4482 { echo "$as_me:$LINENO: checking for --with-pydebug" >&5
4483 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; }
4485 # Check whether --with-pydebug was given.
4486 if test "${with_pydebug+set}" = set; then
4487 withval
=$with_pydebug;
4488 if test "$withval" != no
4491 cat >>confdefs.h
<<\_ACEOF
4495 { echo "$as_me:$LINENO: result: yes" >&5
4496 echo "${ECHO_T}yes" >&6; };
4498 else { echo "$as_me:$LINENO: result: no" >&5
4499 echo "${ECHO_T}no" >&6; }; Py_DEBUG
='false'
4502 { echo "$as_me:$LINENO: result: no" >&5
4503 echo "${ECHO_T}no" >&6; }
4507 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
4508 # merged with this chunk of code?
4510 # Optimizer/debugger flags
4511 # ------------------------
4512 # (The following bit of code is complicated enough - please keep things
4513 # indented properly. Just pretend you're editing Python code. ;-)
4515 # There are two parallel sets of case statements below, one that checks to
4516 # see if OPT was set and one that does BASECFLAGS setting based upon
4517 # compiler and platform. BASECFLAGS tweaks need to be made even if the
4520 # tweak OPT based on compiler and platform, only if the user didn't set
4521 # it on the command line
4527 if test "$CC" != 'g++' ; then
4528 STRICT_PROTO
="-Wstrict-prototypes"
4530 # For gcc 4.x we need to use -fwrapv so lets check if its supported
4531 if "$CC" -v --help 2>/dev
/null |
grep -- -fwrapv > /dev
/null
; then
4534 case $ac_cv_prog_cc_g in
4536 if test "$Py_DEBUG" = 'true' ; then
4537 # Optimization messes up debuggers, so turn it off for
4539 OPT
="-g -Wall $STRICT_PROTO"
4541 OPT
="-g $WRAP -O3 -Wall $STRICT_PROTO"
4545 OPT
="-O3 -Wall $STRICT_PROTO"
4548 case $ac_sys_system in
4549 SCO_SV
*) OPT
="$OPT -m486 -DSCO5"
4559 # The current (beta) Monterey compiler dies with optimizations
4560 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
4561 case $ac_sys_system in
4571 # The -arch flags for universal builds on OSX
4572 UNIVERSAL_ARCH_FLAGS
=
4575 # tweak BASECFLAGS based on compiler and platform
4578 # Python violates C99 rules, by casting between incompatible
4579 # pointer types. GCC may generate bad code as a result of that,
4580 # so use -fno-strict-aliasing if supported.
4581 { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
4582 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; }
4584 CC
="$CC -fno-strict-aliasing"
4585 if test "$cross_compiling" = yes; then
4586 ac_cv_no_strict_aliasing_ok
=no
4588 cat >conftest.
$ac_ext <<_ACEOF
4591 cat confdefs.h
>>conftest.
$ac_ext
4592 cat >>conftest.
$ac_ext <<_ACEOF
4593 /* end confdefs.h. */
4594 int main() { return 0; }
4596 rm -f conftest
$ac_exeext
4597 if { (ac_try
="$ac_link"
4599 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4600 *) ac_try_echo=$ac_try;;
4602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4603 (eval "$ac_link") 2>&5
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4607 { (case "(($ac_try" in
4608 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4609 *) ac_try_echo
=$ac_try;;
4611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4612 (eval "$ac_try") 2>&5
4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615 (exit $ac_status); }; }; then
4616 ac_cv_no_strict_aliasing_ok
=yes
4618 echo "$as_me: program exited with status $ac_status" >&5
4619 echo "$as_me: failed program was:" >&5
4620 sed 's/^/| /' conftest.
$ac_ext >&5
4623 ac_cv_no_strict_aliasing_ok
=no
4625 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4630 { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
4631 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; }
4632 if test $ac_cv_no_strict_aliasing_ok = yes
4634 BASECFLAGS
="$BASECFLAGS -fno-strict-aliasing"
4637 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
4638 # support. Without this, treatment of subnormals doesn't follow
4640 case $ac_sys_machine in
4642 BASECFLAGS
="$BASECFLAGS -mieee"
4646 case $ac_sys_system in
4648 BASECFLAGS
="$BASECFLAGS -m486 -DSCO5"
4650 # is there any other compiler on Darwin besides gcc?
4652 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
4653 # used to be here, but non-Apple gcc doesn't accept them.
4656 if test "${enable_universalsdk}"; then
4657 UNIVERSAL_ARCH_FLAGS
=""
4658 if test "$UNIVERSAL_ARCHS" = "32-bit" ; then
4659 UNIVERSAL_ARCH_FLAGS
="-arch ppc -arch i386"
4662 elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then
4663 UNIVERSAL_ARCH_FLAGS
="-arch ppc64 -arch x86_64"
4665 elif test "$UNIVERSAL_ARCHS" = "all" ; then
4666 UNIVERSAL_ARCH_FLAGS
="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
4667 ARCH_RUN_32BIT
="arch -i386 -ppc"
4670 { { echo "$as_me:$LINENO: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&5
4671 echo "$as_me: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&2;}
4672 { (exit 1); exit 1; }; }
4677 BASECFLAGS
="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
4678 tgt
=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4679 if test "${UNIVERSALSDK}" != "/" -a "${tgt}" '>' '10.4' ; then
4680 CFLAGS
="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
4684 # Calculate the right deployment target for this build.
4686 cur_target
=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4687 if test ${cur_target} '>' 10.2; then
4690 if test "${UNIVERSAL_ARCHS}" = "all"; then
4691 # Ensure that the default platform for a 4-way
4692 # universal build is OSX 10.5, that's the first
4693 # OS release where 4-way builds make sense.
4696 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
4698 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
4699 # environment with a value that is the same as what we'll use
4700 # in the Makefile to ensure that we'll get the same compiler
4701 # environment during configure and build time.
4702 MACOSX_DEPLOYMENT_TARGET
="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
4703 export MACOSX_DEPLOYMENT_TARGET
4704 EXPORT_MACOSX_DEPLOYMENT_TARGET
=''
4708 BASECFLAGS
="$BASECFLAGS -mieee"
4714 case $ac_sys_system in
4715 OpenUNIX
*|UnixWare
*)
4716 BASECFLAGS
="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
4719 BASECFLAGS
="$BASECFLAGS -ieee -std"
4722 BASECFLAGS
="$BASECFLAGS -belf -Ki486 -DSCO5"
4728 if test "$Py_DEBUG" = 'true'; then
4734 if test "$ac_arch_flags"
4736 BASECFLAGS
="$BASECFLAGS $ac_arch_flags"
4739 # disable check for icc since it seems to pass, but generates a warning
4742 ac_cv_opt_olimit_ok
=no
4745 { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
4746 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; }
4747 if test "${ac_cv_opt_olimit_ok+set}" = set; then
4748 echo $ECHO_N "(cached) $ECHO_C" >&6
4751 CC
="$CC -OPT:Olimit=0"
4752 if test "$cross_compiling" = yes; then
4753 ac_cv_opt_olimit_ok
=no
4755 cat >conftest.
$ac_ext <<_ACEOF
4758 cat confdefs.h
>>conftest.
$ac_ext
4759 cat >>conftest.
$ac_ext <<_ACEOF
4760 /* end confdefs.h. */
4761 int main() { return 0; }
4763 rm -f conftest
$ac_exeext
4764 if { (ac_try
="$ac_link"
4766 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4767 *) ac_try_echo=$ac_try;;
4769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4770 (eval "$ac_link") 2>&5
4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4774 { (case "(($ac_try" in
4775 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4776 *) ac_try_echo
=$ac_try;;
4778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4779 (eval "$ac_try") 2>&5
4781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782 (exit $ac_status); }; }; then
4783 ac_cv_opt_olimit_ok
=yes
4785 echo "$as_me: program exited with status $ac_status" >&5
4786 echo "$as_me: failed program was:" >&5
4787 sed 's/^/| /' conftest.
$ac_ext >&5
4790 ac_cv_opt_olimit_ok
=no
4792 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4799 { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
4800 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; }
4801 if test $ac_cv_opt_olimit_ok = yes; then
4802 case $ac_sys_system in
4803 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
4804 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
4809 BASECFLAGS
="$BASECFLAGS -OPT:Olimit=0"
4813 { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
4814 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; }
4815 if test "${ac_cv_olimit_ok+set}" = set; then
4816 echo $ECHO_N "(cached) $ECHO_C" >&6
4819 CC
="$CC -Olimit 1500"
4820 if test "$cross_compiling" = yes; then
4823 cat >conftest.
$ac_ext <<_ACEOF
4826 cat confdefs.h
>>conftest.
$ac_ext
4827 cat >>conftest.
$ac_ext <<_ACEOF
4828 /* end confdefs.h. */
4829 int main() { return 0; }
4831 rm -f conftest
$ac_exeext
4832 if { (ac_try
="$ac_link"
4834 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4835 *) ac_try_echo=$ac_try;;
4837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4838 (eval "$ac_link") 2>&5
4840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4842 { (case "(($ac_try" in
4843 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4844 *) ac_try_echo
=$ac_try;;
4846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4847 (eval "$ac_try") 2>&5
4849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850 (exit $ac_status); }; }; then
4853 echo "$as_me: program exited with status $ac_status" >&5
4854 echo "$as_me: failed program was:" >&5
4855 sed 's/^/| /' conftest.
$ac_ext >&5
4860 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4867 { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4868 echo "${ECHO_T}$ac_cv_olimit_ok" >&6; }
4869 if test $ac_cv_olimit_ok = yes; then
4870 BASECFLAGS
="$BASECFLAGS -Olimit 1500"
4874 # Check whether GCC supports PyArg_ParseTuple format
4875 if test "$GCC" = "yes"
4877 { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
4878 echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; }
4880 CFLAGS
="$CFLAGS -Werror"
4881 cat >conftest.
$ac_ext <<_ACEOF
4884 cat confdefs.h
>>conftest.
$ac_ext
4885 cat >>conftest.
$ac_ext <<_ACEOF
4886 /* end confdefs.h. */
4888 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
4898 rm -f conftest.
$ac_objext
4899 if { (ac_try
="$ac_compile"
4901 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4902 *) ac_try_echo=$ac_try;;
4904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4905 (eval "$ac_compile") 2>conftest.er1
4907 grep -v '^ *+' conftest.er1 >conftest.err
4909 cat conftest.err >&5
4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911 (exit $ac_status); } && {
4912 test -z "$ac_c_werror_flag" ||
4913 test ! -s conftest.err
4914 } && test -s conftest.$ac_objext; then
4916 cat >>confdefs.h <<\_ACEOF
4917 #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
4920 { echo "$as_me:$LINENO: result: yes" >&5
4921 echo "${ECHO_T}yes" >&6; }
4923 echo "$as_me: failed program was:" >&5
4924 sed 's/^/| /' conftest.$ac_ext >&5
4926 { echo "$as_me:$LINENO: result: no" >&5
4927 echo "${ECHO_T}no" >&6; }
4931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4935 # On some compilers, pthreads are available without further options
4936 # (e.g. MacOS X). On some of these systems, the compiler will not
4937 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4938 # So we have to see first whether pthreads are available without
4939 # options before we can check whether -Kpthread improves anything.
4940 { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4941 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; }
4942 if test "${ac_cv_pthread_is_default+set}" = set; then
4943 echo $ECHO_N "(cached) $ECHO_C" >&6
4945 if test "$cross_compiling" = yes; then
4946 ac_cv_pthread_is_default=no
4948 cat >conftest.$ac_ext <<_ACEOF
4951 cat confdefs.h >>conftest.$ac_ext
4952 cat >>conftest.$ac_ext <<_ACEOF
4953 /* end confdefs.h. */
4955 #include <pthread.h>
4957 void* routine(void* p){return NULL;}
4961 if(pthread_create(&p,NULL,routine,NULL)!=0)
4963 (void)pthread_detach(p);
4968 rm -f conftest$ac_exeext
4969 if { (ac_try="$ac_link"
4971 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4972 *) ac_try_echo
=$ac_try;;
4974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4975 (eval "$ac_link") 2>&5
4977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4979 { (case "(($ac_try" in
4980 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4981 *) ac_try_echo=$ac_try;;
4983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4984 (eval "$ac_try") 2>&5
4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); }; }; then
4989 ac_cv_pthread_is_default=yes
4994 echo "$as_me: program exited with status $ac_status" >&5
4995 echo "$as_me: failed program was:" >&5
4996 sed 's/^/| /' conftest.$ac_ext >&5
4999 ac_cv_pthread_is_default=no
5001 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5008 { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
5009 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; }
5012 if test $ac_cv_pthread_is_default = yes
5016 # -Kpthread, if available, provides the right #defines
5017 # and linker options to make pthread_create available
5018 # Some compilers won't report that they do not support -Kpthread,
5019 # so we need to run a program to see whether it really made the
5020 # function available.
5021 { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
5022 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; }
5023 if test "${ac_cv_kpthread+set}" = set; then
5024 echo $ECHO_N "(cached) $ECHO_C" >&6
5028 if test "$cross_compiling" = yes; then
5031 cat >conftest.$ac_ext <<_ACEOF
5034 cat confdefs.h >>conftest.$ac_ext
5035 cat >>conftest.$ac_ext <<_ACEOF
5036 /* end confdefs.h. */
5038 #include <pthread.h>
5040 void* routine(void* p){return NULL;}
5044 if(pthread_create(&p,NULL,routine,NULL)!=0)
5046 (void)pthread_detach(p);
5051 rm -f conftest$ac_exeext
5052 if { (ac_try="$ac_link"
5054 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5055 *) ac_try_echo
=$ac_try;;
5057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5058 (eval "$ac_link") 2>&5
5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5062 { (case "(($ac_try" in
5063 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5064 *) ac_try_echo=$ac_try;;
5066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5067 (eval "$ac_try") 2>&5
5069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070 (exit $ac_status); }; }; then
5073 echo "$as_me: program exited with status $ac_status" >&5
5074 echo "$as_me: failed program was:" >&5
5075 sed 's/^/| /' conftest.$ac_ext >&5
5080 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5087 { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
5088 echo "${ECHO_T}$ac_cv_kpthread" >&6; }
5091 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
5093 # -Kthread, if available, provides the right #defines
5094 # and linker options to make pthread_create available
5095 # Some compilers won't report that they do not support -Kthread,
5096 # so we need to run a program to see whether it really made the
5097 # function available.
5098 { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
5099 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; }
5100 if test "${ac_cv_kthread+set}" = set; then
5101 echo $ECHO_N "(cached) $ECHO_C" >&6
5105 if test "$cross_compiling" = yes; then
5108 cat >conftest.$ac_ext <<_ACEOF
5111 cat confdefs.h >>conftest.$ac_ext
5112 cat >>conftest.$ac_ext <<_ACEOF
5113 /* end confdefs.h. */
5115 #include <pthread.h>
5117 void* routine(void* p){return NULL;}
5121 if(pthread_create(&p,NULL,routine,NULL)!=0)
5123 (void)pthread_detach(p);
5128 rm -f conftest$ac_exeext
5129 if { (ac_try="$ac_link"
5131 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5132 *) ac_try_echo
=$ac_try;;
5134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5135 (eval "$ac_link") 2>&5
5137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5139 { (case "(($ac_try" in
5140 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5141 *) ac_try_echo=$ac_try;;
5143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5144 (eval "$ac_try") 2>&5
5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); }; }; then
5150 echo "$as_me: program exited with status $ac_status" >&5
5151 echo "$as_me: failed program was:" >&5
5152 sed 's/^/| /' conftest.$ac_ext >&5
5157 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5164 { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
5165 echo "${ECHO_T}$ac_cv_kthread" >&6; }
5168 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
5170 # -pthread, if available, provides the right #defines
5171 # and linker options to make pthread_create available
5172 # Some compilers won't report that they do not support -pthread,
5173 # so we need to run a program to see whether it really made the
5174 # function available.
5175 { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
5176 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; }
5177 if test "${ac_cv_thread+set}" = set; then
5178 echo $ECHO_N "(cached) $ECHO_C" >&6
5182 if test "$cross_compiling" = yes; then
5185 cat >conftest.$ac_ext <<_ACEOF
5188 cat confdefs.h >>conftest.$ac_ext
5189 cat >>conftest.$ac_ext <<_ACEOF
5190 /* end confdefs.h. */
5192 #include <pthread.h>
5194 void* routine(void* p){return NULL;}
5198 if(pthread_create(&p,NULL,routine,NULL)!=0)
5200 (void)pthread_detach(p);
5205 rm -f conftest$ac_exeext
5206 if { (ac_try="$ac_link"
5208 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5209 *) ac_try_echo
=$ac_try;;
5211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5212 (eval "$ac_link") 2>&5
5214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5216 { (case "(($ac_try" in
5217 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5218 *) ac_try_echo=$ac_try;;
5220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5221 (eval "$ac_try") 2>&5
5223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224 (exit $ac_status); }; }; then
5227 echo "$as_me: program exited with status $ac_status" >&5
5228 echo "$as_me: failed program was:" >&5
5229 sed 's/^/| /' conftest.$ac_ext >&5
5234 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5241 { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
5242 echo "${ECHO_T}$ac_cv_pthread" >&6; }
5245 # If we have set a CC compiler flag for thread support then
5246 # check if it works for CXX, too.
5250 { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
5251 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; }
5254 if test "$ac_cv_kpthread" = "yes"
5256 CXX="$CXX -Kpthread"
5257 ac_cv_cxx_thread=yes
5258 elif test "$ac_cv_kthread" = "yes"
5261 ac_cv_cxx_thread=yes
5262 elif test "$ac_cv_pthread" = "yes"
5265 ac_cv_cxx_thread=yes
5268 if test $ac_cv_cxx_thread = yes
5270 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
5271 $CXX -c conftest.$ac_ext 2>&5
5272 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
5273 && test -s conftest$ac_exeext && ./conftest$ac_exeext
5275 ac_cv_cxx_thread=yes
5281 { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
5282 echo "${ECHO_T}$ac_cv_cxx_thread" >&6; }
5287 # checks for header files
5288 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5289 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5290 if test "${ac_cv_header_stdc+set}" = set; then
5291 echo $ECHO_N "(cached) $ECHO_C" >&6
5293 cat >conftest.$ac_ext <<_ACEOF
5296 cat confdefs.h >>conftest.$ac_ext
5297 cat >>conftest.$ac_ext <<_ACEOF
5298 /* end confdefs.h. */
5312 rm -f conftest.$ac_objext
5313 if { (ac_try="$ac_compile"
5315 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5316 *) ac_try_echo
=$ac_try;;
5318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5319 (eval "$ac_compile") 2>conftest.er1
5321 grep -v '^ *+' conftest.er1
>conftest.err
5323 cat conftest.err
>&5
5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325 (exit $ac_status); } && {
5326 test -z "$ac_c_werror_flag" ||
5327 test ! -s conftest.err
5328 } && test -s conftest.
$ac_objext; then
5329 ac_cv_header_stdc
=yes
5331 echo "$as_me: failed program was:" >&5
5332 sed 's/^/| /' conftest.
$ac_ext >&5
5334 ac_cv_header_stdc
=no
5337 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5339 if test $ac_cv_header_stdc = yes; then
5340 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5341 cat >conftest.
$ac_ext <<_ACEOF
5344 cat confdefs.h
>>conftest.
$ac_ext
5345 cat >>conftest.
$ac_ext <<_ACEOF
5346 /* end confdefs.h. */
5350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5351 $EGREP "memchr" >/dev
/null
2>&1; then
5354 ac_cv_header_stdc
=no
5360 if test $ac_cv_header_stdc = yes; then
5361 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5362 cat >conftest.
$ac_ext <<_ACEOF
5365 cat confdefs.h
>>conftest.
$ac_ext
5366 cat >>conftest.
$ac_ext <<_ACEOF
5367 /* end confdefs.h. */
5371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5372 $EGREP "free" >/dev
/null
2>&1; then
5375 ac_cv_header_stdc
=no
5381 if test $ac_cv_header_stdc = yes; then
5382 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5383 if test "$cross_compiling" = yes; then
5386 cat >conftest.
$ac_ext <<_ACEOF
5389 cat confdefs.h
>>conftest.
$ac_ext
5390 cat >>conftest.
$ac_ext <<_ACEOF
5391 /* end confdefs.h. */
5394 #if ((' ' & 0x0FF) == 0x020)
5395 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5396 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5398 # define ISLOWER(c) \
5399 (('a' <= (c) && (c) <= 'i') \
5400 || ('j' <= (c) && (c) <= 'r') \
5401 || ('s' <= (c) && (c) <= 'z'))
5402 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5405 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5410 for (i = 0; i < 256; i++)
5411 if (XOR (islower (i), ISLOWER (i))
5412 || toupper (i) != TOUPPER (i))
5417 rm -f conftest
$ac_exeext
5418 if { (ac_try
="$ac_link"
5420 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5421 *) ac_try_echo=$ac_try;;
5423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5424 (eval "$ac_link") 2>&5
5426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5428 { (case "(($ac_try" in
5429 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5430 *) ac_try_echo
=$ac_try;;
5432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5433 (eval "$ac_try") 2>&5
5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436 (exit $ac_status); }; }; then
5439 echo "$as_me: program exited with status $ac_status" >&5
5440 echo "$as_me: failed program was:" >&5
5441 sed 's/^/| /' conftest.
$ac_ext >&5
5444 ac_cv_header_stdc
=no
5446 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5452 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5453 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5454 if test $ac_cv_header_stdc = yes; then
5456 cat >>confdefs.h
<<\_ACEOF
5457 #define STDC_HEADERS 1
5462 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5472 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5473 inttypes.h stdint.h unistd.h
5475 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5476 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5478 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5479 echo $ECHO_N "(cached) $ECHO_C" >&6
5481 cat >conftest.
$ac_ext <<_ACEOF
5484 cat confdefs.h
>>conftest.
$ac_ext
5485 cat >>conftest.
$ac_ext <<_ACEOF
5486 /* end confdefs.h. */
5487 $ac_includes_default
5489 #include <$ac_header>
5491 rm -f conftest.
$ac_objext
5492 if { (ac_try
="$ac_compile"
5494 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5495 *) ac_try_echo=$ac_try;;
5497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5498 (eval "$ac_compile") 2>conftest.er1
5500 grep -v '^ *+' conftest.er1 >conftest.err
5502 cat conftest.err >&5
5503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504 (exit $ac_status); } && {
5505 test -z "$ac_c_werror_flag" ||
5506 test ! -s conftest.err
5507 } && test -s conftest.$ac_objext; then
5508 eval "$as_ac_Header=yes"
5510 echo "$as_me: failed program was:" >&5
5511 sed 's/^/| /' conftest.$ac_ext >&5
5513 eval "$as_ac_Header=no"
5516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5518 ac_res=`eval echo '${'$as_ac_Header'}'`
5519 { echo "$as_me:$LINENO: result: $ac_res" >&5
5520 echo "${ECHO_T}$ac_res" >&6; }
5521 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5522 cat >>confdefs.h <<_ACEOF
5523 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5585 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
5587 ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
5588 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
5590 sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
5591 sys/lock.h sys/mkdev.h sys/modem.h \
5592 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
5593 sys/termio.h sys/time.h \
5594 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
5595 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
5596 bluetooth/bluetooth.h linux/tipc.h
5598 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5600 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5601 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5603 echo $ECHO_N "(cached) $ECHO_C" >&6
5605 ac_res=`eval echo '${'$as_ac_Header'}'`
5606 { echo "$as_me:$LINENO: result: $ac_res" >&5
5607 echo "${ECHO_T}$ac_res" >&6; }
5609 # Is the header compilable?
5610 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5611 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5612 cat >conftest.$ac_ext <<_ACEOF
5615 cat confdefs.h >>conftest.$ac_ext
5616 cat >>conftest.$ac_ext <<_ACEOF
5617 /* end confdefs.h. */
5618 $ac_includes_default
5619 #include <$ac_header>
5621 rm -f conftest.$ac_objext
5622 if { (ac_try="$ac_compile"
5624 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5625 *) ac_try_echo
=$ac_try;;
5627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5628 (eval "$ac_compile") 2>conftest.er1
5630 grep -v '^ *+' conftest.er1
>conftest.err
5632 cat conftest.err
>&5
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); } && {
5635 test -z "$ac_c_werror_flag" ||
5636 test ! -s conftest.err
5637 } && test -s conftest.
$ac_objext; then
5638 ac_header_compiler
=yes
5640 echo "$as_me: failed program was:" >&5
5641 sed 's/^/| /' conftest.
$ac_ext >&5
5643 ac_header_compiler
=no
5646 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5647 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5648 echo "${ECHO_T}$ac_header_compiler" >&6; }
5650 # Is the header present?
5651 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5652 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5653 cat >conftest.
$ac_ext <<_ACEOF
5656 cat confdefs.h
>>conftest.
$ac_ext
5657 cat >>conftest.
$ac_ext <<_ACEOF
5658 /* end confdefs.h. */
5659 #include <$ac_header>
5661 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5663 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5664 *) ac_try_echo=$ac_try;;
5666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5667 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5669 grep -v '^ *+' conftest.er1 >conftest.err
5671 cat conftest.err >&5
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); } >/dev/null && {
5674 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5675 test ! -s conftest.err
5677 ac_header_preproc=yes
5679 echo "$as_me: failed program was:" >&5
5680 sed 's/^/| /' conftest.$ac_ext >&5
5682 ac_header_preproc=no
5685 rm -f conftest.err conftest.$ac_ext
5686 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5687 echo "${ECHO_T}$ac_header_preproc" >&6; }
5689 # So? What about this header?
5690 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5692 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5693 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5694 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5695 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5696 ac_header_preproc=yes
5699 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5700 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5701 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5702 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5703 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5704 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5705 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5706 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5707 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5708 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5709 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5710 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5712 ## ------------------------------------------------ ##
5713 ## Report this to http://www.python.org/python-bugs ##
5714 ## ------------------------------------------------ ##
5716 ) | sed "s/^/$as_me: WARNING: /" >&2
5719 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5721 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5722 echo $ECHO_N "(cached) $ECHO_C" >&6
5724 eval "$as_ac_Header=\$ac_header_preproc"
5726 ac_res=`eval echo '${'$as_ac_Header'}'`
5727 { echo "$as_me:$LINENO: result: $ac_res" >&5
5728 echo "${ECHO_T}$ac_res" >&6; }
5731 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5732 cat >>confdefs.h <<_ACEOF
5733 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5746 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5747 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" |
$as_tr_sh`
5748 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5749 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5750 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5751 echo $ECHO_N "(cached) $ECHO_C" >&6
5753 cat >conftest.$ac_ext <<_ACEOF
5756 cat confdefs.h >>conftest.$ac_ext
5757 cat >>conftest.$ac_ext <<_ACEOF
5758 /* end confdefs.h. */
5759 #include <sys/types.h>
5771 rm -f conftest.$ac_objext
5772 if { (ac_try="$ac_compile"
5774 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5775 *) ac_try_echo
=$ac_try;;
5777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5778 (eval "$ac_compile") 2>conftest.er1
5780 grep -v '^ *+' conftest.er1
>conftest.err
5782 cat conftest.err
>&5
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); } && {
5785 test -z "$ac_c_werror_flag" ||
5786 test ! -s conftest.err
5787 } && test -s conftest.
$ac_objext; then
5788 eval "$as_ac_Header=yes"
5790 echo "$as_me: failed program was:" >&5
5791 sed 's/^/| /' conftest.
$ac_ext >&5
5793 eval "$as_ac_Header=no"
5796 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5798 ac_res
=`eval echo '${'$as_ac_Header'}'`
5799 { echo "$as_me:$LINENO: result: $ac_res" >&5
5800 echo "${ECHO_T}$ac_res" >&6; }
5801 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5802 cat >>confdefs.h
<<_ACEOF
5803 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5806 ac_header_dirent
=$ac_hdr; break
5810 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5811 if test $ac_header_dirent = dirent.h
; then
5812 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5813 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5814 if test "${ac_cv_search_opendir+set}" = set; then
5815 echo $ECHO_N "(cached) $ECHO_C" >&6
5817 ac_func_search_save_LIBS
=$LIBS
5818 cat >conftest.
$ac_ext <<_ACEOF
5821 cat confdefs.h
>>conftest.
$ac_ext
5822 cat >>conftest.
$ac_ext <<_ACEOF
5823 /* end confdefs.h. */
5825 /* Override any GCC internal prototype to avoid an error.
5826 Use char because int might match the return type of a GCC
5827 builtin and then its argument prototype would still apply. */
5840 for ac_lib
in '' dir
; do
5841 if test -z "$ac_lib"; then
5842 ac_res
="none required"
5845 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5847 rm -f conftest.
$ac_objext conftest
$ac_exeext
5848 if { (ac_try
="$ac_link"
5850 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5851 *) ac_try_echo=$ac_try;;
5853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5854 (eval "$ac_link") 2>conftest.er1
5856 grep -v '^ *+' conftest.er1 >conftest.err
5858 cat conftest.err >&5
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); } && {
5861 test -z "$ac_c_werror_flag" ||
5862 test ! -s conftest.err
5863 } && test -s conftest$ac_exeext &&
5864 $as_test_x conftest$ac_exeext; then
5865 ac_cv_search_opendir=$ac_res
5867 echo "$as_me: failed program was:" >&5
5868 sed 's/^/| /' conftest.$ac_ext >&5
5873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5875 if test "${ac_cv_search_opendir+set}" = set; then
5879 if test "${ac_cv_search_opendir+set}" = set; then
5882 ac_cv_search_opendir=no
5885 LIBS=$ac_func_search_save_LIBS
5887 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5888 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5889 ac_res=$ac_cv_search_opendir
5890 if test "$ac_res" != no; then
5891 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5896 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5897 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5898 if test "${ac_cv_search_opendir+set}" = set; then
5899 echo $ECHO_N "(cached) $ECHO_C" >&6
5901 ac_func_search_save_LIBS=$LIBS
5902 cat >conftest.$ac_ext <<_ACEOF
5905 cat confdefs.h >>conftest.$ac_ext
5906 cat >>conftest.$ac_ext <<_ACEOF
5907 /* end confdefs.h. */
5909 /* Override any GCC internal prototype to avoid an error.
5910 Use char because int might match the return type of a GCC
5911 builtin and then its argument prototype would still apply. */
5924 for ac_lib in '' x; do
5925 if test -z "$ac_lib"; then
5926 ac_res="none required"
5929 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5931 rm -f conftest.$ac_objext conftest$ac_exeext
5932 if { (ac_try="$ac_link"
5934 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5935 *) ac_try_echo
=$ac_try;;
5937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5938 (eval "$ac_link") 2>conftest.er1
5940 grep -v '^ *+' conftest.er1
>conftest.err
5942 cat conftest.err
>&5
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); } && {
5945 test -z "$ac_c_werror_flag" ||
5946 test ! -s conftest.err
5947 } && test -s conftest
$ac_exeext &&
5948 $as_test_x conftest
$ac_exeext; then
5949 ac_cv_search_opendir
=$ac_res
5951 echo "$as_me: failed program was:" >&5
5952 sed 's/^/| /' conftest.
$ac_ext >&5
5957 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5959 if test "${ac_cv_search_opendir+set}" = set; then
5963 if test "${ac_cv_search_opendir+set}" = set; then
5966 ac_cv_search_opendir
=no
5969 LIBS
=$ac_func_search_save_LIBS
5971 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5972 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5973 ac_res
=$ac_cv_search_opendir
5974 if test "$ac_res" != no
; then
5975 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5981 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5982 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
5983 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5984 echo $ECHO_N "(cached) $ECHO_C" >&6
5986 cat >conftest.
$ac_ext <<_ACEOF
5989 cat confdefs.h
>>conftest.
$ac_ext
5990 cat >>conftest.
$ac_ext <<_ACEOF
5991 /* end confdefs.h. */
5992 #include <sys/types.h>
5996 return makedev(0, 0);
6001 rm -f conftest.
$ac_objext conftest
$ac_exeext
6002 if { (ac_try
="$ac_link"
6004 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6005 *) ac_try_echo=$ac_try;;
6007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6008 (eval "$ac_link") 2>conftest.er1
6010 grep -v '^ *+' conftest.er1 >conftest.err
6012 cat conftest.err >&5
6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); } && {
6015 test -z "$ac_c_werror_flag" ||
6016 test ! -s conftest.err
6017 } && test -s conftest$ac_exeext &&
6018 $as_test_x conftest$ac_exeext; then
6019 ac_cv_header_sys_types_h_makedev=yes
6021 echo "$as_me: failed program was:" >&5
6022 sed 's/^/| /' conftest.$ac_ext >&5
6024 ac_cv_header_sys_types_h_makedev=no
6027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6028 conftest$ac_exeext conftest.$ac_ext
6031 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
6032 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
6034 if test $ac_cv_header_sys_types_h_makedev = no; then
6035 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6036 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6037 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6038 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6039 echo $ECHO_N "(cached) $ECHO_C" >&6
6041 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6042 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6044 # Is the header compilable?
6045 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
6046 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
6047 cat >conftest.$ac_ext <<_ACEOF
6050 cat confdefs.h >>conftest.$ac_ext
6051 cat >>conftest.$ac_ext <<_ACEOF
6052 /* end confdefs.h. */
6053 $ac_includes_default
6054 #include <sys/mkdev.h>
6056 rm -f conftest.$ac_objext
6057 if { (ac_try="$ac_compile"
6059 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6060 *) ac_try_echo
=$ac_try;;
6062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6063 (eval "$ac_compile") 2>conftest.er1
6065 grep -v '^ *+' conftest.er1
>conftest.err
6067 cat conftest.err
>&5
6068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069 (exit $ac_status); } && {
6070 test -z "$ac_c_werror_flag" ||
6071 test ! -s conftest.err
6072 } && test -s conftest.
$ac_objext; then
6073 ac_header_compiler
=yes
6075 echo "$as_me: failed program was:" >&5
6076 sed 's/^/| /' conftest.
$ac_ext >&5
6078 ac_header_compiler
=no
6081 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6082 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6083 echo "${ECHO_T}$ac_header_compiler" >&6; }
6085 # Is the header present?
6086 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
6087 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
6088 cat >conftest.
$ac_ext <<_ACEOF
6091 cat confdefs.h
>>conftest.
$ac_ext
6092 cat >>conftest.
$ac_ext <<_ACEOF
6093 /* end confdefs.h. */
6094 #include <sys/mkdev.h>
6096 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6098 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6099 *) ac_try_echo=$ac_try;;
6101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6102 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6104 grep -v '^ *+' conftest.er1 >conftest.err
6106 cat conftest.err >&5
6107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6108 (exit $ac_status); } >/dev/null && {
6109 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6110 test ! -s conftest.err
6112 ac_header_preproc=yes
6114 echo "$as_me: failed program was:" >&5
6115 sed 's/^/| /' conftest.$ac_ext >&5
6117 ac_header_preproc=no
6120 rm -f conftest.err conftest.$ac_ext
6121 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6122 echo "${ECHO_T}$ac_header_preproc" >&6; }
6124 # So? What about this header?
6125 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6127 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6128 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6129 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
6130 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
6131 ac_header_preproc=yes
6134 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6135 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6136 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6137 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6138 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
6139 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
6140 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
6141 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
6142 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6143 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6144 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
6145 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
6147 ## ------------------------------------------------ ##
6148 ## Report this to http://www.python.org/python-bugs ##
6149 ## ------------------------------------------------ ##
6151 ) | sed "s/^/$as_me: WARNING: /" >&2
6154 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6155 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6156 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6157 echo $ECHO_N "(cached) $ECHO_C" >&6
6159 ac_cv_header_sys_mkdev_h=$ac_header_preproc
6161 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6162 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6165 if test $ac_cv_header_sys_mkdev_h = yes; then
6167 cat >>confdefs.h <<\_ACEOF
6168 #define MAJOR_IN_MKDEV 1
6175 if test $ac_cv_header_sys_mkdev_h = no; then
6176 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6177 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6178 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6179 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6180 echo $ECHO_N "(cached) $ECHO_C" >&6
6182 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6183 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6185 # Is the header compilable?
6186 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6187 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
6188 cat >conftest.$ac_ext <<_ACEOF
6191 cat confdefs.h >>conftest.$ac_ext
6192 cat >>conftest.$ac_ext <<_ACEOF
6193 /* end confdefs.h. */
6194 $ac_includes_default
6195 #include <sys/sysmacros.h>
6197 rm -f conftest.$ac_objext
6198 if { (ac_try="$ac_compile"
6200 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6201 *) ac_try_echo
=$ac_try;;
6203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6204 (eval "$ac_compile") 2>conftest.er1
6206 grep -v '^ *+' conftest.er1
>conftest.err
6208 cat conftest.err
>&5
6209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210 (exit $ac_status); } && {
6211 test -z "$ac_c_werror_flag" ||
6212 test ! -s conftest.err
6213 } && test -s conftest.
$ac_objext; then
6214 ac_header_compiler
=yes
6216 echo "$as_me: failed program was:" >&5
6217 sed 's/^/| /' conftest.
$ac_ext >&5
6219 ac_header_compiler
=no
6222 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6223 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6224 echo "${ECHO_T}$ac_header_compiler" >&6; }
6226 # Is the header present?
6227 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6228 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
6229 cat >conftest.
$ac_ext <<_ACEOF
6232 cat confdefs.h
>>conftest.
$ac_ext
6233 cat >>conftest.
$ac_ext <<_ACEOF
6234 /* end confdefs.h. */
6235 #include <sys/sysmacros.h>
6237 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6239 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6240 *) ac_try_echo=$ac_try;;
6242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6245 grep -v '^ *+' conftest.er1 >conftest.err
6247 cat conftest.err >&5
6248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249 (exit $ac_status); } >/dev/null && {
6250 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6251 test ! -s conftest.err
6253 ac_header_preproc=yes
6255 echo "$as_me: failed program was:" >&5
6256 sed 's/^/| /' conftest.$ac_ext >&5
6258 ac_header_preproc=no
6261 rm -f conftest.err conftest.$ac_ext
6262 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6263 echo "${ECHO_T}$ac_header_preproc" >&6; }
6265 # So? What about this header?
6266 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6268 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6269 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6270 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6271 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
6272 ac_header_preproc=yes
6275 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6276 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6277 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6278 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6279 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6280 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6281 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
6282 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
6283 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6284 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
6285 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6286 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
6288 ## ------------------------------------------------ ##
6289 ## Report this to http://www.python.org/python-bugs ##
6290 ## ------------------------------------------------ ##
6292 ) | sed "s/^/$as_me: WARNING: /" >&2
6295 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6296 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6297 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6298 echo $ECHO_N "(cached) $ECHO_C" >&6
6300 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
6302 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6303 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6306 if test $ac_cv_header_sys_sysmacros_h = yes; then
6308 cat >>confdefs.h <<\_ACEOF
6309 #define MAJOR_IN_SYSMACROS 1
6319 # On Solaris, term.h requires curses.h
6321 for ac_header in term.h
6323 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6324 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6327 echo $ECHO_N "(cached) $ECHO_C" >&6
6329 cat >conftest.$ac_ext <<_ACEOF
6332 cat confdefs.h >>conftest.$ac_ext
6333 cat >>conftest.$ac_ext <<_ACEOF
6334 /* end confdefs.h. */
6336 #ifdef HAVE_CURSES_H
6341 #include <$ac_header>
6343 rm -f conftest.$ac_objext
6344 if { (ac_try="$ac_compile"
6346 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6347 *) ac_try_echo
=$ac_try;;
6349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6350 (eval "$ac_compile") 2>conftest.er1
6352 grep -v '^ *+' conftest.er1
>conftest.err
6354 cat conftest.err
>&5
6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); } && {
6357 test -z "$ac_c_werror_flag" ||
6358 test ! -s conftest.err
6359 } && test -s conftest.
$ac_objext; then
6360 eval "$as_ac_Header=yes"
6362 echo "$as_me: failed program was:" >&5
6363 sed 's/^/| /' conftest.
$ac_ext >&5
6365 eval "$as_ac_Header=no"
6368 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6370 ac_res
=`eval echo '${'$as_ac_Header'}'`
6371 { echo "$as_me:$LINENO: result: $ac_res" >&5
6372 echo "${ECHO_T}$ac_res" >&6; }
6373 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6374 cat >>confdefs.h
<<_ACEOF
6375 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6383 # On Linux, netlink.h requires asm/types.h
6385 for ac_header
in linux
/netlink.h
6387 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6388 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6390 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6391 echo $ECHO_N "(cached) $ECHO_C" >&6
6393 cat >conftest.
$ac_ext <<_ACEOF
6396 cat confdefs.h
>>conftest.
$ac_ext
6397 cat >>conftest.
$ac_ext <<_ACEOF
6398 /* end confdefs.h. */
6400 #ifdef HAVE_ASM_TYPES_H
6401 #include <asm/types.h>
6403 #ifdef HAVE_SYS_SOCKET_H
6404 #include <sys/socket.h>
6408 #include <$ac_header>
6410 rm -f conftest.
$ac_objext
6411 if { (ac_try
="$ac_compile"
6413 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6414 *) ac_try_echo=$ac_try;;
6416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6417 (eval "$ac_compile") 2>conftest.er1
6419 grep -v '^ *+' conftest.er1 >conftest.err
6421 cat conftest.err >&5
6422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423 (exit $ac_status); } && {
6424 test -z "$ac_c_werror_flag" ||
6425 test ! -s conftest.err
6426 } && test -s conftest.$ac_objext; then
6427 eval "$as_ac_Header=yes"
6429 echo "$as_me: failed program was:" >&5
6430 sed 's/^/| /' conftest.$ac_ext >&5
6432 eval "$as_ac_Header=no"
6435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6437 ac_res=`eval echo '${'$as_ac_Header'}'`
6438 { echo "$as_me:$LINENO: result: $ac_res" >&5
6439 echo "${ECHO_T}$ac_res" >&6; }
6440 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6441 cat >>confdefs.h <<_ACEOF
6442 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6450 # checks for typedefs
6452 { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
6453 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6; }
6454 cat >conftest.$ac_ext <<_ACEOF
6457 cat confdefs.h >>conftest.$ac_ext
6458 cat >>conftest.$ac_ext <<_ACEOF
6459 /* end confdefs.h. */
6463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6464 $EGREP "clock_t" >/dev/null 2>&1; then
6469 cat >>confdefs.h <<\_ACEOF
6470 #define clock_t long
6477 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
6478 echo "${ECHO_T}$was_it_defined" >&6; }
6480 # Check whether using makedev requires defining _OSF_SOURCE
6481 { echo "$as_me:$LINENO: checking for makedev" >&5
6482 echo $ECHO_N "checking for makedev... $ECHO_C" >&6; }
6483 cat >conftest.$ac_ext <<_ACEOF
6486 cat confdefs.h >>conftest.$ac_ext
6487 cat >>conftest.$ac_ext <<_ACEOF
6488 /* end confdefs.h. */
6489 #include <sys/types.h>
6498 rm -f conftest.$ac_objext conftest$ac_exeext
6499 if { (ac_try="$ac_link"
6501 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6502 *) ac_try_echo
=$ac_try;;
6504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6505 (eval "$ac_link") 2>conftest.er1
6507 grep -v '^ *+' conftest.er1
>conftest.err
6509 cat conftest.err
>&5
6510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511 (exit $ac_status); } && {
6512 test -z "$ac_c_werror_flag" ||
6513 test ! -s conftest.err
6514 } && test -s conftest
$ac_exeext &&
6515 $as_test_x conftest
$ac_exeext; then
6516 ac_cv_has_makedev
=yes
6518 echo "$as_me: failed program was:" >&5
6519 sed 's/^/| /' conftest.
$ac_ext >&5
6521 ac_cv_has_makedev
=no
6524 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6525 conftest
$ac_exeext conftest.
$ac_ext
6526 if test "$ac_cv_has_makedev" = "no"; then
6527 # we didn't link, try if _OSF_SOURCE will allow us to link
6528 cat >conftest.
$ac_ext <<_ACEOF
6531 cat confdefs.h
>>conftest.
$ac_ext
6532 cat >>conftest.
$ac_ext <<_ACEOF
6533 /* end confdefs.h. */
6535 #define _OSF_SOURCE 1
6536 #include <sys/types.h>
6546 rm -f conftest.
$ac_objext conftest
$ac_exeext
6547 if { (ac_try
="$ac_link"
6549 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6550 *) ac_try_echo=$ac_try;;
6552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6553 (eval "$ac_link") 2>conftest.er1
6555 grep -v '^ *+' conftest.er1 >conftest.err
6557 cat conftest.err >&5
6558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559 (exit $ac_status); } && {
6560 test -z "$ac_c_werror_flag" ||
6561 test ! -s conftest.err
6562 } && test -s conftest$ac_exeext &&
6563 $as_test_x conftest$ac_exeext; then
6564 ac_cv_has_makedev=yes
6566 echo "$as_me: failed program was:" >&5
6567 sed 's/^/| /' conftest.$ac_ext >&5
6569 ac_cv_has_makedev=no
6572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6573 conftest$ac_exeext conftest.$ac_ext
6574 if test "$ac_cv_has_makedev" = "yes"; then
6576 cat >>confdefs.h <<\_ACEOF
6577 #define _OSF_SOURCE 1
6582 { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
6583 echo "${ECHO_T}$ac_cv_has_makedev" >&6; }
6584 if test "$ac_cv_has_makedev" = "yes"; then
6586 cat >>confdefs.h <<\_ACEOF
6587 #define HAVE_MAKEDEV 1
6592 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
6593 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
6594 # defined, but the compiler does not support pragma redefine_extname,
6595 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
6596 # structures (such as rlimit64) without declaring them. As a
6597 # work-around, disable LFS on such configurations
6600 { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
6601 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; }
6602 cat >conftest.$ac_ext <<_ACEOF
6605 cat confdefs.h >>conftest.$ac_ext
6606 cat >>conftest.$ac_ext <<_ACEOF
6607 /* end confdefs.h. */
6609 #define _LARGEFILE_SOURCE 1
6610 #define _FILE_OFFSET_BITS 64
6611 #include <sys/resource.h>
6621 rm -f conftest.$ac_objext
6622 if { (ac_try="$ac_compile"
6624 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6625 *) ac_try_echo
=$ac_try;;
6627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6628 (eval "$ac_compile") 2>conftest.er1
6630 grep -v '^ *+' conftest.er1
>conftest.err
6632 cat conftest.err
>&5
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); } && {
6635 test -z "$ac_c_werror_flag" ||
6636 test ! -s conftest.err
6637 } && test -s conftest.
$ac_objext; then
6640 echo "$as_me: failed program was:" >&5
6641 sed 's/^/| /' conftest.
$ac_ext >&5
6646 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6647 { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
6648 echo "${ECHO_T}$sol_lfs_bug" >&6; }
6649 if test "$sol_lfs_bug" = "yes"; then
6653 if test "$use_lfs" = "yes"; then
6654 # Two defines needed to enable largefile support on various platforms
6655 # These may affect some typedefs
6657 cat >>confdefs.h
<<\_ACEOF
6658 #define _LARGEFILE_SOURCE 1
6662 cat >>confdefs.h
<<\_ACEOF
6663 #define _FILE_OFFSET_BITS 64
6668 # Add some code to confdefs.h so that the test for off_t works on SCO
6669 cat >> confdefs.h
<<\EOF
6675 # Type availability checks
6676 { echo "$as_me:$LINENO: checking for mode_t" >&5
6677 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
6678 if test "${ac_cv_type_mode_t+set}" = set; then
6679 echo $ECHO_N "(cached) $ECHO_C" >&6
6681 cat >conftest.
$ac_ext <<_ACEOF
6684 cat confdefs.h
>>conftest.
$ac_ext
6685 cat >>conftest.
$ac_ext <<_ACEOF
6686 /* end confdefs.h. */
6687 $ac_includes_default
6688 typedef mode_t ac__type_new_;
6692 if ((ac__type_new_ *) 0)
6694 if (sizeof (ac__type_new_))
6700 rm -f conftest.
$ac_objext
6701 if { (ac_try
="$ac_compile"
6703 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6704 *) ac_try_echo=$ac_try;;
6706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6707 (eval "$ac_compile") 2>conftest.er1
6709 grep -v '^ *+' conftest.er1 >conftest.err
6711 cat conftest.err >&5
6712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6713 (exit $ac_status); } && {
6714 test -z "$ac_c_werror_flag" ||
6715 test ! -s conftest.err
6716 } && test -s conftest.$ac_objext; then
6717 ac_cv_type_mode_t=yes
6719 echo "$as_me: failed program was:" >&5
6720 sed 's/^/| /' conftest.$ac_ext >&5
6722 ac_cv_type_mode_t=no
6725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6727 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6728 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
6729 if test $ac_cv_type_mode_t = yes; then
6733 cat >>confdefs.h <<_ACEOF
6739 { echo "$as_me:$LINENO: checking for off_t" >&5
6740 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6741 if test "${ac_cv_type_off_t+set}" = set; then
6742 echo $ECHO_N "(cached) $ECHO_C" >&6
6744 cat >conftest.$ac_ext <<_ACEOF
6747 cat confdefs.h >>conftest.$ac_ext
6748 cat >>conftest.$ac_ext <<_ACEOF
6749 /* end confdefs.h. */
6750 $ac_includes_default
6751 typedef off_t ac__type_new_;
6755 if ((ac__type_new_ *) 0)
6757 if (sizeof (ac__type_new_))
6763 rm -f conftest.$ac_objext
6764 if { (ac_try="$ac_compile"
6766 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6767 *) ac_try_echo
=$ac_try;;
6769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6770 (eval "$ac_compile") 2>conftest.er1
6772 grep -v '^ *+' conftest.er1
>conftest.err
6774 cat conftest.err
>&5
6775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776 (exit $ac_status); } && {
6777 test -z "$ac_c_werror_flag" ||
6778 test ! -s conftest.err
6779 } && test -s conftest.
$ac_objext; then
6780 ac_cv_type_off_t
=yes
6782 echo "$as_me: failed program was:" >&5
6783 sed 's/^/| /' conftest.
$ac_ext >&5
6788 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6790 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6791 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6792 if test $ac_cv_type_off_t = yes; then
6796 cat >>confdefs.h
<<_ACEOF
6797 #define off_t long int
6802 { echo "$as_me:$LINENO: checking for pid_t" >&5
6803 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
6804 if test "${ac_cv_type_pid_t+set}" = set; then
6805 echo $ECHO_N "(cached) $ECHO_C" >&6
6807 cat >conftest.
$ac_ext <<_ACEOF
6810 cat confdefs.h
>>conftest.
$ac_ext
6811 cat >>conftest.
$ac_ext <<_ACEOF
6812 /* end confdefs.h. */
6813 $ac_includes_default
6814 typedef pid_t ac__type_new_;
6818 if ((ac__type_new_ *) 0)
6820 if (sizeof (ac__type_new_))
6826 rm -f conftest.
$ac_objext
6827 if { (ac_try
="$ac_compile"
6829 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6830 *) ac_try_echo=$ac_try;;
6832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6833 (eval "$ac_compile") 2>conftest.er1
6835 grep -v '^ *+' conftest.er1 >conftest.err
6837 cat conftest.err >&5
6838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839 (exit $ac_status); } && {
6840 test -z "$ac_c_werror_flag" ||
6841 test ! -s conftest.err
6842 } && test -s conftest.$ac_objext; then
6843 ac_cv_type_pid_t=yes
6845 echo "$as_me: failed program was:" >&5
6846 sed 's/^/| /' conftest.$ac_ext >&5
6851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6853 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6854 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
6855 if test $ac_cv_type_pid_t = yes; then
6859 cat >>confdefs.h <<_ACEOF
6865 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6866 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6867 if test "${ac_cv_type_signal+set}" = set; then
6868 echo $ECHO_N "(cached) $ECHO_C" >&6
6870 cat >conftest.$ac_ext <<_ACEOF
6873 cat confdefs.h >>conftest.$ac_ext
6874 cat >>conftest.$ac_ext <<_ACEOF
6875 /* end confdefs.h. */
6876 #include <sys/types.h>
6882 return *(signal (0, 0)) (0) == 1;
6887 rm -f conftest.$ac_objext
6888 if { (ac_try="$ac_compile"
6890 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6891 *) ac_try_echo
=$ac_try;;
6893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6894 (eval "$ac_compile") 2>conftest.er1
6896 grep -v '^ *+' conftest.er1
>conftest.err
6898 cat conftest.err
>&5
6899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900 (exit $ac_status); } && {
6901 test -z "$ac_c_werror_flag" ||
6902 test ! -s conftest.err
6903 } && test -s conftest.
$ac_objext; then
6904 ac_cv_type_signal
=int
6906 echo "$as_me: failed program was:" >&5
6907 sed 's/^/| /' conftest.
$ac_ext >&5
6909 ac_cv_type_signal
=void
6912 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6914 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6915 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6917 cat >>confdefs.h
<<_ACEOF
6918 #define RETSIGTYPE $ac_cv_type_signal
6922 { echo "$as_me:$LINENO: checking for size_t" >&5
6923 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6924 if test "${ac_cv_type_size_t+set}" = set; then
6925 echo $ECHO_N "(cached) $ECHO_C" >&6
6927 cat >conftest.
$ac_ext <<_ACEOF
6930 cat confdefs.h
>>conftest.
$ac_ext
6931 cat >>conftest.
$ac_ext <<_ACEOF
6932 /* end confdefs.h. */
6933 $ac_includes_default
6934 typedef size_t ac__type_new_;
6938 if ((ac__type_new_ *) 0)
6940 if (sizeof (ac__type_new_))
6946 rm -f conftest.
$ac_objext
6947 if { (ac_try
="$ac_compile"
6949 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6950 *) ac_try_echo=$ac_try;;
6952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6953 (eval "$ac_compile") 2>conftest.er1
6955 grep -v '^ *+' conftest.er1 >conftest.err
6957 cat conftest.err >&5
6958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959 (exit $ac_status); } && {
6960 test -z "$ac_c_werror_flag" ||
6961 test ! -s conftest.err
6962 } && test -s conftest.$ac_objext; then
6963 ac_cv_type_size_t=yes
6965 echo "$as_me: failed program was:" >&5
6966 sed 's/^/| /' conftest.$ac_ext >&5
6968 ac_cv_type_size_t=no
6971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6973 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6974 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
6975 if test $ac_cv_type_size_t = yes; then
6979 cat >>confdefs.h <<_ACEOF
6980 #define size_t unsigned int
6985 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6986 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
6987 if test "${ac_cv_type_uid_t+set}" = set; then
6988 echo $ECHO_N "(cached) $ECHO_C" >&6
6990 cat >conftest.$ac_ext <<_ACEOF
6993 cat confdefs.h >>conftest.$ac_ext
6994 cat >>conftest.$ac_ext <<_ACEOF
6995 /* end confdefs.h. */
6996 #include <sys/types.h>
6999 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7000 $EGREP "uid_t" >/dev/null 2>&1; then
7001 ac_cv_type_uid_t=yes
7008 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7009 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7010 if test $ac_cv_type_uid_t = no; then
7012 cat >>confdefs.h <<\_ACEOF
7017 cat >>confdefs.h <<\_ACEOF
7024 { echo "$as_me:$LINENO: checking for uint32_t" >&5
7025 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
7026 if test "${ac_cv_c_uint32_t+set}" = set; then
7027 echo $ECHO_N "(cached) $ECHO_C" >&6
7030 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
7031 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7032 cat >conftest.$ac_ext <<_ACEOF
7035 cat confdefs.h >>conftest.$ac_ext
7036 cat >>conftest.$ac_ext <<_ACEOF
7037 /* end confdefs.h. */
7038 $ac_includes_default
7042 static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
7049 rm -f conftest.$ac_objext
7050 if { (ac_try="$ac_compile"
7052 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7053 *) ac_try_echo
=$ac_try;;
7055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7056 (eval "$ac_compile") 2>conftest.er1
7058 grep -v '^ *+' conftest.er1
>conftest.err
7060 cat conftest.err
>&5
7061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062 (exit $ac_status); } && {
7063 test -z "$ac_c_werror_flag" ||
7064 test ! -s conftest.err
7065 } && test -s conftest.
$ac_objext; then
7067 uint32_t
) ac_cv_c_uint32_t
=yes ;;
7068 *) ac_cv_c_uint32_t
=$ac_type ;;
7072 echo "$as_me: failed program was:" >&5
7073 sed 's/^/| /' conftest.
$ac_ext >&5
7078 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7079 test "$ac_cv_c_uint32_t" != no
&& break
7082 { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
7083 echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
7084 case $ac_cv_c_uint32_t in #(
7088 cat >>confdefs.h
<<\_ACEOF
7093 cat >>confdefs.h
<<_ACEOF
7094 #define uint32_t $ac_cv_c_uint32_t
7100 { echo "$as_me:$LINENO: checking for uint64_t" >&5
7101 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
7102 if test "${ac_cv_c_uint64_t+set}" = set; then
7103 echo $ECHO_N "(cached) $ECHO_C" >&6
7106 for ac_type
in 'uint64_t' 'unsigned int' 'unsigned long int' \
7107 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7108 cat >conftest.
$ac_ext <<_ACEOF
7111 cat confdefs.h
>>conftest.
$ac_ext
7112 cat >>conftest.
$ac_ext <<_ACEOF
7113 /* end confdefs.h. */
7114 $ac_includes_default
7118 static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
7125 rm -f conftest.
$ac_objext
7126 if { (ac_try
="$ac_compile"
7128 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7129 *) ac_try_echo=$ac_try;;
7131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7132 (eval "$ac_compile") 2>conftest.er1
7134 grep -v '^ *+' conftest.er1 >conftest.err
7136 cat conftest.err >&5
7137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138 (exit $ac_status); } && {
7139 test -z "$ac_c_werror_flag" ||
7140 test ! -s conftest.err
7141 } && test -s conftest.$ac_objext; then
7143 uint64_t) ac_cv_c_uint64_t=yes ;;
7144 *) ac_cv_c_uint64_t=$ac_type ;;
7148 echo "$as_me: failed program was:" >&5
7149 sed 's/^/| /' conftest.$ac_ext >&5
7154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7155 test "$ac_cv_c_uint64_t" != no && break
7158 { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
7159 echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
7160 case $ac_cv_c_uint64_t in #(
7164 cat >>confdefs.h <<\_ACEOF
7169 cat >>confdefs.h <<_ACEOF
7170 #define uint64_t $ac_cv_c_uint64_t
7176 { echo "$as_me:$LINENO: checking for int32_t" >&5
7177 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
7178 if test "${ac_cv_c_int32_t+set}" = set; then
7179 echo $ECHO_N "(cached) $ECHO_C" >&6
7182 for ac_type in 'int32_t' 'int' 'long int' \
7183 'long long int' 'short int' 'signed char'; do
7184 cat >conftest.$ac_ext <<_ACEOF
7187 cat confdefs.h >>conftest.$ac_ext
7188 cat >>conftest.$ac_ext <<_ACEOF
7189 /* end confdefs.h. */
7190 $ac_includes_default
7194 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
7201 rm -f conftest.$ac_objext
7202 if { (ac_try="$ac_compile"
7204 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7205 *) ac_try_echo
=$ac_try;;
7207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7208 (eval "$ac_compile") 2>conftest.er1
7210 grep -v '^ *+' conftest.er1
>conftest.err
7212 cat conftest.err
>&5
7213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7214 (exit $ac_status); } && {
7215 test -z "$ac_c_werror_flag" ||
7216 test ! -s conftest.err
7217 } && test -s conftest.
$ac_objext; then
7218 cat >conftest.
$ac_ext <<_ACEOF
7221 cat confdefs.h
>>conftest.
$ac_ext
7222 cat >>conftest.
$ac_ext <<_ACEOF
7223 /* end confdefs.h. */
7224 $ac_includes_default
7228 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
7229 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
7236 rm -f conftest.
$ac_objext
7237 if { (ac_try
="$ac_compile"
7239 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7240 *) ac_try_echo=$ac_try;;
7242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7243 (eval "$ac_compile") 2>conftest.er1
7245 grep -v '^ *+' conftest.er1 >conftest.err
7247 cat conftest.err >&5
7248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249 (exit $ac_status); } && {
7250 test -z "$ac_c_werror_flag" ||
7251 test ! -s conftest.err
7252 } && test -s conftest.$ac_objext; then
7255 echo "$as_me: failed program was:" >&5
7256 sed 's/^/| /' conftest.$ac_ext >&5
7259 int32_t) ac_cv_c_int32_t=yes ;;
7260 *) ac_cv_c_int32_t=$ac_type ;;
7265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7267 echo "$as_me: failed program was:" >&5
7268 sed 's/^/| /' conftest.$ac_ext >&5
7273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7274 test "$ac_cv_c_int32_t" != no && break
7277 { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
7278 echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
7279 case $ac_cv_c_int32_t in #(
7283 cat >>confdefs.h <<_ACEOF
7284 #define int32_t $ac_cv_c_int32_t
7290 { echo "$as_me:$LINENO: checking for int64_t" >&5
7291 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
7292 if test "${ac_cv_c_int64_t+set}" = set; then
7293 echo $ECHO_N "(cached) $ECHO_C" >&6
7296 for ac_type in 'int64_t' 'int' 'long int' \
7297 'long long int' 'short int' 'signed char'; do
7298 cat >conftest.$ac_ext <<_ACEOF
7301 cat confdefs.h >>conftest.$ac_ext
7302 cat >>conftest.$ac_ext <<_ACEOF
7303 /* end confdefs.h. */
7304 $ac_includes_default
7308 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
7315 rm -f conftest.$ac_objext
7316 if { (ac_try="$ac_compile"
7318 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7319 *) ac_try_echo
=$ac_try;;
7321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7322 (eval "$ac_compile") 2>conftest.er1
7324 grep -v '^ *+' conftest.er1
>conftest.err
7326 cat conftest.err
>&5
7327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7328 (exit $ac_status); } && {
7329 test -z "$ac_c_werror_flag" ||
7330 test ! -s conftest.err
7331 } && test -s conftest.
$ac_objext; then
7332 cat >conftest.
$ac_ext <<_ACEOF
7335 cat confdefs.h
>>conftest.
$ac_ext
7336 cat >>conftest.
$ac_ext <<_ACEOF
7337 /* end confdefs.h. */
7338 $ac_includes_default
7342 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
7343 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
7350 rm -f conftest.
$ac_objext
7351 if { (ac_try
="$ac_compile"
7353 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7354 *) ac_try_echo=$ac_try;;
7356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7357 (eval "$ac_compile") 2>conftest.er1
7359 grep -v '^ *+' conftest.er1 >conftest.err
7361 cat conftest.err >&5
7362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363 (exit $ac_status); } && {
7364 test -z "$ac_c_werror_flag" ||
7365 test ! -s conftest.err
7366 } && test -s conftest.$ac_objext; then
7369 echo "$as_me: failed program was:" >&5
7370 sed 's/^/| /' conftest.$ac_ext >&5
7373 int64_t) ac_cv_c_int64_t=yes ;;
7374 *) ac_cv_c_int64_t=$ac_type ;;
7379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7381 echo "$as_me: failed program was:" >&5
7382 sed 's/^/| /' conftest.$ac_ext >&5
7387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7388 test "$ac_cv_c_int64_t" != no && break
7391 { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
7392 echo "${ECHO_T}$ac_cv_c_int64_t" >&6; }
7393 case $ac_cv_c_int64_t in #(
7397 cat >>confdefs.h <<_ACEOF
7398 #define int64_t $ac_cv_c_int64_t
7403 { echo "$as_me:$LINENO: checking for ssize_t" >&5
7404 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
7405 if test "${ac_cv_type_ssize_t+set}" = set; then
7406 echo $ECHO_N "(cached) $ECHO_C" >&6
7408 cat >conftest.$ac_ext <<_ACEOF
7411 cat confdefs.h >>conftest.$ac_ext
7412 cat >>conftest.$ac_ext <<_ACEOF
7413 /* end confdefs.h. */
7414 $ac_includes_default
7415 typedef ssize_t ac__type_new_;
7419 if ((ac__type_new_ *) 0)
7421 if (sizeof (ac__type_new_))
7427 rm -f conftest.$ac_objext
7428 if { (ac_try="$ac_compile"
7430 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7431 *) ac_try_echo
=$ac_try;;
7433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7434 (eval "$ac_compile") 2>conftest.er1
7436 grep -v '^ *+' conftest.er1
>conftest.err
7438 cat conftest.err
>&5
7439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7440 (exit $ac_status); } && {
7441 test -z "$ac_c_werror_flag" ||
7442 test ! -s conftest.err
7443 } && test -s conftest.
$ac_objext; then
7444 ac_cv_type_ssize_t
=yes
7446 echo "$as_me: failed program was:" >&5
7447 sed 's/^/| /' conftest.
$ac_ext >&5
7449 ac_cv_type_ssize_t
=no
7452 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7454 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7455 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
7456 if test $ac_cv_type_ssize_t = yes; then
7458 cat >>confdefs.h
<<\_ACEOF
7459 #define HAVE_SSIZE_T 1
7465 # Sizes of various common basic types
7466 # ANSI C requires sizeof(char) == 1, so no need to check it
7467 { echo "$as_me:$LINENO: checking for int" >&5
7468 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
7469 if test "${ac_cv_type_int+set}" = set; then
7470 echo $ECHO_N "(cached) $ECHO_C" >&6
7472 cat >conftest.
$ac_ext <<_ACEOF
7475 cat confdefs.h
>>conftest.
$ac_ext
7476 cat >>conftest.
$ac_ext <<_ACEOF
7477 /* end confdefs.h. */
7478 $ac_includes_default
7479 typedef int ac__type_new_;
7483 if ((ac__type_new_ *) 0)
7485 if (sizeof (ac__type_new_))
7491 rm -f conftest.
$ac_objext
7492 if { (ac_try
="$ac_compile"
7494 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7495 *) ac_try_echo=$ac_try;;
7497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7498 (eval "$ac_compile") 2>conftest.er1
7500 grep -v '^ *+' conftest.er1 >conftest.err
7502 cat conftest.err >&5
7503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504 (exit $ac_status); } && {
7505 test -z "$ac_c_werror_flag" ||
7506 test ! -s conftest.err
7507 } && test -s conftest.$ac_objext; then
7510 echo "$as_me: failed program was:" >&5
7511 sed 's/^/| /' conftest.$ac_ext >&5
7516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7518 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7519 echo "${ECHO_T}$ac_cv_type_int" >&6; }
7521 # The cast to long int works around a bug in the HP C Compiler
7522 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7523 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
7524 # This bug is HP SR number 8606223364.
7525 { echo "$as_me:$LINENO: checking size of int" >&5
7526 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
7527 if test "${ac_cv_sizeof_int+set}" = set; then
7528 echo $ECHO_N "(cached) $ECHO_C" >&6
7530 if test "$cross_compiling" = yes; then
7531 # Depending upon the size, compute the lo and hi bounds.
7532 cat >conftest.$ac_ext <<_ACEOF
7535 cat confdefs.h >>conftest.$ac_ext
7536 cat >>conftest.$ac_ext <<_ACEOF
7537 /* end confdefs.h. */
7538 $ac_includes_default
7539 typedef int ac__type_sizeof_;
7543 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7550 rm -f conftest.$ac_objext
7551 if { (ac_try="$ac_compile"
7553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7554 *) ac_try_echo=$ac_try;;
7556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7557 (eval "$ac_compile") 2>conftest.er1
7559 grep -v '^
*+' conftest.er1 >conftest.err
7561 cat conftest.err >&5
7562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563 (exit $ac_status); } && {
7564 test -z "$ac_c_werror_flag" ||
7565 test ! -s conftest.err
7566 } && test -s conftest.$ac_objext; then
7569 cat >conftest.$ac_ext <<_ACEOF
7572 cat confdefs.h >>conftest.$ac_ext
7573 cat >>conftest.$ac_ext <<_ACEOF
7574 /* end confdefs.h. */
7575 $ac_includes_default
7576 typedef int ac__type_sizeof_;
7580 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7587 rm -f conftest.$ac_objext
7588 if { (ac_try="$ac_compile"
7590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7591 *) ac_try_echo=$ac_try;;
7593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7594 (eval "$ac_compile") 2>conftest.er1
7596 grep -v '^
*+' conftest.er1 >conftest.err
7598 cat conftest.err >&5
7599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7600 (exit $ac_status); } && {
7601 test -z "$ac_c_werror_flag" ||
7602 test ! -s conftest.err
7603 } && test -s conftest.$ac_objext; then
7604 ac_hi=$ac_mid; break
7606 echo "$as_me: failed program was:" >&5
7607 sed 's
/^
/|
/' conftest.$ac_ext >&5
7609 ac_lo=`expr $ac_mid + 1`
7610 if test $ac_lo -le $ac_mid; then
7614 ac_mid=`expr 2 '*' $ac_mid + 1`
7617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7620 echo "$as_me: failed program was:" >&5
7621 sed 's
/^
/|
/' conftest.$ac_ext >&5
7623 cat >conftest.$ac_ext <<_ACEOF
7626 cat confdefs.h >>conftest.$ac_ext
7627 cat >>conftest.$ac_ext <<_ACEOF
7628 /* end confdefs.h. */
7629 $ac_includes_default
7630 typedef int ac__type_sizeof_;
7634 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7641 rm -f conftest.$ac_objext
7642 if { (ac_try="$ac_compile"
7644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7645 *) ac_try_echo=$ac_try;;
7647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7648 (eval "$ac_compile") 2>conftest.er1
7650 grep -v '^
*+' conftest.er1 >conftest.err
7652 cat conftest.err >&5
7653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654 (exit $ac_status); } && {
7655 test -z "$ac_c_werror_flag" ||
7656 test ! -s conftest.err
7657 } && test -s conftest.$ac_objext; then
7660 cat >conftest.$ac_ext <<_ACEOF
7663 cat confdefs.h >>conftest.$ac_ext
7664 cat >>conftest.$ac_ext <<_ACEOF
7665 /* end confdefs.h. */
7666 $ac_includes_default
7667 typedef int ac__type_sizeof_;
7671 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7678 rm -f conftest.$ac_objext
7679 if { (ac_try="$ac_compile"
7681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7682 *) ac_try_echo=$ac_try;;
7684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7685 (eval "$ac_compile") 2>conftest.er1
7687 grep -v '^
*+' conftest.er1 >conftest.err
7689 cat conftest.err >&5
7690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691 (exit $ac_status); } && {
7692 test -z "$ac_c_werror_flag" ||
7693 test ! -s conftest.err
7694 } && test -s conftest.$ac_objext; then
7695 ac_lo=$ac_mid; break
7697 echo "$as_me: failed program was:" >&5
7698 sed 's
/^
/|
/' conftest.$ac_ext >&5
7700 ac_hi=`expr '(' $ac_mid ')' - 1`
7701 if test $ac_mid -le $ac_hi; then
7705 ac_mid=`expr 2 '*' $ac_mid`
7708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7711 echo "$as_me: failed program was:" >&5
7712 sed 's
/^
/|
/' conftest.$ac_ext >&5
7717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7721 # Binary search between lo and hi bounds.
7722 while test "x$ac_lo" != "x$ac_hi"; do
7723 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7724 cat >conftest.$ac_ext <<_ACEOF
7727 cat confdefs.h >>conftest.$ac_ext
7728 cat >>conftest.$ac_ext <<_ACEOF
7729 /* end confdefs.h. */
7730 $ac_includes_default
7731 typedef int ac__type_sizeof_;
7735 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7742 rm -f conftest.$ac_objext
7743 if { (ac_try="$ac_compile"
7745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7746 *) ac_try_echo=$ac_try;;
7748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7749 (eval "$ac_compile") 2>conftest.er1
7751 grep -v '^
*+' conftest.er1 >conftest.err
7753 cat conftest.err >&5
7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 (exit $ac_status); } && {
7756 test -z "$ac_c_werror_flag" ||
7757 test ! -s conftest.err
7758 } && test -s conftest.$ac_objext; then
7761 echo "$as_me: failed program was:" >&5
7762 sed 's
/^
/|
/' conftest.$ac_ext >&5
7764 ac_lo=`expr '(' $ac_mid ')' + 1`
7767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7770 ?*) ac_cv_sizeof_int=$ac_lo;;
7771 '') if test "$ac_cv_type_int" = yes; then
7772 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7773 See \`config.log' for more details.
" >&5
7774 echo "$as_me: error
: cannot compute sizeof
(int
)
7775 See \
`config.log' for more details." >&2;}
7776 { (exit 77); exit 77; }; }
7782 cat >conftest.$ac_ext <<_ACEOF
7785 cat confdefs.h >>conftest.$ac_ext
7786 cat >>conftest.$ac_ext <<_ACEOF
7787 /* end confdefs.h. */
7788 $ac_includes_default
7789 typedef int ac__type_sizeof_;
7790 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7791 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7798 FILE *f = fopen ("conftest.val", "w");
7801 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7803 long int i = longval ();
7804 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7806 fprintf (f, "%ld\n", i);
7810 unsigned long int i = ulongval ();
7811 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7813 fprintf (f, "%lu\n", i);
7815 return ferror (f) || fclose (f) != 0;
7821 rm -f conftest$ac_exeext
7822 if { (ac_try="$ac_link"
7824 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7825 *) ac_try_echo
=$ac_try;;
7827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7828 (eval "$ac_link") 2>&5
7830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7832 { (case "(($ac_try" in
7833 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7834 *) ac_try_echo=$ac_try;;
7836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7837 (eval "$ac_try") 2>&5
7839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840 (exit $ac_status); }; }; then
7841 ac_cv_sizeof_int=`cat conftest.val
`
7843 echo "$as_me: program exited with status $ac_status" >&5
7844 echo "$as_me: failed program was:" >&5
7845 sed 's/^/| /' conftest.$ac_ext >&5
7848 if test "$ac_cv_type_int" = yes; then
7849 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7850 See \`config.log
' for more details." >&5
7851 echo "$as_me: error: cannot compute sizeof (int)
7852 See \`config.log' for more details.
" >&2;}
7853 { (exit 77); exit 77; }; }
7858 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7862 { echo "$as_me:$LINENO: result
: $ac_cv_sizeof_int" >&5
7863 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7867 cat >>confdefs.h <<_ACEOF
7868 #define SIZEOF_INT $ac_cv_sizeof_int
7872 { echo "$as_me:$LINENO: checking
for long
" >&5
7873 echo $ECHO_N "checking
for long...
$ECHO_C" >&6; }
7874 if test "${ac_cv_type_long+set}" = set; then
7875 echo $ECHO_N "(cached
) $ECHO_C" >&6
7877 cat >conftest.$ac_ext <<_ACEOF
7880 cat confdefs.h >>conftest.$ac_ext
7881 cat >>conftest.$ac_ext <<_ACEOF
7882 /* end confdefs.h. */
7883 $ac_includes_default
7884 typedef long ac__type_new_;
7888 if ((ac__type_new_ *) 0)
7890 if (sizeof (ac__type_new_))
7896 rm -f conftest.$ac_objext
7897 if { (ac_try="$ac_compile"
7899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7900 *) ac_try_echo=$ac_try;;
7902 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7903 (eval "$ac_compile") 2>conftest.er1
7905 grep -v '^ *+' conftest.er1 >conftest.err
7907 cat conftest.err >&5
7908 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7909 (exit $ac_status); } && {
7910 test -z "$ac_c_werror_flag" ||
7911 test ! -s conftest.err
7912 } && test -s conftest.$ac_objext; then
7915 echo "$as_me: failed program was
:" >&5
7916 sed 's/^/| /' conftest.$ac_ext >&5
7921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7923 { echo "$as_me:$LINENO: result
: $ac_cv_type_long" >&5
7924 echo "${ECHO_T}$ac_cv_type_long" >&6; }
7926 # The cast to long int works around a bug in the HP C Compiler
7927 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7928 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7929 # This bug is HP SR number 8606223364.
7930 { echo "$as_me:$LINENO: checking size of long
" >&5
7931 echo $ECHO_N "checking size of long...
$ECHO_C" >&6; }
7932 if test "${ac_cv_sizeof_long+set}" = set; then
7933 echo $ECHO_N "(cached
) $ECHO_C" >&6
7935 if test "$cross_compiling" = yes; then
7936 # Depending upon the size, compute the lo and hi bounds.
7937 cat >conftest.$ac_ext <<_ACEOF
7940 cat confdefs.h >>conftest.$ac_ext
7941 cat >>conftest.$ac_ext <<_ACEOF
7942 /* end confdefs.h. */
7943 $ac_includes_default
7944 typedef long ac__type_sizeof_;
7948 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7955 rm -f conftest.$ac_objext
7956 if { (ac_try="$ac_compile"
7958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7959 *) ac_try_echo=$ac_try;;
7961 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7962 (eval "$ac_compile") 2>conftest.er1
7964 grep -v '^ *+' conftest.er1 >conftest.err
7966 cat conftest.err >&5
7967 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7968 (exit $ac_status); } && {
7969 test -z "$ac_c_werror_flag" ||
7970 test ! -s conftest.err
7971 } && test -s conftest.$ac_objext; then
7974 cat >conftest.$ac_ext <<_ACEOF
7977 cat confdefs.h >>conftest.$ac_ext
7978 cat >>conftest.$ac_ext <<_ACEOF
7979 /* end confdefs.h. */
7980 $ac_includes_default
7981 typedef long ac__type_sizeof_;
7985 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7992 rm -f conftest.$ac_objext
7993 if { (ac_try="$ac_compile"
7995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7996 *) ac_try_echo=$ac_try;;
7998 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7999 (eval "$ac_compile") 2>conftest.er1
8001 grep -v '^ *+' conftest.er1 >conftest.err
8003 cat conftest.err >&5
8004 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8005 (exit $ac_status); } && {
8006 test -z "$ac_c_werror_flag" ||
8007 test ! -s conftest.err
8008 } && test -s conftest.$ac_objext; then
8009 ac_hi=$ac_mid; break
8011 echo "$as_me: failed program was
:" >&5
8012 sed 's/^/| /' conftest.$ac_ext >&5
8014 ac_lo=`expr $ac_mid + 1`
8015 if test $ac_lo -le $ac_mid; then
8019 ac_mid=`expr 2 '*' $ac_mid + 1`
8022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8025 echo "$as_me: failed program was
:" >&5
8026 sed 's/^/| /' conftest.$ac_ext >&5
8028 cat >conftest.$ac_ext <<_ACEOF
8031 cat confdefs.h >>conftest.$ac_ext
8032 cat >>conftest.$ac_ext <<_ACEOF
8033 /* end confdefs.h. */
8034 $ac_includes_default
8035 typedef long ac__type_sizeof_;
8039 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8046 rm -f conftest.$ac_objext
8047 if { (ac_try="$ac_compile"
8049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8050 *) ac_try_echo=$ac_try;;
8052 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8053 (eval "$ac_compile") 2>conftest.er1
8055 grep -v '^ *+' conftest.er1 >conftest.err
8057 cat conftest.err >&5
8058 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8059 (exit $ac_status); } && {
8060 test -z "$ac_c_werror_flag" ||
8061 test ! -s conftest.err
8062 } && test -s conftest.$ac_objext; then
8065 cat >conftest.$ac_ext <<_ACEOF
8068 cat confdefs.h >>conftest.$ac_ext
8069 cat >>conftest.$ac_ext <<_ACEOF
8070 /* end confdefs.h. */
8071 $ac_includes_default
8072 typedef long ac__type_sizeof_;
8076 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8083 rm -f conftest.$ac_objext
8084 if { (ac_try="$ac_compile"
8086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8087 *) ac_try_echo=$ac_try;;
8089 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8090 (eval "$ac_compile") 2>conftest.er1
8092 grep -v '^ *+' conftest.er1 >conftest.err
8094 cat conftest.err >&5
8095 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8096 (exit $ac_status); } && {
8097 test -z "$ac_c_werror_flag" ||
8098 test ! -s conftest.err
8099 } && test -s conftest.$ac_objext; then
8100 ac_lo=$ac_mid; break
8102 echo "$as_me: failed program was
:" >&5
8103 sed 's/^/| /' conftest.$ac_ext >&5
8105 ac_hi=`expr '(' $ac_mid ')' - 1`
8106 if test $ac_mid -le $ac_hi; then
8110 ac_mid=`expr 2 '*' $ac_mid`
8113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8116 echo "$as_me: failed program was
:" >&5
8117 sed 's/^/| /' conftest.$ac_ext >&5
8122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8126 # Binary search between lo and hi bounds.
8127 while test "x
$ac_lo" != "x
$ac_hi"; do
8128 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8129 cat >conftest.$ac_ext <<_ACEOF
8132 cat confdefs.h >>conftest.$ac_ext
8133 cat >>conftest.$ac_ext <<_ACEOF
8134 /* end confdefs.h. */
8135 $ac_includes_default
8136 typedef long ac__type_sizeof_;
8140 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8147 rm -f conftest.$ac_objext
8148 if { (ac_try="$ac_compile"
8150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8151 *) ac_try_echo=$ac_try;;
8153 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8154 (eval "$ac_compile") 2>conftest.er1
8156 grep -v '^ *+' conftest.er1 >conftest.err
8158 cat conftest.err >&5
8159 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8160 (exit $ac_status); } && {
8161 test -z "$ac_c_werror_flag" ||
8162 test ! -s conftest.err
8163 } && test -s conftest.$ac_objext; then
8166 echo "$as_me: failed program was
:" >&5
8167 sed 's/^/| /' conftest.$ac_ext >&5
8169 ac_lo=`expr '(' $ac_mid ')' + 1`
8172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8175 ?*) ac_cv_sizeof_long=$ac_lo;;
8176 '') if test "$ac_cv_type_long" = yes; then
8177 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long
)
8178 See \
`config.log' for more details." >&5
8179 echo "$as_me: error: cannot compute sizeof (long)
8180 See \`config.log
' for more details." >&2;}
8181 { (exit 77); exit 77; }; }
8187 cat >conftest.$ac_ext <<_ACEOF
8190 cat confdefs.h >>conftest.$ac_ext
8191 cat >>conftest.$ac_ext <<_ACEOF
8192 /* end confdefs.h. */
8193 $ac_includes_default
8194 typedef long ac__type_sizeof_;
8195 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8196 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8203 FILE *f = fopen ("conftest.val", "w");
8206 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8208 long int i = longval ();
8209 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8211 fprintf (f, "%ld\n", i);
8215 unsigned long int i = ulongval ();
8216 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8218 fprintf (f, "%lu\n", i);
8220 return ferror (f) || fclose (f) != 0;
8226 rm -f conftest$ac_exeext
8227 if { (ac_try="$ac_link"
8229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8230 *) ac_try_echo=$ac_try;;
8232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8233 (eval "$ac_link") 2>&5
8235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
8237 { (case "(($ac_try" in
8238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8239 *) ac_try_echo=$ac_try;;
8241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8242 (eval "$ac_try") 2>&5
8244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245 (exit $ac_status); }; }; then
8246 ac_cv_sizeof_long=`cat conftest.val`
8248 echo "$as_me: program exited with status $ac_status" >&5
8249 echo "$as_me: failed program was:" >&5
8250 sed 's
/^
/|
/' conftest.$ac_ext >&5
8253 if test "$ac_cv_type_long" = yes; then
8254 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8255 See \`config.log' for more details.
" >&5
8256 echo "$as_me: error
: cannot compute sizeof
(long
)
8257 See \
`config.log' for more details." >&2;}
8258 { (exit 77); exit 77; }; }
8263 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8267 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8268 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
8272 cat >>confdefs.h <<_ACEOF
8273 #define SIZEOF_LONG $ac_cv_sizeof_long
8277 { echo "$as_me:$LINENO: checking for void *" >&5
8278 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
8279 if test "${ac_cv_type_void_p+set}" = set; then
8280 echo $ECHO_N "(cached) $ECHO_C" >&6
8282 cat >conftest.$ac_ext <<_ACEOF
8285 cat confdefs.h >>conftest.$ac_ext
8286 cat >>conftest.$ac_ext <<_ACEOF
8287 /* end confdefs.h. */
8288 $ac_includes_default
8289 typedef void * ac__type_new_;
8293 if ((ac__type_new_ *) 0)
8295 if (sizeof (ac__type_new_))
8301 rm -f conftest.$ac_objext
8302 if { (ac_try="$ac_compile"
8304 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8305 *) ac_try_echo
=$ac_try;;
8307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8308 (eval "$ac_compile") 2>conftest.er1
8310 grep -v '^ *+' conftest.er1
>conftest.err
8312 cat conftest.err
>&5
8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314 (exit $ac_status); } && {
8315 test -z "$ac_c_werror_flag" ||
8316 test ! -s conftest.err
8317 } && test -s conftest.
$ac_objext; then
8318 ac_cv_type_void_p
=yes
8320 echo "$as_me: failed program was:" >&5
8321 sed 's/^/| /' conftest.
$ac_ext >&5
8323 ac_cv_type_void_p
=no
8326 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8328 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
8329 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
8331 # The cast to long int works around a bug in the HP C Compiler
8332 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8333 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8334 # This bug is HP SR number 8606223364.
8335 { echo "$as_me:$LINENO: checking size of void *" >&5
8336 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
8337 if test "${ac_cv_sizeof_void_p+set}" = set; then
8338 echo $ECHO_N "(cached) $ECHO_C" >&6
8340 if test "$cross_compiling" = yes; then
8341 # Depending upon the size, compute the lo and hi bounds.
8342 cat >conftest.
$ac_ext <<_ACEOF
8345 cat confdefs.h
>>conftest.
$ac_ext
8346 cat >>conftest.
$ac_ext <<_ACEOF
8347 /* end confdefs.h. */
8348 $ac_includes_default
8349 typedef void * ac__type_sizeof_;
8353 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8360 rm -f conftest.
$ac_objext
8361 if { (ac_try
="$ac_compile"
8363 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8364 *) ac_try_echo=$ac_try;;
8366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8367 (eval "$ac_compile") 2>conftest.er1
8369 grep -v '^ *+' conftest.er1 >conftest.err
8371 cat conftest.err >&5
8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373 (exit $ac_status); } && {
8374 test -z "$ac_c_werror_flag" ||
8375 test ! -s conftest.err
8376 } && test -s conftest.$ac_objext; then
8379 cat >conftest.$ac_ext <<_ACEOF
8382 cat confdefs.h >>conftest.$ac_ext
8383 cat >>conftest.$ac_ext <<_ACEOF
8384 /* end confdefs.h. */
8385 $ac_includes_default
8386 typedef void * ac__type_sizeof_;
8390 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8397 rm -f conftest.$ac_objext
8398 if { (ac_try="$ac_compile"
8400 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8401 *) ac_try_echo
=$ac_try;;
8403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8404 (eval "$ac_compile") 2>conftest.er1
8406 grep -v '^ *+' conftest.er1
>conftest.err
8408 cat conftest.err
>&5
8409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410 (exit $ac_status); } && {
8411 test -z "$ac_c_werror_flag" ||
8412 test ! -s conftest.err
8413 } && test -s conftest.
$ac_objext; then
8414 ac_hi
=$ac_mid; break
8416 echo "$as_me: failed program was:" >&5
8417 sed 's/^/| /' conftest.
$ac_ext >&5
8419 ac_lo
=`expr $ac_mid + 1`
8420 if test $ac_lo -le $ac_mid; then
8424 ac_mid
=`expr 2 '*' $ac_mid + 1`
8427 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8430 echo "$as_me: failed program was:" >&5
8431 sed 's/^/| /' conftest.
$ac_ext >&5
8433 cat >conftest.
$ac_ext <<_ACEOF
8436 cat confdefs.h
>>conftest.
$ac_ext
8437 cat >>conftest.
$ac_ext <<_ACEOF
8438 /* end confdefs.h. */
8439 $ac_includes_default
8440 typedef void * ac__type_sizeof_;
8444 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8451 rm -f conftest.
$ac_objext
8452 if { (ac_try
="$ac_compile"
8454 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8455 *) ac_try_echo=$ac_try;;
8457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8458 (eval "$ac_compile") 2>conftest.er1
8460 grep -v '^ *+' conftest.er1 >conftest.err
8462 cat conftest.err >&5
8463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464 (exit $ac_status); } && {
8465 test -z "$ac_c_werror_flag" ||
8466 test ! -s conftest.err
8467 } && test -s conftest.$ac_objext; then
8470 cat >conftest.$ac_ext <<_ACEOF
8473 cat confdefs.h >>conftest.$ac_ext
8474 cat >>conftest.$ac_ext <<_ACEOF
8475 /* end confdefs.h. */
8476 $ac_includes_default
8477 typedef void * ac__type_sizeof_;
8481 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8488 rm -f conftest.$ac_objext
8489 if { (ac_try="$ac_compile"
8491 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8492 *) ac_try_echo
=$ac_try;;
8494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8495 (eval "$ac_compile") 2>conftest.er1
8497 grep -v '^ *+' conftest.er1
>conftest.err
8499 cat conftest.err
>&5
8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501 (exit $ac_status); } && {
8502 test -z "$ac_c_werror_flag" ||
8503 test ! -s conftest.err
8504 } && test -s conftest.
$ac_objext; then
8505 ac_lo
=$ac_mid; break
8507 echo "$as_me: failed program was:" >&5
8508 sed 's/^/| /' conftest.
$ac_ext >&5
8510 ac_hi
=`expr '(' $ac_mid ')' - 1`
8511 if test $ac_mid -le $ac_hi; then
8515 ac_mid
=`expr 2 '*' $ac_mid`
8518 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8521 echo "$as_me: failed program was:" >&5
8522 sed 's/^/| /' conftest.
$ac_ext >&5
8527 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8530 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8531 # Binary search between lo and hi bounds.
8532 while test "x$ac_lo" != "x$ac_hi"; do
8533 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8534 cat >conftest.
$ac_ext <<_ACEOF
8537 cat confdefs.h
>>conftest.
$ac_ext
8538 cat >>conftest.
$ac_ext <<_ACEOF
8539 /* end confdefs.h. */
8540 $ac_includes_default
8541 typedef void * ac__type_sizeof_;
8545 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8552 rm -f conftest.
$ac_objext
8553 if { (ac_try
="$ac_compile"
8555 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8556 *) ac_try_echo=$ac_try;;
8558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8559 (eval "$ac_compile") 2>conftest.er1
8561 grep -v '^ *+' conftest.er1 >conftest.err
8563 cat conftest.err >&5
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 (exit $ac_status); } && {
8566 test -z "$ac_c_werror_flag" ||
8567 test ! -s conftest.err
8568 } && test -s conftest.$ac_objext; then
8571 echo "$as_me: failed program was:" >&5
8572 sed 's/^/| /' conftest.$ac_ext >&5
8574 ac_lo=`expr '(' $ac_mid ')' + 1`
8577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8580 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8581 '') if test "$ac_cv_type_void_p" = yes; then
8582 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8583 See \`config.log
' for more details." >&5
8584 echo "$as_me: error: cannot compute sizeof (void *)
8585 See \`config.log' for more details.
" >&2;}
8586 { (exit 77); exit 77; }; }
8588 ac_cv_sizeof_void_p=0
8592 cat >conftest.$ac_ext <<_ACEOF
8595 cat confdefs.h >>conftest.$ac_ext
8596 cat >>conftest.$ac_ext <<_ACEOF
8597 /* end confdefs.h. */
8598 $ac_includes_default
8599 typedef void * ac__type_sizeof_;
8600 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8601 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8608 FILE *f = fopen ("conftest.val
", "w
");
8611 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8613 long int i = longval ();
8614 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8616 fprintf (f, "%ld
\n", i);
8620 unsigned long int i = ulongval ();
8621 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8623 fprintf (f, "%lu
\n", i);
8625 return ferror (f) || fclose (f) != 0;
8631 rm -f conftest$ac_exeext
8632 if { (ac_try="$ac_link"
8634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8635 *) ac_try_echo=$ac_try;;
8637 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8638 (eval "$ac_link") 2>&5
8640 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8641 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8642 { (case "(($ac_try" in
8643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8644 *) ac_try_echo=$ac_try;;
8646 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8647 (eval "$ac_try") 2>&5
8649 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8650 (exit $ac_status); }; }; then
8651 ac_cv_sizeof_void_p=`cat conftest.val`
8653 echo "$as_me: program exited with status
$ac_status" >&5
8654 echo "$as_me: failed program was
:" >&5
8655 sed 's/^/| /' conftest.$ac_ext >&5
8658 if test "$ac_cv_type_void_p" = yes; then
8659 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(void
*)
8660 See \
`config.log' for more details." >&5
8661 echo "$as_me: error: cannot compute sizeof (void *)
8662 See \`config.log
' for more details." >&2;}
8663 { (exit 77); exit 77; }; }
8665 ac_cv_sizeof_void_p=0
8668 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8672 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8673 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8677 cat >>confdefs.h <<_ACEOF
8678 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8682 { echo "$as_me:$LINENO: checking for short" >&5
8683 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
8684 if test "${ac_cv_type_short+set}" = set; then
8685 echo $ECHO_N "(cached) $ECHO_C" >&6
8687 cat >conftest.$ac_ext <<_ACEOF
8690 cat confdefs.h >>conftest.$ac_ext
8691 cat >>conftest.$ac_ext <<_ACEOF
8692 /* end confdefs.h. */
8693 $ac_includes_default
8694 typedef short ac__type_new_;
8698 if ((ac__type_new_ *) 0)
8700 if (sizeof (ac__type_new_))
8706 rm -f conftest.$ac_objext
8707 if { (ac_try="$ac_compile"
8709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8710 *) ac_try_echo=$ac_try;;
8712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8713 (eval "$ac_compile") 2>conftest.er1
8715 grep -v '^
*+' conftest.er1 >conftest.err
8717 cat conftest.err >&5
8718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719 (exit $ac_status); } && {
8720 test -z "$ac_c_werror_flag" ||
8721 test ! -s conftest.err
8722 } && test -s conftest.$ac_objext; then
8723 ac_cv_type_short=yes
8725 echo "$as_me: failed program was:" >&5
8726 sed 's
/^
/|
/' conftest.$ac_ext >&5
8731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8733 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8734 echo "${ECHO_T}$ac_cv_type_short" >&6; }
8736 # The cast to long int works around a bug in the HP C Compiler
8737 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8738 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8739 # This bug is HP SR number 8606223364.
8740 { echo "$as_me:$LINENO: checking size of short" >&5
8741 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8742 if test "${ac_cv_sizeof_short+set}" = set; then
8743 echo $ECHO_N "(cached) $ECHO_C" >&6
8745 if test "$cross_compiling" = yes; then
8746 # Depending upon the size, compute the lo and hi bounds.
8747 cat >conftest.
$ac_ext <<_ACEOF
8750 cat confdefs.h
>>conftest.
$ac_ext
8751 cat >>conftest.
$ac_ext <<_ACEOF
8752 /* end confdefs.h. */
8753 $ac_includes_default
8754 typedef short ac__type_sizeof_;
8758 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8765 rm -f conftest.
$ac_objext
8766 if { (ac_try
="$ac_compile"
8768 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8769 *) ac_try_echo=$ac_try;;
8771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8772 (eval "$ac_compile") 2>conftest.er1
8774 grep -v '^ *+' conftest.er1 >conftest.err
8776 cat conftest.err >&5
8777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778 (exit $ac_status); } && {
8779 test -z "$ac_c_werror_flag" ||
8780 test ! -s conftest.err
8781 } && test -s conftest.$ac_objext; then
8784 cat >conftest.$ac_ext <<_ACEOF
8787 cat confdefs.h >>conftest.$ac_ext
8788 cat >>conftest.$ac_ext <<_ACEOF
8789 /* end confdefs.h. */
8790 $ac_includes_default
8791 typedef short ac__type_sizeof_;
8795 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8802 rm -f conftest.$ac_objext
8803 if { (ac_try="$ac_compile"
8805 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8806 *) ac_try_echo
=$ac_try;;
8808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8809 (eval "$ac_compile") 2>conftest.er1
8811 grep -v '^ *+' conftest.er1
>conftest.err
8813 cat conftest.err
>&5
8814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8815 (exit $ac_status); } && {
8816 test -z "$ac_c_werror_flag" ||
8817 test ! -s conftest.err
8818 } && test -s conftest.
$ac_objext; then
8819 ac_hi
=$ac_mid; break
8821 echo "$as_me: failed program was:" >&5
8822 sed 's/^/| /' conftest.
$ac_ext >&5
8824 ac_lo
=`expr $ac_mid + 1`
8825 if test $ac_lo -le $ac_mid; then
8829 ac_mid
=`expr 2 '*' $ac_mid + 1`
8832 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8835 echo "$as_me: failed program was:" >&5
8836 sed 's/^/| /' conftest.
$ac_ext >&5
8838 cat >conftest.
$ac_ext <<_ACEOF
8841 cat confdefs.h
>>conftest.
$ac_ext
8842 cat >>conftest.
$ac_ext <<_ACEOF
8843 /* end confdefs.h. */
8844 $ac_includes_default
8845 typedef short ac__type_sizeof_;
8849 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8856 rm -f conftest.
$ac_objext
8857 if { (ac_try
="$ac_compile"
8859 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8860 *) ac_try_echo=$ac_try;;
8862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8863 (eval "$ac_compile") 2>conftest.er1
8865 grep -v '^ *+' conftest.er1 >conftest.err
8867 cat conftest.err >&5
8868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869 (exit $ac_status); } && {
8870 test -z "$ac_c_werror_flag" ||
8871 test ! -s conftest.err
8872 } && test -s conftest.$ac_objext; then
8875 cat >conftest.$ac_ext <<_ACEOF
8878 cat confdefs.h >>conftest.$ac_ext
8879 cat >>conftest.$ac_ext <<_ACEOF
8880 /* end confdefs.h. */
8881 $ac_includes_default
8882 typedef short ac__type_sizeof_;
8886 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8893 rm -f conftest.$ac_objext
8894 if { (ac_try="$ac_compile"
8896 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8897 *) ac_try_echo
=$ac_try;;
8899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8900 (eval "$ac_compile") 2>conftest.er1
8902 grep -v '^ *+' conftest.er1
>conftest.err
8904 cat conftest.err
>&5
8905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906 (exit $ac_status); } && {
8907 test -z "$ac_c_werror_flag" ||
8908 test ! -s conftest.err
8909 } && test -s conftest.
$ac_objext; then
8910 ac_lo
=$ac_mid; break
8912 echo "$as_me: failed program was:" >&5
8913 sed 's/^/| /' conftest.
$ac_ext >&5
8915 ac_hi
=`expr '(' $ac_mid ')' - 1`
8916 if test $ac_mid -le $ac_hi; then
8920 ac_mid
=`expr 2 '*' $ac_mid`
8923 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8926 echo "$as_me: failed program was:" >&5
8927 sed 's/^/| /' conftest.
$ac_ext >&5
8932 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8935 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8936 # Binary search between lo and hi bounds.
8937 while test "x$ac_lo" != "x$ac_hi"; do
8938 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8939 cat >conftest.
$ac_ext <<_ACEOF
8942 cat confdefs.h
>>conftest.
$ac_ext
8943 cat >>conftest.
$ac_ext <<_ACEOF
8944 /* end confdefs.h. */
8945 $ac_includes_default
8946 typedef short ac__type_sizeof_;
8950 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8957 rm -f conftest.
$ac_objext
8958 if { (ac_try
="$ac_compile"
8960 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8961 *) ac_try_echo=$ac_try;;
8963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8964 (eval "$ac_compile") 2>conftest.er1
8966 grep -v '^ *+' conftest.er1 >conftest.err
8968 cat conftest.err >&5
8969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970 (exit $ac_status); } && {
8971 test -z "$ac_c_werror_flag" ||
8972 test ! -s conftest.err
8973 } && test -s conftest.$ac_objext; then
8976 echo "$as_me: failed program was:" >&5
8977 sed 's/^/| /' conftest.$ac_ext >&5
8979 ac_lo=`expr '(' $ac_mid ')' + 1`
8982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8985 ?*) ac_cv_sizeof_short=$ac_lo;;
8986 '') if test "$ac_cv_type_short" = yes; then
8987 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8988 See \`config.log
' for more details." >&5
8989 echo "$as_me: error: cannot compute sizeof (short)
8990 See \`config.log' for more details.
" >&2;}
8991 { (exit 77); exit 77; }; }
8993 ac_cv_sizeof_short=0
8997 cat >conftest.$ac_ext <<_ACEOF
9000 cat confdefs.h >>conftest.$ac_ext
9001 cat >>conftest.$ac_ext <<_ACEOF
9002 /* end confdefs.h. */
9003 $ac_includes_default
9004 typedef short ac__type_sizeof_;
9005 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9006 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9013 FILE *f = fopen ("conftest.val
", "w
");
9016 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9018 long int i = longval ();
9019 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9021 fprintf (f, "%ld
\n", i);
9025 unsigned long int i = ulongval ();
9026 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9028 fprintf (f, "%lu
\n", i);
9030 return ferror (f) || fclose (f) != 0;
9036 rm -f conftest$ac_exeext
9037 if { (ac_try="$ac_link"
9039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9040 *) ac_try_echo=$ac_try;;
9042 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9043 (eval "$ac_link") 2>&5
9045 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9046 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9047 { (case "(($ac_try" in
9048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9049 *) ac_try_echo=$ac_try;;
9051 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9052 (eval "$ac_try") 2>&5
9054 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9055 (exit $ac_status); }; }; then
9056 ac_cv_sizeof_short=`cat conftest.val`
9058 echo "$as_me: program exited with status
$ac_status" >&5
9059 echo "$as_me: failed program was
:" >&5
9060 sed 's/^/| /' conftest.$ac_ext >&5
9063 if test "$ac_cv_type_short" = yes; then
9064 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(short
)
9065 See \
`config.log' for more details." >&5
9066 echo "$as_me: error: cannot compute sizeof (short)
9067 See \`config.log
' for more details." >&2;}
9068 { (exit 77); exit 77; }; }
9070 ac_cv_sizeof_short=0
9073 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9077 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
9078 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
9082 cat >>confdefs.h <<_ACEOF
9083 #define SIZEOF_SHORT $ac_cv_sizeof_short
9087 { echo "$as_me:$LINENO: checking for float" >&5
9088 echo $ECHO_N "checking for float... $ECHO_C" >&6; }
9089 if test "${ac_cv_type_float+set}" = set; then
9090 echo $ECHO_N "(cached) $ECHO_C" >&6
9092 cat >conftest.$ac_ext <<_ACEOF
9095 cat confdefs.h >>conftest.$ac_ext
9096 cat >>conftest.$ac_ext <<_ACEOF
9097 /* end confdefs.h. */
9098 $ac_includes_default
9099 typedef float ac__type_new_;
9103 if ((ac__type_new_ *) 0)
9105 if (sizeof (ac__type_new_))
9111 rm -f conftest.$ac_objext
9112 if { (ac_try="$ac_compile"
9114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9115 *) ac_try_echo=$ac_try;;
9117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9118 (eval "$ac_compile") 2>conftest.er1
9120 grep -v '^
*+' conftest.er1 >conftest.err
9122 cat conftest.err >&5
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); } && {
9125 test -z "$ac_c_werror_flag" ||
9126 test ! -s conftest.err
9127 } && test -s conftest.$ac_objext; then
9128 ac_cv_type_float=yes
9130 echo "$as_me: failed program was:" >&5
9131 sed 's
/^
/|
/' conftest.$ac_ext >&5
9136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9138 { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
9139 echo "${ECHO_T}$ac_cv_type_float" >&6; }
9141 # The cast to long int works around a bug in the HP C Compiler
9142 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9143 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9144 # This bug is HP SR number 8606223364.
9145 { echo "$as_me:$LINENO: checking size of float" >&5
9146 echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
9147 if test "${ac_cv_sizeof_float+set}" = set; then
9148 echo $ECHO_N "(cached) $ECHO_C" >&6
9150 if test "$cross_compiling" = yes; then
9151 # Depending upon the size, compute the lo and hi bounds.
9152 cat >conftest.
$ac_ext <<_ACEOF
9155 cat confdefs.h
>>conftest.
$ac_ext
9156 cat >>conftest.
$ac_ext <<_ACEOF
9157 /* end confdefs.h. */
9158 $ac_includes_default
9159 typedef float ac__type_sizeof_;
9163 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9170 rm -f conftest.
$ac_objext
9171 if { (ac_try
="$ac_compile"
9173 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9174 *) ac_try_echo=$ac_try;;
9176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9177 (eval "$ac_compile") 2>conftest.er1
9179 grep -v '^ *+' conftest.er1 >conftest.err
9181 cat conftest.err >&5
9182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9183 (exit $ac_status); } && {
9184 test -z "$ac_c_werror_flag" ||
9185 test ! -s conftest.err
9186 } && test -s conftest.$ac_objext; then
9189 cat >conftest.$ac_ext <<_ACEOF
9192 cat confdefs.h >>conftest.$ac_ext
9193 cat >>conftest.$ac_ext <<_ACEOF
9194 /* end confdefs.h. */
9195 $ac_includes_default
9196 typedef float ac__type_sizeof_;
9200 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9207 rm -f conftest.$ac_objext
9208 if { (ac_try="$ac_compile"
9210 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9211 *) ac_try_echo
=$ac_try;;
9213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9214 (eval "$ac_compile") 2>conftest.er1
9216 grep -v '^ *+' conftest.er1
>conftest.err
9218 cat conftest.err
>&5
9219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9220 (exit $ac_status); } && {
9221 test -z "$ac_c_werror_flag" ||
9222 test ! -s conftest.err
9223 } && test -s conftest.
$ac_objext; then
9224 ac_hi
=$ac_mid; break
9226 echo "$as_me: failed program was:" >&5
9227 sed 's/^/| /' conftest.
$ac_ext >&5
9229 ac_lo
=`expr $ac_mid + 1`
9230 if test $ac_lo -le $ac_mid; then
9234 ac_mid
=`expr 2 '*' $ac_mid + 1`
9237 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9240 echo "$as_me: failed program was:" >&5
9241 sed 's/^/| /' conftest.
$ac_ext >&5
9243 cat >conftest.
$ac_ext <<_ACEOF
9246 cat confdefs.h
>>conftest.
$ac_ext
9247 cat >>conftest.
$ac_ext <<_ACEOF
9248 /* end confdefs.h. */
9249 $ac_includes_default
9250 typedef float ac__type_sizeof_;
9254 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9261 rm -f conftest.
$ac_objext
9262 if { (ac_try
="$ac_compile"
9264 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9265 *) ac_try_echo=$ac_try;;
9267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9268 (eval "$ac_compile") 2>conftest.er1
9270 grep -v '^ *+' conftest.er1 >conftest.err
9272 cat conftest.err >&5
9273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274 (exit $ac_status); } && {
9275 test -z "$ac_c_werror_flag" ||
9276 test ! -s conftest.err
9277 } && test -s conftest.$ac_objext; then
9280 cat >conftest.$ac_ext <<_ACEOF
9283 cat confdefs.h >>conftest.$ac_ext
9284 cat >>conftest.$ac_ext <<_ACEOF
9285 /* end confdefs.h. */
9286 $ac_includes_default
9287 typedef float ac__type_sizeof_;
9291 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9298 rm -f conftest.$ac_objext
9299 if { (ac_try="$ac_compile"
9301 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9302 *) ac_try_echo
=$ac_try;;
9304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9305 (eval "$ac_compile") 2>conftest.er1
9307 grep -v '^ *+' conftest.er1
>conftest.err
9309 cat conftest.err
>&5
9310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9311 (exit $ac_status); } && {
9312 test -z "$ac_c_werror_flag" ||
9313 test ! -s conftest.err
9314 } && test -s conftest.
$ac_objext; then
9315 ac_lo
=$ac_mid; break
9317 echo "$as_me: failed program was:" >&5
9318 sed 's/^/| /' conftest.
$ac_ext >&5
9320 ac_hi
=`expr '(' $ac_mid ')' - 1`
9321 if test $ac_mid -le $ac_hi; then
9325 ac_mid
=`expr 2 '*' $ac_mid`
9328 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9331 echo "$as_me: failed program was:" >&5
9332 sed 's/^/| /' conftest.
$ac_ext >&5
9337 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9340 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9341 # Binary search between lo and hi bounds.
9342 while test "x$ac_lo" != "x$ac_hi"; do
9343 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9344 cat >conftest.
$ac_ext <<_ACEOF
9347 cat confdefs.h
>>conftest.
$ac_ext
9348 cat >>conftest.
$ac_ext <<_ACEOF
9349 /* end confdefs.h. */
9350 $ac_includes_default
9351 typedef float ac__type_sizeof_;
9355 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9362 rm -f conftest.
$ac_objext
9363 if { (ac_try
="$ac_compile"
9365 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9366 *) ac_try_echo=$ac_try;;
9368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9369 (eval "$ac_compile") 2>conftest.er1
9371 grep -v '^ *+' conftest.er1 >conftest.err
9373 cat conftest.err >&5
9374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9375 (exit $ac_status); } && {
9376 test -z "$ac_c_werror_flag" ||
9377 test ! -s conftest.err
9378 } && test -s conftest.$ac_objext; then
9381 echo "$as_me: failed program was:" >&5
9382 sed 's/^/| /' conftest.$ac_ext >&5
9384 ac_lo=`expr '(' $ac_mid ')' + 1`
9387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9390 ?*) ac_cv_sizeof_float=$ac_lo;;
9391 '') if test "$ac_cv_type_float" = yes; then
9392 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
9393 See \`config.log
' for more details." >&5
9394 echo "$as_me: error: cannot compute sizeof (float)
9395 See \`config.log' for more details.
" >&2;}
9396 { (exit 77); exit 77; }; }
9398 ac_cv_sizeof_float=0
9402 cat >conftest.$ac_ext <<_ACEOF
9405 cat confdefs.h >>conftest.$ac_ext
9406 cat >>conftest.$ac_ext <<_ACEOF
9407 /* end confdefs.h. */
9408 $ac_includes_default
9409 typedef float ac__type_sizeof_;
9410 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9411 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9418 FILE *f = fopen ("conftest.val
", "w
");
9421 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9423 long int i = longval ();
9424 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9426 fprintf (f, "%ld
\n", i);
9430 unsigned long int i = ulongval ();
9431 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9433 fprintf (f, "%lu
\n", i);
9435 return ferror (f) || fclose (f) != 0;
9441 rm -f conftest$ac_exeext
9442 if { (ac_try="$ac_link"
9444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9445 *) ac_try_echo=$ac_try;;
9447 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9448 (eval "$ac_link") 2>&5
9450 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9451 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9452 { (case "(($ac_try" in
9453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9454 *) ac_try_echo=$ac_try;;
9456 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9457 (eval "$ac_try") 2>&5
9459 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9460 (exit $ac_status); }; }; then
9461 ac_cv_sizeof_float=`cat conftest.val`
9463 echo "$as_me: program exited with status
$ac_status" >&5
9464 echo "$as_me: failed program was
:" >&5
9465 sed 's/^/| /' conftest.$ac_ext >&5
9468 if test "$ac_cv_type_float" = yes; then
9469 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(float
)
9470 See \
`config.log' for more details." >&5
9471 echo "$as_me: error: cannot compute sizeof (float)
9472 See \`config.log
' for more details." >&2;}
9473 { (exit 77); exit 77; }; }
9475 ac_cv_sizeof_float=0
9478 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9482 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
9483 echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
9487 cat >>confdefs.h <<_ACEOF
9488 #define SIZEOF_FLOAT $ac_cv_sizeof_float
9492 { echo "$as_me:$LINENO: checking for double" >&5
9493 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
9494 if test "${ac_cv_type_double+set}" = set; then
9495 echo $ECHO_N "(cached) $ECHO_C" >&6
9497 cat >conftest.$ac_ext <<_ACEOF
9500 cat confdefs.h >>conftest.$ac_ext
9501 cat >>conftest.$ac_ext <<_ACEOF
9502 /* end confdefs.h. */
9503 $ac_includes_default
9504 typedef double ac__type_new_;
9508 if ((ac__type_new_ *) 0)
9510 if (sizeof (ac__type_new_))
9516 rm -f conftest.$ac_objext
9517 if { (ac_try="$ac_compile"
9519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9520 *) ac_try_echo=$ac_try;;
9522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9523 (eval "$ac_compile") 2>conftest.er1
9525 grep -v '^
*+' conftest.er1 >conftest.err
9527 cat conftest.err >&5
9528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529 (exit $ac_status); } && {
9530 test -z "$ac_c_werror_flag" ||
9531 test ! -s conftest.err
9532 } && test -s conftest.$ac_objext; then
9533 ac_cv_type_double=yes
9535 echo "$as_me: failed program was:" >&5
9536 sed 's
/^
/|
/' conftest.$ac_ext >&5
9538 ac_cv_type_double=no
9541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9543 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
9544 echo "${ECHO_T}$ac_cv_type_double" >&6; }
9546 # The cast to long int works around a bug in the HP C Compiler
9547 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9548 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9549 # This bug is HP SR number 8606223364.
9550 { echo "$as_me:$LINENO: checking size of double" >&5
9551 echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
9552 if test "${ac_cv_sizeof_double+set}" = set; then
9553 echo $ECHO_N "(cached) $ECHO_C" >&6
9555 if test "$cross_compiling" = yes; then
9556 # Depending upon the size, compute the lo and hi bounds.
9557 cat >conftest.
$ac_ext <<_ACEOF
9560 cat confdefs.h
>>conftest.
$ac_ext
9561 cat >>conftest.
$ac_ext <<_ACEOF
9562 /* end confdefs.h. */
9563 $ac_includes_default
9564 typedef double ac__type_sizeof_;
9568 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9575 rm -f conftest.
$ac_objext
9576 if { (ac_try
="$ac_compile"
9578 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9579 *) ac_try_echo=$ac_try;;
9581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9582 (eval "$ac_compile") 2>conftest.er1
9584 grep -v '^ *+' conftest.er1 >conftest.err
9586 cat conftest.err >&5
9587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588 (exit $ac_status); } && {
9589 test -z "$ac_c_werror_flag" ||
9590 test ! -s conftest.err
9591 } && test -s conftest.$ac_objext; then
9594 cat >conftest.$ac_ext <<_ACEOF
9597 cat confdefs.h >>conftest.$ac_ext
9598 cat >>conftest.$ac_ext <<_ACEOF
9599 /* end confdefs.h. */
9600 $ac_includes_default
9601 typedef double ac__type_sizeof_;
9605 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9612 rm -f conftest.$ac_objext
9613 if { (ac_try="$ac_compile"
9615 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9616 *) ac_try_echo
=$ac_try;;
9618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9619 (eval "$ac_compile") 2>conftest.er1
9621 grep -v '^ *+' conftest.er1
>conftest.err
9623 cat conftest.err
>&5
9624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625 (exit $ac_status); } && {
9626 test -z "$ac_c_werror_flag" ||
9627 test ! -s conftest.err
9628 } && test -s conftest.
$ac_objext; then
9629 ac_hi
=$ac_mid; break
9631 echo "$as_me: failed program was:" >&5
9632 sed 's/^/| /' conftest.
$ac_ext >&5
9634 ac_lo
=`expr $ac_mid + 1`
9635 if test $ac_lo -le $ac_mid; then
9639 ac_mid
=`expr 2 '*' $ac_mid + 1`
9642 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9645 echo "$as_me: failed program was:" >&5
9646 sed 's/^/| /' conftest.
$ac_ext >&5
9648 cat >conftest.
$ac_ext <<_ACEOF
9651 cat confdefs.h
>>conftest.
$ac_ext
9652 cat >>conftest.
$ac_ext <<_ACEOF
9653 /* end confdefs.h. */
9654 $ac_includes_default
9655 typedef double ac__type_sizeof_;
9659 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9666 rm -f conftest.
$ac_objext
9667 if { (ac_try
="$ac_compile"
9669 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9670 *) ac_try_echo=$ac_try;;
9672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9673 (eval "$ac_compile") 2>conftest.er1
9675 grep -v '^ *+' conftest.er1 >conftest.err
9677 cat conftest.err >&5
9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 (exit $ac_status); } && {
9680 test -z "$ac_c_werror_flag" ||
9681 test ! -s conftest.err
9682 } && test -s conftest.$ac_objext; then
9685 cat >conftest.$ac_ext <<_ACEOF
9688 cat confdefs.h >>conftest.$ac_ext
9689 cat >>conftest.$ac_ext <<_ACEOF
9690 /* end confdefs.h. */
9691 $ac_includes_default
9692 typedef double ac__type_sizeof_;
9696 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9703 rm -f conftest.$ac_objext
9704 if { (ac_try="$ac_compile"
9706 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9707 *) ac_try_echo
=$ac_try;;
9709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9710 (eval "$ac_compile") 2>conftest.er1
9712 grep -v '^ *+' conftest.er1
>conftest.err
9714 cat conftest.err
>&5
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); } && {
9717 test -z "$ac_c_werror_flag" ||
9718 test ! -s conftest.err
9719 } && test -s conftest.
$ac_objext; then
9720 ac_lo
=$ac_mid; break
9722 echo "$as_me: failed program was:" >&5
9723 sed 's/^/| /' conftest.
$ac_ext >&5
9725 ac_hi
=`expr '(' $ac_mid ')' - 1`
9726 if test $ac_mid -le $ac_hi; then
9730 ac_mid
=`expr 2 '*' $ac_mid`
9733 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9736 echo "$as_me: failed program was:" >&5
9737 sed 's/^/| /' conftest.
$ac_ext >&5
9742 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9745 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9746 # Binary search between lo and hi bounds.
9747 while test "x$ac_lo" != "x$ac_hi"; do
9748 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9749 cat >conftest.
$ac_ext <<_ACEOF
9752 cat confdefs.h
>>conftest.
$ac_ext
9753 cat >>conftest.
$ac_ext <<_ACEOF
9754 /* end confdefs.h. */
9755 $ac_includes_default
9756 typedef double ac__type_sizeof_;
9760 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9767 rm -f conftest.
$ac_objext
9768 if { (ac_try
="$ac_compile"
9770 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9771 *) ac_try_echo=$ac_try;;
9773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9774 (eval "$ac_compile") 2>conftest.er1
9776 grep -v '^ *+' conftest.er1 >conftest.err
9778 cat conftest.err >&5
9779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780 (exit $ac_status); } && {
9781 test -z "$ac_c_werror_flag" ||
9782 test ! -s conftest.err
9783 } && test -s conftest.$ac_objext; then
9786 echo "$as_me: failed program was:" >&5
9787 sed 's/^/| /' conftest.$ac_ext >&5
9789 ac_lo=`expr '(' $ac_mid ')' + 1`
9792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9795 ?*) ac_cv_sizeof_double=$ac_lo;;
9796 '') if test "$ac_cv_type_double" = yes; then
9797 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9798 See \`config.log
' for more details." >&5
9799 echo "$as_me: error: cannot compute sizeof (double)
9800 See \`config.log' for more details.
" >&2;}
9801 { (exit 77); exit 77; }; }
9803 ac_cv_sizeof_double=0
9807 cat >conftest.$ac_ext <<_ACEOF
9810 cat confdefs.h >>conftest.$ac_ext
9811 cat >>conftest.$ac_ext <<_ACEOF
9812 /* end confdefs.h. */
9813 $ac_includes_default
9814 typedef double ac__type_sizeof_;
9815 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9816 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9823 FILE *f = fopen ("conftest.val
", "w
");
9826 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9828 long int i = longval ();
9829 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9831 fprintf (f, "%ld
\n", i);
9835 unsigned long int i = ulongval ();
9836 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9838 fprintf (f, "%lu
\n", i);
9840 return ferror (f) || fclose (f) != 0;
9846 rm -f conftest$ac_exeext
9847 if { (ac_try="$ac_link"
9849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9850 *) ac_try_echo=$ac_try;;
9852 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9853 (eval "$ac_link") 2>&5
9855 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9856 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9857 { (case "(($ac_try" in
9858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9859 *) ac_try_echo=$ac_try;;
9861 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9862 (eval "$ac_try") 2>&5
9864 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9865 (exit $ac_status); }; }; then
9866 ac_cv_sizeof_double=`cat conftest.val`
9868 echo "$as_me: program exited with status
$ac_status" >&5
9869 echo "$as_me: failed program was
:" >&5
9870 sed 's/^/| /' conftest.$ac_ext >&5
9873 if test "$ac_cv_type_double" = yes; then
9874 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(double
)
9875 See \
`config.log' for more details." >&5
9876 echo "$as_me: error: cannot compute sizeof (double)
9877 See \`config.log
' for more details." >&2;}
9878 { (exit 77); exit 77; }; }
9880 ac_cv_sizeof_double=0
9883 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9887 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
9888 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
9892 cat >>confdefs.h <<_ACEOF
9893 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
9897 { echo "$as_me:$LINENO: checking for fpos_t" >&5
9898 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; }
9899 if test "${ac_cv_type_fpos_t+set}" = set; then
9900 echo $ECHO_N "(cached) $ECHO_C" >&6
9902 cat >conftest.$ac_ext <<_ACEOF
9905 cat confdefs.h >>conftest.$ac_ext
9906 cat >>conftest.$ac_ext <<_ACEOF
9907 /* end confdefs.h. */
9908 $ac_includes_default
9909 typedef fpos_t ac__type_new_;
9913 if ((ac__type_new_ *) 0)
9915 if (sizeof (ac__type_new_))
9921 rm -f conftest.$ac_objext
9922 if { (ac_try="$ac_compile"
9924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9925 *) ac_try_echo=$ac_try;;
9927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9928 (eval "$ac_compile") 2>conftest.er1
9930 grep -v '^
*+' conftest.er1 >conftest.err
9932 cat conftest.err >&5
9933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934 (exit $ac_status); } && {
9935 test -z "$ac_c_werror_flag" ||
9936 test ! -s conftest.err
9937 } && test -s conftest.$ac_objext; then
9938 ac_cv_type_fpos_t=yes
9940 echo "$as_me: failed program was:" >&5
9941 sed 's
/^
/|
/' conftest.$ac_ext >&5
9943 ac_cv_type_fpos_t=no
9946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9948 { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
9949 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; }
9951 # The cast to long int works around a bug in the HP C Compiler
9952 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9953 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9954 # This bug is HP SR number 8606223364.
9955 { echo "$as_me:$LINENO: checking size of fpos_t" >&5
9956 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; }
9957 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
9958 echo $ECHO_N "(cached) $ECHO_C" >&6
9960 if test "$cross_compiling" = yes; then
9961 # Depending upon the size, compute the lo and hi bounds.
9962 cat >conftest.
$ac_ext <<_ACEOF
9965 cat confdefs.h
>>conftest.
$ac_ext
9966 cat >>conftest.
$ac_ext <<_ACEOF
9967 /* end confdefs.h. */
9968 $ac_includes_default
9969 typedef fpos_t ac__type_sizeof_;
9973 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9980 rm -f conftest.
$ac_objext
9981 if { (ac_try
="$ac_compile"
9983 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9984 *) ac_try_echo=$ac_try;;
9986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9987 (eval "$ac_compile") 2>conftest.er1
9989 grep -v '^ *+' conftest.er1 >conftest.err
9991 cat conftest.err >&5
9992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993 (exit $ac_status); } && {
9994 test -z "$ac_c_werror_flag" ||
9995 test ! -s conftest.err
9996 } && test -s conftest.$ac_objext; then
9999 cat >conftest.$ac_ext <<_ACEOF
10002 cat confdefs.h >>conftest.$ac_ext
10003 cat >>conftest.$ac_ext <<_ACEOF
10004 /* end confdefs.h. */
10005 $ac_includes_default
10006 typedef fpos_t ac__type_sizeof_;
10010 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10017 rm -f conftest.$ac_objext
10018 if { (ac_try="$ac_compile"
10019 case "(($ac_try" in
10020 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10021 *) ac_try_echo
=$ac_try;;
10023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10024 (eval "$ac_compile") 2>conftest.er1
10026 grep -v '^ *+' conftest.er1
>conftest.err
10028 cat conftest.err
>&5
10029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030 (exit $ac_status); } && {
10031 test -z "$ac_c_werror_flag" ||
10032 test ! -s conftest.err
10033 } && test -s conftest.
$ac_objext; then
10034 ac_hi
=$ac_mid; break
10036 echo "$as_me: failed program was:" >&5
10037 sed 's/^/| /' conftest.
$ac_ext >&5
10039 ac_lo
=`expr $ac_mid + 1`
10040 if test $ac_lo -le $ac_mid; then
10044 ac_mid
=`expr 2 '*' $ac_mid + 1`
10047 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10050 echo "$as_me: failed program was:" >&5
10051 sed 's/^/| /' conftest.
$ac_ext >&5
10053 cat >conftest.
$ac_ext <<_ACEOF
10056 cat confdefs.h
>>conftest.
$ac_ext
10057 cat >>conftest.
$ac_ext <<_ACEOF
10058 /* end confdefs.h. */
10059 $ac_includes_default
10060 typedef fpos_t ac__type_sizeof_;
10064 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10071 rm -f conftest.
$ac_objext
10072 if { (ac_try
="$ac_compile"
10073 case "(($ac_try" in
10074 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10075 *) ac_try_echo=$ac_try;;
10077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10078 (eval "$ac_compile") 2>conftest.er1
10080 grep -v '^ *+' conftest.er1 >conftest.err
10082 cat conftest.err >&5
10083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084 (exit $ac_status); } && {
10085 test -z "$ac_c_werror_flag" ||
10086 test ! -s conftest.err
10087 } && test -s conftest.$ac_objext; then
10090 cat >conftest.$ac_ext <<_ACEOF
10093 cat confdefs.h >>conftest.$ac_ext
10094 cat >>conftest.$ac_ext <<_ACEOF
10095 /* end confdefs.h. */
10096 $ac_includes_default
10097 typedef fpos_t ac__type_sizeof_;
10101 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10108 rm -f conftest.$ac_objext
10109 if { (ac_try="$ac_compile"
10110 case "(($ac_try" in
10111 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10112 *) ac_try_echo
=$ac_try;;
10114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10115 (eval "$ac_compile") 2>conftest.er1
10117 grep -v '^ *+' conftest.er1
>conftest.err
10119 cat conftest.err
>&5
10120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121 (exit $ac_status); } && {
10122 test -z "$ac_c_werror_flag" ||
10123 test ! -s conftest.err
10124 } && test -s conftest.
$ac_objext; then
10125 ac_lo
=$ac_mid; break
10127 echo "$as_me: failed program was:" >&5
10128 sed 's/^/| /' conftest.
$ac_ext >&5
10130 ac_hi
=`expr '(' $ac_mid ')' - 1`
10131 if test $ac_mid -le $ac_hi; then
10135 ac_mid
=`expr 2 '*' $ac_mid`
10138 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10141 echo "$as_me: failed program was:" >&5
10142 sed 's/^/| /' conftest.
$ac_ext >&5
10147 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10150 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10151 # Binary search between lo and hi bounds.
10152 while test "x$ac_lo" != "x$ac_hi"; do
10153 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10154 cat >conftest.
$ac_ext <<_ACEOF
10157 cat confdefs.h
>>conftest.
$ac_ext
10158 cat >>conftest.
$ac_ext <<_ACEOF
10159 /* end confdefs.h. */
10160 $ac_includes_default
10161 typedef fpos_t ac__type_sizeof_;
10165 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10172 rm -f conftest.
$ac_objext
10173 if { (ac_try
="$ac_compile"
10174 case "(($ac_try" in
10175 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10176 *) ac_try_echo=$ac_try;;
10178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10179 (eval "$ac_compile") 2>conftest.er1
10181 grep -v '^ *+' conftest.er1 >conftest.err
10183 cat conftest.err >&5
10184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185 (exit $ac_status); } && {
10186 test -z "$ac_c_werror_flag" ||
10187 test ! -s conftest.err
10188 } && test -s conftest.$ac_objext; then
10191 echo "$as_me: failed program was:" >&5
10192 sed 's/^/| /' conftest.$ac_ext >&5
10194 ac_lo=`expr '(' $ac_mid ')' + 1`
10197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10200 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
10201 '') if test "$ac_cv_type_fpos_t" = yes; then
10202 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
10203 See \`config.log
' for more details." >&5
10204 echo "$as_me: error: cannot compute sizeof (fpos_t)
10205 See \`config.log' for more details.
" >&2;}
10206 { (exit 77); exit 77; }; }
10208 ac_cv_sizeof_fpos_t=0
10212 cat >conftest.$ac_ext <<_ACEOF
10215 cat confdefs.h >>conftest.$ac_ext
10216 cat >>conftest.$ac_ext <<_ACEOF
10217 /* end confdefs.h. */
10218 $ac_includes_default
10219 typedef fpos_t ac__type_sizeof_;
10220 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10221 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10223 #include <stdlib.h>
10228 FILE *f = fopen ("conftest.val
", "w
");
10231 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10233 long int i = longval ();
10234 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10236 fprintf (f, "%ld
\n", i);
10240 unsigned long int i = ulongval ();
10241 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10243 fprintf (f, "%lu
\n", i);
10245 return ferror (f) || fclose (f) != 0;
10251 rm -f conftest$ac_exeext
10252 if { (ac_try="$ac_link"
10253 case "(($ac_try" in
10254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10255 *) ac_try_echo=$ac_try;;
10257 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10258 (eval "$ac_link") 2>&5
10260 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10261 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10262 { (case "(($ac_try" in
10263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10264 *) ac_try_echo=$ac_try;;
10266 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10267 (eval "$ac_try") 2>&5
10269 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10270 (exit $ac_status); }; }; then
10271 ac_cv_sizeof_fpos_t=`cat conftest.val`
10273 echo "$as_me: program exited with status
$ac_status" >&5
10274 echo "$as_me: failed program was
:" >&5
10275 sed 's/^/| /' conftest.$ac_ext >&5
10277 ( exit $ac_status )
10278 if test "$ac_cv_type_fpos_t" = yes; then
10279 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(fpos_t
)
10280 See \
`config.log' for more details." >&5
10281 echo "$as_me: error: cannot compute sizeof (fpos_t)
10282 See \`config.log
' for more details." >&2;}
10283 { (exit 77); exit 77; }; }
10285 ac_cv_sizeof_fpos_t=0
10288 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10292 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
10293 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; }
10297 cat >>confdefs.h <<_ACEOF
10298 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
10302 { echo "$as_me:$LINENO: checking for size_t" >&5
10303 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
10304 if test "${ac_cv_type_size_t+set}" = set; then
10305 echo $ECHO_N "(cached) $ECHO_C" >&6
10307 cat >conftest.$ac_ext <<_ACEOF
10310 cat confdefs.h >>conftest.$ac_ext
10311 cat >>conftest.$ac_ext <<_ACEOF
10312 /* end confdefs.h. */
10313 $ac_includes_default
10314 typedef size_t ac__type_new_;
10318 if ((ac__type_new_ *) 0)
10320 if (sizeof (ac__type_new_))
10326 rm -f conftest.$ac_objext
10327 if { (ac_try="$ac_compile"
10328 case "(($ac_try" in
10329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10330 *) ac_try_echo=$ac_try;;
10332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10333 (eval "$ac_compile") 2>conftest.er1
10335 grep -v '^
*+' conftest.er1 >conftest.err
10337 cat conftest.err >&5
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); } && {
10340 test -z "$ac_c_werror_flag" ||
10341 test ! -s conftest.err
10342 } && test -s conftest.$ac_objext; then
10343 ac_cv_type_size_t=yes
10345 echo "$as_me: failed program was:" >&5
10346 sed 's
/^
/|
/' conftest.$ac_ext >&5
10348 ac_cv_type_size_t=no
10351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10353 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10354 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
10356 # The cast to long int works around a bug in the HP C Compiler
10357 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10358 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10359 # This bug is HP SR number 8606223364.
10360 { echo "$as_me:$LINENO: checking size of size_t" >&5
10361 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
10362 if test "${ac_cv_sizeof_size_t+set}" = set; then
10363 echo $ECHO_N "(cached) $ECHO_C" >&6
10365 if test "$cross_compiling" = yes; then
10366 # Depending upon the size, compute the lo and hi bounds.
10367 cat >conftest.
$ac_ext <<_ACEOF
10370 cat confdefs.h
>>conftest.
$ac_ext
10371 cat >>conftest.
$ac_ext <<_ACEOF
10372 /* end confdefs.h. */
10373 $ac_includes_default
10374 typedef size_t ac__type_sizeof_;
10378 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10385 rm -f conftest.
$ac_objext
10386 if { (ac_try
="$ac_compile"
10387 case "(($ac_try" in
10388 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10389 *) ac_try_echo=$ac_try;;
10391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10392 (eval "$ac_compile") 2>conftest.er1
10394 grep -v '^ *+' conftest.er1 >conftest.err
10396 cat conftest.err >&5
10397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398 (exit $ac_status); } && {
10399 test -z "$ac_c_werror_flag" ||
10400 test ! -s conftest.err
10401 } && test -s conftest.$ac_objext; then
10404 cat >conftest.$ac_ext <<_ACEOF
10407 cat confdefs.h >>conftest.$ac_ext
10408 cat >>conftest.$ac_ext <<_ACEOF
10409 /* end confdefs.h. */
10410 $ac_includes_default
10411 typedef size_t ac__type_sizeof_;
10415 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10422 rm -f conftest.$ac_objext
10423 if { (ac_try="$ac_compile"
10424 case "(($ac_try" in
10425 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10426 *) ac_try_echo
=$ac_try;;
10428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10429 (eval "$ac_compile") 2>conftest.er1
10431 grep -v '^ *+' conftest.er1
>conftest.err
10433 cat conftest.err
>&5
10434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10435 (exit $ac_status); } && {
10436 test -z "$ac_c_werror_flag" ||
10437 test ! -s conftest.err
10438 } && test -s conftest.
$ac_objext; then
10439 ac_hi
=$ac_mid; break
10441 echo "$as_me: failed program was:" >&5
10442 sed 's/^/| /' conftest.
$ac_ext >&5
10444 ac_lo
=`expr $ac_mid + 1`
10445 if test $ac_lo -le $ac_mid; then
10449 ac_mid
=`expr 2 '*' $ac_mid + 1`
10452 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10455 echo "$as_me: failed program was:" >&5
10456 sed 's/^/| /' conftest.
$ac_ext >&5
10458 cat >conftest.
$ac_ext <<_ACEOF
10461 cat confdefs.h
>>conftest.
$ac_ext
10462 cat >>conftest.
$ac_ext <<_ACEOF
10463 /* end confdefs.h. */
10464 $ac_includes_default
10465 typedef size_t ac__type_sizeof_;
10469 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10476 rm -f conftest.
$ac_objext
10477 if { (ac_try
="$ac_compile"
10478 case "(($ac_try" in
10479 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10480 *) ac_try_echo=$ac_try;;
10482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10483 (eval "$ac_compile") 2>conftest.er1
10485 grep -v '^ *+' conftest.er1 >conftest.err
10487 cat conftest.err >&5
10488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489 (exit $ac_status); } && {
10490 test -z "$ac_c_werror_flag" ||
10491 test ! -s conftest.err
10492 } && test -s conftest.$ac_objext; then
10495 cat >conftest.$ac_ext <<_ACEOF
10498 cat confdefs.h >>conftest.$ac_ext
10499 cat >>conftest.$ac_ext <<_ACEOF
10500 /* end confdefs.h. */
10501 $ac_includes_default
10502 typedef size_t ac__type_sizeof_;
10506 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10513 rm -f conftest.$ac_objext
10514 if { (ac_try="$ac_compile"
10515 case "(($ac_try" in
10516 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10517 *) ac_try_echo
=$ac_try;;
10519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10520 (eval "$ac_compile") 2>conftest.er1
10522 grep -v '^ *+' conftest.er1
>conftest.err
10524 cat conftest.err
>&5
10525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10526 (exit $ac_status); } && {
10527 test -z "$ac_c_werror_flag" ||
10528 test ! -s conftest.err
10529 } && test -s conftest.
$ac_objext; then
10530 ac_lo
=$ac_mid; break
10532 echo "$as_me: failed program was:" >&5
10533 sed 's/^/| /' conftest.
$ac_ext >&5
10535 ac_hi
=`expr '(' $ac_mid ')' - 1`
10536 if test $ac_mid -le $ac_hi; then
10540 ac_mid
=`expr 2 '*' $ac_mid`
10543 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10546 echo "$as_me: failed program was:" >&5
10547 sed 's/^/| /' conftest.
$ac_ext >&5
10552 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10555 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10556 # Binary search between lo and hi bounds.
10557 while test "x$ac_lo" != "x$ac_hi"; do
10558 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10559 cat >conftest.
$ac_ext <<_ACEOF
10562 cat confdefs.h
>>conftest.
$ac_ext
10563 cat >>conftest.
$ac_ext <<_ACEOF
10564 /* end confdefs.h. */
10565 $ac_includes_default
10566 typedef size_t ac__type_sizeof_;
10570 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10577 rm -f conftest.
$ac_objext
10578 if { (ac_try
="$ac_compile"
10579 case "(($ac_try" in
10580 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10581 *) ac_try_echo=$ac_try;;
10583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10584 (eval "$ac_compile") 2>conftest.er1
10586 grep -v '^ *+' conftest.er1 >conftest.err
10588 cat conftest.err >&5
10589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590 (exit $ac_status); } && {
10591 test -z "$ac_c_werror_flag" ||
10592 test ! -s conftest.err
10593 } && test -s conftest.$ac_objext; then
10596 echo "$as_me: failed program was:" >&5
10597 sed 's/^/| /' conftest.$ac_ext >&5
10599 ac_lo=`expr '(' $ac_mid ')' + 1`
10602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10605 ?*) ac_cv_sizeof_size_t=$ac_lo;;
10606 '') if test "$ac_cv_type_size_t" = yes; then
10607 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10608 See \`config.log
' for more details." >&5
10609 echo "$as_me: error: cannot compute sizeof (size_t)
10610 See \`config.log' for more details.
" >&2;}
10611 { (exit 77); exit 77; }; }
10613 ac_cv_sizeof_size_t=0
10617 cat >conftest.$ac_ext <<_ACEOF
10620 cat confdefs.h >>conftest.$ac_ext
10621 cat >>conftest.$ac_ext <<_ACEOF
10622 /* end confdefs.h. */
10623 $ac_includes_default
10624 typedef size_t ac__type_sizeof_;
10625 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10626 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10628 #include <stdlib.h>
10633 FILE *f = fopen ("conftest.val
", "w
");
10636 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10638 long int i = longval ();
10639 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10641 fprintf (f, "%ld
\n", i);
10645 unsigned long int i = ulongval ();
10646 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10648 fprintf (f, "%lu
\n", i);
10650 return ferror (f) || fclose (f) != 0;
10656 rm -f conftest$ac_exeext
10657 if { (ac_try="$ac_link"
10658 case "(($ac_try" in
10659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10660 *) ac_try_echo=$ac_try;;
10662 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10663 (eval "$ac_link") 2>&5
10665 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10666 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10667 { (case "(($ac_try" in
10668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10669 *) ac_try_echo=$ac_try;;
10671 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10672 (eval "$ac_try") 2>&5
10674 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10675 (exit $ac_status); }; }; then
10676 ac_cv_sizeof_size_t=`cat conftest.val`
10678 echo "$as_me: program exited with status
$ac_status" >&5
10679 echo "$as_me: failed program was
:" >&5
10680 sed 's/^/| /' conftest.$ac_ext >&5
10682 ( exit $ac_status )
10683 if test "$ac_cv_type_size_t" = yes; then
10684 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(size_t
)
10685 See \
`config.log' for more details." >&5
10686 echo "$as_me: error: cannot compute sizeof (size_t)
10687 See \`config.log
' for more details." >&2;}
10688 { (exit 77); exit 77; }; }
10690 ac_cv_sizeof_size_t=0
10693 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10697 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10698 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
10702 cat >>confdefs.h <<_ACEOF
10703 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10707 { echo "$as_me:$LINENO: checking for pid_t" >&5
10708 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10709 if test "${ac_cv_type_pid_t+set}" = set; then
10710 echo $ECHO_N "(cached) $ECHO_C" >&6
10712 cat >conftest.$ac_ext <<_ACEOF
10715 cat confdefs.h >>conftest.$ac_ext
10716 cat >>conftest.$ac_ext <<_ACEOF
10717 /* end confdefs.h. */
10718 $ac_includes_default
10719 typedef pid_t ac__type_new_;
10723 if ((ac__type_new_ *) 0)
10725 if (sizeof (ac__type_new_))
10731 rm -f conftest.$ac_objext
10732 if { (ac_try="$ac_compile"
10733 case "(($ac_try" in
10734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10735 *) ac_try_echo=$ac_try;;
10737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10738 (eval "$ac_compile") 2>conftest.er1
10740 grep -v '^
*+' conftest.er1 >conftest.err
10742 cat conftest.err >&5
10743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10744 (exit $ac_status); } && {
10745 test -z "$ac_c_werror_flag" ||
10746 test ! -s conftest.err
10747 } && test -s conftest.$ac_objext; then
10748 ac_cv_type_pid_t=yes
10750 echo "$as_me: failed program was:" >&5
10751 sed 's
/^
/|
/' conftest.$ac_ext >&5
10753 ac_cv_type_pid_t=no
10756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10758 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10759 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10761 # The cast to long int works around a bug in the HP C Compiler
10762 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10763 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10764 # This bug is HP SR number 8606223364.
10765 { echo "$as_me:$LINENO: checking size of pid_t" >&5
10766 echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; }
10767 if test "${ac_cv_sizeof_pid_t+set}" = set; then
10768 echo $ECHO_N "(cached) $ECHO_C" >&6
10770 if test "$cross_compiling" = yes; then
10771 # Depending upon the size, compute the lo and hi bounds.
10772 cat >conftest.
$ac_ext <<_ACEOF
10775 cat confdefs.h
>>conftest.
$ac_ext
10776 cat >>conftest.
$ac_ext <<_ACEOF
10777 /* end confdefs.h. */
10778 $ac_includes_default
10779 typedef pid_t ac__type_sizeof_;
10783 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10790 rm -f conftest.
$ac_objext
10791 if { (ac_try
="$ac_compile"
10792 case "(($ac_try" in
10793 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10794 *) ac_try_echo=$ac_try;;
10796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10797 (eval "$ac_compile") 2>conftest.er1
10799 grep -v '^ *+' conftest.er1 >conftest.err
10801 cat conftest.err >&5
10802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803 (exit $ac_status); } && {
10804 test -z "$ac_c_werror_flag" ||
10805 test ! -s conftest.err
10806 } && test -s conftest.$ac_objext; then
10809 cat >conftest.$ac_ext <<_ACEOF
10812 cat confdefs.h >>conftest.$ac_ext
10813 cat >>conftest.$ac_ext <<_ACEOF
10814 /* end confdefs.h. */
10815 $ac_includes_default
10816 typedef pid_t ac__type_sizeof_;
10820 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10827 rm -f conftest.$ac_objext
10828 if { (ac_try="$ac_compile"
10829 case "(($ac_try" in
10830 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10831 *) ac_try_echo
=$ac_try;;
10833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10834 (eval "$ac_compile") 2>conftest.er1
10836 grep -v '^ *+' conftest.er1
>conftest.err
10838 cat conftest.err
>&5
10839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10840 (exit $ac_status); } && {
10841 test -z "$ac_c_werror_flag" ||
10842 test ! -s conftest.err
10843 } && test -s conftest.
$ac_objext; then
10844 ac_hi
=$ac_mid; break
10846 echo "$as_me: failed program was:" >&5
10847 sed 's/^/| /' conftest.
$ac_ext >&5
10849 ac_lo
=`expr $ac_mid + 1`
10850 if test $ac_lo -le $ac_mid; then
10854 ac_mid
=`expr 2 '*' $ac_mid + 1`
10857 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10860 echo "$as_me: failed program was:" >&5
10861 sed 's/^/| /' conftest.
$ac_ext >&5
10863 cat >conftest.
$ac_ext <<_ACEOF
10866 cat confdefs.h
>>conftest.
$ac_ext
10867 cat >>conftest.
$ac_ext <<_ACEOF
10868 /* end confdefs.h. */
10869 $ac_includes_default
10870 typedef pid_t ac__type_sizeof_;
10874 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10881 rm -f conftest.
$ac_objext
10882 if { (ac_try
="$ac_compile"
10883 case "(($ac_try" in
10884 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10885 *) ac_try_echo=$ac_try;;
10887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10888 (eval "$ac_compile") 2>conftest.er1
10890 grep -v '^ *+' conftest.er1 >conftest.err
10892 cat conftest.err >&5
10893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894 (exit $ac_status); } && {
10895 test -z "$ac_c_werror_flag" ||
10896 test ! -s conftest.err
10897 } && test -s conftest.$ac_objext; then
10900 cat >conftest.$ac_ext <<_ACEOF
10903 cat confdefs.h >>conftest.$ac_ext
10904 cat >>conftest.$ac_ext <<_ACEOF
10905 /* end confdefs.h. */
10906 $ac_includes_default
10907 typedef pid_t ac__type_sizeof_;
10911 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10918 rm -f conftest.$ac_objext
10919 if { (ac_try="$ac_compile"
10920 case "(($ac_try" in
10921 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10922 *) ac_try_echo
=$ac_try;;
10924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10925 (eval "$ac_compile") 2>conftest.er1
10927 grep -v '^ *+' conftest.er1
>conftest.err
10929 cat conftest.err
>&5
10930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931 (exit $ac_status); } && {
10932 test -z "$ac_c_werror_flag" ||
10933 test ! -s conftest.err
10934 } && test -s conftest.
$ac_objext; then
10935 ac_lo
=$ac_mid; break
10937 echo "$as_me: failed program was:" >&5
10938 sed 's/^/| /' conftest.
$ac_ext >&5
10940 ac_hi
=`expr '(' $ac_mid ')' - 1`
10941 if test $ac_mid -le $ac_hi; then
10945 ac_mid
=`expr 2 '*' $ac_mid`
10948 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10951 echo "$as_me: failed program was:" >&5
10952 sed 's/^/| /' conftest.
$ac_ext >&5
10957 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10960 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10961 # Binary search between lo and hi bounds.
10962 while test "x$ac_lo" != "x$ac_hi"; do
10963 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10964 cat >conftest.
$ac_ext <<_ACEOF
10967 cat confdefs.h
>>conftest.
$ac_ext
10968 cat >>conftest.
$ac_ext <<_ACEOF
10969 /* end confdefs.h. */
10970 $ac_includes_default
10971 typedef pid_t ac__type_sizeof_;
10975 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10982 rm -f conftest.
$ac_objext
10983 if { (ac_try
="$ac_compile"
10984 case "(($ac_try" in
10985 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10986 *) ac_try_echo=$ac_try;;
10988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10989 (eval "$ac_compile") 2>conftest.er1
10991 grep -v '^ *+' conftest.er1 >conftest.err
10993 cat conftest.err >&5
10994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10995 (exit $ac_status); } && {
10996 test -z "$ac_c_werror_flag" ||
10997 test ! -s conftest.err
10998 } && test -s conftest.$ac_objext; then
11001 echo "$as_me: failed program was:" >&5
11002 sed 's/^/| /' conftest.$ac_ext >&5
11004 ac_lo=`expr '(' $ac_mid ')' + 1`
11007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11010 ?*) ac_cv_sizeof_pid_t=$ac_lo;;
11011 '') if test "$ac_cv_type_pid_t" = yes; then
11012 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
11013 See \`config.log
' for more details." >&5
11014 echo "$as_me: error: cannot compute sizeof (pid_t)
11015 See \`config.log' for more details.
" >&2;}
11016 { (exit 77); exit 77; }; }
11018 ac_cv_sizeof_pid_t=0
11022 cat >conftest.$ac_ext <<_ACEOF
11025 cat confdefs.h >>conftest.$ac_ext
11026 cat >>conftest.$ac_ext <<_ACEOF
11027 /* end confdefs.h. */
11028 $ac_includes_default
11029 typedef pid_t ac__type_sizeof_;
11030 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11031 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11033 #include <stdlib.h>
11038 FILE *f = fopen ("conftest.val
", "w
");
11041 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11043 long int i = longval ();
11044 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11046 fprintf (f, "%ld
\n", i);
11050 unsigned long int i = ulongval ();
11051 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11053 fprintf (f, "%lu
\n", i);
11055 return ferror (f) || fclose (f) != 0;
11061 rm -f conftest$ac_exeext
11062 if { (ac_try="$ac_link"
11063 case "(($ac_try" in
11064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11065 *) ac_try_echo=$ac_try;;
11067 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11068 (eval "$ac_link") 2>&5
11070 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11071 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11072 { (case "(($ac_try" in
11073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11074 *) ac_try_echo=$ac_try;;
11076 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11077 (eval "$ac_try") 2>&5
11079 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11080 (exit $ac_status); }; }; then
11081 ac_cv_sizeof_pid_t=`cat conftest.val`
11083 echo "$as_me: program exited with status
$ac_status" >&5
11084 echo "$as_me: failed program was
:" >&5
11085 sed 's/^/| /' conftest.$ac_ext >&5
11087 ( exit $ac_status )
11088 if test "$ac_cv_type_pid_t" = yes; then
11089 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(pid_t
)
11090 See \
`config.log' for more details." >&5
11091 echo "$as_me: error: cannot compute sizeof (pid_t)
11092 See \`config.log
' for more details." >&2;}
11093 { (exit 77); exit 77; }; }
11095 ac_cv_sizeof_pid_t=0
11098 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11102 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
11103 echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; }
11107 cat >>confdefs.h <<_ACEOF
11108 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
11113 { echo "$as_me:$LINENO: checking for long long support" >&5
11114 echo $ECHO_N "checking for long long support... $ECHO_C" >&6; }
11116 cat >conftest.$ac_ext <<_ACEOF
11119 cat confdefs.h >>conftest.$ac_ext
11120 cat >>conftest.$ac_ext <<_ACEOF
11121 /* end confdefs.h. */
11126 long long x; x = (long long)0;
11131 rm -f conftest.$ac_objext
11132 if { (ac_try="$ac_compile"
11133 case "(($ac_try" in
11134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11135 *) ac_try_echo=$ac_try;;
11137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11138 (eval "$ac_compile") 2>conftest.er1
11140 grep -v '^
*+' conftest.er1 >conftest.err
11142 cat conftest.err >&5
11143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11144 (exit $ac_status); } && {
11145 test -z "$ac_c_werror_flag" ||
11146 test ! -s conftest.err
11147 } && test -s conftest.$ac_objext; then
11150 cat >>confdefs.h <<\_ACEOF
11151 #define HAVE_LONG_LONG 1
11157 echo "$as_me: failed program was:" >&5
11158 sed 's
/^
/|
/' conftest.$ac_ext >&5
11163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11164 { echo "$as_me:$LINENO: result: $have_long_long" >&5
11165 echo "${ECHO_T}$have_long_long" >&6; }
11166 if test "$have_long_long" = yes ; then
11167 { echo "$as_me:$LINENO: checking for long long" >&5
11168 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
11169 if test "${ac_cv_type_long_long+set}" = set; then
11170 echo $ECHO_N "(cached) $ECHO_C" >&6
11172 cat >conftest.$ac_ext <<_ACEOF
11175 cat confdefs.h >>conftest.$ac_ext
11176 cat >>conftest.$ac_ext <<_ACEOF
11177 /* end confdefs.h. */
11178 $ac_includes_default
11179 typedef long long ac__type_new_;
11183 if ((ac__type_new_ *) 0)
11185 if (sizeof (ac__type_new_))
11191 rm -f conftest.$ac_objext
11192 if { (ac_try="$ac_compile"
11193 case "(($ac_try" in
11194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11195 *) ac_try_echo=$ac_try;;
11197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11198 (eval "$ac_compile") 2>conftest.er1
11200 grep -v '^
*+' conftest.er1 >conftest.err
11202 cat conftest.err >&5
11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204 (exit $ac_status); } && {
11205 test -z "$ac_c_werror_flag" ||
11206 test ! -s conftest.err
11207 } && test -s conftest.$ac_objext; then
11208 ac_cv_type_long_long=yes
11210 echo "$as_me: failed program was:" >&5
11211 sed 's
/^
/|
/' conftest.$ac_ext >&5
11213 ac_cv_type_long_long=no
11216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11218 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11219 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
11221 # The cast to long int works around a bug in the HP C Compiler
11222 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11223 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11224 # This bug is HP SR number 8606223364.
11225 { echo "$as_me:$LINENO: checking size of long long" >&5
11226 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
11227 if test "${ac_cv_sizeof_long_long+set}" = set; then
11228 echo $ECHO_N "(cached) $ECHO_C" >&6
11230 if test "$cross_compiling" = yes; then
11231 # Depending upon the size, compute the lo and hi bounds.
11232 cat >conftest.
$ac_ext <<_ACEOF
11235 cat confdefs.h
>>conftest.
$ac_ext
11236 cat >>conftest.
$ac_ext <<_ACEOF
11237 /* end confdefs.h. */
11238 $ac_includes_default
11239 typedef long long ac__type_sizeof_;
11243 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11250 rm -f conftest.
$ac_objext
11251 if { (ac_try
="$ac_compile"
11252 case "(($ac_try" in
11253 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11254 *) ac_try_echo=$ac_try;;
11256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11257 (eval "$ac_compile") 2>conftest.er1
11259 grep -v '^ *+' conftest.er1 >conftest.err
11261 cat conftest.err >&5
11262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263 (exit $ac_status); } && {
11264 test -z "$ac_c_werror_flag" ||
11265 test ! -s conftest.err
11266 } && test -s conftest.$ac_objext; then
11269 cat >conftest.$ac_ext <<_ACEOF
11272 cat confdefs.h >>conftest.$ac_ext
11273 cat >>conftest.$ac_ext <<_ACEOF
11274 /* end confdefs.h. */
11275 $ac_includes_default
11276 typedef long long ac__type_sizeof_;
11280 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11287 rm -f conftest.$ac_objext
11288 if { (ac_try="$ac_compile"
11289 case "(($ac_try" in
11290 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11291 *) ac_try_echo
=$ac_try;;
11293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11294 (eval "$ac_compile") 2>conftest.er1
11296 grep -v '^ *+' conftest.er1
>conftest.err
11298 cat conftest.err
>&5
11299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11300 (exit $ac_status); } && {
11301 test -z "$ac_c_werror_flag" ||
11302 test ! -s conftest.err
11303 } && test -s conftest.
$ac_objext; then
11304 ac_hi
=$ac_mid; break
11306 echo "$as_me: failed program was:" >&5
11307 sed 's/^/| /' conftest.
$ac_ext >&5
11309 ac_lo
=`expr $ac_mid + 1`
11310 if test $ac_lo -le $ac_mid; then
11314 ac_mid
=`expr 2 '*' $ac_mid + 1`
11317 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11320 echo "$as_me: failed program was:" >&5
11321 sed 's/^/| /' conftest.
$ac_ext >&5
11323 cat >conftest.
$ac_ext <<_ACEOF
11326 cat confdefs.h
>>conftest.
$ac_ext
11327 cat >>conftest.
$ac_ext <<_ACEOF
11328 /* end confdefs.h. */
11329 $ac_includes_default
11330 typedef long long ac__type_sizeof_;
11334 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11341 rm -f conftest.
$ac_objext
11342 if { (ac_try
="$ac_compile"
11343 case "(($ac_try" in
11344 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11345 *) ac_try_echo=$ac_try;;
11347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11348 (eval "$ac_compile") 2>conftest.er1
11350 grep -v '^ *+' conftest.er1 >conftest.err
11352 cat conftest.err >&5
11353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354 (exit $ac_status); } && {
11355 test -z "$ac_c_werror_flag" ||
11356 test ! -s conftest.err
11357 } && test -s conftest.$ac_objext; then
11360 cat >conftest.$ac_ext <<_ACEOF
11363 cat confdefs.h >>conftest.$ac_ext
11364 cat >>conftest.$ac_ext <<_ACEOF
11365 /* end confdefs.h. */
11366 $ac_includes_default
11367 typedef long long ac__type_sizeof_;
11371 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11378 rm -f conftest.$ac_objext
11379 if { (ac_try="$ac_compile"
11380 case "(($ac_try" in
11381 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11382 *) ac_try_echo
=$ac_try;;
11384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11385 (eval "$ac_compile") 2>conftest.er1
11387 grep -v '^ *+' conftest.er1
>conftest.err
11389 cat conftest.err
>&5
11390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391 (exit $ac_status); } && {
11392 test -z "$ac_c_werror_flag" ||
11393 test ! -s conftest.err
11394 } && test -s conftest.
$ac_objext; then
11395 ac_lo
=$ac_mid; break
11397 echo "$as_me: failed program was:" >&5
11398 sed 's/^/| /' conftest.
$ac_ext >&5
11400 ac_hi
=`expr '(' $ac_mid ')' - 1`
11401 if test $ac_mid -le $ac_hi; then
11405 ac_mid
=`expr 2 '*' $ac_mid`
11408 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11411 echo "$as_me: failed program was:" >&5
11412 sed 's/^/| /' conftest.
$ac_ext >&5
11417 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11420 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11421 # Binary search between lo and hi bounds.
11422 while test "x$ac_lo" != "x$ac_hi"; do
11423 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11424 cat >conftest.
$ac_ext <<_ACEOF
11427 cat confdefs.h
>>conftest.
$ac_ext
11428 cat >>conftest.
$ac_ext <<_ACEOF
11429 /* end confdefs.h. */
11430 $ac_includes_default
11431 typedef long long ac__type_sizeof_;
11435 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11442 rm -f conftest.
$ac_objext
11443 if { (ac_try
="$ac_compile"
11444 case "(($ac_try" in
11445 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11446 *) ac_try_echo=$ac_try;;
11448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11449 (eval "$ac_compile") 2>conftest.er1
11451 grep -v '^ *+' conftest.er1 >conftest.err
11453 cat conftest.err >&5
11454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455 (exit $ac_status); } && {
11456 test -z "$ac_c_werror_flag" ||
11457 test ! -s conftest.err
11458 } && test -s conftest.$ac_objext; then
11461 echo "$as_me: failed program was:" >&5
11462 sed 's/^/| /' conftest.$ac_ext >&5
11464 ac_lo=`expr '(' $ac_mid ')' + 1`
11467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11470 ?*) ac_cv_sizeof_long_long=$ac_lo;;
11471 '') if test "$ac_cv_type_long_long" = yes; then
11472 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11473 See \`config.log
' for more details." >&5
11474 echo "$as_me: error: cannot compute sizeof (long long)
11475 See \`config.log' for more details.
" >&2;}
11476 { (exit 77); exit 77; }; }
11478 ac_cv_sizeof_long_long=0
11482 cat >conftest.$ac_ext <<_ACEOF
11485 cat confdefs.h >>conftest.$ac_ext
11486 cat >>conftest.$ac_ext <<_ACEOF
11487 /* end confdefs.h. */
11488 $ac_includes_default
11489 typedef long long ac__type_sizeof_;
11490 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11491 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11493 #include <stdlib.h>
11498 FILE *f = fopen ("conftest.val
", "w
");
11501 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11503 long int i = longval ();
11504 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11506 fprintf (f, "%ld
\n", i);
11510 unsigned long int i = ulongval ();
11511 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11513 fprintf (f, "%lu
\n", i);
11515 return ferror (f) || fclose (f) != 0;
11521 rm -f conftest$ac_exeext
11522 if { (ac_try="$ac_link"
11523 case "(($ac_try" in
11524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11525 *) ac_try_echo=$ac_try;;
11527 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11528 (eval "$ac_link") 2>&5
11530 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11531 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11532 { (case "(($ac_try" in
11533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11534 *) ac_try_echo=$ac_try;;
11536 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11537 (eval "$ac_try") 2>&5
11539 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11540 (exit $ac_status); }; }; then
11541 ac_cv_sizeof_long_long=`cat conftest.val`
11543 echo "$as_me: program exited with status
$ac_status" >&5
11544 echo "$as_me: failed program was
:" >&5
11545 sed 's/^/| /' conftest.$ac_ext >&5
11547 ( exit $ac_status )
11548 if test "$ac_cv_type_long_long" = yes; then
11549 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long long
)
11550 See \
`config.log' for more details." >&5
11551 echo "$as_me: error: cannot compute sizeof (long long)
11552 See \`config.log
' for more details." >&2;}
11553 { (exit 77); exit 77; }; }
11555 ac_cv_sizeof_long_long=0
11558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11562 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11563 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
11567 cat >>confdefs.h <<_ACEOF
11568 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11574 { echo "$as_me:$LINENO: checking for long double support" >&5
11575 echo $ECHO_N "checking for long double support... $ECHO_C" >&6; }
11576 have_long_double=no
11577 cat >conftest.$ac_ext <<_ACEOF
11580 cat confdefs.h >>conftest.$ac_ext
11581 cat >>conftest.$ac_ext <<_ACEOF
11582 /* end confdefs.h. */
11587 long double x; x = (long double)0.;
11592 rm -f conftest.$ac_objext
11593 if { (ac_try="$ac_compile"
11594 case "(($ac_try" in
11595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11596 *) ac_try_echo=$ac_try;;
11598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11599 (eval "$ac_compile") 2>conftest.er1
11601 grep -v '^
*+' conftest.er1 >conftest.err
11603 cat conftest.err >&5
11604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605 (exit $ac_status); } && {
11606 test -z "$ac_c_werror_flag" ||
11607 test ! -s conftest.err
11608 } && test -s conftest.$ac_objext; then
11611 cat >>confdefs.h <<\_ACEOF
11612 #define HAVE_LONG_DOUBLE 1
11615 have_long_double=yes
11618 echo "$as_me: failed program was:" >&5
11619 sed 's
/^
/|
/' conftest.$ac_ext >&5
11624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11625 { echo "$as_me:$LINENO: result: $have_long_double" >&5
11626 echo "${ECHO_T}$have_long_double" >&6; }
11627 if test "$have_long_double" = yes ; then
11628 { echo "$as_me:$LINENO: checking for long double" >&5
11629 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
11630 if test "${ac_cv_type_long_double+set}" = set; then
11631 echo $ECHO_N "(cached) $ECHO_C" >&6
11633 cat >conftest.$ac_ext <<_ACEOF
11636 cat confdefs.h >>conftest.$ac_ext
11637 cat >>conftest.$ac_ext <<_ACEOF
11638 /* end confdefs.h. */
11639 $ac_includes_default
11640 typedef long double ac__type_new_;
11644 if ((ac__type_new_ *) 0)
11646 if (sizeof (ac__type_new_))
11652 rm -f conftest.$ac_objext
11653 if { (ac_try="$ac_compile"
11654 case "(($ac_try" in
11655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11656 *) ac_try_echo=$ac_try;;
11658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11659 (eval "$ac_compile") 2>conftest.er1
11661 grep -v '^
*+' conftest.er1 >conftest.err
11663 cat conftest.err >&5
11664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665 (exit $ac_status); } && {
11666 test -z "$ac_c_werror_flag" ||
11667 test ! -s conftest.err
11668 } && test -s conftest.$ac_objext; then
11669 ac_cv_type_long_double=yes
11671 echo "$as_me: failed program was:" >&5
11672 sed 's
/^
/|
/' conftest.$ac_ext >&5
11674 ac_cv_type_long_double=no
11677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11679 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
11680 echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
11682 # The cast to long int works around a bug in the HP C Compiler
11683 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11684 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11685 # This bug is HP SR number 8606223364.
11686 { echo "$as_me:$LINENO: checking size of long double" >&5
11687 echo $ECHO_N "checking size of long double... $ECHO_C" >&6; }
11688 if test "${ac_cv_sizeof_long_double+set}" = set; then
11689 echo $ECHO_N "(cached) $ECHO_C" >&6
11691 if test "$cross_compiling" = yes; then
11692 # Depending upon the size, compute the lo and hi bounds.
11693 cat >conftest.
$ac_ext <<_ACEOF
11696 cat confdefs.h
>>conftest.
$ac_ext
11697 cat >>conftest.
$ac_ext <<_ACEOF
11698 /* end confdefs.h. */
11699 $ac_includes_default
11700 typedef long double ac__type_sizeof_;
11704 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11711 rm -f conftest.
$ac_objext
11712 if { (ac_try
="$ac_compile"
11713 case "(($ac_try" in
11714 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11715 *) ac_try_echo=$ac_try;;
11717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11718 (eval "$ac_compile") 2>conftest.er1
11720 grep -v '^ *+' conftest.er1 >conftest.err
11722 cat conftest.err >&5
11723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724 (exit $ac_status); } && {
11725 test -z "$ac_c_werror_flag" ||
11726 test ! -s conftest.err
11727 } && test -s conftest.$ac_objext; then
11730 cat >conftest.$ac_ext <<_ACEOF
11733 cat confdefs.h >>conftest.$ac_ext
11734 cat >>conftest.$ac_ext <<_ACEOF
11735 /* end confdefs.h. */
11736 $ac_includes_default
11737 typedef long double ac__type_sizeof_;
11741 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11748 rm -f conftest.$ac_objext
11749 if { (ac_try="$ac_compile"
11750 case "(($ac_try" in
11751 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11752 *) ac_try_echo
=$ac_try;;
11754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11755 (eval "$ac_compile") 2>conftest.er1
11757 grep -v '^ *+' conftest.er1
>conftest.err
11759 cat conftest.err
>&5
11760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761 (exit $ac_status); } && {
11762 test -z "$ac_c_werror_flag" ||
11763 test ! -s conftest.err
11764 } && test -s conftest.
$ac_objext; then
11765 ac_hi
=$ac_mid; break
11767 echo "$as_me: failed program was:" >&5
11768 sed 's/^/| /' conftest.
$ac_ext >&5
11770 ac_lo
=`expr $ac_mid + 1`
11771 if test $ac_lo -le $ac_mid; then
11775 ac_mid
=`expr 2 '*' $ac_mid + 1`
11778 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11781 echo "$as_me: failed program was:" >&5
11782 sed 's/^/| /' conftest.
$ac_ext >&5
11784 cat >conftest.
$ac_ext <<_ACEOF
11787 cat confdefs.h
>>conftest.
$ac_ext
11788 cat >>conftest.
$ac_ext <<_ACEOF
11789 /* end confdefs.h. */
11790 $ac_includes_default
11791 typedef long double ac__type_sizeof_;
11795 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11802 rm -f conftest.
$ac_objext
11803 if { (ac_try
="$ac_compile"
11804 case "(($ac_try" in
11805 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11806 *) ac_try_echo=$ac_try;;
11808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11809 (eval "$ac_compile") 2>conftest.er1
11811 grep -v '^ *+' conftest.er1 >conftest.err
11813 cat conftest.err >&5
11814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); } && {
11816 test -z "$ac_c_werror_flag" ||
11817 test ! -s conftest.err
11818 } && test -s conftest.$ac_objext; then
11821 cat >conftest.$ac_ext <<_ACEOF
11824 cat confdefs.h >>conftest.$ac_ext
11825 cat >>conftest.$ac_ext <<_ACEOF
11826 /* end confdefs.h. */
11827 $ac_includes_default
11828 typedef long double ac__type_sizeof_;
11832 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11839 rm -f conftest.$ac_objext
11840 if { (ac_try="$ac_compile"
11841 case "(($ac_try" in
11842 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11843 *) ac_try_echo
=$ac_try;;
11845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11846 (eval "$ac_compile") 2>conftest.er1
11848 grep -v '^ *+' conftest.er1
>conftest.err
11850 cat conftest.err
>&5
11851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852 (exit $ac_status); } && {
11853 test -z "$ac_c_werror_flag" ||
11854 test ! -s conftest.err
11855 } && test -s conftest.
$ac_objext; then
11856 ac_lo
=$ac_mid; break
11858 echo "$as_me: failed program was:" >&5
11859 sed 's/^/| /' conftest.
$ac_ext >&5
11861 ac_hi
=`expr '(' $ac_mid ')' - 1`
11862 if test $ac_mid -le $ac_hi; then
11866 ac_mid
=`expr 2 '*' $ac_mid`
11869 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11872 echo "$as_me: failed program was:" >&5
11873 sed 's/^/| /' conftest.
$ac_ext >&5
11878 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11881 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11882 # Binary search between lo and hi bounds.
11883 while test "x$ac_lo" != "x$ac_hi"; do
11884 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11885 cat >conftest.
$ac_ext <<_ACEOF
11888 cat confdefs.h
>>conftest.
$ac_ext
11889 cat >>conftest.
$ac_ext <<_ACEOF
11890 /* end confdefs.h. */
11891 $ac_includes_default
11892 typedef long double ac__type_sizeof_;
11896 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11903 rm -f conftest.
$ac_objext
11904 if { (ac_try
="$ac_compile"
11905 case "(($ac_try" in
11906 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11907 *) ac_try_echo=$ac_try;;
11909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11910 (eval "$ac_compile") 2>conftest.er1
11912 grep -v '^ *+' conftest.er1 >conftest.err
11914 cat conftest.err >&5
11915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916 (exit $ac_status); } && {
11917 test -z "$ac_c_werror_flag" ||
11918 test ! -s conftest.err
11919 } && test -s conftest.$ac_objext; then
11922 echo "$as_me: failed program was:" >&5
11923 sed 's/^/| /' conftest.$ac_ext >&5
11925 ac_lo=`expr '(' $ac_mid ')' + 1`
11928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11931 ?*) ac_cv_sizeof_long_double=$ac_lo;;
11932 '') if test "$ac_cv_type_long_double" = yes; then
11933 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
11934 See \`config.log
' for more details." >&5
11935 echo "$as_me: error: cannot compute sizeof (long double)
11936 See \`config.log' for more details.
" >&2;}
11937 { (exit 77); exit 77; }; }
11939 ac_cv_sizeof_long_double=0
11943 cat >conftest.$ac_ext <<_ACEOF
11946 cat confdefs.h >>conftest.$ac_ext
11947 cat >>conftest.$ac_ext <<_ACEOF
11948 /* end confdefs.h. */
11949 $ac_includes_default
11950 typedef long double ac__type_sizeof_;
11951 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11952 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11954 #include <stdlib.h>
11959 FILE *f = fopen ("conftest.val
", "w
");
11962 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11964 long int i = longval ();
11965 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11967 fprintf (f, "%ld
\n", i);
11971 unsigned long int i = ulongval ();
11972 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11974 fprintf (f, "%lu
\n", i);
11976 return ferror (f) || fclose (f) != 0;
11982 rm -f conftest$ac_exeext
11983 if { (ac_try="$ac_link"
11984 case "(($ac_try" in
11985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11986 *) ac_try_echo=$ac_try;;
11988 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11989 (eval "$ac_link") 2>&5
11991 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11992 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11993 { (case "(($ac_try" in
11994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11995 *) ac_try_echo=$ac_try;;
11997 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11998 (eval "$ac_try") 2>&5
12000 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12001 (exit $ac_status); }; }; then
12002 ac_cv_sizeof_long_double=`cat conftest.val`
12004 echo "$as_me: program exited with status
$ac_status" >&5
12005 echo "$as_me: failed program was
:" >&5
12006 sed 's/^/| /' conftest.$ac_ext >&5
12008 ( exit $ac_status )
12009 if test "$ac_cv_type_long_double" = yes; then
12010 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long double
)
12011 See \
`config.log' for more details." >&5
12012 echo "$as_me: error: cannot compute sizeof (long double)
12013 See \`config.log
' for more details." >&2;}
12014 { (exit 77); exit 77; }; }
12016 ac_cv_sizeof_long_double=0
12019 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12023 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
12024 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; }
12028 cat >>confdefs.h <<_ACEOF
12029 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
12035 { echo "$as_me:$LINENO: checking for _Bool support" >&5
12036 echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; }
12038 cat >conftest.$ac_ext <<_ACEOF
12041 cat confdefs.h >>conftest.$ac_ext
12042 cat >>conftest.$ac_ext <<_ACEOF
12043 /* end confdefs.h. */
12048 _Bool x; x = (_Bool)0;
12053 rm -f conftest.$ac_objext
12054 if { (ac_try="$ac_compile"
12055 case "(($ac_try" in
12056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12057 *) ac_try_echo=$ac_try;;
12059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12060 (eval "$ac_compile") 2>conftest.er1
12062 grep -v '^
*+' conftest.er1 >conftest.err
12064 cat conftest.err >&5
12065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066 (exit $ac_status); } && {
12067 test -z "$ac_c_werror_flag" ||
12068 test ! -s conftest.err
12069 } && test -s conftest.$ac_objext; then
12072 cat >>confdefs.h <<\_ACEOF
12073 #define HAVE_C99_BOOL 1
12079 echo "$as_me: failed program was:" >&5
12080 sed 's
/^
/|
/' conftest.$ac_ext >&5
12085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12086 { echo "$as_me:$LINENO: result: $have_c99_bool" >&5
12087 echo "${ECHO_T}$have_c99_bool" >&6; }
12088 if test "$have_c99_bool" = yes ; then
12089 { echo "$as_me:$LINENO: checking for _Bool" >&5
12090 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
12091 if test "${ac_cv_type__Bool+set}" = set; then
12092 echo $ECHO_N "(cached) $ECHO_C" >&6
12094 cat >conftest.$ac_ext <<_ACEOF
12097 cat confdefs.h >>conftest.$ac_ext
12098 cat >>conftest.$ac_ext <<_ACEOF
12099 /* end confdefs.h. */
12100 $ac_includes_default
12101 typedef _Bool ac__type_new_;
12105 if ((ac__type_new_ *) 0)
12107 if (sizeof (ac__type_new_))
12113 rm -f conftest.$ac_objext
12114 if { (ac_try="$ac_compile"
12115 case "(($ac_try" in
12116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12117 *) ac_try_echo=$ac_try;;
12119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12120 (eval "$ac_compile") 2>conftest.er1
12122 grep -v '^
*+' conftest.er1 >conftest.err
12124 cat conftest.err >&5
12125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126 (exit $ac_status); } && {
12127 test -z "$ac_c_werror_flag" ||
12128 test ! -s conftest.err
12129 } && test -s conftest.$ac_objext; then
12130 ac_cv_type__Bool=yes
12132 echo "$as_me: failed program was:" >&5
12133 sed 's
/^
/|
/' conftest.$ac_ext >&5
12135 ac_cv_type__Bool=no
12138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12140 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
12141 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
12143 # The cast to long int works around a bug in the HP C Compiler
12144 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12145 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12146 # This bug is HP SR number 8606223364.
12147 { echo "$as_me:$LINENO: checking size of _Bool" >&5
12148 echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; }
12149 if test "${ac_cv_sizeof__Bool+set}" = set; then
12150 echo $ECHO_N "(cached) $ECHO_C" >&6
12152 if test "$cross_compiling" = yes; then
12153 # Depending upon the size, compute the lo and hi bounds.
12154 cat >conftest.
$ac_ext <<_ACEOF
12157 cat confdefs.h
>>conftest.
$ac_ext
12158 cat >>conftest.
$ac_ext <<_ACEOF
12159 /* end confdefs.h. */
12160 $ac_includes_default
12161 typedef _Bool ac__type_sizeof_;
12165 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12172 rm -f conftest.
$ac_objext
12173 if { (ac_try
="$ac_compile"
12174 case "(($ac_try" in
12175 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12176 *) ac_try_echo=$ac_try;;
12178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12179 (eval "$ac_compile") 2>conftest.er1
12181 grep -v '^ *+' conftest.er1 >conftest.err
12183 cat conftest.err >&5
12184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185 (exit $ac_status); } && {
12186 test -z "$ac_c_werror_flag" ||
12187 test ! -s conftest.err
12188 } && test -s conftest.$ac_objext; then
12191 cat >conftest.$ac_ext <<_ACEOF
12194 cat confdefs.h >>conftest.$ac_ext
12195 cat >>conftest.$ac_ext <<_ACEOF
12196 /* end confdefs.h. */
12197 $ac_includes_default
12198 typedef _Bool ac__type_sizeof_;
12202 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12209 rm -f conftest.$ac_objext
12210 if { (ac_try="$ac_compile"
12211 case "(($ac_try" in
12212 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12213 *) ac_try_echo
=$ac_try;;
12215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12216 (eval "$ac_compile") 2>conftest.er1
12218 grep -v '^ *+' conftest.er1
>conftest.err
12220 cat conftest.err
>&5
12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222 (exit $ac_status); } && {
12223 test -z "$ac_c_werror_flag" ||
12224 test ! -s conftest.err
12225 } && test -s conftest.
$ac_objext; then
12226 ac_hi
=$ac_mid; break
12228 echo "$as_me: failed program was:" >&5
12229 sed 's/^/| /' conftest.
$ac_ext >&5
12231 ac_lo
=`expr $ac_mid + 1`
12232 if test $ac_lo -le $ac_mid; then
12236 ac_mid
=`expr 2 '*' $ac_mid + 1`
12239 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12242 echo "$as_me: failed program was:" >&5
12243 sed 's/^/| /' conftest.
$ac_ext >&5
12245 cat >conftest.
$ac_ext <<_ACEOF
12248 cat confdefs.h
>>conftest.
$ac_ext
12249 cat >>conftest.
$ac_ext <<_ACEOF
12250 /* end confdefs.h. */
12251 $ac_includes_default
12252 typedef _Bool ac__type_sizeof_;
12256 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12263 rm -f conftest.
$ac_objext
12264 if { (ac_try
="$ac_compile"
12265 case "(($ac_try" in
12266 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12267 *) ac_try_echo=$ac_try;;
12269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12270 (eval "$ac_compile") 2>conftest.er1
12272 grep -v '^ *+' conftest.er1 >conftest.err
12274 cat conftest.err >&5
12275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276 (exit $ac_status); } && {
12277 test -z "$ac_c_werror_flag" ||
12278 test ! -s conftest.err
12279 } && test -s conftest.$ac_objext; then
12282 cat >conftest.$ac_ext <<_ACEOF
12285 cat confdefs.h >>conftest.$ac_ext
12286 cat >>conftest.$ac_ext <<_ACEOF
12287 /* end confdefs.h. */
12288 $ac_includes_default
12289 typedef _Bool ac__type_sizeof_;
12293 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12300 rm -f conftest.$ac_objext
12301 if { (ac_try="$ac_compile"
12302 case "(($ac_try" in
12303 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12304 *) ac_try_echo
=$ac_try;;
12306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12307 (eval "$ac_compile") 2>conftest.er1
12309 grep -v '^ *+' conftest.er1
>conftest.err
12311 cat conftest.err
>&5
12312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12313 (exit $ac_status); } && {
12314 test -z "$ac_c_werror_flag" ||
12315 test ! -s conftest.err
12316 } && test -s conftest.
$ac_objext; then
12317 ac_lo
=$ac_mid; break
12319 echo "$as_me: failed program was:" >&5
12320 sed 's/^/| /' conftest.
$ac_ext >&5
12322 ac_hi
=`expr '(' $ac_mid ')' - 1`
12323 if test $ac_mid -le $ac_hi; then
12327 ac_mid
=`expr 2 '*' $ac_mid`
12330 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12333 echo "$as_me: failed program was:" >&5
12334 sed 's/^/| /' conftest.
$ac_ext >&5
12339 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12342 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12343 # Binary search between lo and hi bounds.
12344 while test "x$ac_lo" != "x$ac_hi"; do
12345 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12346 cat >conftest.
$ac_ext <<_ACEOF
12349 cat confdefs.h
>>conftest.
$ac_ext
12350 cat >>conftest.
$ac_ext <<_ACEOF
12351 /* end confdefs.h. */
12352 $ac_includes_default
12353 typedef _Bool ac__type_sizeof_;
12357 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12364 rm -f conftest.
$ac_objext
12365 if { (ac_try
="$ac_compile"
12366 case "(($ac_try" in
12367 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12368 *) ac_try_echo=$ac_try;;
12370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12371 (eval "$ac_compile") 2>conftest.er1
12373 grep -v '^ *+' conftest.er1 >conftest.err
12375 cat conftest.err >&5
12376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377 (exit $ac_status); } && {
12378 test -z "$ac_c_werror_flag" ||
12379 test ! -s conftest.err
12380 } && test -s conftest.$ac_objext; then
12383 echo "$as_me: failed program was:" >&5
12384 sed 's/^/| /' conftest.$ac_ext >&5
12386 ac_lo=`expr '(' $ac_mid ')' + 1`
12389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12392 ?*) ac_cv_sizeof__Bool=$ac_lo;;
12393 '') if test "$ac_cv_type__Bool" = yes; then
12394 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12395 See \`config.log
' for more details." >&5
12396 echo "$as_me: error: cannot compute sizeof (_Bool)
12397 See \`config.log' for more details.
" >&2;}
12398 { (exit 77); exit 77; }; }
12400 ac_cv_sizeof__Bool=0
12404 cat >conftest.$ac_ext <<_ACEOF
12407 cat confdefs.h >>conftest.$ac_ext
12408 cat >>conftest.$ac_ext <<_ACEOF
12409 /* end confdefs.h. */
12410 $ac_includes_default
12411 typedef _Bool ac__type_sizeof_;
12412 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12413 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12415 #include <stdlib.h>
12420 FILE *f = fopen ("conftest.val
", "w
");
12423 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12425 long int i = longval ();
12426 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12428 fprintf (f, "%ld
\n", i);
12432 unsigned long int i = ulongval ();
12433 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12435 fprintf (f, "%lu
\n", i);
12437 return ferror (f) || fclose (f) != 0;
12443 rm -f conftest$ac_exeext
12444 if { (ac_try="$ac_link"
12445 case "(($ac_try" in
12446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12447 *) ac_try_echo=$ac_try;;
12449 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12450 (eval "$ac_link") 2>&5
12452 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12453 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12454 { (case "(($ac_try" in
12455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12456 *) ac_try_echo=$ac_try;;
12458 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12459 (eval "$ac_try") 2>&5
12461 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12462 (exit $ac_status); }; }; then
12463 ac_cv_sizeof__Bool=`cat conftest.val`
12465 echo "$as_me: program exited with status
$ac_status" >&5
12466 echo "$as_me: failed program was
:" >&5
12467 sed 's/^/| /' conftest.$ac_ext >&5
12469 ( exit $ac_status )
12470 if test "$ac_cv_type__Bool" = yes; then
12471 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(_Bool
)
12472 See \
`config.log' for more details." >&5
12473 echo "$as_me: error: cannot compute sizeof (_Bool)
12474 See \`config.log
' for more details." >&2;}
12475 { (exit 77); exit 77; }; }
12477 ac_cv_sizeof__Bool=0
12480 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12484 { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
12485 echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; }
12489 cat >>confdefs.h <<_ACEOF
12490 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
12496 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12497 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12498 if test "${ac_cv_type_uintptr_t+set}" = set; then
12499 echo $ECHO_N "(cached) $ECHO_C" >&6
12501 cat >conftest.$ac_ext <<_ACEOF
12504 cat confdefs.h >>conftest.$ac_ext
12505 cat >>conftest.$ac_ext <<_ACEOF
12506 /* end confdefs.h. */
12507 #ifdef HAVE_STDINT_H
12508 #include <stdint.h>
12511 typedef uintptr_t ac__type_new_;
12515 if ((ac__type_new_ *) 0)
12517 if (sizeof (ac__type_new_))
12523 rm -f conftest.$ac_objext
12524 if { (ac_try="$ac_compile"
12525 case "(($ac_try" in
12526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12527 *) ac_try_echo=$ac_try;;
12529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12530 (eval "$ac_compile") 2>conftest.er1
12532 grep -v '^
*+' conftest.er1 >conftest.err
12534 cat conftest.err >&5
12535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536 (exit $ac_status); } && {
12537 test -z "$ac_c_werror_flag" ||
12538 test ! -s conftest.err
12539 } && test -s conftest.$ac_objext; then
12540 ac_cv_type_uintptr_t=yes
12542 echo "$as_me: failed program was:" >&5
12543 sed 's
/^
/|
/' conftest.$ac_ext >&5
12545 ac_cv_type_uintptr_t=no
12548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12550 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12551 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12552 if test $ac_cv_type_uintptr_t = yes; then
12554 cat >>confdefs.h <<_ACEOF
12555 #define HAVE_UINTPTR_T 1
12558 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12559 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12560 if test "${ac_cv_type_uintptr_t+set}" = set; then
12561 echo $ECHO_N "(cached) $ECHO_C" >&6
12563 cat >conftest.$ac_ext <<_ACEOF
12566 cat confdefs.h >>conftest.$ac_ext
12567 cat >>conftest.$ac_ext <<_ACEOF
12568 /* end confdefs.h. */
12569 $ac_includes_default
12570 typedef uintptr_t ac__type_new_;
12574 if ((ac__type_new_ *) 0)
12576 if (sizeof (ac__type_new_))
12582 rm -f conftest.$ac_objext
12583 if { (ac_try="$ac_compile"
12584 case "(($ac_try" in
12585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12586 *) ac_try_echo=$ac_try;;
12588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12589 (eval "$ac_compile") 2>conftest.er1
12591 grep -v '^
*+' conftest.er1 >conftest.err
12593 cat conftest.err >&5
12594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595 (exit $ac_status); } && {
12596 test -z "$ac_c_werror_flag" ||
12597 test ! -s conftest.err
12598 } && test -s conftest.$ac_objext; then
12599 ac_cv_type_uintptr_t=yes
12601 echo "$as_me: failed program was:" >&5
12602 sed 's
/^
/|
/' conftest.$ac_ext >&5
12604 ac_cv_type_uintptr_t=no
12607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12609 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12610 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12612 # The cast to long int works around a bug in the HP C Compiler
12613 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12614 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12615 # This bug is HP SR number 8606223364.
12616 { echo "$as_me:$LINENO: checking size of uintptr_t" >&5
12617 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; }
12618 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
12619 echo $ECHO_N "(cached) $ECHO_C" >&6
12621 if test "$cross_compiling" = yes; then
12622 # Depending upon the size, compute the lo and hi bounds.
12623 cat >conftest.
$ac_ext <<_ACEOF
12626 cat confdefs.h
>>conftest.
$ac_ext
12627 cat >>conftest.
$ac_ext <<_ACEOF
12628 /* end confdefs.h. */
12629 $ac_includes_default
12630 typedef uintptr_t ac__type_sizeof_;
12634 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12641 rm -f conftest.
$ac_objext
12642 if { (ac_try
="$ac_compile"
12643 case "(($ac_try" in
12644 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12645 *) ac_try_echo=$ac_try;;
12647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12648 (eval "$ac_compile") 2>conftest.er1
12650 grep -v '^ *+' conftest.er1 >conftest.err
12652 cat conftest.err >&5
12653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654 (exit $ac_status); } && {
12655 test -z "$ac_c_werror_flag" ||
12656 test ! -s conftest.err
12657 } && test -s conftest.$ac_objext; then
12660 cat >conftest.$ac_ext <<_ACEOF
12663 cat confdefs.h >>conftest.$ac_ext
12664 cat >>conftest.$ac_ext <<_ACEOF
12665 /* end confdefs.h. */
12666 $ac_includes_default
12667 typedef uintptr_t ac__type_sizeof_;
12671 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12678 rm -f conftest.$ac_objext
12679 if { (ac_try="$ac_compile"
12680 case "(($ac_try" in
12681 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12682 *) ac_try_echo
=$ac_try;;
12684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12685 (eval "$ac_compile") 2>conftest.er1
12687 grep -v '^ *+' conftest.er1
>conftest.err
12689 cat conftest.err
>&5
12690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691 (exit $ac_status); } && {
12692 test -z "$ac_c_werror_flag" ||
12693 test ! -s conftest.err
12694 } && test -s conftest.
$ac_objext; then
12695 ac_hi
=$ac_mid; break
12697 echo "$as_me: failed program was:" >&5
12698 sed 's/^/| /' conftest.
$ac_ext >&5
12700 ac_lo
=`expr $ac_mid + 1`
12701 if test $ac_lo -le $ac_mid; then
12705 ac_mid
=`expr 2 '*' $ac_mid + 1`
12708 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12711 echo "$as_me: failed program was:" >&5
12712 sed 's/^/| /' conftest.
$ac_ext >&5
12714 cat >conftest.
$ac_ext <<_ACEOF
12717 cat confdefs.h
>>conftest.
$ac_ext
12718 cat >>conftest.
$ac_ext <<_ACEOF
12719 /* end confdefs.h. */
12720 $ac_includes_default
12721 typedef uintptr_t ac__type_sizeof_;
12725 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12732 rm -f conftest.
$ac_objext
12733 if { (ac_try
="$ac_compile"
12734 case "(($ac_try" in
12735 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12736 *) ac_try_echo=$ac_try;;
12738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12739 (eval "$ac_compile") 2>conftest.er1
12741 grep -v '^ *+' conftest.er1 >conftest.err
12743 cat conftest.err >&5
12744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745 (exit $ac_status); } && {
12746 test -z "$ac_c_werror_flag" ||
12747 test ! -s conftest.err
12748 } && test -s conftest.$ac_objext; then
12751 cat >conftest.$ac_ext <<_ACEOF
12754 cat confdefs.h >>conftest.$ac_ext
12755 cat >>conftest.$ac_ext <<_ACEOF
12756 /* end confdefs.h. */
12757 $ac_includes_default
12758 typedef uintptr_t ac__type_sizeof_;
12762 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12769 rm -f conftest.$ac_objext
12770 if { (ac_try="$ac_compile"
12771 case "(($ac_try" in
12772 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12773 *) ac_try_echo
=$ac_try;;
12775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12776 (eval "$ac_compile") 2>conftest.er1
12778 grep -v '^ *+' conftest.er1
>conftest.err
12780 cat conftest.err
>&5
12781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782 (exit $ac_status); } && {
12783 test -z "$ac_c_werror_flag" ||
12784 test ! -s conftest.err
12785 } && test -s conftest.
$ac_objext; then
12786 ac_lo
=$ac_mid; break
12788 echo "$as_me: failed program was:" >&5
12789 sed 's/^/| /' conftest.
$ac_ext >&5
12791 ac_hi
=`expr '(' $ac_mid ')' - 1`
12792 if test $ac_mid -le $ac_hi; then
12796 ac_mid
=`expr 2 '*' $ac_mid`
12799 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12802 echo "$as_me: failed program was:" >&5
12803 sed 's/^/| /' conftest.
$ac_ext >&5
12808 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12811 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12812 # Binary search between lo and hi bounds.
12813 while test "x$ac_lo" != "x$ac_hi"; do
12814 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12815 cat >conftest.
$ac_ext <<_ACEOF
12818 cat confdefs.h
>>conftest.
$ac_ext
12819 cat >>conftest.
$ac_ext <<_ACEOF
12820 /* end confdefs.h. */
12821 $ac_includes_default
12822 typedef uintptr_t ac__type_sizeof_;
12826 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12833 rm -f conftest.
$ac_objext
12834 if { (ac_try
="$ac_compile"
12835 case "(($ac_try" in
12836 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12837 *) ac_try_echo=$ac_try;;
12839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12840 (eval "$ac_compile") 2>conftest.er1
12842 grep -v '^ *+' conftest.er1 >conftest.err
12844 cat conftest.err >&5
12845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846 (exit $ac_status); } && {
12847 test -z "$ac_c_werror_flag" ||
12848 test ! -s conftest.err
12849 } && test -s conftest.$ac_objext; then
12852 echo "$as_me: failed program was:" >&5
12853 sed 's/^/| /' conftest.$ac_ext >&5
12855 ac_lo=`expr '(' $ac_mid ')' + 1`
12858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12861 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
12862 '') if test "$ac_cv_type_uintptr_t" = yes; then
12863 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
12864 See \`config.log
' for more details." >&5
12865 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12866 See \`config.log' for more details.
" >&2;}
12867 { (exit 77); exit 77; }; }
12869 ac_cv_sizeof_uintptr_t=0
12873 cat >conftest.$ac_ext <<_ACEOF
12876 cat confdefs.h >>conftest.$ac_ext
12877 cat >>conftest.$ac_ext <<_ACEOF
12878 /* end confdefs.h. */
12879 $ac_includes_default
12880 typedef uintptr_t ac__type_sizeof_;
12881 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12882 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12884 #include <stdlib.h>
12889 FILE *f = fopen ("conftest.val
", "w
");
12892 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12894 long int i = longval ();
12895 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12897 fprintf (f, "%ld
\n", i);
12901 unsigned long int i = ulongval ();
12902 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12904 fprintf (f, "%lu
\n", i);
12906 return ferror (f) || fclose (f) != 0;
12912 rm -f conftest$ac_exeext
12913 if { (ac_try="$ac_link"
12914 case "(($ac_try" in
12915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12916 *) ac_try_echo=$ac_try;;
12918 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12919 (eval "$ac_link") 2>&5
12921 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12922 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12923 { (case "(($ac_try" in
12924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12925 *) ac_try_echo=$ac_try;;
12927 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12928 (eval "$ac_try") 2>&5
12930 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12931 (exit $ac_status); }; }; then
12932 ac_cv_sizeof_uintptr_t=`cat conftest.val`
12934 echo "$as_me: program exited with status
$ac_status" >&5
12935 echo "$as_me: failed program was
:" >&5
12936 sed 's/^/| /' conftest.$ac_ext >&5
12938 ( exit $ac_status )
12939 if test "$ac_cv_type_uintptr_t" = yes; then
12940 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(uintptr_t
)
12941 See \
`config.log' for more details." >&5
12942 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12943 See \`config.log
' for more details." >&2;}
12944 { (exit 77); exit 77; }; }
12946 ac_cv_sizeof_uintptr_t=0
12949 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12953 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
12954 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; }
12958 cat >>confdefs.h <<_ACEOF
12959 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
12967 # Hmph. AC_CHECK_SIZEOF() doesn't include
<sys
/types.h
>.
12968 { echo "$as_me:$LINENO: checking size of off_t" >&5
12969 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
12970 if test "${ac_cv_sizeof_off_t+set}" = set; then
12971 echo $ECHO_N "(cached) $ECHO_C" >&6
12973 if test "$cross_compiling" = yes; then
12974 ac_cv_sizeof_off_t
=4
12976 cat >conftest.
$ac_ext <<_ACEOF
12979 cat confdefs.h
>>conftest.
$ac_ext
12980 cat >>conftest.
$ac_ext <<_ACEOF
12981 /* end confdefs.h. */
12983 #include <sys/types.h>
12986 FILE *f=fopen("conftestval", "w");
12988 fprintf(f, "%d\n", sizeof(off_t));
12992 rm -f conftest
$ac_exeext
12993 if { (ac_try
="$ac_link"
12994 case "(($ac_try" in
12995 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12996 *) ac_try_echo=$ac_try;;
12998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12999 (eval "$ac_link") 2>&5
13001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13002 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13003 { (case "(($ac_try" in
13004 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13005 *) ac_try_echo
=$ac_try;;
13007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13008 (eval "$ac_try") 2>&5
13010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13011 (exit $ac_status); }; }; then
13012 ac_cv_sizeof_off_t
=`cat conftestval`
13014 echo "$as_me: program exited with status $ac_status" >&5
13015 echo "$as_me: failed program was:" >&5
13016 sed 's/^/| /' conftest.
$ac_ext >&5
13018 ( exit $ac_status )
13019 ac_cv_sizeof_off_t
=0
13021 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13028 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
13029 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
13031 cat >>confdefs.h
<<_ACEOF
13032 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
13036 { echo "$as_me:$LINENO: checking whether to enable large file support" >&5
13037 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; }
13038 if test "$have_long_long" = yes -a \
13039 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
13040 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
13042 cat >>confdefs.h
<<\_ACEOF
13043 #define HAVE_LARGEFILE_SUPPORT 1
13046 { echo "$as_me:$LINENO: result: yes" >&5
13047 echo "${ECHO_T}yes" >&6; }
13049 { echo "$as_me:$LINENO: result: no" >&5
13050 echo "${ECHO_T}no" >&6; }
13053 # AC_CHECK_SIZEOF() doesn't include <time.h>.
13054 { echo "$as_me:$LINENO: checking size of time_t" >&5
13055 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
13056 if test "${ac_cv_sizeof_time_t+set}" = set; then
13057 echo $ECHO_N "(cached) $ECHO_C" >&6
13059 if test "$cross_compiling" = yes; then
13060 ac_cv_sizeof_time_t
=4
13062 cat >conftest.
$ac_ext <<_ACEOF
13065 cat confdefs.h
>>conftest.
$ac_ext
13066 cat >>conftest.
$ac_ext <<_ACEOF
13067 /* end confdefs.h. */
13072 FILE *f=fopen("conftestval", "w");
13074 fprintf(f, "%d\n", sizeof(time_t));
13078 rm -f conftest
$ac_exeext
13079 if { (ac_try
="$ac_link"
13080 case "(($ac_try" in
13081 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13082 *) ac_try_echo=$ac_try;;
13084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13085 (eval "$ac_link") 2>&5
13087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13089 { (case "(($ac_try" in
13090 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13091 *) ac_try_echo
=$ac_try;;
13093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13094 (eval "$ac_try") 2>&5
13096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13097 (exit $ac_status); }; }; then
13098 ac_cv_sizeof_time_t
=`cat conftestval`
13100 echo "$as_me: program exited with status $ac_status" >&5
13101 echo "$as_me: failed program was:" >&5
13102 sed 's/^/| /' conftest.
$ac_ext >&5
13104 ( exit $ac_status )
13105 ac_cv_sizeof_time_t
=0
13107 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13114 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
13115 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
13117 cat >>confdefs.h
<<_ACEOF
13118 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
13123 # if have pthread_t then define SIZEOF_PTHREAD_T
13125 if test "$ac_cv_kpthread" = "yes"
13126 then CC
="$CC -Kpthread"
13127 elif test "$ac_cv_kthread" = "yes"
13128 then CC
="$CC -Kthread"
13129 elif test "$ac_cv_pthread" = "yes"
13130 then CC
="$CC -pthread"
13132 { echo "$as_me:$LINENO: checking for pthread_t" >&5
13133 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
13135 cat >conftest.
$ac_ext <<_ACEOF
13138 cat confdefs.h
>>conftest.
$ac_ext
13139 cat >>conftest.
$ac_ext <<_ACEOF
13140 /* end confdefs.h. */
13141 #include <pthread.h>
13145 pthread_t x; x = *(pthread_t*)0;
13150 rm -f conftest.
$ac_objext
13151 if { (ac_try
="$ac_compile"
13152 case "(($ac_try" in
13153 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13154 *) ac_try_echo=$ac_try;;
13156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13157 (eval "$ac_compile") 2>conftest.er1
13159 grep -v '^ *+' conftest.er1 >conftest.err
13161 cat conftest.err >&5
13162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163 (exit $ac_status); } && {
13164 test -z "$ac_c_werror_flag" ||
13165 test ! -s conftest.err
13166 } && test -s conftest.$ac_objext; then
13169 echo "$as_me: failed program was:" >&5
13170 sed 's/^/| /' conftest.$ac_ext >&5
13175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13176 { echo "$as_me:$LINENO: result: $have_pthread_t" >&5
13177 echo "${ECHO_T}$have_pthread_t" >&6; }
13178 if test "$have_pthread_t" = yes ; then
13179 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
13180 { echo "$as_me:$LINENO: checking size of pthread_t" >&5
13181 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; }
13182 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
13183 echo $ECHO_N "(cached) $ECHO_C" >&6
13185 if test "$cross_compiling" = yes; then
13186 ac_cv_sizeof_pthread_t=4
13188 cat >conftest.$ac_ext <<_ACEOF
13191 cat confdefs.h >>conftest.$ac_ext
13192 cat >>conftest.$ac_ext <<_ACEOF
13193 /* end confdefs.h. */
13195 #include <pthread.h>
13198 FILE *f=fopen("conftestval", "w");
13200 fprintf(f, "%d\n", sizeof(pthread_t));
13204 rm -f conftest$ac_exeext
13205 if { (ac_try="$ac_link"
13206 case "(($ac_try" in
13207 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13208 *) ac_try_echo
=$ac_try;;
13210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13211 (eval "$ac_link") 2>&5
13213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13214 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13215 { (case "(($ac_try" in
13216 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13217 *) ac_try_echo=$ac_try;;
13219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13220 (eval "$ac_try") 2>&5
13222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223 (exit $ac_status); }; }; then
13224 ac_cv_sizeof_pthread_t=`cat conftestval
`
13226 echo "$as_me: program exited with status $ac_status" >&5
13227 echo "$as_me: failed program was:" >&5
13228 sed 's/^/| /' conftest.$ac_ext >&5
13230 ( exit $ac_status )
13231 ac_cv_sizeof_pthread_t=0
13233 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13240 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
13241 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; }
13243 cat >>confdefs.h <<_ACEOF
13244 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
13250 { echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
13251 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6; }
13252 # Check whether --enable-toolbox-glue was given.
13253 if test "${enable_toolbox_glue+set}" = set; then
13254 enableval=$enable_toolbox_glue;
13258 if test -z "$enable_toolbox_glue"
13260 case $ac_sys_system/$ac_sys_release in
13262 enable_toolbox_glue="yes";;
13264 enable_toolbox_glue="no";;
13267 case "$enable_toolbox_glue" in
13269 extra_machdep_objs="Python/mactoolboxglue.o"
13270 extra_undefs="-u _PyMac_Error"
13272 cat >>confdefs.h <<\_ACEOF
13273 #define USE_TOOLBOX_OBJECT_GLUE 1
13278 extra_machdep_objs=""
13282 { echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
13283 echo "${ECHO_T}$enable_toolbox_glue" >&6; }
13287 case $ac_sys_system/$ac_sys_release in
13288 Darwin/[01567]\..*)
13289 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
13292 OTHER_LIBTOOL_OPT=""
13297 case $ac_sys_system/$ac_sys_release in
13298 Darwin/[01567]\..*)
13299 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
13300 if test "${enable_universalsdk}"; then
13303 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch
`"
13305 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13306 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
13308 gcc_version=`gcc
-v 2>&1 |
grep version | cut
-d\
-f3`
13309 if test ${gcc_version} '<' 4.0
13311 LIBTOOL_CRUFT="-lcc_dynamic"
13315 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch
`"
13316 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13317 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
13320 { echo "$as_me:$LINENO: checking for --enable-framework" >&5
13321 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; }
13322 if test "$enable_framework"
13324 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
13325 # -F. is needed to allow linking to the framework while
13326 # in the build location.
13328 cat >>confdefs.h <<\_ACEOF
13329 #define WITH_NEXT_FRAMEWORK 1
13332 { echo "$as_me:$LINENO: result: yes" >&5
13333 echo "${ECHO_T}yes" >&6; }
13335 { echo "$as_me:$LINENO: result: no" >&5
13336 echo "${ECHO_T}no" >&6; }
13339 { echo "$as_me:$LINENO: checking for dyld" >&5
13340 echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
13341 case $ac_sys_system/$ac_sys_release in
13344 cat >>confdefs.h <<\_ACEOF
13345 #define WITH_DYLD 1
13348 { echo "$as_me:$LINENO: result: always on for Darwin" >&5
13349 echo "${ECHO_T}always on for Darwin" >&6; }
13352 { echo "$as_me:$LINENO: result: no" >&5
13353 echo "${ECHO_T}no" >&6; }
13357 # Set info about shared libraries.
13363 # SO is the extension of shared libraries `(including the dot
!)
13364 # -- usually .so, .sl on HP-UX, .dll on Cygwin
13365 { echo "$as_me:$LINENO: checking SO" >&5
13366 echo $ECHO_N "checking SO... $ECHO_C" >&6; }
13369 case $ac_sys_system in
13380 # this might also be a termcap variable, see #610332
13382 echo '====================================================================='
13384 echo '+ WARNING: You have set SO in your environment. +'
13385 echo '+ Do you really mean to change the extension for shared libraries? +'
13386 echo '+ Continuing in 10 seconds to let you to ponder. +'
13388 echo '====================================================================='
13391 { echo "$as_me:$LINENO: result: $SO" >&5
13392 echo "${ECHO_T}$SO" >&6; }
13395 cat >>confdefs.h
<<_ACEOF
13396 #define SHLIB_EXT "$SO"
13399 # LDSHARED is the ld *command* used to create shared library
13400 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
13401 # (Shared libraries in this instance are shared modules to be loaded into
13402 # Python, as opposed to building Python itself as a shared library.)
13403 { echo "$as_me:$LINENO: checking LDSHARED" >&5
13404 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
13405 if test -z "$LDSHARED"
13407 case $ac_sys_system/$ac_sys_release in
13409 BLDSHARED
="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
13410 LDSHARED
="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
13413 BLDSHARED
="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
13414 LDSHARED
="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
13416 IRIX
/5*) LDSHARED
="ld -shared";;
13417 IRIX
*/6*) LDSHARED
="ld ${SGI_ABI} -shared -all";;
13419 if test "$GCC" = "yes"
13420 then LDSHARED
='$(CC) -shared'
13421 else LDSHARED
='$(CC) -G';
13424 if test "$GCC" = "yes"
13425 then LDSHARED
='$(CC) -shared'
13426 else LDSHARED
='ld -b';
13428 OSF
*) LDSHARED
="ld -shared -expect_unresolved \"*\"";;
13430 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
13431 if test "$enable_framework" ; then
13432 # Link against the framework. All externals should be defined.
13433 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13434 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13436 # No framework. Ignore undefined symbols, assuming they come from Python
13437 LDSHARED
="$LDSHARED -undefined suppress"
13439 Darwin
/1.4*|Darwin
/5.
*|Darwin
/6.
*)
13440 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
13441 if test "$enable_framework" ; then
13442 # Link against the framework. All externals should be defined.
13443 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13444 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13446 # No framework, use the Python app as bundle-loader
13447 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13448 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13451 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
13452 # This allows an extension to be used in any Python
13454 if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2
13456 if test "${enable_universalsdk}"; then
13457 LDFLAGS
="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
13459 LDSHARED
='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
13460 BLDSHARED
="$LDSHARED"
13462 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
13463 if test "$enable_framework" ; then
13464 # Link against the framework. All externals should be defined.
13465 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13466 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13468 # No framework, use the Python app as bundle-loader
13469 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13470 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13474 Linux
*|GNU
*|QNX
*) LDSHARED
='$(CC) -shared';;
13475 BSD
/OS
*/4*) LDSHARED
="gcc -shared";;
13477 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13479 LDSHARED
="$CC -shared ${LDFLAGS}"
13481 LDSHARED
="ld -Bshareable ${LDFLAGS}"
13484 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13486 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13489 [01].
* |
2.
[0-7] |
2.
[0-7].
*)
13490 LDSHARED
="ld -Bshareable ${LDFLAGS}"
13493 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13497 NetBSD
*|DragonFly
*) LDSHARED
="cc -shared ${LDFLAGS}";;
13498 OpenUNIX
*|UnixWare
*)
13499 if test "$GCC" = "yes"
13500 then LDSHARED
='$(CC) -shared'
13501 else LDSHARED
='$(CC) -G'
13503 SCO_SV
*) LDSHARED
='$(CC) -Wl,-G,-Bexport';;
13504 Monterey
*) LDSHARED
="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
13505 CYGWIN
*) LDSHARED
="gcc -shared -Wl,--enable-auto-image-base";;
13506 atheos
*) LDSHARED
="gcc -shared";;
13510 { echo "$as_me:$LINENO: result: $LDSHARED" >&5
13511 echo "${ECHO_T}$LDSHARED" >&6; }
13512 BLDSHARED
=${BLDSHARED-$LDSHARED}
13513 # CCSHARED are the C *flags* used to create objects to go into a shared
13514 # library (module) -- this is only needed for a few systems
13515 { echo "$as_me:$LINENO: checking CCSHARED" >&5
13516 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
13517 if test -z "$CCSHARED"
13519 case $ac_sys_system/$ac_sys_release in
13520 SunOS
*) if test "$GCC" = yes;
13521 then CCSHARED
="-fPIC";
13522 elif test `uname -p` = sparc
;
13523 then CCSHARED
="-xcode=pic32";
13524 else CCSHARED
="-Kpic";
13526 hp
*|HP
*) if test "$GCC" = yes;
13527 then CCSHARED
="-fPIC";
13528 else CCSHARED
="+z";
13530 Linux
*|GNU
*) CCSHARED
="-fPIC";;
13531 BSD
/OS
*/4*) CCSHARED
="-fpic";;
13532 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*) CCSHARED
="-fPIC";;
13533 OpenUNIX
*|UnixWare
*)
13534 if test "$GCC" = "yes"
13535 then CCSHARED
="-fPIC"
13536 else CCSHARED
="-KPIC"
13539 if test "$GCC" = "yes"
13540 then CCSHARED
="-fPIC"
13541 else CCSHARED
="-Kpic -belf"
13543 Monterey
*) CCSHARED
="-G";;
13544 IRIX
*/6*) case $CC in
13545 *gcc
*) CCSHARED
="-shared";;
13548 atheos
*) CCSHARED
="-fPIC";;
13551 { echo "$as_me:$LINENO: result: $CCSHARED" >&5
13552 echo "${ECHO_T}$CCSHARED" >&6; }
13553 # LINKFORSHARED are the flags passed to the $(CC) command that links
13554 # the python executable -- this is only needed for a few systems
13555 { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
13556 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
13557 if test -z "$LINKFORSHARED"
13559 case $ac_sys_system/$ac_sys_release in
13560 AIX
*) LINKFORSHARED
='-Wl,-bE:Modules/python.exp -lld';;
13562 LINKFORSHARED
="-Wl,-E -Wl,+s";;
13563 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
13564 BSD
/OS
/4*) LINKFORSHARED
="-Xlinker -export-dynamic";;
13565 Linux
*|GNU
*) LINKFORSHARED
="-Xlinker -export-dynamic";;
13566 # -u libsys_s pulls in all symbols in libsys
13568 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
13570 # not used by the core itself but which needs to be in the core so
13571 # that dynamically loaded extension modules have access to it.
13572 # -prebind is no longer used, because it actually seems to give a
13573 # slowdown in stead of a speedup, maybe due to the large number of
13574 # dynamic loads Python does.
13576 LINKFORSHARED
="$extra_undefs"
13577 if test "$enable_framework"
13579 LINKFORSHARED
="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13581 LINKFORSHARED
="$LINKFORSHARED";;
13582 OpenUNIX
*|UnixWare
*) LINKFORSHARED
="-Wl,-Bexport";;
13583 SCO_SV
*) LINKFORSHARED
="-Wl,-Bexport";;
13584 ReliantUNIX
*) LINKFORSHARED
="-W1 -Blargedynsym";;
13585 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*)
13586 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13588 LINKFORSHARED
="-Wl,--export-dynamic"
13590 SunOS
/5*) case $CC in
13592 if $CC -Xlinker --help 2>&1 |
grep export-dynamic
>/dev
/null
13594 LINKFORSHARED
="-Xlinker --export-dynamic"
13598 if test $enable_shared = "no"
13600 LINKFORSHARED
='-Wl,--out-implib=$(LDLIBRARY)'
13603 # -Wl,-E causes the symbols to be added to the dynamic
13604 # symbol table so that they can be found when a module
13605 # is loaded. -N 2048K causes the stack size to be set
13606 # to 2048 kilobytes so that the stack doesn't overflow
13607 # when running test_compile.py.
13608 LINKFORSHARED
='-Wl,-E -N 2048K';;
13611 { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
13612 echo "${ECHO_T}$LINKFORSHARED" >&6; }
13616 { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
13617 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
13618 if test ! "$LIBRARY" = "$LDLIBRARY"
13620 case $ac_sys_system in
13622 # Cygwin needs CCSHARED when building extension DLLs
13623 # but not when building the interpreter DLL.
13624 CFLAGSFORSHARED
='';;
13626 CFLAGSFORSHARED
='$(CCSHARED)'
13629 { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
13630 echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
13632 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
13633 # library (with --enable-shared).
13634 # For platforms on which shared libraries are not allowed to have unresolved
13635 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
13636 # if it is not required, since it creates a dependency of the shared library
13637 # to LIBS. This, in turn, means that applications linking the shared libpython
13638 # don't need to link LIBS explicitly. The default should be only changed
13639 # on systems where this approach causes problems.
13641 { echo "$as_me:$LINENO: checking SHLIBS" >&5
13642 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
13643 case "$ac_sys_system" in
13647 { echo "$as_me:$LINENO: result: $SHLIBS" >&5
13648 echo "${ECHO_T}$SHLIBS" >&6; }
13651 # checks for libraries
13653 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13654 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13655 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13656 echo $ECHO_N "(cached) $ECHO_C" >&6
13658 ac_check_lib_save_LIBS
=$LIBS
13660 cat >conftest.
$ac_ext <<_ACEOF
13663 cat confdefs.h
>>conftest.
$ac_ext
13664 cat >>conftest.
$ac_ext <<_ACEOF
13665 /* end confdefs.h. */
13667 /* Override any GCC internal prototype to avoid an error.
13668 Use char because int might match the return type of a GCC
13669 builtin and then its argument prototype would still apply. */
13682 rm -f conftest.
$ac_objext conftest
$ac_exeext
13683 if { (ac_try
="$ac_link"
13684 case "(($ac_try" in
13685 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13686 *) ac_try_echo=$ac_try;;
13688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13689 (eval "$ac_link") 2>conftest.er1
13691 grep -v '^ *+' conftest.er1 >conftest.err
13693 cat conftest.err >&5
13694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13695 (exit $ac_status); } && {
13696 test -z "$ac_c_werror_flag" ||
13697 test ! -s conftest.err
13698 } && test -s conftest$ac_exeext &&
13699 $as_test_x conftest$ac_exeext; then
13700 ac_cv_lib_dl_dlopen=yes
13702 echo "$as_me: failed program was:" >&5
13703 sed 's/^/| /' conftest.$ac_ext >&5
13705 ac_cv_lib_dl_dlopen=no
13708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13709 conftest$ac_exeext conftest.$ac_ext
13710 LIBS=$ac_check_lib_save_LIBS
13712 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13713 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13714 if test $ac_cv_lib_dl_dlopen = yes; then
13715 cat >>confdefs.h <<_ACEOF
13716 #define HAVE_LIBDL 1
13722 # Dynamic linking for SunOS/Solaris and SYSV
13724 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13725 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
13726 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13727 echo $ECHO_N "(cached) $ECHO_C" >&6
13729 ac_check_lib_save_LIBS=$LIBS
13731 cat >conftest.$ac_ext <<_ACEOF
13734 cat confdefs.h >>conftest.$ac_ext
13735 cat >>conftest.$ac_ext <<_ACEOF
13736 /* end confdefs.h. */
13738 /* Override any GCC internal prototype to avoid an error.
13739 Use char because int might match the return type of a GCC
13740 builtin and then its argument prototype would still apply. */
13748 return shl_load ();
13753 rm -f conftest.$ac_objext conftest$ac_exeext
13754 if { (ac_try="$ac_link"
13755 case "(($ac_try" in
13756 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13757 *) ac_try_echo
=$ac_try;;
13759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13760 (eval "$ac_link") 2>conftest.er1
13762 grep -v '^ *+' conftest.er1
>conftest.err
13764 cat conftest.err
>&5
13765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766 (exit $ac_status); } && {
13767 test -z "$ac_c_werror_flag" ||
13768 test ! -s conftest.err
13769 } && test -s conftest
$ac_exeext &&
13770 $as_test_x conftest
$ac_exeext; then
13771 ac_cv_lib_dld_shl_load
=yes
13773 echo "$as_me: failed program was:" >&5
13774 sed 's/^/| /' conftest.
$ac_ext >&5
13776 ac_cv_lib_dld_shl_load
=no
13779 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13780 conftest
$ac_exeext conftest.
$ac_ext
13781 LIBS
=$ac_check_lib_save_LIBS
13783 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13784 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
13785 if test $ac_cv_lib_dld_shl_load = yes; then
13786 cat >>confdefs.h
<<_ACEOF
13787 #define HAVE_LIBDLD 1
13793 # Dynamic linking for HP-UX
13795 # only check for sem_init if thread support is requested
13796 if test "$with_threads" = "yes" -o -z "$with_threads"; then
13797 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
13798 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
13799 if test "${ac_cv_search_sem_init+set}" = set; then
13800 echo $ECHO_N "(cached) $ECHO_C" >&6
13802 ac_func_search_save_LIBS
=$LIBS
13803 cat >conftest.
$ac_ext <<_ACEOF
13806 cat confdefs.h
>>conftest.
$ac_ext
13807 cat >>conftest.
$ac_ext <<_ACEOF
13808 /* end confdefs.h. */
13810 /* Override any GCC internal prototype to avoid an error.
13811 Use char because int might match the return type of a GCC
13812 builtin and then its argument prototype would still apply. */
13820 return sem_init ();
13825 for ac_lib
in '' pthread rt posix4
; do
13826 if test -z "$ac_lib"; then
13827 ac_res
="none required"
13830 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13832 rm -f conftest.
$ac_objext conftest
$ac_exeext
13833 if { (ac_try
="$ac_link"
13834 case "(($ac_try" in
13835 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13836 *) ac_try_echo=$ac_try;;
13838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13839 (eval "$ac_link") 2>conftest.er1
13841 grep -v '^ *+' conftest.er1 >conftest.err
13843 cat conftest.err >&5
13844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13845 (exit $ac_status); } && {
13846 test -z "$ac_c_werror_flag" ||
13847 test ! -s conftest.err
13848 } && test -s conftest$ac_exeext &&
13849 $as_test_x conftest$ac_exeext; then
13850 ac_cv_search_sem_init=$ac_res
13852 echo "$as_me: failed program was:" >&5
13853 sed 's/^/| /' conftest.$ac_ext >&5
13858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13860 if test "${ac_cv_search_sem_init+set}" = set; then
13864 if test "${ac_cv_search_sem_init+set}" = set; then
13867 ac_cv_search_sem_init=no
13869 rm conftest.$ac_ext
13870 LIBS=$ac_func_search_save_LIBS
13872 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
13873 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
13874 ac_res=$ac_cv_search_sem_init
13875 if test "$ac_res" != no; then
13876 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13879 # 'Real Time' functions on Solaris
13880 # posix4 on Solaris 2.6
13881 # pthread (first!) on Linux
13884 # check if we need libintl for locale functions
13885 { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
13886 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
13887 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
13888 echo $ECHO_N "(cached) $ECHO_C" >&6
13890 ac_check_lib_save_LIBS=$LIBS
13891 LIBS="-lintl $LIBS"
13892 cat >conftest.$ac_ext <<_ACEOF
13895 cat confdefs.h >>conftest.$ac_ext
13896 cat >>conftest.$ac_ext <<_ACEOF
13897 /* end confdefs.h. */
13899 /* Override any GCC internal prototype to avoid an error.
13900 Use char because int might match the return type of a GCC
13901 builtin and then its argument prototype would still apply. */
13905 char textdomain ();
13909 return textdomain ();
13914 rm -f conftest.$ac_objext conftest$ac_exeext
13915 if { (ac_try="$ac_link"
13916 case "(($ac_try" in
13917 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13918 *) ac_try_echo
=$ac_try;;
13920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13921 (eval "$ac_link") 2>conftest.er1
13923 grep -v '^ *+' conftest.er1
>conftest.err
13925 cat conftest.err
>&5
13926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927 (exit $ac_status); } && {
13928 test -z "$ac_c_werror_flag" ||
13929 test ! -s conftest.err
13930 } && test -s conftest
$ac_exeext &&
13931 $as_test_x conftest
$ac_exeext; then
13932 ac_cv_lib_intl_textdomain
=yes
13934 echo "$as_me: failed program was:" >&5
13935 sed 's/^/| /' conftest.
$ac_ext >&5
13937 ac_cv_lib_intl_textdomain
=no
13940 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13941 conftest
$ac_exeext conftest.
$ac_ext
13942 LIBS
=$ac_check_lib_save_LIBS
13944 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
13945 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
13946 if test $ac_cv_lib_intl_textdomain = yes; then
13948 cat >>confdefs.h
<<\_ACEOF
13949 #define WITH_LIBINTL 1
13955 # checks for system dependent C++ extensions support
13956 case "$ac_sys_system" in
13957 AIX
*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
13958 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
13959 cat >conftest.
$ac_ext <<_ACEOF
13962 cat confdefs.h
>>conftest.
$ac_ext
13963 cat >>conftest.
$ac_ext <<_ACEOF
13964 /* end confdefs.h. */
13965 #include "/usr/lpp/xlC/include/load.h"
13969 loadAndInit("", 0, "")
13974 rm -f conftest.
$ac_objext conftest
$ac_exeext
13975 if { (ac_try
="$ac_link"
13976 case "(($ac_try" in
13977 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13978 *) ac_try_echo=$ac_try;;
13980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13981 (eval "$ac_link") 2>conftest.er1
13983 grep -v '^ *+' conftest.er1 >conftest.err
13985 cat conftest.err >&5
13986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13987 (exit $ac_status); } && {
13988 test -z "$ac_c_werror_flag" ||
13989 test ! -s conftest.err
13990 } && test -s conftest$ac_exeext &&
13991 $as_test_x conftest$ac_exeext; then
13993 cat >>confdefs.h <<\_ACEOF
13994 #define AIX_GENUINE_CPLUSPLUS 1
13997 { echo "$as_me:$LINENO: result: yes" >&5
13998 echo "${ECHO_T}yes" >&6; }
14000 echo "$as_me: failed program was:" >&5
14001 sed 's/^/| /' conftest.$ac_ext >&5
14003 { echo "$as_me:$LINENO: result: no" >&5
14004 echo "${ECHO_T}no" >&6; }
14007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14008 conftest$ac_exeext conftest.$ac_ext;;
14012 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
14013 # BeOS' sockets are stashed in libnet.
14014 { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
14015 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
14016 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
14017 echo $ECHO_N "(cached) $ECHO_C" >&6
14019 ac_check_lib_save_LIBS=$LIBS
14021 cat >conftest.$ac_ext <<_ACEOF
14024 cat confdefs.h >>conftest.$ac_ext
14025 cat >>conftest.$ac_ext <<_ACEOF
14026 /* end confdefs.h. */
14028 /* Override any GCC internal prototype to avoid an error.
14029 Use char because int might match the return type of a GCC
14030 builtin and then its argument prototype would still apply. */
14043 rm -f conftest.$ac_objext conftest$ac_exeext
14044 if { (ac_try="$ac_link"
14045 case "(($ac_try" in
14046 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14047 *) ac_try_echo
=$ac_try;;
14049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14050 (eval "$ac_link") 2>conftest.er1
14052 grep -v '^ *+' conftest.er1
>conftest.err
14054 cat conftest.err
>&5
14055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056 (exit $ac_status); } && {
14057 test -z "$ac_c_werror_flag" ||
14058 test ! -s conftest.err
14059 } && test -s conftest
$ac_exeext &&
14060 $as_test_x conftest
$ac_exeext; then
14061 ac_cv_lib_nsl_t_open
=yes
14063 echo "$as_me: failed program was:" >&5
14064 sed 's/^/| /' conftest.
$ac_ext >&5
14066 ac_cv_lib_nsl_t_open
=no
14069 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14070 conftest
$ac_exeext conftest.
$ac_ext
14071 LIBS
=$ac_check_lib_save_LIBS
14073 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
14074 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
14075 if test $ac_cv_lib_nsl_t_open = yes; then
14079 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14080 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
14081 if test "${ac_cv_lib_socket_socket+set}" = set; then
14082 echo $ECHO_N "(cached) $ECHO_C" >&6
14084 ac_check_lib_save_LIBS
=$LIBS
14085 LIBS
="-lsocket $LIBS $LIBS"
14086 cat >conftest.
$ac_ext <<_ACEOF
14089 cat confdefs.h
>>conftest.
$ac_ext
14090 cat >>conftest.
$ac_ext <<_ACEOF
14091 /* end confdefs.h. */
14093 /* Override any GCC internal prototype to avoid an error.
14094 Use char because int might match the return type of a GCC
14095 builtin and then its argument prototype would still apply. */
14108 rm -f conftest.
$ac_objext conftest
$ac_exeext
14109 if { (ac_try
="$ac_link"
14110 case "(($ac_try" in
14111 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14112 *) ac_try_echo=$ac_try;;
14114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14115 (eval "$ac_link") 2>conftest.er1
14117 grep -v '^ *+' conftest.er1 >conftest.err
14119 cat conftest.err >&5
14120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121 (exit $ac_status); } && {
14122 test -z "$ac_c_werror_flag" ||
14123 test ! -s conftest.err
14124 } && test -s conftest$ac_exeext &&
14125 $as_test_x conftest$ac_exeext; then
14126 ac_cv_lib_socket_socket=yes
14128 echo "$as_me: failed program was:" >&5
14129 sed 's/^/| /' conftest.$ac_ext >&5
14131 ac_cv_lib_socket_socket=no
14134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14135 conftest$ac_exeext conftest.$ac_ext
14136 LIBS=$ac_check_lib_save_LIBS
14138 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
14139 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
14140 if test $ac_cv_lib_socket_socket = yes; then
14141 LIBS="-lsocket $LIBS"
14145 case "$ac_sys_system" in
14147 { echo "$as_me:$LINENO: checking for socket in -lnet" >&5
14148 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6; }
14149 if test "${ac_cv_lib_net_socket+set}" = set; then
14150 echo $ECHO_N "(cached) $ECHO_C" >&6
14152 ac_check_lib_save_LIBS=$LIBS
14153 LIBS="-lnet $LIBS $LIBS"
14154 cat >conftest.$ac_ext <<_ACEOF
14157 cat confdefs.h >>conftest.$ac_ext
14158 cat >>conftest.$ac_ext <<_ACEOF
14159 /* end confdefs.h. */
14161 /* Override any GCC internal prototype to avoid an error.
14162 Use char because int might match the return type of a GCC
14163 builtin and then its argument prototype would still apply. */
14176 rm -f conftest.$ac_objext conftest$ac_exeext
14177 if { (ac_try="$ac_link"
14178 case "(($ac_try" in
14179 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14180 *) ac_try_echo
=$ac_try;;
14182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14183 (eval "$ac_link") 2>conftest.er1
14185 grep -v '^ *+' conftest.er1
>conftest.err
14187 cat conftest.err
>&5
14188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189 (exit $ac_status); } && {
14190 test -z "$ac_c_werror_flag" ||
14191 test ! -s conftest.err
14192 } && test -s conftest
$ac_exeext &&
14193 $as_test_x conftest
$ac_exeext; then
14194 ac_cv_lib_net_socket
=yes
14196 echo "$as_me: failed program was:" >&5
14197 sed 's/^/| /' conftest.
$ac_ext >&5
14199 ac_cv_lib_net_socket
=no
14202 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14203 conftest
$ac_exeext conftest.
$ac_ext
14204 LIBS
=$ac_check_lib_save_LIBS
14206 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
14207 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6; }
14208 if test $ac_cv_lib_net_socket = yes; then
14215 { echo "$as_me:$LINENO: checking for --with-libs" >&5
14216 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
14218 # Check whether --with-libs was given.
14219 if test "${with_libs+set}" = set; then
14220 withval
=$with_libs;
14221 { echo "$as_me:$LINENO: result: $withval" >&5
14222 echo "${ECHO_T}$withval" >&6; }
14223 LIBS
="$withval $LIBS"
14226 { echo "$as_me:$LINENO: result: no" >&5
14227 echo "${ECHO_T}no" >&6; }
14231 # Check for use of the system libffi library
14232 { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
14233 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
14235 # Check whether --with-system_ffi was given.
14236 if test "${with_system_ffi+set}" = set; then
14237 withval
=$with_system_ffi;
14241 { echo "$as_me:$LINENO: result: $with_system_ffi" >&5
14242 echo "${ECHO_T}$with_system_ffi" >&6; }
14244 # Determine if signalmodule should be used.
14247 { echo "$as_me:$LINENO: checking for --with-signal-module" >&5
14248 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; }
14250 # Check whether --with-signal-module was given.
14251 if test "${with_signal_module+set}" = set; then
14252 withval
=$with_signal_module;
14256 if test -z "$with_signal_module"
14257 then with_signal_module
="yes"
14259 { echo "$as_me:$LINENO: result: $with_signal_module" >&5
14260 echo "${ECHO_T}$with_signal_module" >&6; }
14262 if test "${with_signal_module}" = "yes"; then
14263 USE_SIGNAL_MODULE
=""
14266 USE_SIGNAL_MODULE
="#"
14267 SIGNAL_OBJS
="Parser/intrcheck.o Python/sigcheck.o"
14270 # This is used to generate Setup.config
14272 USE_THREAD_MODULE
=""
14274 { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
14275 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; }
14278 # Check whether --with-dec-threads was given.
14279 if test "${with_dec_threads+set}" = set; then
14280 withval
=$with_dec_threads;
14281 { echo "$as_me:$LINENO: result: $withval" >&5
14282 echo "${ECHO_T}$withval" >&6; }
14284 if test "${with_thread+set}" != set; then
14285 with_thread
="$withval";
14288 { echo "$as_me:$LINENO: result: no" >&5
14289 echo "${ECHO_T}no" >&6; }
14293 # Templates for things AC_DEFINEd more than once.
14294 # For a single AC_DEFINE, no template is needed.
14302 { echo "$as_me:$LINENO: checking for --with-threads" >&5
14303 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; }
14305 # Check whether --with-threads was given.
14306 if test "${with_threads+set}" = set; then
14307 withval
=$with_threads;
14311 # --with-thread is deprecated, but check for it anyway
14313 # Check whether --with-thread was given.
14314 if test "${with_thread+set}" = set; then
14315 withval
=$with_thread; with_threads
=$with_thread
14319 if test -z "$with_threads"
14320 then with_threads
="yes"
14322 { echo "$as_me:$LINENO: result: $with_threads" >&5
14323 echo "${ECHO_T}$with_threads" >&6; }
14326 if test "$with_threads" = "no"
14328 USE_THREAD_MODULE
="#"
14329 elif test "$ac_cv_pthread_is_default" = yes
14331 cat >>confdefs.h
<<\_ACEOF
14332 #define WITH_THREAD 1
14335 # Defining _REENTRANT on system with POSIX threads should not hurt.
14336 cat >>confdefs.h
<<\_ACEOF
14337 #define _REENTRANT 1
14341 THREADOBJ
="Python/thread.o"
14342 elif test "$ac_cv_kpthread" = "yes"
14345 if test "$ac_cv_cxx_thread" = "yes"; then
14346 CXX
="$CXX -Kpthread"
14348 cat >>confdefs.h
<<\_ACEOF
14349 #define WITH_THREAD 1
14353 THREADOBJ
="Python/thread.o"
14354 elif test "$ac_cv_kthread" = "yes"
14357 if test "$ac_cv_cxx_thread" = "yes"; then
14358 CXX
="$CXX -Kthread"
14360 cat >>confdefs.h
<<\_ACEOF
14361 #define WITH_THREAD 1
14365 THREADOBJ
="Python/thread.o"
14366 elif test "$ac_cv_pthread" = "yes"
14369 if test "$ac_cv_cxx_thread" = "yes"; then
14370 CXX
="$CXX -pthread"
14372 cat >>confdefs.h
<<\_ACEOF
14373 #define WITH_THREAD 1
14377 THREADOBJ
="Python/thread.o"
14379 if test ! -z "$with_threads" -a -d "$with_threads"
14380 then LDFLAGS
="$LDFLAGS -L$with_threads"
14382 if test ! -z "$withval" -a -d "$withval"
14383 then LDFLAGS
="$LDFLAGS -L$withval"
14386 # According to the POSIX spec, a pthreads implementation must
14387 # define _POSIX_THREADS in unistd.h. Some apparently don't
14388 # (e.g. gnu pth with pthread emulation)
14389 { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
14390 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; }
14391 cat >conftest.
$ac_ext <<_ACEOF
14394 cat confdefs.h
>>conftest.
$ac_ext
14395 cat >>conftest.
$ac_ext <<_ACEOF
14396 /* end confdefs.h. */
14398 #include <unistd.h>
14399 #ifdef _POSIX_THREADS
14404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14405 $EGREP "yes" >/dev
/null
2>&1; then
14406 unistd_defines_pthreads
=yes
14408 unistd_defines_pthreads
=no
14412 { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
14413 echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
14415 cat >>confdefs.h
<<\_ACEOF
14416 #define _REENTRANT 1
14419 if test "${ac_cv_header_cthreads_h+set}" = set; then
14420 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
14421 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
14422 if test "${ac_cv_header_cthreads_h+set}" = set; then
14423 echo $ECHO_N "(cached) $ECHO_C" >&6
14425 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14426 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
14428 # Is the header compilable?
14429 { echo "$as_me:$LINENO: checking cthreads.h usability" >&5
14430 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; }
14431 cat >conftest.
$ac_ext <<_ACEOF
14434 cat confdefs.h
>>conftest.
$ac_ext
14435 cat >>conftest.
$ac_ext <<_ACEOF
14436 /* end confdefs.h. */
14437 $ac_includes_default
14438 #include <cthreads.h>
14440 rm -f conftest.
$ac_objext
14441 if { (ac_try
="$ac_compile"
14442 case "(($ac_try" in
14443 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14444 *) ac_try_echo=$ac_try;;
14446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14447 (eval "$ac_compile") 2>conftest.er1
14449 grep -v '^ *+' conftest.er1 >conftest.err
14451 cat conftest.err >&5
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); } && {
14454 test -z "$ac_c_werror_flag" ||
14455 test ! -s conftest.err
14456 } && test -s conftest.$ac_objext; then
14457 ac_header_compiler=yes
14459 echo "$as_me: failed program was:" >&5
14460 sed 's/^/| /' conftest.$ac_ext >&5
14462 ac_header_compiler=no
14465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14466 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14467 echo "${ECHO_T}$ac_header_compiler" >&6; }
14469 # Is the header present?
14470 { echo "$as_me:$LINENO: checking cthreads.h presence" >&5
14471 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; }
14472 cat >conftest.$ac_ext <<_ACEOF
14475 cat confdefs.h >>conftest.$ac_ext
14476 cat >>conftest.$ac_ext <<_ACEOF
14477 /* end confdefs.h. */
14478 #include <cthreads.h>
14480 if { (ac_try="$ac_cpp conftest.$ac_ext"
14481 case "(($ac_try" in
14482 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14483 *) ac_try_echo
=$ac_try;;
14485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14486 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14488 grep -v '^ *+' conftest.er1
>conftest.err
14490 cat conftest.err
>&5
14491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14492 (exit $ac_status); } >/dev
/null
&& {
14493 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14494 test ! -s conftest.err
14496 ac_header_preproc
=yes
14498 echo "$as_me: failed program was:" >&5
14499 sed 's/^/| /' conftest.
$ac_ext >&5
14501 ac_header_preproc
=no
14504 rm -f conftest.err conftest.
$ac_ext
14505 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14506 echo "${ECHO_T}$ac_header_preproc" >&6; }
14508 # So? What about this header?
14509 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14511 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14512 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14513 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
14514 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
14515 ac_header_preproc
=yes
14518 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
14519 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
14520 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
14521 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
14522 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
14523 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
14524 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14525 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14526 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
14527 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
14528 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
14529 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
14531 ## ------------------------------------------------ ##
14532 ## Report this to http://www.python.org/python-bugs ##
14533 ## ------------------------------------------------ ##
14535 ) |
sed "s/^/$as_me: WARNING: /" >&2
14538 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
14539 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
14540 if test "${ac_cv_header_cthreads_h+set}" = set; then
14541 echo $ECHO_N "(cached) $ECHO_C" >&6
14543 ac_cv_header_cthreads_h
=$ac_header_preproc
14545 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14546 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
14549 if test $ac_cv_header_cthreads_h = yes; then
14550 cat >>confdefs.h
<<\_ACEOF
14551 #define WITH_THREAD 1
14554 cat >>confdefs.h
<<\_ACEOF
14555 #define C_THREADS 1
14559 cat >>confdefs.h
<<\_ACEOF
14560 #define HURD_C_THREADS 1
14563 LIBS
="$LIBS -lthreads"
14564 THREADOBJ
="Python/thread.o"
14567 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14568 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14569 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
14570 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14571 echo $ECHO_N "(cached) $ECHO_C" >&6
14573 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14574 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
14576 # Is the header compilable?
14577 { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
14578 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; }
14579 cat >conftest.
$ac_ext <<_ACEOF
14582 cat confdefs.h
>>conftest.
$ac_ext
14583 cat >>conftest.
$ac_ext <<_ACEOF
14584 /* end confdefs.h. */
14585 $ac_includes_default
14586 #include <mach/cthreads.h>
14588 rm -f conftest.
$ac_objext
14589 if { (ac_try
="$ac_compile"
14590 case "(($ac_try" in
14591 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14592 *) ac_try_echo=$ac_try;;
14594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14595 (eval "$ac_compile") 2>conftest.er1
14597 grep -v '^ *+' conftest.er1 >conftest.err
14599 cat conftest.err >&5
14600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14601 (exit $ac_status); } && {
14602 test -z "$ac_c_werror_flag" ||
14603 test ! -s conftest.err
14604 } && test -s conftest.$ac_objext; then
14605 ac_header_compiler=yes
14607 echo "$as_me: failed program was:" >&5
14608 sed 's/^/| /' conftest.$ac_ext >&5
14610 ac_header_compiler=no
14613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14614 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14615 echo "${ECHO_T}$ac_header_compiler" >&6; }
14617 # Is the header present?
14618 { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
14619 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; }
14620 cat >conftest.$ac_ext <<_ACEOF
14623 cat confdefs.h >>conftest.$ac_ext
14624 cat >>conftest.$ac_ext <<_ACEOF
14625 /* end confdefs.h. */
14626 #include <mach/cthreads.h>
14628 if { (ac_try="$ac_cpp conftest.$ac_ext"
14629 case "(($ac_try" in
14630 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14631 *) ac_try_echo
=$ac_try;;
14633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14634 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14636 grep -v '^ *+' conftest.er1
>conftest.err
14638 cat conftest.err
>&5
14639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14640 (exit $ac_status); } >/dev
/null
&& {
14641 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14642 test ! -s conftest.err
14644 ac_header_preproc
=yes
14646 echo "$as_me: failed program was:" >&5
14647 sed 's/^/| /' conftest.
$ac_ext >&5
14649 ac_header_preproc
=no
14652 rm -f conftest.err conftest.
$ac_ext
14653 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14654 echo "${ECHO_T}$ac_header_preproc" >&6; }
14656 # So? What about this header?
14657 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14659 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14660 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14661 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
14662 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
14663 ac_header_preproc
=yes
14666 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
14667 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
14668 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
14669 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
14670 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
14671 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
14672 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14673 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14674 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
14675 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
14676 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
14677 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
14679 ## ------------------------------------------------ ##
14680 ## Report this to http://www.python.org/python-bugs ##
14681 ## ------------------------------------------------ ##
14683 ) |
sed "s/^/$as_me: WARNING: /" >&2
14686 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14687 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
14688 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14689 echo $ECHO_N "(cached) $ECHO_C" >&6
14691 ac_cv_header_mach_cthreads_h
=$ac_header_preproc
14693 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14694 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
14697 if test $ac_cv_header_mach_cthreads_h = yes; then
14698 cat >>confdefs.h
<<\_ACEOF
14699 #define WITH_THREAD 1
14702 cat >>confdefs.h
<<\_ACEOF
14703 #define C_THREADS 1
14707 cat >>confdefs.h
<<\_ACEOF
14708 #define MACH_C_THREADS 1
14711 THREADOBJ
="Python/thread.o"
14714 { echo "$as_me:$LINENO: checking for --with-pth" >&5
14715 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; }
14717 # Check whether --with-pth was given.
14718 if test "${with_pth+set}" = set; then
14719 withval
=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5
14720 echo "${ECHO_T}$withval" >&6; }
14721 cat >>confdefs.h
<<\_ACEOF
14722 #define WITH_THREAD 1
14726 cat >>confdefs.h
<<\_ACEOF
14731 THREADOBJ
="Python/thread.o"
14733 { echo "$as_me:$LINENO: result: no" >&5
14734 echo "${ECHO_T}no" >&6; }
14736 # Just looking for pthread_create in libpthread is not enough:
14737 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
14738 # So we really have to include pthread.h, and then link.
14740 LIBS
="$LIBS -lpthread"
14741 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
14742 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
14743 cat >conftest.
$ac_ext <<_ACEOF
14746 cat confdefs.h
>>conftest.
$ac_ext
14747 cat >>conftest.
$ac_ext <<_ACEOF
14748 /* end confdefs.h. */
14749 #include <pthread.h>
14751 void * start_routine (void *arg) { exit (0); }
14756 pthread_create (NULL, NULL, start_routine, NULL)
14761 rm -f conftest.
$ac_objext conftest
$ac_exeext
14762 if { (ac_try
="$ac_link"
14763 case "(($ac_try" in
14764 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14765 *) ac_try_echo=$ac_try;;
14767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14768 (eval "$ac_link") 2>conftest.er1
14770 grep -v '^ *+' conftest.er1 >conftest.err
14772 cat conftest.err >&5
14773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774 (exit $ac_status); } && {
14775 test -z "$ac_c_werror_flag" ||
14776 test ! -s conftest.err
14777 } && test -s conftest$ac_exeext &&
14778 $as_test_x conftest$ac_exeext; then
14780 { echo "$as_me:$LINENO: result: yes" >&5
14781 echo "${ECHO_T}yes" >&6; }
14782 cat >>confdefs.h <<\_ACEOF
14783 #define WITH_THREAD 1
14787 THREADOBJ="Python/thread.o"
14789 echo "$as_me: failed program was:" >&5
14790 sed 's/^/| /' conftest.$ac_ext >&5
14794 { echo "$as_me:$LINENO: checking for pthread_detach" >&5
14795 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; }
14796 if test "${ac_cv_func_pthread_detach+set}" = set; then
14797 echo $ECHO_N "(cached) $ECHO_C" >&6
14799 cat >conftest.$ac_ext <<_ACEOF
14802 cat confdefs.h >>conftest.$ac_ext
14803 cat >>conftest.$ac_ext <<_ACEOF
14804 /* end confdefs.h. */
14805 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
14806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14807 #define pthread_detach innocuous_pthread_detach
14809 /* System header to define __stub macros and hopefully few prototypes,
14810 which can conflict with char pthread_detach (); below.
14811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14812 <limits.h> exists even on freestanding compilers. */
14815 # include <limits.h>
14817 # include <assert.h>
14820 #undef pthread_detach
14822 /* Override any GCC internal prototype to avoid an error.
14823 Use char because int might match the return type of a GCC
14824 builtin and then its argument prototype would still apply. */
14828 char pthread_detach ();
14829 /* The GNU C library defines this for functions which it implements
14830 to always fail with ENOSYS. Some functions are actually named
14831 something starting with __ and the normal name is an alias. */
14832 #if defined __stub_pthread_detach || defined __stub___pthread_detach
14839 return pthread_detach ();
14844 rm -f conftest.$ac_objext conftest$ac_exeext
14845 if { (ac_try="$ac_link"
14846 case "(($ac_try" in
14847 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14848 *) ac_try_echo
=$ac_try;;
14850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14851 (eval "$ac_link") 2>conftest.er1
14853 grep -v '^ *+' conftest.er1
>conftest.err
14855 cat conftest.err
>&5
14856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14857 (exit $ac_status); } && {
14858 test -z "$ac_c_werror_flag" ||
14859 test ! -s conftest.err
14860 } && test -s conftest
$ac_exeext &&
14861 $as_test_x conftest
$ac_exeext; then
14862 ac_cv_func_pthread_detach
=yes
14864 echo "$as_me: failed program was:" >&5
14865 sed 's/^/| /' conftest.
$ac_ext >&5
14867 ac_cv_func_pthread_detach
=no
14870 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14871 conftest
$ac_exeext conftest.
$ac_ext
14873 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
14874 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; }
14875 if test $ac_cv_func_pthread_detach = yes; then
14876 cat >>confdefs.h
<<\_ACEOF
14877 #define WITH_THREAD 1
14881 THREADOBJ
="Python/thread.o"
14884 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14885 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
14886 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
14887 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14888 echo $ECHO_N "(cached) $ECHO_C" >&6
14890 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
14891 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
14893 # Is the header compilable?
14894 { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
14895 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; }
14896 cat >conftest.
$ac_ext <<_ACEOF
14899 cat confdefs.h
>>conftest.
$ac_ext
14900 cat >>conftest.
$ac_ext <<_ACEOF
14901 /* end confdefs.h. */
14902 $ac_includes_default
14903 #include <atheos/threads.h>
14905 rm -f conftest.
$ac_objext
14906 if { (ac_try
="$ac_compile"
14907 case "(($ac_try" in
14908 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14909 *) ac_try_echo=$ac_try;;
14911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14912 (eval "$ac_compile") 2>conftest.er1
14914 grep -v '^ *+' conftest.er1 >conftest.err
14916 cat conftest.err >&5
14917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14918 (exit $ac_status); } && {
14919 test -z "$ac_c_werror_flag" ||
14920 test ! -s conftest.err
14921 } && test -s conftest.$ac_objext; then
14922 ac_header_compiler=yes
14924 echo "$as_me: failed program was:" >&5
14925 sed 's/^/| /' conftest.$ac_ext >&5
14927 ac_header_compiler=no
14930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14931 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14932 echo "${ECHO_T}$ac_header_compiler" >&6; }
14934 # Is the header present?
14935 { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
14936 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; }
14937 cat >conftest.$ac_ext <<_ACEOF
14940 cat confdefs.h >>conftest.$ac_ext
14941 cat >>conftest.$ac_ext <<_ACEOF
14942 /* end confdefs.h. */
14943 #include <atheos/threads.h>
14945 if { (ac_try="$ac_cpp conftest.$ac_ext"
14946 case "(($ac_try" in
14947 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14948 *) ac_try_echo
=$ac_try;;
14950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14951 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14953 grep -v '^ *+' conftest.er1
>conftest.err
14955 cat conftest.err
>&5
14956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957 (exit $ac_status); } >/dev
/null
&& {
14958 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14959 test ! -s conftest.err
14961 ac_header_preproc
=yes
14963 echo "$as_me: failed program was:" >&5
14964 sed 's/^/| /' conftest.
$ac_ext >&5
14966 ac_header_preproc
=no
14969 rm -f conftest.err conftest.
$ac_ext
14970 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14971 echo "${ECHO_T}$ac_header_preproc" >&6; }
14973 # So? What about this header?
14974 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14976 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14977 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14978 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
14979 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
14980 ac_header_preproc
=yes
14983 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
14984 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
14985 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
14986 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
14987 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
14988 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
14989 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
14990 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14991 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
14992 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
14993 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
14994 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
14996 ## ------------------------------------------------ ##
14997 ## Report this to http://www.python.org/python-bugs ##
14998 ## ------------------------------------------------ ##
15000 ) |
sed "s/^/$as_me: WARNING: /" >&2
15003 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
15004 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
15005 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
15006 echo $ECHO_N "(cached) $ECHO_C" >&6
15008 ac_cv_header_atheos_threads_h
=$ac_header_preproc
15010 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
15011 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
15014 if test $ac_cv_header_atheos_threads_h = yes; then
15015 cat >>confdefs.h
<<\_ACEOF
15016 #define WITH_THREAD 1
15020 cat >>confdefs.h
<<\_ACEOF
15021 #define ATHEOS_THREADS 1
15024 THREADOBJ
="Python/thread.o"
15027 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
15028 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
15029 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
15030 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
15031 echo $ECHO_N "(cached) $ECHO_C" >&6
15033 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
15034 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
15036 # Is the header compilable?
15037 { echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
15038 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6; }
15039 cat >conftest.
$ac_ext <<_ACEOF
15042 cat confdefs.h
>>conftest.
$ac_ext
15043 cat >>conftest.
$ac_ext <<_ACEOF
15044 /* end confdefs.h. */
15045 $ac_includes_default
15046 #include <kernel/OS.h>
15048 rm -f conftest.
$ac_objext
15049 if { (ac_try
="$ac_compile"
15050 case "(($ac_try" in
15051 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15052 *) ac_try_echo=$ac_try;;
15054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15055 (eval "$ac_compile") 2>conftest.er1
15057 grep -v '^ *+' conftest.er1 >conftest.err
15059 cat conftest.err >&5
15060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061 (exit $ac_status); } && {
15062 test -z "$ac_c_werror_flag" ||
15063 test ! -s conftest.err
15064 } && test -s conftest.$ac_objext; then
15065 ac_header_compiler=yes
15067 echo "$as_me: failed program was:" >&5
15068 sed 's/^/| /' conftest.$ac_ext >&5
15070 ac_header_compiler=no
15073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15074 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15075 echo "${ECHO_T}$ac_header_compiler" >&6; }
15077 # Is the header present?
15078 { echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
15079 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6; }
15080 cat >conftest.$ac_ext <<_ACEOF
15083 cat confdefs.h >>conftest.$ac_ext
15084 cat >>conftest.$ac_ext <<_ACEOF
15085 /* end confdefs.h. */
15086 #include <kernel/OS.h>
15088 if { (ac_try="$ac_cpp conftest.$ac_ext"
15089 case "(($ac_try" in
15090 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15091 *) ac_try_echo
=$ac_try;;
15093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15094 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15096 grep -v '^ *+' conftest.er1
>conftest.err
15098 cat conftest.err
>&5
15099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100 (exit $ac_status); } >/dev
/null
&& {
15101 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15102 test ! -s conftest.err
15104 ac_header_preproc
=yes
15106 echo "$as_me: failed program was:" >&5
15107 sed 's/^/| /' conftest.
$ac_ext >&5
15109 ac_header_preproc
=no
15112 rm -f conftest.err conftest.
$ac_ext
15113 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15114 echo "${ECHO_T}$ac_header_preproc" >&6; }
15116 # So? What about this header?
15117 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15119 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
15120 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15121 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
15122 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
15123 ac_header_preproc
=yes
15126 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
15127 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
15128 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
15129 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
15130 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
15131 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
15132 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
15133 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
15134 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
15135 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
15136 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
15137 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
15139 ## ------------------------------------------------ ##
15140 ## Report this to http://www.python.org/python-bugs ##
15141 ## ------------------------------------------------ ##
15143 ) |
sed "s/^/$as_me: WARNING: /" >&2
15146 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
15147 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
15148 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
15149 echo $ECHO_N "(cached) $ECHO_C" >&6
15151 ac_cv_header_kernel_OS_h
=$ac_header_preproc
15153 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
15154 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
15157 if test $ac_cv_header_kernel_OS_h = yes; then
15158 cat >>confdefs.h
<<\_ACEOF
15159 #define WITH_THREAD 1
15163 cat >>confdefs.h
<<\_ACEOF
15164 #define BEOS_THREADS 1
15167 THREADOBJ
="Python/thread.o"
15170 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
15171 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
15172 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
15173 echo $ECHO_N "(cached) $ECHO_C" >&6
15175 ac_check_lib_save_LIBS
=$LIBS
15176 LIBS
="-lpthreads $LIBS"
15177 cat >conftest.
$ac_ext <<_ACEOF
15180 cat confdefs.h
>>conftest.
$ac_ext
15181 cat >>conftest.
$ac_ext <<_ACEOF
15182 /* end confdefs.h. */
15184 /* Override any GCC internal prototype to avoid an error.
15185 Use char because int might match the return type of a GCC
15186 builtin and then its argument prototype would still apply. */
15190 char pthread_create ();
15194 return pthread_create ();
15199 rm -f conftest.
$ac_objext conftest
$ac_exeext
15200 if { (ac_try
="$ac_link"
15201 case "(($ac_try" in
15202 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15203 *) ac_try_echo=$ac_try;;
15205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15206 (eval "$ac_link") 2>conftest.er1
15208 grep -v '^ *+' conftest.er1 >conftest.err
15210 cat conftest.err >&5
15211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212 (exit $ac_status); } && {
15213 test -z "$ac_c_werror_flag" ||
15214 test ! -s conftest.err
15215 } && test -s conftest$ac_exeext &&
15216 $as_test_x conftest$ac_exeext; then
15217 ac_cv_lib_pthreads_pthread_create=yes
15219 echo "$as_me: failed program was:" >&5
15220 sed 's/^/| /' conftest.$ac_ext >&5
15222 ac_cv_lib_pthreads_pthread_create=no
15225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15226 conftest$ac_exeext conftest.$ac_ext
15227 LIBS=$ac_check_lib_save_LIBS
15229 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
15230 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
15231 if test $ac_cv_lib_pthreads_pthread_create = yes; then
15232 cat >>confdefs.h <<\_ACEOF
15233 #define WITH_THREAD 1
15237 LIBS="$LIBS -lpthreads"
15238 THREADOBJ="Python/thread.o"
15241 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
15242 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
15243 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
15244 echo $ECHO_N "(cached) $ECHO_C" >&6
15246 ac_check_lib_save_LIBS=$LIBS
15248 cat >conftest.$ac_ext <<_ACEOF
15251 cat confdefs.h >>conftest.$ac_ext
15252 cat >>conftest.$ac_ext <<_ACEOF
15253 /* end confdefs.h. */
15255 /* Override any GCC internal prototype to avoid an error.
15256 Use char because int might match the return type of a GCC
15257 builtin and then its argument prototype would still apply. */
15261 char pthread_create ();
15265 return pthread_create ();
15270 rm -f conftest.$ac_objext conftest$ac_exeext
15271 if { (ac_try="$ac_link"
15272 case "(($ac_try" in
15273 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15274 *) ac_try_echo
=$ac_try;;
15276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15277 (eval "$ac_link") 2>conftest.er1
15279 grep -v '^ *+' conftest.er1
>conftest.err
15281 cat conftest.err
>&5
15282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15283 (exit $ac_status); } && {
15284 test -z "$ac_c_werror_flag" ||
15285 test ! -s conftest.err
15286 } && test -s conftest
$ac_exeext &&
15287 $as_test_x conftest
$ac_exeext; then
15288 ac_cv_lib_c_r_pthread_create
=yes
15290 echo "$as_me: failed program was:" >&5
15291 sed 's/^/| /' conftest.
$ac_ext >&5
15293 ac_cv_lib_c_r_pthread_create
=no
15296 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15297 conftest
$ac_exeext conftest.
$ac_ext
15298 LIBS
=$ac_check_lib_save_LIBS
15300 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
15301 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
15302 if test $ac_cv_lib_c_r_pthread_create = yes; then
15303 cat >>confdefs.h
<<\_ACEOF
15304 #define WITH_THREAD 1
15309 THREADOBJ
="Python/thread.o"
15312 { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
15313 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
15314 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
15315 echo $ECHO_N "(cached) $ECHO_C" >&6
15317 ac_check_lib_save_LIBS
=$LIBS
15318 LIBS
="-lpthread $LIBS"
15319 cat >conftest.
$ac_ext <<_ACEOF
15322 cat confdefs.h
>>conftest.
$ac_ext
15323 cat >>conftest.
$ac_ext <<_ACEOF
15324 /* end confdefs.h. */
15326 /* Override any GCC internal prototype to avoid an error.
15327 Use char because int might match the return type of a GCC
15328 builtin and then its argument prototype would still apply. */
15332 char __pthread_create_system ();
15336 return __pthread_create_system ();
15341 rm -f conftest.
$ac_objext conftest
$ac_exeext
15342 if { (ac_try
="$ac_link"
15343 case "(($ac_try" in
15344 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15345 *) ac_try_echo=$ac_try;;
15347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15348 (eval "$ac_link") 2>conftest.er1
15350 grep -v '^ *+' conftest.er1 >conftest.err
15352 cat conftest.err >&5
15353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354 (exit $ac_status); } && {
15355 test -z "$ac_c_werror_flag" ||
15356 test ! -s conftest.err
15357 } && test -s conftest$ac_exeext &&
15358 $as_test_x conftest$ac_exeext; then
15359 ac_cv_lib_pthread___pthread_create_system=yes
15361 echo "$as_me: failed program was:" >&5
15362 sed 's/^/| /' conftest.$ac_ext >&5
15364 ac_cv_lib_pthread___pthread_create_system=no
15367 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15368 conftest$ac_exeext conftest.$ac_ext
15369 LIBS=$ac_check_lib_save_LIBS
15371 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
15372 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
15373 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
15374 cat >>confdefs.h <<\_ACEOF
15375 #define WITH_THREAD 1
15379 LIBS="$LIBS -lpthread"
15380 THREADOBJ="Python/thread.o"
15383 { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
15384 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
15385 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
15386 echo $ECHO_N "(cached) $ECHO_C" >&6
15388 ac_check_lib_save_LIBS=$LIBS
15390 cat >conftest.$ac_ext <<_ACEOF
15393 cat confdefs.h >>conftest.$ac_ext
15394 cat >>conftest.$ac_ext <<_ACEOF
15395 /* end confdefs.h. */
15397 /* Override any GCC internal prototype to avoid an error.
15398 Use char because int might match the return type of a GCC
15399 builtin and then its argument prototype would still apply. */
15403 char pthread_create ();
15407 return pthread_create ();
15412 rm -f conftest.$ac_objext conftest$ac_exeext
15413 if { (ac_try="$ac_link"
15414 case "(($ac_try" in
15415 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15416 *) ac_try_echo
=$ac_try;;
15418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15419 (eval "$ac_link") 2>conftest.er1
15421 grep -v '^ *+' conftest.er1
>conftest.err
15423 cat conftest.err
>&5
15424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425 (exit $ac_status); } && {
15426 test -z "$ac_c_werror_flag" ||
15427 test ! -s conftest.err
15428 } && test -s conftest
$ac_exeext &&
15429 $as_test_x conftest
$ac_exeext; then
15430 ac_cv_lib_cma_pthread_create
=yes
15432 echo "$as_me: failed program was:" >&5
15433 sed 's/^/| /' conftest.
$ac_ext >&5
15435 ac_cv_lib_cma_pthread_create
=no
15438 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15439 conftest
$ac_exeext conftest.
$ac_ext
15440 LIBS
=$ac_check_lib_save_LIBS
15442 { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
15443 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
15444 if test $ac_cv_lib_cma_pthread_create = yes; then
15445 cat >>confdefs.h
<<\_ACEOF
15446 #define WITH_THREAD 1
15451 THREADOBJ
="Python/thread.o"
15454 USE_THREAD_MODULE
="#"
15474 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15475 conftest
$ac_exeext conftest.
$ac_ext
15485 { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
15486 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
15487 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
15488 echo $ECHO_N "(cached) $ECHO_C" >&6
15490 ac_check_lib_save_LIBS
=$LIBS
15492 cat >conftest.
$ac_ext <<_ACEOF
15495 cat confdefs.h
>>conftest.
$ac_ext
15496 cat >>conftest.
$ac_ext <<_ACEOF
15497 /* end confdefs.h. */
15499 /* Override any GCC internal prototype to avoid an error.
15500 Use char because int might match the return type of a GCC
15501 builtin and then its argument prototype would still apply. */
15509 return usconfig ();
15514 rm -f conftest.
$ac_objext conftest
$ac_exeext
15515 if { (ac_try
="$ac_link"
15516 case "(($ac_try" in
15517 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15518 *) ac_try_echo=$ac_try;;
15520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15521 (eval "$ac_link") 2>conftest.er1
15523 grep -v '^ *+' conftest.er1 >conftest.err
15525 cat conftest.err >&5
15526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527 (exit $ac_status); } && {
15528 test -z "$ac_c_werror_flag" ||
15529 test ! -s conftest.err
15530 } && test -s conftest$ac_exeext &&
15531 $as_test_x conftest$ac_exeext; then
15532 ac_cv_lib_mpc_usconfig=yes
15534 echo "$as_me: failed program was:" >&5
15535 sed 's/^/| /' conftest.$ac_ext >&5
15537 ac_cv_lib_mpc_usconfig=no
15540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15541 conftest$ac_exeext conftest.$ac_ext
15542 LIBS=$ac_check_lib_save_LIBS
15544 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
15545 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
15546 if test $ac_cv_lib_mpc_usconfig = yes; then
15547 cat >>confdefs.h <<\_ACEOF
15548 #define WITH_THREAD 1
15552 THREADOBJ="Python/thread.o"
15553 USE_THREAD_MODULE=""
15557 if test "$posix_threads" != "yes"; then
15558 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
15559 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
15560 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
15561 echo $ECHO_N "(cached) $ECHO_C" >&6
15563 ac_check_lib_save_LIBS=$LIBS
15564 LIBS="-lthread $LIBS"
15565 cat >conftest.$ac_ext <<_ACEOF
15568 cat confdefs.h >>conftest.$ac_ext
15569 cat >>conftest.$ac_ext <<_ACEOF
15570 /* end confdefs.h. */
15572 /* Override any GCC internal prototype to avoid an error.
15573 Use char because int might match the return type of a GCC
15574 builtin and then its argument prototype would still apply. */
15578 char thr_create ();
15582 return thr_create ();
15587 rm -f conftest.$ac_objext conftest$ac_exeext
15588 if { (ac_try="$ac_link"
15589 case "(($ac_try" in
15590 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15591 *) ac_try_echo
=$ac_try;;
15593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15594 (eval "$ac_link") 2>conftest.er1
15596 grep -v '^ *+' conftest.er1
>conftest.err
15598 cat conftest.err
>&5
15599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15600 (exit $ac_status); } && {
15601 test -z "$ac_c_werror_flag" ||
15602 test ! -s conftest.err
15603 } && test -s conftest
$ac_exeext &&
15604 $as_test_x conftest
$ac_exeext; then
15605 ac_cv_lib_thread_thr_create
=yes
15607 echo "$as_me: failed program was:" >&5
15608 sed 's/^/| /' conftest.
$ac_ext >&5
15610 ac_cv_lib_thread_thr_create
=no
15613 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15614 conftest
$ac_exeext conftest.
$ac_ext
15615 LIBS
=$ac_check_lib_save_LIBS
15617 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
15618 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
15619 if test $ac_cv_lib_thread_thr_create = yes; then
15620 cat >>confdefs.h
<<\_ACEOF
15621 #define WITH_THREAD 1
15624 LIBS
="$LIBS -lthread"
15625 THREADOBJ
="Python/thread.o"
15626 USE_THREAD_MODULE
=""
15631 if test "$USE_THREAD_MODULE" != "#"
15633 # If the above checks didn't disable threads, (at least) OSF1
15634 # needs this '-threads' argument during linking.
15635 case $ac_sys_system in
15636 OSF1
) LDLAST
=-threads;;
15641 if test "$posix_threads" = "yes"; then
15642 if test "$unistd_defines_pthreads" = "no"; then
15644 cat >>confdefs.h
<<\_ACEOF
15645 #define _POSIX_THREADS 1
15650 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
15651 case $ac_sys_system/$ac_sys_release in
15653 cat >>confdefs.h
<<\_ACEOF
15654 #define HAVE_PTHREAD_DESTRUCTOR 1
15659 cat >>confdefs.h
<<\_ACEOF
15660 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
15665 cat >>confdefs.h
<<\_ACEOF
15666 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
15672 { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
15673 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
15674 if test "${ac_cv_pthread_system_supported+set}" = set; then
15675 echo $ECHO_N "(cached) $ECHO_C" >&6
15677 if test "$cross_compiling" = yes; then
15678 ac_cv_pthread_system_supported
=no
15680 cat >conftest.
$ac_ext <<_ACEOF
15683 cat confdefs.h
>>conftest.
$ac_ext
15684 cat >>conftest.
$ac_ext <<_ACEOF
15685 /* end confdefs.h. */
15686 #include <pthread.h>
15687 void *foo(void *parm) {
15691 pthread_attr_t attr;
15693 if (pthread_attr_init(&attr)) exit(-1);
15694 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
15695 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
15699 rm -f conftest
$ac_exeext
15700 if { (ac_try
="$ac_link"
15701 case "(($ac_try" in
15702 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15703 *) ac_try_echo=$ac_try;;
15705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15706 (eval "$ac_link") 2>&5
15708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15709 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15710 { (case "(($ac_try" in
15711 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15712 *) ac_try_echo
=$ac_try;;
15714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15715 (eval "$ac_try") 2>&5
15717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15718 (exit $ac_status); }; }; then
15719 ac_cv_pthread_system_supported
=yes
15721 echo "$as_me: program exited with status $ac_status" >&5
15722 echo "$as_me: failed program was:" >&5
15723 sed 's/^/| /' conftest.
$ac_ext >&5
15725 ( exit $ac_status )
15726 ac_cv_pthread_system_supported
=no
15728 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15735 { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
15736 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
15737 if test "$ac_cv_pthread_system_supported" = "yes"; then
15739 cat >>confdefs.h
<<\_ACEOF
15740 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
15745 for ac_func
in pthread_sigmask
15747 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15748 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15749 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15750 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15751 echo $ECHO_N "(cached) $ECHO_C" >&6
15753 cat >conftest.
$ac_ext <<_ACEOF
15756 cat confdefs.h
>>conftest.
$ac_ext
15757 cat >>conftest.
$ac_ext <<_ACEOF
15758 /* end confdefs.h. */
15759 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15761 #define $ac_func innocuous_$ac_func
15763 /* System header to define __stub macros and hopefully few prototypes,
15764 which can conflict with char $ac_func (); below.
15765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15766 <limits.h> exists even on freestanding compilers. */
15769 # include <limits.h>
15771 # include <assert.h>
15776 /* Override any GCC internal prototype to avoid an error.
15777 Use char because int might match the return type of a GCC
15778 builtin and then its argument prototype would still apply. */
15783 /* The GNU C library defines this for functions which it implements
15784 to always fail with ENOSYS. Some functions are actually named
15785 something starting with __ and the normal name is an alias. */
15786 #if defined __stub_$ac_func || defined __stub___$ac_func
15793 return $ac_func ();
15798 rm -f conftest.
$ac_objext conftest
$ac_exeext
15799 if { (ac_try
="$ac_link"
15800 case "(($ac_try" in
15801 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15802 *) ac_try_echo=$ac_try;;
15804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15805 (eval "$ac_link") 2>conftest.er1
15807 grep -v '^ *+' conftest.er1 >conftest.err
15809 cat conftest.err >&5
15810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811 (exit $ac_status); } && {
15812 test -z "$ac_c_werror_flag" ||
15813 test ! -s conftest.err
15814 } && test -s conftest$ac_exeext &&
15815 $as_test_x conftest$ac_exeext; then
15816 eval "$as_ac_var=yes"
15818 echo "$as_me: failed program was:" >&5
15819 sed 's/^/| /' conftest.$ac_ext >&5
15821 eval "$as_ac_var=no"
15824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15825 conftest$ac_exeext conftest.$ac_ext
15827 ac_res=`eval echo '${'$as_ac_var'}'`
15828 { echo "$as_me:$LINENO: result: $ac_res" >&5
15829 echo "${ECHO_T}$ac_res" >&6; }
15830 if test `eval echo '${'$as_ac_var'}'` = yes; then
15831 cat >>confdefs.h <<_ACEOF
15832 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
15834 case $ac_sys_system in
15837 cat >>confdefs.h <<\_ACEOF
15838 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
15849 # Check for enable-ipv6
15852 { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
15853 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
15854 # Check whether --enable-ipv6 was given.
15855 if test "${enable_ipv6+set}" = set; then
15856 enableval=$enable_ipv6; case "$enableval" in
15858 { echo "$as_me:$LINENO: result: no" >&5
15859 echo "${ECHO_T}no" >&6; }
15862 *) { echo "$as_me:$LINENO: result: yes" >&5
15863 echo "${ECHO_T}yes" >&6; }
15864 cat >>confdefs.h <<\_ACEOF
15865 #define ENABLE_IPV6 1
15873 if test "$cross_compiling" = yes; then
15874 { echo "$as_me:$LINENO: result: no" >&5
15875 echo "${ECHO_T}no" >&6; }
15879 cat >conftest.$ac_ext <<_ACEOF
15882 cat confdefs.h >>conftest.$ac_ext
15883 cat >>conftest.$ac_ext <<_ACEOF
15884 /* end confdefs.h. */
15885 /* AF_INET6 available check */
15886 #include <sys/types.h>
15887 #include <sys/socket.h>
15890 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
15897 rm -f conftest$ac_exeext
15898 if { (ac_try="$ac_link"
15899 case "(($ac_try" in
15900 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15901 *) ac_try_echo
=$ac_try;;
15903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15904 (eval "$ac_link") 2>&5
15906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15907 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15908 { (case "(($ac_try" in
15909 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15910 *) ac_try_echo=$ac_try;;
15912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15913 (eval "$ac_try") 2>&5
15915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15916 (exit $ac_status); }; }; then
15917 { echo "$as_me:$LINENO: result: yes" >&5
15918 echo "${ECHO_T}yes" >&6; }
15921 echo "$as_me: program exited with status $ac_status" >&5
15922 echo "$as_me: failed program was:" >&5
15923 sed 's/^/| /' conftest.$ac_ext >&5
15925 ( exit $ac_status )
15926 { echo "$as_me:$LINENO: result: no" >&5
15927 echo "${ECHO_T}no" >&6; }
15930 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15935 if test "$ipv6" = "yes"; then
15936 { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
15937 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; }
15938 cat >conftest.$ac_ext <<_ACEOF
15941 cat confdefs.h >>conftest.$ac_ext
15942 cat >>conftest.$ac_ext <<_ACEOF
15943 /* end confdefs.h. */
15944 #include <sys/types.h>
15945 #include <netinet/in.h>
15949 struct sockaddr_in6 x;
15955 rm -f conftest.$ac_objext
15956 if { (ac_try="$ac_compile"
15957 case "(($ac_try" in
15958 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15959 *) ac_try_echo
=$ac_try;;
15961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15962 (eval "$ac_compile") 2>conftest.er1
15964 grep -v '^ *+' conftest.er1
>conftest.err
15966 cat conftest.err
>&5
15967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15968 (exit $ac_status); } && {
15969 test -z "$ac_c_werror_flag" ||
15970 test ! -s conftest.err
15971 } && test -s conftest.
$ac_objext; then
15972 { echo "$as_me:$LINENO: result: yes" >&5
15973 echo "${ECHO_T}yes" >&6; }
15976 echo "$as_me: failed program was:" >&5
15977 sed 's/^/| /' conftest.
$ac_ext >&5
15979 { echo "$as_me:$LINENO: result: no" >&5
15980 echo "${ECHO_T}no" >&6; }
15984 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15987 if test "$ipv6" = "yes"; then
15988 cat >>confdefs.h
<<\_ACEOF
15989 #define ENABLE_IPV6 1
16001 if test "$ipv6" = "yes"; then
16002 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
16003 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
16004 for i
in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta
;
16008 cat >conftest.
$ac_ext <<_ACEOF
16011 cat confdefs.h
>>conftest.
$ac_ext
16012 cat >>conftest.
$ac_ext <<_ACEOF
16013 /* end confdefs.h. */
16015 #include <netinet/in.h>
16016 #ifdef IPV6_INRIA_VERSION
16020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16021 $EGREP "yes" >/dev
/null
2>&1; then
16028 cat >conftest.
$ac_ext <<_ACEOF
16031 cat confdefs.h
>>conftest.
$ac_ext
16032 cat >>conftest.
$ac_ext <<_ACEOF
16033 /* end confdefs.h. */
16035 #include <netinet/in.h>
16040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16041 $EGREP "yes" >/dev
/null
2>&1; then
16044 ipv6libdir
=/usr
/local
/v
6/lib
16051 cat >conftest.
$ac_ext <<_ACEOF
16054 cat confdefs.h
>>conftest.
$ac_ext
16055 cat >>conftest.
$ac_ext <<_ACEOF
16056 /* end confdefs.h. */
16058 #include <features.h>
16059 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
16063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16064 $EGREP "yes" >/dev
/null
2>&1; then
16072 if test -d /usr
/inet6
; then
16075 ipv6libdir
=/usr
/inet
6/lib
16076 BASECFLAGS
="-I/usr/inet6/include $BASECFLAGS"
16080 if test -f /etc
/netconfig
; then
16081 if /usr
/xpg
4/bin
/grep -q tcp6
/etc
/netconfig
; then
16088 cat >conftest.
$ac_ext <<_ACEOF
16091 cat confdefs.h
>>conftest.
$ac_ext
16092 cat >>conftest.
$ac_ext <<_ACEOF
16093 /* end confdefs.h. */
16095 #include <sys/param.h>
16096 #ifdef _TOSHIBA_INET6
16100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16101 $EGREP "yes" >/dev
/null
2>&1; then
16104 ipv6libdir
=/usr
/local
/v
6/lib
16110 cat >conftest.
$ac_ext <<_ACEOF
16113 cat confdefs.h
>>conftest.
$ac_ext
16114 cat >>conftest.
$ac_ext <<_ACEOF
16115 /* end confdefs.h. */
16117 #include </usr/local/v6/include/sys/v6config.h>
16122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16123 $EGREP "yes" >/dev
/null
2>&1; then
16126 ipv6libdir
=/usr
/local
/v
6/lib
;
16127 BASECFLAGS
="-I/usr/local/v6/include $BASECFLAGS"
16133 cat >conftest.
$ac_ext <<_ACEOF
16136 cat confdefs.h
>>conftest.
$ac_ext
16137 cat >>conftest.
$ac_ext <<_ACEOF
16138 /* end confdefs.h. */
16140 #include <sys/param.h>
16141 #ifdef _ZETA_MINAMI_INET6
16145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16146 $EGREP "yes" >/dev
/null
2>&1; then
16149 ipv6libdir
=/usr
/local
/v
6/lib
16155 if test "$ipv6type" != "unknown"; then
16159 { echo "$as_me:$LINENO: result: $ipv6type" >&5
16160 echo "${ECHO_T}$ipv6type" >&6; }
16163 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
16164 if test -d $ipv6libdir -a -f $ipv6libdir/lib
$ipv6lib.a
; then
16165 LIBS
="-L$ipv6libdir -l$ipv6lib $LIBS"
16166 echo "using lib$ipv6lib"
16168 if test $ipv6trylibc = "yes"; then
16171 echo 'Fatal: no $ipv6lib library found. cannot continue.'
16172 echo "You need to fetch lib$ipv6lib.a from appropriate"
16173 echo 'ipv6 kit and compile beforehand.'
16179 { echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5
16180 echo $ECHO_N "checking for OSX 10.5 SDK or later... $ECHO_C" >&6; }
16181 cat >conftest.
$ac_ext <<_ACEOF
16184 cat confdefs.h
>>conftest.
$ac_ext
16185 cat >>conftest.
$ac_ext <<_ACEOF
16186 /* end confdefs.h. */
16187 #include <Carbon/Carbon.h>
16191 FSIORefNum fRef = 0
16196 rm -f conftest.
$ac_objext
16197 if { (ac_try
="$ac_compile"
16198 case "(($ac_try" in
16199 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16200 *) ac_try_echo=$ac_try;;
16202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16203 (eval "$ac_compile") 2>conftest.er1
16205 grep -v '^ *+' conftest.er1 >conftest.err
16207 cat conftest.err >&5
16208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209 (exit $ac_status); } && {
16210 test -z "$ac_c_werror_flag" ||
16211 test ! -s conftest.err
16212 } && test -s conftest.$ac_objext; then
16214 cat >>confdefs.h <<\_ACEOF
16215 #define HAVE_OSX105_SDK 1
16218 { echo "$as_me:$LINENO: result: yes" >&5
16219 echo "${ECHO_T}yes" >&6; }
16221 echo "$as_me: failed program was:" >&5
16222 sed 's/^/| /' conftest.$ac_ext >&5
16224 { echo "$as_me:$LINENO: result: no" >&5
16225 echo "${ECHO_T}no" >&6; }
16229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16231 # Check for --with-doc-strings
16232 { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
16233 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
16235 # Check whether --with-doc-strings was given.
16236 if test "${with_doc_strings+set}" = set; then
16237 withval=$with_doc_strings;
16241 if test -z "$with_doc_strings"
16242 then with_doc_strings="yes"
16244 if test "$with_doc_strings" != "no"
16247 cat >>confdefs.h <<\_ACEOF
16248 #define WITH_DOC_STRINGS 1
16252 { echo "$as_me:$LINENO: result: $with_doc_strings" >&5
16253 echo "${ECHO_T}$with_doc_strings" >&6; }
16255 # Check for Python-specific malloc support
16256 { echo "$as_me:$LINENO: checking for --with-tsc" >&5
16257 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
16259 # Check whether --with-tsc was given.
16260 if test "${with_tsc+set}" = set; then
16262 if test "$withval" != no
16265 cat >>confdefs.h <<\_ACEOF
16269 { echo "$as_me:$LINENO: result: yes" >&5
16270 echo "${ECHO_T}yes" >&6; }
16271 else { echo "$as_me:$LINENO: result: no" >&5
16272 echo "${ECHO_T}no" >&6; }
16275 { echo "$as_me:$LINENO: result: no" >&5
16276 echo "${ECHO_T}no" >&6; }
16280 # Check for Python-specific malloc support
16281 { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
16282 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
16284 # Check whether --with-pymalloc was given.
16285 if test "${with_pymalloc+set}" = set; then
16286 withval=$with_pymalloc;
16290 if test -z "$with_pymalloc"
16291 then with_pymalloc="yes"
16293 if test "$with_pymalloc" != "no"
16296 cat >>confdefs.h <<\_ACEOF
16297 #define WITH_PYMALLOC 1
16301 { echo "$as_me:$LINENO: result: $with_pymalloc" >&5
16302 echo "${ECHO_T}$with_pymalloc" >&6; }
16304 # Check for --with-wctype-functions
16305 { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
16306 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
16308 # Check whether --with-wctype-functions was given.
16309 if test "${with_wctype_functions+set}" = set; then
16310 withval=$with_wctype_functions;
16311 if test "$withval" != no
16314 cat >>confdefs.h <<\_ACEOF
16315 #define WANT_WCTYPE_FUNCTIONS 1
16318 { echo "$as_me:$LINENO: result: yes" >&5
16319 echo "${ECHO_T}yes" >&6; }
16320 else { echo "$as_me:$LINENO: result: no" >&5
16321 echo "${ECHO_T}no" >&6; }
16324 { echo "$as_me:$LINENO: result: no" >&5
16325 echo "${ECHO_T}no" >&6; }
16329 # -I${DLINCLDIR} is added to the compile rule for importdl.o
16333 # the dlopen() function means we might want to use dynload_shlib.o. some
16334 # platforms, such as AIX, have dlopen(), but don't want to use it.
16336 for ac_func in dlopen
16338 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
16339 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16340 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16341 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16342 echo $ECHO_N "(cached) $ECHO_C" >&6
16344 cat >conftest.$ac_ext <<_ACEOF
16347 cat confdefs.h >>conftest.$ac_ext
16348 cat >>conftest.$ac_ext <<_ACEOF
16349 /* end confdefs.h. */
16350 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16352 #define $ac_func innocuous_$ac_func
16354 /* System header to define __stub macros and hopefully few prototypes,
16355 which can conflict with char $ac_func (); below.
16356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16357 <limits.h> exists even on freestanding compilers. */
16360 # include <limits.h>
16362 # include <assert.h>
16367 /* Override any GCC internal prototype to avoid an error.
16368 Use char because int might match the return type of a GCC
16369 builtin and then its argument prototype would still apply. */
16374 /* The GNU C library defines this for functions which it implements
16375 to always fail with ENOSYS. Some functions are actually named
16376 something starting with __ and the normal name is an alias. */
16377 #if defined __stub_$ac_func || defined __stub___$ac_func
16384 return $ac_func ();
16389 rm -f conftest.$ac_objext conftest$ac_exeext
16390 if { (ac_try="$ac_link"
16391 case "(($ac_try" in
16392 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16393 *) ac_try_echo
=$ac_try;;
16395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16396 (eval "$ac_link") 2>conftest.er1
16398 grep -v '^ *+' conftest.er1
>conftest.err
16400 cat conftest.err
>&5
16401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16402 (exit $ac_status); } && {
16403 test -z "$ac_c_werror_flag" ||
16404 test ! -s conftest.err
16405 } && test -s conftest
$ac_exeext &&
16406 $as_test_x conftest
$ac_exeext; then
16407 eval "$as_ac_var=yes"
16409 echo "$as_me: failed program was:" >&5
16410 sed 's/^/| /' conftest.
$ac_ext >&5
16412 eval "$as_ac_var=no"
16415 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16416 conftest
$ac_exeext conftest.
$ac_ext
16418 ac_res
=`eval echo '${'$as_ac_var'}'`
16419 { echo "$as_me:$LINENO: result: $ac_res" >&5
16420 echo "${ECHO_T}$ac_res" >&6; }
16421 if test `eval echo '${'$as_ac_var'}'` = yes; then
16422 cat >>confdefs.h
<<_ACEOF
16423 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16430 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
16431 # loading of modules.
16433 { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
16434 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
16435 if test -z "$DYNLOADFILE"
16437 case $ac_sys_system/$ac_sys_release in
16438 AIX
*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
16439 if test "$ac_cv_func_dlopen" = yes
16440 then DYNLOADFILE
="dynload_shlib.o"
16441 else DYNLOADFILE
="dynload_aix.o"
16444 BeOS
*) DYNLOADFILE
="dynload_beos.o";;
16445 hp
*|HP
*) DYNLOADFILE
="dynload_hpux.o";;
16446 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
16447 Darwin
/[0156]\..
*) DYNLOADFILE
="dynload_next.o";;
16448 atheos
*) DYNLOADFILE
="dynload_atheos.o";;
16450 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
16451 # out any dynamic loading
16452 if test "$ac_cv_func_dlopen" = yes
16453 then DYNLOADFILE
="dynload_shlib.o"
16454 else DYNLOADFILE
="dynload_stub.o"
16459 { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
16460 echo "${ECHO_T}$DYNLOADFILE" >&6; }
16461 if test "$DYNLOADFILE" != "dynload_stub.o"
16464 cat >>confdefs.h
<<\_ACEOF
16465 #define HAVE_DYNAMIC_LOADING 1
16470 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
16473 { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
16474 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
16475 if test -z "$MACHDEP_OBJS"
16477 MACHDEP_OBJS
=$extra_machdep_objs
16479 MACHDEP_OBJS
="$MACHDEP_OBJS $extra_machdep_objs"
16481 { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
16482 echo "${ECHO_T}MACHDEP_OBJS" >&6; }
16484 # checks for library functions
16566 for ac_func
in alarm setitimer getitimer bind_textdomain_codeset chown \
16567 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
16568 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
16569 getpriority getpwent getspnam getspent getsid getwd \
16570 kill killpg lchmod lchown lstat
mkfifo mknod mktime \
16571 mremap nice pathconf pause plock poll pthread_init \
16572 putenv readlink realpath \
16573 select setegid seteuid setgid \
16574 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
16575 sigaction siginterrupt sigrelse strftime \
16576 sysconf tcgetpgrp tcsetpgrp tempnam timegm
times tmpfile tmpnam tmpnam_r \
16577 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
16579 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16580 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16581 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16582 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16583 echo $ECHO_N "(cached) $ECHO_C" >&6
16585 cat >conftest.
$ac_ext <<_ACEOF
16588 cat confdefs.h
>>conftest.
$ac_ext
16589 cat >>conftest.
$ac_ext <<_ACEOF
16590 /* end confdefs.h. */
16591 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16592 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16593 #define $ac_func innocuous_$ac_func
16595 /* System header to define __stub macros and hopefully few prototypes,
16596 which can conflict with char $ac_func (); below.
16597 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16598 <limits.h> exists even on freestanding compilers. */
16601 # include <limits.h>
16603 # include <assert.h>
16608 /* Override any GCC internal prototype to avoid an error.
16609 Use char because int might match the return type of a GCC
16610 builtin and then its argument prototype would still apply. */
16615 /* The GNU C library defines this for functions which it implements
16616 to always fail with ENOSYS. Some functions are actually named
16617 something starting with __ and the normal name is an alias. */
16618 #if defined __stub_$ac_func || defined __stub___$ac_func
16625 return $ac_func ();
16630 rm -f conftest.
$ac_objext conftest
$ac_exeext
16631 if { (ac_try
="$ac_link"
16632 case "(($ac_try" in
16633 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16634 *) ac_try_echo=$ac_try;;
16636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16637 (eval "$ac_link") 2>conftest.er1
16639 grep -v '^ *+' conftest.er1 >conftest.err
16641 cat conftest.err >&5
16642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643 (exit $ac_status); } && {
16644 test -z "$ac_c_werror_flag" ||
16645 test ! -s conftest.err
16646 } && test -s conftest$ac_exeext &&
16647 $as_test_x conftest$ac_exeext; then
16648 eval "$as_ac_var=yes"
16650 echo "$as_me: failed program was:" >&5
16651 sed 's/^/| /' conftest.$ac_ext >&5
16653 eval "$as_ac_var=no"
16656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16657 conftest$ac_exeext conftest.$ac_ext
16659 ac_res=`eval echo '${'$as_ac_var'}'`
16660 { echo "$as_me:$LINENO: result: $ac_res" >&5
16661 echo "${ECHO_T}$ac_res" >&6; }
16662 if test `eval echo '${'$as_ac_var'}'` = yes; then
16663 cat >>confdefs.h <<_ACEOF
16664 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
16671 # For some functions, having a definition is not sufficient, since
16672 # we want to take their address.
16673 { echo "$as_me:$LINENO: checking for chroot" >&5
16674 echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
16675 cat >conftest.$ac_ext <<_ACEOF
16678 cat confdefs.h >>conftest.$ac_ext
16679 cat >>conftest.$ac_ext <<_ACEOF
16680 /* end confdefs.h. */
16681 #include <unistd.h>
16690 rm -f conftest.$ac_objext
16691 if { (ac_try="$ac_compile"
16692 case "(($ac_try" in
16693 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16694 *) ac_try_echo
=$ac_try;;
16696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16697 (eval "$ac_compile") 2>conftest.er1
16699 grep -v '^ *+' conftest.er1
>conftest.err
16701 cat conftest.err
>&5
16702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16703 (exit $ac_status); } && {
16704 test -z "$ac_c_werror_flag" ||
16705 test ! -s conftest.err
16706 } && test -s conftest.
$ac_objext; then
16708 cat >>confdefs.h
<<\_ACEOF
16709 #define HAVE_CHROOT 1
16712 { echo "$as_me:$LINENO: result: yes" >&5
16713 echo "${ECHO_T}yes" >&6; }
16715 echo "$as_me: failed program was:" >&5
16716 sed 's/^/| /' conftest.
$ac_ext >&5
16718 { echo "$as_me:$LINENO: result: no" >&5
16719 echo "${ECHO_T}no" >&6; }
16723 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16724 { echo "$as_me:$LINENO: checking for link" >&5
16725 echo $ECHO_N "checking for link... $ECHO_C" >&6; }
16726 cat >conftest.
$ac_ext <<_ACEOF
16729 cat confdefs.h
>>conftest.
$ac_ext
16730 cat >>conftest.
$ac_ext <<_ACEOF
16731 /* end confdefs.h. */
16732 #include <unistd.h>
16741 rm -f conftest.
$ac_objext
16742 if { (ac_try
="$ac_compile"
16743 case "(($ac_try" in
16744 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16745 *) ac_try_echo=$ac_try;;
16747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16748 (eval "$ac_compile") 2>conftest.er1
16750 grep -v '^ *+' conftest.er1 >conftest.err
16752 cat conftest.err >&5
16753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16754 (exit $ac_status); } && {
16755 test -z "$ac_c_werror_flag" ||
16756 test ! -s conftest.err
16757 } && test -s conftest.$ac_objext; then
16759 cat >>confdefs.h <<\_ACEOF
16760 #define HAVE_LINK 1
16763 { echo "$as_me:$LINENO: result: yes" >&5
16764 echo "${ECHO_T}yes" >&6; }
16766 echo "$as_me: failed program was:" >&5
16767 sed 's/^/| /' conftest.$ac_ext >&5
16769 { echo "$as_me:$LINENO: result: no" >&5
16770 echo "${ECHO_T}no" >&6; }
16774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16775 { echo "$as_me:$LINENO: checking for symlink" >&5
16776 echo $ECHO_N "checking for symlink... $ECHO_C" >&6; }
16777 cat >conftest.$ac_ext <<_ACEOF
16780 cat confdefs.h >>conftest.$ac_ext
16781 cat >>conftest.$ac_ext <<_ACEOF
16782 /* end confdefs.h. */
16783 #include <unistd.h>
16792 rm -f conftest.$ac_objext
16793 if { (ac_try="$ac_compile"
16794 case "(($ac_try" in
16795 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16796 *) ac_try_echo
=$ac_try;;
16798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16799 (eval "$ac_compile") 2>conftest.er1
16801 grep -v '^ *+' conftest.er1
>conftest.err
16803 cat conftest.err
>&5
16804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16805 (exit $ac_status); } && {
16806 test -z "$ac_c_werror_flag" ||
16807 test ! -s conftest.err
16808 } && test -s conftest.
$ac_objext; then
16810 cat >>confdefs.h
<<\_ACEOF
16811 #define HAVE_SYMLINK 1
16814 { echo "$as_me:$LINENO: result: yes" >&5
16815 echo "${ECHO_T}yes" >&6; }
16817 echo "$as_me: failed program was:" >&5
16818 sed 's/^/| /' conftest.
$ac_ext >&5
16820 { echo "$as_me:$LINENO: result: no" >&5
16821 echo "${ECHO_T}no" >&6; }
16825 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16826 { echo "$as_me:$LINENO: checking for fchdir" >&5
16827 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
16828 cat >conftest.
$ac_ext <<_ACEOF
16831 cat confdefs.h
>>conftest.
$ac_ext
16832 cat >>conftest.
$ac_ext <<_ACEOF
16833 /* end confdefs.h. */
16834 #include <unistd.h>
16843 rm -f conftest.
$ac_objext
16844 if { (ac_try
="$ac_compile"
16845 case "(($ac_try" in
16846 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16847 *) ac_try_echo=$ac_try;;
16849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16850 (eval "$ac_compile") 2>conftest.er1
16852 grep -v '^ *+' conftest.er1 >conftest.err
16854 cat conftest.err >&5
16855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16856 (exit $ac_status); } && {
16857 test -z "$ac_c_werror_flag" ||
16858 test ! -s conftest.err
16859 } && test -s conftest.$ac_objext; then
16861 cat >>confdefs.h <<\_ACEOF
16862 #define HAVE_FCHDIR 1
16865 { echo "$as_me:$LINENO: result: yes" >&5
16866 echo "${ECHO_T}yes" >&6; }
16868 echo "$as_me: failed program was:" >&5
16869 sed 's/^/| /' conftest.$ac_ext >&5
16871 { echo "$as_me:$LINENO: result: no" >&5
16872 echo "${ECHO_T}no" >&6; }
16876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16877 { echo "$as_me:$LINENO: checking for fsync" >&5
16878 echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
16879 cat >conftest.$ac_ext <<_ACEOF
16882 cat confdefs.h >>conftest.$ac_ext
16883 cat >>conftest.$ac_ext <<_ACEOF
16884 /* end confdefs.h. */
16885 #include <unistd.h>
16894 rm -f conftest.$ac_objext
16895 if { (ac_try="$ac_compile"
16896 case "(($ac_try" in
16897 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16898 *) ac_try_echo
=$ac_try;;
16900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16901 (eval "$ac_compile") 2>conftest.er1
16903 grep -v '^ *+' conftest.er1
>conftest.err
16905 cat conftest.err
>&5
16906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907 (exit $ac_status); } && {
16908 test -z "$ac_c_werror_flag" ||
16909 test ! -s conftest.err
16910 } && test -s conftest.
$ac_objext; then
16912 cat >>confdefs.h
<<\_ACEOF
16913 #define HAVE_FSYNC 1
16916 { echo "$as_me:$LINENO: result: yes" >&5
16917 echo "${ECHO_T}yes" >&6; }
16919 echo "$as_me: failed program was:" >&5
16920 sed 's/^/| /' conftest.
$ac_ext >&5
16922 { echo "$as_me:$LINENO: result: no" >&5
16923 echo "${ECHO_T}no" >&6; }
16927 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16928 { echo "$as_me:$LINENO: checking for fdatasync" >&5
16929 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
16930 cat >conftest.
$ac_ext <<_ACEOF
16933 cat confdefs.h
>>conftest.
$ac_ext
16934 cat >>conftest.
$ac_ext <<_ACEOF
16935 /* end confdefs.h. */
16936 #include <unistd.h>
16945 rm -f conftest.
$ac_objext
16946 if { (ac_try
="$ac_compile"
16947 case "(($ac_try" in
16948 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16949 *) ac_try_echo=$ac_try;;
16951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16952 (eval "$ac_compile") 2>conftest.er1
16954 grep -v '^ *+' conftest.er1 >conftest.err
16956 cat conftest.err >&5
16957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958 (exit $ac_status); } && {
16959 test -z "$ac_c_werror_flag" ||
16960 test ! -s conftest.err
16961 } && test -s conftest.$ac_objext; then
16963 cat >>confdefs.h <<\_ACEOF
16964 #define HAVE_FDATASYNC 1
16967 { echo "$as_me:$LINENO: result: yes" >&5
16968 echo "${ECHO_T}yes" >&6; }
16970 echo "$as_me: failed program was:" >&5
16971 sed 's/^/| /' conftest.$ac_ext >&5
16973 { echo "$as_me:$LINENO: result: no" >&5
16974 echo "${ECHO_T}no" >&6; }
16978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16979 { echo "$as_me:$LINENO: checking for epoll" >&5
16980 echo $ECHO_N "checking for epoll... $ECHO_C" >&6; }
16981 cat >conftest.$ac_ext <<_ACEOF
16984 cat confdefs.h >>conftest.$ac_ext
16985 cat >>conftest.$ac_ext <<_ACEOF
16986 /* end confdefs.h. */
16987 #include <sys/epoll.h>
16991 void *x=epoll_create
16996 rm -f conftest.$ac_objext
16997 if { (ac_try="$ac_compile"
16998 case "(($ac_try" in
16999 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17000 *) ac_try_echo
=$ac_try;;
17002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17003 (eval "$ac_compile") 2>conftest.er1
17005 grep -v '^ *+' conftest.er1
>conftest.err
17007 cat conftest.err
>&5
17008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17009 (exit $ac_status); } && {
17010 test -z "$ac_c_werror_flag" ||
17011 test ! -s conftest.err
17012 } && test -s conftest.
$ac_objext; then
17014 cat >>confdefs.h
<<\_ACEOF
17015 #define HAVE_EPOLL 1
17018 { echo "$as_me:$LINENO: result: yes" >&5
17019 echo "${ECHO_T}yes" >&6; }
17021 echo "$as_me: failed program was:" >&5
17022 sed 's/^/| /' conftest.
$ac_ext >&5
17024 { echo "$as_me:$LINENO: result: no" >&5
17025 echo "${ECHO_T}no" >&6; }
17029 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17030 { echo "$as_me:$LINENO: checking for kqueue" >&5
17031 echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; }
17032 cat >conftest.
$ac_ext <<_ACEOF
17035 cat confdefs.h
>>conftest.
$ac_ext
17036 cat >>conftest.
$ac_ext <<_ACEOF
17037 /* end confdefs.h. */
17039 #include <sys/types.h>
17040 #include <sys/event.h>
17050 rm -f conftest.
$ac_objext
17051 if { (ac_try
="$ac_compile"
17052 case "(($ac_try" in
17053 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17054 *) ac_try_echo=$ac_try;;
17056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17057 (eval "$ac_compile") 2>conftest.er1
17059 grep -v '^ *+' conftest.er1 >conftest.err
17061 cat conftest.err >&5
17062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17063 (exit $ac_status); } && {
17064 test -z "$ac_c_werror_flag" ||
17065 test ! -s conftest.err
17066 } && test -s conftest.$ac_objext; then
17068 cat >>confdefs.h <<\_ACEOF
17069 #define HAVE_KQUEUE 1
17072 { echo "$as_me:$LINENO: result: yes" >&5
17073 echo "${ECHO_T}yes" >&6; }
17075 echo "$as_me: failed program was:" >&5
17076 sed 's/^/| /' conftest.$ac_ext >&5
17078 { echo "$as_me:$LINENO: result: no" >&5
17079 echo "${ECHO_T}no" >&6; }
17083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17084 # On some systems (eg. FreeBSD 5), we would find a definition of the
17085 # functions ctermid_r, setgroups in the library, but no prototype
17086 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
17087 # address to avoid compiler warnings and potential miscompilations
17088 # because of the missing prototypes.
17090 { echo "$as_me:$LINENO: checking for ctermid_r" >&5
17091 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; }
17092 cat >conftest.$ac_ext <<_ACEOF
17095 cat confdefs.h >>conftest.$ac_ext
17096 cat >>conftest.$ac_ext <<_ACEOF
17097 /* end confdefs.h. */
17099 #include "confdefs.h"
17105 void* p = ctermid_r
17110 rm -f conftest.$ac_objext
17111 if { (ac_try="$ac_compile"
17112 case "(($ac_try" in
17113 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17114 *) ac_try_echo
=$ac_try;;
17116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17117 (eval "$ac_compile") 2>conftest.er1
17119 grep -v '^ *+' conftest.er1
>conftest.err
17121 cat conftest.err
>&5
17122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17123 (exit $ac_status); } && {
17124 test -z "$ac_c_werror_flag" ||
17125 test ! -s conftest.err
17126 } && test -s conftest.
$ac_objext; then
17128 cat >>confdefs.h
<<\_ACEOF
17129 #define HAVE_CTERMID_R 1
17132 { echo "$as_me:$LINENO: result: yes" >&5
17133 echo "${ECHO_T}yes" >&6; }
17135 echo "$as_me: failed program was:" >&5
17136 sed 's/^/| /' conftest.
$ac_ext >&5
17138 { echo "$as_me:$LINENO: result: no" >&5
17139 echo "${ECHO_T}no" >&6; }
17143 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17145 { echo "$as_me:$LINENO: checking for flock" >&5
17146 echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
17147 cat >conftest.
$ac_ext <<_ACEOF
17150 cat confdefs.h
>>conftest.
$ac_ext
17151 cat >>conftest.
$ac_ext <<_ACEOF
17152 /* end confdefs.h. */
17154 #include "confdefs.h"
17155 #include <sys/file.h>
17165 rm -f conftest.
$ac_objext
17166 if { (ac_try
="$ac_compile"
17167 case "(($ac_try" in
17168 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17169 *) ac_try_echo=$ac_try;;
17171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17172 (eval "$ac_compile") 2>conftest.er1
17174 grep -v '^ *+' conftest.er1 >conftest.err
17176 cat conftest.err >&5
17177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17178 (exit $ac_status); } && {
17179 test -z "$ac_c_werror_flag" ||
17180 test ! -s conftest.err
17181 } && test -s conftest.$ac_objext; then
17183 cat >>confdefs.h <<\_ACEOF
17184 #define HAVE_FLOCK 1
17187 { echo "$as_me:$LINENO: result: yes" >&5
17188 echo "${ECHO_T}yes" >&6; }
17190 echo "$as_me: failed program was:" >&5
17191 sed 's/^/| /' conftest.$ac_ext >&5
17193 { echo "$as_me:$LINENO: result: no" >&5
17194 echo "${ECHO_T}no" >&6; }
17198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17200 { echo "$as_me:$LINENO: checking for getpagesize" >&5
17201 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
17202 cat >conftest.$ac_ext <<_ACEOF
17205 cat confdefs.h >>conftest.$ac_ext
17206 cat >>conftest.$ac_ext <<_ACEOF
17207 /* end confdefs.h. */
17209 #include "confdefs.h"
17210 #include <unistd.h>
17215 void* p = getpagesize
17220 rm -f conftest.$ac_objext
17221 if { (ac_try="$ac_compile"
17222 case "(($ac_try" in
17223 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17224 *) ac_try_echo
=$ac_try;;
17226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17227 (eval "$ac_compile") 2>conftest.er1
17229 grep -v '^ *+' conftest.er1
>conftest.err
17231 cat conftest.err
>&5
17232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17233 (exit $ac_status); } && {
17234 test -z "$ac_c_werror_flag" ||
17235 test ! -s conftest.err
17236 } && test -s conftest.
$ac_objext; then
17238 cat >>confdefs.h
<<\_ACEOF
17239 #define HAVE_GETPAGESIZE 1
17242 { echo "$as_me:$LINENO: result: yes" >&5
17243 echo "${ECHO_T}yes" >&6; }
17245 echo "$as_me: failed program was:" >&5
17246 sed 's/^/| /' conftest.
$ac_ext >&5
17248 { echo "$as_me:$LINENO: result: no" >&5
17249 echo "${ECHO_T}no" >&6; }
17253 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17255 for ac_prog
in true
17257 # Extract the first word of "$ac_prog", so it can be a program name with args.
17258 set dummy
$ac_prog; ac_word
=$2
17259 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17261 if test "${ac_cv_prog_TRUE+set}" = set; then
17262 echo $ECHO_N "(cached) $ECHO_C" >&6
17264 if test -n "$TRUE"; then
17265 ac_cv_prog_TRUE
="$TRUE" # Let the user override the test.
17267 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17268 for as_dir
in $PATH
17271 test -z "$as_dir" && as_dir
=.
17272 for ac_exec_ext
in '' $ac_executable_extensions; do
17273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17274 ac_cv_prog_TRUE
="$ac_prog"
17275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17284 TRUE
=$ac_cv_prog_TRUE
17285 if test -n "$TRUE"; then
17286 { echo "$as_me:$LINENO: result: $TRUE" >&5
17287 echo "${ECHO_T}$TRUE" >&6; }
17289 { echo "$as_me:$LINENO: result: no" >&5
17290 echo "${ECHO_T}no" >&6; }
17294 test -n "$TRUE" && break
17296 test -n "$TRUE" || TRUE
="/bin/true"
17299 { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
17300 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
17301 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
17302 echo $ECHO_N "(cached) $ECHO_C" >&6
17304 ac_check_lib_save_LIBS
=$LIBS
17306 cat >conftest.
$ac_ext <<_ACEOF
17309 cat confdefs.h
>>conftest.
$ac_ext
17310 cat >>conftest.
$ac_ext <<_ACEOF
17311 /* end confdefs.h. */
17313 /* Override any GCC internal prototype to avoid an error.
17314 Use char because int might match the return type of a GCC
17315 builtin and then its argument prototype would still apply. */
17323 return inet_aton ();
17328 rm -f conftest.
$ac_objext conftest
$ac_exeext
17329 if { (ac_try
="$ac_link"
17330 case "(($ac_try" in
17331 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17332 *) ac_try_echo=$ac_try;;
17334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17335 (eval "$ac_link") 2>conftest.er1
17337 grep -v '^ *+' conftest.er1 >conftest.err
17339 cat conftest.err >&5
17340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17341 (exit $ac_status); } && {
17342 test -z "$ac_c_werror_flag" ||
17343 test ! -s conftest.err
17344 } && test -s conftest$ac_exeext &&
17345 $as_test_x conftest$ac_exeext; then
17346 ac_cv_lib_c_inet_aton=yes
17348 echo "$as_me: failed program was:" >&5
17349 sed 's/^/| /' conftest.$ac_ext >&5
17351 ac_cv_lib_c_inet_aton=no
17354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17355 conftest$ac_exeext conftest.$ac_ext
17356 LIBS=$ac_check_lib_save_LIBS
17358 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
17359 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
17360 if test $ac_cv_lib_c_inet_aton = yes; then
17364 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
17365 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
17366 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
17367 echo $ECHO_N "(cached) $ECHO_C" >&6
17369 ac_check_lib_save_LIBS=$LIBS
17370 LIBS="-lresolv $LIBS"
17371 cat >conftest.$ac_ext <<_ACEOF
17374 cat confdefs.h >>conftest.$ac_ext
17375 cat >>conftest.$ac_ext <<_ACEOF
17376 /* end confdefs.h. */
17378 /* Override any GCC internal prototype to avoid an error.
17379 Use char because int might match the return type of a GCC
17380 builtin and then its argument prototype would still apply. */
17388 return inet_aton ();
17393 rm -f conftest.$ac_objext conftest$ac_exeext
17394 if { (ac_try="$ac_link"
17395 case "(($ac_try" in
17396 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17397 *) ac_try_echo
=$ac_try;;
17399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17400 (eval "$ac_link") 2>conftest.er1
17402 grep -v '^ *+' conftest.er1
>conftest.err
17404 cat conftest.err
>&5
17405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406 (exit $ac_status); } && {
17407 test -z "$ac_c_werror_flag" ||
17408 test ! -s conftest.err
17409 } && test -s conftest
$ac_exeext &&
17410 $as_test_x conftest
$ac_exeext; then
17411 ac_cv_lib_resolv_inet_aton
=yes
17413 echo "$as_me: failed program was:" >&5
17414 sed 's/^/| /' conftest.
$ac_ext >&5
17416 ac_cv_lib_resolv_inet_aton
=no
17419 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17420 conftest
$ac_exeext conftest.
$ac_ext
17421 LIBS
=$ac_check_lib_save_LIBS
17423 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
17424 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
17425 if test $ac_cv_lib_resolv_inet_aton = yes; then
17426 cat >>confdefs.h
<<_ACEOF
17427 #define HAVE_LIBRESOLV 1
17430 LIBS
="-lresolv $LIBS"
17438 # On Tru64, chflags seems to be present, but calling it will
17440 { echo "$as_me:$LINENO: checking for chflags" >&5
17441 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
17442 if test "$cross_compiling" = yes; then
17443 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17444 See \`config.log' for more details." >&5
17445 echo "$as_me: error: cannot run test program while cross compiling
17446 See \`config.log' for more details." >&2;}
17447 { (exit 1); exit 1; }; }
17449 cat >conftest.
$ac_ext <<_ACEOF
17452 cat confdefs.h
>>conftest.
$ac_ext
17453 cat >>conftest.
$ac_ext <<_ACEOF
17454 /* end confdefs.h. */
17456 #include <sys/stat.h>
17457 #include <unistd.h>
17458 int main(int argc, char*argv[])
17460 if(chflags(argv[0], 0) != 0)
17466 rm -f conftest
$ac_exeext
17467 if { (ac_try
="$ac_link"
17468 case "(($ac_try" in
17469 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17470 *) ac_try_echo=$ac_try;;
17472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17473 (eval "$ac_link") 2>&5
17475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17477 { (case "(($ac_try" in
17478 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17479 *) ac_try_echo
=$ac_try;;
17481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17482 (eval "$ac_try") 2>&5
17484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17485 (exit $ac_status); }; }; then
17487 cat >>confdefs.h
<<\_ACEOF
17488 #define HAVE_CHFLAGS 1
17491 { echo "$as_me:$LINENO: result: yes" >&5
17492 echo "${ECHO_T}yes" >&6; }
17494 echo "$as_me: program exited with status $ac_status" >&5
17495 echo "$as_me: failed program was:" >&5
17496 sed 's/^/| /' conftest.
$ac_ext >&5
17498 ( exit $ac_status )
17499 { echo "$as_me:$LINENO: result: no" >&5
17500 echo "${ECHO_T}no" >&6; }
17503 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17508 { echo "$as_me:$LINENO: checking for lchflags" >&5
17509 echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
17510 if test "$cross_compiling" = yes; then
17511 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17512 See \`config.log' for more details." >&5
17513 echo "$as_me: error: cannot run test program while cross compiling
17514 See \`config.log' for more details." >&2;}
17515 { (exit 1); exit 1; }; }
17517 cat >conftest.
$ac_ext <<_ACEOF
17520 cat confdefs.h
>>conftest.
$ac_ext
17521 cat >>conftest.
$ac_ext <<_ACEOF
17522 /* end confdefs.h. */
17524 #include <sys/stat.h>
17525 #include <unistd.h>
17526 int main(int argc, char*argv[])
17528 if(lchflags(argv[0], 0) != 0)
17534 rm -f conftest
$ac_exeext
17535 if { (ac_try
="$ac_link"
17536 case "(($ac_try" in
17537 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17538 *) ac_try_echo=$ac_try;;
17540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17541 (eval "$ac_link") 2>&5
17543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17545 { (case "(($ac_try" in
17546 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17547 *) ac_try_echo
=$ac_try;;
17549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17550 (eval "$ac_try") 2>&5
17552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17553 (exit $ac_status); }; }; then
17555 cat >>confdefs.h
<<\_ACEOF
17556 #define HAVE_LCHFLAGS 1
17559 { echo "$as_me:$LINENO: result: yes" >&5
17560 echo "${ECHO_T}yes" >&6; }
17562 echo "$as_me: program exited with status $ac_status" >&5
17563 echo "$as_me: failed program was:" >&5
17564 sed 's/^/| /' conftest.
$ac_ext >&5
17566 ( exit $ac_status )
17567 { echo "$as_me:$LINENO: result: no" >&5
17568 echo "${ECHO_T}no" >&6; }
17571 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17576 case $ac_sys_system/$ac_sys_release in
17578 _CUR_CFLAGS
="${CFLAGS}"
17579 _CUR_LDFLAGS
="${LDFLAGS}"
17580 CFLAGS
="${CFLAGS} -Wl,-search_paths_first"
17581 LDFLAGS
="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
17585 { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
17586 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
17587 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
17588 echo $ECHO_N "(cached) $ECHO_C" >&6
17590 ac_check_lib_save_LIBS
=$LIBS
17592 cat >conftest.
$ac_ext <<_ACEOF
17595 cat confdefs.h
>>conftest.
$ac_ext
17596 cat >>conftest.
$ac_ext <<_ACEOF
17597 /* end confdefs.h. */
17599 /* Override any GCC internal prototype to avoid an error.
17600 Use char because int might match the return type of a GCC
17601 builtin and then its argument prototype would still apply. */
17605 char inflateCopy ();
17609 return inflateCopy ();
17614 rm -f conftest.
$ac_objext conftest
$ac_exeext
17615 if { (ac_try
="$ac_link"
17616 case "(($ac_try" in
17617 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17618 *) ac_try_echo=$ac_try;;
17620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17621 (eval "$ac_link") 2>conftest.er1
17623 grep -v '^ *+' conftest.er1 >conftest.err
17625 cat conftest.err >&5
17626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17627 (exit $ac_status); } && {
17628 test -z "$ac_c_werror_flag" ||
17629 test ! -s conftest.err
17630 } && test -s conftest$ac_exeext &&
17631 $as_test_x conftest$ac_exeext; then
17632 ac_cv_lib_z_inflateCopy=yes
17634 echo "$as_me: failed program was:" >&5
17635 sed 's/^/| /' conftest.$ac_ext >&5
17637 ac_cv_lib_z_inflateCopy=no
17640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17641 conftest$ac_exeext conftest.$ac_ext
17642 LIBS=$ac_check_lib_save_LIBS
17644 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
17645 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
17646 if test $ac_cv_lib_z_inflateCopy = yes; then
17648 cat >>confdefs.h <<\_ACEOF
17649 #define HAVE_ZLIB_COPY 1
17655 case $ac_sys_system/$ac_sys_release in
17657 CFLAGS="${_CUR_CFLAGS}"
17658 LDFLAGS="${_CUR_LDFLAGS}"
17662 { echo "$as_me:$LINENO: checking for hstrerror" >&5
17663 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
17664 cat >conftest.$ac_ext <<_ACEOF
17667 cat confdefs.h >>conftest.$ac_ext
17668 cat >>conftest.$ac_ext <<_ACEOF
17669 /* end confdefs.h. */
17671 #include "confdefs.h"
17677 void* p = hstrerror; hstrerror(0)
17682 rm -f conftest.$ac_objext conftest$ac_exeext
17683 if { (ac_try="$ac_link"
17684 case "(($ac_try" in
17685 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17686 *) ac_try_echo
=$ac_try;;
17688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17689 (eval "$ac_link") 2>conftest.er1
17691 grep -v '^ *+' conftest.er1
>conftest.err
17693 cat conftest.err
>&5
17694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695 (exit $ac_status); } && {
17696 test -z "$ac_c_werror_flag" ||
17697 test ! -s conftest.err
17698 } && test -s conftest
$ac_exeext &&
17699 $as_test_x conftest
$ac_exeext; then
17701 cat >>confdefs.h
<<\_ACEOF
17702 #define HAVE_HSTRERROR 1
17705 { echo "$as_me:$LINENO: result: yes" >&5
17706 echo "${ECHO_T}yes" >&6; }
17708 echo "$as_me: failed program was:" >&5
17709 sed 's/^/| /' conftest.
$ac_ext >&5
17711 { echo "$as_me:$LINENO: result: no" >&5
17712 echo "${ECHO_T}no" >&6; }
17716 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17717 conftest
$ac_exeext conftest.
$ac_ext
17719 { echo "$as_me:$LINENO: checking for inet_aton" >&5
17720 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
17721 cat >conftest.
$ac_ext <<_ACEOF
17724 cat confdefs.h
>>conftest.
$ac_ext
17725 cat >>conftest.
$ac_ext <<_ACEOF
17726 /* end confdefs.h. */
17728 #include "confdefs.h"
17729 #include <sys/types.h>
17730 #include <sys/socket.h>
17731 #include <netinet/in.h>
17732 #include <arpa/inet.h>
17737 void* p = inet_aton;inet_aton(0,0)
17742 rm -f conftest.
$ac_objext conftest
$ac_exeext
17743 if { (ac_try
="$ac_link"
17744 case "(($ac_try" in
17745 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17746 *) ac_try_echo=$ac_try;;
17748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17749 (eval "$ac_link") 2>conftest.er1
17751 grep -v '^ *+' conftest.er1 >conftest.err
17753 cat conftest.err >&5
17754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17755 (exit $ac_status); } && {
17756 test -z "$ac_c_werror_flag" ||
17757 test ! -s conftest.err
17758 } && test -s conftest$ac_exeext &&
17759 $as_test_x conftest$ac_exeext; then
17761 cat >>confdefs.h <<\_ACEOF
17762 #define HAVE_INET_ATON 1
17765 { echo "$as_me:$LINENO: result: yes" >&5
17766 echo "${ECHO_T}yes" >&6; }
17768 echo "$as_me: failed program was:" >&5
17769 sed 's/^/| /' conftest.$ac_ext >&5
17771 { echo "$as_me:$LINENO: result: no" >&5
17772 echo "${ECHO_T}no" >&6; }
17776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17777 conftest$ac_exeext conftest.$ac_ext
17779 { echo "$as_me:$LINENO: checking for inet_pton" >&5
17780 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
17781 cat >conftest.$ac_ext <<_ACEOF
17784 cat confdefs.h >>conftest.$ac_ext
17785 cat >>conftest.$ac_ext <<_ACEOF
17786 /* end confdefs.h. */
17788 #include "confdefs.h"
17789 #include <sys/types.h>
17790 #include <sys/socket.h>
17791 #include <netinet/in.h>
17792 #include <arpa/inet.h>
17797 void* p = inet_pton
17802 rm -f conftest.$ac_objext
17803 if { (ac_try="$ac_compile"
17804 case "(($ac_try" in
17805 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17806 *) ac_try_echo
=$ac_try;;
17808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17809 (eval "$ac_compile") 2>conftest.er1
17811 grep -v '^ *+' conftest.er1
>conftest.err
17813 cat conftest.err
>&5
17814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17815 (exit $ac_status); } && {
17816 test -z "$ac_c_werror_flag" ||
17817 test ! -s conftest.err
17818 } && test -s conftest.
$ac_objext; then
17820 cat >>confdefs.h
<<\_ACEOF
17821 #define HAVE_INET_PTON 1
17824 { echo "$as_me:$LINENO: result: yes" >&5
17825 echo "${ECHO_T}yes" >&6; }
17827 echo "$as_me: failed program was:" >&5
17828 sed 's/^/| /' conftest.
$ac_ext >&5
17830 { echo "$as_me:$LINENO: result: no" >&5
17831 echo "${ECHO_T}no" >&6; }
17835 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17837 # On some systems, setgroups is in unistd.h, on others, in grp.h
17838 { echo "$as_me:$LINENO: checking for setgroups" >&5
17839 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
17840 cat >conftest.
$ac_ext <<_ACEOF
17843 cat confdefs.h
>>conftest.
$ac_ext
17844 cat >>conftest.
$ac_ext <<_ACEOF
17845 /* end confdefs.h. */
17847 #include "confdefs.h"
17848 #include <unistd.h>
17856 void* p = setgroups
17861 rm -f conftest.
$ac_objext
17862 if { (ac_try
="$ac_compile"
17863 case "(($ac_try" in
17864 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17865 *) ac_try_echo=$ac_try;;
17867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17868 (eval "$ac_compile") 2>conftest.er1
17870 grep -v '^ *+' conftest.er1 >conftest.err
17872 cat conftest.err >&5
17873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874 (exit $ac_status); } && {
17875 test -z "$ac_c_werror_flag" ||
17876 test ! -s conftest.err
17877 } && test -s conftest.$ac_objext; then
17879 cat >>confdefs.h <<\_ACEOF
17880 #define HAVE_SETGROUPS 1
17883 { echo "$as_me:$LINENO: result: yes" >&5
17884 echo "${ECHO_T}yes" >&6; }
17886 echo "$as_me: failed program was:" >&5
17887 sed 's/^/| /' conftest.$ac_ext >&5
17889 { echo "$as_me:$LINENO: result: no" >&5
17890 echo "${ECHO_T}no" >&6; }
17894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17896 # check for openpty and forkpty
17899 for ac_func in openpty
17901 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
17902 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17903 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17904 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17905 echo $ECHO_N "(cached) $ECHO_C" >&6
17907 cat >conftest.$ac_ext <<_ACEOF
17910 cat confdefs.h >>conftest.$ac_ext
17911 cat >>conftest.$ac_ext <<_ACEOF
17912 /* end confdefs.h. */
17913 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17914 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17915 #define $ac_func innocuous_$ac_func
17917 /* System header to define __stub macros and hopefully few prototypes,
17918 which can conflict with char $ac_func (); below.
17919 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17920 <limits.h> exists even on freestanding compilers. */
17923 # include <limits.h>
17925 # include <assert.h>
17930 /* Override any GCC internal prototype to avoid an error.
17931 Use char because int might match the return type of a GCC
17932 builtin and then its argument prototype would still apply. */
17937 /* The GNU C library defines this for functions which it implements
17938 to always fail with ENOSYS. Some functions are actually named
17939 something starting with __ and the normal name is an alias. */
17940 #if defined __stub_$ac_func || defined __stub___$ac_func
17947 return $ac_func ();
17952 rm -f conftest.$ac_objext conftest$ac_exeext
17953 if { (ac_try="$ac_link"
17954 case "(($ac_try" in
17955 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17956 *) ac_try_echo
=$ac_try;;
17958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17959 (eval "$ac_link") 2>conftest.er1
17961 grep -v '^ *+' conftest.er1
>conftest.err
17963 cat conftest.err
>&5
17964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17965 (exit $ac_status); } && {
17966 test -z "$ac_c_werror_flag" ||
17967 test ! -s conftest.err
17968 } && test -s conftest
$ac_exeext &&
17969 $as_test_x conftest
$ac_exeext; then
17970 eval "$as_ac_var=yes"
17972 echo "$as_me: failed program was:" >&5
17973 sed 's/^/| /' conftest.
$ac_ext >&5
17975 eval "$as_ac_var=no"
17978 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17979 conftest
$ac_exeext conftest.
$ac_ext
17981 ac_res
=`eval echo '${'$as_ac_var'}'`
17982 { echo "$as_me:$LINENO: result: $ac_res" >&5
17983 echo "${ECHO_T}$ac_res" >&6; }
17984 if test `eval echo '${'$as_ac_var'}'` = yes; then
17985 cat >>confdefs.h
<<_ACEOF
17986 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17990 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
17991 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
17992 if test "${ac_cv_lib_util_openpty+set}" = set; then
17993 echo $ECHO_N "(cached) $ECHO_C" >&6
17995 ac_check_lib_save_LIBS
=$LIBS
17996 LIBS
="-lutil $LIBS"
17997 cat >conftest.
$ac_ext <<_ACEOF
18000 cat confdefs.h
>>conftest.
$ac_ext
18001 cat >>conftest.
$ac_ext <<_ACEOF
18002 /* end confdefs.h. */
18004 /* Override any GCC internal prototype to avoid an error.
18005 Use char because int might match the return type of a GCC
18006 builtin and then its argument prototype would still apply. */
18019 rm -f conftest.
$ac_objext conftest
$ac_exeext
18020 if { (ac_try
="$ac_link"
18021 case "(($ac_try" in
18022 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18023 *) ac_try_echo=$ac_try;;
18025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18026 (eval "$ac_link") 2>conftest.er1
18028 grep -v '^ *+' conftest.er1 >conftest.err
18030 cat conftest.err >&5
18031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18032 (exit $ac_status); } && {
18033 test -z "$ac_c_werror_flag" ||
18034 test ! -s conftest.err
18035 } && test -s conftest$ac_exeext &&
18036 $as_test_x conftest$ac_exeext; then
18037 ac_cv_lib_util_openpty=yes
18039 echo "$as_me: failed program was:" >&5
18040 sed 's/^/| /' conftest.$ac_ext >&5
18042 ac_cv_lib_util_openpty=no
18045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18046 conftest$ac_exeext conftest.$ac_ext
18047 LIBS=$ac_check_lib_save_LIBS
18049 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
18050 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
18051 if test $ac_cv_lib_util_openpty = yes; then
18052 cat >>confdefs.h <<\_ACEOF
18053 #define HAVE_OPENPTY 1
18055 LIBS="$LIBS -lutil"
18057 { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
18058 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
18059 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
18060 echo $ECHO_N "(cached) $ECHO_C" >&6
18062 ac_check_lib_save_LIBS=$LIBS
18064 cat >conftest.$ac_ext <<_ACEOF
18067 cat confdefs.h >>conftest.$ac_ext
18068 cat >>conftest.$ac_ext <<_ACEOF
18069 /* end confdefs.h. */
18071 /* Override any GCC internal prototype to avoid an error.
18072 Use char because int might match the return type of a GCC
18073 builtin and then its argument prototype would still apply. */
18086 rm -f conftest.$ac_objext conftest$ac_exeext
18087 if { (ac_try="$ac_link"
18088 case "(($ac_try" in
18089 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18090 *) ac_try_echo
=$ac_try;;
18092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18093 (eval "$ac_link") 2>conftest.er1
18095 grep -v '^ *+' conftest.er1
>conftest.err
18097 cat conftest.err
>&5
18098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099 (exit $ac_status); } && {
18100 test -z "$ac_c_werror_flag" ||
18101 test ! -s conftest.err
18102 } && test -s conftest
$ac_exeext &&
18103 $as_test_x conftest
$ac_exeext; then
18104 ac_cv_lib_bsd_openpty
=yes
18106 echo "$as_me: failed program was:" >&5
18107 sed 's/^/| /' conftest.
$ac_ext >&5
18109 ac_cv_lib_bsd_openpty
=no
18112 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18113 conftest
$ac_exeext conftest.
$ac_ext
18114 LIBS
=$ac_check_lib_save_LIBS
18116 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
18117 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
18118 if test $ac_cv_lib_bsd_openpty = yes; then
18119 cat >>confdefs.h
<<\_ACEOF
18120 #define HAVE_OPENPTY 1
18133 for ac_func
in forkpty
18135 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18136 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18137 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18138 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18139 echo $ECHO_N "(cached) $ECHO_C" >&6
18141 cat >conftest.
$ac_ext <<_ACEOF
18144 cat confdefs.h
>>conftest.
$ac_ext
18145 cat >>conftest.
$ac_ext <<_ACEOF
18146 /* end confdefs.h. */
18147 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18148 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18149 #define $ac_func innocuous_$ac_func
18151 /* System header to define __stub macros and hopefully few prototypes,
18152 which can conflict with char $ac_func (); below.
18153 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18154 <limits.h> exists even on freestanding compilers. */
18157 # include <limits.h>
18159 # include <assert.h>
18164 /* Override any GCC internal prototype to avoid an error.
18165 Use char because int might match the return type of a GCC
18166 builtin and then its argument prototype would still apply. */
18171 /* The GNU C library defines this for functions which it implements
18172 to always fail with ENOSYS. Some functions are actually named
18173 something starting with __ and the normal name is an alias. */
18174 #if defined __stub_$ac_func || defined __stub___$ac_func
18181 return $ac_func ();
18186 rm -f conftest.
$ac_objext conftest
$ac_exeext
18187 if { (ac_try
="$ac_link"
18188 case "(($ac_try" in
18189 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18190 *) ac_try_echo=$ac_try;;
18192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18193 (eval "$ac_link") 2>conftest.er1
18195 grep -v '^ *+' conftest.er1 >conftest.err
18197 cat conftest.err >&5
18198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18199 (exit $ac_status); } && {
18200 test -z "$ac_c_werror_flag" ||
18201 test ! -s conftest.err
18202 } && test -s conftest$ac_exeext &&
18203 $as_test_x conftest$ac_exeext; then
18204 eval "$as_ac_var=yes"
18206 echo "$as_me: failed program was:" >&5
18207 sed 's/^/| /' conftest.$ac_ext >&5
18209 eval "$as_ac_var=no"
18212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18213 conftest$ac_exeext conftest.$ac_ext
18215 ac_res=`eval echo '${'$as_ac_var'}'`
18216 { echo "$as_me:$LINENO: result: $ac_res" >&5
18217 echo "${ECHO_T}$ac_res" >&6; }
18218 if test `eval echo '${'$as_ac_var'}'` = yes; then
18219 cat >>confdefs.h <<_ACEOF
18220 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18224 { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
18225 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
18226 if test "${ac_cv_lib_util_forkpty+set}" = set; then
18227 echo $ECHO_N "(cached) $ECHO_C" >&6
18229 ac_check_lib_save_LIBS=$LIBS
18230 LIBS="-lutil $LIBS"
18231 cat >conftest.$ac_ext <<_ACEOF
18234 cat confdefs.h >>conftest.$ac_ext
18235 cat >>conftest.$ac_ext <<_ACEOF
18236 /* end confdefs.h. */
18238 /* Override any GCC internal prototype to avoid an error.
18239 Use char because int might match the return type of a GCC
18240 builtin and then its argument prototype would still apply. */
18253 rm -f conftest.$ac_objext conftest$ac_exeext
18254 if { (ac_try="$ac_link"
18255 case "(($ac_try" in
18256 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18257 *) ac_try_echo
=$ac_try;;
18259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18260 (eval "$ac_link") 2>conftest.er1
18262 grep -v '^ *+' conftest.er1
>conftest.err
18264 cat conftest.err
>&5
18265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18266 (exit $ac_status); } && {
18267 test -z "$ac_c_werror_flag" ||
18268 test ! -s conftest.err
18269 } && test -s conftest
$ac_exeext &&
18270 $as_test_x conftest
$ac_exeext; then
18271 ac_cv_lib_util_forkpty
=yes
18273 echo "$as_me: failed program was:" >&5
18274 sed 's/^/| /' conftest.
$ac_ext >&5
18276 ac_cv_lib_util_forkpty
=no
18279 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18280 conftest
$ac_exeext conftest.
$ac_ext
18281 LIBS
=$ac_check_lib_save_LIBS
18283 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
18284 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
18285 if test $ac_cv_lib_util_forkpty = yes; then
18286 cat >>confdefs.h
<<\_ACEOF
18287 #define HAVE_FORKPTY 1
18289 LIBS
="$LIBS -lutil"
18291 { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
18292 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
18293 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
18294 echo $ECHO_N "(cached) $ECHO_C" >&6
18296 ac_check_lib_save_LIBS
=$LIBS
18298 cat >conftest.
$ac_ext <<_ACEOF
18301 cat confdefs.h
>>conftest.
$ac_ext
18302 cat >>conftest.
$ac_ext <<_ACEOF
18303 /* end confdefs.h. */
18305 /* Override any GCC internal prototype to avoid an error.
18306 Use char because int might match the return type of a GCC
18307 builtin and then its argument prototype would still apply. */
18320 rm -f conftest.
$ac_objext conftest
$ac_exeext
18321 if { (ac_try
="$ac_link"
18322 case "(($ac_try" in
18323 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18324 *) ac_try_echo=$ac_try;;
18326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18327 (eval "$ac_link") 2>conftest.er1
18329 grep -v '^ *+' conftest.er1 >conftest.err
18331 cat conftest.err >&5
18332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18333 (exit $ac_status); } && {
18334 test -z "$ac_c_werror_flag" ||
18335 test ! -s conftest.err
18336 } && test -s conftest$ac_exeext &&
18337 $as_test_x conftest$ac_exeext; then
18338 ac_cv_lib_bsd_forkpty=yes
18340 echo "$as_me: failed program was:" >&5
18341 sed 's/^/| /' conftest.$ac_ext >&5
18343 ac_cv_lib_bsd_forkpty=no
18346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18347 conftest$ac_exeext conftest.$ac_ext
18348 LIBS=$ac_check_lib_save_LIBS
18350 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
18351 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
18352 if test $ac_cv_lib_bsd_forkpty = yes; then
18353 cat >>confdefs.h <<\_ACEOF
18354 #define HAVE_FORKPTY 1
18369 for ac_func in memmove
18371 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18372 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18373 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18374 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18375 echo $ECHO_N "(cached) $ECHO_C" >&6
18377 cat >conftest.$ac_ext <<_ACEOF
18380 cat confdefs.h >>conftest.$ac_ext
18381 cat >>conftest.$ac_ext <<_ACEOF
18382 /* end confdefs.h. */
18383 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18385 #define $ac_func innocuous_$ac_func
18387 /* System header to define __stub macros and hopefully few prototypes,
18388 which can conflict with char $ac_func (); below.
18389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18390 <limits.h> exists even on freestanding compilers. */
18393 # include <limits.h>
18395 # include <assert.h>
18400 /* Override any GCC internal prototype to avoid an error.
18401 Use char because int might match the return type of a GCC
18402 builtin and then its argument prototype would still apply. */
18407 /* The GNU C library defines this for functions which it implements
18408 to always fail with ENOSYS. Some functions are actually named
18409 something starting with __ and the normal name is an alias. */
18410 #if defined __stub_$ac_func || defined __stub___$ac_func
18417 return $ac_func ();
18422 rm -f conftest.$ac_objext conftest$ac_exeext
18423 if { (ac_try="$ac_link"
18424 case "(($ac_try" in
18425 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18426 *) ac_try_echo
=$ac_try;;
18428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18429 (eval "$ac_link") 2>conftest.er1
18431 grep -v '^ *+' conftest.er1
>conftest.err
18433 cat conftest.err
>&5
18434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18435 (exit $ac_status); } && {
18436 test -z "$ac_c_werror_flag" ||
18437 test ! -s conftest.err
18438 } && test -s conftest
$ac_exeext &&
18439 $as_test_x conftest
$ac_exeext; then
18440 eval "$as_ac_var=yes"
18442 echo "$as_me: failed program was:" >&5
18443 sed 's/^/| /' conftest.
$ac_ext >&5
18445 eval "$as_ac_var=no"
18448 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18449 conftest
$ac_exeext conftest.
$ac_ext
18451 ac_res
=`eval echo '${'$as_ac_var'}'`
18452 { echo "$as_me:$LINENO: result: $ac_res" >&5
18453 echo "${ECHO_T}$ac_res" >&6; }
18454 if test `eval echo '${'$as_ac_var'}'` = yes; then
18455 cat >>confdefs.h
<<_ACEOF
18456 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18463 # check for long file support functions
18470 for ac_func
in fseek64 fseeko fstatvfs ftell64 ftello statvfs
18472 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18473 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18474 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18475 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18476 echo $ECHO_N "(cached) $ECHO_C" >&6
18478 cat >conftest.
$ac_ext <<_ACEOF
18481 cat confdefs.h
>>conftest.
$ac_ext
18482 cat >>conftest.
$ac_ext <<_ACEOF
18483 /* end confdefs.h. */
18484 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18485 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18486 #define $ac_func innocuous_$ac_func
18488 /* System header to define __stub macros and hopefully few prototypes,
18489 which can conflict with char $ac_func (); below.
18490 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18491 <limits.h> exists even on freestanding compilers. */
18494 # include <limits.h>
18496 # include <assert.h>
18501 /* Override any GCC internal prototype to avoid an error.
18502 Use char because int might match the return type of a GCC
18503 builtin and then its argument prototype would still apply. */
18508 /* The GNU C library defines this for functions which it implements
18509 to always fail with ENOSYS. Some functions are actually named
18510 something starting with __ and the normal name is an alias. */
18511 #if defined __stub_$ac_func || defined __stub___$ac_func
18518 return $ac_func ();
18523 rm -f conftest.
$ac_objext conftest
$ac_exeext
18524 if { (ac_try
="$ac_link"
18525 case "(($ac_try" in
18526 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18527 *) ac_try_echo=$ac_try;;
18529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18530 (eval "$ac_link") 2>conftest.er1
18532 grep -v '^ *+' conftest.er1 >conftest.err
18534 cat conftest.err >&5
18535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536 (exit $ac_status); } && {
18537 test -z "$ac_c_werror_flag" ||
18538 test ! -s conftest.err
18539 } && test -s conftest$ac_exeext &&
18540 $as_test_x conftest$ac_exeext; then
18541 eval "$as_ac_var=yes"
18543 echo "$as_me: failed program was:" >&5
18544 sed 's/^/| /' conftest.$ac_ext >&5
18546 eval "$as_ac_var=no"
18549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18550 conftest$ac_exeext conftest.$ac_ext
18552 ac_res=`eval echo '${'$as_ac_var'}'`
18553 { echo "$as_me:$LINENO: result: $ac_res" >&5
18554 echo "${ECHO_T}$ac_res" >&6; }
18555 if test `eval echo '${'$as_ac_var'}'` = yes; then
18556 cat >>confdefs.h <<_ACEOF
18557 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18567 for ac_func in dup2 getcwd strdup
18569 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18570 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18571 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18572 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18573 echo $ECHO_N "(cached) $ECHO_C" >&6
18575 cat >conftest.$ac_ext <<_ACEOF
18578 cat confdefs.h >>conftest.$ac_ext
18579 cat >>conftest.$ac_ext <<_ACEOF
18580 /* end confdefs.h. */
18581 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18582 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18583 #define $ac_func innocuous_$ac_func
18585 /* System header to define __stub macros and hopefully few prototypes,
18586 which can conflict with char $ac_func (); below.
18587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18588 <limits.h> exists even on freestanding compilers. */
18591 # include <limits.h>
18593 # include <assert.h>
18598 /* Override any GCC internal prototype to avoid an error.
18599 Use char because int might match the return type of a GCC
18600 builtin and then its argument prototype would still apply. */
18605 /* The GNU C library defines this for functions which it implements
18606 to always fail with ENOSYS. Some functions are actually named
18607 something starting with __ and the normal name is an alias. */
18608 #if defined __stub_$ac_func || defined __stub___$ac_func
18615 return $ac_func ();
18620 rm -f conftest.$ac_objext conftest$ac_exeext
18621 if { (ac_try="$ac_link"
18622 case "(($ac_try" in
18623 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18624 *) ac_try_echo
=$ac_try;;
18626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18627 (eval "$ac_link") 2>conftest.er1
18629 grep -v '^ *+' conftest.er1
>conftest.err
18631 cat conftest.err
>&5
18632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633 (exit $ac_status); } && {
18634 test -z "$ac_c_werror_flag" ||
18635 test ! -s conftest.err
18636 } && test -s conftest
$ac_exeext &&
18637 $as_test_x conftest
$ac_exeext; then
18638 eval "$as_ac_var=yes"
18640 echo "$as_me: failed program was:" >&5
18641 sed 's/^/| /' conftest.
$ac_ext >&5
18643 eval "$as_ac_var=no"
18646 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18647 conftest
$ac_exeext conftest.
$ac_ext
18649 ac_res
=`eval echo '${'$as_ac_var'}'`
18650 { echo "$as_me:$LINENO: result: $ac_res" >&5
18651 echo "${ECHO_T}$ac_res" >&6; }
18652 if test `eval echo '${'$as_ac_var'}'` = yes; then
18653 cat >>confdefs.h
<<_ACEOF
18654 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18658 case " $LIBOBJS " in
18659 *" $ac_func.$ac_objext "* ) ;;
18660 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
18669 for ac_func
in getpgrp
18671 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18672 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18673 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18674 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18675 echo $ECHO_N "(cached) $ECHO_C" >&6
18677 cat >conftest.
$ac_ext <<_ACEOF
18680 cat confdefs.h
>>conftest.
$ac_ext
18681 cat >>conftest.
$ac_ext <<_ACEOF
18682 /* end confdefs.h. */
18683 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18684 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18685 #define $ac_func innocuous_$ac_func
18687 /* System header to define __stub macros and hopefully few prototypes,
18688 which can conflict with char $ac_func (); below.
18689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18690 <limits.h> exists even on freestanding compilers. */
18693 # include <limits.h>
18695 # include <assert.h>
18700 /* Override any GCC internal prototype to avoid an error.
18701 Use char because int might match the return type of a GCC
18702 builtin and then its argument prototype would still apply. */
18707 /* The GNU C library defines this for functions which it implements
18708 to always fail with ENOSYS. Some functions are actually named
18709 something starting with __ and the normal name is an alias. */
18710 #if defined __stub_$ac_func || defined __stub___$ac_func
18717 return $ac_func ();
18722 rm -f conftest.
$ac_objext conftest
$ac_exeext
18723 if { (ac_try
="$ac_link"
18724 case "(($ac_try" in
18725 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18726 *) ac_try_echo=$ac_try;;
18728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18729 (eval "$ac_link") 2>conftest.er1
18731 grep -v '^ *+' conftest.er1 >conftest.err
18733 cat conftest.err >&5
18734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18735 (exit $ac_status); } && {
18736 test -z "$ac_c_werror_flag" ||
18737 test ! -s conftest.err
18738 } && test -s conftest$ac_exeext &&
18739 $as_test_x conftest$ac_exeext; then
18740 eval "$as_ac_var=yes"
18742 echo "$as_me: failed program was:" >&5
18743 sed 's/^/| /' conftest.$ac_ext >&5
18745 eval "$as_ac_var=no"
18748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18749 conftest$ac_exeext conftest.$ac_ext
18751 ac_res=`eval echo '${'$as_ac_var'}'`
18752 { echo "$as_me:$LINENO: result: $ac_res" >&5
18753 echo "${ECHO_T}$ac_res" >&6; }
18754 if test `eval echo '${'$as_ac_var'}'` = yes; then
18755 cat >>confdefs.h <<_ACEOF
18756 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18758 cat >conftest.$ac_ext <<_ACEOF
18761 cat confdefs.h >>conftest.$ac_ext
18762 cat >>conftest.$ac_ext <<_ACEOF
18763 /* end confdefs.h. */
18764 #include <unistd.h>
18773 rm -f conftest.$ac_objext
18774 if { (ac_try="$ac_compile"
18775 case "(($ac_try" in
18776 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18777 *) ac_try_echo
=$ac_try;;
18779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18780 (eval "$ac_compile") 2>conftest.er1
18782 grep -v '^ *+' conftest.er1
>conftest.err
18784 cat conftest.err
>&5
18785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786 (exit $ac_status); } && {
18787 test -z "$ac_c_werror_flag" ||
18788 test ! -s conftest.err
18789 } && test -s conftest.
$ac_objext; then
18791 cat >>confdefs.h
<<\_ACEOF
18792 #define GETPGRP_HAVE_ARG 1
18797 echo "$as_me: failed program was:" >&5
18798 sed 's/^/| /' conftest.
$ac_ext >&5
18803 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18809 for ac_func
in setpgrp
18811 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18812 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18813 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18814 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18815 echo $ECHO_N "(cached) $ECHO_C" >&6
18817 cat >conftest.
$ac_ext <<_ACEOF
18820 cat confdefs.h
>>conftest.
$ac_ext
18821 cat >>conftest.
$ac_ext <<_ACEOF
18822 /* end confdefs.h. */
18823 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18824 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18825 #define $ac_func innocuous_$ac_func
18827 /* System header to define __stub macros and hopefully few prototypes,
18828 which can conflict with char $ac_func (); below.
18829 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18830 <limits.h> exists even on freestanding compilers. */
18833 # include <limits.h>
18835 # include <assert.h>
18840 /* Override any GCC internal prototype to avoid an error.
18841 Use char because int might match the return type of a GCC
18842 builtin and then its argument prototype would still apply. */
18847 /* The GNU C library defines this for functions which it implements
18848 to always fail with ENOSYS. Some functions are actually named
18849 something starting with __ and the normal name is an alias. */
18850 #if defined __stub_$ac_func || defined __stub___$ac_func
18857 return $ac_func ();
18862 rm -f conftest.
$ac_objext conftest
$ac_exeext
18863 if { (ac_try
="$ac_link"
18864 case "(($ac_try" in
18865 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18866 *) ac_try_echo=$ac_try;;
18868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18869 (eval "$ac_link") 2>conftest.er1
18871 grep -v '^ *+' conftest.er1 >conftest.err
18873 cat conftest.err >&5
18874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18875 (exit $ac_status); } && {
18876 test -z "$ac_c_werror_flag" ||
18877 test ! -s conftest.err
18878 } && test -s conftest$ac_exeext &&
18879 $as_test_x conftest$ac_exeext; then
18880 eval "$as_ac_var=yes"
18882 echo "$as_me: failed program was:" >&5
18883 sed 's/^/| /' conftest.$ac_ext >&5
18885 eval "$as_ac_var=no"
18888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18889 conftest$ac_exeext conftest.$ac_ext
18891 ac_res=`eval echo '${'$as_ac_var'}'`
18892 { echo "$as_me:$LINENO: result: $ac_res" >&5
18893 echo "${ECHO_T}$ac_res" >&6; }
18894 if test `eval echo '${'$as_ac_var'}'` = yes; then
18895 cat >>confdefs.h <<_ACEOF
18896 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18898 cat >conftest.$ac_ext <<_ACEOF
18901 cat confdefs.h >>conftest.$ac_ext
18902 cat >>conftest.$ac_ext <<_ACEOF
18903 /* end confdefs.h. */
18904 #include <unistd.h>
18913 rm -f conftest.$ac_objext
18914 if { (ac_try="$ac_compile"
18915 case "(($ac_try" in
18916 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18917 *) ac_try_echo
=$ac_try;;
18919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18920 (eval "$ac_compile") 2>conftest.er1
18922 grep -v '^ *+' conftest.er1
>conftest.err
18924 cat conftest.err
>&5
18925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18926 (exit $ac_status); } && {
18927 test -z "$ac_c_werror_flag" ||
18928 test ! -s conftest.err
18929 } && test -s conftest.
$ac_objext; then
18931 cat >>confdefs.h
<<\_ACEOF
18932 #define SETPGRP_HAVE_ARG 1
18937 echo "$as_me: failed program was:" >&5
18938 sed 's/^/| /' conftest.
$ac_ext >&5
18943 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18949 for ac_func
in gettimeofday
18951 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18952 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18953 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18954 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18955 echo $ECHO_N "(cached) $ECHO_C" >&6
18957 cat >conftest.
$ac_ext <<_ACEOF
18960 cat confdefs.h
>>conftest.
$ac_ext
18961 cat >>conftest.
$ac_ext <<_ACEOF
18962 /* end confdefs.h. */
18963 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18965 #define $ac_func innocuous_$ac_func
18967 /* System header to define __stub macros and hopefully few prototypes,
18968 which can conflict with char $ac_func (); below.
18969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18970 <limits.h> exists even on freestanding compilers. */
18973 # include <limits.h>
18975 # include <assert.h>
18980 /* Override any GCC internal prototype to avoid an error.
18981 Use char because int might match the return type of a GCC
18982 builtin and then its argument prototype would still apply. */
18987 /* The GNU C library defines this for functions which it implements
18988 to always fail with ENOSYS. Some functions are actually named
18989 something starting with __ and the normal name is an alias. */
18990 #if defined __stub_$ac_func || defined __stub___$ac_func
18997 return $ac_func ();
19002 rm -f conftest.
$ac_objext conftest
$ac_exeext
19003 if { (ac_try
="$ac_link"
19004 case "(($ac_try" in
19005 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19006 *) ac_try_echo=$ac_try;;
19008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19009 (eval "$ac_link") 2>conftest.er1
19011 grep -v '^ *+' conftest.er1 >conftest.err
19013 cat conftest.err >&5
19014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19015 (exit $ac_status); } && {
19016 test -z "$ac_c_werror_flag" ||
19017 test ! -s conftest.err
19018 } && test -s conftest$ac_exeext &&
19019 $as_test_x conftest$ac_exeext; then
19020 eval "$as_ac_var=yes"
19022 echo "$as_me: failed program was:" >&5
19023 sed 's/^/| /' conftest.$ac_ext >&5
19025 eval "$as_ac_var=no"
19028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19029 conftest$ac_exeext conftest.$ac_ext
19031 ac_res=`eval echo '${'$as_ac_var'}'`
19032 { echo "$as_me:$LINENO: result: $ac_res" >&5
19033 echo "${ECHO_T}$ac_res" >&6; }
19034 if test `eval echo '${'$as_ac_var'}'` = yes; then
19035 cat >>confdefs.h <<_ACEOF
19036 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
19038 cat >conftest.$ac_ext <<_ACEOF
19041 cat confdefs.h >>conftest.$ac_ext
19042 cat >>conftest.$ac_ext <<_ACEOF
19043 /* end confdefs.h. */
19044 #include <sys/time.h>
19048 gettimeofday((struct timeval*)0,(struct timezone*)0);
19053 rm -f conftest.$ac_objext
19054 if { (ac_try="$ac_compile"
19055 case "(($ac_try" in
19056 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19057 *) ac_try_echo
=$ac_try;;
19059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19060 (eval "$ac_compile") 2>conftest.er1
19062 grep -v '^ *+' conftest.er1
>conftest.err
19064 cat conftest.err
>&5
19065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066 (exit $ac_status); } && {
19067 test -z "$ac_c_werror_flag" ||
19068 test ! -s conftest.err
19069 } && test -s conftest.
$ac_objext; then
19072 echo "$as_me: failed program was:" >&5
19073 sed 's/^/| /' conftest.
$ac_ext >&5
19076 cat >>confdefs.h
<<\_ACEOF
19077 #define GETTIMEOFDAY_NO_TZ 1
19083 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19089 { echo "$as_me:$LINENO: checking for major" >&5
19090 echo $ECHO_N "checking for major... $ECHO_C" >&6; }
19091 cat >conftest.
$ac_ext <<_ACEOF
19094 cat confdefs.h
>>conftest.
$ac_ext
19095 cat >>conftest.
$ac_ext <<_ACEOF
19096 /* end confdefs.h. */
19098 #if defined(MAJOR_IN_MKDEV)
19099 #include <sys/mkdev.h>
19100 #elif defined(MAJOR_IN_SYSMACROS)
19101 #include <sys/sysmacros.h>
19103 #include <sys/types.h>
19110 makedev(major(0),minor(0));
19116 rm -f conftest.
$ac_objext conftest
$ac_exeext
19117 if { (ac_try
="$ac_link"
19118 case "(($ac_try" in
19119 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19120 *) ac_try_echo=$ac_try;;
19122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19123 (eval "$ac_link") 2>conftest.er1
19125 grep -v '^ *+' conftest.er1 >conftest.err
19127 cat conftest.err >&5
19128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129 (exit $ac_status); } && {
19130 test -z "$ac_c_werror_flag" ||
19131 test ! -s conftest.err
19132 } && test -s conftest$ac_exeext &&
19133 $as_test_x conftest$ac_exeext; then
19136 cat >>confdefs.h <<\_ACEOF
19137 #define HAVE_DEVICE_MACROS 1
19140 { echo "$as_me:$LINENO: result: yes" >&5
19141 echo "${ECHO_T}yes" >&6; }
19144 echo "$as_me: failed program was:" >&5
19145 sed 's/^/| /' conftest.$ac_ext >&5
19148 { echo "$as_me:$LINENO: result: no" >&5
19149 echo "${ECHO_T}no" >&6; }
19153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19154 conftest$ac_exeext conftest.$ac_ext
19156 # On OSF/1 V5.1, getaddrinfo is available, but a define
19157 # for [no]getaddrinfo in netdb.h.
19158 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
19159 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
19160 cat >conftest.$ac_ext <<_ACEOF
19163 cat confdefs.h >>conftest.$ac_ext
19164 cat >>conftest.$ac_ext <<_ACEOF
19165 /* end confdefs.h. */
19167 #include <sys/types.h>
19168 #include <sys/socket.h>
19176 getaddrinfo(NULL, NULL, NULL, NULL);
19182 rm -f conftest.$ac_objext conftest$ac_exeext
19183 if { (ac_try="$ac_link"
19184 case "(($ac_try" in
19185 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19186 *) ac_try_echo
=$ac_try;;
19188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19189 (eval "$ac_link") 2>conftest.er1
19191 grep -v '^ *+' conftest.er1
>conftest.err
19193 cat conftest.err
>&5
19194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19195 (exit $ac_status); } && {
19196 test -z "$ac_c_werror_flag" ||
19197 test ! -s conftest.err
19198 } && test -s conftest
$ac_exeext &&
19199 $as_test_x conftest
$ac_exeext; then
19201 { echo "$as_me:$LINENO: result: yes" >&5
19202 echo "${ECHO_T}yes" >&6; }
19203 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
19204 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
19205 if test "$cross_compiling" = yes; then
19206 { echo "$as_me:$LINENO: result: buggy" >&5
19207 echo "${ECHO_T}buggy" >&6; }
19208 buggygetaddrinfo
=yes
19210 cat >conftest.
$ac_ext <<_ACEOF
19213 cat confdefs.h
>>conftest.
$ac_ext
19214 cat >>conftest.
$ac_ext <<_ACEOF
19215 /* end confdefs.h. */
19217 #include <sys/types.h>
19219 #include <string.h>
19220 #include <sys/socket.h>
19221 #include <netinet/in.h>
19225 int passive, gaierr, inet4 = 0, inet6 = 0;
19226 struct addrinfo hints, *ai, *aitop;
19227 char straddr[INET6_ADDRSTRLEN], strport[16];
19229 for (passive = 0; passive <= 1; passive++) {
19230 memset(&hints, 0, sizeof(hints));
19231 hints.ai_family = AF_UNSPEC;
19232 hints.ai_flags = passive ? AI_PASSIVE : 0;
19233 hints.ai_socktype = SOCK_STREAM;
19234 hints.ai_protocol = IPPROTO_TCP;
19235 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
19236 (void)gai_strerror(gaierr);
19239 for (ai = aitop; ai; ai = ai->ai_next) {
19240 if (ai->ai_addr == NULL ||
19241 ai->ai_addrlen == 0 ||
19242 getnameinfo(ai->ai_addr, ai->ai_addrlen,
19243 straddr, sizeof(straddr), strport, sizeof(strport),
19244 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
19247 switch (ai->ai_family) {
19249 if (strcmp(strport, "54321") != 0) {
19253 if (strcmp(straddr, "0.0.0.0") != 0) {
19257 if (strcmp(straddr, "127.0.0.1") != 0) {
19264 if (strcmp(strport, "54321") != 0) {
19268 if (strcmp(straddr, "::") != 0) {
19272 if (strcmp(straddr, "::1") != 0) {
19282 /* another family support? */
19288 if (!(inet4 == 0 || inet4 == 2))
19290 if (!(inet6 == 0 || inet6 == 2))
19294 freeaddrinfo(aitop);
19299 freeaddrinfo(aitop);
19304 rm -f conftest
$ac_exeext
19305 if { (ac_try
="$ac_link"
19306 case "(($ac_try" in
19307 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19308 *) ac_try_echo=$ac_try;;
19310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19311 (eval "$ac_link") 2>&5
19313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19315 { (case "(($ac_try" in
19316 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19317 *) ac_try_echo
=$ac_try;;
19319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19320 (eval "$ac_try") 2>&5
19322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19323 (exit $ac_status); }; }; then
19324 { echo "$as_me:$LINENO: result: good" >&5
19325 echo "${ECHO_T}good" >&6; }
19326 buggygetaddrinfo
=no
19328 echo "$as_me: program exited with status $ac_status" >&5
19329 echo "$as_me: failed program was:" >&5
19330 sed 's/^/| /' conftest.
$ac_ext >&5
19332 ( exit $ac_status )
19333 { echo "$as_me:$LINENO: result: buggy" >&5
19334 echo "${ECHO_T}buggy" >&6; }
19335 buggygetaddrinfo
=yes
19337 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19342 echo "$as_me: failed program was:" >&5
19343 sed 's/^/| /' conftest.
$ac_ext >&5
19346 { echo "$as_me:$LINENO: result: no" >&5
19347 echo "${ECHO_T}no" >&6; }
19348 buggygetaddrinfo
=yes
19352 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19353 conftest
$ac_exeext conftest.
$ac_ext
19355 if test "$buggygetaddrinfo" = "yes"; then
19356 if test "$ipv6" = "yes"; then
19357 echo 'Fatal: You must get working getaddrinfo() function.'
19358 echo ' or you can specify "--disable-ipv6"'.
19363 cat >>confdefs.h
<<\_ACEOF
19364 #define HAVE_GETADDRINFO 1
19369 for ac_func
in getnameinfo
19371 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19372 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19373 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19374 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19375 echo $ECHO_N "(cached) $ECHO_C" >&6
19377 cat >conftest.
$ac_ext <<_ACEOF
19380 cat confdefs.h
>>conftest.
$ac_ext
19381 cat >>conftest.
$ac_ext <<_ACEOF
19382 /* end confdefs.h. */
19383 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19385 #define $ac_func innocuous_$ac_func
19387 /* System header to define __stub macros and hopefully few prototypes,
19388 which can conflict with char $ac_func (); below.
19389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19390 <limits.h> exists even on freestanding compilers. */
19393 # include <limits.h>
19395 # include <assert.h>
19400 /* Override any GCC internal prototype to avoid an error.
19401 Use char because int might match the return type of a GCC
19402 builtin and then its argument prototype would still apply. */
19407 /* The GNU C library defines this for functions which it implements
19408 to always fail with ENOSYS. Some functions are actually named
19409 something starting with __ and the normal name is an alias. */
19410 #if defined __stub_$ac_func || defined __stub___$ac_func
19417 return $ac_func ();
19422 rm -f conftest.
$ac_objext conftest
$ac_exeext
19423 if { (ac_try
="$ac_link"
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_link") 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_exeext &&
19439 $as_test_x conftest$ac_exeext; then
19440 eval "$as_ac_var=yes"
19442 echo "$as_me: failed program was:" >&5
19443 sed 's/^/| /' conftest.$ac_ext >&5
19445 eval "$as_ac_var=no"
19448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19449 conftest$ac_exeext conftest.$ac_ext
19451 ac_res=`eval echo '${'$as_ac_var'}'`
19452 { echo "$as_me:$LINENO: result: $ac_res" >&5
19453 echo "${ECHO_T}$ac_res" >&6; }
19454 if test `eval echo '${'$as_ac_var'}'` = yes; then
19455 cat >>confdefs.h <<_ACEOF
19456 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
19463 # checks for structures
19464 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19465 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
19466 if test "${ac_cv_header_time+set}" = set; then
19467 echo $ECHO_N "(cached) $ECHO_C" >&6
19469 cat >conftest.$ac_ext <<_ACEOF
19472 cat confdefs.h >>conftest.$ac_ext
19473 cat >>conftest.$ac_ext <<_ACEOF
19474 /* end confdefs.h. */
19475 #include <sys/types.h>
19476 #include <sys/time.h>
19482 if ((struct tm *) 0)
19488 rm -f conftest.$ac_objext
19489 if { (ac_try="$ac_compile"
19490 case "(($ac_try" in
19491 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19492 *) ac_try_echo
=$ac_try;;
19494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19495 (eval "$ac_compile") 2>conftest.er1
19497 grep -v '^ *+' conftest.er1
>conftest.err
19499 cat conftest.err
>&5
19500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501 (exit $ac_status); } && {
19502 test -z "$ac_c_werror_flag" ||
19503 test ! -s conftest.err
19504 } && test -s conftest.
$ac_objext; then
19505 ac_cv_header_time
=yes
19507 echo "$as_me: failed program was:" >&5
19508 sed 's/^/| /' conftest.
$ac_ext >&5
19510 ac_cv_header_time
=no
19513 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19515 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19516 echo "${ECHO_T}$ac_cv_header_time" >&6; }
19517 if test $ac_cv_header_time = yes; then
19519 cat >>confdefs.h
<<\_ACEOF
19520 #define TIME_WITH_SYS_TIME 1
19525 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19526 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
19527 if test "${ac_cv_struct_tm+set}" = set; then
19528 echo $ECHO_N "(cached) $ECHO_C" >&6
19530 cat >conftest.
$ac_ext <<_ACEOF
19533 cat confdefs.h
>>conftest.
$ac_ext
19534 cat >>conftest.
$ac_ext <<_ACEOF
19535 /* end confdefs.h. */
19536 #include <sys/types.h>
19543 int *p = &tm.tm_sec;
19549 rm -f conftest.
$ac_objext
19550 if { (ac_try
="$ac_compile"
19551 case "(($ac_try" in
19552 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19553 *) ac_try_echo=$ac_try;;
19555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19556 (eval "$ac_compile") 2>conftest.er1
19558 grep -v '^ *+' conftest.er1 >conftest.err
19560 cat conftest.err >&5
19561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562 (exit $ac_status); } && {
19563 test -z "$ac_c_werror_flag" ||
19564 test ! -s conftest.err
19565 } && test -s conftest.$ac_objext; then
19566 ac_cv_struct_tm=time.h
19568 echo "$as_me: failed program was:" >&5
19569 sed 's/^/| /' conftest.$ac_ext >&5
19571 ac_cv_struct_tm=sys/time.h
19574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19576 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19577 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
19578 if test $ac_cv_struct_tm = sys/time.h; then
19580 cat >>confdefs.h <<\_ACEOF
19581 #define TM_IN_SYS_TIME 1
19586 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
19587 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
19588 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
19589 echo $ECHO_N "(cached) $ECHO_C" >&6
19591 cat >conftest.$ac_ext <<_ACEOF
19594 cat confdefs.h >>conftest.$ac_ext
19595 cat >>conftest.$ac_ext <<_ACEOF
19596 /* end confdefs.h. */
19597 #include <sys/types.h>
19598 #include <$ac_cv_struct_tm>
19604 static struct tm ac_aggr;
19605 if (ac_aggr.tm_zone)
19611 rm -f conftest.$ac_objext
19612 if { (ac_try="$ac_compile"
19613 case "(($ac_try" in
19614 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19615 *) ac_try_echo
=$ac_try;;
19617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19618 (eval "$ac_compile") 2>conftest.er1
19620 grep -v '^ *+' conftest.er1
>conftest.err
19622 cat conftest.err
>&5
19623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19624 (exit $ac_status); } && {
19625 test -z "$ac_c_werror_flag" ||
19626 test ! -s conftest.err
19627 } && test -s conftest.
$ac_objext; then
19628 ac_cv_member_struct_tm_tm_zone
=yes
19630 echo "$as_me: failed program was:" >&5
19631 sed 's/^/| /' conftest.
$ac_ext >&5
19633 cat >conftest.
$ac_ext <<_ACEOF
19636 cat confdefs.h
>>conftest.
$ac_ext
19637 cat >>conftest.
$ac_ext <<_ACEOF
19638 /* end confdefs.h. */
19639 #include <sys/types.h>
19640 #include <$ac_cv_struct_tm>
19646 static struct tm ac_aggr;
19647 if (sizeof ac_aggr.tm_zone)
19653 rm -f conftest.
$ac_objext
19654 if { (ac_try
="$ac_compile"
19655 case "(($ac_try" in
19656 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19657 *) ac_try_echo=$ac_try;;
19659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19660 (eval "$ac_compile") 2>conftest.er1
19662 grep -v '^ *+' conftest.er1 >conftest.err
19664 cat conftest.err >&5
19665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666 (exit $ac_status); } && {
19667 test -z "$ac_c_werror_flag" ||
19668 test ! -s conftest.err
19669 } && test -s conftest.$ac_objext; then
19670 ac_cv_member_struct_tm_tm_zone=yes
19672 echo "$as_me: failed program was:" >&5
19673 sed 's/^/| /' conftest.$ac_ext >&5
19675 ac_cv_member_struct_tm_tm_zone=no
19678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19683 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
19684 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
19685 if test $ac_cv_member_struct_tm_tm_zone = yes; then
19687 cat >>confdefs.h <<_ACEOF
19688 #define HAVE_STRUCT_TM_TM_ZONE 1
19694 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19696 cat >>confdefs.h <<\_ACEOF
19697 #define HAVE_TM_ZONE 1
19701 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
19702 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
19703 if test "${ac_cv_have_decl_tzname+set}" = set; then
19704 echo $ECHO_N "(cached) $ECHO_C" >&6
19706 cat >conftest.$ac_ext <<_ACEOF
19709 cat confdefs.h >>conftest.$ac_ext
19710 cat >>conftest.$ac_ext <<_ACEOF
19711 /* end confdefs.h. */
19725 rm -f conftest.$ac_objext
19726 if { (ac_try="$ac_compile"
19727 case "(($ac_try" in
19728 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19729 *) ac_try_echo
=$ac_try;;
19731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19732 (eval "$ac_compile") 2>conftest.er1
19734 grep -v '^ *+' conftest.er1
>conftest.err
19736 cat conftest.err
>&5
19737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19738 (exit $ac_status); } && {
19739 test -z "$ac_c_werror_flag" ||
19740 test ! -s conftest.err
19741 } && test -s conftest.
$ac_objext; then
19742 ac_cv_have_decl_tzname
=yes
19744 echo "$as_me: failed program was:" >&5
19745 sed 's/^/| /' conftest.
$ac_ext >&5
19747 ac_cv_have_decl_tzname
=no
19750 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19752 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
19753 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
19754 if test $ac_cv_have_decl_tzname = yes; then
19756 cat >>confdefs.h
<<_ACEOF
19757 #define HAVE_DECL_TZNAME 1
19762 cat >>confdefs.h
<<_ACEOF
19763 #define HAVE_DECL_TZNAME 0
19770 { echo "$as_me:$LINENO: checking for tzname" >&5
19771 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
19772 if test "${ac_cv_var_tzname+set}" = set; then
19773 echo $ECHO_N "(cached) $ECHO_C" >&6
19775 cat >conftest.
$ac_ext <<_ACEOF
19778 cat confdefs.h
>>conftest.
$ac_ext
19779 cat >>conftest.
$ac_ext <<_ACEOF
19780 /* end confdefs.h. */
19782 #if !HAVE_DECL_TZNAME
19783 extern char *tzname[];
19789 return tzname[0][0];
19794 rm -f conftest.
$ac_objext conftest
$ac_exeext
19795 if { (ac_try
="$ac_link"
19796 case "(($ac_try" in
19797 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19798 *) ac_try_echo=$ac_try;;
19800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19801 (eval "$ac_link") 2>conftest.er1
19803 grep -v '^ *+' conftest.er1 >conftest.err
19805 cat conftest.err >&5
19806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19807 (exit $ac_status); } && {
19808 test -z "$ac_c_werror_flag" ||
19809 test ! -s conftest.err
19810 } && test -s conftest$ac_exeext &&
19811 $as_test_x conftest$ac_exeext; then
19812 ac_cv_var_tzname=yes
19814 echo "$as_me: failed program was:" >&5
19815 sed 's/^/| /' conftest.$ac_ext >&5
19817 ac_cv_var_tzname=no
19820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19821 conftest$ac_exeext conftest.$ac_ext
19823 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
19824 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
19825 if test $ac_cv_var_tzname = yes; then
19827 cat >>confdefs.h <<\_ACEOF
19828 #define HAVE_TZNAME 1
19834 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
19835 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
19836 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
19837 echo $ECHO_N "(cached) $ECHO_C" >&6
19839 cat >conftest.$ac_ext <<_ACEOF
19842 cat confdefs.h >>conftest.$ac_ext
19843 cat >>conftest.$ac_ext <<_ACEOF
19844 /* end confdefs.h. */
19845 $ac_includes_default
19849 static struct stat ac_aggr;
19850 if (ac_aggr.st_rdev)
19856 rm -f conftest.$ac_objext
19857 if { (ac_try="$ac_compile"
19858 case "(($ac_try" in
19859 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19860 *) ac_try_echo
=$ac_try;;
19862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19863 (eval "$ac_compile") 2>conftest.er1
19865 grep -v '^ *+' conftest.er1
>conftest.err
19867 cat conftest.err
>&5
19868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19869 (exit $ac_status); } && {
19870 test -z "$ac_c_werror_flag" ||
19871 test ! -s conftest.err
19872 } && test -s conftest.
$ac_objext; then
19873 ac_cv_member_struct_stat_st_rdev
=yes
19875 echo "$as_me: failed program was:" >&5
19876 sed 's/^/| /' conftest.
$ac_ext >&5
19878 cat >conftest.
$ac_ext <<_ACEOF
19881 cat confdefs.h
>>conftest.
$ac_ext
19882 cat >>conftest.
$ac_ext <<_ACEOF
19883 /* end confdefs.h. */
19884 $ac_includes_default
19888 static struct stat ac_aggr;
19889 if (sizeof ac_aggr.st_rdev)
19895 rm -f conftest.
$ac_objext
19896 if { (ac_try
="$ac_compile"
19897 case "(($ac_try" in
19898 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19899 *) ac_try_echo=$ac_try;;
19901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19902 (eval "$ac_compile") 2>conftest.er1
19904 grep -v '^ *+' conftest.er1 >conftest.err
19906 cat conftest.err >&5
19907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19908 (exit $ac_status); } && {
19909 test -z "$ac_c_werror_flag" ||
19910 test ! -s conftest.err
19911 } && test -s conftest.$ac_objext; then
19912 ac_cv_member_struct_stat_st_rdev=yes
19914 echo "$as_me: failed program was:" >&5
19915 sed 's/^/| /' conftest.$ac_ext >&5
19917 ac_cv_member_struct_stat_st_rdev=no
19920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19925 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
19926 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
19927 if test $ac_cv_member_struct_stat_st_rdev = yes; then
19929 cat >>confdefs.h <<_ACEOF
19930 #define HAVE_STRUCT_STAT_ST_RDEV 1
19936 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
19937 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
19938 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
19939 echo $ECHO_N "(cached) $ECHO_C" >&6
19941 cat >conftest.$ac_ext <<_ACEOF
19944 cat confdefs.h >>conftest.$ac_ext
19945 cat >>conftest.$ac_ext <<_ACEOF
19946 /* end confdefs.h. */
19947 $ac_includes_default
19951 static struct stat ac_aggr;
19952 if (ac_aggr.st_blksize)
19958 rm -f conftest.$ac_objext
19959 if { (ac_try="$ac_compile"
19960 case "(($ac_try" in
19961 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19962 *) ac_try_echo
=$ac_try;;
19964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19965 (eval "$ac_compile") 2>conftest.er1
19967 grep -v '^ *+' conftest.er1
>conftest.err
19969 cat conftest.err
>&5
19970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19971 (exit $ac_status); } && {
19972 test -z "$ac_c_werror_flag" ||
19973 test ! -s conftest.err
19974 } && test -s conftest.
$ac_objext; then
19975 ac_cv_member_struct_stat_st_blksize
=yes
19977 echo "$as_me: failed program was:" >&5
19978 sed 's/^/| /' conftest.
$ac_ext >&5
19980 cat >conftest.
$ac_ext <<_ACEOF
19983 cat confdefs.h
>>conftest.
$ac_ext
19984 cat >>conftest.
$ac_ext <<_ACEOF
19985 /* end confdefs.h. */
19986 $ac_includes_default
19990 static struct stat ac_aggr;
19991 if (sizeof ac_aggr.st_blksize)
19997 rm -f conftest.
$ac_objext
19998 if { (ac_try
="$ac_compile"
19999 case "(($ac_try" in
20000 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20001 *) ac_try_echo=$ac_try;;
20003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20004 (eval "$ac_compile") 2>conftest.er1
20006 grep -v '^ *+' conftest.er1 >conftest.err
20008 cat conftest.err >&5
20009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20010 (exit $ac_status); } && {
20011 test -z "$ac_c_werror_flag" ||
20012 test ! -s conftest.err
20013 } && test -s conftest.$ac_objext; then
20014 ac_cv_member_struct_stat_st_blksize=yes
20016 echo "$as_me: failed program was:" >&5
20017 sed 's/^/| /' conftest.$ac_ext >&5
20019 ac_cv_member_struct_stat_st_blksize=no
20022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20027 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
20028 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
20029 if test $ac_cv_member_struct_stat_st_blksize = yes; then
20031 cat >>confdefs.h <<_ACEOF
20032 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
20038 { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
20039 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
20040 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
20041 echo $ECHO_N "(cached) $ECHO_C" >&6
20043 cat >conftest.$ac_ext <<_ACEOF
20046 cat confdefs.h >>conftest.$ac_ext
20047 cat >>conftest.$ac_ext <<_ACEOF
20048 /* end confdefs.h. */
20049 $ac_includes_default
20053 static struct stat ac_aggr;
20054 if (ac_aggr.st_flags)
20060 rm -f conftest.$ac_objext
20061 if { (ac_try="$ac_compile"
20062 case "(($ac_try" in
20063 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20064 *) ac_try_echo
=$ac_try;;
20066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20067 (eval "$ac_compile") 2>conftest.er1
20069 grep -v '^ *+' conftest.er1
>conftest.err
20071 cat conftest.err
>&5
20072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20073 (exit $ac_status); } && {
20074 test -z "$ac_c_werror_flag" ||
20075 test ! -s conftest.err
20076 } && test -s conftest.
$ac_objext; then
20077 ac_cv_member_struct_stat_st_flags
=yes
20079 echo "$as_me: failed program was:" >&5
20080 sed 's/^/| /' conftest.
$ac_ext >&5
20082 cat >conftest.
$ac_ext <<_ACEOF
20085 cat confdefs.h
>>conftest.
$ac_ext
20086 cat >>conftest.
$ac_ext <<_ACEOF
20087 /* end confdefs.h. */
20088 $ac_includes_default
20092 static struct stat ac_aggr;
20093 if (sizeof ac_aggr.st_flags)
20099 rm -f conftest.
$ac_objext
20100 if { (ac_try
="$ac_compile"
20101 case "(($ac_try" in
20102 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20103 *) ac_try_echo=$ac_try;;
20105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20106 (eval "$ac_compile") 2>conftest.er1
20108 grep -v '^ *+' conftest.er1 >conftest.err
20110 cat conftest.err >&5
20111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20112 (exit $ac_status); } && {
20113 test -z "$ac_c_werror_flag" ||
20114 test ! -s conftest.err
20115 } && test -s conftest.$ac_objext; then
20116 ac_cv_member_struct_stat_st_flags=yes
20118 echo "$as_me: failed program was:" >&5
20119 sed 's/^/| /' conftest.$ac_ext >&5
20121 ac_cv_member_struct_stat_st_flags=no
20124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20129 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
20130 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
20131 if test $ac_cv_member_struct_stat_st_flags = yes; then
20133 cat >>confdefs.h <<_ACEOF
20134 #define HAVE_STRUCT_STAT_ST_FLAGS 1
20140 { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
20141 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
20142 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
20143 echo $ECHO_N "(cached) $ECHO_C" >&6
20145 cat >conftest.$ac_ext <<_ACEOF
20148 cat confdefs.h >>conftest.$ac_ext
20149 cat >>conftest.$ac_ext <<_ACEOF
20150 /* end confdefs.h. */
20151 $ac_includes_default
20155 static struct stat ac_aggr;
20156 if (ac_aggr.st_gen)
20162 rm -f conftest.$ac_objext
20163 if { (ac_try="$ac_compile"
20164 case "(($ac_try" in
20165 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20166 *) ac_try_echo
=$ac_try;;
20168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20169 (eval "$ac_compile") 2>conftest.er1
20171 grep -v '^ *+' conftest.er1
>conftest.err
20173 cat conftest.err
>&5
20174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20175 (exit $ac_status); } && {
20176 test -z "$ac_c_werror_flag" ||
20177 test ! -s conftest.err
20178 } && test -s conftest.
$ac_objext; then
20179 ac_cv_member_struct_stat_st_gen
=yes
20181 echo "$as_me: failed program was:" >&5
20182 sed 's/^/| /' conftest.
$ac_ext >&5
20184 cat >conftest.
$ac_ext <<_ACEOF
20187 cat confdefs.h
>>conftest.
$ac_ext
20188 cat >>conftest.
$ac_ext <<_ACEOF
20189 /* end confdefs.h. */
20190 $ac_includes_default
20194 static struct stat ac_aggr;
20195 if (sizeof ac_aggr.st_gen)
20201 rm -f conftest.
$ac_objext
20202 if { (ac_try
="$ac_compile"
20203 case "(($ac_try" in
20204 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20205 *) ac_try_echo=$ac_try;;
20207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20208 (eval "$ac_compile") 2>conftest.er1
20210 grep -v '^ *+' conftest.er1 >conftest.err
20212 cat conftest.err >&5
20213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20214 (exit $ac_status); } && {
20215 test -z "$ac_c_werror_flag" ||
20216 test ! -s conftest.err
20217 } && test -s conftest.$ac_objext; then
20218 ac_cv_member_struct_stat_st_gen=yes
20220 echo "$as_me: failed program was:" >&5
20221 sed 's/^/| /' conftest.$ac_ext >&5
20223 ac_cv_member_struct_stat_st_gen=no
20226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20231 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
20232 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
20233 if test $ac_cv_member_struct_stat_st_gen = yes; then
20235 cat >>confdefs.h <<_ACEOF
20236 #define HAVE_STRUCT_STAT_ST_GEN 1
20242 { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
20243 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
20244 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
20245 echo $ECHO_N "(cached) $ECHO_C" >&6
20247 cat >conftest.$ac_ext <<_ACEOF
20250 cat confdefs.h >>conftest.$ac_ext
20251 cat >>conftest.$ac_ext <<_ACEOF
20252 /* end confdefs.h. */
20253 $ac_includes_default
20257 static struct stat ac_aggr;
20258 if (ac_aggr.st_birthtime)
20264 rm -f conftest.$ac_objext
20265 if { (ac_try="$ac_compile"
20266 case "(($ac_try" in
20267 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20268 *) ac_try_echo
=$ac_try;;
20270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20271 (eval "$ac_compile") 2>conftest.er1
20273 grep -v '^ *+' conftest.er1
>conftest.err
20275 cat conftest.err
>&5
20276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20277 (exit $ac_status); } && {
20278 test -z "$ac_c_werror_flag" ||
20279 test ! -s conftest.err
20280 } && test -s conftest.
$ac_objext; then
20281 ac_cv_member_struct_stat_st_birthtime
=yes
20283 echo "$as_me: failed program was:" >&5
20284 sed 's/^/| /' conftest.
$ac_ext >&5
20286 cat >conftest.
$ac_ext <<_ACEOF
20289 cat confdefs.h
>>conftest.
$ac_ext
20290 cat >>conftest.
$ac_ext <<_ACEOF
20291 /* end confdefs.h. */
20292 $ac_includes_default
20296 static struct stat ac_aggr;
20297 if (sizeof ac_aggr.st_birthtime)
20303 rm -f conftest.
$ac_objext
20304 if { (ac_try
="$ac_compile"
20305 case "(($ac_try" in
20306 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20307 *) ac_try_echo=$ac_try;;
20309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20310 (eval "$ac_compile") 2>conftest.er1
20312 grep -v '^ *+' conftest.er1 >conftest.err
20314 cat conftest.err >&5
20315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20316 (exit $ac_status); } && {
20317 test -z "$ac_c_werror_flag" ||
20318 test ! -s conftest.err
20319 } && test -s conftest.$ac_objext; then
20320 ac_cv_member_struct_stat_st_birthtime=yes
20322 echo "$as_me: failed program was:" >&5
20323 sed 's/^/| /' conftest.$ac_ext >&5
20325 ac_cv_member_struct_stat_st_birthtime=no
20328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20333 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
20334 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
20335 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
20337 cat >>confdefs.h <<_ACEOF
20338 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
20344 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20345 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
20346 if test "${ac_cv_member_struct_stat_st_blocks+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. */
20355 $ac_includes_default
20359 static struct stat ac_aggr;
20360 if (ac_aggr.st_blocks)
20366 rm -f conftest.$ac_objext
20367 if { (ac_try="$ac_compile"
20368 case "(($ac_try" in
20369 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20370 *) ac_try_echo
=$ac_try;;
20372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20373 (eval "$ac_compile") 2>conftest.er1
20375 grep -v '^ *+' conftest.er1
>conftest.err
20377 cat conftest.err
>&5
20378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20379 (exit $ac_status); } && {
20380 test -z "$ac_c_werror_flag" ||
20381 test ! -s conftest.err
20382 } && test -s conftest.
$ac_objext; then
20383 ac_cv_member_struct_stat_st_blocks
=yes
20385 echo "$as_me: failed program was:" >&5
20386 sed 's/^/| /' conftest.
$ac_ext >&5
20388 cat >conftest.
$ac_ext <<_ACEOF
20391 cat confdefs.h
>>conftest.
$ac_ext
20392 cat >>conftest.
$ac_ext <<_ACEOF
20393 /* end confdefs.h. */
20394 $ac_includes_default
20398 static struct stat ac_aggr;
20399 if (sizeof ac_aggr.st_blocks)
20405 rm -f conftest.
$ac_objext
20406 if { (ac_try
="$ac_compile"
20407 case "(($ac_try" in
20408 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20409 *) ac_try_echo=$ac_try;;
20411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20412 (eval "$ac_compile") 2>conftest.er1
20414 grep -v '^ *+' conftest.er1 >conftest.err
20416 cat conftest.err >&5
20417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20418 (exit $ac_status); } && {
20419 test -z "$ac_c_werror_flag" ||
20420 test ! -s conftest.err
20421 } && test -s conftest.$ac_objext; then
20422 ac_cv_member_struct_stat_st_blocks=yes
20424 echo "$as_me: failed program was:" >&5
20425 sed 's/^/| /' conftest.$ac_ext >&5
20427 ac_cv_member_struct_stat_st_blocks=no
20430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20435 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20436 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
20437 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20439 cat >>confdefs.h <<_ACEOF
20440 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20444 cat >>confdefs.h <<\_ACEOF
20445 #define HAVE_ST_BLOCKS 1
20449 case " $LIBOBJS " in
20450 *" fileblocks.$ac_objext "* ) ;;
20451 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
20459 { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
20460 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
20461 if test "${ac_cv_header_time_altzone+set}" = set; then
20462 echo $ECHO_N "(cached) $ECHO_C" >&6
20464 cat >conftest.$ac_ext <<_ACEOF
20467 cat confdefs.h >>conftest.$ac_ext
20468 cat >>conftest.$ac_ext <<_ACEOF
20469 /* end confdefs.h. */
20479 rm -f conftest.$ac_objext
20480 if { (ac_try="$ac_compile"
20481 case "(($ac_try" in
20482 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20483 *) ac_try_echo
=$ac_try;;
20485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20486 (eval "$ac_compile") 2>conftest.er1
20488 grep -v '^ *+' conftest.er1
>conftest.err
20490 cat conftest.err
>&5
20491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20492 (exit $ac_status); } && {
20493 test -z "$ac_c_werror_flag" ||
20494 test ! -s conftest.err
20495 } && test -s conftest.
$ac_objext; then
20496 ac_cv_header_time_altzone
=yes
20498 echo "$as_me: failed program was:" >&5
20499 sed 's/^/| /' conftest.
$ac_ext >&5
20501 ac_cv_header_time_altzone
=no
20504 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20507 { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
20508 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
20509 if test $ac_cv_header_time_altzone = yes; then
20511 cat >>confdefs.h
<<\_ACEOF
20512 #define HAVE_ALTZONE 1
20518 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
20519 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
20520 cat >conftest.
$ac_ext <<_ACEOF
20523 cat confdefs.h
>>conftest.
$ac_ext
20524 cat >>conftest.
$ac_ext <<_ACEOF
20525 /* end confdefs.h. */
20527 #include <sys/types.h>
20528 #include <sys/select.h>
20529 #include <sys/time.h>
20539 rm -f conftest.
$ac_objext
20540 if { (ac_try
="$ac_compile"
20541 case "(($ac_try" in
20542 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20543 *) ac_try_echo=$ac_try;;
20545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20546 (eval "$ac_compile") 2>conftest.er1
20548 grep -v '^ *+' conftest.er1 >conftest.err
20550 cat conftest.err >&5
20551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20552 (exit $ac_status); } && {
20553 test -z "$ac_c_werror_flag" ||
20554 test ! -s conftest.err
20555 } && test -s conftest.$ac_objext; then
20558 cat >>confdefs.h <<\_ACEOF
20559 #define SYS_SELECT_WITH_SYS_TIME 1
20565 echo "$as_me: failed program was:" >&5
20566 sed 's/^/| /' conftest.$ac_ext >&5
20571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20572 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
20573 echo "${ECHO_T}$was_it_defined" >&6; }
20575 { echo "$as_me:$LINENO: checking for addrinfo" >&5
20576 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
20577 if test "${ac_cv_struct_addrinfo+set}" = set; then
20578 echo $ECHO_N "(cached) $ECHO_C" >&6
20580 cat >conftest.$ac_ext <<_ACEOF
20583 cat confdefs.h >>conftest.$ac_ext
20584 cat >>conftest.$ac_ext <<_ACEOF
20585 /* end confdefs.h. */
20587 # include <netdb.h>
20596 rm -f conftest.$ac_objext
20597 if { (ac_try="$ac_compile"
20598 case "(($ac_try" in
20599 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20600 *) ac_try_echo
=$ac_try;;
20602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20603 (eval "$ac_compile") 2>conftest.er1
20605 grep -v '^ *+' conftest.er1
>conftest.err
20607 cat conftest.err
>&5
20608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20609 (exit $ac_status); } && {
20610 test -z "$ac_c_werror_flag" ||
20611 test ! -s conftest.err
20612 } && test -s conftest.
$ac_objext; then
20613 ac_cv_struct_addrinfo
=yes
20615 echo "$as_me: failed program was:" >&5
20616 sed 's/^/| /' conftest.
$ac_ext >&5
20618 ac_cv_struct_addrinfo
=no
20621 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20624 { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
20625 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
20626 if test $ac_cv_struct_addrinfo = yes; then
20628 cat >>confdefs.h
<<\_ACEOF
20629 #define HAVE_ADDRINFO 1
20634 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
20635 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
20636 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
20637 echo $ECHO_N "(cached) $ECHO_C" >&6
20639 cat >conftest.
$ac_ext <<_ACEOF
20642 cat confdefs.h
>>conftest.
$ac_ext
20643 cat >>conftest.
$ac_ext <<_ACEOF
20644 /* end confdefs.h. */
20646 # include <sys/types.h>
20647 # include <sys/socket.h>
20651 struct sockaddr_storage s
20656 rm -f conftest.
$ac_objext
20657 if { (ac_try
="$ac_compile"
20658 case "(($ac_try" in
20659 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20660 *) ac_try_echo=$ac_try;;
20662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20663 (eval "$ac_compile") 2>conftest.er1
20665 grep -v '^ *+' conftest.er1 >conftest.err
20667 cat conftest.err >&5
20668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669 (exit $ac_status); } && {
20670 test -z "$ac_c_werror_flag" ||
20671 test ! -s conftest.err
20672 } && test -s conftest.$ac_objext; then
20673 ac_cv_struct_sockaddr_storage=yes
20675 echo "$as_me: failed program was:" >&5
20676 sed 's/^/| /' conftest.$ac_ext >&5
20678 ac_cv_struct_sockaddr_storage=no
20681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20684 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
20685 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
20686 if test $ac_cv_struct_sockaddr_storage = yes; then
20688 cat >>confdefs.h <<\_ACEOF
20689 #define HAVE_SOCKADDR_STORAGE 1
20694 # checks for compiler characteristics
20697 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
20698 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
20699 if test "${ac_cv_c_char_unsigned+set}" = set; then
20700 echo $ECHO_N "(cached) $ECHO_C" >&6
20702 cat >conftest.$ac_ext <<_ACEOF
20705 cat confdefs.h >>conftest.$ac_ext
20706 cat >>conftest.$ac_ext <<_ACEOF
20707 /* end confdefs.h. */
20708 $ac_includes_default
20712 static int test_array [1 - 2 * !(((char) -1) < 0)];
20719 rm -f conftest.$ac_objext
20720 if { (ac_try="$ac_compile"
20721 case "(($ac_try" in
20722 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20723 *) ac_try_echo
=$ac_try;;
20725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20726 (eval "$ac_compile") 2>conftest.er1
20728 grep -v '^ *+' conftest.er1
>conftest.err
20730 cat conftest.err
>&5
20731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20732 (exit $ac_status); } && {
20733 test -z "$ac_c_werror_flag" ||
20734 test ! -s conftest.err
20735 } && test -s conftest.
$ac_objext; then
20736 ac_cv_c_char_unsigned
=no
20738 echo "$as_me: failed program was:" >&5
20739 sed 's/^/| /' conftest.
$ac_ext >&5
20741 ac_cv_c_char_unsigned
=yes
20744 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20746 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
20747 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
20748 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
20749 cat >>confdefs.h
<<\_ACEOF
20750 #define __CHAR_UNSIGNED__ 1
20755 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20756 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20757 if test "${ac_cv_c_const+set}" = set; then
20758 echo $ECHO_N "(cached) $ECHO_C" >&6
20760 cat >conftest.
$ac_ext <<_ACEOF
20763 cat confdefs.h
>>conftest.
$ac_ext
20764 cat >>conftest.
$ac_ext <<_ACEOF
20765 /* end confdefs.h. */
20770 /* FIXME: Include the comments suggested by Paul. */
20771 #ifndef __cplusplus
20772 /* Ultrix mips cc rejects this. */
20773 typedef int charset[2];
20775 /* SunOS 4.1.1 cc rejects this. */
20776 char const *const *pcpcc;
20778 /* NEC SVR4.0.2 mips cc rejects this. */
20779 struct point {int x, y;};
20780 static struct point const zero = {0,0};
20781 /* AIX XL C 1.02.0.0 rejects this.
20782 It does not let you subtract one const X* pointer from another in
20783 an arm of an if-expression whose if-part is not a constant
20785 const char *g = "string";
20786 pcpcc = &g + (g ? g-g : 0);
20787 /* HPUX 7.0 cc rejects these. */
20789 ppc = (char**) pcpcc;
20790 pcpcc = (char const *const *) ppc;
20791 { /* SCO 3.2v4 cc rejects this. */
20793 char const *s = 0 ? (char *) 0 : (char const *) 0;
20798 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20799 int x[] = {25, 17};
20800 const int *foo = &x[0];
20803 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20804 typedef const int *iptr;
20808 { /* AIX XL C 1.02.0.0 rejects this saying
20809 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20810 struct s { int j; const int *ap[3]; };
20811 struct s *b; b->j = 5;
20813 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20814 const int foo = 10;
20815 if (!foo) return 0;
20817 return !cs[0] && !zero.x;
20824 rm -f conftest.
$ac_objext
20825 if { (ac_try
="$ac_compile"
20826 case "(($ac_try" in
20827 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20828 *) ac_try_echo=$ac_try;;
20830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20831 (eval "$ac_compile") 2>conftest.er1
20833 grep -v '^ *+' conftest.er1 >conftest.err
20835 cat conftest.err >&5
20836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20837 (exit $ac_status); } && {
20838 test -z "$ac_c_werror_flag" ||
20839 test ! -s conftest.err
20840 } && test -s conftest.$ac_objext; then
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
20851 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20852 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20853 if test $ac_cv_c_const = no; then
20855 cat >>confdefs.h <<\_ACEOF
20863 { echo "$as_me:$LINENO: checking for working volatile" >&5
20864 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
20865 cat >conftest.$ac_ext <<_ACEOF
20868 cat confdefs.h >>conftest.$ac_ext
20869 cat >>conftest.$ac_ext <<_ACEOF
20870 /* end confdefs.h. */
20875 volatile int x; x = 0;
20880 rm -f conftest.$ac_objext
20881 if { (ac_try="$ac_compile"
20882 case "(($ac_try" in
20883 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20884 *) ac_try_echo
=$ac_try;;
20886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20887 (eval "$ac_compile") 2>conftest.er1
20889 grep -v '^ *+' conftest.er1
>conftest.err
20891 cat conftest.err
>&5
20892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893 (exit $ac_status); } && {
20894 test -z "$ac_c_werror_flag" ||
20895 test ! -s conftest.err
20896 } && test -s conftest.
$ac_objext; then
20899 echo "$as_me: failed program was:" >&5
20900 sed 's/^/| /' conftest.
$ac_ext >&5
20903 cat >>confdefs.h
<<\_ACEOF
20910 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20911 { echo "$as_me:$LINENO: result: $works" >&5
20912 echo "${ECHO_T}$works" >&6; }
20915 { echo "$as_me:$LINENO: checking for working signed char" >&5
20916 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
20917 cat >conftest.
$ac_ext <<_ACEOF
20920 cat confdefs.h
>>conftest.
$ac_ext
20921 cat >>conftest.
$ac_ext <<_ACEOF
20922 /* end confdefs.h. */
20932 rm -f conftest.
$ac_objext
20933 if { (ac_try
="$ac_compile"
20934 case "(($ac_try" in
20935 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20936 *) ac_try_echo=$ac_try;;
20938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20939 (eval "$ac_compile") 2>conftest.er1
20941 grep -v '^ *+' conftest.er1 >conftest.err
20943 cat conftest.err >&5
20944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20945 (exit $ac_status); } && {
20946 test -z "$ac_c_werror_flag" ||
20947 test ! -s conftest.err
20948 } && test -s conftest.$ac_objext; then
20951 echo "$as_me: failed program was:" >&5
20952 sed 's/^/| /' conftest.$ac_ext >&5
20955 cat >>confdefs.h <<\_ACEOF
20962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20963 { echo "$as_me:$LINENO: result: $works" >&5
20964 echo "${ECHO_T}$works" >&6; }
20967 { echo "$as_me:$LINENO: checking for prototypes" >&5
20968 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
20969 cat >conftest.$ac_ext <<_ACEOF
20972 cat confdefs.h >>conftest.$ac_ext
20973 cat >>conftest.$ac_ext <<_ACEOF
20974 /* end confdefs.h. */
20975 int foo(int x) { return 0; }
20984 rm -f conftest.$ac_objext
20985 if { (ac_try="$ac_compile"
20986 case "(($ac_try" in
20987 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20988 *) ac_try_echo
=$ac_try;;
20990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20991 (eval "$ac_compile") 2>conftest.er1
20993 grep -v '^ *+' conftest.er1
>conftest.err
20995 cat conftest.err
>&5
20996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20997 (exit $ac_status); } && {
20998 test -z "$ac_c_werror_flag" ||
20999 test ! -s conftest.err
21000 } && test -s conftest.
$ac_objext; then
21003 cat >>confdefs.h
<<\_ACEOF
21004 #define HAVE_PROTOTYPES 1
21007 have_prototypes
=yes
21010 echo "$as_me: failed program was:" >&5
21011 sed 's/^/| /' conftest.
$ac_ext >&5
21016 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21017 { echo "$as_me:$LINENO: result: $have_prototypes" >&5
21018 echo "${ECHO_T}$have_prototypes" >&6; }
21021 { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
21022 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
21023 cat >conftest.
$ac_ext <<_ACEOF
21026 cat confdefs.h
>>conftest.
$ac_ext
21027 cat >>conftest.
$ac_ext <<_ACEOF
21028 /* end confdefs.h. */
21030 #include <stdarg.h>
21031 int foo(int x, ...) {
21035 va_arg(va, char *);
21036 va_arg(va, double);
21043 return foo(10, "", 3.14);
21048 rm -f conftest.
$ac_objext
21049 if { (ac_try
="$ac_compile"
21050 case "(($ac_try" in
21051 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21052 *) ac_try_echo=$ac_try;;
21054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21055 (eval "$ac_compile") 2>conftest.er1
21057 grep -v '^ *+' conftest.er1 >conftest.err
21059 cat conftest.err >&5
21060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21061 (exit $ac_status); } && {
21062 test -z "$ac_c_werror_flag" ||
21063 test ! -s conftest.err
21064 } && test -s conftest.$ac_objext; then
21067 cat >>confdefs.h <<\_ACEOF
21068 #define HAVE_STDARG_PROTOTYPES 1
21074 echo "$as_me: failed program was:" >&5
21075 sed 's/^/| /' conftest.$ac_ext >&5
21080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21081 { echo "$as_me:$LINENO: result: $works" >&5
21082 echo "${ECHO_T}$works" >&6; }
21084 # check for socketpair
21085 { echo "$as_me:$LINENO: checking for socketpair" >&5
21086 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
21087 cat >conftest.$ac_ext <<_ACEOF
21090 cat confdefs.h >>conftest.$ac_ext
21091 cat >>conftest.$ac_ext <<_ACEOF
21092 /* end confdefs.h. */
21094 #include <sys/types.h>
21095 #include <sys/socket.h>
21105 rm -f conftest.$ac_objext
21106 if { (ac_try="$ac_compile"
21107 case "(($ac_try" in
21108 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21109 *) ac_try_echo
=$ac_try;;
21111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21112 (eval "$ac_compile") 2>conftest.er1
21114 grep -v '^ *+' conftest.er1
>conftest.err
21116 cat conftest.err
>&5
21117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21118 (exit $ac_status); } && {
21119 test -z "$ac_c_werror_flag" ||
21120 test ! -s conftest.err
21121 } && test -s conftest.
$ac_objext; then
21123 cat >>confdefs.h
<<\_ACEOF
21124 #define HAVE_SOCKETPAIR 1
21127 { echo "$as_me:$LINENO: result: yes" >&5
21128 echo "${ECHO_T}yes" >&6; }
21130 echo "$as_me: failed program was:" >&5
21131 sed 's/^/| /' conftest.
$ac_ext >&5
21133 { echo "$as_me:$LINENO: result: no" >&5
21134 echo "${ECHO_T}no" >&6; }
21138 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21140 # check if sockaddr has sa_len member
21141 { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
21142 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; }
21143 cat >conftest.
$ac_ext <<_ACEOF
21146 cat confdefs.h
>>conftest.
$ac_ext
21147 cat >>conftest.
$ac_ext <<_ACEOF
21148 /* end confdefs.h. */
21149 #include <sys/types.h>
21150 #include <sys/socket.h>
21160 rm -f conftest.
$ac_objext
21161 if { (ac_try
="$ac_compile"
21162 case "(($ac_try" in
21163 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21164 *) ac_try_echo=$ac_try;;
21166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21167 (eval "$ac_compile") 2>conftest.er1
21169 grep -v '^ *+' conftest.er1 >conftest.err
21171 cat conftest.err >&5
21172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21173 (exit $ac_status); } && {
21174 test -z "$ac_c_werror_flag" ||
21175 test ! -s conftest.err
21176 } && test -s conftest.$ac_objext; then
21177 { echo "$as_me:$LINENO: result: yes" >&5
21178 echo "${ECHO_T}yes" >&6; }
21180 cat >>confdefs.h <<\_ACEOF
21181 #define HAVE_SOCKADDR_SA_LEN 1
21185 echo "$as_me: failed program was:" >&5
21186 sed 's/^/| /' conftest.$ac_ext >&5
21188 { echo "$as_me:$LINENO: result: no" >&5
21189 echo "${ECHO_T}no" >&6; }
21192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21194 va_list_is_array=no
21195 { echo "$as_me:$LINENO: checking whether va_list is an array" >&5
21196 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
21197 cat >conftest.$ac_ext <<_ACEOF
21200 cat confdefs.h >>conftest.$ac_ext
21201 cat >>conftest.$ac_ext <<_ACEOF
21202 /* end confdefs.h. */
21204 #ifdef HAVE_STDARG_PROTOTYPES
21205 #include <stdarg.h>
21207 #include <varargs.h>
21213 va_list list1, list2; list1 = list2;
21218 rm -f conftest.$ac_objext
21219 if { (ac_try="$ac_compile"
21220 case "(($ac_try" in
21221 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21222 *) ac_try_echo
=$ac_try;;
21224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21225 (eval "$ac_compile") 2>conftest.er1
21227 grep -v '^ *+' conftest.er1
>conftest.err
21229 cat conftest.err
>&5
21230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21231 (exit $ac_status); } && {
21232 test -z "$ac_c_werror_flag" ||
21233 test ! -s conftest.err
21234 } && test -s conftest.
$ac_objext; then
21237 echo "$as_me: failed program was:" >&5
21238 sed 's/^/| /' conftest.
$ac_ext >&5
21242 cat >>confdefs.h
<<\_ACEOF
21243 #define VA_LIST_IS_ARRAY 1
21246 va_list_is_array
=yes
21250 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21251 { echo "$as_me:$LINENO: result: $va_list_is_array" >&5
21252 echo "${ECHO_T}$va_list_is_array" >&6; }
21254 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
21258 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
21259 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
21260 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
21261 echo $ECHO_N "(cached) $ECHO_C" >&6
21263 cat >conftest.
$ac_ext <<_ACEOF
21266 cat confdefs.h
>>conftest.
$ac_ext
21267 cat >>conftest.
$ac_ext <<_ACEOF
21268 /* end confdefs.h. */
21269 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
21270 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21271 #define gethostbyname_r innocuous_gethostbyname_r
21273 /* System header to define __stub macros and hopefully few prototypes,
21274 which can conflict with char gethostbyname_r (); below.
21275 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21276 <limits.h> exists even on freestanding compilers. */
21279 # include <limits.h>
21281 # include <assert.h>
21284 #undef gethostbyname_r
21286 /* Override any GCC internal prototype to avoid an error.
21287 Use char because int might match the return type of a GCC
21288 builtin and then its argument prototype would still apply. */
21292 char gethostbyname_r ();
21293 /* The GNU C library defines this for functions which it implements
21294 to always fail with ENOSYS. Some functions are actually named
21295 something starting with __ and the normal name is an alias. */
21296 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
21303 return gethostbyname_r ();
21308 rm -f conftest.
$ac_objext conftest
$ac_exeext
21309 if { (ac_try
="$ac_link"
21310 case "(($ac_try" in
21311 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21312 *) ac_try_echo=$ac_try;;
21314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21315 (eval "$ac_link") 2>conftest.er1
21317 grep -v '^ *+' conftest.er1 >conftest.err
21319 cat conftest.err >&5
21320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21321 (exit $ac_status); } && {
21322 test -z "$ac_c_werror_flag" ||
21323 test ! -s conftest.err
21324 } && test -s conftest$ac_exeext &&
21325 $as_test_x conftest$ac_exeext; then
21326 ac_cv_func_gethostbyname_r=yes
21328 echo "$as_me: failed program was:" >&5
21329 sed 's/^/| /' conftest.$ac_ext >&5
21331 ac_cv_func_gethostbyname_r=no
21334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21335 conftest$ac_exeext conftest.$ac_ext
21337 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
21338 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
21339 if test $ac_cv_func_gethostbyname_r = yes; then
21341 cat >>confdefs.h <<\_ACEOF
21342 #define HAVE_GETHOSTBYNAME_R 1
21345 { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
21346 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
21348 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
21349 cat >conftest.$ac_ext <<_ACEOF
21352 cat confdefs.h >>conftest.$ac_ext
21353 cat >>conftest.$ac_ext <<_ACEOF
21354 /* end confdefs.h. */
21356 # include <netdb.h>
21363 struct hostent *he, *res;
21368 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
21374 rm -f conftest.$ac_objext
21375 if { (ac_try="$ac_compile"
21376 case "(($ac_try" in
21377 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21378 *) ac_try_echo
=$ac_try;;
21380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21381 (eval "$ac_compile") 2>conftest.er1
21383 grep -v '^ *+' conftest.er1
>conftest.err
21385 cat conftest.err
>&5
21386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21387 (exit $ac_status); } && {
21388 test -z "$ac_c_werror_flag" ||
21389 test ! -s conftest.err
21390 } && test -s conftest.
$ac_objext; then
21392 cat >>confdefs.h
<<\_ACEOF
21393 #define HAVE_GETHOSTBYNAME_R 1
21397 cat >>confdefs.h
<<\_ACEOF
21398 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
21401 { echo "$as_me:$LINENO: result: yes" >&5
21402 echo "${ECHO_T}yes" >&6; }
21405 echo "$as_me: failed program was:" >&5
21406 sed 's/^/| /' conftest.
$ac_ext >&5
21409 { echo "$as_me:$LINENO: result: no" >&5
21410 echo "${ECHO_T}no" >&6; }
21411 { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
21412 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
21413 cat >conftest.
$ac_ext <<_ACEOF
21416 cat confdefs.h
>>conftest.
$ac_ext
21417 cat >>conftest.
$ac_ext <<_ACEOF
21418 /* end confdefs.h. */
21420 # include <netdb.h>
21427 struct hostent *he;
21432 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
21438 rm -f conftest.
$ac_objext
21439 if { (ac_try
="$ac_compile"
21440 case "(($ac_try" in
21441 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21442 *) ac_try_echo=$ac_try;;
21444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21445 (eval "$ac_compile") 2>conftest.er1
21447 grep -v '^ *+' conftest.er1 >conftest.err
21449 cat conftest.err >&5
21450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21451 (exit $ac_status); } && {
21452 test -z "$ac_c_werror_flag" ||
21453 test ! -s conftest.err
21454 } && test -s conftest.$ac_objext; then
21456 cat >>confdefs.h <<\_ACEOF
21457 #define HAVE_GETHOSTBYNAME_R 1
21461 cat >>confdefs.h <<\_ACEOF
21462 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
21465 { echo "$as_me:$LINENO: result: yes" >&5
21466 echo "${ECHO_T}yes" >&6; }
21469 echo "$as_me: failed program was:" >&5
21470 sed 's/^/| /' conftest.$ac_ext >&5
21473 { echo "$as_me:$LINENO: result: no" >&5
21474 echo "${ECHO_T}no" >&6; }
21475 { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
21476 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
21477 cat >conftest.$ac_ext <<_ACEOF
21480 cat confdefs.h >>conftest.$ac_ext
21481 cat >>conftest.$ac_ext <<_ACEOF
21482 /* end confdefs.h. */
21484 # include <netdb.h>
21491 struct hostent *he;
21492 struct hostent_data data;
21494 (void) gethostbyname_r(name, he, &data);
21500 rm -f conftest.$ac_objext
21501 if { (ac_try="$ac_compile"
21502 case "(($ac_try" in
21503 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21504 *) ac_try_echo
=$ac_try;;
21506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21507 (eval "$ac_compile") 2>conftest.er1
21509 grep -v '^ *+' conftest.er1
>conftest.err
21511 cat conftest.err
>&5
21512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21513 (exit $ac_status); } && {
21514 test -z "$ac_c_werror_flag" ||
21515 test ! -s conftest.err
21516 } && test -s conftest.
$ac_objext; then
21518 cat >>confdefs.h
<<\_ACEOF
21519 #define HAVE_GETHOSTBYNAME_R 1
21523 cat >>confdefs.h
<<\_ACEOF
21524 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
21527 { echo "$as_me:$LINENO: result: yes" >&5
21528 echo "${ECHO_T}yes" >&6; }
21531 echo "$as_me: failed program was:" >&5
21532 sed 's/^/| /' conftest.
$ac_ext >&5
21535 { echo "$as_me:$LINENO: result: no" >&5
21536 echo "${ECHO_T}no" >&6; }
21540 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21544 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21548 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21554 for ac_func
in gethostbyname
21556 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21557 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21558 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21559 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21560 echo $ECHO_N "(cached) $ECHO_C" >&6
21562 cat >conftest.
$ac_ext <<_ACEOF
21565 cat confdefs.h
>>conftest.
$ac_ext
21566 cat >>conftest.
$ac_ext <<_ACEOF
21567 /* end confdefs.h. */
21568 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21569 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21570 #define $ac_func innocuous_$ac_func
21572 /* System header to define __stub macros and hopefully few prototypes,
21573 which can conflict with char $ac_func (); below.
21574 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21575 <limits.h> exists even on freestanding compilers. */
21578 # include <limits.h>
21580 # include <assert.h>
21585 /* Override any GCC internal prototype to avoid an error.
21586 Use char because int might match the return type of a GCC
21587 builtin and then its argument prototype would still apply. */
21592 /* The GNU C library defines this for functions which it implements
21593 to always fail with ENOSYS. Some functions are actually named
21594 something starting with __ and the normal name is an alias. */
21595 #if defined __stub_$ac_func || defined __stub___$ac_func
21602 return $ac_func ();
21607 rm -f conftest.
$ac_objext conftest
$ac_exeext
21608 if { (ac_try
="$ac_link"
21609 case "(($ac_try" in
21610 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21611 *) ac_try_echo=$ac_try;;
21613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21614 (eval "$ac_link") 2>conftest.er1
21616 grep -v '^ *+' conftest.er1 >conftest.err
21618 cat conftest.err >&5
21619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21620 (exit $ac_status); } && {
21621 test -z "$ac_c_werror_flag" ||
21622 test ! -s conftest.err
21623 } && test -s conftest$ac_exeext &&
21624 $as_test_x conftest$ac_exeext; then
21625 eval "$as_ac_var=yes"
21627 echo "$as_me: failed program was:" >&5
21628 sed 's/^/| /' conftest.$ac_ext >&5
21630 eval "$as_ac_var=no"
21633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21634 conftest$ac_exeext conftest.$ac_ext
21636 ac_res=`eval echo '${'$as_ac_var'}'`
21637 { echo "$as_me:$LINENO: result: $ac_res" >&5
21638 echo "${ECHO_T}$ac_res" >&6; }
21639 if test `eval echo '${'$as_ac_var'}'` = yes; then
21640 cat >>confdefs.h <<_ACEOF
21641 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
21656 # checks for system services
21659 # Linux requires this for correct f.p. operations
21660 { echo "$as_me:$LINENO: checking for __fpu_control" >&5
21661 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
21662 if test "${ac_cv_func___fpu_control+set}" = set; then
21663 echo $ECHO_N "(cached) $ECHO_C" >&6
21665 cat >conftest.$ac_ext <<_ACEOF
21668 cat confdefs.h >>conftest.$ac_ext
21669 cat >>conftest.$ac_ext <<_ACEOF
21670 /* end confdefs.h. */
21671 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
21672 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21673 #define __fpu_control innocuous___fpu_control
21675 /* System header to define __stub macros and hopefully few prototypes,
21676 which can conflict with char __fpu_control (); below.
21677 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21678 <limits.h> exists even on freestanding compilers. */
21681 # include <limits.h>
21683 # include <assert.h>
21686 #undef __fpu_control
21688 /* Override any GCC internal prototype to avoid an error.
21689 Use char because int might match the return type of a GCC
21690 builtin and then its argument prototype would still apply. */
21694 char __fpu_control ();
21695 /* The GNU C library defines this for functions which it implements
21696 to always fail with ENOSYS. Some functions are actually named
21697 something starting with __ and the normal name is an alias. */
21698 #if defined __stub___fpu_control || defined __stub_____fpu_control
21705 return __fpu_control ();
21710 rm -f conftest.$ac_objext conftest$ac_exeext
21711 if { (ac_try="$ac_link"
21712 case "(($ac_try" in
21713 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21714 *) ac_try_echo
=$ac_try;;
21716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21717 (eval "$ac_link") 2>conftest.er1
21719 grep -v '^ *+' conftest.er1
>conftest.err
21721 cat conftest.err
>&5
21722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21723 (exit $ac_status); } && {
21724 test -z "$ac_c_werror_flag" ||
21725 test ! -s conftest.err
21726 } && test -s conftest
$ac_exeext &&
21727 $as_test_x conftest
$ac_exeext; then
21728 ac_cv_func___fpu_control
=yes
21730 echo "$as_me: failed program was:" >&5
21731 sed 's/^/| /' conftest.
$ac_ext >&5
21733 ac_cv_func___fpu_control
=no
21736 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21737 conftest
$ac_exeext conftest.
$ac_ext
21739 { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
21740 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
21741 if test $ac_cv_func___fpu_control = yes; then
21745 { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
21746 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
21747 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
21748 echo $ECHO_N "(cached) $ECHO_C" >&6
21750 ac_check_lib_save_LIBS
=$LIBS
21751 LIBS
="-lieee $LIBS"
21752 cat >conftest.
$ac_ext <<_ACEOF
21755 cat confdefs.h
>>conftest.
$ac_ext
21756 cat >>conftest.
$ac_ext <<_ACEOF
21757 /* end confdefs.h. */
21759 /* Override any GCC internal prototype to avoid an error.
21760 Use char because int might match the return type of a GCC
21761 builtin and then its argument prototype would still apply. */
21765 char __fpu_control ();
21769 return __fpu_control ();
21774 rm -f conftest.
$ac_objext conftest
$ac_exeext
21775 if { (ac_try
="$ac_link"
21776 case "(($ac_try" in
21777 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21778 *) ac_try_echo=$ac_try;;
21780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21781 (eval "$ac_link") 2>conftest.er1
21783 grep -v '^ *+' conftest.er1 >conftest.err
21785 cat conftest.err >&5
21786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21787 (exit $ac_status); } && {
21788 test -z "$ac_c_werror_flag" ||
21789 test ! -s conftest.err
21790 } && test -s conftest$ac_exeext &&
21791 $as_test_x conftest$ac_exeext; then
21792 ac_cv_lib_ieee___fpu_control=yes
21794 echo "$as_me: failed program was:" >&5
21795 sed 's/^/| /' conftest.$ac_ext >&5
21797 ac_cv_lib_ieee___fpu_control=no
21800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21801 conftest$ac_exeext conftest.$ac_ext
21802 LIBS=$ac_check_lib_save_LIBS
21804 { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
21805 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
21806 if test $ac_cv_lib_ieee___fpu_control = yes; then
21807 cat >>confdefs.h <<_ACEOF
21808 #define HAVE_LIBIEEE 1
21811 LIBS="-lieee $LIBS"
21819 # Check for --with-fpectl
21820 { echo "$as_me:$LINENO: checking for --with-fpectl" >&5
21821 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
21823 # Check whether --with-fpectl was given.
21824 if test "${with_fpectl+set}" = set; then
21825 withval=$with_fpectl;
21826 if test "$withval" != no
21829 cat >>confdefs.h <<\_ACEOF
21830 #define WANT_SIGFPE_HANDLER 1
21833 { echo "$as_me:$LINENO: result: yes" >&5
21834 echo "${ECHO_T}yes" >&6; }
21835 else { echo "$as_me:$LINENO: result: no" >&5
21836 echo "${ECHO_T}no" >&6; }
21839 { echo "$as_me:$LINENO: result: no" >&5
21840 echo "${ECHO_T}no" >&6; }
21844 # check for --with-libm=...
21846 case $ac_sys_system in
21851 { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
21852 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
21854 # Check whether --with-libm was given.
21855 if test "${with_libm+set}" = set; then
21856 withval=$with_libm;
21857 if test "$withval" = no
21859 { echo "$as_me:$LINENO: result: force LIBM empty" >&5
21860 echo "${ECHO_T}force LIBM empty" >&6; }
21861 elif test "$withval" != yes
21863 { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
21864 echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
21865 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
21866 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
21867 { (exit 1); exit 1; }; }
21870 { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
21871 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
21875 # check for --with-libc=...
21877 { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
21878 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
21880 # Check whether --with-libc was given.
21881 if test "${with_libc+set}" = set; then
21882 withval=$with_libc;
21883 if test "$withval" = no
21885 { echo "$as_me:$LINENO: result: force LIBC empty" >&5
21886 echo "${ECHO_T}force LIBC empty" >&6; }
21887 elif test "$withval" != yes
21889 { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
21890 echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
21891 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
21892 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
21893 { (exit 1); exit 1; }; }
21896 { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
21897 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
21901 # ************************************
21902 # * Check for mathematical functions *
21903 # ************************************
21908 # Detect whether system arithmetic is subject to x87-style double
21909 # rounding issues. The result of this test has little meaning on non
21910 # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding
21911 # mode is round-to-nearest and double rounding issues are present, and
21912 # 0 otherwise. See http://bugs.python.org/issue2937 for more info.
21913 { echo "$as_me:$LINENO: checking for x87-style double rounding" >&5
21914 echo $ECHO_N "checking for x87-style double rounding... $ECHO_C" >&6; }
21915 if test "${ac_cv_x87_double_rounding+set}" = set; then
21916 echo $ECHO_N "(cached) $ECHO_C" >&6
21919 if test "$cross_compiling" = yes; then
21920 ac_cv_x87_double_rounding=no
21922 cat >conftest.$ac_ext <<_ACEOF
21925 cat confdefs.h >>conftest.$ac_ext
21926 cat >>conftest.$ac_ext <<_ACEOF
21927 /* end confdefs.h. */
21929 #include <stdlib.h>
21932 volatile double x, y, z;
21933 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
21934 x = 0.99999999999999989; /* 1-2**-53 */
21938 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
21944 /* both tests show evidence of double rounding */
21949 rm -f conftest$ac_exeext
21950 if { (ac_try="$ac_link"
21951 case "(($ac_try" in
21952 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21953 *) ac_try_echo
=$ac_try;;
21955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21956 (eval "$ac_link") 2>&5
21958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21959 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21960 { (case "(($ac_try" in
21961 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21962 *) ac_try_echo=$ac_try;;
21964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21965 (eval "$ac_try") 2>&5
21967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21968 (exit $ac_status); }; }; then
21969 ac_cv_x87_double_rounding=no
21971 echo "$as_me: program exited with status $ac_status" >&5
21972 echo "$as_me: failed program was:" >&5
21973 sed 's/^/| /' conftest.$ac_ext >&5
21975 ( exit $ac_status )
21976 ac_cv_x87_double_rounding=yes
21978 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21984 { echo "$as_me:$LINENO: result: $ac_cv_x87_double_rounding" >&5
21985 echo "${ECHO_T}$ac_cv_x87_double_rounding" >&6; }
21986 if test "$ac_cv_x87_double_rounding" = yes
21989 cat >>confdefs.h <<\_ACEOF
21990 #define X87_DOUBLE_ROUNDING 1
21996 # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
21997 # -0. on some architectures.
21998 { echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5
21999 echo $ECHO_N "checking whether tanh preserves the sign of zero... $ECHO_C" >&6; }
22000 if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then
22001 echo $ECHO_N "(cached) $ECHO_C" >&6
22004 if test "$cross_compiling" = yes; then
22005 ac_cv_tanh_preserves_zero_sign=no
22007 cat >conftest.$ac_ext <<_ACEOF
22010 cat confdefs.h >>conftest.$ac_ext
22011 cat >>conftest.$ac_ext <<_ACEOF
22012 /* end confdefs.h. */
22015 #include <stdlib.h>
22017 /* return 0 if either negative zeros don't exist
22018 on this platform or if negative zeros exist
22019 and tanh(-0.) == -0. */
22020 if (atan2(0., -1.) == atan2(-0., -1.) ||
22021 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
22026 rm -f conftest$ac_exeext
22027 if { (ac_try="$ac_link"
22028 case "(($ac_try" in
22029 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22030 *) ac_try_echo
=$ac_try;;
22032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22033 (eval "$ac_link") 2>&5
22035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22036 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22037 { (case "(($ac_try" in
22038 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22039 *) ac_try_echo=$ac_try;;
22041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22042 (eval "$ac_try") 2>&5
22044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22045 (exit $ac_status); }; }; then
22046 ac_cv_tanh_preserves_zero_sign=yes
22048 echo "$as_me: program exited with status $ac_status" >&5
22049 echo "$as_me: failed program was:" >&5
22050 sed 's/^/| /' conftest.$ac_ext >&5
22052 ( exit $ac_status )
22053 ac_cv_tanh_preserves_zero_sign=no
22055 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22061 { echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5
22062 echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; }
22063 if test "$ac_cv_tanh_preserves_zero_sign" = yes
22066 cat >>confdefs.h <<\_ACEOF
22067 #define TANH_PRESERVES_ZERO_SIGN 1
22080 for ac_func in acosh asinh atanh copysign expm1 finite hypot log1p
22082 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
22083 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22084 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22085 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22086 echo $ECHO_N "(cached) $ECHO_C" >&6
22088 cat >conftest.$ac_ext <<_ACEOF
22091 cat confdefs.h >>conftest.$ac_ext
22092 cat >>conftest.$ac_ext <<_ACEOF
22093 /* end confdefs.h. */
22094 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22095 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22096 #define $ac_func innocuous_$ac_func
22098 /* System header to define __stub macros and hopefully few prototypes,
22099 which can conflict with char $ac_func (); below.
22100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22101 <limits.h> exists even on freestanding compilers. */
22104 # include <limits.h>
22106 # include <assert.h>
22111 /* Override any GCC internal prototype to avoid an error.
22112 Use char because int might match the return type of a GCC
22113 builtin and then its argument prototype would still apply. */
22118 /* The GNU C library defines this for functions which it implements
22119 to always fail with ENOSYS. Some functions are actually named
22120 something starting with __ and the normal name is an alias. */
22121 #if defined __stub_$ac_func || defined __stub___$ac_func
22128 return $ac_func ();
22133 rm -f conftest.$ac_objext conftest$ac_exeext
22134 if { (ac_try="$ac_link"
22135 case "(($ac_try" in
22136 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22137 *) ac_try_echo
=$ac_try;;
22139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22140 (eval "$ac_link") 2>conftest.er1
22142 grep -v '^ *+' conftest.er1
>conftest.err
22144 cat conftest.err
>&5
22145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22146 (exit $ac_status); } && {
22147 test -z "$ac_c_werror_flag" ||
22148 test ! -s conftest.err
22149 } && test -s conftest
$ac_exeext &&
22150 $as_test_x conftest
$ac_exeext; then
22151 eval "$as_ac_var=yes"
22153 echo "$as_me: failed program was:" >&5
22154 sed 's/^/| /' conftest.
$ac_ext >&5
22156 eval "$as_ac_var=no"
22159 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22160 conftest
$ac_exeext conftest.
$ac_ext
22162 ac_res
=`eval echo '${'$as_ac_var'}'`
22163 { echo "$as_me:$LINENO: result: $ac_res" >&5
22164 echo "${ECHO_T}$ac_res" >&6; }
22165 if test `eval echo '${'$as_ac_var'}'` = yes; then
22166 cat >>confdefs.h
<<_ACEOF
22167 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22173 { echo "$as_me:$LINENO: checking whether isinf is declared" >&5
22174 echo $ECHO_N "checking whether isinf is declared... $ECHO_C" >&6; }
22175 if test "${ac_cv_have_decl_isinf+set}" = set; then
22176 echo $ECHO_N "(cached) $ECHO_C" >&6
22178 cat >conftest.
$ac_ext <<_ACEOF
22181 cat confdefs.h
>>conftest.
$ac_ext
22182 cat >>conftest.
$ac_ext <<_ACEOF
22183 /* end confdefs.h. */
22197 rm -f conftest.
$ac_objext
22198 if { (ac_try
="$ac_compile"
22199 case "(($ac_try" in
22200 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22201 *) ac_try_echo=$ac_try;;
22203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22204 (eval "$ac_compile") 2>conftest.er1
22206 grep -v '^ *+' conftest.er1 >conftest.err
22208 cat conftest.err >&5
22209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22210 (exit $ac_status); } && {
22211 test -z "$ac_c_werror_flag" ||
22212 test ! -s conftest.err
22213 } && test -s conftest.$ac_objext; then
22214 ac_cv_have_decl_isinf=yes
22216 echo "$as_me: failed program was:" >&5
22217 sed 's/^/| /' conftest.$ac_ext >&5
22219 ac_cv_have_decl_isinf=no
22222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22224 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isinf" >&5
22225 echo "${ECHO_T}$ac_cv_have_decl_isinf" >&6; }
22226 if test $ac_cv_have_decl_isinf = yes; then
22228 cat >>confdefs.h <<_ACEOF
22229 #define HAVE_DECL_ISINF 1
22234 cat >>confdefs.h <<_ACEOF
22235 #define HAVE_DECL_ISINF 0
22240 { echo "$as_me:$LINENO: checking whether isnan is declared" >&5
22241 echo $ECHO_N "checking whether isnan is declared... $ECHO_C" >&6; }
22242 if test "${ac_cv_have_decl_isnan+set}" = set; then
22243 echo $ECHO_N "(cached) $ECHO_C" >&6
22245 cat >conftest.$ac_ext <<_ACEOF
22248 cat confdefs.h >>conftest.$ac_ext
22249 cat >>conftest.$ac_ext <<_ACEOF
22250 /* end confdefs.h. */
22264 rm -f conftest.$ac_objext
22265 if { (ac_try="$ac_compile"
22266 case "(($ac_try" in
22267 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22268 *) ac_try_echo
=$ac_try;;
22270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22271 (eval "$ac_compile") 2>conftest.er1
22273 grep -v '^ *+' conftest.er1
>conftest.err
22275 cat conftest.err
>&5
22276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22277 (exit $ac_status); } && {
22278 test -z "$ac_c_werror_flag" ||
22279 test ! -s conftest.err
22280 } && test -s conftest.
$ac_objext; then
22281 ac_cv_have_decl_isnan
=yes
22283 echo "$as_me: failed program was:" >&5
22284 sed 's/^/| /' conftest.
$ac_ext >&5
22286 ac_cv_have_decl_isnan
=no
22289 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22291 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isnan" >&5
22292 echo "${ECHO_T}$ac_cv_have_decl_isnan" >&6; }
22293 if test $ac_cv_have_decl_isnan = yes; then
22295 cat >>confdefs.h
<<_ACEOF
22296 #define HAVE_DECL_ISNAN 1
22301 cat >>confdefs.h
<<_ACEOF
22302 #define HAVE_DECL_ISNAN 0
22307 { echo "$as_me:$LINENO: checking whether isfinite is declared" >&5
22308 echo $ECHO_N "checking whether isfinite is declared... $ECHO_C" >&6; }
22309 if test "${ac_cv_have_decl_isfinite+set}" = set; then
22310 echo $ECHO_N "(cached) $ECHO_C" >&6
22312 cat >conftest.
$ac_ext <<_ACEOF
22315 cat confdefs.h
>>conftest.
$ac_ext
22316 cat >>conftest.
$ac_ext <<_ACEOF
22317 /* end confdefs.h. */
22331 rm -f conftest.
$ac_objext
22332 if { (ac_try
="$ac_compile"
22333 case "(($ac_try" in
22334 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22335 *) ac_try_echo=$ac_try;;
22337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22338 (eval "$ac_compile") 2>conftest.er1
22340 grep -v '^ *+' conftest.er1 >conftest.err
22342 cat conftest.err >&5
22343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22344 (exit $ac_status); } && {
22345 test -z "$ac_c_werror_flag" ||
22346 test ! -s conftest.err
22347 } && test -s conftest.$ac_objext; then
22348 ac_cv_have_decl_isfinite=yes
22350 echo "$as_me: failed program was:" >&5
22351 sed 's/^/| /' conftest.$ac_ext >&5
22353 ac_cv_have_decl_isfinite=no
22356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22358 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isfinite" >&5
22359 echo "${ECHO_T}$ac_cv_have_decl_isfinite" >&6; }
22360 if test $ac_cv_have_decl_isfinite = yes; then
22362 cat >>confdefs.h <<_ACEOF
22363 #define HAVE_DECL_ISFINITE 1
22368 cat >>confdefs.h <<_ACEOF
22369 #define HAVE_DECL_ISFINITE 0
22379 # determine what size digit to use for Python's longs
22380 { echo "$as_me:$LINENO: checking digit size for Python's longs" >&5
22381 echo $ECHO_N "checking digit size for Python's longs... $ECHO_C" >&6; }
22382 # Check whether --enable-big-digits was given.
22383 if test "${enable_big_digits+set}" = set; then
22384 enableval=$enable_big_digits; case $enable_big_digits in
22386 enable_big_digits=30 ;;
22388 enable_big_digits=15 ;;
22392 { { echo "$as_me:$LINENO: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&5
22393 echo "$as_me: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&2;}
22394 { (exit 1); exit 1; }; } ;;
22396 { echo "$as_me:$LINENO: result: $enable_big_digits" >&5
22397 echo "${ECHO_T}$enable_big_digits" >&6; }
22399 cat >>confdefs.h <<_ACEOF
22400 #define PYLONG_BITS_IN_DIGIT $enable_big_digits
22405 { echo "$as_me:$LINENO: result: no value specified" >&5
22406 echo "${ECHO_T}no value specified" >&6; }
22410 # check for wchar.h
22411 if test "${ac_cv_header_wchar_h+set}" = set; then
22412 { echo "$as_me:$LINENO: checking for wchar.h" >&5
22413 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
22414 if test "${ac_cv_header_wchar_h+set}" = set; then
22415 echo $ECHO_N "(cached) $ECHO_C" >&6
22417 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
22418 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
22420 # Is the header compilable?
22421 { echo "$as_me:$LINENO: checking wchar.h usability" >&5
22422 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; }
22423 cat >conftest.$ac_ext <<_ACEOF
22426 cat confdefs.h >>conftest.$ac_ext
22427 cat >>conftest.$ac_ext <<_ACEOF
22428 /* end confdefs.h. */
22429 $ac_includes_default
22432 rm -f conftest.$ac_objext
22433 if { (ac_try="$ac_compile"
22434 case "(($ac_try" in
22435 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22436 *) ac_try_echo
=$ac_try;;
22438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22439 (eval "$ac_compile") 2>conftest.er1
22441 grep -v '^ *+' conftest.er1
>conftest.err
22443 cat conftest.err
>&5
22444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22445 (exit $ac_status); } && {
22446 test -z "$ac_c_werror_flag" ||
22447 test ! -s conftest.err
22448 } && test -s conftest.
$ac_objext; then
22449 ac_header_compiler
=yes
22451 echo "$as_me: failed program was:" >&5
22452 sed 's/^/| /' conftest.
$ac_ext >&5
22454 ac_header_compiler
=no
22457 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22458 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22459 echo "${ECHO_T}$ac_header_compiler" >&6; }
22461 # Is the header present?
22462 { echo "$as_me:$LINENO: checking wchar.h presence" >&5
22463 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; }
22464 cat >conftest.
$ac_ext <<_ACEOF
22467 cat confdefs.h
>>conftest.
$ac_ext
22468 cat >>conftest.
$ac_ext <<_ACEOF
22469 /* end confdefs.h. */
22472 if { (ac_try
="$ac_cpp conftest.$ac_ext"
22473 case "(($ac_try" in
22474 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22475 *) ac_try_echo=$ac_try;;
22477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22478 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22480 grep -v '^ *+' conftest.er1 >conftest.err
22482 cat conftest.err >&5
22483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22484 (exit $ac_status); } >/dev/null && {
22485 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22486 test ! -s conftest.err
22488 ac_header_preproc=yes
22490 echo "$as_me: failed program was:" >&5
22491 sed 's/^/| /' conftest.$ac_ext >&5
22493 ac_header_preproc=no
22496 rm -f conftest.err conftest.$ac_ext
22497 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22498 echo "${ECHO_T}$ac_header_preproc" >&6; }
22500 # So? What about this header?
22501 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22503 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
22504 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22505 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
22506 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
22507 ac_header_preproc=yes
22510 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
22511 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
22512 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
22513 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
22514 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
22515 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
22516 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
22517 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
22518 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
22519 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
22520 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
22521 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
22523 ## ------------------------------------------------ ##
22524 ## Report this to http://www.python.org/python-bugs ##
22525 ## ------------------------------------------------ ##
22527 ) | sed "s/^/$as_me: WARNING: /" >&2
22530 { echo "$as_me:$LINENO: checking for wchar.h" >&5
22531 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
22532 if test "${ac_cv_header_wchar_h+set}" = set; then
22533 echo $ECHO_N "(cached) $ECHO_C" >&6
22535 ac_cv_header_wchar_h=$ac_header_preproc
22537 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
22538 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
22541 if test $ac_cv_header_wchar_h = yes; then
22544 cat >>confdefs.h <<\_ACEOF
22545 #define HAVE_WCHAR_H 1
22557 # determine wchar_t size
22558 if test "$wchar_h" = yes
22560 { echo "$as_me:$LINENO: checking for wchar_t" >&5
22561 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
22562 if test "${ac_cv_type_wchar_t+set}" = set; then
22563 echo $ECHO_N "(cached) $ECHO_C" >&6
22565 cat >conftest.$ac_ext <<_ACEOF
22568 cat confdefs.h >>conftest.$ac_ext
22569 cat >>conftest.$ac_ext <<_ACEOF
22570 /* end confdefs.h. */
22573 typedef wchar_t ac__type_new_;
22577 if ((ac__type_new_ *) 0)
22579 if (sizeof (ac__type_new_))
22585 rm -f conftest.$ac_objext
22586 if { (ac_try="$ac_compile"
22587 case "(($ac_try" in
22588 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22589 *) ac_try_echo
=$ac_try;;
22591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22592 (eval "$ac_compile") 2>conftest.er1
22594 grep -v '^ *+' conftest.er1
>conftest.err
22596 cat conftest.err
>&5
22597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22598 (exit $ac_status); } && {
22599 test -z "$ac_c_werror_flag" ||
22600 test ! -s conftest.err
22601 } && test -s conftest.
$ac_objext; then
22602 ac_cv_type_wchar_t
=yes
22604 echo "$as_me: failed program was:" >&5
22605 sed 's/^/| /' conftest.
$ac_ext >&5
22607 ac_cv_type_wchar_t
=no
22610 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22612 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
22613 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
22615 # The cast to long int works around a bug in the HP C Compiler
22616 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22617 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22618 # This bug is HP SR number 8606223364.
22619 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
22620 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
22621 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
22622 echo $ECHO_N "(cached) $ECHO_C" >&6
22624 if test "$cross_compiling" = yes; then
22625 # Depending upon the size, compute the lo and hi bounds.
22626 cat >conftest.
$ac_ext <<_ACEOF
22629 cat confdefs.h
>>conftest.
$ac_ext
22630 cat >>conftest.
$ac_ext <<_ACEOF
22631 /* end confdefs.h. */
22634 typedef wchar_t ac__type_sizeof_;
22638 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22645 rm -f conftest.
$ac_objext
22646 if { (ac_try
="$ac_compile"
22647 case "(($ac_try" in
22648 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22649 *) ac_try_echo=$ac_try;;
22651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22652 (eval "$ac_compile") 2>conftest.er1
22654 grep -v '^ *+' conftest.er1 >conftest.err
22656 cat conftest.err >&5
22657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22658 (exit $ac_status); } && {
22659 test -z "$ac_c_werror_flag" ||
22660 test ! -s conftest.err
22661 } && test -s conftest.$ac_objext; then
22664 cat >conftest.$ac_ext <<_ACEOF
22667 cat confdefs.h >>conftest.$ac_ext
22668 cat >>conftest.$ac_ext <<_ACEOF
22669 /* end confdefs.h. */
22672 typedef wchar_t ac__type_sizeof_;
22676 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22683 rm -f conftest.$ac_objext
22684 if { (ac_try="$ac_compile"
22685 case "(($ac_try" in
22686 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22687 *) ac_try_echo
=$ac_try;;
22689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22690 (eval "$ac_compile") 2>conftest.er1
22692 grep -v '^ *+' conftest.er1
>conftest.err
22694 cat conftest.err
>&5
22695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22696 (exit $ac_status); } && {
22697 test -z "$ac_c_werror_flag" ||
22698 test ! -s conftest.err
22699 } && test -s conftest.
$ac_objext; then
22700 ac_hi
=$ac_mid; break
22702 echo "$as_me: failed program was:" >&5
22703 sed 's/^/| /' conftest.
$ac_ext >&5
22705 ac_lo
=`expr $ac_mid + 1`
22706 if test $ac_lo -le $ac_mid; then
22710 ac_mid
=`expr 2 '*' $ac_mid + 1`
22713 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22716 echo "$as_me: failed program was:" >&5
22717 sed 's/^/| /' conftest.
$ac_ext >&5
22719 cat >conftest.
$ac_ext <<_ACEOF
22722 cat confdefs.h
>>conftest.
$ac_ext
22723 cat >>conftest.
$ac_ext <<_ACEOF
22724 /* end confdefs.h. */
22727 typedef wchar_t ac__type_sizeof_;
22731 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22738 rm -f conftest.
$ac_objext
22739 if { (ac_try
="$ac_compile"
22740 case "(($ac_try" in
22741 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22742 *) ac_try_echo=$ac_try;;
22744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22745 (eval "$ac_compile") 2>conftest.er1
22747 grep -v '^ *+' conftest.er1 >conftest.err
22749 cat conftest.err >&5
22750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22751 (exit $ac_status); } && {
22752 test -z "$ac_c_werror_flag" ||
22753 test ! -s conftest.err
22754 } && test -s conftest.$ac_objext; then
22757 cat >conftest.$ac_ext <<_ACEOF
22760 cat confdefs.h >>conftest.$ac_ext
22761 cat >>conftest.$ac_ext <<_ACEOF
22762 /* end confdefs.h. */
22765 typedef wchar_t ac__type_sizeof_;
22769 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22776 rm -f conftest.$ac_objext
22777 if { (ac_try="$ac_compile"
22778 case "(($ac_try" in
22779 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22780 *) ac_try_echo
=$ac_try;;
22782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22783 (eval "$ac_compile") 2>conftest.er1
22785 grep -v '^ *+' conftest.er1
>conftest.err
22787 cat conftest.err
>&5
22788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22789 (exit $ac_status); } && {
22790 test -z "$ac_c_werror_flag" ||
22791 test ! -s conftest.err
22792 } && test -s conftest.
$ac_objext; then
22793 ac_lo
=$ac_mid; break
22795 echo "$as_me: failed program was:" >&5
22796 sed 's/^/| /' conftest.
$ac_ext >&5
22798 ac_hi
=`expr '(' $ac_mid ')' - 1`
22799 if test $ac_mid -le $ac_hi; then
22803 ac_mid
=`expr 2 '*' $ac_mid`
22806 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22809 echo "$as_me: failed program was:" >&5
22810 sed 's/^/| /' conftest.
$ac_ext >&5
22815 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22818 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22819 # Binary search between lo and hi bounds.
22820 while test "x$ac_lo" != "x$ac_hi"; do
22821 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22822 cat >conftest.
$ac_ext <<_ACEOF
22825 cat confdefs.h
>>conftest.
$ac_ext
22826 cat >>conftest.
$ac_ext <<_ACEOF
22827 /* end confdefs.h. */
22830 typedef wchar_t ac__type_sizeof_;
22834 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22841 rm -f conftest.
$ac_objext
22842 if { (ac_try
="$ac_compile"
22843 case "(($ac_try" in
22844 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22845 *) ac_try_echo=$ac_try;;
22847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22848 (eval "$ac_compile") 2>conftest.er1
22850 grep -v '^ *+' conftest.er1 >conftest.err
22852 cat conftest.err >&5
22853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22854 (exit $ac_status); } && {
22855 test -z "$ac_c_werror_flag" ||
22856 test ! -s conftest.err
22857 } && test -s conftest.$ac_objext; then
22860 echo "$as_me: failed program was:" >&5
22861 sed 's/^/| /' conftest.$ac_ext >&5
22863 ac_lo=`expr '(' $ac_mid ')' + 1`
22866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22869 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
22870 '') if test "$ac_cv_type_wchar_t" = yes; then
22871 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
22872 See \`config.log
' for more details." >&5
22873 echo "$as_me: error: cannot compute sizeof (wchar_t)
22874 See \`config.log' for more details.
" >&2;}
22875 { (exit 77); exit 77; }; }
22877 ac_cv_sizeof_wchar_t=0
22881 cat >conftest.$ac_ext <<_ACEOF
22884 cat confdefs.h >>conftest.$ac_ext
22885 cat >>conftest.$ac_ext <<_ACEOF
22886 /* end confdefs.h. */
22889 typedef wchar_t ac__type_sizeof_;
22890 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22891 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22893 #include <stdlib.h>
22898 FILE *f = fopen ("conftest.val
", "w
");
22901 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22903 long int i = longval ();
22904 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22906 fprintf (f, "%ld
\n", i);
22910 unsigned long int i = ulongval ();
22911 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22913 fprintf (f, "%lu
\n", i);
22915 return ferror (f) || fclose (f) != 0;
22921 rm -f conftest$ac_exeext
22922 if { (ac_try="$ac_link"
22923 case "(($ac_try" in
22924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22925 *) ac_try_echo=$ac_try;;
22927 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22928 (eval "$ac_link") 2>&5
22930 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22931 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22932 { (case "(($ac_try" in
22933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22934 *) ac_try_echo=$ac_try;;
22936 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22937 (eval "$ac_try") 2>&5
22939 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22940 (exit $ac_status); }; }; then
22941 ac_cv_sizeof_wchar_t=`cat conftest.val`
22943 echo "$as_me: program exited with status
$ac_status" >&5
22944 echo "$as_me: failed program was
:" >&5
22945 sed 's/^/| /' conftest.$ac_ext >&5
22947 ( exit $ac_status )
22948 if test "$ac_cv_type_wchar_t" = yes; then
22949 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(wchar_t
)
22950 See \
`config.log' for more details." >&5
22951 echo "$as_me: error: cannot compute sizeof (wchar_t)
22952 See \`config.log
' for more details." >&2;}
22953 { (exit 77); exit 77; }; }
22955 ac_cv_sizeof_wchar_t=0
22958 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22962 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
22963 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
22967 cat >>confdefs.h <<_ACEOF
22968 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
22974 { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
22975 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6; }
22977 cat >conftest.$ac_ext <<_ACEOF
22980 cat confdefs.h >>conftest.$ac_ext
22981 cat >>conftest.$ac_ext <<_ACEOF
22982 /* end confdefs.h. */
22985 #if TCL_UTF_MAX != 6
22986 # error "NOT UCS4_TCL"
22996 rm -f conftest.$ac_objext
22997 if { (ac_try="$ac_compile"
22998 case "(($ac_try" in
22999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23000 *) ac_try_echo=$ac_try;;
23002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23003 (eval "$ac_compile") 2>conftest.er1
23005 grep -v '^
*+' conftest.er1 >conftest.err
23007 cat conftest.err >&5
23008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23009 (exit $ac_status); } && {
23010 test -z "$ac_c_werror_flag" ||
23011 test ! -s conftest.err
23012 } && test -s conftest.$ac_objext; then
23015 cat >>confdefs.h <<\_ACEOF
23016 #define HAVE_UCS4_TCL 1
23022 echo "$as_me: failed program was:" >&5
23023 sed 's
/^
/|
/' conftest.$ac_ext >&5
23028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23029 { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
23030 echo "${ECHO_T}$have_ucs4_tcl" >&6; }
23032 # check whether wchar_t is signed or not
23033 if test "$wchar_h" = yes
23035 # check whether wchar_t is signed or not
23036 { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
23037 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6; }
23038 if test "${ac_cv_wchar_t_signed+set}" = set; then
23039 echo $ECHO_N "(cached) $ECHO_C" >&6
23042 if test "$cross_compiling" = yes; then
23043 ac_cv_wchar_t_signed=yes
23045 cat >conftest.$ac_ext <<_ACEOF
23048 cat confdefs.h >>conftest.$ac_ext
23049 cat >>conftest.$ac_ext <<_ACEOF
23050 /* end confdefs.h. */
23055 /* Success: exit code 0 */
23056 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
23060 rm -f conftest$ac_exeext
23061 if { (ac_try="$ac_link"
23062 case "(($ac_try" in
23063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23064 *) ac_try_echo=$ac_try;;
23066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23067 (eval "$ac_link") 2>&5
23069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23070 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
23071 { (case "(($ac_try" in
23072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23073 *) ac_try_echo=$ac_try;;
23075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23076 (eval "$ac_try") 2>&5
23078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23079 (exit $ac_status); }; }; then
23080 ac_cv_wchar_t_signed=yes
23082 echo "$as_me: program exited with status $ac_status" >&5
23083 echo "$as_me: failed program was:" >&5
23084 sed 's
/^
/|
/' conftest.$ac_ext >&5
23086 ( exit $ac_status )
23087 ac_cv_wchar_t_signed=no
23089 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23095 { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
23096 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
23099 { echo "$as_me:$LINENO: checking what type to use for unicode" >&5
23100 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6; }
23101 # Check whether --enable-unicode was given.
23102 if test "${enable_unicode+set}" = set; then
23103 enableval=$enable_unicode;
23109 if test $enable_unicode = yes
23111 # Without any arguments, Py_UNICODE defaults to two-byte mode
23112 case "$have_ucs4_tcl" in
23113 yes) enable_unicode="ucs4"
23115 *) enable_unicode="ucs2"
23122 case "$enable_unicode" in
23123 ucs2) unicode_size="2"
23124 cat >>confdefs.h <<\_ACEOF
23125 #define Py_UNICODE_SIZE 2
23129 ucs4) unicode_size="4"
23130 cat >>confdefs.h <<\_ACEOF
23131 #define Py_UNICODE_SIZE 4
23141 if test "$enable_unicode" = "no"
23144 { echo "$as_me:$LINENO: result: not used" >&5
23145 echo "${ECHO_T}not used" >&6; }
23147 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
23149 cat >>confdefs.h <<\_ACEOF
23150 #define Py_USING_UNICODE 1
23154 # wchar_t is only usable if it maps to an unsigned type
23155 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
23156 -a "$ac_cv_wchar_t_signed" = "no"
23158 PY_UNICODE_TYPE="wchar_t"
23160 cat >>confdefs.h <<\_ACEOF
23161 #define HAVE_USABLE_WCHAR_T 1
23164 cat >>confdefs.h <<\_ACEOF
23165 #define PY_UNICODE_TYPE wchar_t
23168 elif test "$ac_cv_sizeof_short" = "$unicode_size"
23170 PY_UNICODE_TYPE="unsigned short"
23171 cat >>confdefs.h <<\_ACEOF
23172 #define PY_UNICODE_TYPE unsigned short
23175 elif test "$ac_cv_sizeof_long" = "$unicode_size"
23177 PY_UNICODE_TYPE="unsigned long"
23178 cat >>confdefs.h <<\_ACEOF
23179 #define PY_UNICODE_TYPE unsigned long
23183 PY_UNICODE_TYPE="no type found"
23185 { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
23186 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
23189 # check for endianness
23190 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
23191 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
23192 if test "${ac_cv_c_bigendian+set}" = set; then
23193 echo $ECHO_N "(cached) $ECHO_C" >&6
23195 # See if sys/param.h defines the BYTE_ORDER macro.
23196 cat >conftest.$ac_ext <<_ACEOF
23199 cat confdefs.h >>conftest.$ac_ext
23200 cat >>conftest.$ac_ext <<_ACEOF
23201 /* end confdefs.h. */
23202 #include <sys/types.h>
23203 #include <sys/param.h>
23208 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
23209 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
23210 bogus endian macros
23217 rm -f conftest.$ac_objext
23218 if { (ac_try="$ac_compile"
23219 case "(($ac_try" in
23220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23221 *) ac_try_echo=$ac_try;;
23223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23224 (eval "$ac_compile") 2>conftest.er1
23226 grep -v '^
*+' conftest.er1 >conftest.err
23228 cat conftest.err >&5
23229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23230 (exit $ac_status); } && {
23231 test -z "$ac_c_werror_flag" ||
23232 test ! -s conftest.err
23233 } && test -s conftest.$ac_objext; then
23234 # It does; now see whether it defined to BIG_ENDIAN or not.
23235 cat >conftest.$ac_ext <<_ACEOF
23238 cat confdefs.h >>conftest.$ac_ext
23239 cat >>conftest.$ac_ext <<_ACEOF
23240 /* end confdefs.h. */
23241 #include <sys/types.h>
23242 #include <sys/param.h>
23247 #if BYTE_ORDER != BIG_ENDIAN
23255 rm -f conftest.$ac_objext
23256 if { (ac_try="$ac_compile"
23257 case "(($ac_try" in
23258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23259 *) ac_try_echo=$ac_try;;
23261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23262 (eval "$ac_compile") 2>conftest.er1
23264 grep -v '^
*+' conftest.er1 >conftest.err
23266 cat conftest.err >&5
23267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23268 (exit $ac_status); } && {
23269 test -z "$ac_c_werror_flag" ||
23270 test ! -s conftest.err
23271 } && test -s conftest.$ac_objext; then
23272 ac_cv_c_bigendian=yes
23274 echo "$as_me: failed program was:" >&5
23275 sed 's
/^
/|
/' conftest.$ac_ext >&5
23277 ac_cv_c_bigendian=no
23280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23282 echo "$as_me: failed program was:" >&5
23283 sed 's
/^
/|
/' conftest.$ac_ext >&5
23285 # It does not; compile a test program.
23286 if test "$cross_compiling" = yes; then
23287 # try to guess the endianness by grepping values into an object file
23288 ac_cv_c_bigendian=unknown
23289 cat >conftest.$ac_ext <<_ACEOF
23292 cat confdefs.h >>conftest.$ac_ext
23293 cat >>conftest.$ac_ext <<_ACEOF
23294 /* end confdefs.h. */
23295 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23296 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23297 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
23298 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23299 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23300 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
23304 _ascii (); _ebcdic ();
23309 rm -f conftest.$ac_objext
23310 if { (ac_try="$ac_compile"
23311 case "(($ac_try" in
23312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23313 *) ac_try_echo=$ac_try;;
23315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23316 (eval "$ac_compile") 2>conftest.er1
23318 grep -v '^
*+' conftest.er1 >conftest.err
23320 cat conftest.err >&5
23321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23322 (exit $ac_status); } && {
23323 test -z "$ac_c_werror_flag" ||
23324 test ! -s conftest.err
23325 } && test -s conftest.$ac_objext; then
23326 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
23327 ac_cv_c_bigendian=yes
23329 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23330 if test "$ac_cv_c_bigendian" = unknown; then
23331 ac_cv_c_bigendian=no
23333 # finding both strings is unlikely to happen, but who knows?
23334 ac_cv_c_bigendian=unknown
23338 echo "$as_me: failed program was:" >&5
23339 sed 's
/^
/|
/' conftest.$ac_ext >&5
23344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23346 cat >conftest.$ac_ext <<_ACEOF
23349 cat confdefs.h >>conftest.$ac_ext
23350 cat >>conftest.$ac_ext <<_ACEOF
23351 /* end confdefs.h. */
23352 $ac_includes_default
23357 /* Are we little or big endian? From Harbison&Steele. */
23361 char c[sizeof (long int)];
23364 return u.c[sizeof (long int) - 1] == 1;
23370 rm -f conftest$ac_exeext
23371 if { (ac_try="$ac_link"
23372 case "(($ac_try" in
23373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23374 *) ac_try_echo=$ac_try;;
23376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23377 (eval "$ac_link") 2>&5
23379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23380 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
23381 { (case "(($ac_try" in
23382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23383 *) ac_try_echo=$ac_try;;
23385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23386 (eval "$ac_try") 2>&5
23388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23389 (exit $ac_status); }; }; then
23390 ac_cv_c_bigendian=no
23392 echo "$as_me: program exited with status $ac_status" >&5
23393 echo "$as_me: failed program was:" >&5
23394 sed 's
/^
/|
/' conftest.$ac_ext >&5
23396 ( exit $ac_status )
23397 ac_cv_c_bigendian=yes
23399 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23407 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
23408 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
23409 case $ac_cv_c_bigendian in
23412 cat >>confdefs.h <<\_ACEOF
23413 #define WORDS_BIGENDIAN 1
23419 { { echo "$as_me:$LINENO: error: unknown endianness
23420 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
23421 echo "$as_me: error: unknown endianness
23422 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
23423 { (exit 1); exit 1; }; } ;;
23427 # Check whether right shifting a negative integer extends the sign bit
23428 # or fills with zeros (like the Cray J90, according to Tim Peters).
23429 { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
23430 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6; }
23431 if test "${ac_cv_rshift_extends_sign+set}" = set; then
23432 echo $ECHO_N "(cached) $ECHO_C" >&6
23435 if test "$cross_compiling" = yes; then
23436 ac_cv_rshift_extends_sign=yes
23438 cat >conftest.$ac_ext <<_ACEOF
23441 cat confdefs.h >>conftest.$ac_ext
23442 cat >>conftest.$ac_ext <<_ACEOF
23443 /* end confdefs.h. */
23447 exit(((-1)>>3 == -1) ? 0 : 1);
23451 rm -f conftest$ac_exeext
23452 if { (ac_try="$ac_link"
23453 case "(($ac_try" in
23454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23455 *) ac_try_echo=$ac_try;;
23457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23458 (eval "$ac_link") 2>&5
23460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23461 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
23462 { (case "(($ac_try" in
23463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23464 *) ac_try_echo=$ac_try;;
23466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23467 (eval "$ac_try") 2>&5
23469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23470 (exit $ac_status); }; }; then
23471 ac_cv_rshift_extends_sign=yes
23473 echo "$as_me: program exited with status $ac_status" >&5
23474 echo "$as_me: failed program was:" >&5
23475 sed 's
/^
/|
/' conftest.$ac_ext >&5
23477 ( exit $ac_status )
23478 ac_cv_rshift_extends_sign=no
23480 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23486 { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
23487 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
23488 if test "$ac_cv_rshift_extends_sign" = no
23491 cat >>confdefs.h <<\_ACEOF
23492 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
23497 # check for getc_unlocked and related locking functions
23498 { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
23499 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6; }
23500 if test "${ac_cv_have_getc_unlocked+set}" = set; then
23501 echo $ECHO_N "(cached) $ECHO_C" >&6
23504 cat >conftest.$ac_ext <<_ACEOF
23507 cat confdefs.h >>conftest.$ac_ext
23508 cat >>conftest.$ac_ext <<_ACEOF
23509 /* end confdefs.h. */
23515 FILE *f = fopen("/dev/null", "r");
23524 rm -f conftest.$ac_objext conftest$ac_exeext
23525 if { (ac_try="$ac_link"
23526 case "(($ac_try" in
23527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23528 *) ac_try_echo=$ac_try;;
23530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23531 (eval "$ac_link") 2>conftest.er1
23533 grep -v '^
*+' conftest.er1 >conftest.err
23535 cat conftest.err >&5
23536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23537 (exit $ac_status); } && {
23538 test -z "$ac_c_werror_flag" ||
23539 test ! -s conftest.err
23540 } && test -s conftest$ac_exeext &&
23541 $as_test_x conftest$ac_exeext; then
23542 ac_cv_have_getc_unlocked=yes
23544 echo "$as_me: failed program was:" >&5
23545 sed 's
/^
/|
/' conftest.$ac_ext >&5
23547 ac_cv_have_getc_unlocked=no
23550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23551 conftest$ac_exeext conftest.$ac_ext
23554 { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
23555 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
23556 if test "$ac_cv_have_getc_unlocked" = yes
23559 cat >>confdefs.h <<\_ACEOF
23560 #define HAVE_GETC_UNLOCKED 1
23565 # check where readline lives
23566 # save the value of LIBS so we don't actually link Python with readline
23567 LIBS_no_readline
=$LIBS
23569 # On some systems we need to link readline to a termcap compatible
23570 # library. NOTE: Keep the precedence of listed libraries synchronised
23572 py_cv_lib_readline
=no
23573 { echo "$as_me:$LINENO: checking how to link readline libs" >&5
23574 echo $ECHO_N "checking how to link readline libs... $ECHO_C" >&6; }
23575 for py_libtermcap
in "" ncursesw ncurses curses termcap
; do
23576 if test -z "$py_libtermcap"; then
23577 READLINE_LIBS
="-lreadline"
23579 READLINE_LIBS
="-lreadline -l$py_libtermcap"
23581 LIBS
="$READLINE_LIBS $LIBS_no_readline"
23582 cat >conftest.
$ac_ext <<_ACEOF
23585 cat confdefs.h
>>conftest.
$ac_ext
23586 cat >>conftest.
$ac_ext <<_ACEOF
23587 /* end confdefs.h. */
23589 /* Override any GCC internal prototype to avoid an error.
23590 Use char because int might match the return type of a GCC
23591 builtin and then its argument prototype would still apply. */
23599 return readline ();
23604 rm -f conftest.
$ac_objext conftest
$ac_exeext
23605 if { (ac_try
="$ac_link"
23606 case "(($ac_try" in
23607 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23608 *) ac_try_echo=$ac_try;;
23610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23611 (eval "$ac_link") 2>conftest.er1
23613 grep -v '^ *+' conftest.er1 >conftest.err
23615 cat conftest.err >&5
23616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23617 (exit $ac_status); } && {
23618 test -z "$ac_c_werror_flag" ||
23619 test ! -s conftest.err
23620 } && test -s conftest$ac_exeext &&
23621 $as_test_x conftest$ac_exeext; then
23622 py_cv_lib_readline=yes
23624 echo "$as_me: failed program was:" >&5
23625 sed 's/^/| /' conftest.$ac_ext >&5
23630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23631 conftest$ac_exeext conftest.$ac_ext
23632 if test $py_cv_lib_readline = yes; then
23636 # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts
23637 #AC_SUBST([READLINE_LIBS])
23638 if test $py_cv_lib_readline = no; then
23639 { echo "$as_me:$LINENO: result: none" >&5
23640 echo "${ECHO_T}none" >&6; }
23642 { echo "$as_me:$LINENO: result: $READLINE_LIBS" >&5
23643 echo "${ECHO_T}$READLINE_LIBS" >&6; }
23645 cat >>confdefs.h <<\_ACEOF
23646 #define HAVE_LIBREADLINE 1
23651 # check for readline 2.1
23652 { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
23653 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6; }
23654 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
23655 echo $ECHO_N "(cached) $ECHO_C" >&6
23657 ac_check_lib_save_LIBS=$LIBS
23658 LIBS="-lreadline $READLINE_LIBS $LIBS"
23659 cat >conftest.$ac_ext <<_ACEOF
23662 cat confdefs.h >>conftest.$ac_ext
23663 cat >>conftest.$ac_ext <<_ACEOF
23664 /* end confdefs.h. */
23666 /* Override any GCC internal prototype to avoid an error.
23667 Use char because int might match the return type of a GCC
23668 builtin and then its argument prototype would still apply. */
23672 char rl_callback_handler_install ();
23676 return rl_callback_handler_install ();
23681 rm -f conftest.$ac_objext conftest$ac_exeext
23682 if { (ac_try="$ac_link"
23683 case "(($ac_try" in
23684 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23685 *) ac_try_echo
=$ac_try;;
23687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23688 (eval "$ac_link") 2>conftest.er1
23690 grep -v '^ *+' conftest.er1
>conftest.err
23692 cat conftest.err
>&5
23693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23694 (exit $ac_status); } && {
23695 test -z "$ac_c_werror_flag" ||
23696 test ! -s conftest.err
23697 } && test -s conftest
$ac_exeext &&
23698 $as_test_x conftest
$ac_exeext; then
23699 ac_cv_lib_readline_rl_callback_handler_install
=yes
23701 echo "$as_me: failed program was:" >&5
23702 sed 's/^/| /' conftest.
$ac_ext >&5
23704 ac_cv_lib_readline_rl_callback_handler_install
=no
23707 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23708 conftest
$ac_exeext conftest.
$ac_ext
23709 LIBS
=$ac_check_lib_save_LIBS
23711 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
23712 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
23713 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
23715 cat >>confdefs.h
<<\_ACEOF
23716 #define HAVE_RL_CALLBACK 1
23722 # check for readline 2.2
23723 cat >conftest.
$ac_ext <<_ACEOF
23726 cat confdefs.h
>>conftest.
$ac_ext
23727 cat >>conftest.
$ac_ext <<_ACEOF
23728 /* end confdefs.h. */
23729 #include <readline/readline.h>
23731 if { (ac_try
="$ac_cpp conftest.$ac_ext"
23732 case "(($ac_try" in
23733 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23734 *) ac_try_echo=$ac_try;;
23736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23737 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23739 grep -v '^ *+' conftest.er1 >conftest.err
23741 cat conftest.err >&5
23742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23743 (exit $ac_status); } >/dev/null && {
23744 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23745 test ! -s conftest.err
23749 echo "$as_me: failed program was:" >&5
23750 sed 's/^/| /' conftest.$ac_ext >&5
23755 rm -f conftest.err conftest.$ac_ext
23756 if test $have_readline = yes
23758 cat >conftest.$ac_ext <<_ACEOF
23761 cat confdefs.h >>conftest.$ac_ext
23762 cat >>conftest.$ac_ext <<_ACEOF
23763 /* end confdefs.h. */
23764 #include <readline/readline.h>
23767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23768 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
23770 cat >>confdefs.h <<\_ACEOF
23771 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
23779 # check for readline 4.0
23780 { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
23781 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6; }
23782 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
23783 echo $ECHO_N "(cached) $ECHO_C" >&6
23785 ac_check_lib_save_LIBS=$LIBS
23786 LIBS="-lreadline $READLINE_LIBS $LIBS"
23787 cat >conftest.$ac_ext <<_ACEOF
23790 cat confdefs.h >>conftest.$ac_ext
23791 cat >>conftest.$ac_ext <<_ACEOF
23792 /* end confdefs.h. */
23794 /* Override any GCC internal prototype to avoid an error.
23795 Use char because int might match the return type of a GCC
23796 builtin and then its argument prototype would still apply. */
23800 char rl_pre_input_hook ();
23804 return rl_pre_input_hook ();
23809 rm -f conftest.$ac_objext conftest$ac_exeext
23810 if { (ac_try="$ac_link"
23811 case "(($ac_try" in
23812 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23813 *) ac_try_echo
=$ac_try;;
23815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23816 (eval "$ac_link") 2>conftest.er1
23818 grep -v '^ *+' conftest.er1
>conftest.err
23820 cat conftest.err
>&5
23821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23822 (exit $ac_status); } && {
23823 test -z "$ac_c_werror_flag" ||
23824 test ! -s conftest.err
23825 } && test -s conftest
$ac_exeext &&
23826 $as_test_x conftest
$ac_exeext; then
23827 ac_cv_lib_readline_rl_pre_input_hook
=yes
23829 echo "$as_me: failed program was:" >&5
23830 sed 's/^/| /' conftest.
$ac_ext >&5
23832 ac_cv_lib_readline_rl_pre_input_hook
=no
23835 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23836 conftest
$ac_exeext conftest.
$ac_ext
23837 LIBS
=$ac_check_lib_save_LIBS
23839 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
23840 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
23841 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
23843 cat >>confdefs.h
<<\_ACEOF
23844 #define HAVE_RL_PRE_INPUT_HOOK 1
23851 { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5
23852 echo $ECHO_N "checking for rl_completion_display_matches_hook in -lreadline... $ECHO_C" >&6; }
23853 if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
23854 echo $ECHO_N "(cached) $ECHO_C" >&6
23856 ac_check_lib_save_LIBS
=$LIBS
23857 LIBS
="-lreadline $READLINE_LIBS $LIBS"
23858 cat >conftest.
$ac_ext <<_ACEOF
23861 cat confdefs.h
>>conftest.
$ac_ext
23862 cat >>conftest.
$ac_ext <<_ACEOF
23863 /* end confdefs.h. */
23865 /* Override any GCC internal prototype to avoid an error.
23866 Use char because int might match the return type of a GCC
23867 builtin and then its argument prototype would still apply. */
23871 char rl_completion_display_matches_hook ();
23875 return rl_completion_display_matches_hook ();
23880 rm -f conftest.
$ac_objext conftest
$ac_exeext
23881 if { (ac_try
="$ac_link"
23882 case "(($ac_try" in
23883 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23884 *) ac_try_echo=$ac_try;;
23886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23887 (eval "$ac_link") 2>conftest.er1
23889 grep -v '^ *+' conftest.er1 >conftest.err
23891 cat conftest.err >&5
23892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23893 (exit $ac_status); } && {
23894 test -z "$ac_c_werror_flag" ||
23895 test ! -s conftest.err
23896 } && test -s conftest$ac_exeext &&
23897 $as_test_x conftest$ac_exeext; then
23898 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
23900 echo "$as_me: failed program was:" >&5
23901 sed 's/^/| /' conftest.$ac_ext >&5
23903 ac_cv_lib_readline_rl_completion_display_matches_hook=no
23906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23907 conftest$ac_exeext conftest.$ac_ext
23908 LIBS=$ac_check_lib_save_LIBS
23910 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
23911 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
23912 if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then
23914 cat >>confdefs.h <<\_ACEOF
23915 #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
23921 # check for readline 4.2
23922 { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
23923 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; }
23924 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
23925 echo $ECHO_N "(cached) $ECHO_C" >&6
23927 ac_check_lib_save_LIBS=$LIBS
23928 LIBS="-lreadline $READLINE_LIBS $LIBS"
23929 cat >conftest.$ac_ext <<_ACEOF
23932 cat confdefs.h >>conftest.$ac_ext
23933 cat >>conftest.$ac_ext <<_ACEOF
23934 /* end confdefs.h. */
23936 /* Override any GCC internal prototype to avoid an error.
23937 Use char because int might match the return type of a GCC
23938 builtin and then its argument prototype would still apply. */
23942 char rl_completion_matches ();
23946 return rl_completion_matches ();
23951 rm -f conftest.$ac_objext conftest$ac_exeext
23952 if { (ac_try="$ac_link"
23953 case "(($ac_try" in
23954 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23955 *) ac_try_echo
=$ac_try;;
23957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23958 (eval "$ac_link") 2>conftest.er1
23960 grep -v '^ *+' conftest.er1
>conftest.err
23962 cat conftest.err
>&5
23963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23964 (exit $ac_status); } && {
23965 test -z "$ac_c_werror_flag" ||
23966 test ! -s conftest.err
23967 } && test -s conftest
$ac_exeext &&
23968 $as_test_x conftest
$ac_exeext; then
23969 ac_cv_lib_readline_rl_completion_matches
=yes
23971 echo "$as_me: failed program was:" >&5
23972 sed 's/^/| /' conftest.
$ac_ext >&5
23974 ac_cv_lib_readline_rl_completion_matches
=no
23977 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23978 conftest
$ac_exeext conftest.
$ac_ext
23979 LIBS
=$ac_check_lib_save_LIBS
23981 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
23982 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
23983 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
23985 cat >>confdefs.h
<<\_ACEOF
23986 #define HAVE_RL_COMPLETION_MATCHES 1
23992 # also in readline 4.2
23993 cat >conftest.
$ac_ext <<_ACEOF
23996 cat confdefs.h
>>conftest.
$ac_ext
23997 cat >>conftest.
$ac_ext <<_ACEOF
23998 /* end confdefs.h. */
23999 #include <readline/readline.h>
24001 if { (ac_try
="$ac_cpp conftest.$ac_ext"
24002 case "(($ac_try" in
24003 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24004 *) ac_try_echo=$ac_try;;
24006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24007 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24009 grep -v '^ *+' conftest.er1 >conftest.err
24011 cat conftest.err >&5
24012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24013 (exit $ac_status); } >/dev/null && {
24014 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24015 test ! -s conftest.err
24019 echo "$as_me: failed program was:" >&5
24020 sed 's/^/| /' conftest.$ac_ext >&5
24025 rm -f conftest.err conftest.$ac_ext
24026 if test $have_readline = yes
24028 cat >conftest.$ac_ext <<_ACEOF
24031 cat confdefs.h >>conftest.$ac_ext
24032 cat >>conftest.$ac_ext <<_ACEOF
24033 /* end confdefs.h. */
24034 #include <readline/readline.h>
24037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24038 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
24040 cat >>confdefs.h <<\_ACEOF
24041 #define HAVE_RL_CATCH_SIGNAL 1
24049 # End of readline checks: restore LIBS
24050 LIBS=$LIBS_no_readline
24052 { echo "$as_me:$LINENO: checking for broken nice()" >&5
24053 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; }
24054 if test "${ac_cv_broken_nice+set}" = set; then
24055 echo $ECHO_N "(cached) $ECHO_C" >&6
24058 if test "$cross_compiling" = yes; then
24059 ac_cv_broken_nice=no
24061 cat >conftest.$ac_ext <<_ACEOF
24064 cat confdefs.h >>conftest.$ac_ext
24065 cat >>conftest.$ac_ext <<_ACEOF
24066 /* end confdefs.h. */
24070 int val1 = nice(1);
24071 if (val1 != -1 && val1 == nice(2))
24077 rm -f conftest$ac_exeext
24078 if { (ac_try="$ac_link"
24079 case "(($ac_try" in
24080 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24081 *) ac_try_echo
=$ac_try;;
24083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24084 (eval "$ac_link") 2>&5
24086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24087 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24088 { (case "(($ac_try" in
24089 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24090 *) ac_try_echo=$ac_try;;
24092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24093 (eval "$ac_try") 2>&5
24095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24096 (exit $ac_status); }; }; then
24097 ac_cv_broken_nice=yes
24099 echo "$as_me: program exited with status $ac_status" >&5
24100 echo "$as_me: failed program was:" >&5
24101 sed 's/^/| /' conftest.$ac_ext >&5
24103 ( exit $ac_status )
24104 ac_cv_broken_nice=no
24106 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24112 { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
24113 echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
24114 if test "$ac_cv_broken_nice" = yes
24117 cat >>confdefs.h <<\_ACEOF
24118 #define HAVE_BROKEN_NICE 1
24123 { echo "$as_me:$LINENO: checking for broken poll()" >&5
24124 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; }
24125 if test "$cross_compiling" = yes; then
24126 ac_cv_broken_poll=no
24128 cat >conftest.$ac_ext <<_ACEOF
24131 cat confdefs.h >>conftest.$ac_ext
24132 cat >>conftest.$ac_ext <<_ACEOF
24133 /* end confdefs.h. */
24139 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
24143 int poll_test = poll (&poll_struct, 1, 0);
24149 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
24160 rm -f conftest$ac_exeext
24161 if { (ac_try="$ac_link"
24162 case "(($ac_try" in
24163 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24164 *) ac_try_echo
=$ac_try;;
24166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24167 (eval "$ac_link") 2>&5
24169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24170 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24171 { (case "(($ac_try" in
24172 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24173 *) ac_try_echo=$ac_try;;
24175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24176 (eval "$ac_try") 2>&5
24178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24179 (exit $ac_status); }; }; then
24180 ac_cv_broken_poll=yes
24182 echo "$as_me: program exited with status $ac_status" >&5
24183 echo "$as_me: failed program was:" >&5
24184 sed 's/^/| /' conftest.$ac_ext >&5
24186 ( exit $ac_status )
24187 ac_cv_broken_poll=no
24189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24193 { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
24194 echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
24195 if test "$ac_cv_broken_poll" = yes
24198 cat >>confdefs.h <<\_ACEOF
24199 #define HAVE_BROKEN_POLL 1
24204 # Before we can test tzset, we need to check if struct tm has a tm_zone
24205 # (which is not required by ISO C or UNIX spec) and/or if we support
24207 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
24208 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
24209 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
24210 echo $ECHO_N "(cached) $ECHO_C" >&6
24212 cat >conftest.$ac_ext <<_ACEOF
24215 cat confdefs.h >>conftest.$ac_ext
24216 cat >>conftest.$ac_ext <<_ACEOF
24217 /* end confdefs.h. */
24218 #include <sys/types.h>
24219 #include <$ac_cv_struct_tm>
24225 static struct tm ac_aggr;
24226 if (ac_aggr.tm_zone)
24232 rm -f conftest.$ac_objext
24233 if { (ac_try="$ac_compile"
24234 case "(($ac_try" in
24235 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24236 *) ac_try_echo
=$ac_try;;
24238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24239 (eval "$ac_compile") 2>conftest.er1
24241 grep -v '^ *+' conftest.er1
>conftest.err
24243 cat conftest.err
>&5
24244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24245 (exit $ac_status); } && {
24246 test -z "$ac_c_werror_flag" ||
24247 test ! -s conftest.err
24248 } && test -s conftest.
$ac_objext; then
24249 ac_cv_member_struct_tm_tm_zone
=yes
24251 echo "$as_me: failed program was:" >&5
24252 sed 's/^/| /' conftest.
$ac_ext >&5
24254 cat >conftest.
$ac_ext <<_ACEOF
24257 cat confdefs.h
>>conftest.
$ac_ext
24258 cat >>conftest.
$ac_ext <<_ACEOF
24259 /* end confdefs.h. */
24260 #include <sys/types.h>
24261 #include <$ac_cv_struct_tm>
24267 static struct tm ac_aggr;
24268 if (sizeof ac_aggr.tm_zone)
24274 rm -f conftest.
$ac_objext
24275 if { (ac_try
="$ac_compile"
24276 case "(($ac_try" in
24277 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24278 *) ac_try_echo=$ac_try;;
24280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24281 (eval "$ac_compile") 2>conftest.er1
24283 grep -v '^ *+' conftest.er1 >conftest.err
24285 cat conftest.err >&5
24286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24287 (exit $ac_status); } && {
24288 test -z "$ac_c_werror_flag" ||
24289 test ! -s conftest.err
24290 } && test -s conftest.$ac_objext; then
24291 ac_cv_member_struct_tm_tm_zone=yes
24293 echo "$as_me: failed program was:" >&5
24294 sed 's/^/| /' conftest.$ac_ext >&5
24296 ac_cv_member_struct_tm_tm_zone=no
24299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24304 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
24305 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
24306 if test $ac_cv_member_struct_tm_tm_zone = yes; then
24308 cat >>confdefs.h <<_ACEOF
24309 #define HAVE_STRUCT_TM_TM_ZONE 1
24315 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
24317 cat >>confdefs.h <<\_ACEOF
24318 #define HAVE_TM_ZONE 1
24322 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
24323 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
24324 if test "${ac_cv_have_decl_tzname+set}" = set; then
24325 echo $ECHO_N "(cached) $ECHO_C" >&6
24327 cat >conftest.$ac_ext <<_ACEOF
24330 cat confdefs.h >>conftest.$ac_ext
24331 cat >>conftest.$ac_ext <<_ACEOF
24332 /* end confdefs.h. */
24346 rm -f conftest.$ac_objext
24347 if { (ac_try="$ac_compile"
24348 case "(($ac_try" in
24349 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24350 *) ac_try_echo
=$ac_try;;
24352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24353 (eval "$ac_compile") 2>conftest.er1
24355 grep -v '^ *+' conftest.er1
>conftest.err
24357 cat conftest.err
>&5
24358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24359 (exit $ac_status); } && {
24360 test -z "$ac_c_werror_flag" ||
24361 test ! -s conftest.err
24362 } && test -s conftest.
$ac_objext; then
24363 ac_cv_have_decl_tzname
=yes
24365 echo "$as_me: failed program was:" >&5
24366 sed 's/^/| /' conftest.
$ac_ext >&5
24368 ac_cv_have_decl_tzname
=no
24371 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24373 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
24374 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
24375 if test $ac_cv_have_decl_tzname = yes; then
24377 cat >>confdefs.h
<<_ACEOF
24378 #define HAVE_DECL_TZNAME 1
24383 cat >>confdefs.h
<<_ACEOF
24384 #define HAVE_DECL_TZNAME 0
24391 { echo "$as_me:$LINENO: checking for tzname" >&5
24392 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
24393 if test "${ac_cv_var_tzname+set}" = set; then
24394 echo $ECHO_N "(cached) $ECHO_C" >&6
24396 cat >conftest.
$ac_ext <<_ACEOF
24399 cat confdefs.h
>>conftest.
$ac_ext
24400 cat >>conftest.
$ac_ext <<_ACEOF
24401 /* end confdefs.h. */
24403 #if !HAVE_DECL_TZNAME
24404 extern char *tzname[];
24410 return tzname[0][0];
24415 rm -f conftest.
$ac_objext conftest
$ac_exeext
24416 if { (ac_try
="$ac_link"
24417 case "(($ac_try" in
24418 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24419 *) ac_try_echo=$ac_try;;
24421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24422 (eval "$ac_link") 2>conftest.er1
24424 grep -v '^ *+' conftest.er1 >conftest.err
24426 cat conftest.err >&5
24427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24428 (exit $ac_status); } && {
24429 test -z "$ac_c_werror_flag" ||
24430 test ! -s conftest.err
24431 } && test -s conftest$ac_exeext &&
24432 $as_test_x conftest$ac_exeext; then
24433 ac_cv_var_tzname=yes
24435 echo "$as_me: failed program was:" >&5
24436 sed 's/^/| /' conftest.$ac_ext >&5
24438 ac_cv_var_tzname=no
24441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24442 conftest$ac_exeext conftest.$ac_ext
24444 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
24445 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
24446 if test $ac_cv_var_tzname = yes; then
24448 cat >>confdefs.h <<\_ACEOF
24449 #define HAVE_TZNAME 1
24456 # check tzset(3) exists and works like we expect it to
24457 { echo "$as_me:$LINENO: checking for working tzset()" >&5
24458 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; }
24459 if test "${ac_cv_working_tzset+set}" = set; then
24460 echo $ECHO_N "(cached) $ECHO_C" >&6
24463 if test "$cross_compiling" = yes; then
24464 ac_cv_working_tzset=no
24466 cat >conftest.$ac_ext <<_ACEOF
24469 cat confdefs.h >>conftest.$ac_ext
24470 cat >>conftest.$ac_ext <<_ACEOF
24471 /* end confdefs.h. */
24473 #include <stdlib.h>
24475 #include <string.h>
24478 extern char *tzname[];
24483 /* Note that we need to ensure that not only does tzset(3)
24484 do 'something' with localtime, but it works as documented
24485 in the library reference and as expected by the test suite.
24486 This includes making sure that tzname is set properly if
24487 tm->tm_zone does not exist since it is the alternative way
24488 of getting timezone info.
24490 Red Hat 6.2 doesn't understand the southern hemisphere
24491 after New Year's Day.
24494 time_t groundhogday = 1044144000; /* GMT-based */
24495 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
24497 putenv("TZ=UTC+0");
24499 if (localtime(&groundhogday)->tm_hour != 0)
24502 /* For UTC, tzname[1] is sometimes "", sometimes " " */
24503 if (strcmp(tzname[0], "UTC") ||
24504 (tzname[1][0] != 0 && tzname[1][0] != ' '))
24508 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
24510 if (localtime(&groundhogday)->tm_hour != 19)
24513 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
24517 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
24519 if (localtime(&groundhogday)->tm_hour != 11)
24522 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
24526 #if HAVE_STRUCT_TM_TM_ZONE
24527 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
24529 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
24537 rm -f conftest$ac_exeext
24538 if { (ac_try="$ac_link"
24539 case "(($ac_try" in
24540 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24541 *) ac_try_echo
=$ac_try;;
24543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24544 (eval "$ac_link") 2>&5
24546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24547 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24548 { (case "(($ac_try" in
24549 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24550 *) ac_try_echo=$ac_try;;
24552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24553 (eval "$ac_try") 2>&5
24555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24556 (exit $ac_status); }; }; then
24557 ac_cv_working_tzset=yes
24559 echo "$as_me: program exited with status $ac_status" >&5
24560 echo "$as_me: failed program was:" >&5
24561 sed 's/^/| /' conftest.$ac_ext >&5
24563 ( exit $ac_status )
24564 ac_cv_working_tzset=no
24566 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24572 { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
24573 echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
24574 if test "$ac_cv_working_tzset" = yes
24577 cat >>confdefs.h <<\_ACEOF
24578 #define HAVE_WORKING_TZSET 1
24583 # Look for subsecond timestamps in struct stat
24584 { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
24585 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6; }
24586 if test "${ac_cv_stat_tv_nsec+set}" = set; then
24587 echo $ECHO_N "(cached) $ECHO_C" >&6
24589 cat >conftest.$ac_ext <<_ACEOF
24592 cat confdefs.h >>conftest.$ac_ext
24593 cat >>conftest.$ac_ext <<_ACEOF
24594 /* end confdefs.h. */
24595 #include <sys/stat.h>
24601 st.st_mtim.tv_nsec = 1;
24607 rm -f conftest.$ac_objext
24608 if { (ac_try="$ac_compile"
24609 case "(($ac_try" in
24610 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24611 *) ac_try_echo
=$ac_try;;
24613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24614 (eval "$ac_compile") 2>conftest.er1
24616 grep -v '^ *+' conftest.er1
>conftest.err
24618 cat conftest.err
>&5
24619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24620 (exit $ac_status); } && {
24621 test -z "$ac_c_werror_flag" ||
24622 test ! -s conftest.err
24623 } && test -s conftest.
$ac_objext; then
24624 ac_cv_stat_tv_nsec
=yes
24626 echo "$as_me: failed program was:" >&5
24627 sed 's/^/| /' conftest.
$ac_ext >&5
24629 ac_cv_stat_tv_nsec
=no
24632 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24635 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
24636 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
24637 if test "$ac_cv_stat_tv_nsec" = yes
24640 cat >>confdefs.h
<<\_ACEOF
24641 #define HAVE_STAT_TV_NSEC 1
24646 # Look for BSD style subsecond timestamps in struct stat
24647 { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
24648 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6; }
24649 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
24650 echo $ECHO_N "(cached) $ECHO_C" >&6
24652 cat >conftest.
$ac_ext <<_ACEOF
24655 cat confdefs.h
>>conftest.
$ac_ext
24656 cat >>conftest.
$ac_ext <<_ACEOF
24657 /* end confdefs.h. */
24658 #include <sys/stat.h>
24664 st.st_mtimespec.tv_nsec = 1;
24670 rm -f conftest.
$ac_objext
24671 if { (ac_try
="$ac_compile"
24672 case "(($ac_try" in
24673 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24674 *) ac_try_echo=$ac_try;;
24676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24677 (eval "$ac_compile") 2>conftest.er1
24679 grep -v '^ *+' conftest.er1 >conftest.err
24681 cat conftest.err >&5
24682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24683 (exit $ac_status); } && {
24684 test -z "$ac_c_werror_flag" ||
24685 test ! -s conftest.err
24686 } && test -s conftest.$ac_objext; then
24687 ac_cv_stat_tv_nsec2=yes
24689 echo "$as_me: failed program was:" >&5
24690 sed 's/^/| /' conftest.$ac_ext >&5
24692 ac_cv_stat_tv_nsec2=no
24695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24698 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
24699 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
24700 if test "$ac_cv_stat_tv_nsec2" = yes
24703 cat >>confdefs.h <<\_ACEOF
24704 #define HAVE_STAT_TV_NSEC2 1
24709 # On HP/UX 11.0, mvwdelch is a block with a return statement
24710 { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
24711 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6; }
24712 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
24713 echo $ECHO_N "(cached) $ECHO_C" >&6
24715 cat >conftest.$ac_ext <<_ACEOF
24718 cat confdefs.h >>conftest.$ac_ext
24719 cat >>conftest.$ac_ext <<_ACEOF
24720 /* end confdefs.h. */
24721 #include <curses.h>
24727 rtn = mvwdelch(0,0,0);
24733 rm -f conftest.$ac_objext
24734 if { (ac_try="$ac_compile"
24735 case "(($ac_try" in
24736 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24737 *) ac_try_echo
=$ac_try;;
24739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24740 (eval "$ac_compile") 2>conftest.er1
24742 grep -v '^ *+' conftest.er1
>conftest.err
24744 cat conftest.err
>&5
24745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24746 (exit $ac_status); } && {
24747 test -z "$ac_c_werror_flag" ||
24748 test ! -s conftest.err
24749 } && test -s conftest.
$ac_objext; then
24750 ac_cv_mvwdelch_is_expression
=yes
24752 echo "$as_me: failed program was:" >&5
24753 sed 's/^/| /' conftest.
$ac_ext >&5
24755 ac_cv_mvwdelch_is_expression
=no
24758 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24761 { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
24762 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
24764 if test "$ac_cv_mvwdelch_is_expression" = yes
24767 cat >>confdefs.h
<<\_ACEOF
24768 #define MVWDELCH_IS_EXPRESSION 1
24773 { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
24774 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6; }
24775 if test "${ac_cv_window_has_flags+set}" = set; then
24776 echo $ECHO_N "(cached) $ECHO_C" >&6
24778 cat >conftest.
$ac_ext <<_ACEOF
24781 cat confdefs.h
>>conftest.
$ac_ext
24782 cat >>conftest.
$ac_ext <<_ACEOF
24783 /* end confdefs.h. */
24784 #include <curses.h>
24796 rm -f conftest.
$ac_objext
24797 if { (ac_try
="$ac_compile"
24798 case "(($ac_try" in
24799 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24800 *) ac_try_echo=$ac_try;;
24802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24803 (eval "$ac_compile") 2>conftest.er1
24805 grep -v '^ *+' conftest.er1 >conftest.err
24807 cat conftest.err >&5
24808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24809 (exit $ac_status); } && {
24810 test -z "$ac_c_werror_flag" ||
24811 test ! -s conftest.err
24812 } && test -s conftest.$ac_objext; then
24813 ac_cv_window_has_flags=yes
24815 echo "$as_me: failed program was:" >&5
24816 sed 's/^/| /' conftest.$ac_ext >&5
24818 ac_cv_window_has_flags=no
24821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24824 { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
24825 echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
24828 if test "$ac_cv_window_has_flags" = yes
24831 cat >>confdefs.h <<\_ACEOF
24832 #define WINDOW_HAS_FLAGS 1
24837 { echo "$as_me:$LINENO: checking for is_term_resized" >&5
24838 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; }
24839 cat >conftest.$ac_ext <<_ACEOF
24842 cat confdefs.h >>conftest.$ac_ext
24843 cat >>conftest.$ac_ext <<_ACEOF
24844 /* end confdefs.h. */
24845 #include <curses.h>
24849 void *x=is_term_resized
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
24872 cat >>confdefs.h
<<\_ACEOF
24873 #define HAVE_CURSES_IS_TERM_RESIZED 1
24876 { echo "$as_me:$LINENO: result: yes" >&5
24877 echo "${ECHO_T}yes" >&6; }
24879 echo "$as_me: failed program was:" >&5
24880 sed 's/^/| /' conftest.
$ac_ext >&5
24882 { echo "$as_me:$LINENO: result: no" >&5
24883 echo "${ECHO_T}no" >&6; }
24887 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24889 { echo "$as_me:$LINENO: checking for resize_term" >&5
24890 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; }
24891 cat >conftest.
$ac_ext <<_ACEOF
24894 cat confdefs.h
>>conftest.
$ac_ext
24895 cat >>conftest.
$ac_ext <<_ACEOF
24896 /* end confdefs.h. */
24897 #include <curses.h>
24901 void *x=resize_term
24906 rm -f conftest.
$ac_objext
24907 if { (ac_try
="$ac_compile"
24908 case "(($ac_try" in
24909 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24910 *) ac_try_echo=$ac_try;;
24912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24913 (eval "$ac_compile") 2>conftest.er1
24915 grep -v '^ *+' conftest.er1 >conftest.err
24917 cat conftest.err >&5
24918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24919 (exit $ac_status); } && {
24920 test -z "$ac_c_werror_flag" ||
24921 test ! -s conftest.err
24922 } && test -s conftest.$ac_objext; then
24924 cat >>confdefs.h <<\_ACEOF
24925 #define HAVE_CURSES_RESIZE_TERM 1
24928 { echo "$as_me:$LINENO: result: yes" >&5
24929 echo "${ECHO_T}yes" >&6; }
24931 echo "$as_me: failed program was:" >&5
24932 sed 's/^/| /' conftest.$ac_ext >&5
24934 { echo "$as_me:$LINENO: result: no" >&5
24935 echo "${ECHO_T}no" >&6; }
24939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24941 { echo "$as_me:$LINENO: checking for resizeterm" >&5
24942 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; }
24943 cat >conftest.$ac_ext <<_ACEOF
24946 cat confdefs.h >>conftest.$ac_ext
24947 cat >>conftest.$ac_ext <<_ACEOF
24948 /* end confdefs.h. */
24949 #include <curses.h>
24958 rm -f conftest.$ac_objext
24959 if { (ac_try="$ac_compile"
24960 case "(($ac_try" in
24961 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24962 *) ac_try_echo
=$ac_try;;
24964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24965 (eval "$ac_compile") 2>conftest.er1
24967 grep -v '^ *+' conftest.er1
>conftest.err
24969 cat conftest.err
>&5
24970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24971 (exit $ac_status); } && {
24972 test -z "$ac_c_werror_flag" ||
24973 test ! -s conftest.err
24974 } && test -s conftest.
$ac_objext; then
24976 cat >>confdefs.h
<<\_ACEOF
24977 #define HAVE_CURSES_RESIZETERM 1
24980 { echo "$as_me:$LINENO: result: yes" >&5
24981 echo "${ECHO_T}yes" >&6; }
24983 echo "$as_me: failed program was:" >&5
24984 sed 's/^/| /' conftest.
$ac_ext >&5
24986 { echo "$as_me:$LINENO: result: no" >&5
24987 echo "${ECHO_T}no" >&6; }
24991 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24993 { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
24994 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; }
24996 if test -r /dev
/ptmx
24998 { echo "$as_me:$LINENO: result: yes" >&5
24999 echo "${ECHO_T}yes" >&6; }
25001 cat >>confdefs.h
<<\_ACEOF
25002 #define HAVE_DEV_PTMX 1
25006 { echo "$as_me:$LINENO: result: no" >&5
25007 echo "${ECHO_T}no" >&6; }
25010 { echo "$as_me:$LINENO: checking for /dev/ptc" >&5
25011 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
25013 if test -r /dev
/ptc
25015 { echo "$as_me:$LINENO: result: yes" >&5
25016 echo "${ECHO_T}yes" >&6; }
25018 cat >>confdefs.h
<<\_ACEOF
25019 #define HAVE_DEV_PTC 1
25023 { echo "$as_me:$LINENO: result: no" >&5
25024 echo "${ECHO_T}no" >&6; }
25027 { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
25028 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; }
25029 if test "$cross_compiling" = yes; then
25030 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25031 See \`config.log' for more details." >&5
25032 echo "$as_me: error: cannot run test program while cross compiling
25033 See \`config.log' for more details." >&2;}
25034 { (exit 1); exit 1; }; }
25036 cat >conftest.
$ac_ext <<_ACEOF
25039 cat confdefs.h
>>conftest.
$ac_ext
25040 cat >>conftest.
$ac_ext <<_ACEOF
25041 /* end confdefs.h. */
25043 #include <stddef.h>
25044 #include <string.h>
25046 #ifdef HAVE_SYS_TYPES_H
25047 #include <sys/types.h>
25050 #ifdef HAVE_SSIZE_T
25051 typedef ssize_t Py_ssize_t;
25052 #elif SIZEOF_VOID_P == SIZEOF_LONG
25053 typedef long Py_ssize_t;
25055 typedef int Py_ssize_t;
25062 if(sprintf(buffer, "%zd", (size_t)123) < 0)
25065 if (strcmp(buffer, "123"))
25068 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
25071 if (strcmp(buffer, "-123"))
25077 rm -f conftest
$ac_exeext
25078 if { (ac_try
="$ac_link"
25079 case "(($ac_try" in
25080 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25081 *) ac_try_echo=$ac_try;;
25083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25084 (eval "$ac_link") 2>&5
25086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25087 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25088 { (case "(($ac_try" in
25089 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25090 *) ac_try_echo
=$ac_try;;
25092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25093 (eval "$ac_try") 2>&5
25095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25096 (exit $ac_status); }; }; then
25097 { echo "$as_me:$LINENO: result: yes" >&5
25098 echo "${ECHO_T}yes" >&6; }
25100 cat >>confdefs.h
<<\_ACEOF
25101 #define PY_FORMAT_SIZE_T "z"
25105 echo "$as_me: program exited with status $ac_status" >&5
25106 echo "$as_me: failed program was:" >&5
25107 sed 's/^/| /' conftest.
$ac_ext >&5
25109 ( exit $ac_status )
25110 { echo "$as_me:$LINENO: result: no" >&5
25111 echo "${ECHO_T}no" >&6; }
25113 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
25118 { echo "$as_me:$LINENO: checking for socklen_t" >&5
25119 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
25120 if test "${ac_cv_type_socklen_t+set}" = set; then
25121 echo $ECHO_N "(cached) $ECHO_C" >&6
25123 cat >conftest.
$ac_ext <<_ACEOF
25126 cat confdefs.h
>>conftest.
$ac_ext
25127 cat >>conftest.
$ac_ext <<_ACEOF
25128 /* end confdefs.h. */
25130 #ifdef HAVE_SYS_TYPES_H
25131 #include <sys/types.h>
25133 #ifdef HAVE_SYS_SOCKET_H
25134 #include <sys/socket.h>
25138 typedef socklen_t ac__type_new_;
25142 if ((ac__type_new_ *) 0)
25144 if (sizeof (ac__type_new_))
25150 rm -f conftest.
$ac_objext
25151 if { (ac_try
="$ac_compile"
25152 case "(($ac_try" in
25153 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25154 *) ac_try_echo=$ac_try;;
25156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25157 (eval "$ac_compile") 2>conftest.er1
25159 grep -v '^ *+' conftest.er1 >conftest.err
25161 cat conftest.err >&5
25162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25163 (exit $ac_status); } && {
25164 test -z "$ac_c_werror_flag" ||
25165 test ! -s conftest.err
25166 } && test -s conftest.$ac_objext; then
25167 ac_cv_type_socklen_t=yes
25169 echo "$as_me: failed program was:" >&5
25170 sed 's/^/| /' conftest.$ac_ext >&5
25172 ac_cv_type_socklen_t=no
25175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25177 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
25178 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
25179 if test $ac_cv_type_socklen_t = yes; then
25183 cat >>confdefs.h <<\_ACEOF
25184 #define socklen_t int
25192 for h in `(cd $srcdir;echo Python
/thread_
*.h
)`
25194 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
25198 SRCDIRS="Parser Grammar Objects Python Modules Mac"
25199 { echo "$as_me:$LINENO: checking for build directories" >&5
25200 echo $ECHO_N "checking for build directories... $ECHO_C" >&6; }
25201 for dir in $SRCDIRS; do
25202 if test ! -d $dir; then
25206 { echo "$as_me:$LINENO: result: done" >&5
25207 echo "${ECHO_T}done" >&6; }
25209 # generate output files
25210 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config"
25212 cat >confcache <<\_ACEOF
25213 # This file is a shell script that caches the results of configure
25214 # tests run on this system so they can be shared between configure
25215 # scripts and configure runs, see configure's option --config-cache.
25216 # It is not useful on other systems. If it contains results you don't
25217 # want to keep, you may remove or edit it.
25219 # config.status only pays attention to the cache file if you give it
25220 # the --recheck option to rerun configure.
25222 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
25223 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25224 # following values.
25228 # The following way of writing the cache mishandles newlines in values,
25229 # but we know of no workaround that is simple, portable, and efficient.
25230 # So, we kill variables containing newlines.
25231 # Ultrix sh set writes to stderr and can't be redirected directly,
25232 # and sets the high bit in the cache file unless we assign to the vars.
25234 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25235 eval ac_val
=\$
$ac_var
25239 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25240 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25243 _ | IFS | as_nl
) ;; #(
25244 *) $as_unset $ac_var ;;
25250 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25251 *${as_nl}ac_space
=\
*)
25252 # `set' does not quote correctly, so add quotes (double-quote
25253 # substitution turns \\\\ into \\, and sed turns \\ into \).
25256 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25259 # `set' quotes correctly as required by POSIX, so do not add quotes.
25260 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25269 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25271 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25273 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
25274 if test -w "$cache_file"; then
25275 test "x$cache_file" != "x/dev/null" &&
25276 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25277 echo "$as_me: updating cache $cache_file" >&6;}
25278 cat confcache
>$cache_file
25280 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25281 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25286 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
25287 # Let make expand exec_prefix.
25288 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
25290 DEFS
=-DHAVE_CONFIG_H
25294 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
25295 # 1. Remove the extension, and $U if already installed.
25296 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
25297 ac_i
=`echo "$ac_i" | sed "$ac_script"`
25298 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25299 # will be set to the directory where LIBOBJS objects are built.
25300 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25301 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25303 LIBOBJS
=$ac_libobjs
25305 LTLIBOBJS
=$ac_ltlibobjs
25309 : ${CONFIG_STATUS=./config.status}
25310 ac_clean_files_save
=$ac_clean_files
25311 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
25312 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25313 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25314 cat >$CONFIG_STATUS <<_ACEOF
25316 # Generated by $as_me.
25317 # Run this file to recreate the current configuration.
25318 # Compiler output produced by configure, useful for debugging
25319 # configure, is in config.log if it exists.
25322 ac_cs_recheck=false
25324 SHELL=\${CONFIG_SHELL-$SHELL}
25327 cat >>$CONFIG_STATUS <<\_ACEOF
25328 ## --------------------- ##
25329 ## M4sh Initialization. ##
25330 ## --------------------- ##
25332 # Be more Bourne compatible
25333 DUALCASE
=1; export DUALCASE
# for MKS sh
25334 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
25337 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25338 # is contrary to our usage. Disable this feature.
25339 alias -g '${1+"$@"}'='"$@"'
25340 setopt NO_GLOB_SUBST
25342 case `(set -o) 2>/dev/null` in
25343 *posix
*) set -o posix
;;
25352 # Avoid depending upon Character Ranges.
25353 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
25354 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25355 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
25356 as_cr_digits
='0123456789'
25357 as_cr_alnum
=$as_cr_Letters$as_cr_digits
25359 # The user is always right.
25360 if test "${PATH_SEPARATOR+set}" != set; then
25361 echo "#! /bin/sh" >conf$$.sh
25362 echo "exit 0" >>conf$$.sh
25364 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
25372 # Support unset when possible.
25373 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
25381 # We need space, tab and new line, in precisely that order. Quoting is
25382 # there to prevent editors from complaining about space-tab.
25383 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25384 # splitting by setting IFS to empty value.)
25389 # Find who we are. Look in the path if we contain no directory separator.
25391 *[\\/]* ) as_myself
=$0 ;;
25392 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25393 for as_dir
in $PATH
25396 test -z "$as_dir" && as_dir
=.
25397 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
25403 # We did not find ourselves, most probably we were run as `sh COMMAND'
25404 # in which case we are not to be found in the path.
25405 if test "x$as_myself" = x
; then
25408 if test ! -f "$as_myself"; then
25409 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25410 { (exit 1); exit 1; }
25413 # Work around bugs in pre-3.0 UWIN ksh.
25414 for as_var
in ENV MAIL MAILPATH
25415 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
25423 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25424 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25425 LC_TELEPHONE LC_TIME
25427 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25428 eval $as_var=C
; export $as_var
25430 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
25434 # Required to use basename.
25435 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
25436 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
25442 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25443 as_basename
=basename
25449 # Name of the executable.
25450 as_me
=`$as_basename -- "$0" ||
25451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25452 X"$0" : 'X\(//\)$' \| \
25453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25455 sed '/^.*\/\([^/][^/]*\)\/*$/{
25474 as_lineno_1
=$LINENO
25475 as_lineno_2
=$LINENO
25476 test "x$as_lineno_1" != "x$as_lineno_2" &&
25477 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
25479 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25480 # uniformly replaced by the line number. The first 'sed' inserts a
25481 # line-number line after each line using $LINENO; the second 'sed'
25482 # does the real work. The second script uses 'N' to pair each
25483 # line-number line with the line containing $LINENO, and appends
25484 # trailing '-' during substitution so that $LINENO is not a special
25485 # case at line end.
25486 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25487 # scripts with optimization help from Paolo Bonzini. Blame Lee
25488 # E. McMahon (1931-1989) for sed's syntax. :-)
25500 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25503 ' >$as_me.lineno
&&
25504 chmod +x
"$as_me.lineno" ||
25505 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25506 { (exit 1); exit 1; }; }
25508 # Don't try to exec as it changes $[0], causing all sort of problems
25509 # (the dirname of $[0] is not the place where we might find the
25510 # original and so on. Autoconf is especially sensitive to this).
25511 .
"./$as_me.lineno"
25512 # Exit status is that of the last command.
25517 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
25523 ECHO_C
= ECHO_N
= ECHO_T
=
25524 case `echo -n x` in
25526 case `echo 'x\c'` in
25527 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
25534 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
25535 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
25541 rm -f conf$$ conf$$.exe conf$$.
file
25542 if test -d conf$$.dir
; then
25543 rm -f conf$$.dir
/conf$$.
file
25549 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
25551 # ... but there are two gotchas:
25552 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25553 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25554 # In both cases, we have to default to `cp -p'.
25555 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
25557 elif ln conf$$.
file conf$$
2>/dev
/null
; then
25562 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
25563 rmdir conf$$.dir
2>/dev
/null
25565 if mkdir
-p .
2>/dev
/null
; then
25568 test -d .
/-p && rmdir .
/-p
25572 if test -x / >/dev
/null
2>&1; then
25573 as_test_x
='test -x'
25575 if ls -dL / >/dev
/null
2>&1; then
25582 if test -d "$1"; then
25588 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25589 ???[sx]*):;;*)false;;esac;fi
25593 as_executable_p
=$as_test_x
25595 # Sed expression to map a string onto a valid CPP name.
25596 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25598 # Sed expression to map a string onto a valid variable name.
25599 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25604 # Save the log message, to keep $[0] and so on meaningful, and to
25605 # report actual input values of CONFIG_FILES etc. instead of their
25606 # values after options handling.
25608 This file was extended by python $as_me 2.7, which was
25609 generated by GNU Autoconf 2.61. Invocation command line was
25611 CONFIG_FILES = $CONFIG_FILES
25612 CONFIG_HEADERS = $CONFIG_HEADERS
25613 CONFIG_LINKS = $CONFIG_LINKS
25614 CONFIG_COMMANDS = $CONFIG_COMMANDS
25617 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25622 cat >>$CONFIG_STATUS <<_ACEOF
25623 # Files that config.status was made for.
25624 config_files="$ac_config_files"
25625 config_headers="$ac_config_headers"
25629 cat >>$CONFIG_STATUS <<\_ACEOF
25631 \`$as_me' instantiates files from templates according to the
25632 current configuration.
25634 Usage: $0 [OPTIONS] [FILE]...
25636 -h, --help print this help, then exit
25637 -V, --version print version number and configuration settings, then exit
25638 -q, --quiet do not print progress messages
25639 -d, --debug don't remove temporary files
25640 --recheck update $as_me by reconfiguring in the same conditions
25641 --file=FILE[:TEMPLATE]
25642 instantiate the configuration file FILE
25643 --header=FILE[:TEMPLATE]
25644 instantiate the configuration header FILE
25646 Configuration files:
25649 Configuration headers:
25652 Report bugs to <bug-autoconf@gnu.org>."
25655 cat >>$CONFIG_STATUS <<_ACEOF
25657 python config.status 2.7
25658 configured by $0, generated by GNU Autoconf 2.61,
25659 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25661 Copyright (C) 2006 Free Software Foundation, Inc.
25662 This config.status script is free software; the Free Software Foundation
25663 gives unlimited permission to copy, distribute and modify it."
25670 cat >>$CONFIG_STATUS <<\_ACEOF
25671 # If no file are specified by the user, then we need to provide default
25672 # value. By we need to know if files were specified by the user.
25678 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
25679 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
25690 # Handling of the options.
25691 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
25693 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
25694 echo "$ac_cs_version"; exit ;;
25695 --debug |
--debu |
--deb |
--de |
--d |
-d )
25697 --file |
--fil |
--fi |
--f )
25699 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
25700 ac_need_defaults
=false
;;
25701 --header |
--heade |
--head |
--hea )
25703 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
25704 ac_need_defaults
=false
;;
25706 # Conflict between --help and --header
25707 { echo "$as_me: error: ambiguous option: $1
25708 Try \`$0 --help' for more information." >&2
25709 { (exit 1); exit 1; }; };;
25710 --help |
--hel |
-h )
25711 echo "$ac_cs_usage"; exit ;;
25712 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
25713 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
25716 # This is an error.
25717 -*) { echo "$as_me: error: unrecognized option: $1
25718 Try \`$0 --help' for more information." >&2
25719 { (exit 1); exit 1; }; } ;;
25721 *) ac_config_targets
="$ac_config_targets $1"
25722 ac_need_defaults
=false
;;
25728 ac_configure_extra_args
=
25730 if $ac_cs_silent; then
25732 ac_configure_extra_args
="$ac_configure_extra_args --silent"
25736 cat >>$CONFIG_STATUS <<_ACEOF
25737 if \$ac_cs_recheck; then
25738 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25739 CONFIG_SHELL=$SHELL
25740 export CONFIG_SHELL
25741 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25745 cat >>$CONFIG_STATUS <<\_ACEOF
25749 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25750 ## Running $as_me. ##
25756 cat >>$CONFIG_STATUS <<_ACEOF
25759 cat >>$CONFIG_STATUS <<\_ACEOF
25761 # Handling of arguments.
25762 for ac_config_target
in $ac_config_targets
25764 case $ac_config_target in
25765 "pyconfig.h") CONFIG_HEADERS
="$CONFIG_HEADERS pyconfig.h" ;;
25766 "Mac/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/Makefile" ;;
25767 "Mac/PythonLauncher/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
25768 "Mac/IDLE/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/IDLE/Makefile" ;;
25769 "Mac/Resources/framework/Info.plist") CONFIG_FILES
="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
25770 "Mac/Resources/app/Info.plist") CONFIG_FILES
="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
25771 "Makefile.pre") CONFIG_FILES
="$CONFIG_FILES Makefile.pre" ;;
25772 "Modules/Setup.config") CONFIG_FILES
="$CONFIG_FILES Modules/Setup.config" ;;
25774 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25775 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25776 { (exit 1); exit 1; }; };;
25781 # If the user did not use the arguments to specify the items to instantiate,
25782 # then the envvar interface is used. Set only those that are not.
25783 # We use the long form for the default assignment because of an extremely
25784 # bizarre bug on SunOS 4.1.3.
25785 if $ac_need_defaults; then
25786 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
25787 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
25790 # Have a temporary directory for convenience. Make it in the build tree
25791 # simply because there is no reason against having it here, and in addition,
25792 # creating and moving files from /tmp can sometimes cause problems.
25793 # Hook for its removal unless debugging.
25794 # Note that there is a small window in which the directory will not be cleaned:
25795 # after its creation but before its name has been assigned to `$tmp'.
25799 trap 'exit_status=$?
25800 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25802 trap '{ (exit 1); exit 1; }' 1 2 13 15
25804 # Create a (secure) tmp directory for tmp files.
25807 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25808 test -n "$tmp" && test -d "$tmp"
25811 tmp
=.
/conf$$
-$RANDOM
25812 (umask 077 && mkdir
"$tmp")
25815 echo "$me: cannot create a temporary directory in ." >&2
25816 { (exit 1); exit 1; }
25820 # Set up the sed scripts for CONFIG_FILES section.
25823 # No need to generate the scripts if there are no CONFIG_FILES.
25824 # This happens for instance when ./config.status config.h
25825 if test -n "$CONFIG_FILES"; then
25832 for ac_last_try
in false false false false false
:; do
25833 cat >conf$
$subs.
sed <<_ACEOF
25834 SHELL!$SHELL$ac_delim
25835 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25836 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25837 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25838 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25839 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25840 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25841 exec_prefix!$exec_prefix$ac_delim
25842 prefix!$prefix$ac_delim
25843 program_transform_name!$program_transform_name$ac_delim
25844 bindir!$bindir$ac_delim
25845 sbindir!$sbindir$ac_delim
25846 libexecdir!$libexecdir$ac_delim
25847 datarootdir!$datarootdir$ac_delim
25848 datadir!$datadir$ac_delim
25849 sysconfdir!$sysconfdir$ac_delim
25850 sharedstatedir!$sharedstatedir$ac_delim
25851 localstatedir!$localstatedir$ac_delim
25852 includedir!$includedir$ac_delim
25853 oldincludedir!$oldincludedir$ac_delim
25854 docdir!$docdir$ac_delim
25855 infodir!$infodir$ac_delim
25856 htmldir!$htmldir$ac_delim
25857 dvidir!$dvidir$ac_delim
25858 pdfdir!$pdfdir$ac_delim
25859 psdir!$psdir$ac_delim
25860 libdir!$libdir$ac_delim
25861 localedir!$localedir$ac_delim
25862 mandir!$mandir$ac_delim
25863 DEFS!$DEFS$ac_delim
25864 ECHO_C!$ECHO_C$ac_delim
25865 ECHO_N!$ECHO_N$ac_delim
25866 ECHO_T!$ECHO_T$ac_delim
25867 LIBS!$LIBS$ac_delim
25868 build_alias!$build_alias$ac_delim
25869 host_alias!$host_alias$ac_delim
25870 target_alias!$target_alias$ac_delim
25871 VERSION!$VERSION$ac_delim
25872 SOVERSION!$SOVERSION$ac_delim
25873 CONFIG_ARGS!$CONFIG_ARGS$ac_delim
25874 UNIVERSALSDK!$UNIVERSALSDK$ac_delim
25875 ARCH_RUN_32BIT!$ARCH_RUN_32BIT$ac_delim
25876 PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
25877 PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim
25878 PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
25879 PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
25880 PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
25881 FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
25882 FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
25883 FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
25884 FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
25885 FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
25886 MACHDEP!$MACHDEP$ac_delim
25887 SGI_ABI!$SGI_ABI$ac_delim
25888 EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim
25889 EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim
25890 CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
25891 EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
25893 CFLAGS!$CFLAGS$ac_delim
25894 LDFLAGS!$LDFLAGS$ac_delim
25895 CPPFLAGS!$CPPFLAGS$ac_delim
25896 ac_ct_CC!$ac_ct_CC$ac_delim
25897 EXEEXT!$EXEEXT$ac_delim
25898 OBJEXT!$OBJEXT$ac_delim
25900 MAINCC!$MAINCC$ac_delim
25902 GREP!$GREP$ac_delim
25903 EGREP!$EGREP$ac_delim
25904 BUILDEXEEXT!$BUILDEXEEXT$ac_delim
25905 LIBRARY!$LIBRARY$ac_delim
25906 LDLIBRARY!$LDLIBRARY$ac_delim
25907 DLLLIBRARY!$DLLLIBRARY$ac_delim
25908 BLDLIBRARY!$BLDLIBRARY$ac_delim
25909 LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
25910 INSTSONAME!$INSTSONAME$ac_delim
25911 RUNSHARED!$RUNSHARED$ac_delim
25912 LINKCC!$LINKCC$ac_delim
25913 RANLIB!$RANLIB$ac_delim
25915 SVNVERSION!$SVNVERSION$ac_delim
25916 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25917 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25918 INSTALL_DATA!$INSTALL_DATA$ac_delim
25921 BASECFLAGS!$BASECFLAGS$ac_delim
25922 UNIVERSAL_ARCH_FLAGS!$UNIVERSAL_ARCH_FLAGS$ac_delim
25923 OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
25924 LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
25926 LDSHARED!$LDSHARED$ac_delim
25927 BLDSHARED!$BLDSHARED$ac_delim
25928 CCSHARED!$CCSHARED$ac_delim
25929 LINKFORSHARED!$LINKFORSHARED$ac_delim
25930 CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
25933 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25935 elif $ac_last_try; then
25936 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25937 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25938 { (exit 1); exit 1; }; }
25940 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
25944 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25945 if test -n "$ac_eof"; then
25946 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
25947 ac_eof
=`expr $ac_eof + 1`
25950 cat >>$CONFIG_STATUS <<_ACEOF
25951 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25952 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25955 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25956 s/^/s,@/; s/!/@,|#_!!_#|/
25959 s/'"$ac_delim"'$/,g/; t
25961 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25962 ' >>$CONFIG_STATUS <conf$
$subs.
sed
25963 rm -f conf$
$subs.
sed
25964 cat >>$CONFIG_STATUS <<_ACEOF
25970 for ac_last_try
in false false false false false
:; do
25971 cat >conf$
$subs.
sed <<_ACEOF
25972 SHLIBS!$SHLIBS$ac_delim
25973 USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
25974 SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
25975 USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
25976 LDLAST!$LDLAST$ac_delim
25977 THREADOBJ!$THREADOBJ$ac_delim
25978 DLINCLDIR!$DLINCLDIR$ac_delim
25979 DYNLOADFILE!$DYNLOADFILE$ac_delim
25980 MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
25981 TRUE!$TRUE$ac_delim
25982 LIBOBJS!$LIBOBJS$ac_delim
25983 HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
25984 HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
25985 HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
25986 HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
25987 HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
25988 LIBM!$LIBM$ac_delim
25989 LIBC!$LIBC$ac_delim
25990 UNICODE_OBJS!$UNICODE_OBJS$ac_delim
25991 THREADHEADERS!$THREADHEADERS$ac_delim
25992 SRCDIRS!$SRCDIRS$ac_delim
25993 LTLIBOBJS!$LTLIBOBJS$ac_delim
25996 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
25998 elif $ac_last_try; then
25999 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26000 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26001 { (exit 1); exit 1; }; }
26003 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
26007 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26008 if test -n "$ac_eof"; then
26009 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
26010 ac_eof
=`expr $ac_eof + 1`
26013 cat >>$CONFIG_STATUS <<_ACEOF
26014 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26015 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26018 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26019 s/^/s,@/; s/!/@,|#_!!_#|/
26022 s/'"$ac_delim"'$/,g/; t
26024 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26025 ' >>$CONFIG_STATUS <conf$
$subs.
sed
26026 rm -f conf$
$subs.
sed
26027 cat >>$CONFIG_STATUS <<_ACEOF
26034 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26035 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26036 # trailing colons and then remove the whole line if VPATH becomes empty
26037 # (actually we leave an empty line to preserve line numbers).
26038 if test "x$srcdir" = x.
; then
26039 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
26040 s/:*\$(srcdir):*/:/
26041 s/:*\${srcdir}:*/:/
26043 s/^\([^=]*=[ ]*\):*/\1/
26049 cat >>$CONFIG_STATUS <<\_ACEOF
26050 fi # test -n "$CONFIG_FILES"
26053 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
26056 :[FHLC
]) ac_mode
=$ac_tag; continue;;
26058 case $ac_mode$ac_tag in
26060 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26061 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26062 { (exit 1); exit 1; }; };;
26063 :[FH
]-) ac_tag
=-:-;;
26064 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
26081 -) ac_f
="$tmp/stdin";;
26082 *) # Look for the file first in the build tree, then in the source tree
26083 # (if the path is not absolute). The absolute path cannot be DOS-style,
26084 # because $ac_f cannot contain `:'.
26088 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
26090 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26091 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26092 { (exit 1); exit 1; }; };;
26094 ac_file_inputs
="$ac_file_inputs $ac_f"
26097 # Let's still pretend it is `configure' which instantiates (i.e., don't
26098 # use $as_me), people would be surprised to read:
26099 # /* config.h. Generated by config.status. */
26100 configure_input
="Generated from "`IFS=:
26101 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26102 if test x
"$ac_file" != x-
; then
26103 configure_input
="$ac_file. $configure_input"
26104 { echo "$as_me:$LINENO: creating $ac_file" >&5
26105 echo "$as_me: creating $ac_file" >&6;}
26109 *:-:* |
*:-) cat >"$tmp/stdin";;
26114 ac_dir
=`$as_dirname -- "$ac_file" ||
26115 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26116 X"$ac_file" : 'X\(//\)[^/]' \| \
26117 X"$ac_file" : 'X\(//\)$' \| \
26118 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26120 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26124 /^X\(\/\/\)[^/].*/{
26139 -*) as_dir
=.
/$as_dir;;
26141 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
26145 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26146 *) as_qdir
=$as_dir;;
26148 as_dirs
="'$as_qdir' $as_dirs"
26149 as_dir
=`$as_dirname -- "$as_dir" ||
26150 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26151 X"$as_dir" : 'X\(//\)[^/]' \| \
26152 X"$as_dir" : 'X\(//\)$' \| \
26153 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26155 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26159 /^X\(\/\/\)[^/].*/{
26172 test -d "$as_dir" && break
26174 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
26175 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26176 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26177 { (exit 1); exit 1; }; }; }
26181 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26183 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26184 # A ".." for each directory in $ac_dir_suffix.
26185 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26186 case $ac_top_builddir_sub in
26187 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26188 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
26191 ac_abs_top_builddir
=$ac_pwd
26192 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
26193 # for backward compatibility:
26194 ac_top_builddir
=$ac_top_build_prefix
26197 .
) # We are building in place.
26199 ac_top_srcdir
=$ac_top_builddir_sub
26200 ac_abs_top_srcdir
=$ac_pwd ;;
26201 [\\/]* | ?
:[\\/]* ) # Absolute name.
26202 ac_srcdir
=$srcdir$ac_dir_suffix;
26203 ac_top_srcdir
=$srcdir
26204 ac_abs_top_srcdir
=$srcdir ;;
26205 *) # Relative name.
26206 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
26207 ac_top_srcdir
=$ac_top_build_prefix$srcdir
26208 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
26210 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
26220 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
26221 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
26225 cat >>$CONFIG_STATUS <<\_ACEOF
26226 # If the template does not know about datarootdir, expand it.
26227 # FIXME: This hack should be removed a few years after 2.60.
26228 ac_datarootdir_hack
=; ac_datarootdir_seen
=
26230 case `sed -n '/datarootdir/ {
26239 ' $ac_file_inputs` in
26240 *datarootdir
*) ac_datarootdir_seen
=yes;;
26241 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
26242 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26243 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26245 cat >>$CONFIG_STATUS <<_ACEOF
26246 ac_datarootdir_hack='
26247 s&@datadir@&$datadir&g
26248 s&@docdir@&$docdir&g
26249 s&@infodir@&$infodir&g
26250 s&@localedir@&$localedir&g
26251 s&@mandir@&$mandir&g
26252 s&\\\${datarootdir}&$datarootdir&g' ;;
26256 # Neutralize VPATH when `$srcdir' = `.'.
26257 # Shell code in configure.ac might set extrasub.
26258 # FIXME: do we really want to maintain this feature?
26259 cat >>$CONFIG_STATUS <<_ACEOF
26263 cat >>$CONFIG_STATUS <<\_ACEOF
26265 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
26266 s
&@configure_input@
&$configure_input&;t t
26267 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
26268 s
&@srcdir@
&$ac_srcdir&;t t
26269 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
26270 s
&@top_srcdir@
&$ac_top_srcdir&;t t
26271 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
26272 s
&@builddir@
&$ac_builddir&;t t
26273 s
&@abs_builddir@
&$ac_abs_builddir&;t t
26274 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
26275 s
&@INSTALL@
&$ac_INSTALL&;t t
26276 $ac_datarootdir_hack
26277 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
26279 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26280 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
26281 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
26282 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
26283 which seems to be undefined. Please make sure it is defined." >&5
26284 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
26285 which seems to be undefined. Please make sure it is defined." >&2;}
26289 -) cat "$tmp/out"; rm -f "$tmp/out";;
26290 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
26299 # Transform confdefs.h into a sed script `conftest.defines', that
26300 # substitutes the proper values into config.h.in to produce config.h.
26301 rm -f conftest.defines conftest.
tail
26302 # First, append a space to every undef/define line, to ease matching.
26303 echo 's/$/ /' >conftest.defines
26304 # Then, protect against being on the right side of a sed subst, or in
26305 # an unquoted here document, in config.status. If some macros were
26306 # called several times there might be several #defines for the same
26307 # symbol, which is useless. But do not sort them, since the last
26308 # AC_DEFINE must be honored.
26309 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
26310 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
26311 # NAME is the cpp macro being defined, VALUE is the value it is being given.
26312 # PARAMS is the parameter list in the macro definition--in most cases, it's
26313 # just an empty string.
26314 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
26315 ac_dB
='\\)[ (].*,\\1define\\2'
26323 s/^[ ]*#[ ]*define[ ][ ]*//
26328 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
26329 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
26330 ' >>conftest.defines
26332 # Remove the space that was appended to ease matching.
26333 # Then replace #undef with comments. This is necessary, for
26334 # example, in the case of _POSIX_SOURCE, which is predefined and required
26335 # on some systems where configure will not decide to define it.
26336 # (The regexp can be short, since the line contains either #define or #undef.)
26338 s,^[ #]*u.*,/* & */,' >>conftest.defines
26340 # Break up conftest.defines:
26341 ac_max_sed_lines
=50
26343 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
26344 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
26345 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
26347 ac_in
='$ac_file_inputs'
26348 ac_out
='"$tmp/out1"'
26349 ac_nxt
='"$tmp/out2"'
26353 # Write a here document:
26354 cat >>$CONFIG_STATUS <<_ACEOF
26355 # First, check the format of the line:
26356 cat >"\$tmp/defines.sed" <<\\CEOF
26357 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
26358 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
26362 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
26364 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
26365 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
26366 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
26367 grep . conftest.
tail >/dev
/null ||
break
26368 rm -f conftest.defines
26369 mv conftest.
tail conftest.defines
26371 rm -f conftest.defines conftest.
tail
26373 echo "ac_result=$ac_in" >>$CONFIG_STATUS
26374 cat >>$CONFIG_STATUS <<\_ACEOF
26375 if test x
"$ac_file" != x-
; then
26376 echo "/* $configure_input */" >"$tmp/config.h"
26377 cat "$ac_result" >>"$tmp/config.h"
26378 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
26379 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26380 echo "$as_me: $ac_file is unchanged" >&6;}
26383 mv "$tmp/config.h" $ac_file
26386 echo "/* $configure_input */"
26398 { (exit 0); exit 0; }
26400 chmod +x
$CONFIG_STATUS
26401 ac_clean_files
=$ac_clean_files_save
26404 # configure is writing to config.log, and then calls config.status.
26405 # config.status does its own redirection, appending to config.log.
26406 # Unfortunately, on DOS this fails, as config.log is still kept open
26407 # by configure, so config.status won't be able to write to it; its
26408 # output is simply discarded. So we exec the FD to /dev/null,
26409 # effectively closing config.log, so it can be properly (re)opened and
26410 # appended to by config.status. When coming back to configure, we
26411 # need to make the FD available again.
26412 if test "$no_create" != yes; then
26414 ac_config_status_args
=
26415 test "$silent" = yes &&
26416 ac_config_status_args
="$ac_config_status_args --quiet"
26418 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
26420 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26421 # would make configure fail if this is the last instruction.
26422 $ac_cs_success ||
{ (exit 1); exit 1; }
26426 echo "creating Modules/Setup"
26427 if test ! -f Modules
/Setup
26429 cp $srcdir/Modules
/Setup.dist Modules
/Setup
26432 echo "creating Modules/Setup.local"
26433 if test ! -f Modules
/Setup.
local
26435 echo "# Edit this file for local setup changes" >Modules
/Setup.
local
26438 echo "creating Makefile"
26439 $SHELL $srcdir/Modules
/makesetup
-c $srcdir/Modules
/config.c.
in \
26440 -s Modules Modules
/Setup.config \
26441 Modules
/Setup.
local Modules
/Setup
26443 case $ac_sys_system in
26445 { echo "$as_me:$LINENO: WARNING:
26447 Support for BeOS is deprecated as of Python 2.6.
26448 See PEP 11 for the gory details.
26450 echo "$as_me: WARNING:
26452 Support for BeOS is deprecated as of Python 2.6.
26453 See PEP 11 for the gory details.
26459 mv config.c Modules