2 # From configure.in Revision: 68299 .
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-unicode[=ucs
[24]]
1328 Enable Unicode
strings (default is
yes)
1331 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1332 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1333 --with-universal-archs=ARCH
1334 select architectures
for universal build
("32-bit",
1336 --with-framework-name=FRAMEWORK
1337 specify an alternate name of the framework built
1338 with
--enable-framework
1339 --without-gcc never use gcc
1340 --with-cxx-main=<compiler
>
1341 compile main
() and link python executable with C
++
1343 --with-suffix=.exe
set executable suffix
1344 --with-pydebug build with Py_DEBUG defined
1345 --with-libs='lib1 ...' link against additional libs
1346 --with-system-ffi build _ctypes module using an installed ffi library
1347 --with-signal-module disable
/enable signal module
1348 --with-dec-threads use DEC Alpha
/OSF1 thread-safe libraries
1349 --with(out
)-threads[=DIRECTORY
]
1350 disable
/enable thread support
1351 --with(out
)-thread[=DIRECTORY
]
1352 deprecated
; use
--with(out
)-threads
1353 --with-pth use GNU pth threading libraries
1354 --with(out
)-doc-strings disable
/enable documentation
strings
1355 --with(out
)-tsc enable
/disable timestamp counter profile
1356 --with(out
)-pymalloc disable
/enable specialized mallocs
1357 --with-wctype-functions use wctype.h functions
1358 --with-fpectl enable SIGFPE catching
1359 --with-libm=STRING math library
1360 --with-libc=STRING C library
1362 Some influential environment variables
:
1363 CC C compiler
command
1364 CFLAGS C compiler flags
1365 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1366 nonstandard directory
<lib dir
>
1367 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1368 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1369 you have headers
in a nonstandard directory
<include dir
>
1372 Use these variables to override the choices made by
`configure' or to help
1373 it to find libraries and programs with nonstandard names/locations.
1375 Report bugs to <http://www.python.org/python-bugs>.
1380 if test "$ac_init_help" = "recursive"; then
1381 # If there are subdirs, report their specific --help.
1382 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1383 test -d "$ac_dir" || continue
1387 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1389 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1390 # A ".." for each directory in $ac_dir_suffix.
1391 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1392 case $ac_top_builddir_sub in
1393 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1394 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1397 ac_abs_top_builddir=$ac_pwd
1398 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1399 # for backward compatibility:
1400 ac_top_builddir=$ac_top_build_prefix
1403 .) # We are building in place.
1405 ac_top_srcdir=$ac_top_builddir_sub
1406 ac_abs_top_srcdir=$ac_pwd ;;
1407 [\\/]* | ?:[\\/]* ) # Absolute name.
1408 ac_srcdir=$srcdir$ac_dir_suffix;
1409 ac_top_srcdir=$srcdir
1410 ac_abs_top_srcdir=$srcdir ;;
1412 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1413 ac_top_srcdir=$ac_top_build_prefix$srcdir
1414 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1416 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1418 cd "$ac_dir" || { ac_status=$?; continue; }
1419 # Check for guested configure.
1420 if test -f "$ac_srcdir/configure.gnu"; then
1422 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1423 elif test -f "$ac_srcdir/configure"; then
1425 $SHELL "$ac_srcdir/configure" --help=recursive
1427 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1429 cd "$ac_pwd" || { ac_status=$?; break; }
1433 test -n "$ac_init_help" && exit $ac_status
1434 if $ac_init_version; then
1436 python configure 2.7
1437 generated by GNU Autoconf 2.61
1439 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1440 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1441 This configure script is free software; the Free Software Foundation
1442 gives unlimited permission to copy, distribute and modify it.
1446 cat >config.log <<_ACEOF
1447 This file contains any messages produced by compilers while
1448 running configure, to aid debugging if configure makes a mistake.
1450 It was created by python $as_me 2.7, which was
1451 generated by GNU Autoconf 2.61. Invocation command line was
1463 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1464 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1465 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1466 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1467 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1469 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1470 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1472 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1473 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1474 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1475 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1476 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1477 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1478 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1486 test -z "$as_dir" && as_dir=.
1487 echo "PATH: $as_dir"
1503 # Keep a trace of the command line.
1504 # Strip out --no-create and --no-recursion so they do not pile up.
1505 # Strip out --silent because we don't want to record it for future runs.
1506 # Also quote any args containing shell meta-characters.
1507 # Make two passes to allow for proper duplicate-argument suppression.
1511 ac_must_keep_next=false
1517 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1518 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1519 | -silent | --silent | --silen | --sile | --sil)
1522 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1525 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1527 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1528 if test $ac_must_keep_next = true; then
1529 ac_must_keep_next=false # Got value, back to normal.
1532 *=* | --config-cache | -C | -disable-* | --disable-* \
1533 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1534 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1535 | -with-* | --with-* | -without-* | --without-* | --x)
1536 case "$ac_configure_args0 " in
1537 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1540 -* ) ac_must_keep_next=true ;;
1543 ac_configure_args="$ac_configure_args '$ac_arg'"
1548 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1549 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1551 # When interrupted or exit'd, cleanup temporary files, and complete
1552 # config.log. We remove comments because anyway the quotes in there
1553 # would cause problems or look ugly.
1554 # WARNING: Use '\'' to represent an apostrophe within the trap.
1555 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1556 trap 'exit_status=$?
1557 # Save into config.log some information that might help in debugging.
1562 ## ---------------- ##
1563 ## Cache variables. ##
1564 ## ---------------- ##
1567 # The following way of writing the cache mishandles newlines in values,
1569 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1570 eval ac_val=\$$ac_var
1574 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1575 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1578 _ | IFS | as_nl) ;; #(
1579 *) $as_unset $ac_var ;;
1584 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1585 *${as_nl}ac_space=\ *)
1587 "s/'\''/'\''\\\\'\'''\''/g;
1588 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1591 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1599 ## ----------------- ##
1600 ## Output variables. ##
1601 ## ----------------- ##
1604 for ac_var in $ac_subst_vars
1606 eval ac_val=\$$ac_var
1608 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1610 echo "$ac_var='\''$ac_val'\''"
1614 if test -n "$ac_subst_files"; then
1616 ## ------------------- ##
1617 ## File substitutions. ##
1618 ## ------------------- ##
1621 for ac_var in $ac_subst_files
1623 eval ac_val=\$$ac_var
1625 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1627 echo "$ac_var='\''$ac_val'\''"
1632 if test -s confdefs.h; then
1642 test "$ac_signal" != 0 &&
1643 echo "$as_me: caught signal $ac_signal"
1644 echo "$as_me: exit $exit_status"
1646 rm -f core *.core core.conftest.* &&
1647 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1650 for ac_signal in 1 2 13 15; do
1651 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1655 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1656 rm -f -r conftest* confdefs.h
1658 # Predefined preprocessor variables.
1660 cat >>confdefs.h <<_ACEOF
1661 #define PACKAGE_NAME "$PACKAGE_NAME"
1665 cat >>confdefs.h <<_ACEOF
1666 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1670 cat >>confdefs.h <<_ACEOF
1671 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1675 cat >>confdefs.h <<_ACEOF
1676 #define PACKAGE_STRING "$PACKAGE_STRING"
1680 cat >>confdefs.h <<_ACEOF
1681 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1685 # Let the site file select an alternate cache file if it wants to.
1686 # Prefer explicitly selected file to automatically selected ones.
1687 if test -n "$CONFIG_SITE"; then
1688 set x "$CONFIG_SITE"
1689 elif test "x$prefix" != xNONE; then
1690 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1692 set x "$ac_default_prefix/share/config.site" \
1693 "$ac_default_prefix/etc/config.site"
1698 if test -r "$ac_site_file"; then
1699 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1700 echo "$as_me: loading site script $ac_site_file" >&6;}
1701 sed 's/^/| /' "$ac_site_file" >&5
1706 if test -r "$cache_file"; then
1707 # Some versions of bash will fail to source /dev/null (special
1708 # files actually), so we avoid doing that.
1709 if test -f "$cache_file"; then
1710 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1711 echo "$as_me: loading cache $cache_file" >&6;}
1713 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1714 *) . "./$cache_file";;
1718 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1719 echo "$as_me: creating cache $cache_file" >&6;}
1723 # Check that the precious variables saved in the cache have kept the same
1725 ac_cache_corrupted=false
1726 for ac_var in $ac_precious_vars; do
1727 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1728 eval ac_new_set=\$ac_env_${ac_var}_set
1729 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1730 eval ac_new_val=\$ac_env_${ac_var}_value
1731 case $ac_old_set,$ac_new_set in
1733 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1734 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1735 ac_cache_corrupted=: ;;
1737 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1738 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1739 ac_cache_corrupted=: ;;
1742 if test "x$ac_old_val" != "x$ac_new_val"; then
1743 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1744 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1745 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1746 echo "$as_me: former value
: $ac_old_val" >&2;}
1747 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1748 echo "$as_me: current value
: $ac_new_val" >&2;}
1749 ac_cache_corrupted=:
1752 # Pass precious variables to config.status.
1753 if test "$ac_new_set" = set; then
1755 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1756 *) ac_arg=$ac_var=$ac_new_val ;;
1758 case " $ac_configure_args " in
1759 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1760 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1764 if $ac_cache_corrupted; then
1765 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1766 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1767 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1768 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1769 { (exit 1); exit 1; }; }
1797 ac_cpp='$CPP $CPPFLAGS'
1798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1804 ac_config_headers="$ac_config_headers pyconfig.h"
1812 # We don't use PACKAGE_ variables, and they cause conflicts
1813 # with other autoconf-based packages that include Python.h
1814 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1816 mv confdefs.h.new confdefs.h
1824 # The later defininition of _XOPEN_SOURCE disables certain features
1825 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1827 cat >>confdefs.h <<\_ACEOF
1828 #define _GNU_SOURCE 1
1832 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1833 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1836 cat >>confdefs.h <<\_ACEOF
1837 #define _NETBSD_SOURCE 1
1841 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1842 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1845 cat >>confdefs.h <<\_ACEOF
1846 #define __BSD_VISIBLE 1
1850 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1851 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1853 cat >>confdefs.h <<\_ACEOF
1854 #define _BSD_TYPES 1
1858 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1859 # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
1862 cat >>confdefs.h <<\_ACEOF
1863 #define _DARWIN_C_SOURCE 1
1868 define_xopen_source=yes
1870 # Arguments passed to configure.
1872 CONFIG_ARGS="$ac_configure_args"
1874 # Check whether --enable-universalsdk was given.
1875 if test "${enable_universalsdk+set}" = set; then
1876 enableval=$enable_universalsdk;
1879 enableval=/Developer/SDKs/MacOSX10.4u.sdk
1885 enable_universalsdk=
1888 UNIVERSALSDK=$enableval
1895 enable_universalsdk=
1904 UNIVERSAL_ARCHS="32-bit"
1905 { echo "$as_me:$LINENO: checking for --with-universal-archs" >&5
1906 echo $ECHO_N "checking for --with-universal-archs... $ECHO_C" >&6; }
1908 # Check whether --with-universal-archs was given.
1909 if test "${with_universal_archs+set}" = set; then
1910 withval=$with_universal_archs;
1911 { echo "$as_me:$LINENO: result: $withval" >&5
1912 echo "${ECHO_T}$withval" >&6; }
1913 UNIVERSAL_ARCHS="$withval"
1917 { echo "$as_me:$LINENO: result: 32-bit" >&5
1918 echo "${ECHO_T}32-bit" >&6; }
1926 # Check whether --with-framework-name was given.
1927 if test "${with_framework_name+set}" = set; then
1928 withval=$with_framework_name;
1929 PYTHONFRAMEWORK=${withval}
1930 PYTHONFRAMEWORKDIR=${withval}.framework
1931 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval |
tr 'A-Z' 'a-z'`
1935 PYTHONFRAMEWORK=Python
1936 PYTHONFRAMEWORKDIR=Python.framework
1937 PYTHONFRAMEWORKIDENTIFIER=org.python.python
1941 # Check whether --enable-framework was given.
1942 if test "${enable_framework+set}" = set; then
1943 enableval=$enable_framework;
1946 enableval=/Library/Frameworks
1951 PYTHONFRAMEWORKDIR=no-framework
1952 PYTHONFRAMEWORKPREFIX=
1953 PYTHONFRAMEWORKINSTALLDIR=
1954 FRAMEWORKINSTALLFIRST=
1955 FRAMEWORKINSTALLLAST=
1956 FRAMEWORKALTINSTALLFIRST=
1957 FRAMEWORKALTINSTALLLAST=
1958 if test "x${prefix}" = "xNONE"; then
1959 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1961 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1966 PYTHONFRAMEWORKPREFIX=$enableval
1967 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1968 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
1969 FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall"
1970 if test "$UNIVERSAL_ARCHS" = "all"
1972 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkinstallunixtools4way"
1974 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
1977 if test "x${prefix}" = "xNONE" ; then
1978 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1980 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1982 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
1984 # Add files for Mac specific code to the list of output
1986 ac_config_files="$ac_config_files Mac/Makefile"
1988 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
1990 ac_config_files="$ac_config_files Mac/IDLE/Makefile"
1992 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
1994 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
2001 PYTHONFRAMEWORKDIR=no-framework
2002 PYTHONFRAMEWORKPREFIX=
2003 PYTHONFRAMEWORKINSTALLDIR=
2004 FRAMEWORKINSTALLFIRST=
2005 FRAMEWORKINSTALLLAST=
2006 FRAMEWORKALTINSTALLFIRST=
2007 FRAMEWORKALTINSTALLLAST=
2008 if test "x${prefix}" = "xNONE" ; then
2009 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2011 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2015 if test "$UNIVERSAL_ARCHS" = "all"
2017 FRAMEWORKINSTALLLAST=update4wayuniversal
2018 FRAMEWORKALTINSTALLLAST=update4wayuniversal
2035 ## AC_HELP_STRING(--with-dyld,
2036 ## Use (OpenStep|Rhapsody) dynamic linker))
2038 # Set name for machine-dependent library files
2040 { echo "$as_me:$LINENO: checking MACHDEP" >&5
2041 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; }
2042 if test -z "$MACHDEP"
2044 ac_sys_system=`uname
-s`
2045 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
2046 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
2047 ac_sys_release=`uname
-v`
2049 ac_sys_release=`uname
-r`
2051 ac_md_system=`echo $ac_sys_system |
2052 tr -d '/ ' |
tr '[A-Z]' '[a-z]'`
2053 ac_md_release=`echo $ac_sys_release |
2054 tr -d '/ ' |
sed 's/^[A-Z]\.//' |
sed 's/\..*//'`
2055 MACHDEP="$ac_md_system$ac_md_release"
2058 cygwin*) MACHDEP="cygwin";;
2059 darwin*) MACHDEP="darwin";;
2060 atheos*) MACHDEP="atheos";;
2061 irix646) MACHDEP="irix6";;
2062 '') MACHDEP="unknown";;
2066 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
2067 # disable features if it is defined, without any means to access these
2068 # features as extensions. For these systems, we skip the definition of
2069 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
2070 # some feature, make sure there is no alternative way to access this
2071 # feature. Also, when using wildcards, make sure you have verified the
2072 # need for not defining _XOPEN_SOURCE on all systems matching the
2073 # wildcard, and that the wildcard does not include future systems
2074 # (which may remove their limitations).
2075 case $ac_sys_system/$ac_sys_release in
2076 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
2077 # even though select is a POSIX function. Reported by J. Ribbens.
2078 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
2079 OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123])
2080 define_xopen_source=no
2081 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2082 # also defined. This can be overridden by defining _BSD_SOURCE
2083 # As this has a different meaning on Linux, only define it on OpenBSD
2085 cat >>confdefs.h <<\_ACEOF
2086 #define _BSD_SOURCE 1
2090 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
2091 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
2093 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
2094 define_xopen_source=no;;
2095 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
2096 # of union __?sigval. Reported by Stuart Bishop.
2098 define_xopen_source=no;;
2099 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
2100 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
2101 # Reconfirmed for 7.1.4 by Martin v. Loewis.
2102 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
2103 define_xopen_source=no;;
2104 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
2105 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
2107 define_xopen_source=no;;
2108 # On FreeBSD 4, the math functions C89 does not cover are never defined
2109 # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them.
2111 define_xopen_source=no;;
2112 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
2113 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
2114 # identifies itself as Darwin/7.*
2115 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2116 # disables platform specific features beyond repair.
2117 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2118 # has no effect, don't bother defining them
2120 define_xopen_source=no;;
2121 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
2122 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
2123 # or has another value. By not (re)defining it, the defaults come in place.
2125 define_xopen_source=no;;
2127 if test `uname
-r` -eq 1; then
2128 define_xopen_source=no
2131 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
2132 # defining NI_NUMERICHOST.
2134 define_xopen_source=no
2139 if test $define_xopen_source = yes
2141 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
2142 # defined precisely as g++ defines it
2143 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
2145 case $ac_sys_system/$ac_sys_release in
2146 SunOS/5.8|SunOS/5.9|SunOS/5.10)
2148 cat >>confdefs.h <<\_ACEOF
2149 #define _XOPEN_SOURCE 500
2155 cat >>confdefs.h <<\_ACEOF
2156 #define _XOPEN_SOURCE 600
2162 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
2163 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
2164 # several APIs are not declared. Since this is also needed in some
2165 # cases for HP-UX, we define it globally.
2166 # except for Solaris 10, where it must not be defined,
2167 # as it implies XPG4.2
2168 case $ac_sys_system/$ac_sys_release in
2173 cat >>confdefs.h <<\_ACEOF
2174 #define _XOPEN_SOURCE_EXTENDED 1
2181 cat >>confdefs.h <<\_ACEOF
2182 #define _POSIX_C_SOURCE 200112L
2189 # SGI compilers allow the specification of the both the ABI and the
2190 # ISA on the command line. Depending on the values of these switches,
2191 # different and often incompatable code will be generated.
2193 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
2194 # thus supply support for various ABI/ISA combinations. The MACHDEP
2195 # variable is also adjusted.
2198 if test ! -z "$SGI_ABI"
2201 LDFLAGS="$SGI_ABI $LDFLAGS"
2202 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" |
sed 's/ *//g'`
2204 { echo "$as_me:$LINENO: result: $MACHDEP" >&5
2205 echo "${ECHO_T}$MACHDEP" >&6; }
2207 # And add extra plat-mac for darwin
2210 { echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
2211 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6; }
2212 if test -z "$EXTRAPLATDIR"
2216 EXTRAPLATDIR="\$(PLATMACDIRS)"
2217 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
2225 { echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
2226 echo "${ECHO_T}$EXTRAPLATDIR" >&6; }
2228 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
2229 # it may influence the way we can build extensions, so distutils
2233 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
2234 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
2236 { echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5
2237 echo $ECHO_N "checking machine type as reported by uname -m... $ECHO_C" >&6; }
2238 ac_sys_machine=`uname
-m`
2239 { echo "$as_me:$LINENO: result: $ac_sys_machine" >&5
2240 echo "${ECHO_T}$ac_sys_machine" >&6; }
2242 # checks for alternative programs
2244 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
2245 # for debug/optimization stuff. BASECFLAGS is for flags that are required
2246 # just to get things to compile and link. Users are free to override OPT
2247 # when running configure or make. The build should not break if they do.
2248 # BASECFLAGS should generally not be messed with, however.
2250 # XXX shouldn't some/most/all of this code be merged with the stuff later
2251 # on that fiddles with OPT and BASECFLAGS?
2252 { echo "$as_me:$LINENO: checking for --without-gcc" >&5
2253 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; }
2255 # Check whether --with-gcc was given.
2256 if test "${with_gcc+set}" = set; then
2264 without_gcc=$withval;;
2268 case $ac_sys_system in
2272 case $BE_HOST_CPU in
2276 BASECFLAGS="$BASECFLAGS -export pragma"
2278 LDFLAGS="$LDFLAGS -nodup"
2286 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
2287 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
2288 { (exit 1); exit 1; }; }
2291 AR="\$(srcdir)/Modules/ar_beos"
2301 { echo "$as_me:$LINENO: result: $without_gcc" >&5
2302 echo "${ECHO_T}$without_gcc" >&6; }
2304 # If the user switches compilers, we can't believe the cache
2305 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
2307 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
2308 (it is also a good idea to do 'make clean' before compiling)" >&5
2309 echo "$as_me: error: cached CC is different -- throw away $cache_file
2310 (it is also a good idea to do 'make clean' before compiling)" >&2;}
2311 { (exit 1); exit 1; }; }
2315 ac_cpp='$CPP $CPPFLAGS'
2316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2319 if test -n "$ac_tool_prefix"; then
2320 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2321 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2322 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2324 if test "${ac_cv_prog_CC+set}" = set; then
2325 echo $ECHO_N "(cached) $ECHO_C" >&6
2327 if test -n "$CC"; then
2328 ac_cv_prog_CC="$CC" # Let the user override the test.
2330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2334 test -z "$as_dir" && as_dir=.
2335 for ac_exec_ext in '' $ac_executable_extensions; do
2336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2337 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2348 if test -n "$CC"; then
2349 { echo "$as_me:$LINENO: result: $CC" >&5
2350 echo "${ECHO_T}$CC" >&6; }
2352 { echo "$as_me:$LINENO: result: no" >&5
2353 echo "${ECHO_T}no" >&6; }
2358 if test -z "$ac_cv_prog_CC"; then
2360 # Extract the first word of "gcc", so it can be a program name with args.
2361 set dummy gcc; ac_word=$2
2362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2364 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2365 echo $ECHO_N "(cached) $ECHO_C" >&6
2367 if test -n "$ac_ct_CC"; then
2368 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2374 test -z "$as_dir" && as_dir=.
2375 for ac_exec_ext in '' $ac_executable_extensions; do
2376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2377 ac_cv_prog_ac_ct_CC="gcc"
2378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2387 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2388 if test -n "$ac_ct_CC"; then
2389 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2390 echo "${ECHO_T}$ac_ct_CC" >&6; }
2392 { echo "$as_me:$LINENO: result: no" >&5
2393 echo "${ECHO_T}no" >&6; }
2396 if test "x$ac_ct_CC" = x; then
2399 case $cross_compiling:$ac_tool_warned in
2401 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2402 whose name does not start with the host triplet. If you think this
2403 configuration is useful to you, please write to autoconf@gnu.org." >&5
2404 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2405 whose name does not start with the host triplet. If you think this
2406 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2407 ac_tool_warned=yes ;;
2415 if test -z "$CC"; then
2416 if test -n "$ac_tool_prefix"; then
2417 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2418 set dummy ${ac_tool_prefix}cc; ac_word=$2
2419 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2421 if test "${ac_cv_prog_CC+set}" = set; then
2422 echo $ECHO_N "(cached) $ECHO_C" >&6
2424 if test -n "$CC"; then
2425 ac_cv_prog_CC="$CC" # Let the user override the test.
2427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2431 test -z "$as_dir" && as_dir=.
2432 for ac_exec_ext in '' $ac_executable_extensions; do
2433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2434 ac_cv_prog_CC="${ac_tool_prefix}cc"
2435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2445 if test -n "$CC"; then
2446 { echo "$as_me:$LINENO: result: $CC" >&5
2447 echo "${ECHO_T}$CC" >&6; }
2449 { echo "$as_me:$LINENO: result: no" >&5
2450 echo "${ECHO_T}no" >&6; }
2456 if test -z "$CC"; then
2457 # Extract the first word of "cc", so it can be a program name with args.
2458 set dummy cc; ac_word=$2
2459 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2461 if test "${ac_cv_prog_CC+set}" = set; then
2462 echo $ECHO_N "(cached) $ECHO_C" >&6
2464 if test -n "$CC"; then
2465 ac_cv_prog_CC="$CC" # Let the user override the test.
2468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2472 test -z "$as_dir" && as_dir=.
2473 for ac_exec_ext in '' $ac_executable_extensions; do
2474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2475 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2476 ac_prog_rejected=yes
2480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2487 if test $ac_prog_rejected = yes; then
2488 # We found a bogon in the path, so make sure we never use it.
2489 set dummy $ac_cv_prog_CC
2491 if test $# != 0; then
2492 # We chose a different compiler from the bogus one.
2493 # However, it has the same basename, so the bogon will be chosen
2494 # first if we set CC to just the basename; use the full file name.
2496 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2502 if test -n "$CC"; then
2503 { echo "$as_me:$LINENO: result: $CC" >&5
2504 echo "${ECHO_T}$CC" >&6; }
2506 { echo "$as_me:$LINENO: result: no" >&5
2507 echo "${ECHO_T}no" >&6; }
2512 if test -z "$CC"; then
2513 if test -n "$ac_tool_prefix"; then
2514 for ac_prog in cl.exe
2516 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2517 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2518 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2520 if test "${ac_cv_prog_CC+set}" = set; then
2521 echo $ECHO_N "(cached) $ECHO_C" >&6
2523 if test -n "$CC"; then
2524 ac_cv_prog_CC="$CC" # Let the user override the test.
2526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2530 test -z "$as_dir" && as_dir=.
2531 for ac_exec_ext in '' $ac_executable_extensions; do
2532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2533 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2544 if test -n "$CC"; then
2545 { echo "$as_me:$LINENO: result: $CC" >&5
2546 echo "${ECHO_T}$CC" >&6; }
2548 { echo "$as_me:$LINENO: result: no" >&5
2549 echo "${ECHO_T}no" >&6; }
2553 test -n "$CC" && break
2556 if test -z "$CC"; then
2558 for ac_prog in cl.exe
2560 # Extract the first word of "$ac_prog", so it can be a program name with args.
2561 set dummy $ac_prog; ac_word=$2
2562 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2564 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2565 echo $ECHO_N "(cached) $ECHO_C" >&6
2567 if test -n "$ac_ct_CC"; then
2568 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2574 test -z "$as_dir" && as_dir=.
2575 for ac_exec_ext in '' $ac_executable_extensions; do
2576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2577 ac_cv_prog_ac_ct_CC="$ac_prog"
2578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2587 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2588 if test -n "$ac_ct_CC"; then
2589 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2590 echo "${ECHO_T}$ac_ct_CC" >&6; }
2592 { echo "$as_me:$LINENO: result: no" >&5
2593 echo "${ECHO_T}no" >&6; }
2597 test -n "$ac_ct_CC" && break
2600 if test "x$ac_ct_CC" = x; then
2603 case $cross_compiling:$ac_tool_warned in
2605 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2606 whose name does not start with the host triplet. If you think this
2607 configuration is useful to you, please write to autoconf@gnu.org." >&5
2608 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2609 whose name does not start with the host triplet. If you think this
2610 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2611 ac_tool_warned=yes ;;
2620 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2621 See \`config.log
' for more details." >&5
2622 echo "$as_me: error: no acceptable C compiler found in \$PATH
2623 See \`config.log' for more details.
" >&2;}
2624 { (exit 1); exit 1; }; }
2626 # Provide some information about the compiler.
2627 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2628 ac_compiler=`set X $ac_compile; echo $2`
2629 { (ac_try="$ac_compiler --version >&5"
2631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2632 *) ac_try_echo=$ac_try;;
2634 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2635 (eval "$ac_compiler --version >&5") 2>&5
2637 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2638 (exit $ac_status); }
2639 { (ac_try="$ac_compiler -v >&5"
2641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2642 *) ac_try_echo=$ac_try;;
2644 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2645 (eval "$ac_compiler -v >&5") 2>&5
2647 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2648 (exit $ac_status); }
2649 { (ac_try="$ac_compiler -V >&5"
2651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2652 *) ac_try_echo=$ac_try;;
2654 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2655 (eval "$ac_compiler -V >&5") 2>&5
2657 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2658 (exit $ac_status); }
2660 cat >conftest.$ac_ext <<_ACEOF
2663 cat confdefs.h >>conftest.$ac_ext
2664 cat >>conftest.$ac_ext <<_ACEOF
2665 /* end confdefs.h. */
2675 ac_clean_files_save=$ac_clean_files
2676 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2677 # Try to create an executable without -o first, disregard a.out.
2678 # It will help us diagnose broken compilers, and finding out an intuition
2680 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2681 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2682 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2684 # List of possible output files, starting from the most likely.
2685 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2686 # only as a last resort. b.out is created by i960 compilers.
2687 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2689 # The IRIX 6 linker writes into existing files which may not be
2690 # executable, retaining their permissions. Remove them first so a
2691 # subsequent execution test works.
2693 for ac_file in $ac_files
2696 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2697 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2702 if { (ac_try="$ac_link_default"
2704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2705 *) ac_try_echo=$ac_try;;
2707 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2708 (eval "$ac_link_default") 2>&5
2710 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2711 (exit $ac_status); }; then
2712 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2713 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2714 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2715 # so that the user can short-circuit this test for compilers unknown to
2717 for ac_file in $ac_files ''
2719 test -f "$ac_file" || continue
2721 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2724 # We found the default executable, but exeext='' is most
2728 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2730 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2732 # We set ac_cv_exeext here because the later test for it is not
2733 # safe: cross compilers may not add the suffix if given an `-o'
2734 # argument, so we may need to know it at that point already.
2735 # Even if this section looks crufty: it has the advantage of
2742 test "$ac_cv_exeext" = no && ac_cv_exeext=
2748 { echo "$as_me:$LINENO: result
: $ac_file" >&5
2749 echo "${ECHO_T}$ac_file" >&6; }
2750 if test -z "$ac_file"; then
2751 echo "$as_me: failed program was
:" >&5
2752 sed 's/^/| /' conftest.$ac_ext >&5
2754 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2755 See \
`config.log' for more details." >&5
2756 echo "$as_me: error: C compiler cannot create executables
2757 See \`config.log
' for more details." >&2;}
2758 { (exit 77); exit 77; }; }
2761 ac_exeext=$ac_cv_exeext
2763 # Check that the compiler produces executables we can run. If not, either
2764 # the compiler is broken, or we cross compile.
2765 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2766 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2767 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2768 # If not cross compiling, check that we can run a simple program.
2769 if test "$cross_compiling" != yes; then
2770 if { ac_try='.
/$ac_file'
2771 { (case "(($ac_try" in
2772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2773 *) ac_try_echo=$ac_try;;
2775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2776 (eval "$ac_try") 2>&5
2778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779 (exit $ac_status); }; }; then
2782 if test "$cross_compiling" = maybe; then
2785 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2786 If you meant to cross compile, use \`--host'.
2787 See \
`config.log' for more details." >&5
2788 echo "$as_me: error: cannot run C compiled programs.
2789 If you meant to cross compile, use \`--host'.
2790 See \`config.log' for more details.
" >&2;}
2791 { (exit 1); exit 1; }; }
2795 { echo "$as_me:$LINENO: result
: yes" >&5
2796 echo "${ECHO_T}yes" >&6; }
2798 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2799 ac_clean_files=$ac_clean_files_save
2800 # Check that the compiler produces executables we can run. If not, either
2801 # the compiler is broken, or we cross compile.
2802 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2803 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2804 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2805 echo "${ECHO_T}$cross_compiling" >&6; }
2807 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2808 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2809 if { (ac_try="$ac_link"
2811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2812 *) ac_try_echo=$ac_try;;
2814 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2815 (eval "$ac_link") 2>&5
2817 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2818 (exit $ac_status); }; then
2819 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2820 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2821 # work properly (i.e., refer to `conftest.exe'), while it won't with
2823 for ac_file in conftest.exe conftest conftest.*; do
2824 test -f "$ac_file" || continue
2826 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2827 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2833 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2834 See \
`config.log' for more details." >&5
2835 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2836 See \`config.log
' for more details." >&2;}
2837 { (exit 1); exit 1; }; }
2840 rm -f conftest$ac_cv_exeext
2841 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2842 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2844 rm -f conftest.$ac_ext
2845 EXEEXT=$ac_cv_exeext
2847 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2848 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2849 if test "${ac_cv_objext+set}" = set; then
2850 echo $ECHO_N "(cached) $ECHO_C" >&6
2852 cat >conftest.$ac_ext <<_ACEOF
2855 cat confdefs.h >>conftest.$ac_ext
2856 cat >>conftest.$ac_ext <<_ACEOF
2857 /* end confdefs.h. */
2867 rm -f conftest.o conftest.obj
2868 if { (ac_try="$ac_compile"
2870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2871 *) ac_try_echo=$ac_try;;
2873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2874 (eval "$ac_compile") 2>&5
2876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877 (exit $ac_status); }; then
2878 for ac_file in conftest.o conftest.obj conftest.*; do
2879 test -f "$ac_file" || continue;
2881 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2882 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2887 echo "$as_me: failed program was:" >&5
2888 sed 's
/^
/|
/' conftest.$ac_ext >&5
2890 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2891 See \`config.log' for more details.
" >&5
2892 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
2893 See \
`config.log' for more details." >&2;}
2894 { (exit 1); exit 1; }; }
2897 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2899 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2900 echo "${ECHO_T}$ac_cv_objext" >&6; }
2901 OBJEXT=$ac_cv_objext
2903 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2904 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2905 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2906 echo $ECHO_N "(cached) $ECHO_C" >&6
2908 cat >conftest.$ac_ext <<_ACEOF
2911 cat confdefs.h >>conftest.$ac_ext
2912 cat >>conftest.$ac_ext <<_ACEOF
2913 /* end confdefs.h. */
2926 rm -f conftest.$ac_objext
2927 if { (ac_try="$ac_compile"
2929 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2930 *) ac_try_echo
=$ac_try;;
2932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2933 (eval "$ac_compile") 2>conftest.er1
2935 grep -v '^ *+' conftest.er1
>conftest.err
2937 cat conftest.err
>&5
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); } && {
2940 test -z "$ac_c_werror_flag" ||
2941 test ! -s conftest.err
2942 } && test -s conftest.
$ac_objext; then
2945 echo "$as_me: failed program was:" >&5
2946 sed 's/^/| /' conftest.
$ac_ext >&5
2951 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2952 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2955 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2956 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2957 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2958 ac_test_CFLAGS
=${CFLAGS+set}
2959 ac_save_CFLAGS
=$CFLAGS
2960 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2961 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2962 if test "${ac_cv_prog_cc_g+set}" = set; then
2963 echo $ECHO_N "(cached) $ECHO_C" >&6
2965 ac_save_c_werror_flag
=$ac_c_werror_flag
2966 ac_c_werror_flag
=yes
2969 cat >conftest.
$ac_ext <<_ACEOF
2972 cat confdefs.h
>>conftest.
$ac_ext
2973 cat >>conftest.
$ac_ext <<_ACEOF
2974 /* end confdefs.h. */
2984 rm -f conftest.
$ac_objext
2985 if { (ac_try
="$ac_compile"
2987 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2988 *) ac_try_echo=$ac_try;;
2990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2991 (eval "$ac_compile") 2>conftest.er1
2993 grep -v '^ *+' conftest.er1 >conftest.err
2995 cat conftest.err >&5
2996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997 (exit $ac_status); } && {
2998 test -z "$ac_c_werror_flag" ||
2999 test ! -s conftest.err
3000 } && test -s conftest.$ac_objext; then
3003 echo "$as_me: failed program was:" >&5
3004 sed 's/^/| /' conftest.$ac_ext >&5
3007 cat >conftest.$ac_ext <<_ACEOF
3010 cat confdefs.h >>conftest.$ac_ext
3011 cat >>conftest.$ac_ext <<_ACEOF
3012 /* end confdefs.h. */
3022 rm -f conftest.$ac_objext
3023 if { (ac_try="$ac_compile"
3025 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3026 *) ac_try_echo
=$ac_try;;
3028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3029 (eval "$ac_compile") 2>conftest.er1
3031 grep -v '^ *+' conftest.er1
>conftest.err
3033 cat conftest.err
>&5
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); } && {
3036 test -z "$ac_c_werror_flag" ||
3037 test ! -s conftest.err
3038 } && test -s conftest.
$ac_objext; then
3041 echo "$as_me: failed program was:" >&5
3042 sed 's/^/| /' conftest.
$ac_ext >&5
3044 ac_c_werror_flag
=$ac_save_c_werror_flag
3046 cat >conftest.
$ac_ext <<_ACEOF
3049 cat confdefs.h
>>conftest.
$ac_ext
3050 cat >>conftest.
$ac_ext <<_ACEOF
3051 /* end confdefs.h. */
3061 rm -f conftest.
$ac_objext
3062 if { (ac_try
="$ac_compile"
3064 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3065 *) ac_try_echo=$ac_try;;
3067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3068 (eval "$ac_compile") 2>conftest.er1
3070 grep -v '^ *+' conftest.er1 >conftest.err
3072 cat conftest.err >&5
3073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074 (exit $ac_status); } && {
3075 test -z "$ac_c_werror_flag" ||
3076 test ! -s conftest.err
3077 } && test -s conftest.$ac_objext; then
3080 echo "$as_me: failed program was:" >&5
3081 sed 's/^/| /' conftest.$ac_ext >&5
3086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3093 ac_c_werror_flag=$ac_save_c_werror_flag
3095 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3096 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3097 if test "$ac_test_CFLAGS" = set; then
3098 CFLAGS=$ac_save_CFLAGS
3099 elif test $ac_cv_prog_cc_g = yes; then
3100 if test "$GCC" = yes; then
3106 if test "$GCC" = yes; then
3112 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3113 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3114 if test "${ac_cv_prog_cc_c89+set}" = set; then
3115 echo $ECHO_N "(cached) $ECHO_C" >&6
3117 ac_cv_prog_cc_c89=no
3119 cat >conftest.$ac_ext <<_ACEOF
3122 cat confdefs.h >>conftest.$ac_ext
3123 cat >>conftest.$ac_ext <<_ACEOF
3124 /* end confdefs.h. */
3127 #include <sys/types.h>
3128 #include <sys/stat.h>
3129 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3130 struct buf { int x; };
3131 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3132 static char *e (p, i)
3138 static char *f (char * (*g) (char **, int), char **p, ...)
3143 s = g (p, va_arg (v,int));
3148 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3149 function prototypes and stuff, but not '\xHH' hex character constants.
3150 These don't provoke an error unfortunately, instead are silently treated
3151 as 'x'. The following induces an error, until -std is added to get
3152 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3153 array size at least. It's necessary to write '\x00'==0 to get something
3154 that's true only with -std. */
3155 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3157 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3158 inside strings and character constants. */
3160 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3162 int test (int i, double x);
3163 struct s1 {int (*f) (int a);};
3164 struct s2 {int (*f) (double a);};
3165 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3171 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3176 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3177 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3179 CC="$ac_save_CC $ac_arg"
3180 rm -f conftest.$ac_objext
3181 if { (ac_try="$ac_compile"
3183 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3184 *) ac_try_echo
=$ac_try;;
3186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187 (eval "$ac_compile") 2>conftest.er1
3189 grep -v '^ *+' conftest.er1
>conftest.err
3191 cat conftest.err
>&5
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); } && {
3194 test -z "$ac_c_werror_flag" ||
3195 test ! -s conftest.err
3196 } && test -s conftest.
$ac_objext; then
3197 ac_cv_prog_cc_c89
=$ac_arg
3199 echo "$as_me: failed program was:" >&5
3200 sed 's/^/| /' conftest.
$ac_ext >&5
3205 rm -f core conftest.err conftest.
$ac_objext
3206 test "x$ac_cv_prog_cc_c89" != "xno" && break
3208 rm -f conftest.
$ac_ext
3213 case "x$ac_cv_prog_cc_c89" in
3215 { echo "$as_me:$LINENO: result: none needed" >&5
3216 echo "${ECHO_T}none needed" >&6; } ;;
3218 { echo "$as_me:$LINENO: result: unsupported" >&5
3219 echo "${ECHO_T}unsupported" >&6; } ;;
3221 CC
="$CC $ac_cv_prog_cc_c89"
3222 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3223 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3228 ac_cpp
='$CPP $CPPFLAGS'
3229 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3230 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3231 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3236 { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
3237 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; }
3239 # Check whether --with-cxx_main was given.
3240 if test "${with_cxx_main+set}" = set; then
3241 withval
=$with_cxx_main;
3244 no
) with_cxx_main
=no
3246 yes) with_cxx_main
=yes
3248 *) with_cxx_main
=yes
3262 { echo "$as_me:$LINENO: result: $with_cxx_main" >&5
3263 echo "${ECHO_T}$with_cxx_main" >&6; }
3269 gcc
) # Extract the first word of "g++", so it can be a program name with args.
3270 set dummy g
++; ac_word
=$2
3271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3273 if test "${ac_cv_path_CXX+set}" = set; then
3274 echo $ECHO_N "(cached) $ECHO_C" >&6
3278 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
3281 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3282 for as_dir
in notfound
3285 test -z "$as_dir" && as_dir
=.
3286 for ac_exec_ext
in '' $ac_executable_extensions; do
3287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3288 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
3289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3296 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="g++"
3301 if test -n "$CXX"; then
3302 { echo "$as_me:$LINENO: result: $CXX" >&5
3303 echo "${ECHO_T}$CXX" >&6; }
3305 { echo "$as_me:$LINENO: result: no" >&5
3306 echo "${ECHO_T}no" >&6; }
3310 cc
) # Extract the first word of "c++", so it can be a program name with args.
3311 set dummy c
++; ac_word
=$2
3312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3314 if test "${ac_cv_path_CXX+set}" = set; then
3315 echo $ECHO_N "(cached) $ECHO_C" >&6
3319 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
3322 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3323 for as_dir
in notfound
3326 test -z "$as_dir" && as_dir
=.
3327 for ac_exec_ext
in '' $ac_executable_extensions; do
3328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3329 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
3330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3337 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="c++"
3342 if test -n "$CXX"; then
3343 { echo "$as_me:$LINENO: result: $CXX" >&5
3344 echo "${ECHO_T}$CXX" >&6; }
3346 { echo "$as_me:$LINENO: result: no" >&5
3347 echo "${ECHO_T}no" >&6; }
3352 if test "$CXX" = "notfound"
3359 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
3361 # Extract the first word of "$ac_prog", so it can be a program name with args.
3362 set dummy
$ac_prog; ac_word
=$2
3363 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3365 if test "${ac_cv_prog_CXX+set}" = set; then
3366 echo $ECHO_N "(cached) $ECHO_C" >&6
3368 if test -n "$CXX"; then
3369 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
3371 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3375 test -z "$as_dir" && as_dir
=.
3376 for ac_exec_ext
in '' $ac_executable_extensions; do
3377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3378 ac_cv_prog_CXX
="$ac_prog"
3379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3389 if test -n "$CXX"; then
3390 { echo "$as_me:$LINENO: result: $CXX" >&5
3391 echo "${ECHO_T}$CXX" >&6; }
3393 { echo "$as_me:$LINENO: result: no" >&5
3394 echo "${ECHO_T}no" >&6; }
3398 test -n "$CXX" && break
3400 test -n "$CXX" || CXX
="notfound"
3402 if test "$CXX" = "notfound"
3407 if test "$preset_cxx" != "$CXX"
3409 { echo "$as_me:$LINENO: WARNING:
3411 By default, distutils will build C++ extension modules with \"$CXX\".
3412 If this is not intended, then set CXX on the configure command line.
3414 echo "$as_me: WARNING:
3416 By default, distutils will build C++ extension modules with \"$CXX\".
3417 If this is not intended, then set CXX on the configure command line.
3422 # checks for UNIX variants that set C preprocessor variables
3425 ac_cpp
='$CPP $CPPFLAGS'
3426 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3427 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3428 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3429 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3430 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3431 # On Suns, sometimes $CPP names a directory.
3432 if test -n "$CPP" && test -d "$CPP"; then
3435 if test -z "$CPP"; then
3436 if test "${ac_cv_prog_CPP+set}" = set; then
3437 echo $ECHO_N "(cached) $ECHO_C" >&6
3439 # Double quotes because CPP needs to be expanded
3440 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3443 for ac_c_preproc_warn_flag
in '' yes
3445 # Use a header file that comes with gcc, so configuring glibc
3446 # with a fresh cross-compiler works.
3447 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3448 # <limits.h> exists even on freestanding compilers.
3449 # On the NeXT, cc -E runs the code through the compiler's parser,
3450 # not just through cpp. "Syntax error" is here to catch this case.
3451 cat >conftest.
$ac_ext <<_ACEOF
3454 cat confdefs.h
>>conftest.
$ac_ext
3455 cat >>conftest.
$ac_ext <<_ACEOF
3456 /* end confdefs.h. */
3458 # include <limits.h>
3460 # include <assert.h>
3464 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3466 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3467 *) ac_try_echo=$ac_try;;
3469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3470 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3472 grep -v '^ *+' conftest.er1 >conftest.err
3474 cat conftest.err >&5
3475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476 (exit $ac_status); } >/dev/null && {
3477 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3478 test ! -s conftest.err
3482 echo "$as_me: failed program was:" >&5
3483 sed 's/^/| /' conftest.$ac_ext >&5
3485 # Broken: fails on valid input.
3489 rm -f conftest.err conftest.$ac_ext
3491 # OK, works on sane cases. Now check whether nonexistent headers
3492 # can be detected and how.
3493 cat >conftest.$ac_ext <<_ACEOF
3496 cat confdefs.h >>conftest.$ac_ext
3497 cat >>conftest.$ac_ext <<_ACEOF
3498 /* end confdefs.h. */
3499 #include <ac_nonexistent.h>
3501 if { (ac_try="$ac_cpp conftest.$ac_ext"
3503 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3504 *) ac_try_echo
=$ac_try;;
3506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3507 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3509 grep -v '^ *+' conftest.er1
>conftest.err
3511 cat conftest.err
>&5
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); } >/dev
/null
&& {
3514 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3515 test ! -s conftest.err
3517 # Broken: success on invalid input.
3520 echo "$as_me: failed program was:" >&5
3521 sed 's/^/| /' conftest.
$ac_ext >&5
3523 # Passes both tests.
3528 rm -f conftest.err conftest.
$ac_ext
3531 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3532 rm -f conftest.err conftest.
$ac_ext
3533 if $ac_preproc_ok; then
3545 { echo "$as_me:$LINENO: result: $CPP" >&5
3546 echo "${ECHO_T}$CPP" >&6; }
3548 for ac_c_preproc_warn_flag
in '' yes
3550 # Use a header file that comes with gcc, so configuring glibc
3551 # with a fresh cross-compiler works.
3552 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3553 # <limits.h> exists even on freestanding compilers.
3554 # On the NeXT, cc -E runs the code through the compiler's parser,
3555 # not just through cpp. "Syntax error" is here to catch this case.
3556 cat >conftest.
$ac_ext <<_ACEOF
3559 cat confdefs.h
>>conftest.
$ac_ext
3560 cat >>conftest.
$ac_ext <<_ACEOF
3561 /* end confdefs.h. */
3563 # include <limits.h>
3565 # include <assert.h>
3569 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3571 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3572 *) ac_try_echo=$ac_try;;
3574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3575 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3577 grep -v '^ *+' conftest.er1 >conftest.err
3579 cat conftest.err >&5
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); } >/dev/null && {
3582 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3583 test ! -s conftest.err
3587 echo "$as_me: failed program was:" >&5
3588 sed 's/^/| /' conftest.$ac_ext >&5
3590 # Broken: fails on valid input.
3594 rm -f conftest.err conftest.$ac_ext
3596 # OK, works on sane cases. Now check whether nonexistent headers
3597 # can be detected and how.
3598 cat >conftest.$ac_ext <<_ACEOF
3601 cat confdefs.h >>conftest.$ac_ext
3602 cat >>conftest.$ac_ext <<_ACEOF
3603 /* end confdefs.h. */
3604 #include <ac_nonexistent.h>
3606 if { (ac_try="$ac_cpp conftest.$ac_ext"
3608 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3609 *) ac_try_echo
=$ac_try;;
3611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3612 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3614 grep -v '^ *+' conftest.er1
>conftest.err
3616 cat conftest.err
>&5
3617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618 (exit $ac_status); } >/dev
/null
&& {
3619 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3620 test ! -s conftest.err
3622 # Broken: success on invalid input.
3625 echo "$as_me: failed program was:" >&5
3626 sed 's/^/| /' conftest.
$ac_ext >&5
3628 # Passes both tests.
3633 rm -f conftest.err conftest.
$ac_ext
3636 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3637 rm -f conftest.err conftest.
$ac_ext
3638 if $ac_preproc_ok; then
3641 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3642 See \`config.log' for more details." >&5
3643 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3644 See \`config.log' for more details." >&2;}
3645 { (exit 1); exit 1; }; }
3649 ac_cpp
='$CPP $CPPFLAGS'
3650 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3651 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3652 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3655 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3656 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3657 if test "${ac_cv_path_GREP+set}" = set; then
3658 echo $ECHO_N "(cached) $ECHO_C" >&6
3660 # Extract the first word of "grep ggrep" to use in msg output
3661 if test -z "$GREP"; then
3662 set dummy
grep ggrep
; ac_prog_name
=$2
3663 if test "${ac_cv_path_GREP+set}" = set; then
3664 echo $ECHO_N "(cached) $ECHO_C" >&6
3666 ac_path_GREP_found
=false
3667 # Loop through the user's path and test for each of PROGNAME-LIST
3668 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3669 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3672 test -z "$as_dir" && as_dir
=.
3673 for ac_prog
in grep ggrep
; do
3674 for ac_exec_ext
in '' $ac_executable_extensions; do
3675 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3676 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3677 # Check for GNU ac_path_GREP and select it if it is found.
3678 # Check for GNU $ac_path_GREP
3679 case `"$ac_path_GREP" --version 2>&1` in
3681 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3684 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3687 cat "conftest.in" "conftest.in" >"conftest.tmp"
3688 mv "conftest.tmp" "conftest.in"
3689 cp "conftest.in" "conftest.nl"
3690 echo 'GREP' >> "conftest.nl"
3691 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3692 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3693 ac_count
=`expr $ac_count + 1`
3694 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3695 # Best one so far, save it but keep looking for a better one
3696 ac_cv_path_GREP
="$ac_path_GREP"
3697 ac_path_GREP_max
=$ac_count
3699 # 10*(2^10) chars as input seems more than enough
3700 test $ac_count -gt 10 && break
3702 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3706 $ac_path_GREP_found && break 3
3716 GREP
="$ac_cv_path_GREP"
3717 if test -z "$GREP"; then
3718 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3719 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3720 { (exit 1); exit 1; }; }
3724 ac_cv_path_GREP
=$GREP
3729 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3730 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3731 GREP
="$ac_cv_path_GREP"
3734 { echo "$as_me:$LINENO: checking for egrep" >&5
3735 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3736 if test "${ac_cv_path_EGREP+set}" = set; then
3737 echo $ECHO_N "(cached) $ECHO_C" >&6
3739 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3740 then ac_cv_path_EGREP
="$GREP -E"
3742 # Extract the first word of "egrep" to use in msg output
3743 if test -z "$EGREP"; then
3744 set dummy
egrep; ac_prog_name
=$2
3745 if test "${ac_cv_path_EGREP+set}" = set; then
3746 echo $ECHO_N "(cached) $ECHO_C" >&6
3748 ac_path_EGREP_found
=false
3749 # Loop through the user's path and test for each of PROGNAME-LIST
3750 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3751 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3754 test -z "$as_dir" && as_dir
=.
3755 for ac_prog
in egrep; do
3756 for ac_exec_ext
in '' $ac_executable_extensions; do
3757 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3758 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3759 # Check for GNU ac_path_EGREP and select it if it is found.
3760 # Check for GNU $ac_path_EGREP
3761 case `"$ac_path_EGREP" --version 2>&1` in
3763 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3766 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3769 cat "conftest.in" "conftest.in" >"conftest.tmp"
3770 mv "conftest.tmp" "conftest.in"
3771 cp "conftest.in" "conftest.nl"
3772 echo 'EGREP' >> "conftest.nl"
3773 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3774 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3775 ac_count
=`expr $ac_count + 1`
3776 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3777 # Best one so far, save it but keep looking for a better one
3778 ac_cv_path_EGREP
="$ac_path_EGREP"
3779 ac_path_EGREP_max
=$ac_count
3781 # 10*(2^10) chars as input seems more than enough
3782 test $ac_count -gt 10 && break
3784 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3788 $ac_path_EGREP_found && break 3
3798 EGREP
="$ac_cv_path_EGREP"
3799 if test -z "$EGREP"; then
3800 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3801 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3802 { (exit 1); exit 1; }; }
3806 ac_cv_path_EGREP
=$EGREP
3812 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3813 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3814 EGREP
="$ac_cv_path_EGREP"
3818 { echo "$as_me:$LINENO: checking for AIX" >&5
3819 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3820 cat >conftest.
$ac_ext <<_ACEOF
3823 cat confdefs.h
>>conftest.
$ac_ext
3824 cat >>conftest.
$ac_ext <<_ACEOF
3825 /* end confdefs.h. */
3831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3832 $EGREP "yes" >/dev
/null
2>&1; then
3833 { echo "$as_me:$LINENO: result: yes" >&5
3834 echo "${ECHO_T}yes" >&6; }
3835 cat >>confdefs.h
<<\_ACEOF
3836 #define _ALL_SOURCE 1
3840 { echo "$as_me:$LINENO: result: no" >&5
3841 echo "${ECHO_T}no" >&6; }
3847 # Check for unsupported systems
3848 case $ac_sys_system/$ac_sys_release in
3850 echo This system \
($ac_sys_system/$ac_sys_release\
) is no longer supported.
3851 echo See README
for details.
3856 { echo "$as_me:$LINENO: checking for --with-suffix" >&5
3857 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; }
3859 # Check whether --with-suffix was given.
3860 if test "${with_suffix+set}" = set; then
3861 withval
=$with_suffix;
3865 *) EXEEXT
=$withval;;
3869 { echo "$as_me:$LINENO: result: $EXEEXT" >&5
3870 echo "${ECHO_T}$EXEEXT" >&6; }
3872 # Test whether we're running on a non-case-sensitive system, in which
3873 # case we give a warning if no ext is given
3875 { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3876 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; }
3877 if test ! -d CaseSensitiveTestDir
; then
3878 mkdir CaseSensitiveTestDir
3881 if test -d casesensitivetestdir
3883 { echo "$as_me:$LINENO: result: yes" >&5
3884 echo "${ECHO_T}yes" >&6; }
3887 { echo "$as_me:$LINENO: result: no" >&5
3888 echo "${ECHO_T}no" >&6; }
3891 rmdir CaseSensitiveTestDir
3896 gcc
) CC
="$CC -D_HAVE_BSDI";;
3900 case $ac_sys_system in
3903 cc|
*/cc
) CC
="$CC -Ae";;
3907 cc
) CC
="$CC -Wl,-Bexport";;
3910 # Some functions have a prototype only with that define, e.g. confstr
3912 cat >>confdefs.h
<<\_ACEOF
3913 #define __EXTENSIONS__ 1
3921 { echo "$as_me:$LINENO: checking LIBRARY" >&5
3922 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; }
3923 if test -z "$LIBRARY"
3925 LIBRARY
='libpython$(VERSION).a'
3927 { echo "$as_me:$LINENO: result: $LIBRARY" >&5
3928 echo "${ECHO_T}$LIBRARY" >&6; }
3930 # LDLIBRARY is the name of the library to link against (as opposed to the
3931 # name of the library into which to insert object files). BLDLIBRARY is also
3932 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3933 # is blank as the main program is not linked directly against LDLIBRARY.
3934 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3935 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3936 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3937 # DLLLIBRARY is the shared (i.e., DLL) library.
3939 # RUNSHARED is used to run shared python without installed libraries
3941 # INSTSONAME is the name of the shared library that will be use to install
3942 # on the system - some systems like version suffix, others don't
3949 LDLIBRARY
="$LIBRARY"
3950 BLDLIBRARY
='$(LDLIBRARY)'
3951 INSTSONAME
='$(LDLIBRARY)'
3956 # LINKCC is the command that links the python executable -- default is $(CC).
3957 # If CXX is set, and if it is needed to link a main function that was
3958 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3959 # python might then depend on the C++ runtime
3960 # This is altered for AIX in order to build the export list before
3963 { echo "$as_me:$LINENO: checking LINKCC" >&5
3964 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; }
3965 if test -z "$LINKCC"
3967 LINKCC
='$(PURIFY) $(MAINCC)'
3968 case $ac_sys_system in
3971 if test $ac_sys_release -ge 5 -o \
3972 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3975 LINKCC
="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3977 LINKCC
="$LINKCC -L/usr/lib/ia64l64";;
3979 # qcc must be used because the other compilers do not
3984 { echo "$as_me:$LINENO: result: $LINKCC" >&5
3985 echo "${ECHO_T}$LINKCC" >&6; }
3987 { echo "$as_me:$LINENO: checking for --enable-shared" >&5
3988 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; }
3989 # Check whether --enable-shared was given.
3990 if test "${enable_shared+set}" = set; then
3991 enableval
=$enable_shared;
3995 if test -z "$enable_shared"
3997 case $ac_sys_system in
3999 enable_shared
="yes";;
4001 enable_shared
="no";;
4004 { echo "$as_me:$LINENO: result: $enable_shared" >&5
4005 echo "${ECHO_T}$enable_shared" >&6; }
4007 { echo "$as_me:$LINENO: checking for --enable-profiling" >&5
4008 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; }
4009 # Check whether --enable-profiling was given.
4010 if test "${enable_profiling+set}" = set; then
4011 enableval
=$enable_profiling; ac_save_cc
="$CC"
4013 if test "$cross_compiling" = yes; then
4014 ac_enable_profiling
="no"
4016 cat >conftest.
$ac_ext <<_ACEOF
4019 cat confdefs.h
>>conftest.
$ac_ext
4020 cat >>conftest.
$ac_ext <<_ACEOF
4021 /* end confdefs.h. */
4022 int main() { return 0; }
4024 rm -f conftest
$ac_exeext
4025 if { (ac_try
="$ac_link"
4027 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4028 *) ac_try_echo=$ac_try;;
4030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4031 (eval "$ac_link") 2>&5
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4035 { (case "(($ac_try" in
4036 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4037 *) ac_try_echo
=$ac_try;;
4039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4040 (eval "$ac_try") 2>&5
4042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043 (exit $ac_status); }; }; then
4044 ac_enable_profiling
="yes"
4046 echo "$as_me: program exited with status $ac_status" >&5
4047 echo "$as_me: failed program was:" >&5
4048 sed 's/^/| /' conftest.
$ac_ext >&5
4051 ac_enable_profiling
="no"
4053 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4060 { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
4061 echo "${ECHO_T}$ac_enable_profiling" >&6; }
4063 case "$ac_enable_profiling" in
4065 BASECFLAGS
="-pg $BASECFLAGS"
4066 LDFLAGS
="-pg $LDFLAGS"
4070 { echo "$as_me:$LINENO: checking LDLIBRARY" >&5
4071 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; }
4073 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
4074 # library that we build, but we do not want to link against it (we
4075 # will find it with a -framework option). For this reason there is an
4076 # extra variable BLDLIBRARY against which Python and the extension
4077 # modules are linked, BLDLIBRARY. This is normally the same as
4078 # LDLIBRARY, but empty for MacOSX framework builds.
4079 if test "$enable_framework"
4081 LDLIBRARY
='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
4082 RUNSHARED
=DYLD_FRAMEWORK_PATH
="`pwd`:$DYLD_FRAMEWORK_PATH"
4085 BLDLIBRARY
='$(LDLIBRARY)'
4088 # Other platforms follow
4089 if test $enable_shared = "yes"; then
4091 cat >>confdefs.h
<<\_ACEOF
4092 #define Py_ENABLE_SHARED 1
4095 case $ac_sys_system in
4097 LDLIBRARY
='libpython$(VERSION).so'
4100 LDLIBRARY
='libpython$(VERSION).dll.a'
4101 DLLLIBRARY
='libpython$(VERSION).dll'
4104 LDLIBRARY
='libpython$(VERSION).so'
4105 BLDLIBRARY
='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
4106 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4107 INSTSONAME
="$LDLIBRARY".
$SOVERSION
4109 Linux
*|GNU
*|NetBSD
*|FreeBSD
*|DragonFly
*)
4110 LDLIBRARY
='libpython$(VERSION).so'
4111 BLDLIBRARY
='-L. -lpython$(VERSION)'
4112 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4113 case $ac_sys_system in
4115 SOVERSION
=`echo $SOVERSION|cut -d "." -f 1`
4118 INSTSONAME
="$LDLIBRARY".
$SOVERSION
4123 LDLIBRARY
='libpython$(VERSION).so'
4126 LDLIBRARY
='libpython$(VERSION).sl'
4129 BLDLIBRARY
='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
4130 RUNSHARED
=SHLIB_PATH
=`pwd`:${SHLIB_PATH}
4133 LDLIBRARY
='libpython$(VERSION).so'
4134 BLDLIBRARY
='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
4135 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4138 LDLIBRARY
='libpython$(VERSION).so'
4139 BLDLIBRARY
='-L. -lpython$(VERSION)'
4140 RUNSHARED
=DLL_PATH
=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
4143 LDLIBRARY
='libpython$(VERSION).dylib'
4144 BLDLIBRARY
='-L. -lpython$(VERSION)'
4145 RUNSHARED
='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}'
4149 else # shared is disabled
4150 case $ac_sys_system in
4152 BLDLIBRARY
='$(LIBRARY)'
4153 LDLIBRARY
='libpython$(VERSION).dll.a'
4158 { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
4159 echo "${ECHO_T}$LDLIBRARY" >&6; }
4161 if test -n "$ac_tool_prefix"; then
4162 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4163 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4166 if test "${ac_cv_prog_RANLIB+set}" = set; then
4167 echo $ECHO_N "(cached) $ECHO_C" >&6
4169 if test -n "$RANLIB"; then
4170 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4172 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4176 test -z "$as_dir" && as_dir
=.
4177 for ac_exec_ext
in '' $ac_executable_extensions; do
4178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4179 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4189 RANLIB
=$ac_cv_prog_RANLIB
4190 if test -n "$RANLIB"; then
4191 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4192 echo "${ECHO_T}$RANLIB" >&6; }
4194 { echo "$as_me:$LINENO: result: no" >&5
4195 echo "${ECHO_T}no" >&6; }
4200 if test -z "$ac_cv_prog_RANLIB"; then
4201 ac_ct_RANLIB
=$RANLIB
4202 # Extract the first word of "ranlib", so it can be a program name with args.
4203 set dummy ranlib
; ac_word
=$2
4204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4206 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4207 echo $ECHO_N "(cached) $ECHO_C" >&6
4209 if test -n "$ac_ct_RANLIB"; then
4210 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4212 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4216 test -z "$as_dir" && as_dir
=.
4217 for ac_exec_ext
in '' $ac_executable_extensions; do
4218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4219 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4229 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4230 if test -n "$ac_ct_RANLIB"; then
4231 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4232 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4234 { echo "$as_me:$LINENO: result: no" >&5
4235 echo "${ECHO_T}no" >&6; }
4238 if test "x$ac_ct_RANLIB" = x
; then
4241 case $cross_compiling:$ac_tool_warned in
4243 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4244 whose name does not start with the host triplet. If you think this
4245 configuration is useful to you, please write to autoconf@gnu.org." >&5
4246 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4247 whose name does not start with the host triplet. If you think this
4248 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4249 ac_tool_warned
=yes ;;
4251 RANLIB
=$ac_ct_RANLIB
4254 RANLIB
="$ac_cv_prog_RANLIB"
4258 for ac_prog
in ar aal
4260 # Extract the first word of "$ac_prog", so it can be a program name with args.
4261 set dummy
$ac_prog; ac_word
=$2
4262 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4264 if test "${ac_cv_prog_AR+set}" = set; then
4265 echo $ECHO_N "(cached) $ECHO_C" >&6
4267 if test -n "$AR"; then
4268 ac_cv_prog_AR
="$AR" # Let the user override the test.
4270 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4274 test -z "$as_dir" && as_dir
=.
4275 for ac_exec_ext
in '' $ac_executable_extensions; do
4276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4277 ac_cv_prog_AR
="$ac_prog"
4278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4288 if test -n "$AR"; then
4289 { echo "$as_me:$LINENO: result: $AR" >&5
4290 echo "${ECHO_T}$AR" >&6; }
4292 { echo "$as_me:$LINENO: result: no" >&5
4293 echo "${ECHO_T}no" >&6; }
4297 test -n "$AR" && break
4299 test -n "$AR" || AR
="ar"
4303 # Extract the first word of "svnversion", so it can be a program name with args.
4304 set dummy svnversion
; ac_word
=$2
4305 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4307 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
4308 echo $ECHO_N "(cached) $ECHO_C" >&6
4310 if test -n "$SVNVERSION"; then
4311 ac_cv_prog_SVNVERSION
="$SVNVERSION" # Let the user override the test.
4313 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4317 test -z "$as_dir" && as_dir
=.
4318 for ac_exec_ext
in '' $ac_executable_extensions; do
4319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4320 ac_cv_prog_SVNVERSION
="found"
4321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4328 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION
="not-found"
4331 SVNVERSION
=$ac_cv_prog_SVNVERSION
4332 if test -n "$SVNVERSION"; then
4333 { echo "$as_me:$LINENO: result: $SVNVERSION" >&5
4334 echo "${ECHO_T}$SVNVERSION" >&6; }
4336 { echo "$as_me:$LINENO: result: no" >&5
4337 echo "${ECHO_T}no" >&6; }
4341 if test $SVNVERSION = found
4343 SVNVERSION
="svnversion \$(srcdir)"
4345 SVNVERSION
="echo exported"
4350 # install -d does not work on BSDI or HP-UX
4351 if test -z "$INSTALL"
4353 INSTALL
="${srcdir}/install-sh -c"
4357 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4358 if test -f "$ac_dir/install-sh"; then
4360 ac_install_sh
="$ac_aux_dir/install-sh -c"
4362 elif test -f "$ac_dir/install.sh"; then
4364 ac_install_sh
="$ac_aux_dir/install.sh -c"
4366 elif test -f "$ac_dir/shtool"; then
4368 ac_install_sh
="$ac_aux_dir/shtool install -c"
4372 if test -z "$ac_aux_dir"; then
4373 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4374 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4375 { (exit 1); exit 1; }; }
4378 # These three variables are undocumented and unsupported,
4379 # and are intended to be withdrawn in a future Autoconf release.
4380 # They can cause serious problems if a builder's source tree is in a directory
4381 # whose full name contains unusual characters.
4382 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4383 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4384 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4387 # Find a good install program. We prefer a C program (faster),
4388 # so one script is as good as another. But avoid the broken or
4389 # incompatible versions:
4390 # SysV /etc/install, /usr/sbin/install
4391 # SunOS /usr/etc/install
4392 # IRIX /sbin/install
4394 # AmigaOS /C/install, which installs bootblocks on floppy discs
4395 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4396 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4397 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4398 # OS/2's system install, which has a completely different semantic
4399 # ./install, which can be erroneously created by make from ./install.sh.
4400 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4401 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4402 if test -z "$INSTALL"; then
4403 if test "${ac_cv_path_install+set}" = set; then
4404 echo $ECHO_N "(cached) $ECHO_C" >&6
4406 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4410 test -z "$as_dir" && as_dir
=.
4411 # Account for people who put trailing slashes in PATH elements.
4413 .
/ | .
// |
/cC
/* | \
4414 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4415 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4418 # OSF1 and SCO ODT 3.0 have their own names for install.
4419 # Don't use installbsd from OSF since it installs stuff as root
4421 for ac_prog
in ginstall scoinst
install; do
4422 for ac_exec_ext
in '' $ac_executable_extensions; do
4423 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4424 if test $ac_prog = install &&
4425 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4426 # AIX install. It has an incompatible calling convention.
4428 elif test $ac_prog = install &&
4429 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4430 # program-specific install script used by HP pwplus--don't use.
4433 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4446 if test "${ac_cv_path_install+set}" = set; then
4447 INSTALL
=$ac_cv_path_install
4449 # As a last resort, use the slow shell script. Don't cache a
4450 # value for INSTALL within a source directory, because that will
4451 # break other packages using the cache if that directory is
4452 # removed, or if the value is a relative name.
4453 INSTALL
=$ac_install_sh
4456 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4457 echo "${ECHO_T}$INSTALL" >&6; }
4459 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4460 # It thinks the first close brace ends the variable substitution.
4461 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4463 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4465 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4468 # Not every filesystem supports hard links
4470 if test -z "$LN" ; then
4471 case $ac_sys_system in
4473 CYGWIN
*) LN
="ln -s";;
4474 atheos
*) LN
="ln -s";;
4479 # Check for --with-pydebug
4480 { echo "$as_me:$LINENO: checking for --with-pydebug" >&5
4481 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; }
4483 # Check whether --with-pydebug was given.
4484 if test "${with_pydebug+set}" = set; then
4485 withval
=$with_pydebug;
4486 if test "$withval" != no
4489 cat >>confdefs.h
<<\_ACEOF
4493 { echo "$as_me:$LINENO: result: yes" >&5
4494 echo "${ECHO_T}yes" >&6; };
4496 else { echo "$as_me:$LINENO: result: no" >&5
4497 echo "${ECHO_T}no" >&6; }; Py_DEBUG
='false'
4500 { echo "$as_me:$LINENO: result: no" >&5
4501 echo "${ECHO_T}no" >&6; }
4505 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
4506 # merged with this chunk of code?
4508 # Optimizer/debugger flags
4509 # ------------------------
4510 # (The following bit of code is complicated enough - please keep things
4511 # indented properly. Just pretend you're editing Python code. ;-)
4513 # There are two parallel sets of case statements below, one that checks to
4514 # see if OPT was set and one that does BASECFLAGS setting based upon
4515 # compiler and platform. BASECFLAGS tweaks need to be made even if the
4518 # tweak OPT based on compiler and platform, only if the user didn't set
4519 # it on the command line
4525 if test "$CC" != 'g++' ; then
4526 STRICT_PROTO
="-Wstrict-prototypes"
4528 # For gcc 4.x we need to use -fwrapv so lets check if its supported
4529 if "$CC" -v --help 2>/dev
/null |
grep -- -fwrapv > /dev
/null
; then
4532 case $ac_cv_prog_cc_g in
4534 if test "$Py_DEBUG" = 'true' ; then
4535 # Optimization messes up debuggers, so turn it off for
4537 OPT
="-g -Wall $STRICT_PROTO"
4539 OPT
="-g $WRAP -O3 -Wall $STRICT_PROTO"
4543 OPT
="-O3 -Wall $STRICT_PROTO"
4546 case $ac_sys_system in
4547 SCO_SV
*) OPT
="$OPT -m486 -DSCO5"
4557 # The current (beta) Monterey compiler dies with optimizations
4558 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
4559 case $ac_sys_system in
4569 # The -arch flags for universal builds on OSX
4570 UNIVERSAL_ARCH_FLAGS
=
4573 # tweak BASECFLAGS based on compiler and platform
4576 # Python violates C99 rules, by casting between incompatible
4577 # pointer types. GCC may generate bad code as a result of that,
4578 # so use -fno-strict-aliasing if supported.
4579 { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
4580 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; }
4582 CC
="$CC -fno-strict-aliasing"
4583 if test "$cross_compiling" = yes; then
4584 ac_cv_no_strict_aliasing_ok
=no
4586 cat >conftest.
$ac_ext <<_ACEOF
4589 cat confdefs.h
>>conftest.
$ac_ext
4590 cat >>conftest.
$ac_ext <<_ACEOF
4591 /* end confdefs.h. */
4592 int main() { return 0; }
4594 rm -f conftest
$ac_exeext
4595 if { (ac_try
="$ac_link"
4597 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4598 *) ac_try_echo=$ac_try;;
4600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4601 (eval "$ac_link") 2>&5
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4605 { (case "(($ac_try" in
4606 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4607 *) ac_try_echo
=$ac_try;;
4609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4610 (eval "$ac_try") 2>&5
4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); }; }; then
4614 ac_cv_no_strict_aliasing_ok
=yes
4616 echo "$as_me: program exited with status $ac_status" >&5
4617 echo "$as_me: failed program was:" >&5
4618 sed 's/^/| /' conftest.
$ac_ext >&5
4621 ac_cv_no_strict_aliasing_ok
=no
4623 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4628 { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
4629 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; }
4630 if test $ac_cv_no_strict_aliasing_ok = yes
4632 BASECFLAGS
="$BASECFLAGS -fno-strict-aliasing"
4635 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
4636 # support. Without this, treatment of subnormals doesn't follow
4638 case $ac_sys_machine in
4640 BASECFLAGS
="$BASECFLAGS -mieee"
4644 case $ac_sys_system in
4646 BASECFLAGS
="$BASECFLAGS -m486 -DSCO5"
4648 # is there any other compiler on Darwin besides gcc?
4650 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
4651 # used to be here, but non-Apple gcc doesn't accept them.
4654 if test "${enable_universalsdk}"; then
4655 UNIVERSAL_ARCH_FLAGS
=""
4656 if test "$UNIVERSAL_ARCHS" = "32-bit" ; then
4657 UNIVERSAL_ARCH_FLAGS
="-arch ppc -arch i386"
4660 elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then
4661 UNIVERSAL_ARCH_FLAGS
="-arch ppc64 -arch x86_64"
4663 elif test "$UNIVERSAL_ARCHS" = "all" ; then
4664 UNIVERSAL_ARCH_FLAGS
="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
4665 ARCH_RUN_32BIT
="arch -i386 -ppc"
4668 { { echo "$as_me:$LINENO: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&5
4669 echo "$as_me: error: proper usage is --with-universalarch=32-bit|64-bit|all" >&2;}
4670 { (exit 1); exit 1; }; }
4675 BASECFLAGS
="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
4676 tgt
=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4677 if test "${UNIVERSALSDK}" != "/" -a "${tgt}" '>' '10.4' ; then
4678 CFLAGS
="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
4682 # Calculate the right deployment target for this build.
4684 cur_target
=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4685 if test ${cur_target} '>' 10.2; then
4688 if test "${UNIVERSAL_ARCHS}" = "all"; then
4689 # Ensure that the default platform for a 4-way
4690 # universal build is OSX 10.5, that's the first
4691 # OS release where 4-way builds make sense.
4694 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
4696 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
4697 # environment with a value that is the same as what we'll use
4698 # in the Makefile to ensure that we'll get the same compiler
4699 # environment during configure and build time.
4700 MACOSX_DEPLOYMENT_TARGET
="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
4701 export MACOSX_DEPLOYMENT_TARGET
4702 EXPORT_MACOSX_DEPLOYMENT_TARGET
=''
4706 BASECFLAGS
="$BASECFLAGS -mieee"
4712 case $ac_sys_system in
4713 OpenUNIX
*|UnixWare
*)
4714 BASECFLAGS
="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
4717 BASECFLAGS
="$BASECFLAGS -ieee -std"
4720 BASECFLAGS
="$BASECFLAGS -belf -Ki486 -DSCO5"
4726 if test "$Py_DEBUG" = 'true'; then
4732 if test "$ac_arch_flags"
4734 BASECFLAGS
="$BASECFLAGS $ac_arch_flags"
4737 # disable check for icc since it seems to pass, but generates a warning
4740 ac_cv_opt_olimit_ok
=no
4743 { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
4744 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; }
4745 if test "${ac_cv_opt_olimit_ok+set}" = set; then
4746 echo $ECHO_N "(cached) $ECHO_C" >&6
4749 CC
="$CC -OPT:Olimit=0"
4750 if test "$cross_compiling" = yes; then
4751 ac_cv_opt_olimit_ok
=no
4753 cat >conftest.
$ac_ext <<_ACEOF
4756 cat confdefs.h
>>conftest.
$ac_ext
4757 cat >>conftest.
$ac_ext <<_ACEOF
4758 /* end confdefs.h. */
4759 int main() { return 0; }
4761 rm -f conftest
$ac_exeext
4762 if { (ac_try
="$ac_link"
4764 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4765 *) ac_try_echo=$ac_try;;
4767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4768 (eval "$ac_link") 2>&5
4770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4772 { (case "(($ac_try" in
4773 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4774 *) ac_try_echo
=$ac_try;;
4776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4777 (eval "$ac_try") 2>&5
4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780 (exit $ac_status); }; }; then
4781 ac_cv_opt_olimit_ok
=yes
4783 echo "$as_me: program exited with status $ac_status" >&5
4784 echo "$as_me: failed program was:" >&5
4785 sed 's/^/| /' conftest.
$ac_ext >&5
4788 ac_cv_opt_olimit_ok
=no
4790 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4797 { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
4798 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; }
4799 if test $ac_cv_opt_olimit_ok = yes; then
4800 case $ac_sys_system in
4801 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
4802 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
4807 BASECFLAGS
="$BASECFLAGS -OPT:Olimit=0"
4811 { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
4812 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; }
4813 if test "${ac_cv_olimit_ok+set}" = set; then
4814 echo $ECHO_N "(cached) $ECHO_C" >&6
4817 CC
="$CC -Olimit 1500"
4818 if test "$cross_compiling" = yes; then
4821 cat >conftest.
$ac_ext <<_ACEOF
4824 cat confdefs.h
>>conftest.
$ac_ext
4825 cat >>conftest.
$ac_ext <<_ACEOF
4826 /* end confdefs.h. */
4827 int main() { return 0; }
4829 rm -f conftest
$ac_exeext
4830 if { (ac_try
="$ac_link"
4832 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4833 *) ac_try_echo=$ac_try;;
4835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4836 (eval "$ac_link") 2>&5
4838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4840 { (case "(($ac_try" in
4841 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4842 *) ac_try_echo
=$ac_try;;
4844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4845 (eval "$ac_try") 2>&5
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); }; }; then
4851 echo "$as_me: program exited with status $ac_status" >&5
4852 echo "$as_me: failed program was:" >&5
4853 sed 's/^/| /' conftest.
$ac_ext >&5
4858 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4865 { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4866 echo "${ECHO_T}$ac_cv_olimit_ok" >&6; }
4867 if test $ac_cv_olimit_ok = yes; then
4868 BASECFLAGS
="$BASECFLAGS -Olimit 1500"
4872 # Check whether GCC supports PyArg_ParseTuple format
4873 if test "$GCC" = "yes"
4875 { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
4876 echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; }
4878 CFLAGS
="$CFLAGS -Werror"
4879 cat >conftest.
$ac_ext <<_ACEOF
4882 cat confdefs.h
>>conftest.
$ac_ext
4883 cat >>conftest.
$ac_ext <<_ACEOF
4884 /* end confdefs.h. */
4886 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
4896 rm -f conftest.
$ac_objext
4897 if { (ac_try
="$ac_compile"
4899 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4900 *) ac_try_echo=$ac_try;;
4902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4903 (eval "$ac_compile") 2>conftest.er1
4905 grep -v '^ *+' conftest.er1 >conftest.err
4907 cat conftest.err >&5
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); } && {
4910 test -z "$ac_c_werror_flag" ||
4911 test ! -s conftest.err
4912 } && test -s conftest.$ac_objext; then
4914 cat >>confdefs.h <<\_ACEOF
4915 #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
4918 { echo "$as_me:$LINENO: result: yes" >&5
4919 echo "${ECHO_T}yes" >&6; }
4921 echo "$as_me: failed program was:" >&5
4922 sed 's/^/| /' conftest.$ac_ext >&5
4924 { echo "$as_me:$LINENO: result: no" >&5
4925 echo "${ECHO_T}no" >&6; }
4929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4933 # On some compilers, pthreads are available without further options
4934 # (e.g. MacOS X). On some of these systems, the compiler will not
4935 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4936 # So we have to see first whether pthreads are available without
4937 # options before we can check whether -Kpthread improves anything.
4938 { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4939 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; }
4940 if test "${ac_cv_pthread_is_default+set}" = set; then
4941 echo $ECHO_N "(cached) $ECHO_C" >&6
4943 if test "$cross_compiling" = yes; then
4944 ac_cv_pthread_is_default=no
4946 cat >conftest.$ac_ext <<_ACEOF
4949 cat confdefs.h >>conftest.$ac_ext
4950 cat >>conftest.$ac_ext <<_ACEOF
4951 /* end confdefs.h. */
4953 #include <pthread.h>
4955 void* routine(void* p){return NULL;}
4959 if(pthread_create(&p,NULL,routine,NULL)!=0)
4961 (void)pthread_detach(p);
4966 rm -f conftest$ac_exeext
4967 if { (ac_try="$ac_link"
4969 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4970 *) ac_try_echo
=$ac_try;;
4972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4973 (eval "$ac_link") 2>&5
4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4977 { (case "(($ac_try" in
4978 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4979 *) ac_try_echo=$ac_try;;
4981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4982 (eval "$ac_try") 2>&5
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); }; }; then
4987 ac_cv_pthread_is_default=yes
4992 echo "$as_me: program exited with status $ac_status" >&5
4993 echo "$as_me: failed program was:" >&5
4994 sed 's/^/| /' conftest.$ac_ext >&5
4997 ac_cv_pthread_is_default=no
4999 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5006 { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
5007 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; }
5010 if test $ac_cv_pthread_is_default = yes
5014 # -Kpthread, if available, provides the right #defines
5015 # and linker options to make pthread_create available
5016 # Some compilers won't report that they do not support -Kpthread,
5017 # so we need to run a program to see whether it really made the
5018 # function available.
5019 { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
5020 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; }
5021 if test "${ac_cv_kpthread+set}" = set; then
5022 echo $ECHO_N "(cached) $ECHO_C" >&6
5026 if test "$cross_compiling" = yes; then
5029 cat >conftest.$ac_ext <<_ACEOF
5032 cat confdefs.h >>conftest.$ac_ext
5033 cat >>conftest.$ac_ext <<_ACEOF
5034 /* end confdefs.h. */
5036 #include <pthread.h>
5038 void* routine(void* p){return NULL;}
5042 if(pthread_create(&p,NULL,routine,NULL)!=0)
5044 (void)pthread_detach(p);
5049 rm -f conftest$ac_exeext
5050 if { (ac_try="$ac_link"
5052 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5053 *) ac_try_echo
=$ac_try;;
5055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5056 (eval "$ac_link") 2>&5
5058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5060 { (case "(($ac_try" in
5061 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5062 *) ac_try_echo=$ac_try;;
5064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5065 (eval "$ac_try") 2>&5
5067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068 (exit $ac_status); }; }; then
5071 echo "$as_me: program exited with status $ac_status" >&5
5072 echo "$as_me: failed program was:" >&5
5073 sed 's/^/| /' conftest.$ac_ext >&5
5078 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5085 { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
5086 echo "${ECHO_T}$ac_cv_kpthread" >&6; }
5089 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
5091 # -Kthread, if available, provides the right #defines
5092 # and linker options to make pthread_create available
5093 # Some compilers won't report that they do not support -Kthread,
5094 # so we need to run a program to see whether it really made the
5095 # function available.
5096 { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
5097 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; }
5098 if test "${ac_cv_kthread+set}" = set; then
5099 echo $ECHO_N "(cached) $ECHO_C" >&6
5103 if test "$cross_compiling" = yes; then
5106 cat >conftest.$ac_ext <<_ACEOF
5109 cat confdefs.h >>conftest.$ac_ext
5110 cat >>conftest.$ac_ext <<_ACEOF
5111 /* end confdefs.h. */
5113 #include <pthread.h>
5115 void* routine(void* p){return NULL;}
5119 if(pthread_create(&p,NULL,routine,NULL)!=0)
5121 (void)pthread_detach(p);
5126 rm -f conftest$ac_exeext
5127 if { (ac_try="$ac_link"
5129 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5130 *) ac_try_echo
=$ac_try;;
5132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5133 (eval "$ac_link") 2>&5
5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5137 { (case "(($ac_try" in
5138 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5139 *) ac_try_echo=$ac_try;;
5141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5142 (eval "$ac_try") 2>&5
5144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145 (exit $ac_status); }; }; then
5148 echo "$as_me: program exited with status $ac_status" >&5
5149 echo "$as_me: failed program was:" >&5
5150 sed 's/^/| /' conftest.$ac_ext >&5
5155 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5162 { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
5163 echo "${ECHO_T}$ac_cv_kthread" >&6; }
5166 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
5168 # -pthread, if available, provides the right #defines
5169 # and linker options to make pthread_create available
5170 # Some compilers won't report that they do not support -pthread,
5171 # so we need to run a program to see whether it really made the
5172 # function available.
5173 { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
5174 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; }
5175 if test "${ac_cv_thread+set}" = set; then
5176 echo $ECHO_N "(cached) $ECHO_C" >&6
5180 if test "$cross_compiling" = yes; then
5183 cat >conftest.$ac_ext <<_ACEOF
5186 cat confdefs.h >>conftest.$ac_ext
5187 cat >>conftest.$ac_ext <<_ACEOF
5188 /* end confdefs.h. */
5190 #include <pthread.h>
5192 void* routine(void* p){return NULL;}
5196 if(pthread_create(&p,NULL,routine,NULL)!=0)
5198 (void)pthread_detach(p);
5203 rm -f conftest$ac_exeext
5204 if { (ac_try="$ac_link"
5206 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5207 *) ac_try_echo
=$ac_try;;
5209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5210 (eval "$ac_link") 2>&5
5212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5214 { (case "(($ac_try" in
5215 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5216 *) ac_try_echo=$ac_try;;
5218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5219 (eval "$ac_try") 2>&5
5221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222 (exit $ac_status); }; }; then
5225 echo "$as_me: program exited with status $ac_status" >&5
5226 echo "$as_me: failed program was:" >&5
5227 sed 's/^/| /' conftest.$ac_ext >&5
5232 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5239 { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
5240 echo "${ECHO_T}$ac_cv_pthread" >&6; }
5243 # If we have set a CC compiler flag for thread support then
5244 # check if it works for CXX, too.
5248 { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
5249 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; }
5252 if test "$ac_cv_kpthread" = "yes"
5254 CXX="$CXX -Kpthread"
5255 ac_cv_cxx_thread=yes
5256 elif test "$ac_cv_kthread" = "yes"
5259 ac_cv_cxx_thread=yes
5260 elif test "$ac_cv_pthread" = "yes"
5263 ac_cv_cxx_thread=yes
5266 if test $ac_cv_cxx_thread = yes
5268 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
5269 $CXX -c conftest.$ac_ext 2>&5
5270 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
5271 && test -s conftest$ac_exeext && ./conftest$ac_exeext
5273 ac_cv_cxx_thread=yes
5279 { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
5280 echo "${ECHO_T}$ac_cv_cxx_thread" >&6; }
5285 # checks for header files
5286 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5287 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5288 if test "${ac_cv_header_stdc+set}" = set; then
5289 echo $ECHO_N "(cached) $ECHO_C" >&6
5291 cat >conftest.$ac_ext <<_ACEOF
5294 cat confdefs.h >>conftest.$ac_ext
5295 cat >>conftest.$ac_ext <<_ACEOF
5296 /* end confdefs.h. */
5310 rm -f conftest.$ac_objext
5311 if { (ac_try="$ac_compile"
5313 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5314 *) ac_try_echo
=$ac_try;;
5316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5317 (eval "$ac_compile") 2>conftest.er1
5319 grep -v '^ *+' conftest.er1
>conftest.err
5321 cat conftest.err
>&5
5322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323 (exit $ac_status); } && {
5324 test -z "$ac_c_werror_flag" ||
5325 test ! -s conftest.err
5326 } && test -s conftest.
$ac_objext; then
5327 ac_cv_header_stdc
=yes
5329 echo "$as_me: failed program was:" >&5
5330 sed 's/^/| /' conftest.
$ac_ext >&5
5332 ac_cv_header_stdc
=no
5335 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5337 if test $ac_cv_header_stdc = yes; then
5338 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5339 cat >conftest.
$ac_ext <<_ACEOF
5342 cat confdefs.h
>>conftest.
$ac_ext
5343 cat >>conftest.
$ac_ext <<_ACEOF
5344 /* end confdefs.h. */
5348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5349 $EGREP "memchr" >/dev
/null
2>&1; then
5352 ac_cv_header_stdc
=no
5358 if test $ac_cv_header_stdc = yes; then
5359 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5360 cat >conftest.
$ac_ext <<_ACEOF
5363 cat confdefs.h
>>conftest.
$ac_ext
5364 cat >>conftest.
$ac_ext <<_ACEOF
5365 /* end confdefs.h. */
5369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5370 $EGREP "free" >/dev
/null
2>&1; then
5373 ac_cv_header_stdc
=no
5379 if test $ac_cv_header_stdc = yes; then
5380 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5381 if test "$cross_compiling" = yes; then
5384 cat >conftest.
$ac_ext <<_ACEOF
5387 cat confdefs.h
>>conftest.
$ac_ext
5388 cat >>conftest.
$ac_ext <<_ACEOF
5389 /* end confdefs.h. */
5392 #if ((' ' & 0x0FF) == 0x020)
5393 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5394 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5396 # define ISLOWER(c) \
5397 (('a' <= (c) && (c) <= 'i') \
5398 || ('j' <= (c) && (c) <= 'r') \
5399 || ('s' <= (c) && (c) <= 'z'))
5400 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5403 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5408 for (i = 0; i < 256; i++)
5409 if (XOR (islower (i), ISLOWER (i))
5410 || toupper (i) != TOUPPER (i))
5415 rm -f conftest
$ac_exeext
5416 if { (ac_try
="$ac_link"
5418 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5419 *) ac_try_echo=$ac_try;;
5421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5422 (eval "$ac_link") 2>&5
5424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5426 { (case "(($ac_try" in
5427 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5428 *) ac_try_echo
=$ac_try;;
5430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5431 (eval "$ac_try") 2>&5
5433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434 (exit $ac_status); }; }; then
5437 echo "$as_me: program exited with status $ac_status" >&5
5438 echo "$as_me: failed program was:" >&5
5439 sed 's/^/| /' conftest.
$ac_ext >&5
5442 ac_cv_header_stdc
=no
5444 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5450 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5451 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5452 if test $ac_cv_header_stdc = yes; then
5454 cat >>confdefs.h
<<\_ACEOF
5455 #define STDC_HEADERS 1
5460 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5470 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5471 inttypes.h stdint.h unistd.h
5473 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5474 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5476 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5477 echo $ECHO_N "(cached) $ECHO_C" >&6
5479 cat >conftest.
$ac_ext <<_ACEOF
5482 cat confdefs.h
>>conftest.
$ac_ext
5483 cat >>conftest.
$ac_ext <<_ACEOF
5484 /* end confdefs.h. */
5485 $ac_includes_default
5487 #include <$ac_header>
5489 rm -f conftest.
$ac_objext
5490 if { (ac_try
="$ac_compile"
5492 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5493 *) ac_try_echo=$ac_try;;
5495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5496 (eval "$ac_compile") 2>conftest.er1
5498 grep -v '^ *+' conftest.er1 >conftest.err
5500 cat conftest.err >&5
5501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502 (exit $ac_status); } && {
5503 test -z "$ac_c_werror_flag" ||
5504 test ! -s conftest.err
5505 } && test -s conftest.$ac_objext; then
5506 eval "$as_ac_Header=yes"
5508 echo "$as_me: failed program was:" >&5
5509 sed 's/^/| /' conftest.$ac_ext >&5
5511 eval "$as_ac_Header=no"
5514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5516 ac_res=`eval echo '${'$as_ac_Header'}'`
5517 { echo "$as_me:$LINENO: result: $ac_res" >&5
5518 echo "${ECHO_T}$ac_res" >&6; }
5519 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5520 cat >>confdefs.h <<_ACEOF
5521 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5583 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
5585 ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
5586 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
5588 sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
5589 sys/lock.h sys/mkdev.h sys/modem.h \
5590 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
5591 sys/termio.h sys/time.h \
5592 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
5593 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
5594 bluetooth/bluetooth.h linux/tipc.h
5596 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5598 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5601 echo $ECHO_N "(cached) $ECHO_C" >&6
5603 ac_res=`eval echo '${'$as_ac_Header'}'`
5604 { echo "$as_me:$LINENO: result: $ac_res" >&5
5605 echo "${ECHO_T}$ac_res" >&6; }
5607 # Is the header compilable?
5608 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5609 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5610 cat >conftest.$ac_ext <<_ACEOF
5613 cat confdefs.h >>conftest.$ac_ext
5614 cat >>conftest.$ac_ext <<_ACEOF
5615 /* end confdefs.h. */
5616 $ac_includes_default
5617 #include <$ac_header>
5619 rm -f conftest.$ac_objext
5620 if { (ac_try="$ac_compile"
5622 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5623 *) ac_try_echo
=$ac_try;;
5625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5626 (eval "$ac_compile") 2>conftest.er1
5628 grep -v '^ *+' conftest.er1
>conftest.err
5630 cat conftest.err
>&5
5631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 (exit $ac_status); } && {
5633 test -z "$ac_c_werror_flag" ||
5634 test ! -s conftest.err
5635 } && test -s conftest.
$ac_objext; then
5636 ac_header_compiler
=yes
5638 echo "$as_me: failed program was:" >&5
5639 sed 's/^/| /' conftest.
$ac_ext >&5
5641 ac_header_compiler
=no
5644 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5645 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5646 echo "${ECHO_T}$ac_header_compiler" >&6; }
5648 # Is the header present?
5649 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5650 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5651 cat >conftest.
$ac_ext <<_ACEOF
5654 cat confdefs.h
>>conftest.
$ac_ext
5655 cat >>conftest.
$ac_ext <<_ACEOF
5656 /* end confdefs.h. */
5657 #include <$ac_header>
5659 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5661 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5662 *) ac_try_echo=$ac_try;;
5664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5667 grep -v '^ *+' conftest.er1 >conftest.err
5669 cat conftest.err >&5
5670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671 (exit $ac_status); } >/dev/null && {
5672 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5673 test ! -s conftest.err
5675 ac_header_preproc=yes
5677 echo "$as_me: failed program was:" >&5
5678 sed 's/^/| /' conftest.$ac_ext >&5
5680 ac_header_preproc=no
5683 rm -f conftest.err conftest.$ac_ext
5684 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5685 echo "${ECHO_T}$ac_header_preproc" >&6; }
5687 # So? What about this header?
5688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5690 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5691 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5693 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5694 ac_header_preproc=yes
5697 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5698 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5699 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5700 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5701 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5702 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5703 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5704 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5706 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5707 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5708 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5710 ## ------------------------------------------------ ##
5711 ## Report this to http://www.python.org/python-bugs ##
5712 ## ------------------------------------------------ ##
5714 ) | sed "s/^/$as_me: WARNING: /" >&2
5717 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5719 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5720 echo $ECHO_N "(cached) $ECHO_C" >&6
5722 eval "$as_ac_Header=\$ac_header_preproc"
5724 ac_res=`eval echo '${'$as_ac_Header'}'`
5725 { echo "$as_me:$LINENO: result: $ac_res" >&5
5726 echo "${ECHO_T}$ac_res" >&6; }
5729 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5730 cat >>confdefs.h <<_ACEOF
5731 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5744 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5745 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" |
$as_tr_sh`
5746 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5747 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5748 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5749 echo $ECHO_N "(cached) $ECHO_C" >&6
5751 cat >conftest.$ac_ext <<_ACEOF
5754 cat confdefs.h >>conftest.$ac_ext
5755 cat >>conftest.$ac_ext <<_ACEOF
5756 /* end confdefs.h. */
5757 #include <sys/types.h>
5769 rm -f conftest.$ac_objext
5770 if { (ac_try="$ac_compile"
5772 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5773 *) ac_try_echo
=$ac_try;;
5775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5776 (eval "$ac_compile") 2>conftest.er1
5778 grep -v '^ *+' conftest.er1
>conftest.err
5780 cat conftest.err
>&5
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); } && {
5783 test -z "$ac_c_werror_flag" ||
5784 test ! -s conftest.err
5785 } && test -s conftest.
$ac_objext; then
5786 eval "$as_ac_Header=yes"
5788 echo "$as_me: failed program was:" >&5
5789 sed 's/^/| /' conftest.
$ac_ext >&5
5791 eval "$as_ac_Header=no"
5794 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5796 ac_res
=`eval echo '${'$as_ac_Header'}'`
5797 { echo "$as_me:$LINENO: result: $ac_res" >&5
5798 echo "${ECHO_T}$ac_res" >&6; }
5799 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5800 cat >>confdefs.h
<<_ACEOF
5801 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5804 ac_header_dirent
=$ac_hdr; break
5808 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5809 if test $ac_header_dirent = dirent.h
; then
5810 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5811 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5812 if test "${ac_cv_search_opendir+set}" = set; then
5813 echo $ECHO_N "(cached) $ECHO_C" >&6
5815 ac_func_search_save_LIBS
=$LIBS
5816 cat >conftest.
$ac_ext <<_ACEOF
5819 cat confdefs.h
>>conftest.
$ac_ext
5820 cat >>conftest.
$ac_ext <<_ACEOF
5821 /* end confdefs.h. */
5823 /* Override any GCC internal prototype to avoid an error.
5824 Use char because int might match the return type of a GCC
5825 builtin and then its argument prototype would still apply. */
5838 for ac_lib
in '' dir
; do
5839 if test -z "$ac_lib"; then
5840 ac_res
="none required"
5843 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5845 rm -f conftest.
$ac_objext conftest
$ac_exeext
5846 if { (ac_try
="$ac_link"
5848 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5849 *) ac_try_echo=$ac_try;;
5851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5852 (eval "$ac_link") 2>conftest.er1
5854 grep -v '^ *+' conftest.er1 >conftest.err
5856 cat conftest.err >&5
5857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858 (exit $ac_status); } && {
5859 test -z "$ac_c_werror_flag" ||
5860 test ! -s conftest.err
5861 } && test -s conftest$ac_exeext &&
5862 $as_test_x conftest$ac_exeext; then
5863 ac_cv_search_opendir=$ac_res
5865 echo "$as_me: failed program was:" >&5
5866 sed 's/^/| /' conftest.$ac_ext >&5
5871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5873 if test "${ac_cv_search_opendir+set}" = set; then
5877 if test "${ac_cv_search_opendir+set}" = set; then
5880 ac_cv_search_opendir=no
5883 LIBS=$ac_func_search_save_LIBS
5885 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5886 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5887 ac_res=$ac_cv_search_opendir
5888 if test "$ac_res" != no; then
5889 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5894 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5895 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5896 if test "${ac_cv_search_opendir+set}" = set; then
5897 echo $ECHO_N "(cached) $ECHO_C" >&6
5899 ac_func_search_save_LIBS=$LIBS
5900 cat >conftest.$ac_ext <<_ACEOF
5903 cat confdefs.h >>conftest.$ac_ext
5904 cat >>conftest.$ac_ext <<_ACEOF
5905 /* end confdefs.h. */
5907 /* Override any GCC internal prototype to avoid an error.
5908 Use char because int might match the return type of a GCC
5909 builtin and then its argument prototype would still apply. */
5922 for ac_lib in '' x; do
5923 if test -z "$ac_lib"; then
5924 ac_res="none required"
5927 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5929 rm -f conftest.$ac_objext conftest$ac_exeext
5930 if { (ac_try="$ac_link"
5932 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5933 *) ac_try_echo
=$ac_try;;
5935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5936 (eval "$ac_link") 2>conftest.er1
5938 grep -v '^ *+' conftest.er1
>conftest.err
5940 cat conftest.err
>&5
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); } && {
5943 test -z "$ac_c_werror_flag" ||
5944 test ! -s conftest.err
5945 } && test -s conftest
$ac_exeext &&
5946 $as_test_x conftest
$ac_exeext; then
5947 ac_cv_search_opendir
=$ac_res
5949 echo "$as_me: failed program was:" >&5
5950 sed 's/^/| /' conftest.
$ac_ext >&5
5955 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5957 if test "${ac_cv_search_opendir+set}" = set; then
5961 if test "${ac_cv_search_opendir+set}" = set; then
5964 ac_cv_search_opendir
=no
5967 LIBS
=$ac_func_search_save_LIBS
5969 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5970 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5971 ac_res
=$ac_cv_search_opendir
5972 if test "$ac_res" != no
; then
5973 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5979 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5980 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
5981 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5982 echo $ECHO_N "(cached) $ECHO_C" >&6
5984 cat >conftest.
$ac_ext <<_ACEOF
5987 cat confdefs.h
>>conftest.
$ac_ext
5988 cat >>conftest.
$ac_ext <<_ACEOF
5989 /* end confdefs.h. */
5990 #include <sys/types.h>
5994 return makedev(0, 0);
5999 rm -f conftest.
$ac_objext conftest
$ac_exeext
6000 if { (ac_try
="$ac_link"
6002 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6003 *) ac_try_echo=$ac_try;;
6005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6006 (eval "$ac_link") 2>conftest.er1
6008 grep -v '^ *+' conftest.er1 >conftest.err
6010 cat conftest.err >&5
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); } && {
6013 test -z "$ac_c_werror_flag" ||
6014 test ! -s conftest.err
6015 } && test -s conftest$ac_exeext &&
6016 $as_test_x conftest$ac_exeext; then
6017 ac_cv_header_sys_types_h_makedev=yes
6019 echo "$as_me: failed program was:" >&5
6020 sed 's/^/| /' conftest.$ac_ext >&5
6022 ac_cv_header_sys_types_h_makedev=no
6025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6026 conftest$ac_exeext conftest.$ac_ext
6029 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
6030 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
6032 if test $ac_cv_header_sys_types_h_makedev = no; then
6033 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6034 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6035 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6036 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6037 echo $ECHO_N "(cached) $ECHO_C" >&6
6039 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6040 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6042 # Is the header compilable?
6043 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
6044 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
6045 cat >conftest.$ac_ext <<_ACEOF
6048 cat confdefs.h >>conftest.$ac_ext
6049 cat >>conftest.$ac_ext <<_ACEOF
6050 /* end confdefs.h. */
6051 $ac_includes_default
6052 #include <sys/mkdev.h>
6054 rm -f conftest.$ac_objext
6055 if { (ac_try="$ac_compile"
6057 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6058 *) ac_try_echo
=$ac_try;;
6060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6061 (eval "$ac_compile") 2>conftest.er1
6063 grep -v '^ *+' conftest.er1
>conftest.err
6065 cat conftest.err
>&5
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); } && {
6068 test -z "$ac_c_werror_flag" ||
6069 test ! -s conftest.err
6070 } && test -s conftest.
$ac_objext; then
6071 ac_header_compiler
=yes
6073 echo "$as_me: failed program was:" >&5
6074 sed 's/^/| /' conftest.
$ac_ext >&5
6076 ac_header_compiler
=no
6079 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6080 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6081 echo "${ECHO_T}$ac_header_compiler" >&6; }
6083 # Is the header present?
6084 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
6085 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
6086 cat >conftest.
$ac_ext <<_ACEOF
6089 cat confdefs.h
>>conftest.
$ac_ext
6090 cat >>conftest.
$ac_ext <<_ACEOF
6091 /* end confdefs.h. */
6092 #include <sys/mkdev.h>
6094 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6096 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6097 *) ac_try_echo=$ac_try;;
6099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6100 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6102 grep -v '^ *+' conftest.er1 >conftest.err
6104 cat conftest.err >&5
6105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106 (exit $ac_status); } >/dev/null && {
6107 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6108 test ! -s conftest.err
6110 ac_header_preproc=yes
6112 echo "$as_me: failed program was:" >&5
6113 sed 's/^/| /' conftest.$ac_ext >&5
6115 ac_header_preproc=no
6118 rm -f conftest.err conftest.$ac_ext
6119 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6120 echo "${ECHO_T}$ac_header_preproc" >&6; }
6122 # So? What about this header?
6123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6125 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6126 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6127 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
6128 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
6129 ac_header_preproc=yes
6132 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6133 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6134 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6135 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6136 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
6137 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
6138 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
6139 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
6140 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6141 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6142 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
6143 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
6145 ## ------------------------------------------------ ##
6146 ## Report this to http://www.python.org/python-bugs ##
6147 ## ------------------------------------------------ ##
6149 ) | sed "s/^/$as_me: WARNING: /" >&2
6152 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6153 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6154 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6155 echo $ECHO_N "(cached) $ECHO_C" >&6
6157 ac_cv_header_sys_mkdev_h=$ac_header_preproc
6159 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6160 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6163 if test $ac_cv_header_sys_mkdev_h = yes; then
6165 cat >>confdefs.h <<\_ACEOF
6166 #define MAJOR_IN_MKDEV 1
6173 if test $ac_cv_header_sys_mkdev_h = no; then
6174 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6175 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6176 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6177 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6178 echo $ECHO_N "(cached) $ECHO_C" >&6
6180 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6181 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6183 # Is the header compilable?
6184 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6185 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
6186 cat >conftest.$ac_ext <<_ACEOF
6189 cat confdefs.h >>conftest.$ac_ext
6190 cat >>conftest.$ac_ext <<_ACEOF
6191 /* end confdefs.h. */
6192 $ac_includes_default
6193 #include <sys/sysmacros.h>
6195 rm -f conftest.$ac_objext
6196 if { (ac_try="$ac_compile"
6198 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6199 *) ac_try_echo
=$ac_try;;
6201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6202 (eval "$ac_compile") 2>conftest.er1
6204 grep -v '^ *+' conftest.er1
>conftest.err
6206 cat conftest.err
>&5
6207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208 (exit $ac_status); } && {
6209 test -z "$ac_c_werror_flag" ||
6210 test ! -s conftest.err
6211 } && test -s conftest.
$ac_objext; then
6212 ac_header_compiler
=yes
6214 echo "$as_me: failed program was:" >&5
6215 sed 's/^/| /' conftest.
$ac_ext >&5
6217 ac_header_compiler
=no
6220 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6221 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6222 echo "${ECHO_T}$ac_header_compiler" >&6; }
6224 # Is the header present?
6225 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6226 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
6227 cat >conftest.
$ac_ext <<_ACEOF
6230 cat confdefs.h
>>conftest.
$ac_ext
6231 cat >>conftest.
$ac_ext <<_ACEOF
6232 /* end confdefs.h. */
6233 #include <sys/sysmacros.h>
6235 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6237 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6238 *) ac_try_echo=$ac_try;;
6240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6241 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6243 grep -v '^ *+' conftest.er1 >conftest.err
6245 cat conftest.err >&5
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); } >/dev/null && {
6248 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6249 test ! -s conftest.err
6251 ac_header_preproc=yes
6253 echo "$as_me: failed program was:" >&5
6254 sed 's/^/| /' conftest.$ac_ext >&5
6256 ac_header_preproc=no
6259 rm -f conftest.err conftest.$ac_ext
6260 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6261 echo "${ECHO_T}$ac_header_preproc" >&6; }
6263 # So? What about this header?
6264 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6266 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6267 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6268 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6269 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
6270 ac_header_preproc=yes
6273 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6274 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6275 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6276 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6277 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6278 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6279 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
6280 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
6281 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6282 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
6283 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6284 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
6286 ## ------------------------------------------------ ##
6287 ## Report this to http://www.python.org/python-bugs ##
6288 ## ------------------------------------------------ ##
6290 ) | sed "s/^/$as_me: WARNING: /" >&2
6293 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6294 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6295 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6296 echo $ECHO_N "(cached) $ECHO_C" >&6
6298 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
6300 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6301 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6304 if test $ac_cv_header_sys_sysmacros_h = yes; then
6306 cat >>confdefs.h <<\_ACEOF
6307 #define MAJOR_IN_SYSMACROS 1
6317 # On Solaris, term.h requires curses.h
6319 for ac_header in term.h
6321 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6322 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6324 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6325 echo $ECHO_N "(cached) $ECHO_C" >&6
6327 cat >conftest.$ac_ext <<_ACEOF
6330 cat confdefs.h >>conftest.$ac_ext
6331 cat >>conftest.$ac_ext <<_ACEOF
6332 /* end confdefs.h. */
6334 #ifdef HAVE_CURSES_H
6339 #include <$ac_header>
6341 rm -f conftest.$ac_objext
6342 if { (ac_try="$ac_compile"
6344 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6345 *) ac_try_echo
=$ac_try;;
6347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6348 (eval "$ac_compile") 2>conftest.er1
6350 grep -v '^ *+' conftest.er1
>conftest.err
6352 cat conftest.err
>&5
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); } && {
6355 test -z "$ac_c_werror_flag" ||
6356 test ! -s conftest.err
6357 } && test -s conftest.
$ac_objext; then
6358 eval "$as_ac_Header=yes"
6360 echo "$as_me: failed program was:" >&5
6361 sed 's/^/| /' conftest.
$ac_ext >&5
6363 eval "$as_ac_Header=no"
6366 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6368 ac_res
=`eval echo '${'$as_ac_Header'}'`
6369 { echo "$as_me:$LINENO: result: $ac_res" >&5
6370 echo "${ECHO_T}$ac_res" >&6; }
6371 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6372 cat >>confdefs.h
<<_ACEOF
6373 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6381 # On Linux, netlink.h requires asm/types.h
6383 for ac_header
in linux
/netlink.h
6385 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6386 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6388 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6389 echo $ECHO_N "(cached) $ECHO_C" >&6
6391 cat >conftest.
$ac_ext <<_ACEOF
6394 cat confdefs.h
>>conftest.
$ac_ext
6395 cat >>conftest.
$ac_ext <<_ACEOF
6396 /* end confdefs.h. */
6398 #ifdef HAVE_ASM_TYPES_H
6399 #include <asm/types.h>
6401 #ifdef HAVE_SYS_SOCKET_H
6402 #include <sys/socket.h>
6406 #include <$ac_header>
6408 rm -f conftest.
$ac_objext
6409 if { (ac_try
="$ac_compile"
6411 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6412 *) ac_try_echo=$ac_try;;
6414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6415 (eval "$ac_compile") 2>conftest.er1
6417 grep -v '^ *+' conftest.er1 >conftest.err
6419 cat conftest.err >&5
6420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421 (exit $ac_status); } && {
6422 test -z "$ac_c_werror_flag" ||
6423 test ! -s conftest.err
6424 } && test -s conftest.$ac_objext; then
6425 eval "$as_ac_Header=yes"
6427 echo "$as_me: failed program was:" >&5
6428 sed 's/^/| /' conftest.$ac_ext >&5
6430 eval "$as_ac_Header=no"
6433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6435 ac_res=`eval echo '${'$as_ac_Header'}'`
6436 { echo "$as_me:$LINENO: result: $ac_res" >&5
6437 echo "${ECHO_T}$ac_res" >&6; }
6438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6439 cat >>confdefs.h <<_ACEOF
6440 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6448 # checks for typedefs
6450 { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
6451 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6; }
6452 cat >conftest.$ac_ext <<_ACEOF
6455 cat confdefs.h >>conftest.$ac_ext
6456 cat >>conftest.$ac_ext <<_ACEOF
6457 /* end confdefs.h. */
6461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6462 $EGREP "clock_t" >/dev/null 2>&1; then
6467 cat >>confdefs.h <<\_ACEOF
6468 #define clock_t long
6475 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
6476 echo "${ECHO_T}$was_it_defined" >&6; }
6478 # Check whether using makedev requires defining _OSF_SOURCE
6479 { echo "$as_me:$LINENO: checking for makedev" >&5
6480 echo $ECHO_N "checking for makedev... $ECHO_C" >&6; }
6481 cat >conftest.$ac_ext <<_ACEOF
6484 cat confdefs.h >>conftest.$ac_ext
6485 cat >>conftest.$ac_ext <<_ACEOF
6486 /* end confdefs.h. */
6487 #include <sys/types.h>
6496 rm -f conftest.$ac_objext conftest$ac_exeext
6497 if { (ac_try="$ac_link"
6499 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6500 *) ac_try_echo
=$ac_try;;
6502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6503 (eval "$ac_link") 2>conftest.er1
6505 grep -v '^ *+' conftest.er1
>conftest.err
6507 cat conftest.err
>&5
6508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509 (exit $ac_status); } && {
6510 test -z "$ac_c_werror_flag" ||
6511 test ! -s conftest.err
6512 } && test -s conftest
$ac_exeext &&
6513 $as_test_x conftest
$ac_exeext; then
6514 ac_cv_has_makedev
=yes
6516 echo "$as_me: failed program was:" >&5
6517 sed 's/^/| /' conftest.
$ac_ext >&5
6519 ac_cv_has_makedev
=no
6522 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6523 conftest
$ac_exeext conftest.
$ac_ext
6524 if test "$ac_cv_has_makedev" = "no"; then
6525 # we didn't link, try if _OSF_SOURCE will allow us to link
6526 cat >conftest.
$ac_ext <<_ACEOF
6529 cat confdefs.h
>>conftest.
$ac_ext
6530 cat >>conftest.
$ac_ext <<_ACEOF
6531 /* end confdefs.h. */
6533 #define _OSF_SOURCE 1
6534 #include <sys/types.h>
6544 rm -f conftest.
$ac_objext conftest
$ac_exeext
6545 if { (ac_try
="$ac_link"
6547 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6548 *) ac_try_echo=$ac_try;;
6550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6551 (eval "$ac_link") 2>conftest.er1
6553 grep -v '^ *+' conftest.er1 >conftest.err
6555 cat conftest.err >&5
6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557 (exit $ac_status); } && {
6558 test -z "$ac_c_werror_flag" ||
6559 test ! -s conftest.err
6560 } && test -s conftest$ac_exeext &&
6561 $as_test_x conftest$ac_exeext; then
6562 ac_cv_has_makedev=yes
6564 echo "$as_me: failed program was:" >&5
6565 sed 's/^/| /' conftest.$ac_ext >&5
6567 ac_cv_has_makedev=no
6570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6571 conftest$ac_exeext conftest.$ac_ext
6572 if test "$ac_cv_has_makedev" = "yes"; then
6574 cat >>confdefs.h <<\_ACEOF
6575 #define _OSF_SOURCE 1
6580 { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
6581 echo "${ECHO_T}$ac_cv_has_makedev" >&6; }
6582 if test "$ac_cv_has_makedev" = "yes"; then
6584 cat >>confdefs.h <<\_ACEOF
6585 #define HAVE_MAKEDEV 1
6590 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
6591 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
6592 # defined, but the compiler does not support pragma redefine_extname,
6593 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
6594 # structures (such as rlimit64) without declaring them. As a
6595 # work-around, disable LFS on such configurations
6598 { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
6599 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; }
6600 cat >conftest.$ac_ext <<_ACEOF
6603 cat confdefs.h >>conftest.$ac_ext
6604 cat >>conftest.$ac_ext <<_ACEOF
6605 /* end confdefs.h. */
6607 #define _LARGEFILE_SOURCE 1
6608 #define _FILE_OFFSET_BITS 64
6609 #include <sys/resource.h>
6619 rm -f conftest.$ac_objext
6620 if { (ac_try="$ac_compile"
6622 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6623 *) ac_try_echo
=$ac_try;;
6625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6626 (eval "$ac_compile") 2>conftest.er1
6628 grep -v '^ *+' conftest.er1
>conftest.err
6630 cat conftest.err
>&5
6631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632 (exit $ac_status); } && {
6633 test -z "$ac_c_werror_flag" ||
6634 test ! -s conftest.err
6635 } && test -s conftest.
$ac_objext; then
6638 echo "$as_me: failed program was:" >&5
6639 sed 's/^/| /' conftest.
$ac_ext >&5
6644 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6645 { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
6646 echo "${ECHO_T}$sol_lfs_bug" >&6; }
6647 if test "$sol_lfs_bug" = "yes"; then
6651 if test "$use_lfs" = "yes"; then
6652 # Two defines needed to enable largefile support on various platforms
6653 # These may affect some typedefs
6655 cat >>confdefs.h
<<\_ACEOF
6656 #define _LARGEFILE_SOURCE 1
6660 cat >>confdefs.h
<<\_ACEOF
6661 #define _FILE_OFFSET_BITS 64
6666 # Add some code to confdefs.h so that the test for off_t works on SCO
6667 cat >> confdefs.h
<<\EOF
6673 # Type availability checks
6674 { echo "$as_me:$LINENO: checking for mode_t" >&5
6675 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
6676 if test "${ac_cv_type_mode_t+set}" = set; then
6677 echo $ECHO_N "(cached) $ECHO_C" >&6
6679 cat >conftest.
$ac_ext <<_ACEOF
6682 cat confdefs.h
>>conftest.
$ac_ext
6683 cat >>conftest.
$ac_ext <<_ACEOF
6684 /* end confdefs.h. */
6685 $ac_includes_default
6686 typedef mode_t ac__type_new_;
6690 if ((ac__type_new_ *) 0)
6692 if (sizeof (ac__type_new_))
6698 rm -f conftest.
$ac_objext
6699 if { (ac_try
="$ac_compile"
6701 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6702 *) ac_try_echo=$ac_try;;
6704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6705 (eval "$ac_compile") 2>conftest.er1
6707 grep -v '^ *+' conftest.er1 >conftest.err
6709 cat conftest.err >&5
6710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6711 (exit $ac_status); } && {
6712 test -z "$ac_c_werror_flag" ||
6713 test ! -s conftest.err
6714 } && test -s conftest.$ac_objext; then
6715 ac_cv_type_mode_t=yes
6717 echo "$as_me: failed program was:" >&5
6718 sed 's/^/| /' conftest.$ac_ext >&5
6720 ac_cv_type_mode_t=no
6723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6725 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6726 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
6727 if test $ac_cv_type_mode_t = yes; then
6731 cat >>confdefs.h <<_ACEOF
6737 { echo "$as_me:$LINENO: checking for off_t" >&5
6738 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6739 if test "${ac_cv_type_off_t+set}" = set; then
6740 echo $ECHO_N "(cached) $ECHO_C" >&6
6742 cat >conftest.$ac_ext <<_ACEOF
6745 cat confdefs.h >>conftest.$ac_ext
6746 cat >>conftest.$ac_ext <<_ACEOF
6747 /* end confdefs.h. */
6748 $ac_includes_default
6749 typedef off_t ac__type_new_;
6753 if ((ac__type_new_ *) 0)
6755 if (sizeof (ac__type_new_))
6761 rm -f conftest.$ac_objext
6762 if { (ac_try="$ac_compile"
6764 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6765 *) ac_try_echo
=$ac_try;;
6767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6768 (eval "$ac_compile") 2>conftest.er1
6770 grep -v '^ *+' conftest.er1
>conftest.err
6772 cat conftest.err
>&5
6773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774 (exit $ac_status); } && {
6775 test -z "$ac_c_werror_flag" ||
6776 test ! -s conftest.err
6777 } && test -s conftest.
$ac_objext; then
6778 ac_cv_type_off_t
=yes
6780 echo "$as_me: failed program was:" >&5
6781 sed 's/^/| /' conftest.
$ac_ext >&5
6786 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6788 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6789 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6790 if test $ac_cv_type_off_t = yes; then
6794 cat >>confdefs.h
<<_ACEOF
6795 #define off_t long int
6800 { echo "$as_me:$LINENO: checking for pid_t" >&5
6801 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
6802 if test "${ac_cv_type_pid_t+set}" = set; then
6803 echo $ECHO_N "(cached) $ECHO_C" >&6
6805 cat >conftest.
$ac_ext <<_ACEOF
6808 cat confdefs.h
>>conftest.
$ac_ext
6809 cat >>conftest.
$ac_ext <<_ACEOF
6810 /* end confdefs.h. */
6811 $ac_includes_default
6812 typedef pid_t ac__type_new_;
6816 if ((ac__type_new_ *) 0)
6818 if (sizeof (ac__type_new_))
6824 rm -f conftest.
$ac_objext
6825 if { (ac_try
="$ac_compile"
6827 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6828 *) ac_try_echo=$ac_try;;
6830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6831 (eval "$ac_compile") 2>conftest.er1
6833 grep -v '^ *+' conftest.er1 >conftest.err
6835 cat conftest.err >&5
6836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837 (exit $ac_status); } && {
6838 test -z "$ac_c_werror_flag" ||
6839 test ! -s conftest.err
6840 } && test -s conftest.$ac_objext; then
6841 ac_cv_type_pid_t=yes
6843 echo "$as_me: failed program was:" >&5
6844 sed 's/^/| /' conftest.$ac_ext >&5
6849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6851 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6852 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
6853 if test $ac_cv_type_pid_t = yes; then
6857 cat >>confdefs.h <<_ACEOF
6863 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6864 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6865 if test "${ac_cv_type_signal+set}" = set; then
6866 echo $ECHO_N "(cached) $ECHO_C" >&6
6868 cat >conftest.$ac_ext <<_ACEOF
6871 cat confdefs.h >>conftest.$ac_ext
6872 cat >>conftest.$ac_ext <<_ACEOF
6873 /* end confdefs.h. */
6874 #include <sys/types.h>
6880 return *(signal (0, 0)) (0) == 1;
6885 rm -f conftest.$ac_objext
6886 if { (ac_try="$ac_compile"
6888 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6889 *) ac_try_echo
=$ac_try;;
6891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6892 (eval "$ac_compile") 2>conftest.er1
6894 grep -v '^ *+' conftest.er1
>conftest.err
6896 cat conftest.err
>&5
6897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898 (exit $ac_status); } && {
6899 test -z "$ac_c_werror_flag" ||
6900 test ! -s conftest.err
6901 } && test -s conftest.
$ac_objext; then
6902 ac_cv_type_signal
=int
6904 echo "$as_me: failed program was:" >&5
6905 sed 's/^/| /' conftest.
$ac_ext >&5
6907 ac_cv_type_signal
=void
6910 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6912 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6913 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6915 cat >>confdefs.h
<<_ACEOF
6916 #define RETSIGTYPE $ac_cv_type_signal
6920 { echo "$as_me:$LINENO: checking for size_t" >&5
6921 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6922 if test "${ac_cv_type_size_t+set}" = set; then
6923 echo $ECHO_N "(cached) $ECHO_C" >&6
6925 cat >conftest.
$ac_ext <<_ACEOF
6928 cat confdefs.h
>>conftest.
$ac_ext
6929 cat >>conftest.
$ac_ext <<_ACEOF
6930 /* end confdefs.h. */
6931 $ac_includes_default
6932 typedef size_t ac__type_new_;
6936 if ((ac__type_new_ *) 0)
6938 if (sizeof (ac__type_new_))
6944 rm -f conftest.
$ac_objext
6945 if { (ac_try
="$ac_compile"
6947 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6948 *) ac_try_echo=$ac_try;;
6950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6951 (eval "$ac_compile") 2>conftest.er1
6953 grep -v '^ *+' conftest.er1 >conftest.err
6955 cat conftest.err >&5
6956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957 (exit $ac_status); } && {
6958 test -z "$ac_c_werror_flag" ||
6959 test ! -s conftest.err
6960 } && test -s conftest.$ac_objext; then
6961 ac_cv_type_size_t=yes
6963 echo "$as_me: failed program was:" >&5
6964 sed 's/^/| /' conftest.$ac_ext >&5
6966 ac_cv_type_size_t=no
6969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6971 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6972 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
6973 if test $ac_cv_type_size_t = yes; then
6977 cat >>confdefs.h <<_ACEOF
6978 #define size_t unsigned int
6983 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6984 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
6985 if test "${ac_cv_type_uid_t+set}" = set; then
6986 echo $ECHO_N "(cached) $ECHO_C" >&6
6988 cat >conftest.$ac_ext <<_ACEOF
6991 cat confdefs.h >>conftest.$ac_ext
6992 cat >>conftest.$ac_ext <<_ACEOF
6993 /* end confdefs.h. */
6994 #include <sys/types.h>
6997 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6998 $EGREP "uid_t" >/dev/null 2>&1; then
6999 ac_cv_type_uid_t=yes
7006 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7007 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7008 if test $ac_cv_type_uid_t = no; then
7010 cat >>confdefs.h <<\_ACEOF
7015 cat >>confdefs.h <<\_ACEOF
7021 { echo "$as_me:$LINENO: checking for ssize_t" >&5
7022 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
7023 if test "${ac_cv_type_ssize_t+set}" = set; then
7024 echo $ECHO_N "(cached) $ECHO_C" >&6
7026 cat >conftest.$ac_ext <<_ACEOF
7029 cat confdefs.h >>conftest.$ac_ext
7030 cat >>conftest.$ac_ext <<_ACEOF
7031 /* end confdefs.h. */
7032 $ac_includes_default
7033 typedef ssize_t ac__type_new_;
7037 if ((ac__type_new_ *) 0)
7039 if (sizeof (ac__type_new_))
7045 rm -f conftest.$ac_objext
7046 if { (ac_try="$ac_compile"
7048 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7049 *) ac_try_echo
=$ac_try;;
7051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7052 (eval "$ac_compile") 2>conftest.er1
7054 grep -v '^ *+' conftest.er1
>conftest.err
7056 cat conftest.err
>&5
7057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058 (exit $ac_status); } && {
7059 test -z "$ac_c_werror_flag" ||
7060 test ! -s conftest.err
7061 } && test -s conftest.
$ac_objext; then
7062 ac_cv_type_ssize_t
=yes
7064 echo "$as_me: failed program was:" >&5
7065 sed 's/^/| /' conftest.
$ac_ext >&5
7067 ac_cv_type_ssize_t
=no
7070 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7072 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7073 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
7074 if test $ac_cv_type_ssize_t = yes; then
7076 cat >>confdefs.h
<<\_ACEOF
7077 #define HAVE_SSIZE_T 1
7083 # Sizes of various common basic types
7084 # ANSI C requires sizeof(char) == 1, so no need to check it
7085 { echo "$as_me:$LINENO: checking for int" >&5
7086 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
7087 if test "${ac_cv_type_int+set}" = set; then
7088 echo $ECHO_N "(cached) $ECHO_C" >&6
7090 cat >conftest.
$ac_ext <<_ACEOF
7093 cat confdefs.h
>>conftest.
$ac_ext
7094 cat >>conftest.
$ac_ext <<_ACEOF
7095 /* end confdefs.h. */
7096 $ac_includes_default
7097 typedef int ac__type_new_;
7101 if ((ac__type_new_ *) 0)
7103 if (sizeof (ac__type_new_))
7109 rm -f conftest.
$ac_objext
7110 if { (ac_try
="$ac_compile"
7112 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7113 *) ac_try_echo=$ac_try;;
7115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7116 (eval "$ac_compile") 2>conftest.er1
7118 grep -v '^ *+' conftest.er1 >conftest.err
7120 cat conftest.err >&5
7121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122 (exit $ac_status); } && {
7123 test -z "$ac_c_werror_flag" ||
7124 test ! -s conftest.err
7125 } && test -s conftest.$ac_objext; then
7128 echo "$as_me: failed program was:" >&5
7129 sed 's/^/| /' conftest.$ac_ext >&5
7134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7136 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7137 echo "${ECHO_T}$ac_cv_type_int" >&6; }
7139 # The cast to long int works around a bug in the HP C Compiler
7140 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7141 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
7142 # This bug is HP SR number 8606223364.
7143 { echo "$as_me:$LINENO: checking size of int" >&5
7144 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
7145 if test "${ac_cv_sizeof_int+set}" = set; then
7146 echo $ECHO_N "(cached) $ECHO_C" >&6
7148 if test "$cross_compiling" = yes; then
7149 # Depending upon the size, compute the lo and hi bounds.
7150 cat >conftest.$ac_ext <<_ACEOF
7153 cat confdefs.h >>conftest.$ac_ext
7154 cat >>conftest.$ac_ext <<_ACEOF
7155 /* end confdefs.h. */
7156 $ac_includes_default
7157 typedef int ac__type_sizeof_;
7161 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7168 rm -f conftest.$ac_objext
7169 if { (ac_try="$ac_compile"
7171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7172 *) ac_try_echo=$ac_try;;
7174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7175 (eval "$ac_compile") 2>conftest.er1
7177 grep -v '^
*+' conftest.er1 >conftest.err
7179 cat conftest.err >&5
7180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7181 (exit $ac_status); } && {
7182 test -z "$ac_c_werror_flag" ||
7183 test ! -s conftest.err
7184 } && test -s conftest.$ac_objext; then
7187 cat >conftest.$ac_ext <<_ACEOF
7190 cat confdefs.h >>conftest.$ac_ext
7191 cat >>conftest.$ac_ext <<_ACEOF
7192 /* end confdefs.h. */
7193 $ac_includes_default
7194 typedef int ac__type_sizeof_;
7198 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7205 rm -f conftest.$ac_objext
7206 if { (ac_try="$ac_compile"
7208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7209 *) ac_try_echo=$ac_try;;
7211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7212 (eval "$ac_compile") 2>conftest.er1
7214 grep -v '^
*+' conftest.er1 >conftest.err
7216 cat conftest.err >&5
7217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218 (exit $ac_status); } && {
7219 test -z "$ac_c_werror_flag" ||
7220 test ! -s conftest.err
7221 } && test -s conftest.$ac_objext; then
7222 ac_hi=$ac_mid; break
7224 echo "$as_me: failed program was:" >&5
7225 sed 's
/^
/|
/' conftest.$ac_ext >&5
7227 ac_lo=`expr $ac_mid + 1`
7228 if test $ac_lo -le $ac_mid; then
7232 ac_mid=`expr 2 '*' $ac_mid + 1`
7235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7238 echo "$as_me: failed program was:" >&5
7239 sed 's
/^
/|
/' conftest.$ac_ext >&5
7241 cat >conftest.$ac_ext <<_ACEOF
7244 cat confdefs.h >>conftest.$ac_ext
7245 cat >>conftest.$ac_ext <<_ACEOF
7246 /* end confdefs.h. */
7247 $ac_includes_default
7248 typedef int ac__type_sizeof_;
7252 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7259 rm -f conftest.$ac_objext
7260 if { (ac_try="$ac_compile"
7262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7263 *) ac_try_echo=$ac_try;;
7265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7266 (eval "$ac_compile") 2>conftest.er1
7268 grep -v '^
*+' conftest.er1 >conftest.err
7270 cat conftest.err >&5
7271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272 (exit $ac_status); } && {
7273 test -z "$ac_c_werror_flag" ||
7274 test ! -s conftest.err
7275 } && test -s conftest.$ac_objext; then
7278 cat >conftest.$ac_ext <<_ACEOF
7281 cat confdefs.h >>conftest.$ac_ext
7282 cat >>conftest.$ac_ext <<_ACEOF
7283 /* end confdefs.h. */
7284 $ac_includes_default
7285 typedef int ac__type_sizeof_;
7289 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7296 rm -f conftest.$ac_objext
7297 if { (ac_try="$ac_compile"
7299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7300 *) ac_try_echo=$ac_try;;
7302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7303 (eval "$ac_compile") 2>conftest.er1
7305 grep -v '^
*+' conftest.er1 >conftest.err
7307 cat conftest.err >&5
7308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7309 (exit $ac_status); } && {
7310 test -z "$ac_c_werror_flag" ||
7311 test ! -s conftest.err
7312 } && test -s conftest.$ac_objext; then
7313 ac_lo=$ac_mid; break
7315 echo "$as_me: failed program was:" >&5
7316 sed 's
/^
/|
/' conftest.$ac_ext >&5
7318 ac_hi=`expr '(' $ac_mid ')' - 1`
7319 if test $ac_mid -le $ac_hi; then
7323 ac_mid=`expr 2 '*' $ac_mid`
7326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7329 echo "$as_me: failed program was:" >&5
7330 sed 's
/^
/|
/' conftest.$ac_ext >&5
7335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7339 # Binary search between lo and hi bounds.
7340 while test "x$ac_lo" != "x$ac_hi"; do
7341 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7342 cat >conftest.$ac_ext <<_ACEOF
7345 cat confdefs.h >>conftest.$ac_ext
7346 cat >>conftest.$ac_ext <<_ACEOF
7347 /* end confdefs.h. */
7348 $ac_includes_default
7349 typedef int ac__type_sizeof_;
7353 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7360 rm -f conftest.$ac_objext
7361 if { (ac_try="$ac_compile"
7363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7364 *) ac_try_echo=$ac_try;;
7366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7367 (eval "$ac_compile") 2>conftest.er1
7369 grep -v '^
*+' conftest.er1 >conftest.err
7371 cat conftest.err >&5
7372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7373 (exit $ac_status); } && {
7374 test -z "$ac_c_werror_flag" ||
7375 test ! -s conftest.err
7376 } && test -s conftest.$ac_objext; then
7379 echo "$as_me: failed program was:" >&5
7380 sed 's
/^
/|
/' conftest.$ac_ext >&5
7382 ac_lo=`expr '(' $ac_mid ')' + 1`
7385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7388 ?*) ac_cv_sizeof_int=$ac_lo;;
7389 '') if test "$ac_cv_type_int" = yes; then
7390 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7391 See \`config.log' for more details.
" >&5
7392 echo "$as_me: error
: cannot compute sizeof
(int
)
7393 See \
`config.log' for more details." >&2;}
7394 { (exit 77); exit 77; }; }
7400 cat >conftest.$ac_ext <<_ACEOF
7403 cat confdefs.h >>conftest.$ac_ext
7404 cat >>conftest.$ac_ext <<_ACEOF
7405 /* end confdefs.h. */
7406 $ac_includes_default
7407 typedef int ac__type_sizeof_;
7408 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7409 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7416 FILE *f = fopen ("conftest.val", "w");
7419 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7421 long int i = longval ();
7422 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7424 fprintf (f, "%ld\n", i);
7428 unsigned long int i = ulongval ();
7429 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7431 fprintf (f, "%lu\n", i);
7433 return ferror (f) || fclose (f) != 0;
7439 rm -f conftest$ac_exeext
7440 if { (ac_try="$ac_link"
7442 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7443 *) ac_try_echo
=$ac_try;;
7445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7446 (eval "$ac_link") 2>&5
7448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7450 { (case "(($ac_try" in
7451 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7452 *) ac_try_echo=$ac_try;;
7454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7455 (eval "$ac_try") 2>&5
7457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458 (exit $ac_status); }; }; then
7459 ac_cv_sizeof_int=`cat conftest.val
`
7461 echo "$as_me: program exited with status $ac_status" >&5
7462 echo "$as_me: failed program was:" >&5
7463 sed 's/^/| /' conftest.$ac_ext >&5
7466 if test "$ac_cv_type_int" = yes; then
7467 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7468 See \`config.log
' for more details." >&5
7469 echo "$as_me: error: cannot compute sizeof (int)
7470 See \`config.log' for more details.
" >&2;}
7471 { (exit 77); exit 77; }; }
7476 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7480 { echo "$as_me:$LINENO: result
: $ac_cv_sizeof_int" >&5
7481 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7485 cat >>confdefs.h <<_ACEOF
7486 #define SIZEOF_INT $ac_cv_sizeof_int
7490 { echo "$as_me:$LINENO: checking
for long
" >&5
7491 echo $ECHO_N "checking
for long...
$ECHO_C" >&6; }
7492 if test "${ac_cv_type_long+set}" = set; then
7493 echo $ECHO_N "(cached
) $ECHO_C" >&6
7495 cat >conftest.$ac_ext <<_ACEOF
7498 cat confdefs.h >>conftest.$ac_ext
7499 cat >>conftest.$ac_ext <<_ACEOF
7500 /* end confdefs.h. */
7501 $ac_includes_default
7502 typedef long ac__type_new_;
7506 if ((ac__type_new_ *) 0)
7508 if (sizeof (ac__type_new_))
7514 rm -f conftest.$ac_objext
7515 if { (ac_try="$ac_compile"
7517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7518 *) ac_try_echo=$ac_try;;
7520 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7521 (eval "$ac_compile") 2>conftest.er1
7523 grep -v '^ *+' conftest.er1 >conftest.err
7525 cat conftest.err >&5
7526 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7527 (exit $ac_status); } && {
7528 test -z "$ac_c_werror_flag" ||
7529 test ! -s conftest.err
7530 } && test -s conftest.$ac_objext; then
7533 echo "$as_me: failed program was
:" >&5
7534 sed 's/^/| /' conftest.$ac_ext >&5
7539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7541 { echo "$as_me:$LINENO: result
: $ac_cv_type_long" >&5
7542 echo "${ECHO_T}$ac_cv_type_long" >&6; }
7544 # The cast to long int works around a bug in the HP C Compiler
7545 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7546 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7547 # This bug is HP SR number 8606223364.
7548 { echo "$as_me:$LINENO: checking size of long
" >&5
7549 echo $ECHO_N "checking size of long...
$ECHO_C" >&6; }
7550 if test "${ac_cv_sizeof_long+set}" = set; then
7551 echo $ECHO_N "(cached
) $ECHO_C" >&6
7553 if test "$cross_compiling" = yes; then
7554 # Depending upon the size, compute the lo and hi bounds.
7555 cat >conftest.$ac_ext <<_ACEOF
7558 cat confdefs.h >>conftest.$ac_ext
7559 cat >>conftest.$ac_ext <<_ACEOF
7560 /* end confdefs.h. */
7561 $ac_includes_default
7562 typedef long ac__type_sizeof_;
7566 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7573 rm -f conftest.$ac_objext
7574 if { (ac_try="$ac_compile"
7576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7577 *) ac_try_echo=$ac_try;;
7579 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7580 (eval "$ac_compile") 2>conftest.er1
7582 grep -v '^ *+' conftest.er1 >conftest.err
7584 cat conftest.err >&5
7585 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7586 (exit $ac_status); } && {
7587 test -z "$ac_c_werror_flag" ||
7588 test ! -s conftest.err
7589 } && test -s conftest.$ac_objext; then
7592 cat >conftest.$ac_ext <<_ACEOF
7595 cat confdefs.h >>conftest.$ac_ext
7596 cat >>conftest.$ac_ext <<_ACEOF
7597 /* end confdefs.h. */
7598 $ac_includes_default
7599 typedef long ac__type_sizeof_;
7603 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7610 rm -f conftest.$ac_objext
7611 if { (ac_try="$ac_compile"
7613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7614 *) ac_try_echo=$ac_try;;
7616 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7617 (eval "$ac_compile") 2>conftest.er1
7619 grep -v '^ *+' conftest.er1 >conftest.err
7621 cat conftest.err >&5
7622 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7623 (exit $ac_status); } && {
7624 test -z "$ac_c_werror_flag" ||
7625 test ! -s conftest.err
7626 } && test -s conftest.$ac_objext; then
7627 ac_hi=$ac_mid; break
7629 echo "$as_me: failed program was
:" >&5
7630 sed 's/^/| /' conftest.$ac_ext >&5
7632 ac_lo=`expr $ac_mid + 1`
7633 if test $ac_lo -le $ac_mid; then
7637 ac_mid=`expr 2 '*' $ac_mid + 1`
7640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7643 echo "$as_me: failed program was
:" >&5
7644 sed 's/^/| /' conftest.$ac_ext >&5
7646 cat >conftest.$ac_ext <<_ACEOF
7649 cat confdefs.h >>conftest.$ac_ext
7650 cat >>conftest.$ac_ext <<_ACEOF
7651 /* end confdefs.h. */
7652 $ac_includes_default
7653 typedef long ac__type_sizeof_;
7657 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7664 rm -f conftest.$ac_objext
7665 if { (ac_try="$ac_compile"
7667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7668 *) ac_try_echo=$ac_try;;
7670 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7671 (eval "$ac_compile") 2>conftest.er1
7673 grep -v '^ *+' conftest.er1 >conftest.err
7675 cat conftest.err >&5
7676 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7677 (exit $ac_status); } && {
7678 test -z "$ac_c_werror_flag" ||
7679 test ! -s conftest.err
7680 } && test -s conftest.$ac_objext; then
7683 cat >conftest.$ac_ext <<_ACEOF
7686 cat confdefs.h >>conftest.$ac_ext
7687 cat >>conftest.$ac_ext <<_ACEOF
7688 /* end confdefs.h. */
7689 $ac_includes_default
7690 typedef long ac__type_sizeof_;
7694 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7701 rm -f conftest.$ac_objext
7702 if { (ac_try="$ac_compile"
7704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7705 *) ac_try_echo=$ac_try;;
7707 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7708 (eval "$ac_compile") 2>conftest.er1
7710 grep -v '^ *+' conftest.er1 >conftest.err
7712 cat conftest.err >&5
7713 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7714 (exit $ac_status); } && {
7715 test -z "$ac_c_werror_flag" ||
7716 test ! -s conftest.err
7717 } && test -s conftest.$ac_objext; then
7718 ac_lo=$ac_mid; break
7720 echo "$as_me: failed program was
:" >&5
7721 sed 's/^/| /' conftest.$ac_ext >&5
7723 ac_hi=`expr '(' $ac_mid ')' - 1`
7724 if test $ac_mid -le $ac_hi; then
7728 ac_mid=`expr 2 '*' $ac_mid`
7731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7734 echo "$as_me: failed program was
:" >&5
7735 sed 's/^/| /' conftest.$ac_ext >&5
7740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7744 # Binary search between lo and hi bounds.
7745 while test "x
$ac_lo" != "x
$ac_hi"; do
7746 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7747 cat >conftest.$ac_ext <<_ACEOF
7750 cat confdefs.h >>conftest.$ac_ext
7751 cat >>conftest.$ac_ext <<_ACEOF
7752 /* end confdefs.h. */
7753 $ac_includes_default
7754 typedef long ac__type_sizeof_;
7758 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7765 rm -f conftest.$ac_objext
7766 if { (ac_try="$ac_compile"
7768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7769 *) ac_try_echo=$ac_try;;
7771 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7772 (eval "$ac_compile") 2>conftest.er1
7774 grep -v '^ *+' conftest.er1 >conftest.err
7776 cat conftest.err >&5
7777 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7778 (exit $ac_status); } && {
7779 test -z "$ac_c_werror_flag" ||
7780 test ! -s conftest.err
7781 } && test -s conftest.$ac_objext; then
7784 echo "$as_me: failed program was
:" >&5
7785 sed 's/^/| /' conftest.$ac_ext >&5
7787 ac_lo=`expr '(' $ac_mid ')' + 1`
7790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7793 ?*) ac_cv_sizeof_long=$ac_lo;;
7794 '') if test "$ac_cv_type_long" = yes; then
7795 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long
)
7796 See \
`config.log' for more details." >&5
7797 echo "$as_me: error: cannot compute sizeof (long)
7798 See \`config.log
' for more details." >&2;}
7799 { (exit 77); exit 77; }; }
7805 cat >conftest.$ac_ext <<_ACEOF
7808 cat confdefs.h >>conftest.$ac_ext
7809 cat >>conftest.$ac_ext <<_ACEOF
7810 /* end confdefs.h. */
7811 $ac_includes_default
7812 typedef long ac__type_sizeof_;
7813 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7814 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7821 FILE *f = fopen ("conftest.val", "w");
7824 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7826 long int i = longval ();
7827 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7829 fprintf (f, "%ld\n", i);
7833 unsigned long int i = ulongval ();
7834 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7836 fprintf (f, "%lu\n", i);
7838 return ferror (f) || fclose (f) != 0;
7844 rm -f conftest$ac_exeext
7845 if { (ac_try="$ac_link"
7847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7848 *) ac_try_echo=$ac_try;;
7850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7851 (eval "$ac_link") 2>&5
7853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
7855 { (case "(($ac_try" in
7856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7857 *) ac_try_echo=$ac_try;;
7859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7860 (eval "$ac_try") 2>&5
7862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863 (exit $ac_status); }; }; then
7864 ac_cv_sizeof_long=`cat conftest.val`
7866 echo "$as_me: program exited with status $ac_status" >&5
7867 echo "$as_me: failed program was:" >&5
7868 sed 's
/^
/|
/' conftest.$ac_ext >&5
7871 if test "$ac_cv_type_long" = yes; then
7872 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
7873 See \`config.log' for more details.
" >&5
7874 echo "$as_me: error
: cannot compute sizeof
(long
)
7875 See \
`config.log' for more details." >&2;}
7876 { (exit 77); exit 77; }; }
7881 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7885 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7886 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
7890 cat >>confdefs.h <<_ACEOF
7891 #define SIZEOF_LONG $ac_cv_sizeof_long
7895 { echo "$as_me:$LINENO: checking for void *" >&5
7896 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
7897 if test "${ac_cv_type_void_p+set}" = set; then
7898 echo $ECHO_N "(cached) $ECHO_C" >&6
7900 cat >conftest.$ac_ext <<_ACEOF
7903 cat confdefs.h >>conftest.$ac_ext
7904 cat >>conftest.$ac_ext <<_ACEOF
7905 /* end confdefs.h. */
7906 $ac_includes_default
7907 typedef void * ac__type_new_;
7911 if ((ac__type_new_ *) 0)
7913 if (sizeof (ac__type_new_))
7919 rm -f conftest.$ac_objext
7920 if { (ac_try="$ac_compile"
7922 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7923 *) ac_try_echo
=$ac_try;;
7925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7926 (eval "$ac_compile") 2>conftest.er1
7928 grep -v '^ *+' conftest.er1
>conftest.err
7930 cat conftest.err
>&5
7931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); } && {
7933 test -z "$ac_c_werror_flag" ||
7934 test ! -s conftest.err
7935 } && test -s conftest.
$ac_objext; then
7936 ac_cv_type_void_p
=yes
7938 echo "$as_me: failed program was:" >&5
7939 sed 's/^/| /' conftest.
$ac_ext >&5
7941 ac_cv_type_void_p
=no
7944 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7946 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
7947 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
7949 # The cast to long int works around a bug in the HP C Compiler
7950 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7951 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7952 # This bug is HP SR number 8606223364.
7953 { echo "$as_me:$LINENO: checking size of void *" >&5
7954 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
7955 if test "${ac_cv_sizeof_void_p+set}" = set; then
7956 echo $ECHO_N "(cached) $ECHO_C" >&6
7958 if test "$cross_compiling" = yes; then
7959 # Depending upon the size, compute the lo and hi bounds.
7960 cat >conftest.
$ac_ext <<_ACEOF
7963 cat confdefs.h
>>conftest.
$ac_ext
7964 cat >>conftest.
$ac_ext <<_ACEOF
7965 /* end confdefs.h. */
7966 $ac_includes_default
7967 typedef void * ac__type_sizeof_;
7971 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7978 rm -f conftest.
$ac_objext
7979 if { (ac_try
="$ac_compile"
7981 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7982 *) ac_try_echo=$ac_try;;
7984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7985 (eval "$ac_compile") 2>conftest.er1
7987 grep -v '^ *+' conftest.er1 >conftest.err
7989 cat conftest.err >&5
7990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991 (exit $ac_status); } && {
7992 test -z "$ac_c_werror_flag" ||
7993 test ! -s conftest.err
7994 } && test -s conftest.$ac_objext; then
7997 cat >conftest.$ac_ext <<_ACEOF
8000 cat confdefs.h >>conftest.$ac_ext
8001 cat >>conftest.$ac_ext <<_ACEOF
8002 /* end confdefs.h. */
8003 $ac_includes_default
8004 typedef void * ac__type_sizeof_;
8008 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8015 rm -f conftest.$ac_objext
8016 if { (ac_try="$ac_compile"
8018 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8019 *) ac_try_echo
=$ac_try;;
8021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8022 (eval "$ac_compile") 2>conftest.er1
8024 grep -v '^ *+' conftest.er1
>conftest.err
8026 cat conftest.err
>&5
8027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8028 (exit $ac_status); } && {
8029 test -z "$ac_c_werror_flag" ||
8030 test ! -s conftest.err
8031 } && test -s conftest.
$ac_objext; then
8032 ac_hi
=$ac_mid; break
8034 echo "$as_me: failed program was:" >&5
8035 sed 's/^/| /' conftest.
$ac_ext >&5
8037 ac_lo
=`expr $ac_mid + 1`
8038 if test $ac_lo -le $ac_mid; then
8042 ac_mid
=`expr 2 '*' $ac_mid + 1`
8045 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8048 echo "$as_me: failed program was:" >&5
8049 sed 's/^/| /' conftest.
$ac_ext >&5
8051 cat >conftest.
$ac_ext <<_ACEOF
8054 cat confdefs.h
>>conftest.
$ac_ext
8055 cat >>conftest.
$ac_ext <<_ACEOF
8056 /* end confdefs.h. */
8057 $ac_includes_default
8058 typedef void * ac__type_sizeof_;
8062 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8069 rm -f conftest.
$ac_objext
8070 if { (ac_try
="$ac_compile"
8072 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8073 *) ac_try_echo=$ac_try;;
8075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8076 (eval "$ac_compile") 2>conftest.er1
8078 grep -v '^ *+' conftest.er1 >conftest.err
8080 cat conftest.err >&5
8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 (exit $ac_status); } && {
8083 test -z "$ac_c_werror_flag" ||
8084 test ! -s conftest.err
8085 } && test -s conftest.$ac_objext; then
8088 cat >conftest.$ac_ext <<_ACEOF
8091 cat confdefs.h >>conftest.$ac_ext
8092 cat >>conftest.$ac_ext <<_ACEOF
8093 /* end confdefs.h. */
8094 $ac_includes_default
8095 typedef void * ac__type_sizeof_;
8099 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8106 rm -f conftest.$ac_objext
8107 if { (ac_try="$ac_compile"
8109 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8110 *) ac_try_echo
=$ac_try;;
8112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8113 (eval "$ac_compile") 2>conftest.er1
8115 grep -v '^ *+' conftest.er1
>conftest.err
8117 cat conftest.err
>&5
8118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119 (exit $ac_status); } && {
8120 test -z "$ac_c_werror_flag" ||
8121 test ! -s conftest.err
8122 } && test -s conftest.
$ac_objext; then
8123 ac_lo
=$ac_mid; break
8125 echo "$as_me: failed program was:" >&5
8126 sed 's/^/| /' conftest.
$ac_ext >&5
8128 ac_hi
=`expr '(' $ac_mid ')' - 1`
8129 if test $ac_mid -le $ac_hi; then
8133 ac_mid
=`expr 2 '*' $ac_mid`
8136 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8139 echo "$as_me: failed program was:" >&5
8140 sed 's/^/| /' conftest.
$ac_ext >&5
8145 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8148 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8149 # Binary search between lo and hi bounds.
8150 while test "x$ac_lo" != "x$ac_hi"; do
8151 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8152 cat >conftest.
$ac_ext <<_ACEOF
8155 cat confdefs.h
>>conftest.
$ac_ext
8156 cat >>conftest.
$ac_ext <<_ACEOF
8157 /* end confdefs.h. */
8158 $ac_includes_default
8159 typedef void * ac__type_sizeof_;
8163 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8170 rm -f conftest.
$ac_objext
8171 if { (ac_try
="$ac_compile"
8173 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8174 *) ac_try_echo=$ac_try;;
8176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8177 (eval "$ac_compile") 2>conftest.er1
8179 grep -v '^ *+' conftest.er1 >conftest.err
8181 cat conftest.err >&5
8182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183 (exit $ac_status); } && {
8184 test -z "$ac_c_werror_flag" ||
8185 test ! -s conftest.err
8186 } && test -s conftest.$ac_objext; then
8189 echo "$as_me: failed program was:" >&5
8190 sed 's/^/| /' conftest.$ac_ext >&5
8192 ac_lo=`expr '(' $ac_mid ')' + 1`
8195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8198 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8199 '') if test "$ac_cv_type_void_p" = yes; then
8200 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8201 See \`config.log
' for more details." >&5
8202 echo "$as_me: error: cannot compute sizeof (void *)
8203 See \`config.log' for more details.
" >&2;}
8204 { (exit 77); exit 77; }; }
8206 ac_cv_sizeof_void_p=0
8210 cat >conftest.$ac_ext <<_ACEOF
8213 cat confdefs.h >>conftest.$ac_ext
8214 cat >>conftest.$ac_ext <<_ACEOF
8215 /* end confdefs.h. */
8216 $ac_includes_default
8217 typedef void * ac__type_sizeof_;
8218 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8219 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8226 FILE *f = fopen ("conftest.val
", "w
");
8229 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8231 long int i = longval ();
8232 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8234 fprintf (f, "%ld
\n", i);
8238 unsigned long int i = ulongval ();
8239 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8241 fprintf (f, "%lu
\n", i);
8243 return ferror (f) || fclose (f) != 0;
8249 rm -f conftest$ac_exeext
8250 if { (ac_try="$ac_link"
8252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8253 *) ac_try_echo=$ac_try;;
8255 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8256 (eval "$ac_link") 2>&5
8258 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8259 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8260 { (case "(($ac_try" in
8261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8262 *) ac_try_echo=$ac_try;;
8264 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8265 (eval "$ac_try") 2>&5
8267 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8268 (exit $ac_status); }; }; then
8269 ac_cv_sizeof_void_p=`cat conftest.val`
8271 echo "$as_me: program exited with status
$ac_status" >&5
8272 echo "$as_me: failed program was
:" >&5
8273 sed 's/^/| /' conftest.$ac_ext >&5
8276 if test "$ac_cv_type_void_p" = yes; then
8277 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(void
*)
8278 See \
`config.log' for more details." >&5
8279 echo "$as_me: error: cannot compute sizeof (void *)
8280 See \`config.log
' for more details." >&2;}
8281 { (exit 77); exit 77; }; }
8283 ac_cv_sizeof_void_p=0
8286 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8290 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8291 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8295 cat >>confdefs.h <<_ACEOF
8296 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8300 { echo "$as_me:$LINENO: checking for short" >&5
8301 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
8302 if test "${ac_cv_type_short+set}" = set; then
8303 echo $ECHO_N "(cached) $ECHO_C" >&6
8305 cat >conftest.$ac_ext <<_ACEOF
8308 cat confdefs.h >>conftest.$ac_ext
8309 cat >>conftest.$ac_ext <<_ACEOF
8310 /* end confdefs.h. */
8311 $ac_includes_default
8312 typedef short ac__type_new_;
8316 if ((ac__type_new_ *) 0)
8318 if (sizeof (ac__type_new_))
8324 rm -f conftest.$ac_objext
8325 if { (ac_try="$ac_compile"
8327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8328 *) ac_try_echo=$ac_try;;
8330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8331 (eval "$ac_compile") 2>conftest.er1
8333 grep -v '^
*+' conftest.er1 >conftest.err
8335 cat conftest.err >&5
8336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337 (exit $ac_status); } && {
8338 test -z "$ac_c_werror_flag" ||
8339 test ! -s conftest.err
8340 } && test -s conftest.$ac_objext; then
8341 ac_cv_type_short=yes
8343 echo "$as_me: failed program was:" >&5
8344 sed 's
/^
/|
/' conftest.$ac_ext >&5
8349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8351 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8352 echo "${ECHO_T}$ac_cv_type_short" >&6; }
8354 # The cast to long int works around a bug in the HP C Compiler
8355 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8356 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8357 # This bug is HP SR number 8606223364.
8358 { echo "$as_me:$LINENO: checking size of short" >&5
8359 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8360 if test "${ac_cv_sizeof_short+set}" = set; then
8361 echo $ECHO_N "(cached) $ECHO_C" >&6
8363 if test "$cross_compiling" = yes; then
8364 # Depending upon the size, compute the lo and hi bounds.
8365 cat >conftest.
$ac_ext <<_ACEOF
8368 cat confdefs.h
>>conftest.
$ac_ext
8369 cat >>conftest.
$ac_ext <<_ACEOF
8370 /* end confdefs.h. */
8371 $ac_includes_default
8372 typedef short ac__type_sizeof_;
8376 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8383 rm -f conftest.
$ac_objext
8384 if { (ac_try
="$ac_compile"
8386 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8387 *) ac_try_echo=$ac_try;;
8389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8390 (eval "$ac_compile") 2>conftest.er1
8392 grep -v '^ *+' conftest.er1 >conftest.err
8394 cat conftest.err >&5
8395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396 (exit $ac_status); } && {
8397 test -z "$ac_c_werror_flag" ||
8398 test ! -s conftest.err
8399 } && test -s conftest.$ac_objext; then
8402 cat >conftest.$ac_ext <<_ACEOF
8405 cat confdefs.h >>conftest.$ac_ext
8406 cat >>conftest.$ac_ext <<_ACEOF
8407 /* end confdefs.h. */
8408 $ac_includes_default
8409 typedef short ac__type_sizeof_;
8413 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8420 rm -f conftest.$ac_objext
8421 if { (ac_try="$ac_compile"
8423 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8424 *) ac_try_echo
=$ac_try;;
8426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8427 (eval "$ac_compile") 2>conftest.er1
8429 grep -v '^ *+' conftest.er1
>conftest.err
8431 cat conftest.err
>&5
8432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433 (exit $ac_status); } && {
8434 test -z "$ac_c_werror_flag" ||
8435 test ! -s conftest.err
8436 } && test -s conftest.
$ac_objext; then
8437 ac_hi
=$ac_mid; break
8439 echo "$as_me: failed program was:" >&5
8440 sed 's/^/| /' conftest.
$ac_ext >&5
8442 ac_lo
=`expr $ac_mid + 1`
8443 if test $ac_lo -le $ac_mid; then
8447 ac_mid
=`expr 2 '*' $ac_mid + 1`
8450 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8453 echo "$as_me: failed program was:" >&5
8454 sed 's/^/| /' conftest.
$ac_ext >&5
8456 cat >conftest.
$ac_ext <<_ACEOF
8459 cat confdefs.h
>>conftest.
$ac_ext
8460 cat >>conftest.
$ac_ext <<_ACEOF
8461 /* end confdefs.h. */
8462 $ac_includes_default
8463 typedef short ac__type_sizeof_;
8467 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8474 rm -f conftest.
$ac_objext
8475 if { (ac_try
="$ac_compile"
8477 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8478 *) ac_try_echo=$ac_try;;
8480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8481 (eval "$ac_compile") 2>conftest.er1
8483 grep -v '^ *+' conftest.er1 >conftest.err
8485 cat conftest.err >&5
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); } && {
8488 test -z "$ac_c_werror_flag" ||
8489 test ! -s conftest.err
8490 } && test -s conftest.$ac_objext; then
8493 cat >conftest.$ac_ext <<_ACEOF
8496 cat confdefs.h >>conftest.$ac_ext
8497 cat >>conftest.$ac_ext <<_ACEOF
8498 /* end confdefs.h. */
8499 $ac_includes_default
8500 typedef short ac__type_sizeof_;
8504 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8511 rm -f conftest.$ac_objext
8512 if { (ac_try="$ac_compile"
8514 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8515 *) ac_try_echo
=$ac_try;;
8517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8518 (eval "$ac_compile") 2>conftest.er1
8520 grep -v '^ *+' conftest.er1
>conftest.err
8522 cat conftest.err
>&5
8523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524 (exit $ac_status); } && {
8525 test -z "$ac_c_werror_flag" ||
8526 test ! -s conftest.err
8527 } && test -s conftest.
$ac_objext; then
8528 ac_lo
=$ac_mid; break
8530 echo "$as_me: failed program was:" >&5
8531 sed 's/^/| /' conftest.
$ac_ext >&5
8533 ac_hi
=`expr '(' $ac_mid ')' - 1`
8534 if test $ac_mid -le $ac_hi; then
8538 ac_mid
=`expr 2 '*' $ac_mid`
8541 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8544 echo "$as_me: failed program was:" >&5
8545 sed 's/^/| /' conftest.
$ac_ext >&5
8550 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8553 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8554 # Binary search between lo and hi bounds.
8555 while test "x$ac_lo" != "x$ac_hi"; do
8556 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8557 cat >conftest.
$ac_ext <<_ACEOF
8560 cat confdefs.h
>>conftest.
$ac_ext
8561 cat >>conftest.
$ac_ext <<_ACEOF
8562 /* end confdefs.h. */
8563 $ac_includes_default
8564 typedef short ac__type_sizeof_;
8568 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8575 rm -f conftest.
$ac_objext
8576 if { (ac_try
="$ac_compile"
8578 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8579 *) ac_try_echo=$ac_try;;
8581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8582 (eval "$ac_compile") 2>conftest.er1
8584 grep -v '^ *+' conftest.er1 >conftest.err
8586 cat conftest.err >&5
8587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8588 (exit $ac_status); } && {
8589 test -z "$ac_c_werror_flag" ||
8590 test ! -s conftest.err
8591 } && test -s conftest.$ac_objext; then
8594 echo "$as_me: failed program was:" >&5
8595 sed 's/^/| /' conftest.$ac_ext >&5
8597 ac_lo=`expr '(' $ac_mid ')' + 1`
8600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8603 ?*) ac_cv_sizeof_short=$ac_lo;;
8604 '') if test "$ac_cv_type_short" = yes; then
8605 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8606 See \`config.log
' for more details." >&5
8607 echo "$as_me: error: cannot compute sizeof (short)
8608 See \`config.log' for more details.
" >&2;}
8609 { (exit 77); exit 77; }; }
8611 ac_cv_sizeof_short=0
8615 cat >conftest.$ac_ext <<_ACEOF
8618 cat confdefs.h >>conftest.$ac_ext
8619 cat >>conftest.$ac_ext <<_ACEOF
8620 /* end confdefs.h. */
8621 $ac_includes_default
8622 typedef short ac__type_sizeof_;
8623 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8624 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8631 FILE *f = fopen ("conftest.val
", "w
");
8634 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8636 long int i = longval ();
8637 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8639 fprintf (f, "%ld
\n", i);
8643 unsigned long int i = ulongval ();
8644 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8646 fprintf (f, "%lu
\n", i);
8648 return ferror (f) || fclose (f) != 0;
8654 rm -f conftest$ac_exeext
8655 if { (ac_try="$ac_link"
8657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8658 *) ac_try_echo=$ac_try;;
8660 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8661 (eval "$ac_link") 2>&5
8663 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8664 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8665 { (case "(($ac_try" in
8666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8667 *) ac_try_echo=$ac_try;;
8669 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8670 (eval "$ac_try") 2>&5
8672 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8673 (exit $ac_status); }; }; then
8674 ac_cv_sizeof_short=`cat conftest.val`
8676 echo "$as_me: program exited with status
$ac_status" >&5
8677 echo "$as_me: failed program was
:" >&5
8678 sed 's/^/| /' conftest.$ac_ext >&5
8681 if test "$ac_cv_type_short" = yes; then
8682 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(short
)
8683 See \
`config.log' for more details." >&5
8684 echo "$as_me: error: cannot compute sizeof (short)
8685 See \`config.log
' for more details." >&2;}
8686 { (exit 77); exit 77; }; }
8688 ac_cv_sizeof_short=0
8691 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8695 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
8696 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
8700 cat >>confdefs.h <<_ACEOF
8701 #define SIZEOF_SHORT $ac_cv_sizeof_short
8705 { echo "$as_me:$LINENO: checking for float" >&5
8706 echo $ECHO_N "checking for float... $ECHO_C" >&6; }
8707 if test "${ac_cv_type_float+set}" = set; then
8708 echo $ECHO_N "(cached) $ECHO_C" >&6
8710 cat >conftest.$ac_ext <<_ACEOF
8713 cat confdefs.h >>conftest.$ac_ext
8714 cat >>conftest.$ac_ext <<_ACEOF
8715 /* end confdefs.h. */
8716 $ac_includes_default
8717 typedef float ac__type_new_;
8721 if ((ac__type_new_ *) 0)
8723 if (sizeof (ac__type_new_))
8729 rm -f conftest.$ac_objext
8730 if { (ac_try="$ac_compile"
8732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8733 *) ac_try_echo=$ac_try;;
8735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8736 (eval "$ac_compile") 2>conftest.er1
8738 grep -v '^
*+' conftest.er1 >conftest.err
8740 cat conftest.err >&5
8741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8742 (exit $ac_status); } && {
8743 test -z "$ac_c_werror_flag" ||
8744 test ! -s conftest.err
8745 } && test -s conftest.$ac_objext; then
8746 ac_cv_type_float=yes
8748 echo "$as_me: failed program was:" >&5
8749 sed 's
/^
/|
/' conftest.$ac_ext >&5
8754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8756 { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
8757 echo "${ECHO_T}$ac_cv_type_float" >&6; }
8759 # The cast to long int works around a bug in the HP C Compiler
8760 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8761 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8762 # This bug is HP SR number 8606223364.
8763 { echo "$as_me:$LINENO: checking size of float" >&5
8764 echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
8765 if test "${ac_cv_sizeof_float+set}" = set; then
8766 echo $ECHO_N "(cached) $ECHO_C" >&6
8768 if test "$cross_compiling" = yes; then
8769 # Depending upon the size, compute the lo and hi bounds.
8770 cat >conftest.
$ac_ext <<_ACEOF
8773 cat confdefs.h
>>conftest.
$ac_ext
8774 cat >>conftest.
$ac_ext <<_ACEOF
8775 /* end confdefs.h. */
8776 $ac_includes_default
8777 typedef float ac__type_sizeof_;
8781 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8788 rm -f conftest.
$ac_objext
8789 if { (ac_try
="$ac_compile"
8791 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8792 *) ac_try_echo=$ac_try;;
8794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8795 (eval "$ac_compile") 2>conftest.er1
8797 grep -v '^ *+' conftest.er1 >conftest.err
8799 cat conftest.err >&5
8800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801 (exit $ac_status); } && {
8802 test -z "$ac_c_werror_flag" ||
8803 test ! -s conftest.err
8804 } && test -s conftest.$ac_objext; then
8807 cat >conftest.$ac_ext <<_ACEOF
8810 cat confdefs.h >>conftest.$ac_ext
8811 cat >>conftest.$ac_ext <<_ACEOF
8812 /* end confdefs.h. */
8813 $ac_includes_default
8814 typedef float ac__type_sizeof_;
8818 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8825 rm -f conftest.$ac_objext
8826 if { (ac_try="$ac_compile"
8828 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8829 *) ac_try_echo
=$ac_try;;
8831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8832 (eval "$ac_compile") 2>conftest.er1
8834 grep -v '^ *+' conftest.er1
>conftest.err
8836 cat conftest.err
>&5
8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 (exit $ac_status); } && {
8839 test -z "$ac_c_werror_flag" ||
8840 test ! -s conftest.err
8841 } && test -s conftest.
$ac_objext; then
8842 ac_hi
=$ac_mid; break
8844 echo "$as_me: failed program was:" >&5
8845 sed 's/^/| /' conftest.
$ac_ext >&5
8847 ac_lo
=`expr $ac_mid + 1`
8848 if test $ac_lo -le $ac_mid; then
8852 ac_mid
=`expr 2 '*' $ac_mid + 1`
8855 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8858 echo "$as_me: failed program was:" >&5
8859 sed 's/^/| /' conftest.
$ac_ext >&5
8861 cat >conftest.
$ac_ext <<_ACEOF
8864 cat confdefs.h
>>conftest.
$ac_ext
8865 cat >>conftest.
$ac_ext <<_ACEOF
8866 /* end confdefs.h. */
8867 $ac_includes_default
8868 typedef float ac__type_sizeof_;
8872 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8879 rm -f conftest.
$ac_objext
8880 if { (ac_try
="$ac_compile"
8882 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8883 *) ac_try_echo=$ac_try;;
8885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8886 (eval "$ac_compile") 2>conftest.er1
8888 grep -v '^ *+' conftest.er1 >conftest.err
8890 cat conftest.err >&5
8891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892 (exit $ac_status); } && {
8893 test -z "$ac_c_werror_flag" ||
8894 test ! -s conftest.err
8895 } && test -s conftest.$ac_objext; then
8898 cat >conftest.$ac_ext <<_ACEOF
8901 cat confdefs.h >>conftest.$ac_ext
8902 cat >>conftest.$ac_ext <<_ACEOF
8903 /* end confdefs.h. */
8904 $ac_includes_default
8905 typedef float ac__type_sizeof_;
8909 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8916 rm -f conftest.$ac_objext
8917 if { (ac_try="$ac_compile"
8919 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8920 *) ac_try_echo
=$ac_try;;
8922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8923 (eval "$ac_compile") 2>conftest.er1
8925 grep -v '^ *+' conftest.er1
>conftest.err
8927 cat conftest.err
>&5
8928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929 (exit $ac_status); } && {
8930 test -z "$ac_c_werror_flag" ||
8931 test ! -s conftest.err
8932 } && test -s conftest.
$ac_objext; then
8933 ac_lo
=$ac_mid; break
8935 echo "$as_me: failed program was:" >&5
8936 sed 's/^/| /' conftest.
$ac_ext >&5
8938 ac_hi
=`expr '(' $ac_mid ')' - 1`
8939 if test $ac_mid -le $ac_hi; then
8943 ac_mid
=`expr 2 '*' $ac_mid`
8946 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8949 echo "$as_me: failed program was:" >&5
8950 sed 's/^/| /' conftest.
$ac_ext >&5
8955 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8958 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8959 # Binary search between lo and hi bounds.
8960 while test "x$ac_lo" != "x$ac_hi"; do
8961 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8962 cat >conftest.
$ac_ext <<_ACEOF
8965 cat confdefs.h
>>conftest.
$ac_ext
8966 cat >>conftest.
$ac_ext <<_ACEOF
8967 /* end confdefs.h. */
8968 $ac_includes_default
8969 typedef float ac__type_sizeof_;
8973 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8980 rm -f conftest.
$ac_objext
8981 if { (ac_try
="$ac_compile"
8983 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8984 *) ac_try_echo=$ac_try;;
8986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8987 (eval "$ac_compile") 2>conftest.er1
8989 grep -v '^ *+' conftest.er1 >conftest.err
8991 cat conftest.err >&5
8992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993 (exit $ac_status); } && {
8994 test -z "$ac_c_werror_flag" ||
8995 test ! -s conftest.err
8996 } && test -s conftest.$ac_objext; then
8999 echo "$as_me: failed program was:" >&5
9000 sed 's/^/| /' conftest.$ac_ext >&5
9002 ac_lo=`expr '(' $ac_mid ')' + 1`
9005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9008 ?*) ac_cv_sizeof_float=$ac_lo;;
9009 '') if test "$ac_cv_type_float" = yes; then
9010 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
9011 See \`config.log
' for more details." >&5
9012 echo "$as_me: error: cannot compute sizeof (float)
9013 See \`config.log' for more details.
" >&2;}
9014 { (exit 77); exit 77; }; }
9016 ac_cv_sizeof_float=0
9020 cat >conftest.$ac_ext <<_ACEOF
9023 cat confdefs.h >>conftest.$ac_ext
9024 cat >>conftest.$ac_ext <<_ACEOF
9025 /* end confdefs.h. */
9026 $ac_includes_default
9027 typedef float ac__type_sizeof_;
9028 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9029 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9036 FILE *f = fopen ("conftest.val
", "w
");
9039 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9041 long int i = longval ();
9042 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9044 fprintf (f, "%ld
\n", i);
9048 unsigned long int i = ulongval ();
9049 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9051 fprintf (f, "%lu
\n", i);
9053 return ferror (f) || fclose (f) != 0;
9059 rm -f conftest$ac_exeext
9060 if { (ac_try="$ac_link"
9062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9063 *) ac_try_echo=$ac_try;;
9065 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9066 (eval "$ac_link") 2>&5
9068 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9069 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9070 { (case "(($ac_try" in
9071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9072 *) ac_try_echo=$ac_try;;
9074 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9075 (eval "$ac_try") 2>&5
9077 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9078 (exit $ac_status); }; }; then
9079 ac_cv_sizeof_float=`cat conftest.val`
9081 echo "$as_me: program exited with status
$ac_status" >&5
9082 echo "$as_me: failed program was
:" >&5
9083 sed 's/^/| /' conftest.$ac_ext >&5
9086 if test "$ac_cv_type_float" = yes; then
9087 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(float
)
9088 See \
`config.log' for more details." >&5
9089 echo "$as_me: error: cannot compute sizeof (float)
9090 See \`config.log
' for more details." >&2;}
9091 { (exit 77); exit 77; }; }
9093 ac_cv_sizeof_float=0
9096 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9100 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
9101 echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
9105 cat >>confdefs.h <<_ACEOF
9106 #define SIZEOF_FLOAT $ac_cv_sizeof_float
9110 { echo "$as_me:$LINENO: checking for double" >&5
9111 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
9112 if test "${ac_cv_type_double+set}" = set; then
9113 echo $ECHO_N "(cached) $ECHO_C" >&6
9115 cat >conftest.$ac_ext <<_ACEOF
9118 cat confdefs.h >>conftest.$ac_ext
9119 cat >>conftest.$ac_ext <<_ACEOF
9120 /* end confdefs.h. */
9121 $ac_includes_default
9122 typedef double ac__type_new_;
9126 if ((ac__type_new_ *) 0)
9128 if (sizeof (ac__type_new_))
9134 rm -f conftest.$ac_objext
9135 if { (ac_try="$ac_compile"
9137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9138 *) ac_try_echo=$ac_try;;
9140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9141 (eval "$ac_compile") 2>conftest.er1
9143 grep -v '^
*+' conftest.er1 >conftest.err
9145 cat conftest.err >&5
9146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147 (exit $ac_status); } && {
9148 test -z "$ac_c_werror_flag" ||
9149 test ! -s conftest.err
9150 } && test -s conftest.$ac_objext; then
9151 ac_cv_type_double=yes
9153 echo "$as_me: failed program was:" >&5
9154 sed 's
/^
/|
/' conftest.$ac_ext >&5
9156 ac_cv_type_double=no
9159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9161 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
9162 echo "${ECHO_T}$ac_cv_type_double" >&6; }
9164 # The cast to long int works around a bug in the HP C Compiler
9165 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9166 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9167 # This bug is HP SR number 8606223364.
9168 { echo "$as_me:$LINENO: checking size of double" >&5
9169 echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
9170 if test "${ac_cv_sizeof_double+set}" = set; then
9171 echo $ECHO_N "(cached) $ECHO_C" >&6
9173 if test "$cross_compiling" = yes; then
9174 # Depending upon the size, compute the lo and hi bounds.
9175 cat >conftest.
$ac_ext <<_ACEOF
9178 cat confdefs.h
>>conftest.
$ac_ext
9179 cat >>conftest.
$ac_ext <<_ACEOF
9180 /* end confdefs.h. */
9181 $ac_includes_default
9182 typedef double ac__type_sizeof_;
9186 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9193 rm -f conftest.
$ac_objext
9194 if { (ac_try
="$ac_compile"
9196 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9197 *) ac_try_echo=$ac_try;;
9199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9200 (eval "$ac_compile") 2>conftest.er1
9202 grep -v '^ *+' conftest.er1 >conftest.err
9204 cat conftest.err >&5
9205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206 (exit $ac_status); } && {
9207 test -z "$ac_c_werror_flag" ||
9208 test ! -s conftest.err
9209 } && test -s conftest.$ac_objext; then
9212 cat >conftest.$ac_ext <<_ACEOF
9215 cat confdefs.h >>conftest.$ac_ext
9216 cat >>conftest.$ac_ext <<_ACEOF
9217 /* end confdefs.h. */
9218 $ac_includes_default
9219 typedef double ac__type_sizeof_;
9223 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9230 rm -f conftest.$ac_objext
9231 if { (ac_try="$ac_compile"
9233 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9234 *) ac_try_echo
=$ac_try;;
9236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9237 (eval "$ac_compile") 2>conftest.er1
9239 grep -v '^ *+' conftest.er1
>conftest.err
9241 cat conftest.err
>&5
9242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243 (exit $ac_status); } && {
9244 test -z "$ac_c_werror_flag" ||
9245 test ! -s conftest.err
9246 } && test -s conftest.
$ac_objext; then
9247 ac_hi
=$ac_mid; break
9249 echo "$as_me: failed program was:" >&5
9250 sed 's/^/| /' conftest.
$ac_ext >&5
9252 ac_lo
=`expr $ac_mid + 1`
9253 if test $ac_lo -le $ac_mid; then
9257 ac_mid
=`expr 2 '*' $ac_mid + 1`
9260 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9263 echo "$as_me: failed program was:" >&5
9264 sed 's/^/| /' conftest.
$ac_ext >&5
9266 cat >conftest.
$ac_ext <<_ACEOF
9269 cat confdefs.h
>>conftest.
$ac_ext
9270 cat >>conftest.
$ac_ext <<_ACEOF
9271 /* end confdefs.h. */
9272 $ac_includes_default
9273 typedef double ac__type_sizeof_;
9277 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9284 rm -f conftest.
$ac_objext
9285 if { (ac_try
="$ac_compile"
9287 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9288 *) ac_try_echo=$ac_try;;
9290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9291 (eval "$ac_compile") 2>conftest.er1
9293 grep -v '^ *+' conftest.er1 >conftest.err
9295 cat conftest.err >&5
9296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297 (exit $ac_status); } && {
9298 test -z "$ac_c_werror_flag" ||
9299 test ! -s conftest.err
9300 } && test -s conftest.$ac_objext; then
9303 cat >conftest.$ac_ext <<_ACEOF
9306 cat confdefs.h >>conftest.$ac_ext
9307 cat >>conftest.$ac_ext <<_ACEOF
9308 /* end confdefs.h. */
9309 $ac_includes_default
9310 typedef double ac__type_sizeof_;
9314 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9321 rm -f conftest.$ac_objext
9322 if { (ac_try="$ac_compile"
9324 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9325 *) ac_try_echo
=$ac_try;;
9327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9328 (eval "$ac_compile") 2>conftest.er1
9330 grep -v '^ *+' conftest.er1
>conftest.err
9332 cat conftest.err
>&5
9333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334 (exit $ac_status); } && {
9335 test -z "$ac_c_werror_flag" ||
9336 test ! -s conftest.err
9337 } && test -s conftest.
$ac_objext; then
9338 ac_lo
=$ac_mid; break
9340 echo "$as_me: failed program was:" >&5
9341 sed 's/^/| /' conftest.
$ac_ext >&5
9343 ac_hi
=`expr '(' $ac_mid ')' - 1`
9344 if test $ac_mid -le $ac_hi; then
9348 ac_mid
=`expr 2 '*' $ac_mid`
9351 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9354 echo "$as_me: failed program was:" >&5
9355 sed 's/^/| /' conftest.
$ac_ext >&5
9360 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9363 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9364 # Binary search between lo and hi bounds.
9365 while test "x$ac_lo" != "x$ac_hi"; do
9366 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9367 cat >conftest.
$ac_ext <<_ACEOF
9370 cat confdefs.h
>>conftest.
$ac_ext
9371 cat >>conftest.
$ac_ext <<_ACEOF
9372 /* end confdefs.h. */
9373 $ac_includes_default
9374 typedef double ac__type_sizeof_;
9378 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9385 rm -f conftest.
$ac_objext
9386 if { (ac_try
="$ac_compile"
9388 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9389 *) ac_try_echo=$ac_try;;
9391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9392 (eval "$ac_compile") 2>conftest.er1
9394 grep -v '^ *+' conftest.er1 >conftest.err
9396 cat conftest.err >&5
9397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398 (exit $ac_status); } && {
9399 test -z "$ac_c_werror_flag" ||
9400 test ! -s conftest.err
9401 } && test -s conftest.$ac_objext; then
9404 echo "$as_me: failed program was:" >&5
9405 sed 's/^/| /' conftest.$ac_ext >&5
9407 ac_lo=`expr '(' $ac_mid ')' + 1`
9410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9413 ?*) ac_cv_sizeof_double=$ac_lo;;
9414 '') if test "$ac_cv_type_double" = yes; then
9415 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9416 See \`config.log
' for more details." >&5
9417 echo "$as_me: error: cannot compute sizeof (double)
9418 See \`config.log' for more details.
" >&2;}
9419 { (exit 77); exit 77; }; }
9421 ac_cv_sizeof_double=0
9425 cat >conftest.$ac_ext <<_ACEOF
9428 cat confdefs.h >>conftest.$ac_ext
9429 cat >>conftest.$ac_ext <<_ACEOF
9430 /* end confdefs.h. */
9431 $ac_includes_default
9432 typedef double ac__type_sizeof_;
9433 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9434 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9441 FILE *f = fopen ("conftest.val
", "w
");
9444 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9446 long int i = longval ();
9447 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9449 fprintf (f, "%ld
\n", i);
9453 unsigned long int i = ulongval ();
9454 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9456 fprintf (f, "%lu
\n", i);
9458 return ferror (f) || fclose (f) != 0;
9464 rm -f conftest$ac_exeext
9465 if { (ac_try="$ac_link"
9467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9468 *) ac_try_echo=$ac_try;;
9470 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9471 (eval "$ac_link") 2>&5
9473 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9474 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9475 { (case "(($ac_try" in
9476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9477 *) ac_try_echo=$ac_try;;
9479 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9480 (eval "$ac_try") 2>&5
9482 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9483 (exit $ac_status); }; }; then
9484 ac_cv_sizeof_double=`cat conftest.val`
9486 echo "$as_me: program exited with status
$ac_status" >&5
9487 echo "$as_me: failed program was
:" >&5
9488 sed 's/^/| /' conftest.$ac_ext >&5
9491 if test "$ac_cv_type_double" = yes; then
9492 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(double
)
9493 See \
`config.log' for more details." >&5
9494 echo "$as_me: error: cannot compute sizeof (double)
9495 See \`config.log
' for more details." >&2;}
9496 { (exit 77); exit 77; }; }
9498 ac_cv_sizeof_double=0
9501 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9505 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
9506 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
9510 cat >>confdefs.h <<_ACEOF
9511 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
9515 { echo "$as_me:$LINENO: checking for fpos_t" >&5
9516 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; }
9517 if test "${ac_cv_type_fpos_t+set}" = set; then
9518 echo $ECHO_N "(cached) $ECHO_C" >&6
9520 cat >conftest.$ac_ext <<_ACEOF
9523 cat confdefs.h >>conftest.$ac_ext
9524 cat >>conftest.$ac_ext <<_ACEOF
9525 /* end confdefs.h. */
9526 $ac_includes_default
9527 typedef fpos_t ac__type_new_;
9531 if ((ac__type_new_ *) 0)
9533 if (sizeof (ac__type_new_))
9539 rm -f conftest.$ac_objext
9540 if { (ac_try="$ac_compile"
9542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9543 *) ac_try_echo=$ac_try;;
9545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9546 (eval "$ac_compile") 2>conftest.er1
9548 grep -v '^
*+' conftest.er1 >conftest.err
9550 cat conftest.err >&5
9551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552 (exit $ac_status); } && {
9553 test -z "$ac_c_werror_flag" ||
9554 test ! -s conftest.err
9555 } && test -s conftest.$ac_objext; then
9556 ac_cv_type_fpos_t=yes
9558 echo "$as_me: failed program was:" >&5
9559 sed 's
/^
/|
/' conftest.$ac_ext >&5
9561 ac_cv_type_fpos_t=no
9564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9566 { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
9567 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; }
9569 # The cast to long int works around a bug in the HP C Compiler
9570 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9571 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9572 # This bug is HP SR number 8606223364.
9573 { echo "$as_me:$LINENO: checking size of fpos_t" >&5
9574 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; }
9575 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
9576 echo $ECHO_N "(cached) $ECHO_C" >&6
9578 if test "$cross_compiling" = yes; then
9579 # Depending upon the size, compute the lo and hi bounds.
9580 cat >conftest.
$ac_ext <<_ACEOF
9583 cat confdefs.h
>>conftest.
$ac_ext
9584 cat >>conftest.
$ac_ext <<_ACEOF
9585 /* end confdefs.h. */
9586 $ac_includes_default
9587 typedef fpos_t ac__type_sizeof_;
9591 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9598 rm -f conftest.
$ac_objext
9599 if { (ac_try
="$ac_compile"
9601 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9602 *) ac_try_echo=$ac_try;;
9604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9605 (eval "$ac_compile") 2>conftest.er1
9607 grep -v '^ *+' conftest.er1 >conftest.err
9609 cat conftest.err >&5
9610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611 (exit $ac_status); } && {
9612 test -z "$ac_c_werror_flag" ||
9613 test ! -s conftest.err
9614 } && test -s conftest.$ac_objext; then
9617 cat >conftest.$ac_ext <<_ACEOF
9620 cat confdefs.h >>conftest.$ac_ext
9621 cat >>conftest.$ac_ext <<_ACEOF
9622 /* end confdefs.h. */
9623 $ac_includes_default
9624 typedef fpos_t ac__type_sizeof_;
9628 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9635 rm -f conftest.$ac_objext
9636 if { (ac_try="$ac_compile"
9638 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9639 *) ac_try_echo
=$ac_try;;
9641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9642 (eval "$ac_compile") 2>conftest.er1
9644 grep -v '^ *+' conftest.er1
>conftest.err
9646 cat conftest.err
>&5
9647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648 (exit $ac_status); } && {
9649 test -z "$ac_c_werror_flag" ||
9650 test ! -s conftest.err
9651 } && test -s conftest.
$ac_objext; then
9652 ac_hi
=$ac_mid; break
9654 echo "$as_me: failed program was:" >&5
9655 sed 's/^/| /' conftest.
$ac_ext >&5
9657 ac_lo
=`expr $ac_mid + 1`
9658 if test $ac_lo -le $ac_mid; then
9662 ac_mid
=`expr 2 '*' $ac_mid + 1`
9665 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9668 echo "$as_me: failed program was:" >&5
9669 sed 's/^/| /' conftest.
$ac_ext >&5
9671 cat >conftest.
$ac_ext <<_ACEOF
9674 cat confdefs.h
>>conftest.
$ac_ext
9675 cat >>conftest.
$ac_ext <<_ACEOF
9676 /* end confdefs.h. */
9677 $ac_includes_default
9678 typedef fpos_t ac__type_sizeof_;
9682 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9689 rm -f conftest.
$ac_objext
9690 if { (ac_try
="$ac_compile"
9692 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9693 *) ac_try_echo=$ac_try;;
9695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9696 (eval "$ac_compile") 2>conftest.er1
9698 grep -v '^ *+' conftest.er1 >conftest.err
9700 cat conftest.err >&5
9701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702 (exit $ac_status); } && {
9703 test -z "$ac_c_werror_flag" ||
9704 test ! -s conftest.err
9705 } && test -s conftest.$ac_objext; then
9708 cat >conftest.$ac_ext <<_ACEOF
9711 cat confdefs.h >>conftest.$ac_ext
9712 cat >>conftest.$ac_ext <<_ACEOF
9713 /* end confdefs.h. */
9714 $ac_includes_default
9715 typedef fpos_t ac__type_sizeof_;
9719 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9726 rm -f conftest.$ac_objext
9727 if { (ac_try="$ac_compile"
9729 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9730 *) ac_try_echo
=$ac_try;;
9732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9733 (eval "$ac_compile") 2>conftest.er1
9735 grep -v '^ *+' conftest.er1
>conftest.err
9737 cat conftest.err
>&5
9738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739 (exit $ac_status); } && {
9740 test -z "$ac_c_werror_flag" ||
9741 test ! -s conftest.err
9742 } && test -s conftest.
$ac_objext; then
9743 ac_lo
=$ac_mid; break
9745 echo "$as_me: failed program was:" >&5
9746 sed 's/^/| /' conftest.
$ac_ext >&5
9748 ac_hi
=`expr '(' $ac_mid ')' - 1`
9749 if test $ac_mid -le $ac_hi; then
9753 ac_mid
=`expr 2 '*' $ac_mid`
9756 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9759 echo "$as_me: failed program was:" >&5
9760 sed 's/^/| /' conftest.
$ac_ext >&5
9765 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9768 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9769 # Binary search between lo and hi bounds.
9770 while test "x$ac_lo" != "x$ac_hi"; do
9771 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9772 cat >conftest.
$ac_ext <<_ACEOF
9775 cat confdefs.h
>>conftest.
$ac_ext
9776 cat >>conftest.
$ac_ext <<_ACEOF
9777 /* end confdefs.h. */
9778 $ac_includes_default
9779 typedef fpos_t ac__type_sizeof_;
9783 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9790 rm -f conftest.
$ac_objext
9791 if { (ac_try
="$ac_compile"
9793 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9794 *) ac_try_echo=$ac_try;;
9796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9797 (eval "$ac_compile") 2>conftest.er1
9799 grep -v '^ *+' conftest.er1 >conftest.err
9801 cat conftest.err >&5
9802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803 (exit $ac_status); } && {
9804 test -z "$ac_c_werror_flag" ||
9805 test ! -s conftest.err
9806 } && test -s conftest.$ac_objext; then
9809 echo "$as_me: failed program was:" >&5
9810 sed 's/^/| /' conftest.$ac_ext >&5
9812 ac_lo=`expr '(' $ac_mid ')' + 1`
9815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9818 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
9819 '') if test "$ac_cv_type_fpos_t" = yes; then
9820 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
9821 See \`config.log
' for more details." >&5
9822 echo "$as_me: error: cannot compute sizeof (fpos_t)
9823 See \`config.log' for more details.
" >&2;}
9824 { (exit 77); exit 77; }; }
9826 ac_cv_sizeof_fpos_t=0
9830 cat >conftest.$ac_ext <<_ACEOF
9833 cat confdefs.h >>conftest.$ac_ext
9834 cat >>conftest.$ac_ext <<_ACEOF
9835 /* end confdefs.h. */
9836 $ac_includes_default
9837 typedef fpos_t ac__type_sizeof_;
9838 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9839 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9846 FILE *f = fopen ("conftest.val
", "w
");
9849 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9851 long int i = longval ();
9852 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9854 fprintf (f, "%ld
\n", i);
9858 unsigned long int i = ulongval ();
9859 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9861 fprintf (f, "%lu
\n", i);
9863 return ferror (f) || fclose (f) != 0;
9869 rm -f conftest$ac_exeext
9870 if { (ac_try="$ac_link"
9872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9873 *) ac_try_echo=$ac_try;;
9875 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9876 (eval "$ac_link") 2>&5
9878 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9879 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9880 { (case "(($ac_try" in
9881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9882 *) ac_try_echo=$ac_try;;
9884 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9885 (eval "$ac_try") 2>&5
9887 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9888 (exit $ac_status); }; }; then
9889 ac_cv_sizeof_fpos_t=`cat conftest.val`
9891 echo "$as_me: program exited with status
$ac_status" >&5
9892 echo "$as_me: failed program was
:" >&5
9893 sed 's/^/| /' conftest.$ac_ext >&5
9896 if test "$ac_cv_type_fpos_t" = yes; then
9897 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(fpos_t
)
9898 See \
`config.log' for more details." >&5
9899 echo "$as_me: error: cannot compute sizeof (fpos_t)
9900 See \`config.log
' for more details." >&2;}
9901 { (exit 77); exit 77; }; }
9903 ac_cv_sizeof_fpos_t=0
9906 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9910 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
9911 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; }
9915 cat >>confdefs.h <<_ACEOF
9916 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
9920 { echo "$as_me:$LINENO: checking for size_t" >&5
9921 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
9922 if test "${ac_cv_type_size_t+set}" = set; then
9923 echo $ECHO_N "(cached) $ECHO_C" >&6
9925 cat >conftest.$ac_ext <<_ACEOF
9928 cat confdefs.h >>conftest.$ac_ext
9929 cat >>conftest.$ac_ext <<_ACEOF
9930 /* end confdefs.h. */
9931 $ac_includes_default
9932 typedef size_t ac__type_new_;
9936 if ((ac__type_new_ *) 0)
9938 if (sizeof (ac__type_new_))
9944 rm -f conftest.$ac_objext
9945 if { (ac_try="$ac_compile"
9947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9948 *) ac_try_echo=$ac_try;;
9950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9951 (eval "$ac_compile") 2>conftest.er1
9953 grep -v '^
*+' conftest.er1 >conftest.err
9955 cat conftest.err >&5
9956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957 (exit $ac_status); } && {
9958 test -z "$ac_c_werror_flag" ||
9959 test ! -s conftest.err
9960 } && test -s conftest.$ac_objext; then
9961 ac_cv_type_size_t=yes
9963 echo "$as_me: failed program was:" >&5
9964 sed 's
/^
/|
/' conftest.$ac_ext >&5
9966 ac_cv_type_size_t=no
9969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9971 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9972 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
9974 # The cast to long int works around a bug in the HP C Compiler
9975 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9976 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9977 # This bug is HP SR number 8606223364.
9978 { echo "$as_me:$LINENO: checking size of size_t" >&5
9979 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
9980 if test "${ac_cv_sizeof_size_t+set}" = set; then
9981 echo $ECHO_N "(cached) $ECHO_C" >&6
9983 if test "$cross_compiling" = yes; then
9984 # Depending upon the size, compute the lo and hi bounds.
9985 cat >conftest.
$ac_ext <<_ACEOF
9988 cat confdefs.h
>>conftest.
$ac_ext
9989 cat >>conftest.
$ac_ext <<_ACEOF
9990 /* end confdefs.h. */
9991 $ac_includes_default
9992 typedef size_t ac__type_sizeof_;
9996 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10003 rm -f conftest.
$ac_objext
10004 if { (ac_try
="$ac_compile"
10005 case "(($ac_try" in
10006 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10007 *) ac_try_echo=$ac_try;;
10009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10010 (eval "$ac_compile") 2>conftest.er1
10012 grep -v '^ *+' conftest.er1 >conftest.err
10014 cat conftest.err >&5
10015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 (exit $ac_status); } && {
10017 test -z "$ac_c_werror_flag" ||
10018 test ! -s conftest.err
10019 } && test -s conftest.$ac_objext; then
10022 cat >conftest.$ac_ext <<_ACEOF
10025 cat confdefs.h >>conftest.$ac_ext
10026 cat >>conftest.$ac_ext <<_ACEOF
10027 /* end confdefs.h. */
10028 $ac_includes_default
10029 typedef size_t ac__type_sizeof_;
10033 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10040 rm -f conftest.$ac_objext
10041 if { (ac_try="$ac_compile"
10042 case "(($ac_try" in
10043 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10044 *) ac_try_echo
=$ac_try;;
10046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10047 (eval "$ac_compile") 2>conftest.er1
10049 grep -v '^ *+' conftest.er1
>conftest.err
10051 cat conftest.err
>&5
10052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053 (exit $ac_status); } && {
10054 test -z "$ac_c_werror_flag" ||
10055 test ! -s conftest.err
10056 } && test -s conftest.
$ac_objext; then
10057 ac_hi
=$ac_mid; break
10059 echo "$as_me: failed program was:" >&5
10060 sed 's/^/| /' conftest.
$ac_ext >&5
10062 ac_lo
=`expr $ac_mid + 1`
10063 if test $ac_lo -le $ac_mid; then
10067 ac_mid
=`expr 2 '*' $ac_mid + 1`
10070 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10073 echo "$as_me: failed program was:" >&5
10074 sed 's/^/| /' conftest.
$ac_ext >&5
10076 cat >conftest.
$ac_ext <<_ACEOF
10079 cat confdefs.h
>>conftest.
$ac_ext
10080 cat >>conftest.
$ac_ext <<_ACEOF
10081 /* end confdefs.h. */
10082 $ac_includes_default
10083 typedef size_t ac__type_sizeof_;
10087 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10094 rm -f conftest.
$ac_objext
10095 if { (ac_try
="$ac_compile"
10096 case "(($ac_try" in
10097 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10098 *) ac_try_echo=$ac_try;;
10100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10101 (eval "$ac_compile") 2>conftest.er1
10103 grep -v '^ *+' conftest.er1 >conftest.err
10105 cat conftest.err >&5
10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); } && {
10108 test -z "$ac_c_werror_flag" ||
10109 test ! -s conftest.err
10110 } && test -s conftest.$ac_objext; then
10113 cat >conftest.$ac_ext <<_ACEOF
10116 cat confdefs.h >>conftest.$ac_ext
10117 cat >>conftest.$ac_ext <<_ACEOF
10118 /* end confdefs.h. */
10119 $ac_includes_default
10120 typedef size_t ac__type_sizeof_;
10124 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10131 rm -f conftest.$ac_objext
10132 if { (ac_try="$ac_compile"
10133 case "(($ac_try" in
10134 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10135 *) ac_try_echo
=$ac_try;;
10137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10138 (eval "$ac_compile") 2>conftest.er1
10140 grep -v '^ *+' conftest.er1
>conftest.err
10142 cat conftest.err
>&5
10143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144 (exit $ac_status); } && {
10145 test -z "$ac_c_werror_flag" ||
10146 test ! -s conftest.err
10147 } && test -s conftest.
$ac_objext; then
10148 ac_lo
=$ac_mid; break
10150 echo "$as_me: failed program was:" >&5
10151 sed 's/^/| /' conftest.
$ac_ext >&5
10153 ac_hi
=`expr '(' $ac_mid ')' - 1`
10154 if test $ac_mid -le $ac_hi; then
10158 ac_mid
=`expr 2 '*' $ac_mid`
10161 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10164 echo "$as_me: failed program was:" >&5
10165 sed 's/^/| /' conftest.
$ac_ext >&5
10170 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10173 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10174 # Binary search between lo and hi bounds.
10175 while test "x$ac_lo" != "x$ac_hi"; do
10176 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10177 cat >conftest.
$ac_ext <<_ACEOF
10180 cat confdefs.h
>>conftest.
$ac_ext
10181 cat >>conftest.
$ac_ext <<_ACEOF
10182 /* end confdefs.h. */
10183 $ac_includes_default
10184 typedef size_t ac__type_sizeof_;
10188 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10195 rm -f conftest.
$ac_objext
10196 if { (ac_try
="$ac_compile"
10197 case "(($ac_try" in
10198 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10199 *) ac_try_echo=$ac_try;;
10201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10202 (eval "$ac_compile") 2>conftest.er1
10204 grep -v '^ *+' conftest.er1 >conftest.err
10206 cat conftest.err >&5
10207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208 (exit $ac_status); } && {
10209 test -z "$ac_c_werror_flag" ||
10210 test ! -s conftest.err
10211 } && test -s conftest.$ac_objext; then
10214 echo "$as_me: failed program was:" >&5
10215 sed 's/^/| /' conftest.$ac_ext >&5
10217 ac_lo=`expr '(' $ac_mid ')' + 1`
10220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10223 ?*) ac_cv_sizeof_size_t=$ac_lo;;
10224 '') if test "$ac_cv_type_size_t" = yes; then
10225 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10226 See \`config.log
' for more details." >&5
10227 echo "$as_me: error: cannot compute sizeof (size_t)
10228 See \`config.log' for more details.
" >&2;}
10229 { (exit 77); exit 77; }; }
10231 ac_cv_sizeof_size_t=0
10235 cat >conftest.$ac_ext <<_ACEOF
10238 cat confdefs.h >>conftest.$ac_ext
10239 cat >>conftest.$ac_ext <<_ACEOF
10240 /* end confdefs.h. */
10241 $ac_includes_default
10242 typedef size_t ac__type_sizeof_;
10243 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10244 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10246 #include <stdlib.h>
10251 FILE *f = fopen ("conftest.val
", "w
");
10254 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10256 long int i = longval ();
10257 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10259 fprintf (f, "%ld
\n", i);
10263 unsigned long int i = ulongval ();
10264 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10266 fprintf (f, "%lu
\n", i);
10268 return ferror (f) || fclose (f) != 0;
10274 rm -f conftest$ac_exeext
10275 if { (ac_try="$ac_link"
10276 case "(($ac_try" in
10277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10278 *) ac_try_echo=$ac_try;;
10280 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10281 (eval "$ac_link") 2>&5
10283 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10284 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10285 { (case "(($ac_try" in
10286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10287 *) ac_try_echo=$ac_try;;
10289 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10290 (eval "$ac_try") 2>&5
10292 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10293 (exit $ac_status); }; }; then
10294 ac_cv_sizeof_size_t=`cat conftest.val`
10296 echo "$as_me: program exited with status
$ac_status" >&5
10297 echo "$as_me: failed program was
:" >&5
10298 sed 's/^/| /' conftest.$ac_ext >&5
10300 ( exit $ac_status )
10301 if test "$ac_cv_type_size_t" = yes; then
10302 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(size_t
)
10303 See \
`config.log' for more details." >&5
10304 echo "$as_me: error: cannot compute sizeof (size_t)
10305 See \`config.log
' for more details." >&2;}
10306 { (exit 77); exit 77; }; }
10308 ac_cv_sizeof_size_t=0
10311 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10315 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10316 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
10320 cat >>confdefs.h <<_ACEOF
10321 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10325 { echo "$as_me:$LINENO: checking for pid_t" >&5
10326 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10327 if test "${ac_cv_type_pid_t+set}" = set; then
10328 echo $ECHO_N "(cached) $ECHO_C" >&6
10330 cat >conftest.$ac_ext <<_ACEOF
10333 cat confdefs.h >>conftest.$ac_ext
10334 cat >>conftest.$ac_ext <<_ACEOF
10335 /* end confdefs.h. */
10336 $ac_includes_default
10337 typedef pid_t ac__type_new_;
10341 if ((ac__type_new_ *) 0)
10343 if (sizeof (ac__type_new_))
10349 rm -f conftest.$ac_objext
10350 if { (ac_try="$ac_compile"
10351 case "(($ac_try" in
10352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10353 *) ac_try_echo=$ac_try;;
10355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10356 (eval "$ac_compile") 2>conftest.er1
10358 grep -v '^
*+' conftest.er1 >conftest.err
10360 cat conftest.err >&5
10361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362 (exit $ac_status); } && {
10363 test -z "$ac_c_werror_flag" ||
10364 test ! -s conftest.err
10365 } && test -s conftest.$ac_objext; then
10366 ac_cv_type_pid_t=yes
10368 echo "$as_me: failed program was:" >&5
10369 sed 's
/^
/|
/' conftest.$ac_ext >&5
10371 ac_cv_type_pid_t=no
10374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10376 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10377 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10379 # The cast to long int works around a bug in the HP C Compiler
10380 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10381 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10382 # This bug is HP SR number 8606223364.
10383 { echo "$as_me:$LINENO: checking size of pid_t" >&5
10384 echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; }
10385 if test "${ac_cv_sizeof_pid_t+set}" = set; then
10386 echo $ECHO_N "(cached) $ECHO_C" >&6
10388 if test "$cross_compiling" = yes; then
10389 # Depending upon the size, compute the lo and hi bounds.
10390 cat >conftest.
$ac_ext <<_ACEOF
10393 cat confdefs.h
>>conftest.
$ac_ext
10394 cat >>conftest.
$ac_ext <<_ACEOF
10395 /* end confdefs.h. */
10396 $ac_includes_default
10397 typedef pid_t ac__type_sizeof_;
10401 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10408 rm -f conftest.
$ac_objext
10409 if { (ac_try
="$ac_compile"
10410 case "(($ac_try" in
10411 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10412 *) ac_try_echo=$ac_try;;
10414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10415 (eval "$ac_compile") 2>conftest.er1
10417 grep -v '^ *+' conftest.er1 >conftest.err
10419 cat conftest.err >&5
10420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421 (exit $ac_status); } && {
10422 test -z "$ac_c_werror_flag" ||
10423 test ! -s conftest.err
10424 } && test -s conftest.$ac_objext; then
10427 cat >conftest.$ac_ext <<_ACEOF
10430 cat confdefs.h >>conftest.$ac_ext
10431 cat >>conftest.$ac_ext <<_ACEOF
10432 /* end confdefs.h. */
10433 $ac_includes_default
10434 typedef pid_t ac__type_sizeof_;
10438 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10445 rm -f conftest.$ac_objext
10446 if { (ac_try="$ac_compile"
10447 case "(($ac_try" in
10448 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10449 *) ac_try_echo
=$ac_try;;
10451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10452 (eval "$ac_compile") 2>conftest.er1
10454 grep -v '^ *+' conftest.er1
>conftest.err
10456 cat conftest.err
>&5
10457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458 (exit $ac_status); } && {
10459 test -z "$ac_c_werror_flag" ||
10460 test ! -s conftest.err
10461 } && test -s conftest.
$ac_objext; then
10462 ac_hi
=$ac_mid; break
10464 echo "$as_me: failed program was:" >&5
10465 sed 's/^/| /' conftest.
$ac_ext >&5
10467 ac_lo
=`expr $ac_mid + 1`
10468 if test $ac_lo -le $ac_mid; then
10472 ac_mid
=`expr 2 '*' $ac_mid + 1`
10475 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10478 echo "$as_me: failed program was:" >&5
10479 sed 's/^/| /' conftest.
$ac_ext >&5
10481 cat >conftest.
$ac_ext <<_ACEOF
10484 cat confdefs.h
>>conftest.
$ac_ext
10485 cat >>conftest.
$ac_ext <<_ACEOF
10486 /* end confdefs.h. */
10487 $ac_includes_default
10488 typedef pid_t ac__type_sizeof_;
10492 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10499 rm -f conftest.
$ac_objext
10500 if { (ac_try
="$ac_compile"
10501 case "(($ac_try" in
10502 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10503 *) ac_try_echo=$ac_try;;
10505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10506 (eval "$ac_compile") 2>conftest.er1
10508 grep -v '^ *+' conftest.er1 >conftest.err
10510 cat conftest.err >&5
10511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512 (exit $ac_status); } && {
10513 test -z "$ac_c_werror_flag" ||
10514 test ! -s conftest.err
10515 } && test -s conftest.$ac_objext; then
10518 cat >conftest.$ac_ext <<_ACEOF
10521 cat confdefs.h >>conftest.$ac_ext
10522 cat >>conftest.$ac_ext <<_ACEOF
10523 /* end confdefs.h. */
10524 $ac_includes_default
10525 typedef pid_t ac__type_sizeof_;
10529 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10536 rm -f conftest.$ac_objext
10537 if { (ac_try="$ac_compile"
10538 case "(($ac_try" in
10539 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10540 *) ac_try_echo
=$ac_try;;
10542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10543 (eval "$ac_compile") 2>conftest.er1
10545 grep -v '^ *+' conftest.er1
>conftest.err
10547 cat conftest.err
>&5
10548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549 (exit $ac_status); } && {
10550 test -z "$ac_c_werror_flag" ||
10551 test ! -s conftest.err
10552 } && test -s conftest.
$ac_objext; then
10553 ac_lo
=$ac_mid; break
10555 echo "$as_me: failed program was:" >&5
10556 sed 's/^/| /' conftest.
$ac_ext >&5
10558 ac_hi
=`expr '(' $ac_mid ')' - 1`
10559 if test $ac_mid -le $ac_hi; then
10563 ac_mid
=`expr 2 '*' $ac_mid`
10566 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10569 echo "$as_me: failed program was:" >&5
10570 sed 's/^/| /' conftest.
$ac_ext >&5
10575 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10578 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10579 # Binary search between lo and hi bounds.
10580 while test "x$ac_lo" != "x$ac_hi"; do
10581 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10582 cat >conftest.
$ac_ext <<_ACEOF
10585 cat confdefs.h
>>conftest.
$ac_ext
10586 cat >>conftest.
$ac_ext <<_ACEOF
10587 /* end confdefs.h. */
10588 $ac_includes_default
10589 typedef pid_t ac__type_sizeof_;
10593 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10600 rm -f conftest.
$ac_objext
10601 if { (ac_try
="$ac_compile"
10602 case "(($ac_try" in
10603 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10604 *) ac_try_echo=$ac_try;;
10606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10607 (eval "$ac_compile") 2>conftest.er1
10609 grep -v '^ *+' conftest.er1 >conftest.err
10611 cat conftest.err >&5
10612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613 (exit $ac_status); } && {
10614 test -z "$ac_c_werror_flag" ||
10615 test ! -s conftest.err
10616 } && test -s conftest.$ac_objext; then
10619 echo "$as_me: failed program was:" >&5
10620 sed 's/^/| /' conftest.$ac_ext >&5
10622 ac_lo=`expr '(' $ac_mid ')' + 1`
10625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10628 ?*) ac_cv_sizeof_pid_t=$ac_lo;;
10629 '') if test "$ac_cv_type_pid_t" = yes; then
10630 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
10631 See \`config.log
' for more details." >&5
10632 echo "$as_me: error: cannot compute sizeof (pid_t)
10633 See \`config.log' for more details.
" >&2;}
10634 { (exit 77); exit 77; }; }
10636 ac_cv_sizeof_pid_t=0
10640 cat >conftest.$ac_ext <<_ACEOF
10643 cat confdefs.h >>conftest.$ac_ext
10644 cat >>conftest.$ac_ext <<_ACEOF
10645 /* end confdefs.h. */
10646 $ac_includes_default
10647 typedef pid_t ac__type_sizeof_;
10648 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10649 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10651 #include <stdlib.h>
10656 FILE *f = fopen ("conftest.val
", "w
");
10659 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10661 long int i = longval ();
10662 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10664 fprintf (f, "%ld
\n", i);
10668 unsigned long int i = ulongval ();
10669 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10671 fprintf (f, "%lu
\n", i);
10673 return ferror (f) || fclose (f) != 0;
10679 rm -f conftest$ac_exeext
10680 if { (ac_try="$ac_link"
10681 case "(($ac_try" in
10682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10683 *) ac_try_echo=$ac_try;;
10685 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10686 (eval "$ac_link") 2>&5
10688 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10689 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10690 { (case "(($ac_try" in
10691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10692 *) ac_try_echo=$ac_try;;
10694 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10695 (eval "$ac_try") 2>&5
10697 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10698 (exit $ac_status); }; }; then
10699 ac_cv_sizeof_pid_t=`cat conftest.val`
10701 echo "$as_me: program exited with status
$ac_status" >&5
10702 echo "$as_me: failed program was
:" >&5
10703 sed 's/^/| /' conftest.$ac_ext >&5
10705 ( exit $ac_status )
10706 if test "$ac_cv_type_pid_t" = yes; then
10707 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(pid_t
)
10708 See \
`config.log' for more details." >&5
10709 echo "$as_me: error: cannot compute sizeof (pid_t)
10710 See \`config.log
' for more details." >&2;}
10711 { (exit 77); exit 77; }; }
10713 ac_cv_sizeof_pid_t=0
10716 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10720 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
10721 echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; }
10725 cat >>confdefs.h <<_ACEOF
10726 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
10731 { echo "$as_me:$LINENO: checking for long long support" >&5
10732 echo $ECHO_N "checking for long long support... $ECHO_C" >&6; }
10734 cat >conftest.$ac_ext <<_ACEOF
10737 cat confdefs.h >>conftest.$ac_ext
10738 cat >>conftest.$ac_ext <<_ACEOF
10739 /* end confdefs.h. */
10744 long long x; x = (long long)0;
10749 rm -f conftest.$ac_objext
10750 if { (ac_try="$ac_compile"
10751 case "(($ac_try" in
10752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10753 *) ac_try_echo=$ac_try;;
10755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10756 (eval "$ac_compile") 2>conftest.er1
10758 grep -v '^
*+' conftest.er1 >conftest.err
10760 cat conftest.err >&5
10761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10762 (exit $ac_status); } && {
10763 test -z "$ac_c_werror_flag" ||
10764 test ! -s conftest.err
10765 } && test -s conftest.$ac_objext; then
10768 cat >>confdefs.h <<\_ACEOF
10769 #define HAVE_LONG_LONG 1
10775 echo "$as_me: failed program was:" >&5
10776 sed 's
/^
/|
/' conftest.$ac_ext >&5
10781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10782 { echo "$as_me:$LINENO: result: $have_long_long" >&5
10783 echo "${ECHO_T}$have_long_long" >&6; }
10784 if test "$have_long_long" = yes ; then
10785 { echo "$as_me:$LINENO: checking for long long" >&5
10786 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
10787 if test "${ac_cv_type_long_long+set}" = set; then
10788 echo $ECHO_N "(cached) $ECHO_C" >&6
10790 cat >conftest.$ac_ext <<_ACEOF
10793 cat confdefs.h >>conftest.$ac_ext
10794 cat >>conftest.$ac_ext <<_ACEOF
10795 /* end confdefs.h. */
10796 $ac_includes_default
10797 typedef long long ac__type_new_;
10801 if ((ac__type_new_ *) 0)
10803 if (sizeof (ac__type_new_))
10809 rm -f conftest.$ac_objext
10810 if { (ac_try="$ac_compile"
10811 case "(($ac_try" in
10812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10813 *) ac_try_echo=$ac_try;;
10815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10816 (eval "$ac_compile") 2>conftest.er1
10818 grep -v '^
*+' conftest.er1 >conftest.err
10820 cat conftest.err >&5
10821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822 (exit $ac_status); } && {
10823 test -z "$ac_c_werror_flag" ||
10824 test ! -s conftest.err
10825 } && test -s conftest.$ac_objext; then
10826 ac_cv_type_long_long=yes
10828 echo "$as_me: failed program was:" >&5
10829 sed 's
/^
/|
/' conftest.$ac_ext >&5
10831 ac_cv_type_long_long=no
10834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10836 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
10837 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
10839 # The cast to long int works around a bug in the HP C Compiler
10840 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10841 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10842 # This bug is HP SR number 8606223364.
10843 { echo "$as_me:$LINENO: checking size of long long" >&5
10844 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
10845 if test "${ac_cv_sizeof_long_long+set}" = set; then
10846 echo $ECHO_N "(cached) $ECHO_C" >&6
10848 if test "$cross_compiling" = yes; then
10849 # Depending upon the size, compute the lo and hi bounds.
10850 cat >conftest.
$ac_ext <<_ACEOF
10853 cat confdefs.h
>>conftest.
$ac_ext
10854 cat >>conftest.
$ac_ext <<_ACEOF
10855 /* end confdefs.h. */
10856 $ac_includes_default
10857 typedef long long ac__type_sizeof_;
10861 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10868 rm -f conftest.
$ac_objext
10869 if { (ac_try
="$ac_compile"
10870 case "(($ac_try" in
10871 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10872 *) ac_try_echo=$ac_try;;
10874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10875 (eval "$ac_compile") 2>conftest.er1
10877 grep -v '^ *+' conftest.er1 >conftest.err
10879 cat conftest.err >&5
10880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881 (exit $ac_status); } && {
10882 test -z "$ac_c_werror_flag" ||
10883 test ! -s conftest.err
10884 } && test -s conftest.$ac_objext; then
10887 cat >conftest.$ac_ext <<_ACEOF
10890 cat confdefs.h >>conftest.$ac_ext
10891 cat >>conftest.$ac_ext <<_ACEOF
10892 /* end confdefs.h. */
10893 $ac_includes_default
10894 typedef long long ac__type_sizeof_;
10898 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10905 rm -f conftest.$ac_objext
10906 if { (ac_try="$ac_compile"
10907 case "(($ac_try" in
10908 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10909 *) ac_try_echo
=$ac_try;;
10911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10912 (eval "$ac_compile") 2>conftest.er1
10914 grep -v '^ *+' conftest.er1
>conftest.err
10916 cat conftest.err
>&5
10917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918 (exit $ac_status); } && {
10919 test -z "$ac_c_werror_flag" ||
10920 test ! -s conftest.err
10921 } && test -s conftest.
$ac_objext; then
10922 ac_hi
=$ac_mid; break
10924 echo "$as_me: failed program was:" >&5
10925 sed 's/^/| /' conftest.
$ac_ext >&5
10927 ac_lo
=`expr $ac_mid + 1`
10928 if test $ac_lo -le $ac_mid; then
10932 ac_mid
=`expr 2 '*' $ac_mid + 1`
10935 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10938 echo "$as_me: failed program was:" >&5
10939 sed 's/^/| /' conftest.
$ac_ext >&5
10941 cat >conftest.
$ac_ext <<_ACEOF
10944 cat confdefs.h
>>conftest.
$ac_ext
10945 cat >>conftest.
$ac_ext <<_ACEOF
10946 /* end confdefs.h. */
10947 $ac_includes_default
10948 typedef long long ac__type_sizeof_;
10952 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10959 rm -f conftest.
$ac_objext
10960 if { (ac_try
="$ac_compile"
10961 case "(($ac_try" in
10962 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10963 *) ac_try_echo=$ac_try;;
10965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10966 (eval "$ac_compile") 2>conftest.er1
10968 grep -v '^ *+' conftest.er1 >conftest.err
10970 cat conftest.err >&5
10971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972 (exit $ac_status); } && {
10973 test -z "$ac_c_werror_flag" ||
10974 test ! -s conftest.err
10975 } && test -s conftest.$ac_objext; then
10978 cat >conftest.$ac_ext <<_ACEOF
10981 cat confdefs.h >>conftest.$ac_ext
10982 cat >>conftest.$ac_ext <<_ACEOF
10983 /* end confdefs.h. */
10984 $ac_includes_default
10985 typedef long long ac__type_sizeof_;
10989 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10996 rm -f conftest.$ac_objext
10997 if { (ac_try="$ac_compile"
10998 case "(($ac_try" in
10999 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11000 *) ac_try_echo
=$ac_try;;
11002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11003 (eval "$ac_compile") 2>conftest.er1
11005 grep -v '^ *+' conftest.er1
>conftest.err
11007 cat conftest.err
>&5
11008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009 (exit $ac_status); } && {
11010 test -z "$ac_c_werror_flag" ||
11011 test ! -s conftest.err
11012 } && test -s conftest.
$ac_objext; then
11013 ac_lo
=$ac_mid; break
11015 echo "$as_me: failed program was:" >&5
11016 sed 's/^/| /' conftest.
$ac_ext >&5
11018 ac_hi
=`expr '(' $ac_mid ')' - 1`
11019 if test $ac_mid -le $ac_hi; then
11023 ac_mid
=`expr 2 '*' $ac_mid`
11026 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11029 echo "$as_me: failed program was:" >&5
11030 sed 's/^/| /' conftest.
$ac_ext >&5
11035 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11038 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11039 # Binary search between lo and hi bounds.
11040 while test "x$ac_lo" != "x$ac_hi"; do
11041 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11042 cat >conftest.
$ac_ext <<_ACEOF
11045 cat confdefs.h
>>conftest.
$ac_ext
11046 cat >>conftest.
$ac_ext <<_ACEOF
11047 /* end confdefs.h. */
11048 $ac_includes_default
11049 typedef long long ac__type_sizeof_;
11053 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11060 rm -f conftest.
$ac_objext
11061 if { (ac_try
="$ac_compile"
11062 case "(($ac_try" in
11063 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11064 *) ac_try_echo=$ac_try;;
11066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11067 (eval "$ac_compile") 2>conftest.er1
11069 grep -v '^ *+' conftest.er1 >conftest.err
11071 cat conftest.err >&5
11072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073 (exit $ac_status); } && {
11074 test -z "$ac_c_werror_flag" ||
11075 test ! -s conftest.err
11076 } && test -s conftest.$ac_objext; then
11079 echo "$as_me: failed program was:" >&5
11080 sed 's/^/| /' conftest.$ac_ext >&5
11082 ac_lo=`expr '(' $ac_mid ')' + 1`
11085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11088 ?*) ac_cv_sizeof_long_long=$ac_lo;;
11089 '') if test "$ac_cv_type_long_long" = yes; then
11090 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11091 See \`config.log
' for more details." >&5
11092 echo "$as_me: error: cannot compute sizeof (long long)
11093 See \`config.log' for more details.
" >&2;}
11094 { (exit 77); exit 77; }; }
11096 ac_cv_sizeof_long_long=0
11100 cat >conftest.$ac_ext <<_ACEOF
11103 cat confdefs.h >>conftest.$ac_ext
11104 cat >>conftest.$ac_ext <<_ACEOF
11105 /* end confdefs.h. */
11106 $ac_includes_default
11107 typedef long long ac__type_sizeof_;
11108 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11109 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11111 #include <stdlib.h>
11116 FILE *f = fopen ("conftest.val
", "w
");
11119 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11121 long int i = longval ();
11122 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11124 fprintf (f, "%ld
\n", i);
11128 unsigned long int i = ulongval ();
11129 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11131 fprintf (f, "%lu
\n", i);
11133 return ferror (f) || fclose (f) != 0;
11139 rm -f conftest$ac_exeext
11140 if { (ac_try="$ac_link"
11141 case "(($ac_try" in
11142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11143 *) ac_try_echo=$ac_try;;
11145 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11146 (eval "$ac_link") 2>&5
11148 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11149 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11150 { (case "(($ac_try" in
11151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11152 *) ac_try_echo=$ac_try;;
11154 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11155 (eval "$ac_try") 2>&5
11157 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11158 (exit $ac_status); }; }; then
11159 ac_cv_sizeof_long_long=`cat conftest.val`
11161 echo "$as_me: program exited with status
$ac_status" >&5
11162 echo "$as_me: failed program was
:" >&5
11163 sed 's/^/| /' conftest.$ac_ext >&5
11165 ( exit $ac_status )
11166 if test "$ac_cv_type_long_long" = yes; then
11167 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long long
)
11168 See \
`config.log' for more details." >&5
11169 echo "$as_me: error: cannot compute sizeof (long long)
11170 See \`config.log
' for more details." >&2;}
11171 { (exit 77); exit 77; }; }
11173 ac_cv_sizeof_long_long=0
11176 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11180 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11181 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
11185 cat >>confdefs.h <<_ACEOF
11186 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11192 { echo "$as_me:$LINENO: checking for long double support" >&5
11193 echo $ECHO_N "checking for long double support... $ECHO_C" >&6; }
11194 have_long_double=no
11195 cat >conftest.$ac_ext <<_ACEOF
11198 cat confdefs.h >>conftest.$ac_ext
11199 cat >>conftest.$ac_ext <<_ACEOF
11200 /* end confdefs.h. */
11205 long double x; x = (long double)0.;
11210 rm -f conftest.$ac_objext
11211 if { (ac_try="$ac_compile"
11212 case "(($ac_try" in
11213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11214 *) ac_try_echo=$ac_try;;
11216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11217 (eval "$ac_compile") 2>conftest.er1
11219 grep -v '^
*+' conftest.er1 >conftest.err
11221 cat conftest.err >&5
11222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223 (exit $ac_status); } && {
11224 test -z "$ac_c_werror_flag" ||
11225 test ! -s conftest.err
11226 } && test -s conftest.$ac_objext; then
11229 cat >>confdefs.h <<\_ACEOF
11230 #define HAVE_LONG_DOUBLE 1
11233 have_long_double=yes
11236 echo "$as_me: failed program was:" >&5
11237 sed 's
/^
/|
/' conftest.$ac_ext >&5
11242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11243 { echo "$as_me:$LINENO: result: $have_long_double" >&5
11244 echo "${ECHO_T}$have_long_double" >&6; }
11245 if test "$have_long_double" = yes ; then
11246 { echo "$as_me:$LINENO: checking for long double" >&5
11247 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
11248 if test "${ac_cv_type_long_double+set}" = set; then
11249 echo $ECHO_N "(cached) $ECHO_C" >&6
11251 cat >conftest.$ac_ext <<_ACEOF
11254 cat confdefs.h >>conftest.$ac_ext
11255 cat >>conftest.$ac_ext <<_ACEOF
11256 /* end confdefs.h. */
11257 $ac_includes_default
11258 typedef long double ac__type_new_;
11262 if ((ac__type_new_ *) 0)
11264 if (sizeof (ac__type_new_))
11270 rm -f conftest.$ac_objext
11271 if { (ac_try="$ac_compile"
11272 case "(($ac_try" in
11273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11274 *) ac_try_echo=$ac_try;;
11276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11277 (eval "$ac_compile") 2>conftest.er1
11279 grep -v '^
*+' conftest.er1 >conftest.err
11281 cat conftest.err >&5
11282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283 (exit $ac_status); } && {
11284 test -z "$ac_c_werror_flag" ||
11285 test ! -s conftest.err
11286 } && test -s conftest.$ac_objext; then
11287 ac_cv_type_long_double=yes
11289 echo "$as_me: failed program was:" >&5
11290 sed 's
/^
/|
/' conftest.$ac_ext >&5
11292 ac_cv_type_long_double=no
11295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11297 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
11298 echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
11300 # The cast to long int works around a bug in the HP C Compiler
11301 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11302 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11303 # This bug is HP SR number 8606223364.
11304 { echo "$as_me:$LINENO: checking size of long double" >&5
11305 echo $ECHO_N "checking size of long double... $ECHO_C" >&6; }
11306 if test "${ac_cv_sizeof_long_double+set}" = set; then
11307 echo $ECHO_N "(cached) $ECHO_C" >&6
11309 if test "$cross_compiling" = yes; then
11310 # Depending upon the size, compute the lo and hi bounds.
11311 cat >conftest.
$ac_ext <<_ACEOF
11314 cat confdefs.h
>>conftest.
$ac_ext
11315 cat >>conftest.
$ac_ext <<_ACEOF
11316 /* end confdefs.h. */
11317 $ac_includes_default
11318 typedef long double ac__type_sizeof_;
11322 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11329 rm -f conftest.
$ac_objext
11330 if { (ac_try
="$ac_compile"
11331 case "(($ac_try" in
11332 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11333 *) ac_try_echo=$ac_try;;
11335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11336 (eval "$ac_compile") 2>conftest.er1
11338 grep -v '^ *+' conftest.er1 >conftest.err
11340 cat conftest.err >&5
11341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342 (exit $ac_status); } && {
11343 test -z "$ac_c_werror_flag" ||
11344 test ! -s conftest.err
11345 } && test -s conftest.$ac_objext; then
11348 cat >conftest.$ac_ext <<_ACEOF
11351 cat confdefs.h >>conftest.$ac_ext
11352 cat >>conftest.$ac_ext <<_ACEOF
11353 /* end confdefs.h. */
11354 $ac_includes_default
11355 typedef long double ac__type_sizeof_;
11359 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11366 rm -f conftest.$ac_objext
11367 if { (ac_try="$ac_compile"
11368 case "(($ac_try" in
11369 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11370 *) ac_try_echo
=$ac_try;;
11372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11373 (eval "$ac_compile") 2>conftest.er1
11375 grep -v '^ *+' conftest.er1
>conftest.err
11377 cat conftest.err
>&5
11378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379 (exit $ac_status); } && {
11380 test -z "$ac_c_werror_flag" ||
11381 test ! -s conftest.err
11382 } && test -s conftest.
$ac_objext; then
11383 ac_hi
=$ac_mid; break
11385 echo "$as_me: failed program was:" >&5
11386 sed 's/^/| /' conftest.
$ac_ext >&5
11388 ac_lo
=`expr $ac_mid + 1`
11389 if test $ac_lo -le $ac_mid; then
11393 ac_mid
=`expr 2 '*' $ac_mid + 1`
11396 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11399 echo "$as_me: failed program was:" >&5
11400 sed 's/^/| /' conftest.
$ac_ext >&5
11402 cat >conftest.
$ac_ext <<_ACEOF
11405 cat confdefs.h
>>conftest.
$ac_ext
11406 cat >>conftest.
$ac_ext <<_ACEOF
11407 /* end confdefs.h. */
11408 $ac_includes_default
11409 typedef long double ac__type_sizeof_;
11413 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11420 rm -f conftest.
$ac_objext
11421 if { (ac_try
="$ac_compile"
11422 case "(($ac_try" in
11423 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11424 *) ac_try_echo=$ac_try;;
11426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11427 (eval "$ac_compile") 2>conftest.er1
11429 grep -v '^ *+' conftest.er1 >conftest.err
11431 cat conftest.err >&5
11432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433 (exit $ac_status); } && {
11434 test -z "$ac_c_werror_flag" ||
11435 test ! -s conftest.err
11436 } && test -s conftest.$ac_objext; then
11439 cat >conftest.$ac_ext <<_ACEOF
11442 cat confdefs.h >>conftest.$ac_ext
11443 cat >>conftest.$ac_ext <<_ACEOF
11444 /* end confdefs.h. */
11445 $ac_includes_default
11446 typedef long double ac__type_sizeof_;
11450 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11457 rm -f conftest.$ac_objext
11458 if { (ac_try="$ac_compile"
11459 case "(($ac_try" in
11460 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11461 *) ac_try_echo
=$ac_try;;
11463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11464 (eval "$ac_compile") 2>conftest.er1
11466 grep -v '^ *+' conftest.er1
>conftest.err
11468 cat conftest.err
>&5
11469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470 (exit $ac_status); } && {
11471 test -z "$ac_c_werror_flag" ||
11472 test ! -s conftest.err
11473 } && test -s conftest.
$ac_objext; then
11474 ac_lo
=$ac_mid; break
11476 echo "$as_me: failed program was:" >&5
11477 sed 's/^/| /' conftest.
$ac_ext >&5
11479 ac_hi
=`expr '(' $ac_mid ')' - 1`
11480 if test $ac_mid -le $ac_hi; then
11484 ac_mid
=`expr 2 '*' $ac_mid`
11487 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11490 echo "$as_me: failed program was:" >&5
11491 sed 's/^/| /' conftest.
$ac_ext >&5
11496 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11499 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11500 # Binary search between lo and hi bounds.
11501 while test "x$ac_lo" != "x$ac_hi"; do
11502 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11503 cat >conftest.
$ac_ext <<_ACEOF
11506 cat confdefs.h
>>conftest.
$ac_ext
11507 cat >>conftest.
$ac_ext <<_ACEOF
11508 /* end confdefs.h. */
11509 $ac_includes_default
11510 typedef long double ac__type_sizeof_;
11514 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11521 rm -f conftest.
$ac_objext
11522 if { (ac_try
="$ac_compile"
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_compile") 2>conftest.er1
11530 grep -v '^ *+' conftest.er1 >conftest.err
11532 cat conftest.err >&5
11533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534 (exit $ac_status); } && {
11535 test -z "$ac_c_werror_flag" ||
11536 test ! -s conftest.err
11537 } && test -s conftest.$ac_objext; then
11540 echo "$as_me: failed program was:" >&5
11541 sed 's/^/| /' conftest.$ac_ext >&5
11543 ac_lo=`expr '(' $ac_mid ')' + 1`
11546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11549 ?*) ac_cv_sizeof_long_double=$ac_lo;;
11550 '') if test "$ac_cv_type_long_double" = yes; then
11551 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
11552 See \`config.log
' for more details." >&5
11553 echo "$as_me: error: cannot compute sizeof (long double)
11554 See \`config.log' for more details.
" >&2;}
11555 { (exit 77); exit 77; }; }
11557 ac_cv_sizeof_long_double=0
11561 cat >conftest.$ac_ext <<_ACEOF
11564 cat confdefs.h >>conftest.$ac_ext
11565 cat >>conftest.$ac_ext <<_ACEOF
11566 /* end confdefs.h. */
11567 $ac_includes_default
11568 typedef long double ac__type_sizeof_;
11569 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11570 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11572 #include <stdlib.h>
11577 FILE *f = fopen ("conftest.val
", "w
");
11580 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11582 long int i = longval ();
11583 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11585 fprintf (f, "%ld
\n", i);
11589 unsigned long int i = ulongval ();
11590 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11592 fprintf (f, "%lu
\n", i);
11594 return ferror (f) || fclose (f) != 0;
11600 rm -f conftest$ac_exeext
11601 if { (ac_try="$ac_link"
11602 case "(($ac_try" in
11603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11604 *) ac_try_echo=$ac_try;;
11606 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11607 (eval "$ac_link") 2>&5
11609 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11610 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11611 { (case "(($ac_try" in
11612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11613 *) ac_try_echo=$ac_try;;
11615 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11616 (eval "$ac_try") 2>&5
11618 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11619 (exit $ac_status); }; }; then
11620 ac_cv_sizeof_long_double=`cat conftest.val`
11622 echo "$as_me: program exited with status
$ac_status" >&5
11623 echo "$as_me: failed program was
:" >&5
11624 sed 's/^/| /' conftest.$ac_ext >&5
11626 ( exit $ac_status )
11627 if test "$ac_cv_type_long_double" = yes; then
11628 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long double
)
11629 See \
`config.log' for more details." >&5
11630 echo "$as_me: error: cannot compute sizeof (long double)
11631 See \`config.log
' for more details." >&2;}
11632 { (exit 77); exit 77; }; }
11634 ac_cv_sizeof_long_double=0
11637 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11641 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
11642 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; }
11646 cat >>confdefs.h <<_ACEOF
11647 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
11653 { echo "$as_me:$LINENO: checking for _Bool support" >&5
11654 echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; }
11656 cat >conftest.$ac_ext <<_ACEOF
11659 cat confdefs.h >>conftest.$ac_ext
11660 cat >>conftest.$ac_ext <<_ACEOF
11661 /* end confdefs.h. */
11666 _Bool x; x = (_Bool)0;
11671 rm -f conftest.$ac_objext
11672 if { (ac_try="$ac_compile"
11673 case "(($ac_try" in
11674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11675 *) ac_try_echo=$ac_try;;
11677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11678 (eval "$ac_compile") 2>conftest.er1
11680 grep -v '^
*+' conftest.er1 >conftest.err
11682 cat conftest.err >&5
11683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11684 (exit $ac_status); } && {
11685 test -z "$ac_c_werror_flag" ||
11686 test ! -s conftest.err
11687 } && test -s conftest.$ac_objext; then
11690 cat >>confdefs.h <<\_ACEOF
11691 #define HAVE_C99_BOOL 1
11697 echo "$as_me: failed program was:" >&5
11698 sed 's
/^
/|
/' conftest.$ac_ext >&5
11703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11704 { echo "$as_me:$LINENO: result: $have_c99_bool" >&5
11705 echo "${ECHO_T}$have_c99_bool" >&6; }
11706 if test "$have_c99_bool" = yes ; then
11707 { echo "$as_me:$LINENO: checking for _Bool" >&5
11708 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
11709 if test "${ac_cv_type__Bool+set}" = set; then
11710 echo $ECHO_N "(cached) $ECHO_C" >&6
11712 cat >conftest.$ac_ext <<_ACEOF
11715 cat confdefs.h >>conftest.$ac_ext
11716 cat >>conftest.$ac_ext <<_ACEOF
11717 /* end confdefs.h. */
11718 $ac_includes_default
11719 typedef _Bool ac__type_new_;
11723 if ((ac__type_new_ *) 0)
11725 if (sizeof (ac__type_new_))
11731 rm -f conftest.$ac_objext
11732 if { (ac_try="$ac_compile"
11733 case "(($ac_try" in
11734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11735 *) ac_try_echo=$ac_try;;
11737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11738 (eval "$ac_compile") 2>conftest.er1
11740 grep -v '^
*+' conftest.er1 >conftest.err
11742 cat conftest.err >&5
11743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744 (exit $ac_status); } && {
11745 test -z "$ac_c_werror_flag" ||
11746 test ! -s conftest.err
11747 } && test -s conftest.$ac_objext; then
11748 ac_cv_type__Bool=yes
11750 echo "$as_me: failed program was:" >&5
11751 sed 's
/^
/|
/' conftest.$ac_ext >&5
11753 ac_cv_type__Bool=no
11756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11758 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
11759 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
11761 # The cast to long int works around a bug in the HP C Compiler
11762 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11763 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11764 # This bug is HP SR number 8606223364.
11765 { echo "$as_me:$LINENO: checking size of _Bool" >&5
11766 echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; }
11767 if test "${ac_cv_sizeof__Bool+set}" = set; then
11768 echo $ECHO_N "(cached) $ECHO_C" >&6
11770 if test "$cross_compiling" = yes; then
11771 # Depending upon the size, compute the lo and hi bounds.
11772 cat >conftest.
$ac_ext <<_ACEOF
11775 cat confdefs.h
>>conftest.
$ac_ext
11776 cat >>conftest.
$ac_ext <<_ACEOF
11777 /* end confdefs.h. */
11778 $ac_includes_default
11779 typedef _Bool ac__type_sizeof_;
11783 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11790 rm -f conftest.
$ac_objext
11791 if { (ac_try
="$ac_compile"
11792 case "(($ac_try" in
11793 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11794 *) ac_try_echo=$ac_try;;
11796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11797 (eval "$ac_compile") 2>conftest.er1
11799 grep -v '^ *+' conftest.er1 >conftest.err
11801 cat conftest.err >&5
11802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803 (exit $ac_status); } && {
11804 test -z "$ac_c_werror_flag" ||
11805 test ! -s conftest.err
11806 } && test -s conftest.$ac_objext; then
11809 cat >conftest.$ac_ext <<_ACEOF
11812 cat confdefs.h >>conftest.$ac_ext
11813 cat >>conftest.$ac_ext <<_ACEOF
11814 /* end confdefs.h. */
11815 $ac_includes_default
11816 typedef _Bool ac__type_sizeof_;
11820 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11827 rm -f conftest.$ac_objext
11828 if { (ac_try="$ac_compile"
11829 case "(($ac_try" in
11830 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11831 *) ac_try_echo
=$ac_try;;
11833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11834 (eval "$ac_compile") 2>conftest.er1
11836 grep -v '^ *+' conftest.er1
>conftest.err
11838 cat conftest.err
>&5
11839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840 (exit $ac_status); } && {
11841 test -z "$ac_c_werror_flag" ||
11842 test ! -s conftest.err
11843 } && test -s conftest.
$ac_objext; then
11844 ac_hi
=$ac_mid; break
11846 echo "$as_me: failed program was:" >&5
11847 sed 's/^/| /' conftest.
$ac_ext >&5
11849 ac_lo
=`expr $ac_mid + 1`
11850 if test $ac_lo -le $ac_mid; then
11854 ac_mid
=`expr 2 '*' $ac_mid + 1`
11857 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11860 echo "$as_me: failed program was:" >&5
11861 sed 's/^/| /' conftest.
$ac_ext >&5
11863 cat >conftest.
$ac_ext <<_ACEOF
11866 cat confdefs.h
>>conftest.
$ac_ext
11867 cat >>conftest.
$ac_ext <<_ACEOF
11868 /* end confdefs.h. */
11869 $ac_includes_default
11870 typedef _Bool ac__type_sizeof_;
11874 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11881 rm -f conftest.
$ac_objext
11882 if { (ac_try
="$ac_compile"
11883 case "(($ac_try" in
11884 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11885 *) ac_try_echo=$ac_try;;
11887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11888 (eval "$ac_compile") 2>conftest.er1
11890 grep -v '^ *+' conftest.er1 >conftest.err
11892 cat conftest.err >&5
11893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11894 (exit $ac_status); } && {
11895 test -z "$ac_c_werror_flag" ||
11896 test ! -s conftest.err
11897 } && test -s conftest.$ac_objext; then
11900 cat >conftest.$ac_ext <<_ACEOF
11903 cat confdefs.h >>conftest.$ac_ext
11904 cat >>conftest.$ac_ext <<_ACEOF
11905 /* end confdefs.h. */
11906 $ac_includes_default
11907 typedef _Bool ac__type_sizeof_;
11911 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11918 rm -f conftest.$ac_objext
11919 if { (ac_try="$ac_compile"
11920 case "(($ac_try" in
11921 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11922 *) ac_try_echo
=$ac_try;;
11924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11925 (eval "$ac_compile") 2>conftest.er1
11927 grep -v '^ *+' conftest.er1
>conftest.err
11929 cat conftest.err
>&5
11930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931 (exit $ac_status); } && {
11932 test -z "$ac_c_werror_flag" ||
11933 test ! -s conftest.err
11934 } && test -s conftest.
$ac_objext; then
11935 ac_lo
=$ac_mid; break
11937 echo "$as_me: failed program was:" >&5
11938 sed 's/^/| /' conftest.
$ac_ext >&5
11940 ac_hi
=`expr '(' $ac_mid ')' - 1`
11941 if test $ac_mid -le $ac_hi; then
11945 ac_mid
=`expr 2 '*' $ac_mid`
11948 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11951 echo "$as_me: failed program was:" >&5
11952 sed 's/^/| /' conftest.
$ac_ext >&5
11957 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11960 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11961 # Binary search between lo and hi bounds.
11962 while test "x$ac_lo" != "x$ac_hi"; do
11963 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11964 cat >conftest.
$ac_ext <<_ACEOF
11967 cat confdefs.h
>>conftest.
$ac_ext
11968 cat >>conftest.
$ac_ext <<_ACEOF
11969 /* end confdefs.h. */
11970 $ac_includes_default
11971 typedef _Bool ac__type_sizeof_;
11975 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11982 rm -f conftest.
$ac_objext
11983 if { (ac_try
="$ac_compile"
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_compile") 2>conftest.er1
11991 grep -v '^ *+' conftest.er1 >conftest.err
11993 cat conftest.err >&5
11994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995 (exit $ac_status); } && {
11996 test -z "$ac_c_werror_flag" ||
11997 test ! -s conftest.err
11998 } && test -s conftest.$ac_objext; then
12001 echo "$as_me: failed program was:" >&5
12002 sed 's/^/| /' conftest.$ac_ext >&5
12004 ac_lo=`expr '(' $ac_mid ')' + 1`
12007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12010 ?*) ac_cv_sizeof__Bool=$ac_lo;;
12011 '') if test "$ac_cv_type__Bool" = yes; then
12012 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12013 See \`config.log
' for more details." >&5
12014 echo "$as_me: error: cannot compute sizeof (_Bool)
12015 See \`config.log' for more details.
" >&2;}
12016 { (exit 77); exit 77; }; }
12018 ac_cv_sizeof__Bool=0
12022 cat >conftest.$ac_ext <<_ACEOF
12025 cat confdefs.h >>conftest.$ac_ext
12026 cat >>conftest.$ac_ext <<_ACEOF
12027 /* end confdefs.h. */
12028 $ac_includes_default
12029 typedef _Bool ac__type_sizeof_;
12030 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12031 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12033 #include <stdlib.h>
12038 FILE *f = fopen ("conftest.val
", "w
");
12041 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12043 long int i = longval ();
12044 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12046 fprintf (f, "%ld
\n", i);
12050 unsigned long int i = ulongval ();
12051 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12053 fprintf (f, "%lu
\n", i);
12055 return ferror (f) || fclose (f) != 0;
12061 rm -f conftest$ac_exeext
12062 if { (ac_try="$ac_link"
12063 case "(($ac_try" in
12064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12065 *) ac_try_echo=$ac_try;;
12067 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12068 (eval "$ac_link") 2>&5
12070 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12071 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12072 { (case "(($ac_try" in
12073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12074 *) ac_try_echo=$ac_try;;
12076 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12077 (eval "$ac_try") 2>&5
12079 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12080 (exit $ac_status); }; }; then
12081 ac_cv_sizeof__Bool=`cat conftest.val`
12083 echo "$as_me: program exited with status
$ac_status" >&5
12084 echo "$as_me: failed program was
:" >&5
12085 sed 's/^/| /' conftest.$ac_ext >&5
12087 ( exit $ac_status )
12088 if test "$ac_cv_type__Bool" = yes; then
12089 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(_Bool
)
12090 See \
`config.log' for more details." >&5
12091 echo "$as_me: error: cannot compute sizeof (_Bool)
12092 See \`config.log
' for more details." >&2;}
12093 { (exit 77); exit 77; }; }
12095 ac_cv_sizeof__Bool=0
12098 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12102 { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
12103 echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; }
12107 cat >>confdefs.h <<_ACEOF
12108 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
12114 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12115 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12116 if test "${ac_cv_type_uintptr_t+set}" = set; then
12117 echo $ECHO_N "(cached) $ECHO_C" >&6
12119 cat >conftest.$ac_ext <<_ACEOF
12122 cat confdefs.h >>conftest.$ac_ext
12123 cat >>conftest.$ac_ext <<_ACEOF
12124 /* end confdefs.h. */
12125 #ifdef HAVE_STDINT_H
12126 #include <stdint.h>
12129 typedef uintptr_t ac__type_new_;
12133 if ((ac__type_new_ *) 0)
12135 if (sizeof (ac__type_new_))
12141 rm -f conftest.$ac_objext
12142 if { (ac_try="$ac_compile"
12143 case "(($ac_try" in
12144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12145 *) ac_try_echo=$ac_try;;
12147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12148 (eval "$ac_compile") 2>conftest.er1
12150 grep -v '^
*+' conftest.er1 >conftest.err
12152 cat conftest.err >&5
12153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154 (exit $ac_status); } && {
12155 test -z "$ac_c_werror_flag" ||
12156 test ! -s conftest.err
12157 } && test -s conftest.$ac_objext; then
12158 ac_cv_type_uintptr_t=yes
12160 echo "$as_me: failed program was:" >&5
12161 sed 's
/^
/|
/' conftest.$ac_ext >&5
12163 ac_cv_type_uintptr_t=no
12166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12168 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12169 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12170 if test $ac_cv_type_uintptr_t = yes; then
12172 cat >>confdefs.h <<_ACEOF
12173 #define HAVE_UINTPTR_T 1
12176 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12177 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12178 if test "${ac_cv_type_uintptr_t+set}" = set; then
12179 echo $ECHO_N "(cached) $ECHO_C" >&6
12181 cat >conftest.$ac_ext <<_ACEOF
12184 cat confdefs.h >>conftest.$ac_ext
12185 cat >>conftest.$ac_ext <<_ACEOF
12186 /* end confdefs.h. */
12187 $ac_includes_default
12188 typedef uintptr_t ac__type_new_;
12192 if ((ac__type_new_ *) 0)
12194 if (sizeof (ac__type_new_))
12200 rm -f conftest.$ac_objext
12201 if { (ac_try="$ac_compile"
12202 case "(($ac_try" in
12203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12204 *) ac_try_echo=$ac_try;;
12206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12207 (eval "$ac_compile") 2>conftest.er1
12209 grep -v '^
*+' conftest.er1 >conftest.err
12211 cat conftest.err >&5
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); } && {
12214 test -z "$ac_c_werror_flag" ||
12215 test ! -s conftest.err
12216 } && test -s conftest.$ac_objext; then
12217 ac_cv_type_uintptr_t=yes
12219 echo "$as_me: failed program was:" >&5
12220 sed 's
/^
/|
/' conftest.$ac_ext >&5
12222 ac_cv_type_uintptr_t=no
12225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12227 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12228 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12230 # The cast to long int works around a bug in the HP C Compiler
12231 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12232 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12233 # This bug is HP SR number 8606223364.
12234 { echo "$as_me:$LINENO: checking size of uintptr_t" >&5
12235 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; }
12236 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
12237 echo $ECHO_N "(cached) $ECHO_C" >&6
12239 if test "$cross_compiling" = yes; then
12240 # Depending upon the size, compute the lo and hi bounds.
12241 cat >conftest.
$ac_ext <<_ACEOF
12244 cat confdefs.h
>>conftest.
$ac_ext
12245 cat >>conftest.
$ac_ext <<_ACEOF
12246 /* end confdefs.h. */
12247 $ac_includes_default
12248 typedef uintptr_t ac__type_sizeof_;
12252 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12259 rm -f conftest.
$ac_objext
12260 if { (ac_try
="$ac_compile"
12261 case "(($ac_try" in
12262 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12263 *) ac_try_echo=$ac_try;;
12265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12266 (eval "$ac_compile") 2>conftest.er1
12268 grep -v '^ *+' conftest.er1 >conftest.err
12270 cat conftest.err >&5
12271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272 (exit $ac_status); } && {
12273 test -z "$ac_c_werror_flag" ||
12274 test ! -s conftest.err
12275 } && test -s conftest.$ac_objext; then
12278 cat >conftest.$ac_ext <<_ACEOF
12281 cat confdefs.h >>conftest.$ac_ext
12282 cat >>conftest.$ac_ext <<_ACEOF
12283 /* end confdefs.h. */
12284 $ac_includes_default
12285 typedef uintptr_t ac__type_sizeof_;
12289 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12296 rm -f conftest.$ac_objext
12297 if { (ac_try="$ac_compile"
12298 case "(($ac_try" in
12299 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12300 *) ac_try_echo
=$ac_try;;
12302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12303 (eval "$ac_compile") 2>conftest.er1
12305 grep -v '^ *+' conftest.er1
>conftest.err
12307 cat conftest.err
>&5
12308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309 (exit $ac_status); } && {
12310 test -z "$ac_c_werror_flag" ||
12311 test ! -s conftest.err
12312 } && test -s conftest.
$ac_objext; then
12313 ac_hi
=$ac_mid; break
12315 echo "$as_me: failed program was:" >&5
12316 sed 's/^/| /' conftest.
$ac_ext >&5
12318 ac_lo
=`expr $ac_mid + 1`
12319 if test $ac_lo -le $ac_mid; then
12323 ac_mid
=`expr 2 '*' $ac_mid + 1`
12326 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12329 echo "$as_me: failed program was:" >&5
12330 sed 's/^/| /' conftest.
$ac_ext >&5
12332 cat >conftest.
$ac_ext <<_ACEOF
12335 cat confdefs.h
>>conftest.
$ac_ext
12336 cat >>conftest.
$ac_ext <<_ACEOF
12337 /* end confdefs.h. */
12338 $ac_includes_default
12339 typedef uintptr_t ac__type_sizeof_;
12343 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12350 rm -f conftest.
$ac_objext
12351 if { (ac_try
="$ac_compile"
12352 case "(($ac_try" in
12353 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12354 *) ac_try_echo=$ac_try;;
12356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12357 (eval "$ac_compile") 2>conftest.er1
12359 grep -v '^ *+' conftest.er1 >conftest.err
12361 cat conftest.err >&5
12362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363 (exit $ac_status); } && {
12364 test -z "$ac_c_werror_flag" ||
12365 test ! -s conftest.err
12366 } && test -s conftest.$ac_objext; then
12369 cat >conftest.$ac_ext <<_ACEOF
12372 cat confdefs.h >>conftest.$ac_ext
12373 cat >>conftest.$ac_ext <<_ACEOF
12374 /* end confdefs.h. */
12375 $ac_includes_default
12376 typedef uintptr_t ac__type_sizeof_;
12380 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12387 rm -f conftest.$ac_objext
12388 if { (ac_try="$ac_compile"
12389 case "(($ac_try" in
12390 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12391 *) ac_try_echo
=$ac_try;;
12393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12394 (eval "$ac_compile") 2>conftest.er1
12396 grep -v '^ *+' conftest.er1
>conftest.err
12398 cat conftest.err
>&5
12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); } && {
12401 test -z "$ac_c_werror_flag" ||
12402 test ! -s conftest.err
12403 } && test -s conftest.
$ac_objext; then
12404 ac_lo
=$ac_mid; break
12406 echo "$as_me: failed program was:" >&5
12407 sed 's/^/| /' conftest.
$ac_ext >&5
12409 ac_hi
=`expr '(' $ac_mid ')' - 1`
12410 if test $ac_mid -le $ac_hi; then
12414 ac_mid
=`expr 2 '*' $ac_mid`
12417 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12420 echo "$as_me: failed program was:" >&5
12421 sed 's/^/| /' conftest.
$ac_ext >&5
12426 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12429 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12430 # Binary search between lo and hi bounds.
12431 while test "x$ac_lo" != "x$ac_hi"; do
12432 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12433 cat >conftest.
$ac_ext <<_ACEOF
12436 cat confdefs.h
>>conftest.
$ac_ext
12437 cat >>conftest.
$ac_ext <<_ACEOF
12438 /* end confdefs.h. */
12439 $ac_includes_default
12440 typedef uintptr_t ac__type_sizeof_;
12444 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12451 rm -f conftest.
$ac_objext
12452 if { (ac_try
="$ac_compile"
12453 case "(($ac_try" in
12454 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12455 *) ac_try_echo=$ac_try;;
12457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12458 (eval "$ac_compile") 2>conftest.er1
12460 grep -v '^ *+' conftest.er1 >conftest.err
12462 cat conftest.err >&5
12463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464 (exit $ac_status); } && {
12465 test -z "$ac_c_werror_flag" ||
12466 test ! -s conftest.err
12467 } && test -s conftest.$ac_objext; then
12470 echo "$as_me: failed program was:" >&5
12471 sed 's/^/| /' conftest.$ac_ext >&5
12473 ac_lo=`expr '(' $ac_mid ')' + 1`
12476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12479 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
12480 '') if test "$ac_cv_type_uintptr_t" = yes; then
12481 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
12482 See \`config.log
' for more details." >&5
12483 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12484 See \`config.log' for more details.
" >&2;}
12485 { (exit 77); exit 77; }; }
12487 ac_cv_sizeof_uintptr_t=0
12491 cat >conftest.$ac_ext <<_ACEOF
12494 cat confdefs.h >>conftest.$ac_ext
12495 cat >>conftest.$ac_ext <<_ACEOF
12496 /* end confdefs.h. */
12497 $ac_includes_default
12498 typedef uintptr_t ac__type_sizeof_;
12499 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12500 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12502 #include <stdlib.h>
12507 FILE *f = fopen ("conftest.val
", "w
");
12510 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12512 long int i = longval ();
12513 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12515 fprintf (f, "%ld
\n", i);
12519 unsigned long int i = ulongval ();
12520 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12522 fprintf (f, "%lu
\n", i);
12524 return ferror (f) || fclose (f) != 0;
12530 rm -f conftest$ac_exeext
12531 if { (ac_try="$ac_link"
12532 case "(($ac_try" in
12533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12534 *) ac_try_echo=$ac_try;;
12536 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12537 (eval "$ac_link") 2>&5
12539 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12540 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12541 { (case "(($ac_try" in
12542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12543 *) ac_try_echo=$ac_try;;
12545 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12546 (eval "$ac_try") 2>&5
12548 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12549 (exit $ac_status); }; }; then
12550 ac_cv_sizeof_uintptr_t=`cat conftest.val`
12552 echo "$as_me: program exited with status
$ac_status" >&5
12553 echo "$as_me: failed program was
:" >&5
12554 sed 's/^/| /' conftest.$ac_ext >&5
12556 ( exit $ac_status )
12557 if test "$ac_cv_type_uintptr_t" = yes; then
12558 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(uintptr_t
)
12559 See \
`config.log' for more details." >&5
12560 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12561 See \`config.log
' for more details." >&2;}
12562 { (exit 77); exit 77; }; }
12564 ac_cv_sizeof_uintptr_t=0
12567 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12571 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
12572 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; }
12576 cat >>confdefs.h <<_ACEOF
12577 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
12585 # Hmph. AC_CHECK_SIZEOF() doesn't include
<sys
/types.h
>.
12586 { echo "$as_me:$LINENO: checking size of off_t" >&5
12587 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
12588 if test "${ac_cv_sizeof_off_t+set}" = set; then
12589 echo $ECHO_N "(cached) $ECHO_C" >&6
12591 if test "$cross_compiling" = yes; then
12592 ac_cv_sizeof_off_t
=4
12594 cat >conftest.
$ac_ext <<_ACEOF
12597 cat confdefs.h
>>conftest.
$ac_ext
12598 cat >>conftest.
$ac_ext <<_ACEOF
12599 /* end confdefs.h. */
12601 #include <sys/types.h>
12604 FILE *f=fopen("conftestval", "w");
12606 fprintf(f, "%d\n", sizeof(off_t));
12610 rm -f conftest
$ac_exeext
12611 if { (ac_try
="$ac_link"
12612 case "(($ac_try" in
12613 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12614 *) ac_try_echo=$ac_try;;
12616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12617 (eval "$ac_link") 2>&5
12619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12621 { (case "(($ac_try" in
12622 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12623 *) ac_try_echo
=$ac_try;;
12625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12626 (eval "$ac_try") 2>&5
12628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629 (exit $ac_status); }; }; then
12630 ac_cv_sizeof_off_t
=`cat conftestval`
12632 echo "$as_me: program exited with status $ac_status" >&5
12633 echo "$as_me: failed program was:" >&5
12634 sed 's/^/| /' conftest.
$ac_ext >&5
12636 ( exit $ac_status )
12637 ac_cv_sizeof_off_t
=0
12639 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12646 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
12647 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
12649 cat >>confdefs.h
<<_ACEOF
12650 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12654 { echo "$as_me:$LINENO: checking whether to enable large file support" >&5
12655 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; }
12656 if test "$have_long_long" = yes -a \
12657 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
12658 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
12660 cat >>confdefs.h
<<\_ACEOF
12661 #define HAVE_LARGEFILE_SUPPORT 1
12664 { echo "$as_me:$LINENO: result: yes" >&5
12665 echo "${ECHO_T}yes" >&6; }
12667 { echo "$as_me:$LINENO: result: no" >&5
12668 echo "${ECHO_T}no" >&6; }
12671 # AC_CHECK_SIZEOF() doesn't include <time.h>.
12672 { echo "$as_me:$LINENO: checking size of time_t" >&5
12673 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
12674 if test "${ac_cv_sizeof_time_t+set}" = set; then
12675 echo $ECHO_N "(cached) $ECHO_C" >&6
12677 if test "$cross_compiling" = yes; then
12678 ac_cv_sizeof_time_t
=4
12680 cat >conftest.
$ac_ext <<_ACEOF
12683 cat confdefs.h
>>conftest.
$ac_ext
12684 cat >>conftest.
$ac_ext <<_ACEOF
12685 /* end confdefs.h. */
12690 FILE *f=fopen("conftestval", "w");
12692 fprintf(f, "%d\n", sizeof(time_t));
12696 rm -f conftest
$ac_exeext
12697 if { (ac_try
="$ac_link"
12698 case "(($ac_try" in
12699 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12700 *) ac_try_echo=$ac_try;;
12702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12703 (eval "$ac_link") 2>&5
12705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12706 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12707 { (case "(($ac_try" in
12708 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12709 *) ac_try_echo
=$ac_try;;
12711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12712 (eval "$ac_try") 2>&5
12714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715 (exit $ac_status); }; }; then
12716 ac_cv_sizeof_time_t
=`cat conftestval`
12718 echo "$as_me: program exited with status $ac_status" >&5
12719 echo "$as_me: failed program was:" >&5
12720 sed 's/^/| /' conftest.
$ac_ext >&5
12722 ( exit $ac_status )
12723 ac_cv_sizeof_time_t
=0
12725 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12732 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
12733 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
12735 cat >>confdefs.h
<<_ACEOF
12736 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
12741 # if have pthread_t then define SIZEOF_PTHREAD_T
12743 if test "$ac_cv_kpthread" = "yes"
12744 then CC
="$CC -Kpthread"
12745 elif test "$ac_cv_kthread" = "yes"
12746 then CC
="$CC -Kthread"
12747 elif test "$ac_cv_pthread" = "yes"
12748 then CC
="$CC -pthread"
12750 { echo "$as_me:$LINENO: checking for pthread_t" >&5
12751 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
12753 cat >conftest.
$ac_ext <<_ACEOF
12756 cat confdefs.h
>>conftest.
$ac_ext
12757 cat >>conftest.
$ac_ext <<_ACEOF
12758 /* end confdefs.h. */
12759 #include <pthread.h>
12763 pthread_t x; x = *(pthread_t*)0;
12768 rm -f conftest.
$ac_objext
12769 if { (ac_try
="$ac_compile"
12770 case "(($ac_try" in
12771 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12772 *) ac_try_echo=$ac_try;;
12774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12775 (eval "$ac_compile") 2>conftest.er1
12777 grep -v '^ *+' conftest.er1 >conftest.err
12779 cat conftest.err >&5
12780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781 (exit $ac_status); } && {
12782 test -z "$ac_c_werror_flag" ||
12783 test ! -s conftest.err
12784 } && test -s conftest.$ac_objext; then
12787 echo "$as_me: failed program was:" >&5
12788 sed 's/^/| /' conftest.$ac_ext >&5
12793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12794 { echo "$as_me:$LINENO: result: $have_pthread_t" >&5
12795 echo "${ECHO_T}$have_pthread_t" >&6; }
12796 if test "$have_pthread_t" = yes ; then
12797 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
12798 { echo "$as_me:$LINENO: checking size of pthread_t" >&5
12799 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; }
12800 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
12801 echo $ECHO_N "(cached) $ECHO_C" >&6
12803 if test "$cross_compiling" = yes; then
12804 ac_cv_sizeof_pthread_t=4
12806 cat >conftest.$ac_ext <<_ACEOF
12809 cat confdefs.h >>conftest.$ac_ext
12810 cat >>conftest.$ac_ext <<_ACEOF
12811 /* end confdefs.h. */
12813 #include <pthread.h>
12816 FILE *f=fopen("conftestval", "w");
12818 fprintf(f, "%d\n", sizeof(pthread_t));
12822 rm -f conftest$ac_exeext
12823 if { (ac_try="$ac_link"
12824 case "(($ac_try" in
12825 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12826 *) ac_try_echo
=$ac_try;;
12828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12829 (eval "$ac_link") 2>&5
12831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12832 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12833 { (case "(($ac_try" in
12834 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12835 *) ac_try_echo=$ac_try;;
12837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12838 (eval "$ac_try") 2>&5
12840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841 (exit $ac_status); }; }; then
12842 ac_cv_sizeof_pthread_t=`cat conftestval
`
12844 echo "$as_me: program exited with status $ac_status" >&5
12845 echo "$as_me: failed program was:" >&5
12846 sed 's/^/| /' conftest.$ac_ext >&5
12848 ( exit $ac_status )
12849 ac_cv_sizeof_pthread_t=0
12851 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12858 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
12859 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; }
12861 cat >>confdefs.h <<_ACEOF
12862 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
12868 { echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
12869 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6; }
12870 # Check whether --enable-toolbox-glue was given.
12871 if test "${enable_toolbox_glue+set}" = set; then
12872 enableval=$enable_toolbox_glue;
12876 if test -z "$enable_toolbox_glue"
12878 case $ac_sys_system/$ac_sys_release in
12880 enable_toolbox_glue="yes";;
12882 enable_toolbox_glue="no";;
12885 case "$enable_toolbox_glue" in
12887 extra_machdep_objs="Python/mactoolboxglue.o"
12888 extra_undefs="-u _PyMac_Error"
12890 cat >>confdefs.h <<\_ACEOF
12891 #define USE_TOOLBOX_OBJECT_GLUE 1
12896 extra_machdep_objs=""
12900 { echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
12901 echo "${ECHO_T}$enable_toolbox_glue" >&6; }
12905 case $ac_sys_system/$ac_sys_release in
12906 Darwin/[01567]\..*)
12907 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
12910 OTHER_LIBTOOL_OPT=""
12915 case $ac_sys_system/$ac_sys_release in
12916 Darwin/[01567]\..*)
12917 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
12918 if test "${enable_universalsdk}"; then
12921 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch
`"
12923 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12924 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
12926 gcc_version=`gcc
-v 2>&1 |
grep version | cut
-d\
-f3`
12927 if test ${gcc_version} '<' 4.0
12929 LIBTOOL_CRUFT="-lcc_dynamic"
12933 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch
`"
12934 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12935 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
12938 { echo "$as_me:$LINENO: checking for --enable-framework" >&5
12939 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; }
12940 if test "$enable_framework"
12942 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
12943 # -F. is needed to allow linking to the framework while
12944 # in the build location.
12946 cat >>confdefs.h <<\_ACEOF
12947 #define WITH_NEXT_FRAMEWORK 1
12950 { echo "$as_me:$LINENO: result: yes" >&5
12951 echo "${ECHO_T}yes" >&6; }
12953 { echo "$as_me:$LINENO: result: no" >&5
12954 echo "${ECHO_T}no" >&6; }
12957 { echo "$as_me:$LINENO: checking for dyld" >&5
12958 echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
12959 case $ac_sys_system/$ac_sys_release in
12962 cat >>confdefs.h <<\_ACEOF
12963 #define WITH_DYLD 1
12966 { echo "$as_me:$LINENO: result: always on for Darwin" >&5
12967 echo "${ECHO_T}always on for Darwin" >&6; }
12970 { echo "$as_me:$LINENO: result: no" >&5
12971 echo "${ECHO_T}no" >&6; }
12975 # Set info about shared libraries.
12981 # SO is the extension of shared libraries `(including the dot
!)
12982 # -- usually .so, .sl on HP-UX, .dll on Cygwin
12983 { echo "$as_me:$LINENO: checking SO" >&5
12984 echo $ECHO_N "checking SO... $ECHO_C" >&6; }
12987 case $ac_sys_system in
12998 # this might also be a termcap variable, see #610332
13000 echo '====================================================================='
13002 echo '+ WARNING: You have set SO in your environment. +'
13003 echo '+ Do you really mean to change the extension for shared libraries? +'
13004 echo '+ Continuing in 10 seconds to let you to ponder. +'
13006 echo '====================================================================='
13009 { echo "$as_me:$LINENO: result: $SO" >&5
13010 echo "${ECHO_T}$SO" >&6; }
13013 cat >>confdefs.h
<<_ACEOF
13014 #define SHLIB_EXT "$SO"
13017 # LDSHARED is the ld *command* used to create shared library
13018 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
13019 # (Shared libraries in this instance are shared modules to be loaded into
13020 # Python, as opposed to building Python itself as a shared library.)
13021 { echo "$as_me:$LINENO: checking LDSHARED" >&5
13022 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
13023 if test -z "$LDSHARED"
13025 case $ac_sys_system/$ac_sys_release in
13027 BLDSHARED
="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
13028 LDSHARED
="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
13031 BLDSHARED
="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
13032 LDSHARED
="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
13034 IRIX
/5*) LDSHARED
="ld -shared";;
13035 IRIX
*/6*) LDSHARED
="ld ${SGI_ABI} -shared -all";;
13037 if test "$GCC" = "yes"
13038 then LDSHARED
='$(CC) -shared'
13039 else LDSHARED
='$(CC) -G';
13042 if test "$GCC" = "yes"
13043 then LDSHARED
='$(CC) -shared'
13044 else LDSHARED
='ld -b';
13046 OSF
*) LDSHARED
="ld -shared -expect_unresolved \"*\"";;
13048 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
13049 if test "$enable_framework" ; then
13050 # Link against the framework. All externals should be defined.
13051 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13052 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13054 # No framework. Ignore undefined symbols, assuming they come from Python
13055 LDSHARED
="$LDSHARED -undefined suppress"
13057 Darwin
/1.4*|Darwin
/5.
*|Darwin
/6.
*)
13058 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
13059 if test "$enable_framework" ; then
13060 # Link against the framework. All externals should be defined.
13061 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13062 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13064 # No framework, use the Python app as bundle-loader
13065 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13066 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13069 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
13070 # This allows an extension to be used in any Python
13072 if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2
13074 if test "${enable_universalsdk}"; then
13075 LDFLAGS
="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
13077 LDSHARED
='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
13078 BLDSHARED
="$LDSHARED"
13080 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
13081 if test "$enable_framework" ; then
13082 # Link against the framework. All externals should be defined.
13083 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13084 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13086 # No framework, use the Python app as bundle-loader
13087 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
13088 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
13092 Linux
*|GNU
*|QNX
*) LDSHARED
='$(CC) -shared';;
13093 BSD
/OS
*/4*) LDSHARED
="gcc -shared";;
13095 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13097 LDSHARED
="$CC -shared ${LDFLAGS}"
13099 LDSHARED
="ld -Bshareable ${LDFLAGS}"
13102 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13104 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13107 [01].
* |
2.
[0-7] |
2.
[0-7].
*)
13108 LDSHARED
="ld -Bshareable ${LDFLAGS}"
13111 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
13115 NetBSD
*|DragonFly
*) LDSHARED
="cc -shared ${LDFLAGS}";;
13116 OpenUNIX
*|UnixWare
*)
13117 if test "$GCC" = "yes"
13118 then LDSHARED
='$(CC) -shared'
13119 else LDSHARED
='$(CC) -G'
13121 SCO_SV
*) LDSHARED
='$(CC) -Wl,-G,-Bexport';;
13122 Monterey
*) LDSHARED
="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
13123 CYGWIN
*) LDSHARED
="gcc -shared -Wl,--enable-auto-image-base";;
13124 atheos
*) LDSHARED
="gcc -shared";;
13128 { echo "$as_me:$LINENO: result: $LDSHARED" >&5
13129 echo "${ECHO_T}$LDSHARED" >&6; }
13130 BLDSHARED
=${BLDSHARED-$LDSHARED}
13131 # CCSHARED are the C *flags* used to create objects to go into a shared
13132 # library (module) -- this is only needed for a few systems
13133 { echo "$as_me:$LINENO: checking CCSHARED" >&5
13134 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
13135 if test -z "$CCSHARED"
13137 case $ac_sys_system/$ac_sys_release in
13138 SunOS
*) if test "$GCC" = yes;
13139 then CCSHARED
="-fPIC";
13140 elif test `uname -p` = sparc
;
13141 then CCSHARED
="-xcode=pic32";
13142 else CCSHARED
="-Kpic";
13144 hp
*|HP
*) if test "$GCC" = yes;
13145 then CCSHARED
="-fPIC";
13146 else CCSHARED
="+z";
13148 Linux
*|GNU
*) CCSHARED
="-fPIC";;
13149 BSD
/OS
*/4*) CCSHARED
="-fpic";;
13150 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*) CCSHARED
="-fPIC";;
13151 OpenUNIX
*|UnixWare
*)
13152 if test "$GCC" = "yes"
13153 then CCSHARED
="-fPIC"
13154 else CCSHARED
="-KPIC"
13157 if test "$GCC" = "yes"
13158 then CCSHARED
="-fPIC"
13159 else CCSHARED
="-Kpic -belf"
13161 Monterey
*) CCSHARED
="-G";;
13162 IRIX
*/6*) case $CC in
13163 *gcc
*) CCSHARED
="-shared";;
13166 atheos
*) CCSHARED
="-fPIC";;
13169 { echo "$as_me:$LINENO: result: $CCSHARED" >&5
13170 echo "${ECHO_T}$CCSHARED" >&6; }
13171 # LINKFORSHARED are the flags passed to the $(CC) command that links
13172 # the python executable -- this is only needed for a few systems
13173 { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
13174 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
13175 if test -z "$LINKFORSHARED"
13177 case $ac_sys_system/$ac_sys_release in
13178 AIX
*) LINKFORSHARED
='-Wl,-bE:Modules/python.exp -lld';;
13180 LINKFORSHARED
="-Wl,-E -Wl,+s";;
13181 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
13182 BSD
/OS
/4*) LINKFORSHARED
="-Xlinker -export-dynamic";;
13183 Linux
*|GNU
*) LINKFORSHARED
="-Xlinker -export-dynamic";;
13184 # -u libsys_s pulls in all symbols in libsys
13186 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
13188 # not used by the core itself but which needs to be in the core so
13189 # that dynamically loaded extension modules have access to it.
13190 # -prebind is no longer used, because it actually seems to give a
13191 # slowdown in stead of a speedup, maybe due to the large number of
13192 # dynamic loads Python does.
13194 LINKFORSHARED
="$extra_undefs"
13195 if test "$enable_framework"
13197 LINKFORSHARED
="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13199 LINKFORSHARED
="$LINKFORSHARED";;
13200 OpenUNIX
*|UnixWare
*) LINKFORSHARED
="-Wl,-Bexport";;
13201 SCO_SV
*) LINKFORSHARED
="-Wl,-Bexport";;
13202 ReliantUNIX
*) LINKFORSHARED
="-W1 -Blargedynsym";;
13203 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*)
13204 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13206 LINKFORSHARED
="-Wl,--export-dynamic"
13208 SunOS
/5*) case $CC in
13210 if $CC -Xlinker --help 2>&1 |
grep export-dynamic
>/dev
/null
13212 LINKFORSHARED
="-Xlinker --export-dynamic"
13216 if test $enable_shared = "no"
13218 LINKFORSHARED
='-Wl,--out-implib=$(LDLIBRARY)'
13221 # -Wl,-E causes the symbols to be added to the dynamic
13222 # symbol table so that they can be found when a module
13223 # is loaded. -N 2048K causes the stack size to be set
13224 # to 2048 kilobytes so that the stack doesn't overflow
13225 # when running test_compile.py.
13226 LINKFORSHARED
='-Wl,-E -N 2048K';;
13229 { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
13230 echo "${ECHO_T}$LINKFORSHARED" >&6; }
13234 { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
13235 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
13236 if test ! "$LIBRARY" = "$LDLIBRARY"
13238 case $ac_sys_system in
13240 # Cygwin needs CCSHARED when building extension DLLs
13241 # but not when building the interpreter DLL.
13242 CFLAGSFORSHARED
='';;
13244 CFLAGSFORSHARED
='$(CCSHARED)'
13247 { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
13248 echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
13250 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
13251 # library (with --enable-shared).
13252 # For platforms on which shared libraries are not allowed to have unresolved
13253 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
13254 # if it is not required, since it creates a dependency of the shared library
13255 # to LIBS. This, in turn, means that applications linking the shared libpython
13256 # don't need to link LIBS explicitly. The default should be only changed
13257 # on systems where this approach causes problems.
13259 { echo "$as_me:$LINENO: checking SHLIBS" >&5
13260 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
13261 case "$ac_sys_system" in
13265 { echo "$as_me:$LINENO: result: $SHLIBS" >&5
13266 echo "${ECHO_T}$SHLIBS" >&6; }
13269 # checks for libraries
13271 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13272 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13273 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13274 echo $ECHO_N "(cached) $ECHO_C" >&6
13276 ac_check_lib_save_LIBS
=$LIBS
13278 cat >conftest.
$ac_ext <<_ACEOF
13281 cat confdefs.h
>>conftest.
$ac_ext
13282 cat >>conftest.
$ac_ext <<_ACEOF
13283 /* end confdefs.h. */
13285 /* Override any GCC internal prototype to avoid an error.
13286 Use char because int might match the return type of a GCC
13287 builtin and then its argument prototype would still apply. */
13300 rm -f conftest.
$ac_objext conftest
$ac_exeext
13301 if { (ac_try
="$ac_link"
13302 case "(($ac_try" in
13303 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13304 *) ac_try_echo=$ac_try;;
13306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13307 (eval "$ac_link") 2>conftest.er1
13309 grep -v '^ *+' conftest.er1 >conftest.err
13311 cat conftest.err >&5
13312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313 (exit $ac_status); } && {
13314 test -z "$ac_c_werror_flag" ||
13315 test ! -s conftest.err
13316 } && test -s conftest$ac_exeext &&
13317 $as_test_x conftest$ac_exeext; then
13318 ac_cv_lib_dl_dlopen=yes
13320 echo "$as_me: failed program was:" >&5
13321 sed 's/^/| /' conftest.$ac_ext >&5
13323 ac_cv_lib_dl_dlopen=no
13326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13327 conftest$ac_exeext conftest.$ac_ext
13328 LIBS=$ac_check_lib_save_LIBS
13330 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13331 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13332 if test $ac_cv_lib_dl_dlopen = yes; then
13333 cat >>confdefs.h <<_ACEOF
13334 #define HAVE_LIBDL 1
13340 # Dynamic linking for SunOS/Solaris and SYSV
13342 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13343 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
13344 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13345 echo $ECHO_N "(cached) $ECHO_C" >&6
13347 ac_check_lib_save_LIBS=$LIBS
13349 cat >conftest.$ac_ext <<_ACEOF
13352 cat confdefs.h >>conftest.$ac_ext
13353 cat >>conftest.$ac_ext <<_ACEOF
13354 /* end confdefs.h. */
13356 /* Override any GCC internal prototype to avoid an error.
13357 Use char because int might match the return type of a GCC
13358 builtin and then its argument prototype would still apply. */
13366 return shl_load ();
13371 rm -f conftest.$ac_objext conftest$ac_exeext
13372 if { (ac_try="$ac_link"
13373 case "(($ac_try" in
13374 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13375 *) ac_try_echo
=$ac_try;;
13377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13378 (eval "$ac_link") 2>conftest.er1
13380 grep -v '^ *+' conftest.er1
>conftest.err
13382 cat conftest.err
>&5
13383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384 (exit $ac_status); } && {
13385 test -z "$ac_c_werror_flag" ||
13386 test ! -s conftest.err
13387 } && test -s conftest
$ac_exeext &&
13388 $as_test_x conftest
$ac_exeext; then
13389 ac_cv_lib_dld_shl_load
=yes
13391 echo "$as_me: failed program was:" >&5
13392 sed 's/^/| /' conftest.
$ac_ext >&5
13394 ac_cv_lib_dld_shl_load
=no
13397 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13398 conftest
$ac_exeext conftest.
$ac_ext
13399 LIBS
=$ac_check_lib_save_LIBS
13401 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13402 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
13403 if test $ac_cv_lib_dld_shl_load = yes; then
13404 cat >>confdefs.h
<<_ACEOF
13405 #define HAVE_LIBDLD 1
13411 # Dynamic linking for HP-UX
13413 # only check for sem_init if thread support is requested
13414 if test "$with_threads" = "yes" -o -z "$with_threads"; then
13415 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
13416 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
13417 if test "${ac_cv_search_sem_init+set}" = set; then
13418 echo $ECHO_N "(cached) $ECHO_C" >&6
13420 ac_func_search_save_LIBS
=$LIBS
13421 cat >conftest.
$ac_ext <<_ACEOF
13424 cat confdefs.h
>>conftest.
$ac_ext
13425 cat >>conftest.
$ac_ext <<_ACEOF
13426 /* end confdefs.h. */
13428 /* Override any GCC internal prototype to avoid an error.
13429 Use char because int might match the return type of a GCC
13430 builtin and then its argument prototype would still apply. */
13438 return sem_init ();
13443 for ac_lib
in '' pthread rt posix4
; do
13444 if test -z "$ac_lib"; then
13445 ac_res
="none required"
13448 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13450 rm -f conftest.
$ac_objext conftest
$ac_exeext
13451 if { (ac_try
="$ac_link"
13452 case "(($ac_try" in
13453 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13454 *) ac_try_echo=$ac_try;;
13456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13457 (eval "$ac_link") 2>conftest.er1
13459 grep -v '^ *+' conftest.er1 >conftest.err
13461 cat conftest.err >&5
13462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13463 (exit $ac_status); } && {
13464 test -z "$ac_c_werror_flag" ||
13465 test ! -s conftest.err
13466 } && test -s conftest$ac_exeext &&
13467 $as_test_x conftest$ac_exeext; then
13468 ac_cv_search_sem_init=$ac_res
13470 echo "$as_me: failed program was:" >&5
13471 sed 's/^/| /' conftest.$ac_ext >&5
13476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13478 if test "${ac_cv_search_sem_init+set}" = set; then
13482 if test "${ac_cv_search_sem_init+set}" = set; then
13485 ac_cv_search_sem_init=no
13487 rm conftest.$ac_ext
13488 LIBS=$ac_func_search_save_LIBS
13490 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
13491 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
13492 ac_res=$ac_cv_search_sem_init
13493 if test "$ac_res" != no; then
13494 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13497 # 'Real Time' functions on Solaris
13498 # posix4 on Solaris 2.6
13499 # pthread (first!) on Linux
13502 # check if we need libintl for locale functions
13503 { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
13504 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
13505 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
13506 echo $ECHO_N "(cached) $ECHO_C" >&6
13508 ac_check_lib_save_LIBS=$LIBS
13509 LIBS="-lintl $LIBS"
13510 cat >conftest.$ac_ext <<_ACEOF
13513 cat confdefs.h >>conftest.$ac_ext
13514 cat >>conftest.$ac_ext <<_ACEOF
13515 /* end confdefs.h. */
13517 /* Override any GCC internal prototype to avoid an error.
13518 Use char because int might match the return type of a GCC
13519 builtin and then its argument prototype would still apply. */
13523 char textdomain ();
13527 return textdomain ();
13532 rm -f conftest.$ac_objext conftest$ac_exeext
13533 if { (ac_try="$ac_link"
13534 case "(($ac_try" in
13535 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13536 *) ac_try_echo
=$ac_try;;
13538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13539 (eval "$ac_link") 2>conftest.er1
13541 grep -v '^ *+' conftest.er1
>conftest.err
13543 cat conftest.err
>&5
13544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545 (exit $ac_status); } && {
13546 test -z "$ac_c_werror_flag" ||
13547 test ! -s conftest.err
13548 } && test -s conftest
$ac_exeext &&
13549 $as_test_x conftest
$ac_exeext; then
13550 ac_cv_lib_intl_textdomain
=yes
13552 echo "$as_me: failed program was:" >&5
13553 sed 's/^/| /' conftest.
$ac_ext >&5
13555 ac_cv_lib_intl_textdomain
=no
13558 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13559 conftest
$ac_exeext conftest.
$ac_ext
13560 LIBS
=$ac_check_lib_save_LIBS
13562 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
13563 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
13564 if test $ac_cv_lib_intl_textdomain = yes; then
13566 cat >>confdefs.h
<<\_ACEOF
13567 #define WITH_LIBINTL 1
13573 # checks for system dependent C++ extensions support
13574 case "$ac_sys_system" in
13575 AIX
*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
13576 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
13577 cat >conftest.
$ac_ext <<_ACEOF
13580 cat confdefs.h
>>conftest.
$ac_ext
13581 cat >>conftest.
$ac_ext <<_ACEOF
13582 /* end confdefs.h. */
13583 #include "/usr/lpp/xlC/include/load.h"
13587 loadAndInit("", 0, "")
13592 rm -f conftest.
$ac_objext conftest
$ac_exeext
13593 if { (ac_try
="$ac_link"
13594 case "(($ac_try" in
13595 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13596 *) ac_try_echo=$ac_try;;
13598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13599 (eval "$ac_link") 2>conftest.er1
13601 grep -v '^ *+' conftest.er1 >conftest.err
13603 cat conftest.err >&5
13604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13605 (exit $ac_status); } && {
13606 test -z "$ac_c_werror_flag" ||
13607 test ! -s conftest.err
13608 } && test -s conftest$ac_exeext &&
13609 $as_test_x conftest$ac_exeext; then
13611 cat >>confdefs.h <<\_ACEOF
13612 #define AIX_GENUINE_CPLUSPLUS 1
13615 { echo "$as_me:$LINENO: result: yes" >&5
13616 echo "${ECHO_T}yes" >&6; }
13618 echo "$as_me: failed program was:" >&5
13619 sed 's/^/| /' conftest.$ac_ext >&5
13621 { echo "$as_me:$LINENO: result: no" >&5
13622 echo "${ECHO_T}no" >&6; }
13625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13626 conftest$ac_exeext conftest.$ac_ext;;
13630 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
13631 # BeOS' sockets are stashed in libnet.
13632 { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
13633 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
13634 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
13635 echo $ECHO_N "(cached) $ECHO_C" >&6
13637 ac_check_lib_save_LIBS=$LIBS
13639 cat >conftest.$ac_ext <<_ACEOF
13642 cat confdefs.h >>conftest.$ac_ext
13643 cat >>conftest.$ac_ext <<_ACEOF
13644 /* end confdefs.h. */
13646 /* Override any GCC internal prototype to avoid an error.
13647 Use char because int might match the return type of a GCC
13648 builtin and then its argument prototype would still apply. */
13661 rm -f conftest.$ac_objext conftest$ac_exeext
13662 if { (ac_try="$ac_link"
13663 case "(($ac_try" in
13664 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13665 *) ac_try_echo
=$ac_try;;
13667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13668 (eval "$ac_link") 2>conftest.er1
13670 grep -v '^ *+' conftest.er1
>conftest.err
13672 cat conftest.err
>&5
13673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674 (exit $ac_status); } && {
13675 test -z "$ac_c_werror_flag" ||
13676 test ! -s conftest.err
13677 } && test -s conftest
$ac_exeext &&
13678 $as_test_x conftest
$ac_exeext; then
13679 ac_cv_lib_nsl_t_open
=yes
13681 echo "$as_me: failed program was:" >&5
13682 sed 's/^/| /' conftest.
$ac_ext >&5
13684 ac_cv_lib_nsl_t_open
=no
13687 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13688 conftest
$ac_exeext conftest.
$ac_ext
13689 LIBS
=$ac_check_lib_save_LIBS
13691 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
13692 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
13693 if test $ac_cv_lib_nsl_t_open = yes; then
13697 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
13698 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
13699 if test "${ac_cv_lib_socket_socket+set}" = set; then
13700 echo $ECHO_N "(cached) $ECHO_C" >&6
13702 ac_check_lib_save_LIBS
=$LIBS
13703 LIBS
="-lsocket $LIBS $LIBS"
13704 cat >conftest.
$ac_ext <<_ACEOF
13707 cat confdefs.h
>>conftest.
$ac_ext
13708 cat >>conftest.
$ac_ext <<_ACEOF
13709 /* end confdefs.h. */
13711 /* Override any GCC internal prototype to avoid an error.
13712 Use char because int might match the return type of a GCC
13713 builtin and then its argument prototype would still apply. */
13726 rm -f conftest.
$ac_objext conftest
$ac_exeext
13727 if { (ac_try
="$ac_link"
13728 case "(($ac_try" in
13729 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13730 *) ac_try_echo=$ac_try;;
13732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13733 (eval "$ac_link") 2>conftest.er1
13735 grep -v '^ *+' conftest.er1 >conftest.err
13737 cat conftest.err >&5
13738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739 (exit $ac_status); } && {
13740 test -z "$ac_c_werror_flag" ||
13741 test ! -s conftest.err
13742 } && test -s conftest$ac_exeext &&
13743 $as_test_x conftest$ac_exeext; then
13744 ac_cv_lib_socket_socket=yes
13746 echo "$as_me: failed program was:" >&5
13747 sed 's/^/| /' conftest.$ac_ext >&5
13749 ac_cv_lib_socket_socket=no
13752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13753 conftest$ac_exeext conftest.$ac_ext
13754 LIBS=$ac_check_lib_save_LIBS
13756 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
13757 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
13758 if test $ac_cv_lib_socket_socket = yes; then
13759 LIBS="-lsocket $LIBS"
13763 case "$ac_sys_system" in
13765 { echo "$as_me:$LINENO: checking for socket in -lnet" >&5
13766 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6; }
13767 if test "${ac_cv_lib_net_socket+set}" = set; then
13768 echo $ECHO_N "(cached) $ECHO_C" >&6
13770 ac_check_lib_save_LIBS=$LIBS
13771 LIBS="-lnet $LIBS $LIBS"
13772 cat >conftest.$ac_ext <<_ACEOF
13775 cat confdefs.h >>conftest.$ac_ext
13776 cat >>conftest.$ac_ext <<_ACEOF
13777 /* end confdefs.h. */
13779 /* Override any GCC internal prototype to avoid an error.
13780 Use char because int might match the return type of a GCC
13781 builtin and then its argument prototype would still apply. */
13794 rm -f conftest.$ac_objext conftest$ac_exeext
13795 if { (ac_try="$ac_link"
13796 case "(($ac_try" in
13797 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13798 *) ac_try_echo
=$ac_try;;
13800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13801 (eval "$ac_link") 2>conftest.er1
13803 grep -v '^ *+' conftest.er1
>conftest.err
13805 cat conftest.err
>&5
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 (exit $ac_status); } && {
13808 test -z "$ac_c_werror_flag" ||
13809 test ! -s conftest.err
13810 } && test -s conftest
$ac_exeext &&
13811 $as_test_x conftest
$ac_exeext; then
13812 ac_cv_lib_net_socket
=yes
13814 echo "$as_me: failed program was:" >&5
13815 sed 's/^/| /' conftest.
$ac_ext >&5
13817 ac_cv_lib_net_socket
=no
13820 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13821 conftest
$ac_exeext conftest.
$ac_ext
13822 LIBS
=$ac_check_lib_save_LIBS
13824 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
13825 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6; }
13826 if test $ac_cv_lib_net_socket = yes; then
13833 { echo "$as_me:$LINENO: checking for --with-libs" >&5
13834 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
13836 # Check whether --with-libs was given.
13837 if test "${with_libs+set}" = set; then
13838 withval
=$with_libs;
13839 { echo "$as_me:$LINENO: result: $withval" >&5
13840 echo "${ECHO_T}$withval" >&6; }
13841 LIBS
="$withval $LIBS"
13844 { echo "$as_me:$LINENO: result: no" >&5
13845 echo "${ECHO_T}no" >&6; }
13849 # Check for use of the system libffi library
13850 { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
13851 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
13853 # Check whether --with-system_ffi was given.
13854 if test "${with_system_ffi+set}" = set; then
13855 withval
=$with_system_ffi;
13859 { echo "$as_me:$LINENO: result: $with_system_ffi" >&5
13860 echo "${ECHO_T}$with_system_ffi" >&6; }
13862 # Determine if signalmodule should be used.
13865 { echo "$as_me:$LINENO: checking for --with-signal-module" >&5
13866 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; }
13868 # Check whether --with-signal-module was given.
13869 if test "${with_signal_module+set}" = set; then
13870 withval
=$with_signal_module;
13874 if test -z "$with_signal_module"
13875 then with_signal_module
="yes"
13877 { echo "$as_me:$LINENO: result: $with_signal_module" >&5
13878 echo "${ECHO_T}$with_signal_module" >&6; }
13880 if test "${with_signal_module}" = "yes"; then
13881 USE_SIGNAL_MODULE
=""
13884 USE_SIGNAL_MODULE
="#"
13885 SIGNAL_OBJS
="Parser/intrcheck.o Python/sigcheck.o"
13888 # This is used to generate Setup.config
13890 USE_THREAD_MODULE
=""
13892 { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
13893 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; }
13896 # Check whether --with-dec-threads was given.
13897 if test "${with_dec_threads+set}" = set; then
13898 withval
=$with_dec_threads;
13899 { echo "$as_me:$LINENO: result: $withval" >&5
13900 echo "${ECHO_T}$withval" >&6; }
13902 if test "${with_thread+set}" != set; then
13903 with_thread
="$withval";
13906 { echo "$as_me:$LINENO: result: no" >&5
13907 echo "${ECHO_T}no" >&6; }
13911 # Templates for things AC_DEFINEd more than once.
13912 # For a single AC_DEFINE, no template is needed.
13920 { echo "$as_me:$LINENO: checking for --with-threads" >&5
13921 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; }
13923 # Check whether --with-threads was given.
13924 if test "${with_threads+set}" = set; then
13925 withval
=$with_threads;
13929 # --with-thread is deprecated, but check for it anyway
13931 # Check whether --with-thread was given.
13932 if test "${with_thread+set}" = set; then
13933 withval
=$with_thread; with_threads
=$with_thread
13937 if test -z "$with_threads"
13938 then with_threads
="yes"
13940 { echo "$as_me:$LINENO: result: $with_threads" >&5
13941 echo "${ECHO_T}$with_threads" >&6; }
13944 if test "$with_threads" = "no"
13946 USE_THREAD_MODULE
="#"
13947 elif test "$ac_cv_pthread_is_default" = yes
13949 cat >>confdefs.h
<<\_ACEOF
13950 #define WITH_THREAD 1
13953 # Defining _REENTRANT on system with POSIX threads should not hurt.
13954 cat >>confdefs.h
<<\_ACEOF
13955 #define _REENTRANT 1
13959 THREADOBJ
="Python/thread.o"
13960 elif test "$ac_cv_kpthread" = "yes"
13963 if test "$ac_cv_cxx_thread" = "yes"; then
13964 CXX
="$CXX -Kpthread"
13966 cat >>confdefs.h
<<\_ACEOF
13967 #define WITH_THREAD 1
13971 THREADOBJ
="Python/thread.o"
13972 elif test "$ac_cv_kthread" = "yes"
13975 if test "$ac_cv_cxx_thread" = "yes"; then
13976 CXX
="$CXX -Kthread"
13978 cat >>confdefs.h
<<\_ACEOF
13979 #define WITH_THREAD 1
13983 THREADOBJ
="Python/thread.o"
13984 elif test "$ac_cv_pthread" = "yes"
13987 if test "$ac_cv_cxx_thread" = "yes"; then
13988 CXX
="$CXX -pthread"
13990 cat >>confdefs.h
<<\_ACEOF
13991 #define WITH_THREAD 1
13995 THREADOBJ
="Python/thread.o"
13997 if test ! -z "$with_threads" -a -d "$with_threads"
13998 then LDFLAGS
="$LDFLAGS -L$with_threads"
14000 if test ! -z "$withval" -a -d "$withval"
14001 then LDFLAGS
="$LDFLAGS -L$withval"
14004 # According to the POSIX spec, a pthreads implementation must
14005 # define _POSIX_THREADS in unistd.h. Some apparently don't
14006 # (e.g. gnu pth with pthread emulation)
14007 { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
14008 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; }
14009 cat >conftest.
$ac_ext <<_ACEOF
14012 cat confdefs.h
>>conftest.
$ac_ext
14013 cat >>conftest.
$ac_ext <<_ACEOF
14014 /* end confdefs.h. */
14016 #include <unistd.h>
14017 #ifdef _POSIX_THREADS
14022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14023 $EGREP "yes" >/dev
/null
2>&1; then
14024 unistd_defines_pthreads
=yes
14026 unistd_defines_pthreads
=no
14030 { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
14031 echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
14033 cat >>confdefs.h
<<\_ACEOF
14034 #define _REENTRANT 1
14037 if test "${ac_cv_header_cthreads_h+set}" = set; then
14038 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
14039 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
14040 if test "${ac_cv_header_cthreads_h+set}" = set; then
14041 echo $ECHO_N "(cached) $ECHO_C" >&6
14043 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14044 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
14046 # Is the header compilable?
14047 { echo "$as_me:$LINENO: checking cthreads.h usability" >&5
14048 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; }
14049 cat >conftest.
$ac_ext <<_ACEOF
14052 cat confdefs.h
>>conftest.
$ac_ext
14053 cat >>conftest.
$ac_ext <<_ACEOF
14054 /* end confdefs.h. */
14055 $ac_includes_default
14056 #include <cthreads.h>
14058 rm -f conftest.
$ac_objext
14059 if { (ac_try
="$ac_compile"
14060 case "(($ac_try" in
14061 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14062 *) ac_try_echo=$ac_try;;
14064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14065 (eval "$ac_compile") 2>conftest.er1
14067 grep -v '^ *+' conftest.er1 >conftest.err
14069 cat conftest.err >&5
14070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071 (exit $ac_status); } && {
14072 test -z "$ac_c_werror_flag" ||
14073 test ! -s conftest.err
14074 } && test -s conftest.$ac_objext; then
14075 ac_header_compiler=yes
14077 echo "$as_me: failed program was:" >&5
14078 sed 's/^/| /' conftest.$ac_ext >&5
14080 ac_header_compiler=no
14083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14084 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14085 echo "${ECHO_T}$ac_header_compiler" >&6; }
14087 # Is the header present?
14088 { echo "$as_me:$LINENO: checking cthreads.h presence" >&5
14089 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; }
14090 cat >conftest.$ac_ext <<_ACEOF
14093 cat confdefs.h >>conftest.$ac_ext
14094 cat >>conftest.$ac_ext <<_ACEOF
14095 /* end confdefs.h. */
14096 #include <cthreads.h>
14098 if { (ac_try="$ac_cpp conftest.$ac_ext"
14099 case "(($ac_try" in
14100 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14101 *) ac_try_echo
=$ac_try;;
14103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14104 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14106 grep -v '^ *+' conftest.er1
>conftest.err
14108 cat conftest.err
>&5
14109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110 (exit $ac_status); } >/dev
/null
&& {
14111 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14112 test ! -s conftest.err
14114 ac_header_preproc
=yes
14116 echo "$as_me: failed program was:" >&5
14117 sed 's/^/| /' conftest.
$ac_ext >&5
14119 ac_header_preproc
=no
14122 rm -f conftest.err conftest.
$ac_ext
14123 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14124 echo "${ECHO_T}$ac_header_preproc" >&6; }
14126 # So? What about this header?
14127 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14129 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14130 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14131 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
14132 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
14133 ac_header_preproc
=yes
14136 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
14137 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
14138 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
14139 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
14140 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
14141 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
14142 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14143 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14144 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
14145 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
14146 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
14147 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
14149 ## ------------------------------------------------ ##
14150 ## Report this to http://www.python.org/python-bugs ##
14151 ## ------------------------------------------------ ##
14153 ) |
sed "s/^/$as_me: WARNING: /" >&2
14156 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
14157 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
14158 if test "${ac_cv_header_cthreads_h+set}" = set; then
14159 echo $ECHO_N "(cached) $ECHO_C" >&6
14161 ac_cv_header_cthreads_h
=$ac_header_preproc
14163 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
14164 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
14167 if test $ac_cv_header_cthreads_h = yes; then
14168 cat >>confdefs.h
<<\_ACEOF
14169 #define WITH_THREAD 1
14172 cat >>confdefs.h
<<\_ACEOF
14173 #define C_THREADS 1
14177 cat >>confdefs.h
<<\_ACEOF
14178 #define HURD_C_THREADS 1
14181 LIBS
="$LIBS -lthreads"
14182 THREADOBJ
="Python/thread.o"
14185 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14186 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14187 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
14188 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14189 echo $ECHO_N "(cached) $ECHO_C" >&6
14191 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14192 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
14194 # Is the header compilable?
14195 { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
14196 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; }
14197 cat >conftest.
$ac_ext <<_ACEOF
14200 cat confdefs.h
>>conftest.
$ac_ext
14201 cat >>conftest.
$ac_ext <<_ACEOF
14202 /* end confdefs.h. */
14203 $ac_includes_default
14204 #include <mach/cthreads.h>
14206 rm -f conftest.
$ac_objext
14207 if { (ac_try
="$ac_compile"
14208 case "(($ac_try" in
14209 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14210 *) ac_try_echo=$ac_try;;
14212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14213 (eval "$ac_compile") 2>conftest.er1
14215 grep -v '^ *+' conftest.er1 >conftest.err
14217 cat conftest.err >&5
14218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219 (exit $ac_status); } && {
14220 test -z "$ac_c_werror_flag" ||
14221 test ! -s conftest.err
14222 } && test -s conftest.$ac_objext; then
14223 ac_header_compiler=yes
14225 echo "$as_me: failed program was:" >&5
14226 sed 's/^/| /' conftest.$ac_ext >&5
14228 ac_header_compiler=no
14231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14232 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14233 echo "${ECHO_T}$ac_header_compiler" >&6; }
14235 # Is the header present?
14236 { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
14237 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; }
14238 cat >conftest.$ac_ext <<_ACEOF
14241 cat confdefs.h >>conftest.$ac_ext
14242 cat >>conftest.$ac_ext <<_ACEOF
14243 /* end confdefs.h. */
14244 #include <mach/cthreads.h>
14246 if { (ac_try="$ac_cpp conftest.$ac_ext"
14247 case "(($ac_try" in
14248 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14249 *) ac_try_echo
=$ac_try;;
14251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14252 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14254 grep -v '^ *+' conftest.er1
>conftest.err
14256 cat conftest.err
>&5
14257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258 (exit $ac_status); } >/dev
/null
&& {
14259 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14260 test ! -s conftest.err
14262 ac_header_preproc
=yes
14264 echo "$as_me: failed program was:" >&5
14265 sed 's/^/| /' conftest.
$ac_ext >&5
14267 ac_header_preproc
=no
14270 rm -f conftest.err conftest.
$ac_ext
14271 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14272 echo "${ECHO_T}$ac_header_preproc" >&6; }
14274 # So? What about this header?
14275 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14277 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14278 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14279 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
14280 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
14281 ac_header_preproc
=yes
14284 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
14285 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
14286 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
14287 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
14288 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
14289 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
14290 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
14291 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14292 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
14293 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
14294 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
14295 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
14297 ## ------------------------------------------------ ##
14298 ## Report this to http://www.python.org/python-bugs ##
14299 ## ------------------------------------------------ ##
14301 ) |
sed "s/^/$as_me: WARNING: /" >&2
14304 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
14305 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
14306 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
14307 echo $ECHO_N "(cached) $ECHO_C" >&6
14309 ac_cv_header_mach_cthreads_h
=$ac_header_preproc
14311 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
14312 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
14315 if test $ac_cv_header_mach_cthreads_h = yes; then
14316 cat >>confdefs.h
<<\_ACEOF
14317 #define WITH_THREAD 1
14320 cat >>confdefs.h
<<\_ACEOF
14321 #define C_THREADS 1
14325 cat >>confdefs.h
<<\_ACEOF
14326 #define MACH_C_THREADS 1
14329 THREADOBJ
="Python/thread.o"
14332 { echo "$as_me:$LINENO: checking for --with-pth" >&5
14333 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; }
14335 # Check whether --with-pth was given.
14336 if test "${with_pth+set}" = set; then
14337 withval
=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5
14338 echo "${ECHO_T}$withval" >&6; }
14339 cat >>confdefs.h
<<\_ACEOF
14340 #define WITH_THREAD 1
14344 cat >>confdefs.h
<<\_ACEOF
14349 THREADOBJ
="Python/thread.o"
14351 { echo "$as_me:$LINENO: result: no" >&5
14352 echo "${ECHO_T}no" >&6; }
14354 # Just looking for pthread_create in libpthread is not enough:
14355 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
14356 # So we really have to include pthread.h, and then link.
14358 LIBS
="$LIBS -lpthread"
14359 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
14360 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
14361 cat >conftest.
$ac_ext <<_ACEOF
14364 cat confdefs.h
>>conftest.
$ac_ext
14365 cat >>conftest.
$ac_ext <<_ACEOF
14366 /* end confdefs.h. */
14367 #include <pthread.h>
14369 void * start_routine (void *arg) { exit (0); }
14374 pthread_create (NULL, NULL, start_routine, NULL)
14379 rm -f conftest.
$ac_objext conftest
$ac_exeext
14380 if { (ac_try
="$ac_link"
14381 case "(($ac_try" in
14382 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14383 *) ac_try_echo=$ac_try;;
14385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14386 (eval "$ac_link") 2>conftest.er1
14388 grep -v '^ *+' conftest.er1 >conftest.err
14390 cat conftest.err >&5
14391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392 (exit $ac_status); } && {
14393 test -z "$ac_c_werror_flag" ||
14394 test ! -s conftest.err
14395 } && test -s conftest$ac_exeext &&
14396 $as_test_x conftest$ac_exeext; then
14398 { echo "$as_me:$LINENO: result: yes" >&5
14399 echo "${ECHO_T}yes" >&6; }
14400 cat >>confdefs.h <<\_ACEOF
14401 #define WITH_THREAD 1
14405 THREADOBJ="Python/thread.o"
14407 echo "$as_me: failed program was:" >&5
14408 sed 's/^/| /' conftest.$ac_ext >&5
14412 { echo "$as_me:$LINENO: checking for pthread_detach" >&5
14413 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; }
14414 if test "${ac_cv_func_pthread_detach+set}" = set; then
14415 echo $ECHO_N "(cached) $ECHO_C" >&6
14417 cat >conftest.$ac_ext <<_ACEOF
14420 cat confdefs.h >>conftest.$ac_ext
14421 cat >>conftest.$ac_ext <<_ACEOF
14422 /* end confdefs.h. */
14423 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
14424 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14425 #define pthread_detach innocuous_pthread_detach
14427 /* System header to define __stub macros and hopefully few prototypes,
14428 which can conflict with char pthread_detach (); below.
14429 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14430 <limits.h> exists even on freestanding compilers. */
14433 # include <limits.h>
14435 # include <assert.h>
14438 #undef pthread_detach
14440 /* Override any GCC internal prototype to avoid an error.
14441 Use char because int might match the return type of a GCC
14442 builtin and then its argument prototype would still apply. */
14446 char pthread_detach ();
14447 /* The GNU C library defines this for functions which it implements
14448 to always fail with ENOSYS. Some functions are actually named
14449 something starting with __ and the normal name is an alias. */
14450 #if defined __stub_pthread_detach || defined __stub___pthread_detach
14457 return pthread_detach ();
14462 rm -f conftest.$ac_objext conftest$ac_exeext
14463 if { (ac_try="$ac_link"
14464 case "(($ac_try" in
14465 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14466 *) ac_try_echo
=$ac_try;;
14468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14469 (eval "$ac_link") 2>conftest.er1
14471 grep -v '^ *+' conftest.er1
>conftest.err
14473 cat conftest.err
>&5
14474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475 (exit $ac_status); } && {
14476 test -z "$ac_c_werror_flag" ||
14477 test ! -s conftest.err
14478 } && test -s conftest
$ac_exeext &&
14479 $as_test_x conftest
$ac_exeext; then
14480 ac_cv_func_pthread_detach
=yes
14482 echo "$as_me: failed program was:" >&5
14483 sed 's/^/| /' conftest.
$ac_ext >&5
14485 ac_cv_func_pthread_detach
=no
14488 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14489 conftest
$ac_exeext conftest.
$ac_ext
14491 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
14492 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; }
14493 if test $ac_cv_func_pthread_detach = yes; then
14494 cat >>confdefs.h
<<\_ACEOF
14495 #define WITH_THREAD 1
14499 THREADOBJ
="Python/thread.o"
14502 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14503 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
14504 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
14505 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14506 echo $ECHO_N "(cached) $ECHO_C" >&6
14508 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
14509 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
14511 # Is the header compilable?
14512 { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
14513 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; }
14514 cat >conftest.
$ac_ext <<_ACEOF
14517 cat confdefs.h
>>conftest.
$ac_ext
14518 cat >>conftest.
$ac_ext <<_ACEOF
14519 /* end confdefs.h. */
14520 $ac_includes_default
14521 #include <atheos/threads.h>
14523 rm -f conftest.
$ac_objext
14524 if { (ac_try
="$ac_compile"
14525 case "(($ac_try" in
14526 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14527 *) ac_try_echo=$ac_try;;
14529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14530 (eval "$ac_compile") 2>conftest.er1
14532 grep -v '^ *+' conftest.er1 >conftest.err
14534 cat conftest.err >&5
14535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14536 (exit $ac_status); } && {
14537 test -z "$ac_c_werror_flag" ||
14538 test ! -s conftest.err
14539 } && test -s conftest.$ac_objext; then
14540 ac_header_compiler=yes
14542 echo "$as_me: failed program was:" >&5
14543 sed 's/^/| /' conftest.$ac_ext >&5
14545 ac_header_compiler=no
14548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14549 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14550 echo "${ECHO_T}$ac_header_compiler" >&6; }
14552 # Is the header present?
14553 { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
14554 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; }
14555 cat >conftest.$ac_ext <<_ACEOF
14558 cat confdefs.h >>conftest.$ac_ext
14559 cat >>conftest.$ac_ext <<_ACEOF
14560 /* end confdefs.h. */
14561 #include <atheos/threads.h>
14563 if { (ac_try="$ac_cpp conftest.$ac_ext"
14564 case "(($ac_try" in
14565 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14566 *) ac_try_echo
=$ac_try;;
14568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14569 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14571 grep -v '^ *+' conftest.er1
>conftest.err
14573 cat conftest.err
>&5
14574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14575 (exit $ac_status); } >/dev
/null
&& {
14576 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14577 test ! -s conftest.err
14579 ac_header_preproc
=yes
14581 echo "$as_me: failed program was:" >&5
14582 sed 's/^/| /' conftest.
$ac_ext >&5
14584 ac_header_preproc
=no
14587 rm -f conftest.err conftest.
$ac_ext
14588 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14589 echo "${ECHO_T}$ac_header_preproc" >&6; }
14591 # So? What about this header?
14592 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14594 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14595 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14596 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
14597 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
14598 ac_header_preproc
=yes
14601 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
14602 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
14603 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
14604 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
14605 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
14606 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
14607 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
14608 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14609 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
14610 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
14611 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
14612 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
14614 ## ------------------------------------------------ ##
14615 ## Report this to http://www.python.org/python-bugs ##
14616 ## ------------------------------------------------ ##
14618 ) |
sed "s/^/$as_me: WARNING: /" >&2
14621 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
14622 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
14623 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14624 echo $ECHO_N "(cached) $ECHO_C" >&6
14626 ac_cv_header_atheos_threads_h
=$ac_header_preproc
14628 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
14629 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
14632 if test $ac_cv_header_atheos_threads_h = yes; then
14633 cat >>confdefs.h
<<\_ACEOF
14634 #define WITH_THREAD 1
14638 cat >>confdefs.h
<<\_ACEOF
14639 #define ATHEOS_THREADS 1
14642 THREADOBJ
="Python/thread.o"
14645 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
14646 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
14647 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
14648 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
14649 echo $ECHO_N "(cached) $ECHO_C" >&6
14651 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
14652 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
14654 # Is the header compilable?
14655 { echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
14656 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6; }
14657 cat >conftest.
$ac_ext <<_ACEOF
14660 cat confdefs.h
>>conftest.
$ac_ext
14661 cat >>conftest.
$ac_ext <<_ACEOF
14662 /* end confdefs.h. */
14663 $ac_includes_default
14664 #include <kernel/OS.h>
14666 rm -f conftest.
$ac_objext
14667 if { (ac_try
="$ac_compile"
14668 case "(($ac_try" in
14669 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14670 *) ac_try_echo=$ac_try;;
14672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14673 (eval "$ac_compile") 2>conftest.er1
14675 grep -v '^ *+' conftest.er1 >conftest.err
14677 cat conftest.err >&5
14678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679 (exit $ac_status); } && {
14680 test -z "$ac_c_werror_flag" ||
14681 test ! -s conftest.err
14682 } && test -s conftest.$ac_objext; then
14683 ac_header_compiler=yes
14685 echo "$as_me: failed program was:" >&5
14686 sed 's/^/| /' conftest.$ac_ext >&5
14688 ac_header_compiler=no
14691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14692 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14693 echo "${ECHO_T}$ac_header_compiler" >&6; }
14695 # Is the header present?
14696 { echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
14697 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6; }
14698 cat >conftest.$ac_ext <<_ACEOF
14701 cat confdefs.h >>conftest.$ac_ext
14702 cat >>conftest.$ac_ext <<_ACEOF
14703 /* end confdefs.h. */
14704 #include <kernel/OS.h>
14706 if { (ac_try="$ac_cpp conftest.$ac_ext"
14707 case "(($ac_try" in
14708 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14709 *) ac_try_echo
=$ac_try;;
14711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14712 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14714 grep -v '^ *+' conftest.er1
>conftest.err
14716 cat conftest.err
>&5
14717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14718 (exit $ac_status); } >/dev
/null
&& {
14719 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14720 test ! -s conftest.err
14722 ac_header_preproc
=yes
14724 echo "$as_me: failed program was:" >&5
14725 sed 's/^/| /' conftest.
$ac_ext >&5
14727 ac_header_preproc
=no
14730 rm -f conftest.err conftest.
$ac_ext
14731 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14732 echo "${ECHO_T}$ac_header_preproc" >&6; }
14734 # So? What about this header?
14735 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14737 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
14738 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14739 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
14740 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
14741 ac_header_preproc
=yes
14744 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
14745 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
14746 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
14747 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
14748 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
14749 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
14750 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
14751 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
14752 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
14753 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
14754 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
14755 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
14757 ## ------------------------------------------------ ##
14758 ## Report this to http://www.python.org/python-bugs ##
14759 ## ------------------------------------------------ ##
14761 ) |
sed "s/^/$as_me: WARNING: /" >&2
14764 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
14765 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
14766 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
14767 echo $ECHO_N "(cached) $ECHO_C" >&6
14769 ac_cv_header_kernel_OS_h
=$ac_header_preproc
14771 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
14772 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
14775 if test $ac_cv_header_kernel_OS_h = yes; then
14776 cat >>confdefs.h
<<\_ACEOF
14777 #define WITH_THREAD 1
14781 cat >>confdefs.h
<<\_ACEOF
14782 #define BEOS_THREADS 1
14785 THREADOBJ
="Python/thread.o"
14788 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
14789 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
14790 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
14791 echo $ECHO_N "(cached) $ECHO_C" >&6
14793 ac_check_lib_save_LIBS
=$LIBS
14794 LIBS
="-lpthreads $LIBS"
14795 cat >conftest.
$ac_ext <<_ACEOF
14798 cat confdefs.h
>>conftest.
$ac_ext
14799 cat >>conftest.
$ac_ext <<_ACEOF
14800 /* end confdefs.h. */
14802 /* Override any GCC internal prototype to avoid an error.
14803 Use char because int might match the return type of a GCC
14804 builtin and then its argument prototype would still apply. */
14808 char pthread_create ();
14812 return pthread_create ();
14817 rm -f conftest.
$ac_objext conftest
$ac_exeext
14818 if { (ac_try
="$ac_link"
14819 case "(($ac_try" in
14820 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14821 *) ac_try_echo=$ac_try;;
14823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14824 (eval "$ac_link") 2>conftest.er1
14826 grep -v '^ *+' conftest.er1 >conftest.err
14828 cat conftest.err >&5
14829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14830 (exit $ac_status); } && {
14831 test -z "$ac_c_werror_flag" ||
14832 test ! -s conftest.err
14833 } && test -s conftest$ac_exeext &&
14834 $as_test_x conftest$ac_exeext; then
14835 ac_cv_lib_pthreads_pthread_create=yes
14837 echo "$as_me: failed program was:" >&5
14838 sed 's/^/| /' conftest.$ac_ext >&5
14840 ac_cv_lib_pthreads_pthread_create=no
14843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14844 conftest$ac_exeext conftest.$ac_ext
14845 LIBS=$ac_check_lib_save_LIBS
14847 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
14848 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
14849 if test $ac_cv_lib_pthreads_pthread_create = yes; then
14850 cat >>confdefs.h <<\_ACEOF
14851 #define WITH_THREAD 1
14855 LIBS="$LIBS -lpthreads"
14856 THREADOBJ="Python/thread.o"
14859 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
14860 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
14861 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
14862 echo $ECHO_N "(cached) $ECHO_C" >&6
14864 ac_check_lib_save_LIBS=$LIBS
14866 cat >conftest.$ac_ext <<_ACEOF
14869 cat confdefs.h >>conftest.$ac_ext
14870 cat >>conftest.$ac_ext <<_ACEOF
14871 /* end confdefs.h. */
14873 /* Override any GCC internal prototype to avoid an error.
14874 Use char because int might match the return type of a GCC
14875 builtin and then its argument prototype would still apply. */
14879 char pthread_create ();
14883 return pthread_create ();
14888 rm -f conftest.$ac_objext conftest$ac_exeext
14889 if { (ac_try="$ac_link"
14890 case "(($ac_try" in
14891 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14892 *) ac_try_echo
=$ac_try;;
14894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14895 (eval "$ac_link") 2>conftest.er1
14897 grep -v '^ *+' conftest.er1
>conftest.err
14899 cat conftest.err
>&5
14900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901 (exit $ac_status); } && {
14902 test -z "$ac_c_werror_flag" ||
14903 test ! -s conftest.err
14904 } && test -s conftest
$ac_exeext &&
14905 $as_test_x conftest
$ac_exeext; then
14906 ac_cv_lib_c_r_pthread_create
=yes
14908 echo "$as_me: failed program was:" >&5
14909 sed 's/^/| /' conftest.
$ac_ext >&5
14911 ac_cv_lib_c_r_pthread_create
=no
14914 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14915 conftest
$ac_exeext conftest.
$ac_ext
14916 LIBS
=$ac_check_lib_save_LIBS
14918 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
14919 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
14920 if test $ac_cv_lib_c_r_pthread_create = yes; then
14921 cat >>confdefs.h
<<\_ACEOF
14922 #define WITH_THREAD 1
14927 THREADOBJ
="Python/thread.o"
14930 { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
14931 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
14932 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
14933 echo $ECHO_N "(cached) $ECHO_C" >&6
14935 ac_check_lib_save_LIBS
=$LIBS
14936 LIBS
="-lpthread $LIBS"
14937 cat >conftest.
$ac_ext <<_ACEOF
14940 cat confdefs.h
>>conftest.
$ac_ext
14941 cat >>conftest.
$ac_ext <<_ACEOF
14942 /* end confdefs.h. */
14944 /* Override any GCC internal prototype to avoid an error.
14945 Use char because int might match the return type of a GCC
14946 builtin and then its argument prototype would still apply. */
14950 char __pthread_create_system ();
14954 return __pthread_create_system ();
14959 rm -f conftest.
$ac_objext conftest
$ac_exeext
14960 if { (ac_try
="$ac_link"
14961 case "(($ac_try" in
14962 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14963 *) ac_try_echo=$ac_try;;
14965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14966 (eval "$ac_link") 2>conftest.er1
14968 grep -v '^ *+' conftest.er1 >conftest.err
14970 cat conftest.err >&5
14971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972 (exit $ac_status); } && {
14973 test -z "$ac_c_werror_flag" ||
14974 test ! -s conftest.err
14975 } && test -s conftest$ac_exeext &&
14976 $as_test_x conftest$ac_exeext; then
14977 ac_cv_lib_pthread___pthread_create_system=yes
14979 echo "$as_me: failed program was:" >&5
14980 sed 's/^/| /' conftest.$ac_ext >&5
14982 ac_cv_lib_pthread___pthread_create_system=no
14985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14986 conftest$ac_exeext conftest.$ac_ext
14987 LIBS=$ac_check_lib_save_LIBS
14989 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
14990 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
14991 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
14992 cat >>confdefs.h <<\_ACEOF
14993 #define WITH_THREAD 1
14997 LIBS="$LIBS -lpthread"
14998 THREADOBJ="Python/thread.o"
15001 { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
15002 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
15003 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
15004 echo $ECHO_N "(cached) $ECHO_C" >&6
15006 ac_check_lib_save_LIBS=$LIBS
15008 cat >conftest.$ac_ext <<_ACEOF
15011 cat confdefs.h >>conftest.$ac_ext
15012 cat >>conftest.$ac_ext <<_ACEOF
15013 /* end confdefs.h. */
15015 /* Override any GCC internal prototype to avoid an error.
15016 Use char because int might match the return type of a GCC
15017 builtin and then its argument prototype would still apply. */
15021 char pthread_create ();
15025 return pthread_create ();
15030 rm -f conftest.$ac_objext conftest$ac_exeext
15031 if { (ac_try="$ac_link"
15032 case "(($ac_try" in
15033 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15034 *) ac_try_echo
=$ac_try;;
15036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15037 (eval "$ac_link") 2>conftest.er1
15039 grep -v '^ *+' conftest.er1
>conftest.err
15041 cat conftest.err
>&5
15042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043 (exit $ac_status); } && {
15044 test -z "$ac_c_werror_flag" ||
15045 test ! -s conftest.err
15046 } && test -s conftest
$ac_exeext &&
15047 $as_test_x conftest
$ac_exeext; then
15048 ac_cv_lib_cma_pthread_create
=yes
15050 echo "$as_me: failed program was:" >&5
15051 sed 's/^/| /' conftest.
$ac_ext >&5
15053 ac_cv_lib_cma_pthread_create
=no
15056 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15057 conftest
$ac_exeext conftest.
$ac_ext
15058 LIBS
=$ac_check_lib_save_LIBS
15060 { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
15061 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
15062 if test $ac_cv_lib_cma_pthread_create = yes; then
15063 cat >>confdefs.h
<<\_ACEOF
15064 #define WITH_THREAD 1
15069 THREADOBJ
="Python/thread.o"
15072 USE_THREAD_MODULE
="#"
15092 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15093 conftest
$ac_exeext conftest.
$ac_ext
15103 { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
15104 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
15105 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
15106 echo $ECHO_N "(cached) $ECHO_C" >&6
15108 ac_check_lib_save_LIBS
=$LIBS
15110 cat >conftest.
$ac_ext <<_ACEOF
15113 cat confdefs.h
>>conftest.
$ac_ext
15114 cat >>conftest.
$ac_ext <<_ACEOF
15115 /* end confdefs.h. */
15117 /* Override any GCC internal prototype to avoid an error.
15118 Use char because int might match the return type of a GCC
15119 builtin and then its argument prototype would still apply. */
15127 return usconfig ();
15132 rm -f conftest.
$ac_objext conftest
$ac_exeext
15133 if { (ac_try
="$ac_link"
15134 case "(($ac_try" in
15135 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15136 *) ac_try_echo=$ac_try;;
15138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15139 (eval "$ac_link") 2>conftest.er1
15141 grep -v '^ *+' conftest.er1 >conftest.err
15143 cat conftest.err >&5
15144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145 (exit $ac_status); } && {
15146 test -z "$ac_c_werror_flag" ||
15147 test ! -s conftest.err
15148 } && test -s conftest$ac_exeext &&
15149 $as_test_x conftest$ac_exeext; then
15150 ac_cv_lib_mpc_usconfig=yes
15152 echo "$as_me: failed program was:" >&5
15153 sed 's/^/| /' conftest.$ac_ext >&5
15155 ac_cv_lib_mpc_usconfig=no
15158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15159 conftest$ac_exeext conftest.$ac_ext
15160 LIBS=$ac_check_lib_save_LIBS
15162 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
15163 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
15164 if test $ac_cv_lib_mpc_usconfig = yes; then
15165 cat >>confdefs.h <<\_ACEOF
15166 #define WITH_THREAD 1
15170 THREADOBJ="Python/thread.o"
15171 USE_THREAD_MODULE=""
15175 if test "$posix_threads" != "yes"; then
15176 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
15177 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
15178 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
15179 echo $ECHO_N "(cached) $ECHO_C" >&6
15181 ac_check_lib_save_LIBS=$LIBS
15182 LIBS="-lthread $LIBS"
15183 cat >conftest.$ac_ext <<_ACEOF
15186 cat confdefs.h >>conftest.$ac_ext
15187 cat >>conftest.$ac_ext <<_ACEOF
15188 /* end confdefs.h. */
15190 /* Override any GCC internal prototype to avoid an error.
15191 Use char because int might match the return type of a GCC
15192 builtin and then its argument prototype would still apply. */
15196 char thr_create ();
15200 return thr_create ();
15205 rm -f conftest.$ac_objext conftest$ac_exeext
15206 if { (ac_try="$ac_link"
15207 case "(($ac_try" in
15208 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15209 *) ac_try_echo
=$ac_try;;
15211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15212 (eval "$ac_link") 2>conftest.er1
15214 grep -v '^ *+' conftest.er1
>conftest.err
15216 cat conftest.err
>&5
15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); } && {
15219 test -z "$ac_c_werror_flag" ||
15220 test ! -s conftest.err
15221 } && test -s conftest
$ac_exeext &&
15222 $as_test_x conftest
$ac_exeext; then
15223 ac_cv_lib_thread_thr_create
=yes
15225 echo "$as_me: failed program was:" >&5
15226 sed 's/^/| /' conftest.
$ac_ext >&5
15228 ac_cv_lib_thread_thr_create
=no
15231 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15232 conftest
$ac_exeext conftest.
$ac_ext
15233 LIBS
=$ac_check_lib_save_LIBS
15235 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
15236 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
15237 if test $ac_cv_lib_thread_thr_create = yes; then
15238 cat >>confdefs.h
<<\_ACEOF
15239 #define WITH_THREAD 1
15242 LIBS
="$LIBS -lthread"
15243 THREADOBJ
="Python/thread.o"
15244 USE_THREAD_MODULE
=""
15249 if test "$USE_THREAD_MODULE" != "#"
15251 # If the above checks didn't disable threads, (at least) OSF1
15252 # needs this '-threads' argument during linking.
15253 case $ac_sys_system in
15254 OSF1
) LDLAST
=-threads;;
15259 if test "$posix_threads" = "yes"; then
15260 if test "$unistd_defines_pthreads" = "no"; then
15262 cat >>confdefs.h
<<\_ACEOF
15263 #define _POSIX_THREADS 1
15268 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
15269 case $ac_sys_system/$ac_sys_release in
15271 cat >>confdefs.h
<<\_ACEOF
15272 #define HAVE_PTHREAD_DESTRUCTOR 1
15277 cat >>confdefs.h
<<\_ACEOF
15278 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
15283 cat >>confdefs.h
<<\_ACEOF
15284 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
15290 { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
15291 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
15292 if test "${ac_cv_pthread_system_supported+set}" = set; then
15293 echo $ECHO_N "(cached) $ECHO_C" >&6
15295 if test "$cross_compiling" = yes; then
15296 ac_cv_pthread_system_supported
=no
15298 cat >conftest.
$ac_ext <<_ACEOF
15301 cat confdefs.h
>>conftest.
$ac_ext
15302 cat >>conftest.
$ac_ext <<_ACEOF
15303 /* end confdefs.h. */
15304 #include <pthread.h>
15305 void *foo(void *parm) {
15309 pthread_attr_t attr;
15311 if (pthread_attr_init(&attr)) exit(-1);
15312 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
15313 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
15317 rm -f conftest
$ac_exeext
15318 if { (ac_try
="$ac_link"
15319 case "(($ac_try" in
15320 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15321 *) ac_try_echo=$ac_try;;
15323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15324 (eval "$ac_link") 2>&5
15326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15328 { (case "(($ac_try" in
15329 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15330 *) ac_try_echo
=$ac_try;;
15332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15333 (eval "$ac_try") 2>&5
15335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336 (exit $ac_status); }; }; then
15337 ac_cv_pthread_system_supported
=yes
15339 echo "$as_me: program exited with status $ac_status" >&5
15340 echo "$as_me: failed program was:" >&5
15341 sed 's/^/| /' conftest.
$ac_ext >&5
15343 ( exit $ac_status )
15344 ac_cv_pthread_system_supported
=no
15346 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15353 { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
15354 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
15355 if test "$ac_cv_pthread_system_supported" = "yes"; then
15357 cat >>confdefs.h
<<\_ACEOF
15358 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
15363 for ac_func
in pthread_sigmask
15365 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15366 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15367 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15368 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15369 echo $ECHO_N "(cached) $ECHO_C" >&6
15371 cat >conftest.
$ac_ext <<_ACEOF
15374 cat confdefs.h
>>conftest.
$ac_ext
15375 cat >>conftest.
$ac_ext <<_ACEOF
15376 /* end confdefs.h. */
15377 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15378 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15379 #define $ac_func innocuous_$ac_func
15381 /* System header to define __stub macros and hopefully few prototypes,
15382 which can conflict with char $ac_func (); below.
15383 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15384 <limits.h> exists even on freestanding compilers. */
15387 # include <limits.h>
15389 # include <assert.h>
15394 /* Override any GCC internal prototype to avoid an error.
15395 Use char because int might match the return type of a GCC
15396 builtin and then its argument prototype would still apply. */
15401 /* The GNU C library defines this for functions which it implements
15402 to always fail with ENOSYS. Some functions are actually named
15403 something starting with __ and the normal name is an alias. */
15404 #if defined __stub_$ac_func || defined __stub___$ac_func
15411 return $ac_func ();
15416 rm -f conftest.
$ac_objext conftest
$ac_exeext
15417 if { (ac_try
="$ac_link"
15418 case "(($ac_try" in
15419 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15420 *) ac_try_echo=$ac_try;;
15422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15423 (eval "$ac_link") 2>conftest.er1
15425 grep -v '^ *+' conftest.er1 >conftest.err
15427 cat conftest.err >&5
15428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429 (exit $ac_status); } && {
15430 test -z "$ac_c_werror_flag" ||
15431 test ! -s conftest.err
15432 } && test -s conftest$ac_exeext &&
15433 $as_test_x conftest$ac_exeext; then
15434 eval "$as_ac_var=yes"
15436 echo "$as_me: failed program was:" >&5
15437 sed 's/^/| /' conftest.$ac_ext >&5
15439 eval "$as_ac_var=no"
15442 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15443 conftest$ac_exeext conftest.$ac_ext
15445 ac_res=`eval echo '${'$as_ac_var'}'`
15446 { echo "$as_me:$LINENO: result: $ac_res" >&5
15447 echo "${ECHO_T}$ac_res" >&6; }
15448 if test `eval echo '${'$as_ac_var'}'` = yes; then
15449 cat >>confdefs.h <<_ACEOF
15450 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
15452 case $ac_sys_system in
15455 cat >>confdefs.h <<\_ACEOF
15456 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
15467 # Check for enable-ipv6
15470 { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
15471 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
15472 # Check whether --enable-ipv6 was given.
15473 if test "${enable_ipv6+set}" = set; then
15474 enableval=$enable_ipv6; case "$enableval" in
15476 { echo "$as_me:$LINENO: result: no" >&5
15477 echo "${ECHO_T}no" >&6; }
15480 *) { echo "$as_me:$LINENO: result: yes" >&5
15481 echo "${ECHO_T}yes" >&6; }
15482 cat >>confdefs.h <<\_ACEOF
15483 #define ENABLE_IPV6 1
15491 if test "$cross_compiling" = yes; then
15492 { echo "$as_me:$LINENO: result: no" >&5
15493 echo "${ECHO_T}no" >&6; }
15497 cat >conftest.$ac_ext <<_ACEOF
15500 cat confdefs.h >>conftest.$ac_ext
15501 cat >>conftest.$ac_ext <<_ACEOF
15502 /* end confdefs.h. */
15503 /* AF_INET6 available check */
15504 #include <sys/types.h>
15505 #include <sys/socket.h>
15508 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
15515 rm -f conftest$ac_exeext
15516 if { (ac_try="$ac_link"
15517 case "(($ac_try" in
15518 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15519 *) ac_try_echo
=$ac_try;;
15521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15522 (eval "$ac_link") 2>&5
15524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15526 { (case "(($ac_try" in
15527 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15528 *) ac_try_echo=$ac_try;;
15530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15531 (eval "$ac_try") 2>&5
15533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534 (exit $ac_status); }; }; then
15535 { echo "$as_me:$LINENO: result: yes" >&5
15536 echo "${ECHO_T}yes" >&6; }
15539 echo "$as_me: program exited with status $ac_status" >&5
15540 echo "$as_me: failed program was:" >&5
15541 sed 's/^/| /' conftest.$ac_ext >&5
15543 ( exit $ac_status )
15544 { echo "$as_me:$LINENO: result: no" >&5
15545 echo "${ECHO_T}no" >&6; }
15548 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15553 if test "$ipv6" = "yes"; then
15554 { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
15555 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; }
15556 cat >conftest.$ac_ext <<_ACEOF
15559 cat confdefs.h >>conftest.$ac_ext
15560 cat >>conftest.$ac_ext <<_ACEOF
15561 /* end confdefs.h. */
15562 #include <sys/types.h>
15563 #include <netinet/in.h>
15567 struct sockaddr_in6 x;
15573 rm -f conftest.$ac_objext
15574 if { (ac_try="$ac_compile"
15575 case "(($ac_try" in
15576 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15577 *) ac_try_echo
=$ac_try;;
15579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15580 (eval "$ac_compile") 2>conftest.er1
15582 grep -v '^ *+' conftest.er1
>conftest.err
15584 cat conftest.err
>&5
15585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15586 (exit $ac_status); } && {
15587 test -z "$ac_c_werror_flag" ||
15588 test ! -s conftest.err
15589 } && test -s conftest.
$ac_objext; then
15590 { echo "$as_me:$LINENO: result: yes" >&5
15591 echo "${ECHO_T}yes" >&6; }
15594 echo "$as_me: failed program was:" >&5
15595 sed 's/^/| /' conftest.
$ac_ext >&5
15597 { echo "$as_me:$LINENO: result: no" >&5
15598 echo "${ECHO_T}no" >&6; }
15602 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15605 if test "$ipv6" = "yes"; then
15606 cat >>confdefs.h
<<\_ACEOF
15607 #define ENABLE_IPV6 1
15619 if test "$ipv6" = "yes"; then
15620 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
15621 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
15622 for i
in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta
;
15626 cat >conftest.
$ac_ext <<_ACEOF
15629 cat confdefs.h
>>conftest.
$ac_ext
15630 cat >>conftest.
$ac_ext <<_ACEOF
15631 /* end confdefs.h. */
15633 #include <netinet/in.h>
15634 #ifdef IPV6_INRIA_VERSION
15638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15639 $EGREP "yes" >/dev
/null
2>&1; then
15646 cat >conftest.
$ac_ext <<_ACEOF
15649 cat confdefs.h
>>conftest.
$ac_ext
15650 cat >>conftest.
$ac_ext <<_ACEOF
15651 /* end confdefs.h. */
15653 #include <netinet/in.h>
15658 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15659 $EGREP "yes" >/dev
/null
2>&1; then
15662 ipv6libdir
=/usr
/local
/v
6/lib
15669 cat >conftest.
$ac_ext <<_ACEOF
15672 cat confdefs.h
>>conftest.
$ac_ext
15673 cat >>conftest.
$ac_ext <<_ACEOF
15674 /* end confdefs.h. */
15676 #include <features.h>
15677 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
15681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15682 $EGREP "yes" >/dev
/null
2>&1; then
15690 if test -d /usr
/inet6
; then
15693 ipv6libdir
=/usr
/inet
6/lib
15694 BASECFLAGS
="-I/usr/inet6/include $BASECFLAGS"
15698 if test -f /etc
/netconfig
; then
15699 if /usr
/xpg
4/bin
/grep -q tcp6
/etc
/netconfig
; then
15706 cat >conftest.
$ac_ext <<_ACEOF
15709 cat confdefs.h
>>conftest.
$ac_ext
15710 cat >>conftest.
$ac_ext <<_ACEOF
15711 /* end confdefs.h. */
15713 #include <sys/param.h>
15714 #ifdef _TOSHIBA_INET6
15718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15719 $EGREP "yes" >/dev
/null
2>&1; then
15722 ipv6libdir
=/usr
/local
/v
6/lib
15728 cat >conftest.
$ac_ext <<_ACEOF
15731 cat confdefs.h
>>conftest.
$ac_ext
15732 cat >>conftest.
$ac_ext <<_ACEOF
15733 /* end confdefs.h. */
15735 #include </usr/local/v6/include/sys/v6config.h>
15740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15741 $EGREP "yes" >/dev
/null
2>&1; then
15744 ipv6libdir
=/usr
/local
/v
6/lib
;
15745 BASECFLAGS
="-I/usr/local/v6/include $BASECFLAGS"
15751 cat >conftest.
$ac_ext <<_ACEOF
15754 cat confdefs.h
>>conftest.
$ac_ext
15755 cat >>conftest.
$ac_ext <<_ACEOF
15756 /* end confdefs.h. */
15758 #include <sys/param.h>
15759 #ifdef _ZETA_MINAMI_INET6
15763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15764 $EGREP "yes" >/dev
/null
2>&1; then
15767 ipv6libdir
=/usr
/local
/v
6/lib
15773 if test "$ipv6type" != "unknown"; then
15777 { echo "$as_me:$LINENO: result: $ipv6type" >&5
15778 echo "${ECHO_T}$ipv6type" >&6; }
15781 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
15782 if test -d $ipv6libdir -a -f $ipv6libdir/lib
$ipv6lib.a
; then
15783 LIBS
="-L$ipv6libdir -l$ipv6lib $LIBS"
15784 echo "using lib$ipv6lib"
15786 if test $ipv6trylibc = "yes"; then
15789 echo 'Fatal: no $ipv6lib library found. cannot continue.'
15790 echo "You need to fetch lib$ipv6lib.a from appropriate"
15791 echo 'ipv6 kit and compile beforehand.'
15797 { echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5
15798 echo $ECHO_N "checking for OSX 10.5 SDK or later... $ECHO_C" >&6; }
15799 cat >conftest.
$ac_ext <<_ACEOF
15802 cat confdefs.h
>>conftest.
$ac_ext
15803 cat >>conftest.
$ac_ext <<_ACEOF
15804 /* end confdefs.h. */
15805 #include <Carbon/Carbon.h>
15809 FSIORefNum fRef = 0
15814 rm -f conftest.
$ac_objext
15815 if { (ac_try
="$ac_compile"
15816 case "(($ac_try" in
15817 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15818 *) ac_try_echo=$ac_try;;
15820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15821 (eval "$ac_compile") 2>conftest.er1
15823 grep -v '^ *+' conftest.er1 >conftest.err
15825 cat conftest.err >&5
15826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827 (exit $ac_status); } && {
15828 test -z "$ac_c_werror_flag" ||
15829 test ! -s conftest.err
15830 } && test -s conftest.$ac_objext; then
15832 cat >>confdefs.h <<\_ACEOF
15833 #define HAVE_OSX105_SDK 1
15836 { echo "$as_me:$LINENO: result: yes" >&5
15837 echo "${ECHO_T}yes" >&6; }
15839 echo "$as_me: failed program was:" >&5
15840 sed 's/^/| /' conftest.$ac_ext >&5
15842 { echo "$as_me:$LINENO: result: no" >&5
15843 echo "${ECHO_T}no" >&6; }
15847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15849 # Check for --with-doc-strings
15850 { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
15851 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
15853 # Check whether --with-doc-strings was given.
15854 if test "${with_doc_strings+set}" = set; then
15855 withval=$with_doc_strings;
15859 if test -z "$with_doc_strings"
15860 then with_doc_strings="yes"
15862 if test "$with_doc_strings" != "no"
15865 cat >>confdefs.h <<\_ACEOF
15866 #define WITH_DOC_STRINGS 1
15870 { echo "$as_me:$LINENO: result: $with_doc_strings" >&5
15871 echo "${ECHO_T}$with_doc_strings" >&6; }
15873 # Check for Python-specific malloc support
15874 { echo "$as_me:$LINENO: checking for --with-tsc" >&5
15875 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
15877 # Check whether --with-tsc was given.
15878 if test "${with_tsc+set}" = set; then
15880 if test "$withval" != no
15883 cat >>confdefs.h <<\_ACEOF
15887 { echo "$as_me:$LINENO: result: yes" >&5
15888 echo "${ECHO_T}yes" >&6; }
15889 else { echo "$as_me:$LINENO: result: no" >&5
15890 echo "${ECHO_T}no" >&6; }
15893 { echo "$as_me:$LINENO: result: no" >&5
15894 echo "${ECHO_T}no" >&6; }
15898 # Check for Python-specific malloc support
15899 { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
15900 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
15902 # Check whether --with-pymalloc was given.
15903 if test "${with_pymalloc+set}" = set; then
15904 withval=$with_pymalloc;
15908 if test -z "$with_pymalloc"
15909 then with_pymalloc="yes"
15911 if test "$with_pymalloc" != "no"
15914 cat >>confdefs.h <<\_ACEOF
15915 #define WITH_PYMALLOC 1
15919 { echo "$as_me:$LINENO: result: $with_pymalloc" >&5
15920 echo "${ECHO_T}$with_pymalloc" >&6; }
15922 # Check for --with-wctype-functions
15923 { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
15924 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
15926 # Check whether --with-wctype-functions was given.
15927 if test "${with_wctype_functions+set}" = set; then
15928 withval=$with_wctype_functions;
15929 if test "$withval" != no
15932 cat >>confdefs.h <<\_ACEOF
15933 #define WANT_WCTYPE_FUNCTIONS 1
15936 { echo "$as_me:$LINENO: result: yes" >&5
15937 echo "${ECHO_T}yes" >&6; }
15938 else { echo "$as_me:$LINENO: result: no" >&5
15939 echo "${ECHO_T}no" >&6; }
15942 { echo "$as_me:$LINENO: result: no" >&5
15943 echo "${ECHO_T}no" >&6; }
15947 # -I${DLINCLDIR} is added to the compile rule for importdl.o
15951 # the dlopen() function means we might want to use dynload_shlib.o. some
15952 # platforms, such as AIX, have dlopen(), but don't want to use it.
15954 for ac_func in dlopen
15956 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
15957 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15958 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15959 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15960 echo $ECHO_N "(cached) $ECHO_C" >&6
15962 cat >conftest.$ac_ext <<_ACEOF
15965 cat confdefs.h >>conftest.$ac_ext
15966 cat >>conftest.$ac_ext <<_ACEOF
15967 /* end confdefs.h. */
15968 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15970 #define $ac_func innocuous_$ac_func
15972 /* System header to define __stub macros and hopefully few prototypes,
15973 which can conflict with char $ac_func (); below.
15974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15975 <limits.h> exists even on freestanding compilers. */
15978 # include <limits.h>
15980 # include <assert.h>
15985 /* Override any GCC internal prototype to avoid an error.
15986 Use char because int might match the return type of a GCC
15987 builtin and then its argument prototype would still apply. */
15992 /* The GNU C library defines this for functions which it implements
15993 to always fail with ENOSYS. Some functions are actually named
15994 something starting with __ and the normal name is an alias. */
15995 #if defined __stub_$ac_func || defined __stub___$ac_func
16002 return $ac_func ();
16007 rm -f conftest.$ac_objext conftest$ac_exeext
16008 if { (ac_try="$ac_link"
16009 case "(($ac_try" in
16010 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16011 *) ac_try_echo
=$ac_try;;
16013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16014 (eval "$ac_link") 2>conftest.er1
16016 grep -v '^ *+' conftest.er1
>conftest.err
16018 cat conftest.err
>&5
16019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16020 (exit $ac_status); } && {
16021 test -z "$ac_c_werror_flag" ||
16022 test ! -s conftest.err
16023 } && test -s conftest
$ac_exeext &&
16024 $as_test_x conftest
$ac_exeext; then
16025 eval "$as_ac_var=yes"
16027 echo "$as_me: failed program was:" >&5
16028 sed 's/^/| /' conftest.
$ac_ext >&5
16030 eval "$as_ac_var=no"
16033 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16034 conftest
$ac_exeext conftest.
$ac_ext
16036 ac_res
=`eval echo '${'$as_ac_var'}'`
16037 { echo "$as_me:$LINENO: result: $ac_res" >&5
16038 echo "${ECHO_T}$ac_res" >&6; }
16039 if test `eval echo '${'$as_ac_var'}'` = yes; then
16040 cat >>confdefs.h
<<_ACEOF
16041 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16048 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
16049 # loading of modules.
16051 { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
16052 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
16053 if test -z "$DYNLOADFILE"
16055 case $ac_sys_system/$ac_sys_release in
16056 AIX
*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
16057 if test "$ac_cv_func_dlopen" = yes
16058 then DYNLOADFILE
="dynload_shlib.o"
16059 else DYNLOADFILE
="dynload_aix.o"
16062 BeOS
*) DYNLOADFILE
="dynload_beos.o";;
16063 hp
*|HP
*) DYNLOADFILE
="dynload_hpux.o";;
16064 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
16065 Darwin
/[0156]\..
*) DYNLOADFILE
="dynload_next.o";;
16066 atheos
*) DYNLOADFILE
="dynload_atheos.o";;
16068 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
16069 # out any dynamic loading
16070 if test "$ac_cv_func_dlopen" = yes
16071 then DYNLOADFILE
="dynload_shlib.o"
16072 else DYNLOADFILE
="dynload_stub.o"
16077 { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
16078 echo "${ECHO_T}$DYNLOADFILE" >&6; }
16079 if test "$DYNLOADFILE" != "dynload_stub.o"
16082 cat >>confdefs.h
<<\_ACEOF
16083 #define HAVE_DYNAMIC_LOADING 1
16088 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
16091 { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
16092 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
16093 if test -z "$MACHDEP_OBJS"
16095 MACHDEP_OBJS
=$extra_machdep_objs
16097 MACHDEP_OBJS
="$MACHDEP_OBJS $extra_machdep_objs"
16099 { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
16100 echo "${ECHO_T}MACHDEP_OBJS" >&6; }
16102 # checks for library functions
16184 for ac_func
in alarm setitimer getitimer bind_textdomain_codeset chown \
16185 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
16186 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
16187 getpriority getpwent getspnam getspent getsid getwd \
16188 kill killpg lchmod lchown lstat
mkfifo mknod mktime \
16189 mremap nice pathconf pause plock poll pthread_init \
16190 putenv readlink realpath \
16191 select setegid seteuid setgid \
16192 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
16193 sigaction siginterrupt sigrelse strftime \
16194 sysconf tcgetpgrp tcsetpgrp tempnam timegm
times tmpfile tmpnam tmpnam_r \
16195 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
16197 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16198 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16199 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16200 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16201 echo $ECHO_N "(cached) $ECHO_C" >&6
16203 cat >conftest.
$ac_ext <<_ACEOF
16206 cat confdefs.h
>>conftest.
$ac_ext
16207 cat >>conftest.
$ac_ext <<_ACEOF
16208 /* end confdefs.h. */
16209 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16211 #define $ac_func innocuous_$ac_func
16213 /* System header to define __stub macros and hopefully few prototypes,
16214 which can conflict with char $ac_func (); below.
16215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16216 <limits.h> exists even on freestanding compilers. */
16219 # include <limits.h>
16221 # include <assert.h>
16226 /* Override any GCC internal prototype to avoid an error.
16227 Use char because int might match the return type of a GCC
16228 builtin and then its argument prototype would still apply. */
16233 /* The GNU C library defines this for functions which it implements
16234 to always fail with ENOSYS. Some functions are actually named
16235 something starting with __ and the normal name is an alias. */
16236 #if defined __stub_$ac_func || defined __stub___$ac_func
16243 return $ac_func ();
16248 rm -f conftest.
$ac_objext conftest
$ac_exeext
16249 if { (ac_try
="$ac_link"
16250 case "(($ac_try" in
16251 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16252 *) ac_try_echo=$ac_try;;
16254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16255 (eval "$ac_link") 2>conftest.er1
16257 grep -v '^ *+' conftest.er1 >conftest.err
16259 cat conftest.err >&5
16260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16261 (exit $ac_status); } && {
16262 test -z "$ac_c_werror_flag" ||
16263 test ! -s conftest.err
16264 } && test -s conftest$ac_exeext &&
16265 $as_test_x conftest$ac_exeext; then
16266 eval "$as_ac_var=yes"
16268 echo "$as_me: failed program was:" >&5
16269 sed 's/^/| /' conftest.$ac_ext >&5
16271 eval "$as_ac_var=no"
16274 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16275 conftest$ac_exeext conftest.$ac_ext
16277 ac_res=`eval echo '${'$as_ac_var'}'`
16278 { echo "$as_me:$LINENO: result: $ac_res" >&5
16279 echo "${ECHO_T}$ac_res" >&6; }
16280 if test `eval echo '${'$as_ac_var'}'` = yes; then
16281 cat >>confdefs.h <<_ACEOF
16282 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
16289 # For some functions, having a definition is not sufficient, since
16290 # we want to take their address.
16291 { echo "$as_me:$LINENO: checking for chroot" >&5
16292 echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
16293 cat >conftest.$ac_ext <<_ACEOF
16296 cat confdefs.h >>conftest.$ac_ext
16297 cat >>conftest.$ac_ext <<_ACEOF
16298 /* end confdefs.h. */
16299 #include <unistd.h>
16308 rm -f conftest.$ac_objext
16309 if { (ac_try="$ac_compile"
16310 case "(($ac_try" in
16311 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16312 *) ac_try_echo
=$ac_try;;
16314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16315 (eval "$ac_compile") 2>conftest.er1
16317 grep -v '^ *+' conftest.er1
>conftest.err
16319 cat conftest.err
>&5
16320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16321 (exit $ac_status); } && {
16322 test -z "$ac_c_werror_flag" ||
16323 test ! -s conftest.err
16324 } && test -s conftest.
$ac_objext; then
16326 cat >>confdefs.h
<<\_ACEOF
16327 #define HAVE_CHROOT 1
16330 { echo "$as_me:$LINENO: result: yes" >&5
16331 echo "${ECHO_T}yes" >&6; }
16333 echo "$as_me: failed program was:" >&5
16334 sed 's/^/| /' conftest.
$ac_ext >&5
16336 { echo "$as_me:$LINENO: result: no" >&5
16337 echo "${ECHO_T}no" >&6; }
16341 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16342 { echo "$as_me:$LINENO: checking for link" >&5
16343 echo $ECHO_N "checking for link... $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 #include <unistd.h>
16359 rm -f conftest.
$ac_objext
16360 if { (ac_try
="$ac_compile"
16361 case "(($ac_try" in
16362 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16363 *) ac_try_echo=$ac_try;;
16365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16366 (eval "$ac_compile") 2>conftest.er1
16368 grep -v '^ *+' conftest.er1 >conftest.err
16370 cat conftest.err >&5
16371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16372 (exit $ac_status); } && {
16373 test -z "$ac_c_werror_flag" ||
16374 test ! -s conftest.err
16375 } && test -s conftest.$ac_objext; then
16377 cat >>confdefs.h <<\_ACEOF
16378 #define HAVE_LINK 1
16381 { echo "$as_me:$LINENO: result: yes" >&5
16382 echo "${ECHO_T}yes" >&6; }
16384 echo "$as_me: failed program was:" >&5
16385 sed 's/^/| /' conftest.$ac_ext >&5
16387 { echo "$as_me:$LINENO: result: no" >&5
16388 echo "${ECHO_T}no" >&6; }
16392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16393 { echo "$as_me:$LINENO: checking for symlink" >&5
16394 echo $ECHO_N "checking for symlink... $ECHO_C" >&6; }
16395 cat >conftest.$ac_ext <<_ACEOF
16398 cat confdefs.h >>conftest.$ac_ext
16399 cat >>conftest.$ac_ext <<_ACEOF
16400 /* end confdefs.h. */
16401 #include <unistd.h>
16410 rm -f conftest.$ac_objext
16411 if { (ac_try="$ac_compile"
16412 case "(($ac_try" in
16413 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16414 *) ac_try_echo
=$ac_try;;
16416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16417 (eval "$ac_compile") 2>conftest.er1
16419 grep -v '^ *+' conftest.er1
>conftest.err
16421 cat conftest.err
>&5
16422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16423 (exit $ac_status); } && {
16424 test -z "$ac_c_werror_flag" ||
16425 test ! -s conftest.err
16426 } && test -s conftest.
$ac_objext; then
16428 cat >>confdefs.h
<<\_ACEOF
16429 #define HAVE_SYMLINK 1
16432 { echo "$as_me:$LINENO: result: yes" >&5
16433 echo "${ECHO_T}yes" >&6; }
16435 echo "$as_me: failed program was:" >&5
16436 sed 's/^/| /' conftest.
$ac_ext >&5
16438 { echo "$as_me:$LINENO: result: no" >&5
16439 echo "${ECHO_T}no" >&6; }
16443 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16444 { echo "$as_me:$LINENO: checking for fchdir" >&5
16445 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
16446 cat >conftest.
$ac_ext <<_ACEOF
16449 cat confdefs.h
>>conftest.
$ac_ext
16450 cat >>conftest.
$ac_ext <<_ACEOF
16451 /* end confdefs.h. */
16452 #include <unistd.h>
16461 rm -f conftest.
$ac_objext
16462 if { (ac_try
="$ac_compile"
16463 case "(($ac_try" in
16464 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16465 *) ac_try_echo=$ac_try;;
16467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16468 (eval "$ac_compile") 2>conftest.er1
16470 grep -v '^ *+' conftest.er1 >conftest.err
16472 cat conftest.err >&5
16473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16474 (exit $ac_status); } && {
16475 test -z "$ac_c_werror_flag" ||
16476 test ! -s conftest.err
16477 } && test -s conftest.$ac_objext; then
16479 cat >>confdefs.h <<\_ACEOF
16480 #define HAVE_FCHDIR 1
16483 { echo "$as_me:$LINENO: result: yes" >&5
16484 echo "${ECHO_T}yes" >&6; }
16486 echo "$as_me: failed program was:" >&5
16487 sed 's/^/| /' conftest.$ac_ext >&5
16489 { echo "$as_me:$LINENO: result: no" >&5
16490 echo "${ECHO_T}no" >&6; }
16494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16495 { echo "$as_me:$LINENO: checking for fsync" >&5
16496 echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
16497 cat >conftest.$ac_ext <<_ACEOF
16500 cat confdefs.h >>conftest.$ac_ext
16501 cat >>conftest.$ac_ext <<_ACEOF
16502 /* end confdefs.h. */
16503 #include <unistd.h>
16512 rm -f conftest.$ac_objext
16513 if { (ac_try="$ac_compile"
16514 case "(($ac_try" in
16515 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16516 *) ac_try_echo
=$ac_try;;
16518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16519 (eval "$ac_compile") 2>conftest.er1
16521 grep -v '^ *+' conftest.er1
>conftest.err
16523 cat conftest.err
>&5
16524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525 (exit $ac_status); } && {
16526 test -z "$ac_c_werror_flag" ||
16527 test ! -s conftest.err
16528 } && test -s conftest.
$ac_objext; then
16530 cat >>confdefs.h
<<\_ACEOF
16531 #define HAVE_FSYNC 1
16534 { echo "$as_me:$LINENO: result: yes" >&5
16535 echo "${ECHO_T}yes" >&6; }
16537 echo "$as_me: failed program was:" >&5
16538 sed 's/^/| /' conftest.
$ac_ext >&5
16540 { echo "$as_me:$LINENO: result: no" >&5
16541 echo "${ECHO_T}no" >&6; }
16545 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16546 { echo "$as_me:$LINENO: checking for fdatasync" >&5
16547 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
16548 cat >conftest.
$ac_ext <<_ACEOF
16551 cat confdefs.h
>>conftest.
$ac_ext
16552 cat >>conftest.
$ac_ext <<_ACEOF
16553 /* end confdefs.h. */
16554 #include <unistd.h>
16563 rm -f conftest.
$ac_objext
16564 if { (ac_try
="$ac_compile"
16565 case "(($ac_try" in
16566 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16567 *) ac_try_echo=$ac_try;;
16569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16570 (eval "$ac_compile") 2>conftest.er1
16572 grep -v '^ *+' conftest.er1 >conftest.err
16574 cat conftest.err >&5
16575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16576 (exit $ac_status); } && {
16577 test -z "$ac_c_werror_flag" ||
16578 test ! -s conftest.err
16579 } && test -s conftest.$ac_objext; then
16581 cat >>confdefs.h <<\_ACEOF
16582 #define HAVE_FDATASYNC 1
16585 { echo "$as_me:$LINENO: result: yes" >&5
16586 echo "${ECHO_T}yes" >&6; }
16588 echo "$as_me: failed program was:" >&5
16589 sed 's/^/| /' conftest.$ac_ext >&5
16591 { echo "$as_me:$LINENO: result: no" >&5
16592 echo "${ECHO_T}no" >&6; }
16596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16597 { echo "$as_me:$LINENO: checking for epoll" >&5
16598 echo $ECHO_N "checking for epoll... $ECHO_C" >&6; }
16599 cat >conftest.$ac_ext <<_ACEOF
16602 cat confdefs.h >>conftest.$ac_ext
16603 cat >>conftest.$ac_ext <<_ACEOF
16604 /* end confdefs.h. */
16605 #include <sys/epoll.h>
16609 void *x=epoll_create
16614 rm -f conftest.$ac_objext
16615 if { (ac_try="$ac_compile"
16616 case "(($ac_try" in
16617 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16618 *) ac_try_echo
=$ac_try;;
16620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16621 (eval "$ac_compile") 2>conftest.er1
16623 grep -v '^ *+' conftest.er1
>conftest.err
16625 cat conftest.err
>&5
16626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627 (exit $ac_status); } && {
16628 test -z "$ac_c_werror_flag" ||
16629 test ! -s conftest.err
16630 } && test -s conftest.
$ac_objext; then
16632 cat >>confdefs.h
<<\_ACEOF
16633 #define HAVE_EPOLL 1
16636 { echo "$as_me:$LINENO: result: yes" >&5
16637 echo "${ECHO_T}yes" >&6; }
16639 echo "$as_me: failed program was:" >&5
16640 sed 's/^/| /' conftest.
$ac_ext >&5
16642 { echo "$as_me:$LINENO: result: no" >&5
16643 echo "${ECHO_T}no" >&6; }
16647 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16648 { echo "$as_me:$LINENO: checking for kqueue" >&5
16649 echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; }
16650 cat >conftest.
$ac_ext <<_ACEOF
16653 cat confdefs.h
>>conftest.
$ac_ext
16654 cat >>conftest.
$ac_ext <<_ACEOF
16655 /* end confdefs.h. */
16657 #include <sys/types.h>
16658 #include <sys/event.h>
16668 rm -f conftest.
$ac_objext
16669 if { (ac_try
="$ac_compile"
16670 case "(($ac_try" in
16671 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16672 *) ac_try_echo=$ac_try;;
16674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16675 (eval "$ac_compile") 2>conftest.er1
16677 grep -v '^ *+' conftest.er1 >conftest.err
16679 cat conftest.err >&5
16680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16681 (exit $ac_status); } && {
16682 test -z "$ac_c_werror_flag" ||
16683 test ! -s conftest.err
16684 } && test -s conftest.$ac_objext; then
16686 cat >>confdefs.h <<\_ACEOF
16687 #define HAVE_KQUEUE 1
16690 { echo "$as_me:$LINENO: result: yes" >&5
16691 echo "${ECHO_T}yes" >&6; }
16693 echo "$as_me: failed program was:" >&5
16694 sed 's/^/| /' conftest.$ac_ext >&5
16696 { echo "$as_me:$LINENO: result: no" >&5
16697 echo "${ECHO_T}no" >&6; }
16701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16702 # On some systems (eg. FreeBSD 5), we would find a definition of the
16703 # functions ctermid_r, setgroups in the library, but no prototype
16704 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
16705 # address to avoid compiler warnings and potential miscompilations
16706 # because of the missing prototypes.
16708 { echo "$as_me:$LINENO: checking for ctermid_r" >&5
16709 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; }
16710 cat >conftest.$ac_ext <<_ACEOF
16713 cat confdefs.h >>conftest.$ac_ext
16714 cat >>conftest.$ac_ext <<_ACEOF
16715 /* end confdefs.h. */
16717 #include "confdefs.h"
16723 void* p = ctermid_r
16728 rm -f conftest.$ac_objext
16729 if { (ac_try="$ac_compile"
16730 case "(($ac_try" in
16731 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16732 *) ac_try_echo
=$ac_try;;
16734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16735 (eval "$ac_compile") 2>conftest.er1
16737 grep -v '^ *+' conftest.er1
>conftest.err
16739 cat conftest.err
>&5
16740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741 (exit $ac_status); } && {
16742 test -z "$ac_c_werror_flag" ||
16743 test ! -s conftest.err
16744 } && test -s conftest.
$ac_objext; then
16746 cat >>confdefs.h
<<\_ACEOF
16747 #define HAVE_CTERMID_R 1
16750 { echo "$as_me:$LINENO: result: yes" >&5
16751 echo "${ECHO_T}yes" >&6; }
16753 echo "$as_me: failed program was:" >&5
16754 sed 's/^/| /' conftest.
$ac_ext >&5
16756 { echo "$as_me:$LINENO: result: no" >&5
16757 echo "${ECHO_T}no" >&6; }
16761 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16763 { echo "$as_me:$LINENO: checking for flock" >&5
16764 echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
16765 cat >conftest.
$ac_ext <<_ACEOF
16768 cat confdefs.h
>>conftest.
$ac_ext
16769 cat >>conftest.
$ac_ext <<_ACEOF
16770 /* end confdefs.h. */
16772 #include "confdefs.h"
16773 #include <sys/file.h>
16783 rm -f conftest.
$ac_objext
16784 if { (ac_try
="$ac_compile"
16785 case "(($ac_try" in
16786 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16787 *) ac_try_echo=$ac_try;;
16789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16790 (eval "$ac_compile") 2>conftest.er1
16792 grep -v '^ *+' conftest.er1 >conftest.err
16794 cat conftest.err >&5
16795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16796 (exit $ac_status); } && {
16797 test -z "$ac_c_werror_flag" ||
16798 test ! -s conftest.err
16799 } && test -s conftest.$ac_objext; then
16801 cat >>confdefs.h <<\_ACEOF
16802 #define HAVE_FLOCK 1
16805 { echo "$as_me:$LINENO: result: yes" >&5
16806 echo "${ECHO_T}yes" >&6; }
16808 echo "$as_me: failed program was:" >&5
16809 sed 's/^/| /' conftest.$ac_ext >&5
16811 { echo "$as_me:$LINENO: result: no" >&5
16812 echo "${ECHO_T}no" >&6; }
16816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16818 { echo "$as_me:$LINENO: checking for getpagesize" >&5
16819 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
16820 cat >conftest.$ac_ext <<_ACEOF
16823 cat confdefs.h >>conftest.$ac_ext
16824 cat >>conftest.$ac_ext <<_ACEOF
16825 /* end confdefs.h. */
16827 #include "confdefs.h"
16828 #include <unistd.h>
16833 void* p = getpagesize
16838 rm -f conftest.$ac_objext
16839 if { (ac_try="$ac_compile"
16840 case "(($ac_try" in
16841 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16842 *) ac_try_echo
=$ac_try;;
16844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16845 (eval "$ac_compile") 2>conftest.er1
16847 grep -v '^ *+' conftest.er1
>conftest.err
16849 cat conftest.err
>&5
16850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 (exit $ac_status); } && {
16852 test -z "$ac_c_werror_flag" ||
16853 test ! -s conftest.err
16854 } && test -s conftest.
$ac_objext; then
16856 cat >>confdefs.h
<<\_ACEOF
16857 #define HAVE_GETPAGESIZE 1
16860 { echo "$as_me:$LINENO: result: yes" >&5
16861 echo "${ECHO_T}yes" >&6; }
16863 echo "$as_me: failed program was:" >&5
16864 sed 's/^/| /' conftest.
$ac_ext >&5
16866 { echo "$as_me:$LINENO: result: no" >&5
16867 echo "${ECHO_T}no" >&6; }
16871 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16873 for ac_prog
in true
16875 # Extract the first word of "$ac_prog", so it can be a program name with args.
16876 set dummy
$ac_prog; ac_word
=$2
16877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16879 if test "${ac_cv_prog_TRUE+set}" = set; then
16880 echo $ECHO_N "(cached) $ECHO_C" >&6
16882 if test -n "$TRUE"; then
16883 ac_cv_prog_TRUE
="$TRUE" # Let the user override the test.
16885 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16886 for as_dir
in $PATH
16889 test -z "$as_dir" && as_dir
=.
16890 for ac_exec_ext
in '' $ac_executable_extensions; do
16891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16892 ac_cv_prog_TRUE
="$ac_prog"
16893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16902 TRUE
=$ac_cv_prog_TRUE
16903 if test -n "$TRUE"; then
16904 { echo "$as_me:$LINENO: result: $TRUE" >&5
16905 echo "${ECHO_T}$TRUE" >&6; }
16907 { echo "$as_me:$LINENO: result: no" >&5
16908 echo "${ECHO_T}no" >&6; }
16912 test -n "$TRUE" && break
16914 test -n "$TRUE" || TRUE
="/bin/true"
16917 { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
16918 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
16919 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
16920 echo $ECHO_N "(cached) $ECHO_C" >&6
16922 ac_check_lib_save_LIBS
=$LIBS
16924 cat >conftest.
$ac_ext <<_ACEOF
16927 cat confdefs.h
>>conftest.
$ac_ext
16928 cat >>conftest.
$ac_ext <<_ACEOF
16929 /* end confdefs.h. */
16931 /* Override any GCC internal prototype to avoid an error.
16932 Use char because int might match the return type of a GCC
16933 builtin and then its argument prototype would still apply. */
16941 return inet_aton ();
16946 rm -f conftest.
$ac_objext conftest
$ac_exeext
16947 if { (ac_try
="$ac_link"
16948 case "(($ac_try" in
16949 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16950 *) ac_try_echo=$ac_try;;
16952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16953 (eval "$ac_link") 2>conftest.er1
16955 grep -v '^ *+' conftest.er1 >conftest.err
16957 cat conftest.err >&5
16958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959 (exit $ac_status); } && {
16960 test -z "$ac_c_werror_flag" ||
16961 test ! -s conftest.err
16962 } && test -s conftest$ac_exeext &&
16963 $as_test_x conftest$ac_exeext; then
16964 ac_cv_lib_c_inet_aton=yes
16966 echo "$as_me: failed program was:" >&5
16967 sed 's/^/| /' conftest.$ac_ext >&5
16969 ac_cv_lib_c_inet_aton=no
16972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16973 conftest$ac_exeext conftest.$ac_ext
16974 LIBS=$ac_check_lib_save_LIBS
16976 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
16977 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
16978 if test $ac_cv_lib_c_inet_aton = yes; then
16982 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
16983 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
16984 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
16985 echo $ECHO_N "(cached) $ECHO_C" >&6
16987 ac_check_lib_save_LIBS=$LIBS
16988 LIBS="-lresolv $LIBS"
16989 cat >conftest.$ac_ext <<_ACEOF
16992 cat confdefs.h >>conftest.$ac_ext
16993 cat >>conftest.$ac_ext <<_ACEOF
16994 /* end confdefs.h. */
16996 /* Override any GCC internal prototype to avoid an error.
16997 Use char because int might match the return type of a GCC
16998 builtin and then its argument prototype would still apply. */
17006 return inet_aton ();
17011 rm -f conftest.$ac_objext conftest$ac_exeext
17012 if { (ac_try="$ac_link"
17013 case "(($ac_try" in
17014 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17015 *) ac_try_echo
=$ac_try;;
17017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17018 (eval "$ac_link") 2>conftest.er1
17020 grep -v '^ *+' conftest.er1
>conftest.err
17022 cat conftest.err
>&5
17023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024 (exit $ac_status); } && {
17025 test -z "$ac_c_werror_flag" ||
17026 test ! -s conftest.err
17027 } && test -s conftest
$ac_exeext &&
17028 $as_test_x conftest
$ac_exeext; then
17029 ac_cv_lib_resolv_inet_aton
=yes
17031 echo "$as_me: failed program was:" >&5
17032 sed 's/^/| /' conftest.
$ac_ext >&5
17034 ac_cv_lib_resolv_inet_aton
=no
17037 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17038 conftest
$ac_exeext conftest.
$ac_ext
17039 LIBS
=$ac_check_lib_save_LIBS
17041 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
17042 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
17043 if test $ac_cv_lib_resolv_inet_aton = yes; then
17044 cat >>confdefs.h
<<_ACEOF
17045 #define HAVE_LIBRESOLV 1
17048 LIBS
="-lresolv $LIBS"
17056 # On Tru64, chflags seems to be present, but calling it will
17058 { echo "$as_me:$LINENO: checking for chflags" >&5
17059 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
17060 if test "$cross_compiling" = yes; then
17061 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17062 See \`config.log' for more details." >&5
17063 echo "$as_me: error: cannot run test program while cross compiling
17064 See \`config.log' for more details." >&2;}
17065 { (exit 1); exit 1; }; }
17067 cat >conftest.
$ac_ext <<_ACEOF
17070 cat confdefs.h
>>conftest.
$ac_ext
17071 cat >>conftest.
$ac_ext <<_ACEOF
17072 /* end confdefs.h. */
17074 #include <sys/stat.h>
17075 #include <unistd.h>
17076 int main(int argc, char*argv[])
17078 if(chflags(argv[0], 0) != 0)
17084 rm -f conftest
$ac_exeext
17085 if { (ac_try
="$ac_link"
17086 case "(($ac_try" in
17087 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17088 *) ac_try_echo=$ac_try;;
17090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17091 (eval "$ac_link") 2>&5
17093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17095 { (case "(($ac_try" in
17096 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17097 *) ac_try_echo
=$ac_try;;
17099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17100 (eval "$ac_try") 2>&5
17102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103 (exit $ac_status); }; }; then
17105 cat >>confdefs.h
<<\_ACEOF
17106 #define HAVE_CHFLAGS 1
17109 { echo "$as_me:$LINENO: result: yes" >&5
17110 echo "${ECHO_T}yes" >&6; }
17112 echo "$as_me: program exited with status $ac_status" >&5
17113 echo "$as_me: failed program was:" >&5
17114 sed 's/^/| /' conftest.
$ac_ext >&5
17116 ( exit $ac_status )
17117 { echo "$as_me:$LINENO: result: no" >&5
17118 echo "${ECHO_T}no" >&6; }
17121 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17126 { echo "$as_me:$LINENO: checking for lchflags" >&5
17127 echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
17128 if test "$cross_compiling" = yes; then
17129 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17130 See \`config.log' for more details." >&5
17131 echo "$as_me: error: cannot run test program while cross compiling
17132 See \`config.log' for more details." >&2;}
17133 { (exit 1); exit 1; }; }
17135 cat >conftest.
$ac_ext <<_ACEOF
17138 cat confdefs.h
>>conftest.
$ac_ext
17139 cat >>conftest.
$ac_ext <<_ACEOF
17140 /* end confdefs.h. */
17142 #include <sys/stat.h>
17143 #include <unistd.h>
17144 int main(int argc, char*argv[])
17146 if(lchflags(argv[0], 0) != 0)
17152 rm -f conftest
$ac_exeext
17153 if { (ac_try
="$ac_link"
17154 case "(($ac_try" in
17155 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17156 *) ac_try_echo=$ac_try;;
17158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17159 (eval "$ac_link") 2>&5
17161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17162 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17163 { (case "(($ac_try" in
17164 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17165 *) ac_try_echo
=$ac_try;;
17167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17168 (eval "$ac_try") 2>&5
17170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171 (exit $ac_status); }; }; then
17173 cat >>confdefs.h
<<\_ACEOF
17174 #define HAVE_LCHFLAGS 1
17177 { echo "$as_me:$LINENO: result: yes" >&5
17178 echo "${ECHO_T}yes" >&6; }
17180 echo "$as_me: program exited with status $ac_status" >&5
17181 echo "$as_me: failed program was:" >&5
17182 sed 's/^/| /' conftest.
$ac_ext >&5
17184 ( exit $ac_status )
17185 { echo "$as_me:$LINENO: result: no" >&5
17186 echo "${ECHO_T}no" >&6; }
17189 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17194 case $ac_sys_system/$ac_sys_release in
17196 _CUR_CFLAGS
="${CFLAGS}"
17197 _CUR_LDFLAGS
="${LDFLAGS}"
17198 CFLAGS
="${CFLAGS} -Wl,-search_paths_first"
17199 LDFLAGS
="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
17203 { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
17204 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
17205 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
17206 echo $ECHO_N "(cached) $ECHO_C" >&6
17208 ac_check_lib_save_LIBS
=$LIBS
17210 cat >conftest.
$ac_ext <<_ACEOF
17213 cat confdefs.h
>>conftest.
$ac_ext
17214 cat >>conftest.
$ac_ext <<_ACEOF
17215 /* end confdefs.h. */
17217 /* Override any GCC internal prototype to avoid an error.
17218 Use char because int might match the return type of a GCC
17219 builtin and then its argument prototype would still apply. */
17223 char inflateCopy ();
17227 return inflateCopy ();
17232 rm -f conftest.
$ac_objext conftest
$ac_exeext
17233 if { (ac_try
="$ac_link"
17234 case "(($ac_try" in
17235 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17236 *) ac_try_echo=$ac_try;;
17238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17239 (eval "$ac_link") 2>conftest.er1
17241 grep -v '^ *+' conftest.er1 >conftest.err
17243 cat conftest.err >&5
17244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17245 (exit $ac_status); } && {
17246 test -z "$ac_c_werror_flag" ||
17247 test ! -s conftest.err
17248 } && test -s conftest$ac_exeext &&
17249 $as_test_x conftest$ac_exeext; then
17250 ac_cv_lib_z_inflateCopy=yes
17252 echo "$as_me: failed program was:" >&5
17253 sed 's/^/| /' conftest.$ac_ext >&5
17255 ac_cv_lib_z_inflateCopy=no
17258 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17259 conftest$ac_exeext conftest.$ac_ext
17260 LIBS=$ac_check_lib_save_LIBS
17262 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
17263 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
17264 if test $ac_cv_lib_z_inflateCopy = yes; then
17266 cat >>confdefs.h <<\_ACEOF
17267 #define HAVE_ZLIB_COPY 1
17273 case $ac_sys_system/$ac_sys_release in
17275 CFLAGS="${_CUR_CFLAGS}"
17276 LDFLAGS="${_CUR_LDFLAGS}"
17280 { echo "$as_me:$LINENO: checking for hstrerror" >&5
17281 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
17282 cat >conftest.$ac_ext <<_ACEOF
17285 cat confdefs.h >>conftest.$ac_ext
17286 cat >>conftest.$ac_ext <<_ACEOF
17287 /* end confdefs.h. */
17289 #include "confdefs.h"
17295 void* p = hstrerror; hstrerror(0)
17300 rm -f conftest.$ac_objext conftest$ac_exeext
17301 if { (ac_try="$ac_link"
17302 case "(($ac_try" in
17303 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17304 *) ac_try_echo
=$ac_try;;
17306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17307 (eval "$ac_link") 2>conftest.er1
17309 grep -v '^ *+' conftest.er1
>conftest.err
17311 cat conftest.err
>&5
17312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313 (exit $ac_status); } && {
17314 test -z "$ac_c_werror_flag" ||
17315 test ! -s conftest.err
17316 } && test -s conftest
$ac_exeext &&
17317 $as_test_x conftest
$ac_exeext; then
17319 cat >>confdefs.h
<<\_ACEOF
17320 #define HAVE_HSTRERROR 1
17323 { echo "$as_me:$LINENO: result: yes" >&5
17324 echo "${ECHO_T}yes" >&6; }
17326 echo "$as_me: failed program was:" >&5
17327 sed 's/^/| /' conftest.
$ac_ext >&5
17329 { echo "$as_me:$LINENO: result: no" >&5
17330 echo "${ECHO_T}no" >&6; }
17334 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17335 conftest
$ac_exeext conftest.
$ac_ext
17337 { echo "$as_me:$LINENO: checking for inet_aton" >&5
17338 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
17339 cat >conftest.
$ac_ext <<_ACEOF
17342 cat confdefs.h
>>conftest.
$ac_ext
17343 cat >>conftest.
$ac_ext <<_ACEOF
17344 /* end confdefs.h. */
17346 #include "confdefs.h"
17347 #include <sys/types.h>
17348 #include <sys/socket.h>
17349 #include <netinet/in.h>
17350 #include <arpa/inet.h>
17355 void* p = inet_aton;inet_aton(0,0)
17360 rm -f conftest.
$ac_objext conftest
$ac_exeext
17361 if { (ac_try
="$ac_link"
17362 case "(($ac_try" in
17363 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17364 *) ac_try_echo=$ac_try;;
17366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17367 (eval "$ac_link") 2>conftest.er1
17369 grep -v '^ *+' conftest.er1 >conftest.err
17371 cat conftest.err >&5
17372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17373 (exit $ac_status); } && {
17374 test -z "$ac_c_werror_flag" ||
17375 test ! -s conftest.err
17376 } && test -s conftest$ac_exeext &&
17377 $as_test_x conftest$ac_exeext; then
17379 cat >>confdefs.h <<\_ACEOF
17380 #define HAVE_INET_ATON 1
17383 { echo "$as_me:$LINENO: result: yes" >&5
17384 echo "${ECHO_T}yes" >&6; }
17386 echo "$as_me: failed program was:" >&5
17387 sed 's/^/| /' conftest.$ac_ext >&5
17389 { echo "$as_me:$LINENO: result: no" >&5
17390 echo "${ECHO_T}no" >&6; }
17394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17395 conftest$ac_exeext conftest.$ac_ext
17397 { echo "$as_me:$LINENO: checking for inet_pton" >&5
17398 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
17399 cat >conftest.$ac_ext <<_ACEOF
17402 cat confdefs.h >>conftest.$ac_ext
17403 cat >>conftest.$ac_ext <<_ACEOF
17404 /* end confdefs.h. */
17406 #include "confdefs.h"
17407 #include <sys/types.h>
17408 #include <sys/socket.h>
17409 #include <netinet/in.h>
17410 #include <arpa/inet.h>
17415 void* p = inet_pton
17420 rm -f conftest.$ac_objext
17421 if { (ac_try="$ac_compile"
17422 case "(($ac_try" in
17423 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17424 *) ac_try_echo
=$ac_try;;
17426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17427 (eval "$ac_compile") 2>conftest.er1
17429 grep -v '^ *+' conftest.er1
>conftest.err
17431 cat conftest.err
>&5
17432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433 (exit $ac_status); } && {
17434 test -z "$ac_c_werror_flag" ||
17435 test ! -s conftest.err
17436 } && test -s conftest.
$ac_objext; then
17438 cat >>confdefs.h
<<\_ACEOF
17439 #define HAVE_INET_PTON 1
17442 { echo "$as_me:$LINENO: result: yes" >&5
17443 echo "${ECHO_T}yes" >&6; }
17445 echo "$as_me: failed program was:" >&5
17446 sed 's/^/| /' conftest.
$ac_ext >&5
17448 { echo "$as_me:$LINENO: result: no" >&5
17449 echo "${ECHO_T}no" >&6; }
17453 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17455 # On some systems, setgroups is in unistd.h, on others, in grp.h
17456 { echo "$as_me:$LINENO: checking for setgroups" >&5
17457 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
17458 cat >conftest.
$ac_ext <<_ACEOF
17461 cat confdefs.h
>>conftest.
$ac_ext
17462 cat >>conftest.
$ac_ext <<_ACEOF
17463 /* end confdefs.h. */
17465 #include "confdefs.h"
17466 #include <unistd.h>
17474 void* p = setgroups
17479 rm -f conftest.
$ac_objext
17480 if { (ac_try
="$ac_compile"
17481 case "(($ac_try" in
17482 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17483 *) ac_try_echo=$ac_try;;
17485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17486 (eval "$ac_compile") 2>conftest.er1
17488 grep -v '^ *+' conftest.er1 >conftest.err
17490 cat conftest.err >&5
17491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492 (exit $ac_status); } && {
17493 test -z "$ac_c_werror_flag" ||
17494 test ! -s conftest.err
17495 } && test -s conftest.$ac_objext; then
17497 cat >>confdefs.h <<\_ACEOF
17498 #define HAVE_SETGROUPS 1
17501 { echo "$as_me:$LINENO: result: yes" >&5
17502 echo "${ECHO_T}yes" >&6; }
17504 echo "$as_me: failed program was:" >&5
17505 sed 's/^/| /' conftest.$ac_ext >&5
17507 { echo "$as_me:$LINENO: result: no" >&5
17508 echo "${ECHO_T}no" >&6; }
17512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17514 # check for openpty and forkpty
17517 for ac_func in openpty
17519 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
17520 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17521 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17522 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17523 echo $ECHO_N "(cached) $ECHO_C" >&6
17525 cat >conftest.$ac_ext <<_ACEOF
17528 cat confdefs.h >>conftest.$ac_ext
17529 cat >>conftest.$ac_ext <<_ACEOF
17530 /* end confdefs.h. */
17531 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17532 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17533 #define $ac_func innocuous_$ac_func
17535 /* System header to define __stub macros and hopefully few prototypes,
17536 which can conflict with char $ac_func (); below.
17537 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17538 <limits.h> exists even on freestanding compilers. */
17541 # include <limits.h>
17543 # include <assert.h>
17548 /* Override any GCC internal prototype to avoid an error.
17549 Use char because int might match the return type of a GCC
17550 builtin and then its argument prototype would still apply. */
17555 /* The GNU C library defines this for functions which it implements
17556 to always fail with ENOSYS. Some functions are actually named
17557 something starting with __ and the normal name is an alias. */
17558 #if defined __stub_$ac_func || defined __stub___$ac_func
17565 return $ac_func ();
17570 rm -f conftest.$ac_objext conftest$ac_exeext
17571 if { (ac_try="$ac_link"
17572 case "(($ac_try" in
17573 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17574 *) ac_try_echo
=$ac_try;;
17576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17577 (eval "$ac_link") 2>conftest.er1
17579 grep -v '^ *+' conftest.er1
>conftest.err
17581 cat conftest.err
>&5
17582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17583 (exit $ac_status); } && {
17584 test -z "$ac_c_werror_flag" ||
17585 test ! -s conftest.err
17586 } && test -s conftest
$ac_exeext &&
17587 $as_test_x conftest
$ac_exeext; then
17588 eval "$as_ac_var=yes"
17590 echo "$as_me: failed program was:" >&5
17591 sed 's/^/| /' conftest.
$ac_ext >&5
17593 eval "$as_ac_var=no"
17596 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17597 conftest
$ac_exeext conftest.
$ac_ext
17599 ac_res
=`eval echo '${'$as_ac_var'}'`
17600 { echo "$as_me:$LINENO: result: $ac_res" >&5
17601 echo "${ECHO_T}$ac_res" >&6; }
17602 if test `eval echo '${'$as_ac_var'}'` = yes; then
17603 cat >>confdefs.h
<<_ACEOF
17604 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17608 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
17609 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
17610 if test "${ac_cv_lib_util_openpty+set}" = set; then
17611 echo $ECHO_N "(cached) $ECHO_C" >&6
17613 ac_check_lib_save_LIBS
=$LIBS
17614 LIBS
="-lutil $LIBS"
17615 cat >conftest.
$ac_ext <<_ACEOF
17618 cat confdefs.h
>>conftest.
$ac_ext
17619 cat >>conftest.
$ac_ext <<_ACEOF
17620 /* end confdefs.h. */
17622 /* Override any GCC internal prototype to avoid an error.
17623 Use char because int might match the return type of a GCC
17624 builtin and then its argument prototype would still apply. */
17637 rm -f conftest.
$ac_objext conftest
$ac_exeext
17638 if { (ac_try
="$ac_link"
17639 case "(($ac_try" in
17640 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17641 *) ac_try_echo=$ac_try;;
17643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17644 (eval "$ac_link") 2>conftest.er1
17646 grep -v '^ *+' conftest.er1 >conftest.err
17648 cat conftest.err >&5
17649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17650 (exit $ac_status); } && {
17651 test -z "$ac_c_werror_flag" ||
17652 test ! -s conftest.err
17653 } && test -s conftest$ac_exeext &&
17654 $as_test_x conftest$ac_exeext; then
17655 ac_cv_lib_util_openpty=yes
17657 echo "$as_me: failed program was:" >&5
17658 sed 's/^/| /' conftest.$ac_ext >&5
17660 ac_cv_lib_util_openpty=no
17663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17664 conftest$ac_exeext conftest.$ac_ext
17665 LIBS=$ac_check_lib_save_LIBS
17667 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
17668 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
17669 if test $ac_cv_lib_util_openpty = yes; then
17670 cat >>confdefs.h <<\_ACEOF
17671 #define HAVE_OPENPTY 1
17673 LIBS="$LIBS -lutil"
17675 { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
17676 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
17677 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
17678 echo $ECHO_N "(cached) $ECHO_C" >&6
17680 ac_check_lib_save_LIBS=$LIBS
17682 cat >conftest.$ac_ext <<_ACEOF
17685 cat confdefs.h >>conftest.$ac_ext
17686 cat >>conftest.$ac_ext <<_ACEOF
17687 /* end confdefs.h. */
17689 /* Override any GCC internal prototype to avoid an error.
17690 Use char because int might match the return type of a GCC
17691 builtin and then its argument prototype would still apply. */
17704 rm -f conftest.$ac_objext conftest$ac_exeext
17705 if { (ac_try="$ac_link"
17706 case "(($ac_try" in
17707 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17708 *) ac_try_echo
=$ac_try;;
17710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17711 (eval "$ac_link") 2>conftest.er1
17713 grep -v '^ *+' conftest.er1
>conftest.err
17715 cat conftest.err
>&5
17716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17717 (exit $ac_status); } && {
17718 test -z "$ac_c_werror_flag" ||
17719 test ! -s conftest.err
17720 } && test -s conftest
$ac_exeext &&
17721 $as_test_x conftest
$ac_exeext; then
17722 ac_cv_lib_bsd_openpty
=yes
17724 echo "$as_me: failed program was:" >&5
17725 sed 's/^/| /' conftest.
$ac_ext >&5
17727 ac_cv_lib_bsd_openpty
=no
17730 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17731 conftest
$ac_exeext conftest.
$ac_ext
17732 LIBS
=$ac_check_lib_save_LIBS
17734 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
17735 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
17736 if test $ac_cv_lib_bsd_openpty = yes; then
17737 cat >>confdefs.h
<<\_ACEOF
17738 #define HAVE_OPENPTY 1
17751 for ac_func
in forkpty
17753 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17754 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17755 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17756 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17757 echo $ECHO_N "(cached) $ECHO_C" >&6
17759 cat >conftest.
$ac_ext <<_ACEOF
17762 cat confdefs.h
>>conftest.
$ac_ext
17763 cat >>conftest.
$ac_ext <<_ACEOF
17764 /* end confdefs.h. */
17765 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17766 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17767 #define $ac_func innocuous_$ac_func
17769 /* System header to define __stub macros and hopefully few prototypes,
17770 which can conflict with char $ac_func (); below.
17771 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17772 <limits.h> exists even on freestanding compilers. */
17775 # include <limits.h>
17777 # include <assert.h>
17782 /* Override any GCC internal prototype to avoid an error.
17783 Use char because int might match the return type of a GCC
17784 builtin and then its argument prototype would still apply. */
17789 /* The GNU C library defines this for functions which it implements
17790 to always fail with ENOSYS. Some functions are actually named
17791 something starting with __ and the normal name is an alias. */
17792 #if defined __stub_$ac_func || defined __stub___$ac_func
17799 return $ac_func ();
17804 rm -f conftest.
$ac_objext conftest
$ac_exeext
17805 if { (ac_try
="$ac_link"
17806 case "(($ac_try" in
17807 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17808 *) ac_try_echo=$ac_try;;
17810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17811 (eval "$ac_link") 2>conftest.er1
17813 grep -v '^ *+' conftest.er1 >conftest.err
17815 cat conftest.err >&5
17816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817 (exit $ac_status); } && {
17818 test -z "$ac_c_werror_flag" ||
17819 test ! -s conftest.err
17820 } && test -s conftest$ac_exeext &&
17821 $as_test_x conftest$ac_exeext; then
17822 eval "$as_ac_var=yes"
17824 echo "$as_me: failed program was:" >&5
17825 sed 's/^/| /' conftest.$ac_ext >&5
17827 eval "$as_ac_var=no"
17830 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17831 conftest$ac_exeext conftest.$ac_ext
17833 ac_res=`eval echo '${'$as_ac_var'}'`
17834 { echo "$as_me:$LINENO: result: $ac_res" >&5
17835 echo "${ECHO_T}$ac_res" >&6; }
17836 if test `eval echo '${'$as_ac_var'}'` = yes; then
17837 cat >>confdefs.h <<_ACEOF
17838 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17842 { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
17843 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
17844 if test "${ac_cv_lib_util_forkpty+set}" = set; then
17845 echo $ECHO_N "(cached) $ECHO_C" >&6
17847 ac_check_lib_save_LIBS=$LIBS
17848 LIBS="-lutil $LIBS"
17849 cat >conftest.$ac_ext <<_ACEOF
17852 cat confdefs.h >>conftest.$ac_ext
17853 cat >>conftest.$ac_ext <<_ACEOF
17854 /* end confdefs.h. */
17856 /* Override any GCC internal prototype to avoid an error.
17857 Use char because int might match the return type of a GCC
17858 builtin and then its argument prototype would still apply. */
17871 rm -f conftest.$ac_objext conftest$ac_exeext
17872 if { (ac_try="$ac_link"
17873 case "(($ac_try" in
17874 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17875 *) ac_try_echo
=$ac_try;;
17877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17878 (eval "$ac_link") 2>conftest.er1
17880 grep -v '^ *+' conftest.er1
>conftest.err
17882 cat conftest.err
>&5
17883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17884 (exit $ac_status); } && {
17885 test -z "$ac_c_werror_flag" ||
17886 test ! -s conftest.err
17887 } && test -s conftest
$ac_exeext &&
17888 $as_test_x conftest
$ac_exeext; then
17889 ac_cv_lib_util_forkpty
=yes
17891 echo "$as_me: failed program was:" >&5
17892 sed 's/^/| /' conftest.
$ac_ext >&5
17894 ac_cv_lib_util_forkpty
=no
17897 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17898 conftest
$ac_exeext conftest.
$ac_ext
17899 LIBS
=$ac_check_lib_save_LIBS
17901 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
17902 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
17903 if test $ac_cv_lib_util_forkpty = yes; then
17904 cat >>confdefs.h
<<\_ACEOF
17905 #define HAVE_FORKPTY 1
17907 LIBS
="$LIBS -lutil"
17909 { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
17910 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
17911 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
17912 echo $ECHO_N "(cached) $ECHO_C" >&6
17914 ac_check_lib_save_LIBS
=$LIBS
17916 cat >conftest.
$ac_ext <<_ACEOF
17919 cat confdefs.h
>>conftest.
$ac_ext
17920 cat >>conftest.
$ac_ext <<_ACEOF
17921 /* end confdefs.h. */
17923 /* Override any GCC internal prototype to avoid an error.
17924 Use char because int might match the return type of a GCC
17925 builtin and then its argument prototype would still apply. */
17938 rm -f conftest.
$ac_objext conftest
$ac_exeext
17939 if { (ac_try
="$ac_link"
17940 case "(($ac_try" in
17941 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17942 *) ac_try_echo=$ac_try;;
17944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17945 (eval "$ac_link") 2>conftest.er1
17947 grep -v '^ *+' conftest.er1 >conftest.err
17949 cat conftest.err >&5
17950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17951 (exit $ac_status); } && {
17952 test -z "$ac_c_werror_flag" ||
17953 test ! -s conftest.err
17954 } && test -s conftest$ac_exeext &&
17955 $as_test_x conftest$ac_exeext; then
17956 ac_cv_lib_bsd_forkpty=yes
17958 echo "$as_me: failed program was:" >&5
17959 sed 's/^/| /' conftest.$ac_ext >&5
17961 ac_cv_lib_bsd_forkpty=no
17964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17965 conftest$ac_exeext conftest.$ac_ext
17966 LIBS=$ac_check_lib_save_LIBS
17968 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
17969 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
17970 if test $ac_cv_lib_bsd_forkpty = yes; then
17971 cat >>confdefs.h <<\_ACEOF
17972 #define HAVE_FORKPTY 1
17987 for ac_func in memmove
17989 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
17990 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17991 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17992 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17993 echo $ECHO_N "(cached) $ECHO_C" >&6
17995 cat >conftest.$ac_ext <<_ACEOF
17998 cat confdefs.h >>conftest.$ac_ext
17999 cat >>conftest.$ac_ext <<_ACEOF
18000 /* end confdefs.h. */
18001 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18002 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18003 #define $ac_func innocuous_$ac_func
18005 /* System header to define __stub macros and hopefully few prototypes,
18006 which can conflict with char $ac_func (); below.
18007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18008 <limits.h> exists even on freestanding compilers. */
18011 # include <limits.h>
18013 # include <assert.h>
18018 /* Override any GCC internal prototype to avoid an error.
18019 Use char because int might match the return type of a GCC
18020 builtin and then its argument prototype would still apply. */
18025 /* The GNU C library defines this for functions which it implements
18026 to always fail with ENOSYS. Some functions are actually named
18027 something starting with __ and the normal name is an alias. */
18028 #if defined __stub_$ac_func || defined __stub___$ac_func
18035 return $ac_func ();
18040 rm -f conftest.$ac_objext conftest$ac_exeext
18041 if { (ac_try="$ac_link"
18042 case "(($ac_try" in
18043 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18044 *) ac_try_echo
=$ac_try;;
18046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18047 (eval "$ac_link") 2>conftest.er1
18049 grep -v '^ *+' conftest.er1
>conftest.err
18051 cat conftest.err
>&5
18052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18053 (exit $ac_status); } && {
18054 test -z "$ac_c_werror_flag" ||
18055 test ! -s conftest.err
18056 } && test -s conftest
$ac_exeext &&
18057 $as_test_x conftest
$ac_exeext; then
18058 eval "$as_ac_var=yes"
18060 echo "$as_me: failed program was:" >&5
18061 sed 's/^/| /' conftest.
$ac_ext >&5
18063 eval "$as_ac_var=no"
18066 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18067 conftest
$ac_exeext conftest.
$ac_ext
18069 ac_res
=`eval echo '${'$as_ac_var'}'`
18070 { echo "$as_me:$LINENO: result: $ac_res" >&5
18071 echo "${ECHO_T}$ac_res" >&6; }
18072 if test `eval echo '${'$as_ac_var'}'` = yes; then
18073 cat >>confdefs.h
<<_ACEOF
18074 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18081 # check for long file support functions
18088 for ac_func
in fseek64 fseeko fstatvfs ftell64 ftello statvfs
18090 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18091 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18092 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18093 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18094 echo $ECHO_N "(cached) $ECHO_C" >&6
18096 cat >conftest.
$ac_ext <<_ACEOF
18099 cat confdefs.h
>>conftest.
$ac_ext
18100 cat >>conftest.
$ac_ext <<_ACEOF
18101 /* end confdefs.h. */
18102 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18103 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18104 #define $ac_func innocuous_$ac_func
18106 /* System header to define __stub macros and hopefully few prototypes,
18107 which can conflict with char $ac_func (); below.
18108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18109 <limits.h> exists even on freestanding compilers. */
18112 # include <limits.h>
18114 # include <assert.h>
18119 /* Override any GCC internal prototype to avoid an error.
18120 Use char because int might match the return type of a GCC
18121 builtin and then its argument prototype would still apply. */
18126 /* The GNU C library defines this for functions which it implements
18127 to always fail with ENOSYS. Some functions are actually named
18128 something starting with __ and the normal name is an alias. */
18129 #if defined __stub_$ac_func || defined __stub___$ac_func
18136 return $ac_func ();
18141 rm -f conftest.
$ac_objext conftest
$ac_exeext
18142 if { (ac_try
="$ac_link"
18143 case "(($ac_try" in
18144 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18145 *) ac_try_echo=$ac_try;;
18147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18148 (eval "$ac_link") 2>conftest.er1
18150 grep -v '^ *+' conftest.er1 >conftest.err
18152 cat conftest.err >&5
18153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18154 (exit $ac_status); } && {
18155 test -z "$ac_c_werror_flag" ||
18156 test ! -s conftest.err
18157 } && test -s conftest$ac_exeext &&
18158 $as_test_x conftest$ac_exeext; then
18159 eval "$as_ac_var=yes"
18161 echo "$as_me: failed program was:" >&5
18162 sed 's/^/| /' conftest.$ac_ext >&5
18164 eval "$as_ac_var=no"
18167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18168 conftest$ac_exeext conftest.$ac_ext
18170 ac_res=`eval echo '${'$as_ac_var'}'`
18171 { echo "$as_me:$LINENO: result: $ac_res" >&5
18172 echo "${ECHO_T}$ac_res" >&6; }
18173 if test `eval echo '${'$as_ac_var'}'` = yes; then
18174 cat >>confdefs.h <<_ACEOF
18175 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18185 for ac_func in dup2 getcwd strdup
18187 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18188 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18189 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18190 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18191 echo $ECHO_N "(cached) $ECHO_C" >&6
18193 cat >conftest.$ac_ext <<_ACEOF
18196 cat confdefs.h >>conftest.$ac_ext
18197 cat >>conftest.$ac_ext <<_ACEOF
18198 /* end confdefs.h. */
18199 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18200 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18201 #define $ac_func innocuous_$ac_func
18203 /* System header to define __stub macros and hopefully few prototypes,
18204 which can conflict with char $ac_func (); below.
18205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18206 <limits.h> exists even on freestanding compilers. */
18209 # include <limits.h>
18211 # include <assert.h>
18216 /* Override any GCC internal prototype to avoid an error.
18217 Use char because int might match the return type of a GCC
18218 builtin and then its argument prototype would still apply. */
18223 /* The GNU C library defines this for functions which it implements
18224 to always fail with ENOSYS. Some functions are actually named
18225 something starting with __ and the normal name is an alias. */
18226 #if defined __stub_$ac_func || defined __stub___$ac_func
18233 return $ac_func ();
18238 rm -f conftest.$ac_objext conftest$ac_exeext
18239 if { (ac_try="$ac_link"
18240 case "(($ac_try" in
18241 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18242 *) ac_try_echo
=$ac_try;;
18244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18245 (eval "$ac_link") 2>conftest.er1
18247 grep -v '^ *+' conftest.er1
>conftest.err
18249 cat conftest.err
>&5
18250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251 (exit $ac_status); } && {
18252 test -z "$ac_c_werror_flag" ||
18253 test ! -s conftest.err
18254 } && test -s conftest
$ac_exeext &&
18255 $as_test_x conftest
$ac_exeext; then
18256 eval "$as_ac_var=yes"
18258 echo "$as_me: failed program was:" >&5
18259 sed 's/^/| /' conftest.
$ac_ext >&5
18261 eval "$as_ac_var=no"
18264 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18265 conftest
$ac_exeext conftest.
$ac_ext
18267 ac_res
=`eval echo '${'$as_ac_var'}'`
18268 { echo "$as_me:$LINENO: result: $ac_res" >&5
18269 echo "${ECHO_T}$ac_res" >&6; }
18270 if test `eval echo '${'$as_ac_var'}'` = yes; then
18271 cat >>confdefs.h
<<_ACEOF
18272 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18276 case " $LIBOBJS " in
18277 *" $ac_func.$ac_objext "* ) ;;
18278 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
18287 for ac_func
in getpgrp
18289 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18290 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18291 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18292 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18293 echo $ECHO_N "(cached) $ECHO_C" >&6
18295 cat >conftest.
$ac_ext <<_ACEOF
18298 cat confdefs.h
>>conftest.
$ac_ext
18299 cat >>conftest.
$ac_ext <<_ACEOF
18300 /* end confdefs.h. */
18301 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18302 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18303 #define $ac_func innocuous_$ac_func
18305 /* System header to define __stub macros and hopefully few prototypes,
18306 which can conflict with char $ac_func (); below.
18307 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18308 <limits.h> exists even on freestanding compilers. */
18311 # include <limits.h>
18313 # include <assert.h>
18318 /* Override any GCC internal prototype to avoid an error.
18319 Use char because int might match the return type of a GCC
18320 builtin and then its argument prototype would still apply. */
18325 /* The GNU C library defines this for functions which it implements
18326 to always fail with ENOSYS. Some functions are actually named
18327 something starting with __ and the normal name is an alias. */
18328 #if defined __stub_$ac_func || defined __stub___$ac_func
18335 return $ac_func ();
18340 rm -f conftest.
$ac_objext conftest
$ac_exeext
18341 if { (ac_try
="$ac_link"
18342 case "(($ac_try" in
18343 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18344 *) ac_try_echo=$ac_try;;
18346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18347 (eval "$ac_link") 2>conftest.er1
18349 grep -v '^ *+' conftest.er1 >conftest.err
18351 cat conftest.err >&5
18352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18353 (exit $ac_status); } && {
18354 test -z "$ac_c_werror_flag" ||
18355 test ! -s conftest.err
18356 } && test -s conftest$ac_exeext &&
18357 $as_test_x conftest$ac_exeext; then
18358 eval "$as_ac_var=yes"
18360 echo "$as_me: failed program was:" >&5
18361 sed 's/^/| /' conftest.$ac_ext >&5
18363 eval "$as_ac_var=no"
18366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18367 conftest$ac_exeext conftest.$ac_ext
18369 ac_res=`eval echo '${'$as_ac_var'}'`
18370 { echo "$as_me:$LINENO: result: $ac_res" >&5
18371 echo "${ECHO_T}$ac_res" >&6; }
18372 if test `eval echo '${'$as_ac_var'}'` = yes; then
18373 cat >>confdefs.h <<_ACEOF
18374 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18376 cat >conftest.$ac_ext <<_ACEOF
18379 cat confdefs.h >>conftest.$ac_ext
18380 cat >>conftest.$ac_ext <<_ACEOF
18381 /* end confdefs.h. */
18382 #include <unistd.h>
18391 rm -f conftest.$ac_objext
18392 if { (ac_try="$ac_compile"
18393 case "(($ac_try" in
18394 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18395 *) ac_try_echo
=$ac_try;;
18397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18398 (eval "$ac_compile") 2>conftest.er1
18400 grep -v '^ *+' conftest.er1
>conftest.err
18402 cat conftest.err
>&5
18403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18404 (exit $ac_status); } && {
18405 test -z "$ac_c_werror_flag" ||
18406 test ! -s conftest.err
18407 } && test -s conftest.
$ac_objext; then
18409 cat >>confdefs.h
<<\_ACEOF
18410 #define GETPGRP_HAVE_ARG 1
18415 echo "$as_me: failed program was:" >&5
18416 sed 's/^/| /' conftest.
$ac_ext >&5
18421 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18427 for ac_func
in setpgrp
18429 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18430 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18431 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18432 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18433 echo $ECHO_N "(cached) $ECHO_C" >&6
18435 cat >conftest.
$ac_ext <<_ACEOF
18438 cat confdefs.h
>>conftest.
$ac_ext
18439 cat >>conftest.
$ac_ext <<_ACEOF
18440 /* end confdefs.h. */
18441 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18442 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18443 #define $ac_func innocuous_$ac_func
18445 /* System header to define __stub macros and hopefully few prototypes,
18446 which can conflict with char $ac_func (); below.
18447 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18448 <limits.h> exists even on freestanding compilers. */
18451 # include <limits.h>
18453 # include <assert.h>
18458 /* Override any GCC internal prototype to avoid an error.
18459 Use char because int might match the return type of a GCC
18460 builtin and then its argument prototype would still apply. */
18465 /* The GNU C library defines this for functions which it implements
18466 to always fail with ENOSYS. Some functions are actually named
18467 something starting with __ and the normal name is an alias. */
18468 #if defined __stub_$ac_func || defined __stub___$ac_func
18475 return $ac_func ();
18480 rm -f conftest.
$ac_objext conftest
$ac_exeext
18481 if { (ac_try
="$ac_link"
18482 case "(($ac_try" in
18483 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18484 *) ac_try_echo=$ac_try;;
18486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18487 (eval "$ac_link") 2>conftest.er1
18489 grep -v '^ *+' conftest.er1 >conftest.err
18491 cat conftest.err >&5
18492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18493 (exit $ac_status); } && {
18494 test -z "$ac_c_werror_flag" ||
18495 test ! -s conftest.err
18496 } && test -s conftest$ac_exeext &&
18497 $as_test_x conftest$ac_exeext; then
18498 eval "$as_ac_var=yes"
18500 echo "$as_me: failed program was:" >&5
18501 sed 's/^/| /' conftest.$ac_ext >&5
18503 eval "$as_ac_var=no"
18506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18507 conftest$ac_exeext conftest.$ac_ext
18509 ac_res=`eval echo '${'$as_ac_var'}'`
18510 { echo "$as_me:$LINENO: result: $ac_res" >&5
18511 echo "${ECHO_T}$ac_res" >&6; }
18512 if test `eval echo '${'$as_ac_var'}'` = yes; then
18513 cat >>confdefs.h <<_ACEOF
18514 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18516 cat >conftest.$ac_ext <<_ACEOF
18519 cat confdefs.h >>conftest.$ac_ext
18520 cat >>conftest.$ac_ext <<_ACEOF
18521 /* end confdefs.h. */
18522 #include <unistd.h>
18531 rm -f conftest.$ac_objext
18532 if { (ac_try="$ac_compile"
18533 case "(($ac_try" in
18534 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18535 *) ac_try_echo
=$ac_try;;
18537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18538 (eval "$ac_compile") 2>conftest.er1
18540 grep -v '^ *+' conftest.er1
>conftest.err
18542 cat conftest.err
>&5
18543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544 (exit $ac_status); } && {
18545 test -z "$ac_c_werror_flag" ||
18546 test ! -s conftest.err
18547 } && test -s conftest.
$ac_objext; then
18549 cat >>confdefs.h
<<\_ACEOF
18550 #define SETPGRP_HAVE_ARG 1
18555 echo "$as_me: failed program was:" >&5
18556 sed 's/^/| /' conftest.
$ac_ext >&5
18561 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18567 for ac_func
in gettimeofday
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
18656 cat >conftest.$ac_ext <<_ACEOF
18659 cat confdefs.h >>conftest.$ac_ext
18660 cat >>conftest.$ac_ext <<_ACEOF
18661 /* end confdefs.h. */
18662 #include <sys/time.h>
18666 gettimeofday((struct timeval*)0,(struct timezone*)0);
18671 rm -f conftest.$ac_objext
18672 if { (ac_try="$ac_compile"
18673 case "(($ac_try" in
18674 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18675 *) ac_try_echo
=$ac_try;;
18677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18678 (eval "$ac_compile") 2>conftest.er1
18680 grep -v '^ *+' conftest.er1
>conftest.err
18682 cat conftest.err
>&5
18683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18684 (exit $ac_status); } && {
18685 test -z "$ac_c_werror_flag" ||
18686 test ! -s conftest.err
18687 } && test -s conftest.
$ac_objext; then
18690 echo "$as_me: failed program was:" >&5
18691 sed 's/^/| /' conftest.
$ac_ext >&5
18694 cat >>confdefs.h
<<\_ACEOF
18695 #define GETTIMEOFDAY_NO_TZ 1
18701 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18707 { echo "$as_me:$LINENO: checking for major" >&5
18708 echo $ECHO_N "checking for major... $ECHO_C" >&6; }
18709 cat >conftest.
$ac_ext <<_ACEOF
18712 cat confdefs.h
>>conftest.
$ac_ext
18713 cat >>conftest.
$ac_ext <<_ACEOF
18714 /* end confdefs.h. */
18716 #if defined(MAJOR_IN_MKDEV)
18717 #include <sys/mkdev.h>
18718 #elif defined(MAJOR_IN_SYSMACROS)
18719 #include <sys/sysmacros.h>
18721 #include <sys/types.h>
18728 makedev(major(0),minor(0));
18734 rm -f conftest.
$ac_objext conftest
$ac_exeext
18735 if { (ac_try
="$ac_link"
18736 case "(($ac_try" in
18737 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18738 *) ac_try_echo=$ac_try;;
18740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18741 (eval "$ac_link") 2>conftest.er1
18743 grep -v '^ *+' conftest.er1 >conftest.err
18745 cat conftest.err >&5
18746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18747 (exit $ac_status); } && {
18748 test -z "$ac_c_werror_flag" ||
18749 test ! -s conftest.err
18750 } && test -s conftest$ac_exeext &&
18751 $as_test_x conftest$ac_exeext; then
18754 cat >>confdefs.h <<\_ACEOF
18755 #define HAVE_DEVICE_MACROS 1
18758 { echo "$as_me:$LINENO: result: yes" >&5
18759 echo "${ECHO_T}yes" >&6; }
18762 echo "$as_me: failed program was:" >&5
18763 sed 's/^/| /' conftest.$ac_ext >&5
18766 { echo "$as_me:$LINENO: result: no" >&5
18767 echo "${ECHO_T}no" >&6; }
18771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18772 conftest$ac_exeext conftest.$ac_ext
18774 # On OSF/1 V5.1, getaddrinfo is available, but a define
18775 # for [no]getaddrinfo in netdb.h.
18776 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
18777 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
18778 cat >conftest.$ac_ext <<_ACEOF
18781 cat confdefs.h >>conftest.$ac_ext
18782 cat >>conftest.$ac_ext <<_ACEOF
18783 /* end confdefs.h. */
18785 #include <sys/types.h>
18786 #include <sys/socket.h>
18794 getaddrinfo(NULL, NULL, NULL, NULL);
18800 rm -f conftest.$ac_objext conftest$ac_exeext
18801 if { (ac_try="$ac_link"
18802 case "(($ac_try" in
18803 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18804 *) ac_try_echo
=$ac_try;;
18806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18807 (eval "$ac_link") 2>conftest.er1
18809 grep -v '^ *+' conftest.er1
>conftest.err
18811 cat conftest.err
>&5
18812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18813 (exit $ac_status); } && {
18814 test -z "$ac_c_werror_flag" ||
18815 test ! -s conftest.err
18816 } && test -s conftest
$ac_exeext &&
18817 $as_test_x conftest
$ac_exeext; then
18819 { echo "$as_me:$LINENO: result: yes" >&5
18820 echo "${ECHO_T}yes" >&6; }
18821 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
18822 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
18823 if test "$cross_compiling" = yes; then
18824 { echo "$as_me:$LINENO: result: buggy" >&5
18825 echo "${ECHO_T}buggy" >&6; }
18826 buggygetaddrinfo
=yes
18828 cat >conftest.
$ac_ext <<_ACEOF
18831 cat confdefs.h
>>conftest.
$ac_ext
18832 cat >>conftest.
$ac_ext <<_ACEOF
18833 /* end confdefs.h. */
18835 #include <sys/types.h>
18837 #include <string.h>
18838 #include <sys/socket.h>
18839 #include <netinet/in.h>
18843 int passive, gaierr, inet4 = 0, inet6 = 0;
18844 struct addrinfo hints, *ai, *aitop;
18845 char straddr[INET6_ADDRSTRLEN], strport[16];
18847 for (passive = 0; passive <= 1; passive++) {
18848 memset(&hints, 0, sizeof(hints));
18849 hints.ai_family = AF_UNSPEC;
18850 hints.ai_flags = passive ? AI_PASSIVE : 0;
18851 hints.ai_socktype = SOCK_STREAM;
18852 hints.ai_protocol = IPPROTO_TCP;
18853 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
18854 (void)gai_strerror(gaierr);
18857 for (ai = aitop; ai; ai = ai->ai_next) {
18858 if (ai->ai_addr == NULL ||
18859 ai->ai_addrlen == 0 ||
18860 getnameinfo(ai->ai_addr, ai->ai_addrlen,
18861 straddr, sizeof(straddr), strport, sizeof(strport),
18862 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
18865 switch (ai->ai_family) {
18867 if (strcmp(strport, "54321") != 0) {
18871 if (strcmp(straddr, "0.0.0.0") != 0) {
18875 if (strcmp(straddr, "127.0.0.1") != 0) {
18882 if (strcmp(strport, "54321") != 0) {
18886 if (strcmp(straddr, "::") != 0) {
18890 if (strcmp(straddr, "::1") != 0) {
18900 /* another family support? */
18906 if (!(inet4 == 0 || inet4 == 2))
18908 if (!(inet6 == 0 || inet6 == 2))
18912 freeaddrinfo(aitop);
18917 freeaddrinfo(aitop);
18922 rm -f conftest
$ac_exeext
18923 if { (ac_try
="$ac_link"
18924 case "(($ac_try" in
18925 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18926 *) ac_try_echo=$ac_try;;
18928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18929 (eval "$ac_link") 2>&5
18931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18933 { (case "(($ac_try" in
18934 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18935 *) ac_try_echo
=$ac_try;;
18937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18938 (eval "$ac_try") 2>&5
18940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18941 (exit $ac_status); }; }; then
18942 { echo "$as_me:$LINENO: result: good" >&5
18943 echo "${ECHO_T}good" >&6; }
18944 buggygetaddrinfo
=no
18946 echo "$as_me: program exited with status $ac_status" >&5
18947 echo "$as_me: failed program was:" >&5
18948 sed 's/^/| /' conftest.
$ac_ext >&5
18950 ( exit $ac_status )
18951 { echo "$as_me:$LINENO: result: buggy" >&5
18952 echo "${ECHO_T}buggy" >&6; }
18953 buggygetaddrinfo
=yes
18955 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
18960 echo "$as_me: failed program was:" >&5
18961 sed 's/^/| /' conftest.
$ac_ext >&5
18964 { echo "$as_me:$LINENO: result: no" >&5
18965 echo "${ECHO_T}no" >&6; }
18966 buggygetaddrinfo
=yes
18970 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18971 conftest
$ac_exeext conftest.
$ac_ext
18973 if test "$buggygetaddrinfo" = "yes"; then
18974 if test "$ipv6" = "yes"; then
18975 echo 'Fatal: You must get working getaddrinfo() function.'
18976 echo ' or you can specify "--disable-ipv6"'.
18981 cat >>confdefs.h
<<\_ACEOF
18982 #define HAVE_GETADDRINFO 1
18987 for ac_func
in getnameinfo
18989 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18990 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18991 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18992 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18993 echo $ECHO_N "(cached) $ECHO_C" >&6
18995 cat >conftest.
$ac_ext <<_ACEOF
18998 cat confdefs.h
>>conftest.
$ac_ext
18999 cat >>conftest.
$ac_ext <<_ACEOF
19000 /* end confdefs.h. */
19001 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19002 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19003 #define $ac_func innocuous_$ac_func
19005 /* System header to define __stub macros and hopefully few prototypes,
19006 which can conflict with char $ac_func (); below.
19007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19008 <limits.h> exists even on freestanding compilers. */
19011 # include <limits.h>
19013 # include <assert.h>
19018 /* Override any GCC internal prototype to avoid an error.
19019 Use char because int might match the return type of a GCC
19020 builtin and then its argument prototype would still apply. */
19025 /* The GNU C library defines this for functions which it implements
19026 to always fail with ENOSYS. Some functions are actually named
19027 something starting with __ and the normal name is an alias. */
19028 #if defined __stub_$ac_func || defined __stub___$ac_func
19035 return $ac_func ();
19040 rm -f conftest.
$ac_objext conftest
$ac_exeext
19041 if { (ac_try
="$ac_link"
19042 case "(($ac_try" in
19043 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19044 *) ac_try_echo=$ac_try;;
19046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19047 (eval "$ac_link") 2>conftest.er1
19049 grep -v '^ *+' conftest.er1 >conftest.err
19051 cat conftest.err >&5
19052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19053 (exit $ac_status); } && {
19054 test -z "$ac_c_werror_flag" ||
19055 test ! -s conftest.err
19056 } && test -s conftest$ac_exeext &&
19057 $as_test_x conftest$ac_exeext; then
19058 eval "$as_ac_var=yes"
19060 echo "$as_me: failed program was:" >&5
19061 sed 's/^/| /' conftest.$ac_ext >&5
19063 eval "$as_ac_var=no"
19066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19067 conftest$ac_exeext conftest.$ac_ext
19069 ac_res=`eval echo '${'$as_ac_var'}'`
19070 { echo "$as_me:$LINENO: result: $ac_res" >&5
19071 echo "${ECHO_T}$ac_res" >&6; }
19072 if test `eval echo '${'$as_ac_var'}'` = yes; then
19073 cat >>confdefs.h <<_ACEOF
19074 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
19081 # checks for structures
19082 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19083 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
19084 if test "${ac_cv_header_time+set}" = set; then
19085 echo $ECHO_N "(cached) $ECHO_C" >&6
19087 cat >conftest.$ac_ext <<_ACEOF
19090 cat confdefs.h >>conftest.$ac_ext
19091 cat >>conftest.$ac_ext <<_ACEOF
19092 /* end confdefs.h. */
19093 #include <sys/types.h>
19094 #include <sys/time.h>
19100 if ((struct tm *) 0)
19106 rm -f conftest.$ac_objext
19107 if { (ac_try="$ac_compile"
19108 case "(($ac_try" in
19109 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19110 *) ac_try_echo
=$ac_try;;
19112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19113 (eval "$ac_compile") 2>conftest.er1
19115 grep -v '^ *+' conftest.er1
>conftest.err
19117 cat conftest.err
>&5
19118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19119 (exit $ac_status); } && {
19120 test -z "$ac_c_werror_flag" ||
19121 test ! -s conftest.err
19122 } && test -s conftest.
$ac_objext; then
19123 ac_cv_header_time
=yes
19125 echo "$as_me: failed program was:" >&5
19126 sed 's/^/| /' conftest.
$ac_ext >&5
19128 ac_cv_header_time
=no
19131 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19133 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19134 echo "${ECHO_T}$ac_cv_header_time" >&6; }
19135 if test $ac_cv_header_time = yes; then
19137 cat >>confdefs.h
<<\_ACEOF
19138 #define TIME_WITH_SYS_TIME 1
19143 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19144 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
19145 if test "${ac_cv_struct_tm+set}" = set; then
19146 echo $ECHO_N "(cached) $ECHO_C" >&6
19148 cat >conftest.
$ac_ext <<_ACEOF
19151 cat confdefs.h
>>conftest.
$ac_ext
19152 cat >>conftest.
$ac_ext <<_ACEOF
19153 /* end confdefs.h. */
19154 #include <sys/types.h>
19161 int *p = &tm.tm_sec;
19167 rm -f conftest.
$ac_objext
19168 if { (ac_try
="$ac_compile"
19169 case "(($ac_try" in
19170 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19171 *) ac_try_echo=$ac_try;;
19173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19174 (eval "$ac_compile") 2>conftest.er1
19176 grep -v '^ *+' conftest.er1 >conftest.err
19178 cat conftest.err >&5
19179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19180 (exit $ac_status); } && {
19181 test -z "$ac_c_werror_flag" ||
19182 test ! -s conftest.err
19183 } && test -s conftest.$ac_objext; then
19184 ac_cv_struct_tm=time.h
19186 echo "$as_me: failed program was:" >&5
19187 sed 's/^/| /' conftest.$ac_ext >&5
19189 ac_cv_struct_tm=sys/time.h
19192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19194 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19195 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
19196 if test $ac_cv_struct_tm = sys/time.h; then
19198 cat >>confdefs.h <<\_ACEOF
19199 #define TM_IN_SYS_TIME 1
19204 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
19205 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
19206 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
19207 echo $ECHO_N "(cached) $ECHO_C" >&6
19209 cat >conftest.$ac_ext <<_ACEOF
19212 cat confdefs.h >>conftest.$ac_ext
19213 cat >>conftest.$ac_ext <<_ACEOF
19214 /* end confdefs.h. */
19215 #include <sys/types.h>
19216 #include <$ac_cv_struct_tm>
19222 static struct tm ac_aggr;
19223 if (ac_aggr.tm_zone)
19229 rm -f conftest.$ac_objext
19230 if { (ac_try="$ac_compile"
19231 case "(($ac_try" in
19232 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19233 *) ac_try_echo
=$ac_try;;
19235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19236 (eval "$ac_compile") 2>conftest.er1
19238 grep -v '^ *+' conftest.er1
>conftest.err
19240 cat conftest.err
>&5
19241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19242 (exit $ac_status); } && {
19243 test -z "$ac_c_werror_flag" ||
19244 test ! -s conftest.err
19245 } && test -s conftest.
$ac_objext; then
19246 ac_cv_member_struct_tm_tm_zone
=yes
19248 echo "$as_me: failed program was:" >&5
19249 sed 's/^/| /' conftest.
$ac_ext >&5
19251 cat >conftest.
$ac_ext <<_ACEOF
19254 cat confdefs.h
>>conftest.
$ac_ext
19255 cat >>conftest.
$ac_ext <<_ACEOF
19256 /* end confdefs.h. */
19257 #include <sys/types.h>
19258 #include <$ac_cv_struct_tm>
19264 static struct tm ac_aggr;
19265 if (sizeof ac_aggr.tm_zone)
19271 rm -f conftest.
$ac_objext
19272 if { (ac_try
="$ac_compile"
19273 case "(($ac_try" in
19274 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19275 *) ac_try_echo=$ac_try;;
19277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19278 (eval "$ac_compile") 2>conftest.er1
19280 grep -v '^ *+' conftest.er1 >conftest.err
19282 cat conftest.err >&5
19283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284 (exit $ac_status); } && {
19285 test -z "$ac_c_werror_flag" ||
19286 test ! -s conftest.err
19287 } && test -s conftest.$ac_objext; then
19288 ac_cv_member_struct_tm_tm_zone=yes
19290 echo "$as_me: failed program was:" >&5
19291 sed 's/^/| /' conftest.$ac_ext >&5
19293 ac_cv_member_struct_tm_tm_zone=no
19296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19301 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
19302 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
19303 if test $ac_cv_member_struct_tm_tm_zone = yes; then
19305 cat >>confdefs.h <<_ACEOF
19306 #define HAVE_STRUCT_TM_TM_ZONE 1
19312 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
19314 cat >>confdefs.h <<\_ACEOF
19315 #define HAVE_TM_ZONE 1
19319 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
19320 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
19321 if test "${ac_cv_have_decl_tzname+set}" = set; then
19322 echo $ECHO_N "(cached) $ECHO_C" >&6
19324 cat >conftest.$ac_ext <<_ACEOF
19327 cat confdefs.h >>conftest.$ac_ext
19328 cat >>conftest.$ac_ext <<_ACEOF
19329 /* end confdefs.h. */
19343 rm -f conftest.$ac_objext
19344 if { (ac_try="$ac_compile"
19345 case "(($ac_try" in
19346 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19347 *) ac_try_echo
=$ac_try;;
19349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19350 (eval "$ac_compile") 2>conftest.er1
19352 grep -v '^ *+' conftest.er1
>conftest.err
19354 cat conftest.err
>&5
19355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19356 (exit $ac_status); } && {
19357 test -z "$ac_c_werror_flag" ||
19358 test ! -s conftest.err
19359 } && test -s conftest.
$ac_objext; then
19360 ac_cv_have_decl_tzname
=yes
19362 echo "$as_me: failed program was:" >&5
19363 sed 's/^/| /' conftest.
$ac_ext >&5
19365 ac_cv_have_decl_tzname
=no
19368 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19370 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
19371 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
19372 if test $ac_cv_have_decl_tzname = yes; then
19374 cat >>confdefs.h
<<_ACEOF
19375 #define HAVE_DECL_TZNAME 1
19380 cat >>confdefs.h
<<_ACEOF
19381 #define HAVE_DECL_TZNAME 0
19388 { echo "$as_me:$LINENO: checking for tzname" >&5
19389 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
19390 if test "${ac_cv_var_tzname+set}" = set; then
19391 echo $ECHO_N "(cached) $ECHO_C" >&6
19393 cat >conftest.
$ac_ext <<_ACEOF
19396 cat confdefs.h
>>conftest.
$ac_ext
19397 cat >>conftest.
$ac_ext <<_ACEOF
19398 /* end confdefs.h. */
19400 #if !HAVE_DECL_TZNAME
19401 extern char *tzname[];
19407 return tzname[0][0];
19412 rm -f conftest.
$ac_objext conftest
$ac_exeext
19413 if { (ac_try
="$ac_link"
19414 case "(($ac_try" in
19415 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19416 *) ac_try_echo=$ac_try;;
19418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19419 (eval "$ac_link") 2>conftest.er1
19421 grep -v '^ *+' conftest.er1 >conftest.err
19423 cat conftest.err >&5
19424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19425 (exit $ac_status); } && {
19426 test -z "$ac_c_werror_flag" ||
19427 test ! -s conftest.err
19428 } && test -s conftest$ac_exeext &&
19429 $as_test_x conftest$ac_exeext; then
19430 ac_cv_var_tzname=yes
19432 echo "$as_me: failed program was:" >&5
19433 sed 's/^/| /' conftest.$ac_ext >&5
19435 ac_cv_var_tzname=no
19438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19439 conftest$ac_exeext conftest.$ac_ext
19441 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
19442 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
19443 if test $ac_cv_var_tzname = yes; then
19445 cat >>confdefs.h <<\_ACEOF
19446 #define HAVE_TZNAME 1
19452 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
19453 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
19454 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
19455 echo $ECHO_N "(cached) $ECHO_C" >&6
19457 cat >conftest.$ac_ext <<_ACEOF
19460 cat confdefs.h >>conftest.$ac_ext
19461 cat >>conftest.$ac_ext <<_ACEOF
19462 /* end confdefs.h. */
19463 $ac_includes_default
19467 static struct stat ac_aggr;
19468 if (ac_aggr.st_rdev)
19474 rm -f conftest.$ac_objext
19475 if { (ac_try="$ac_compile"
19476 case "(($ac_try" in
19477 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19478 *) ac_try_echo
=$ac_try;;
19480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19481 (eval "$ac_compile") 2>conftest.er1
19483 grep -v '^ *+' conftest.er1
>conftest.err
19485 cat conftest.err
>&5
19486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487 (exit $ac_status); } && {
19488 test -z "$ac_c_werror_flag" ||
19489 test ! -s conftest.err
19490 } && test -s conftest.
$ac_objext; then
19491 ac_cv_member_struct_stat_st_rdev
=yes
19493 echo "$as_me: failed program was:" >&5
19494 sed 's/^/| /' conftest.
$ac_ext >&5
19496 cat >conftest.
$ac_ext <<_ACEOF
19499 cat confdefs.h
>>conftest.
$ac_ext
19500 cat >>conftest.
$ac_ext <<_ACEOF
19501 /* end confdefs.h. */
19502 $ac_includes_default
19506 static struct stat ac_aggr;
19507 if (sizeof ac_aggr.st_rdev)
19513 rm -f conftest.
$ac_objext
19514 if { (ac_try
="$ac_compile"
19515 case "(($ac_try" in
19516 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19517 *) ac_try_echo=$ac_try;;
19519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19520 (eval "$ac_compile") 2>conftest.er1
19522 grep -v '^ *+' conftest.er1 >conftest.err
19524 cat conftest.err >&5
19525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19526 (exit $ac_status); } && {
19527 test -z "$ac_c_werror_flag" ||
19528 test ! -s conftest.err
19529 } && test -s conftest.$ac_objext; then
19530 ac_cv_member_struct_stat_st_rdev=yes
19532 echo "$as_me: failed program was:" >&5
19533 sed 's/^/| /' conftest.$ac_ext >&5
19535 ac_cv_member_struct_stat_st_rdev=no
19538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19543 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
19544 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
19545 if test $ac_cv_member_struct_stat_st_rdev = yes; then
19547 cat >>confdefs.h <<_ACEOF
19548 #define HAVE_STRUCT_STAT_ST_RDEV 1
19554 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
19555 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
19556 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
19557 echo $ECHO_N "(cached) $ECHO_C" >&6
19559 cat >conftest.$ac_ext <<_ACEOF
19562 cat confdefs.h >>conftest.$ac_ext
19563 cat >>conftest.$ac_ext <<_ACEOF
19564 /* end confdefs.h. */
19565 $ac_includes_default
19569 static struct stat ac_aggr;
19570 if (ac_aggr.st_blksize)
19576 rm -f conftest.$ac_objext
19577 if { (ac_try="$ac_compile"
19578 case "(($ac_try" in
19579 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19580 *) ac_try_echo
=$ac_try;;
19582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19583 (eval "$ac_compile") 2>conftest.er1
19585 grep -v '^ *+' conftest.er1
>conftest.err
19587 cat conftest.err
>&5
19588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19589 (exit $ac_status); } && {
19590 test -z "$ac_c_werror_flag" ||
19591 test ! -s conftest.err
19592 } && test -s conftest.
$ac_objext; then
19593 ac_cv_member_struct_stat_st_blksize
=yes
19595 echo "$as_me: failed program was:" >&5
19596 sed 's/^/| /' conftest.
$ac_ext >&5
19598 cat >conftest.
$ac_ext <<_ACEOF
19601 cat confdefs.h
>>conftest.
$ac_ext
19602 cat >>conftest.
$ac_ext <<_ACEOF
19603 /* end confdefs.h. */
19604 $ac_includes_default
19608 static struct stat ac_aggr;
19609 if (sizeof ac_aggr.st_blksize)
19615 rm -f conftest.
$ac_objext
19616 if { (ac_try
="$ac_compile"
19617 case "(($ac_try" in
19618 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19619 *) ac_try_echo=$ac_try;;
19621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19622 (eval "$ac_compile") 2>conftest.er1
19624 grep -v '^ *+' conftest.er1 >conftest.err
19626 cat conftest.err >&5
19627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19628 (exit $ac_status); } && {
19629 test -z "$ac_c_werror_flag" ||
19630 test ! -s conftest.err
19631 } && test -s conftest.$ac_objext; then
19632 ac_cv_member_struct_stat_st_blksize=yes
19634 echo "$as_me: failed program was:" >&5
19635 sed 's/^/| /' conftest.$ac_ext >&5
19637 ac_cv_member_struct_stat_st_blksize=no
19640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19645 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
19646 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
19647 if test $ac_cv_member_struct_stat_st_blksize = yes; then
19649 cat >>confdefs.h <<_ACEOF
19650 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
19656 { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
19657 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
19658 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
19659 echo $ECHO_N "(cached) $ECHO_C" >&6
19661 cat >conftest.$ac_ext <<_ACEOF
19664 cat confdefs.h >>conftest.$ac_ext
19665 cat >>conftest.$ac_ext <<_ACEOF
19666 /* end confdefs.h. */
19667 $ac_includes_default
19671 static struct stat ac_aggr;
19672 if (ac_aggr.st_flags)
19678 rm -f conftest.$ac_objext
19679 if { (ac_try="$ac_compile"
19680 case "(($ac_try" in
19681 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19682 *) ac_try_echo
=$ac_try;;
19684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19685 (eval "$ac_compile") 2>conftest.er1
19687 grep -v '^ *+' conftest.er1
>conftest.err
19689 cat conftest.err
>&5
19690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19691 (exit $ac_status); } && {
19692 test -z "$ac_c_werror_flag" ||
19693 test ! -s conftest.err
19694 } && test -s conftest.
$ac_objext; then
19695 ac_cv_member_struct_stat_st_flags
=yes
19697 echo "$as_me: failed program was:" >&5
19698 sed 's/^/| /' conftest.
$ac_ext >&5
19700 cat >conftest.
$ac_ext <<_ACEOF
19703 cat confdefs.h
>>conftest.
$ac_ext
19704 cat >>conftest.
$ac_ext <<_ACEOF
19705 /* end confdefs.h. */
19706 $ac_includes_default
19710 static struct stat ac_aggr;
19711 if (sizeof ac_aggr.st_flags)
19717 rm -f conftest.
$ac_objext
19718 if { (ac_try
="$ac_compile"
19719 case "(($ac_try" in
19720 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19721 *) ac_try_echo=$ac_try;;
19723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19724 (eval "$ac_compile") 2>conftest.er1
19726 grep -v '^ *+' conftest.er1 >conftest.err
19728 cat conftest.err >&5
19729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730 (exit $ac_status); } && {
19731 test -z "$ac_c_werror_flag" ||
19732 test ! -s conftest.err
19733 } && test -s conftest.$ac_objext; then
19734 ac_cv_member_struct_stat_st_flags=yes
19736 echo "$as_me: failed program was:" >&5
19737 sed 's/^/| /' conftest.$ac_ext >&5
19739 ac_cv_member_struct_stat_st_flags=no
19742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19747 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
19748 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
19749 if test $ac_cv_member_struct_stat_st_flags = yes; then
19751 cat >>confdefs.h <<_ACEOF
19752 #define HAVE_STRUCT_STAT_ST_FLAGS 1
19758 { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
19759 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
19760 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
19761 echo $ECHO_N "(cached) $ECHO_C" >&6
19763 cat >conftest.$ac_ext <<_ACEOF
19766 cat confdefs.h >>conftest.$ac_ext
19767 cat >>conftest.$ac_ext <<_ACEOF
19768 /* end confdefs.h. */
19769 $ac_includes_default
19773 static struct stat ac_aggr;
19774 if (ac_aggr.st_gen)
19780 rm -f conftest.$ac_objext
19781 if { (ac_try="$ac_compile"
19782 case "(($ac_try" in
19783 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19784 *) ac_try_echo
=$ac_try;;
19786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19787 (eval "$ac_compile") 2>conftest.er1
19789 grep -v '^ *+' conftest.er1
>conftest.err
19791 cat conftest.err
>&5
19792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793 (exit $ac_status); } && {
19794 test -z "$ac_c_werror_flag" ||
19795 test ! -s conftest.err
19796 } && test -s conftest.
$ac_objext; then
19797 ac_cv_member_struct_stat_st_gen
=yes
19799 echo "$as_me: failed program was:" >&5
19800 sed 's/^/| /' conftest.
$ac_ext >&5
19802 cat >conftest.
$ac_ext <<_ACEOF
19805 cat confdefs.h
>>conftest.
$ac_ext
19806 cat >>conftest.
$ac_ext <<_ACEOF
19807 /* end confdefs.h. */
19808 $ac_includes_default
19812 static struct stat ac_aggr;
19813 if (sizeof ac_aggr.st_gen)
19819 rm -f conftest.
$ac_objext
19820 if { (ac_try
="$ac_compile"
19821 case "(($ac_try" in
19822 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19823 *) ac_try_echo=$ac_try;;
19825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19826 (eval "$ac_compile") 2>conftest.er1
19828 grep -v '^ *+' conftest.er1 >conftest.err
19830 cat conftest.err >&5
19831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832 (exit $ac_status); } && {
19833 test -z "$ac_c_werror_flag" ||
19834 test ! -s conftest.err
19835 } && test -s conftest.$ac_objext; then
19836 ac_cv_member_struct_stat_st_gen=yes
19838 echo "$as_me: failed program was:" >&5
19839 sed 's/^/| /' conftest.$ac_ext >&5
19841 ac_cv_member_struct_stat_st_gen=no
19844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19849 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
19850 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
19851 if test $ac_cv_member_struct_stat_st_gen = yes; then
19853 cat >>confdefs.h <<_ACEOF
19854 #define HAVE_STRUCT_STAT_ST_GEN 1
19860 { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
19861 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
19862 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
19863 echo $ECHO_N "(cached) $ECHO_C" >&6
19865 cat >conftest.$ac_ext <<_ACEOF
19868 cat confdefs.h >>conftest.$ac_ext
19869 cat >>conftest.$ac_ext <<_ACEOF
19870 /* end confdefs.h. */
19871 $ac_includes_default
19875 static struct stat ac_aggr;
19876 if (ac_aggr.st_birthtime)
19882 rm -f conftest.$ac_objext
19883 if { (ac_try="$ac_compile"
19884 case "(($ac_try" in
19885 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19886 *) ac_try_echo
=$ac_try;;
19888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19889 (eval "$ac_compile") 2>conftest.er1
19891 grep -v '^ *+' conftest.er1
>conftest.err
19893 cat conftest.err
>&5
19894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19895 (exit $ac_status); } && {
19896 test -z "$ac_c_werror_flag" ||
19897 test ! -s conftest.err
19898 } && test -s conftest.
$ac_objext; then
19899 ac_cv_member_struct_stat_st_birthtime
=yes
19901 echo "$as_me: failed program was:" >&5
19902 sed 's/^/| /' conftest.
$ac_ext >&5
19904 cat >conftest.
$ac_ext <<_ACEOF
19907 cat confdefs.h
>>conftest.
$ac_ext
19908 cat >>conftest.
$ac_ext <<_ACEOF
19909 /* end confdefs.h. */
19910 $ac_includes_default
19914 static struct stat ac_aggr;
19915 if (sizeof ac_aggr.st_birthtime)
19921 rm -f conftest.
$ac_objext
19922 if { (ac_try
="$ac_compile"
19923 case "(($ac_try" in
19924 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19925 *) ac_try_echo=$ac_try;;
19927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19928 (eval "$ac_compile") 2>conftest.er1
19930 grep -v '^ *+' conftest.er1 >conftest.err
19932 cat conftest.err >&5
19933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19934 (exit $ac_status); } && {
19935 test -z "$ac_c_werror_flag" ||
19936 test ! -s conftest.err
19937 } && test -s conftest.$ac_objext; then
19938 ac_cv_member_struct_stat_st_birthtime=yes
19940 echo "$as_me: failed program was:" >&5
19941 sed 's/^/| /' conftest.$ac_ext >&5
19943 ac_cv_member_struct_stat_st_birthtime=no
19946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19951 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
19952 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
19953 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
19955 cat >>confdefs.h <<_ACEOF
19956 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
19962 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
19963 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
19964 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
19965 echo $ECHO_N "(cached) $ECHO_C" >&6
19967 cat >conftest.$ac_ext <<_ACEOF
19970 cat confdefs.h >>conftest.$ac_ext
19971 cat >>conftest.$ac_ext <<_ACEOF
19972 /* end confdefs.h. */
19973 $ac_includes_default
19977 static struct stat ac_aggr;
19978 if (ac_aggr.st_blocks)
19984 rm -f conftest.$ac_objext
19985 if { (ac_try="$ac_compile"
19986 case "(($ac_try" in
19987 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19988 *) ac_try_echo
=$ac_try;;
19990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19991 (eval "$ac_compile") 2>conftest.er1
19993 grep -v '^ *+' conftest.er1
>conftest.err
19995 cat conftest.err
>&5
19996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19997 (exit $ac_status); } && {
19998 test -z "$ac_c_werror_flag" ||
19999 test ! -s conftest.err
20000 } && test -s conftest.
$ac_objext; then
20001 ac_cv_member_struct_stat_st_blocks
=yes
20003 echo "$as_me: failed program was:" >&5
20004 sed 's/^/| /' conftest.
$ac_ext >&5
20006 cat >conftest.
$ac_ext <<_ACEOF
20009 cat confdefs.h
>>conftest.
$ac_ext
20010 cat >>conftest.
$ac_ext <<_ACEOF
20011 /* end confdefs.h. */
20012 $ac_includes_default
20016 static struct stat ac_aggr;
20017 if (sizeof ac_aggr.st_blocks)
20023 rm -f conftest.
$ac_objext
20024 if { (ac_try
="$ac_compile"
20025 case "(($ac_try" in
20026 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20027 *) ac_try_echo=$ac_try;;
20029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20030 (eval "$ac_compile") 2>conftest.er1
20032 grep -v '^ *+' conftest.er1 >conftest.err
20034 cat conftest.err >&5
20035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036 (exit $ac_status); } && {
20037 test -z "$ac_c_werror_flag" ||
20038 test ! -s conftest.err
20039 } && test -s conftest.$ac_objext; then
20040 ac_cv_member_struct_stat_st_blocks=yes
20042 echo "$as_me: failed program was:" >&5
20043 sed 's/^/| /' conftest.$ac_ext >&5
20045 ac_cv_member_struct_stat_st_blocks=no
20048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20053 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20054 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
20055 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20057 cat >>confdefs.h <<_ACEOF
20058 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20062 cat >>confdefs.h <<\_ACEOF
20063 #define HAVE_ST_BLOCKS 1
20067 case " $LIBOBJS " in
20068 *" fileblocks.$ac_objext "* ) ;;
20069 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
20077 { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
20078 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
20079 if test "${ac_cv_header_time_altzone+set}" = set; then
20080 echo $ECHO_N "(cached) $ECHO_C" >&6
20082 cat >conftest.$ac_ext <<_ACEOF
20085 cat confdefs.h >>conftest.$ac_ext
20086 cat >>conftest.$ac_ext <<_ACEOF
20087 /* end confdefs.h. */
20097 rm -f conftest.$ac_objext
20098 if { (ac_try="$ac_compile"
20099 case "(($ac_try" in
20100 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20101 *) ac_try_echo
=$ac_try;;
20103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20104 (eval "$ac_compile") 2>conftest.er1
20106 grep -v '^ *+' conftest.er1
>conftest.err
20108 cat conftest.err
>&5
20109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110 (exit $ac_status); } && {
20111 test -z "$ac_c_werror_flag" ||
20112 test ! -s conftest.err
20113 } && test -s conftest.
$ac_objext; then
20114 ac_cv_header_time_altzone
=yes
20116 echo "$as_me: failed program was:" >&5
20117 sed 's/^/| /' conftest.
$ac_ext >&5
20119 ac_cv_header_time_altzone
=no
20122 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20125 { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
20126 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
20127 if test $ac_cv_header_time_altzone = yes; then
20129 cat >>confdefs.h
<<\_ACEOF
20130 #define HAVE_ALTZONE 1
20136 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
20137 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
20138 cat >conftest.
$ac_ext <<_ACEOF
20141 cat confdefs.h
>>conftest.
$ac_ext
20142 cat >>conftest.
$ac_ext <<_ACEOF
20143 /* end confdefs.h. */
20145 #include <sys/types.h>
20146 #include <sys/select.h>
20147 #include <sys/time.h>
20157 rm -f conftest.
$ac_objext
20158 if { (ac_try
="$ac_compile"
20159 case "(($ac_try" in
20160 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20161 *) ac_try_echo=$ac_try;;
20163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20164 (eval "$ac_compile") 2>conftest.er1
20166 grep -v '^ *+' conftest.er1 >conftest.err
20168 cat conftest.err >&5
20169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20170 (exit $ac_status); } && {
20171 test -z "$ac_c_werror_flag" ||
20172 test ! -s conftest.err
20173 } && test -s conftest.$ac_objext; then
20176 cat >>confdefs.h <<\_ACEOF
20177 #define SYS_SELECT_WITH_SYS_TIME 1
20183 echo "$as_me: failed program was:" >&5
20184 sed 's/^/| /' conftest.$ac_ext >&5
20189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20190 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
20191 echo "${ECHO_T}$was_it_defined" >&6; }
20193 { echo "$as_me:$LINENO: checking for addrinfo" >&5
20194 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
20195 if test "${ac_cv_struct_addrinfo+set}" = set; then
20196 echo $ECHO_N "(cached) $ECHO_C" >&6
20198 cat >conftest.$ac_ext <<_ACEOF
20201 cat confdefs.h >>conftest.$ac_ext
20202 cat >>conftest.$ac_ext <<_ACEOF
20203 /* end confdefs.h. */
20205 # include <netdb.h>
20214 rm -f conftest.$ac_objext
20215 if { (ac_try="$ac_compile"
20216 case "(($ac_try" in
20217 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20218 *) ac_try_echo
=$ac_try;;
20220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20221 (eval "$ac_compile") 2>conftest.er1
20223 grep -v '^ *+' conftest.er1
>conftest.err
20225 cat conftest.err
>&5
20226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20227 (exit $ac_status); } && {
20228 test -z "$ac_c_werror_flag" ||
20229 test ! -s conftest.err
20230 } && test -s conftest.
$ac_objext; then
20231 ac_cv_struct_addrinfo
=yes
20233 echo "$as_me: failed program was:" >&5
20234 sed 's/^/| /' conftest.
$ac_ext >&5
20236 ac_cv_struct_addrinfo
=no
20239 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20242 { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
20243 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
20244 if test $ac_cv_struct_addrinfo = yes; then
20246 cat >>confdefs.h
<<\_ACEOF
20247 #define HAVE_ADDRINFO 1
20252 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
20253 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
20254 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
20255 echo $ECHO_N "(cached) $ECHO_C" >&6
20257 cat >conftest.
$ac_ext <<_ACEOF
20260 cat confdefs.h
>>conftest.
$ac_ext
20261 cat >>conftest.
$ac_ext <<_ACEOF
20262 /* end confdefs.h. */
20264 # include <sys/types.h>
20265 # include <sys/socket.h>
20269 struct sockaddr_storage s
20274 rm -f conftest.
$ac_objext
20275 if { (ac_try
="$ac_compile"
20276 case "(($ac_try" in
20277 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20278 *) ac_try_echo=$ac_try;;
20280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20281 (eval "$ac_compile") 2>conftest.er1
20283 grep -v '^ *+' conftest.er1 >conftest.err
20285 cat conftest.err >&5
20286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287 (exit $ac_status); } && {
20288 test -z "$ac_c_werror_flag" ||
20289 test ! -s conftest.err
20290 } && test -s conftest.$ac_objext; then
20291 ac_cv_struct_sockaddr_storage=yes
20293 echo "$as_me: failed program was:" >&5
20294 sed 's/^/| /' conftest.$ac_ext >&5
20296 ac_cv_struct_sockaddr_storage=no
20299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20302 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
20303 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
20304 if test $ac_cv_struct_sockaddr_storage = yes; then
20306 cat >>confdefs.h <<\_ACEOF
20307 #define HAVE_SOCKADDR_STORAGE 1
20312 # checks for compiler characteristics
20315 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
20316 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
20317 if test "${ac_cv_c_char_unsigned+set}" = set; then
20318 echo $ECHO_N "(cached) $ECHO_C" >&6
20320 cat >conftest.$ac_ext <<_ACEOF
20323 cat confdefs.h >>conftest.$ac_ext
20324 cat >>conftest.$ac_ext <<_ACEOF
20325 /* end confdefs.h. */
20326 $ac_includes_default
20330 static int test_array [1 - 2 * !(((char) -1) < 0)];
20337 rm -f conftest.$ac_objext
20338 if { (ac_try="$ac_compile"
20339 case "(($ac_try" in
20340 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20341 *) ac_try_echo
=$ac_try;;
20343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20344 (eval "$ac_compile") 2>conftest.er1
20346 grep -v '^ *+' conftest.er1
>conftest.err
20348 cat conftest.err
>&5
20349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350 (exit $ac_status); } && {
20351 test -z "$ac_c_werror_flag" ||
20352 test ! -s conftest.err
20353 } && test -s conftest.
$ac_objext; then
20354 ac_cv_c_char_unsigned
=no
20356 echo "$as_me: failed program was:" >&5
20357 sed 's/^/| /' conftest.
$ac_ext >&5
20359 ac_cv_c_char_unsigned
=yes
20362 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20364 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
20365 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
20366 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
20367 cat >>confdefs.h
<<\_ACEOF
20368 #define __CHAR_UNSIGNED__ 1
20373 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20374 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20375 if test "${ac_cv_c_const+set}" = set; then
20376 echo $ECHO_N "(cached) $ECHO_C" >&6
20378 cat >conftest.
$ac_ext <<_ACEOF
20381 cat confdefs.h
>>conftest.
$ac_ext
20382 cat >>conftest.
$ac_ext <<_ACEOF
20383 /* end confdefs.h. */
20388 /* FIXME: Include the comments suggested by Paul. */
20389 #ifndef __cplusplus
20390 /* Ultrix mips cc rejects this. */
20391 typedef int charset[2];
20393 /* SunOS 4.1.1 cc rejects this. */
20394 char const *const *pcpcc;
20396 /* NEC SVR4.0.2 mips cc rejects this. */
20397 struct point {int x, y;};
20398 static struct point const zero = {0,0};
20399 /* AIX XL C 1.02.0.0 rejects this.
20400 It does not let you subtract one const X* pointer from another in
20401 an arm of an if-expression whose if-part is not a constant
20403 const char *g = "string";
20404 pcpcc = &g + (g ? g-g : 0);
20405 /* HPUX 7.0 cc rejects these. */
20407 ppc = (char**) pcpcc;
20408 pcpcc = (char const *const *) ppc;
20409 { /* SCO 3.2v4 cc rejects this. */
20411 char const *s = 0 ? (char *) 0 : (char const *) 0;
20416 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20417 int x[] = {25, 17};
20418 const int *foo = &x[0];
20421 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20422 typedef const int *iptr;
20426 { /* AIX XL C 1.02.0.0 rejects this saying
20427 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20428 struct s { int j; const int *ap[3]; };
20429 struct s *b; b->j = 5;
20431 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20432 const int foo = 10;
20433 if (!foo) return 0;
20435 return !cs[0] && !zero.x;
20442 rm -f conftest.
$ac_objext
20443 if { (ac_try
="$ac_compile"
20444 case "(($ac_try" in
20445 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20446 *) ac_try_echo=$ac_try;;
20448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20449 (eval "$ac_compile") 2>conftest.er1
20451 grep -v '^ *+' conftest.er1 >conftest.err
20453 cat conftest.err >&5
20454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20455 (exit $ac_status); } && {
20456 test -z "$ac_c_werror_flag" ||
20457 test ! -s conftest.err
20458 } && test -s conftest.$ac_objext; then
20461 echo "$as_me: failed program was:" >&5
20462 sed 's/^/| /' conftest.$ac_ext >&5
20467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20469 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20470 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20471 if test $ac_cv_c_const = no; then
20473 cat >>confdefs.h <<\_ACEOF
20481 { echo "$as_me:$LINENO: checking for working volatile" >&5
20482 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
20483 cat >conftest.$ac_ext <<_ACEOF
20486 cat confdefs.h >>conftest.$ac_ext
20487 cat >>conftest.$ac_ext <<_ACEOF
20488 /* end confdefs.h. */
20493 volatile int x; x = 0;
20498 rm -f conftest.$ac_objext
20499 if { (ac_try="$ac_compile"
20500 case "(($ac_try" in
20501 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20502 *) ac_try_echo
=$ac_try;;
20504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20505 (eval "$ac_compile") 2>conftest.er1
20507 grep -v '^ *+' conftest.er1
>conftest.err
20509 cat conftest.err
>&5
20510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20511 (exit $ac_status); } && {
20512 test -z "$ac_c_werror_flag" ||
20513 test ! -s conftest.err
20514 } && test -s conftest.
$ac_objext; then
20517 echo "$as_me: failed program was:" >&5
20518 sed 's/^/| /' conftest.
$ac_ext >&5
20521 cat >>confdefs.h
<<\_ACEOF
20528 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20529 { echo "$as_me:$LINENO: result: $works" >&5
20530 echo "${ECHO_T}$works" >&6; }
20533 { echo "$as_me:$LINENO: checking for working signed char" >&5
20534 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
20535 cat >conftest.
$ac_ext <<_ACEOF
20538 cat confdefs.h
>>conftest.
$ac_ext
20539 cat >>conftest.
$ac_ext <<_ACEOF
20540 /* end confdefs.h. */
20550 rm -f conftest.
$ac_objext
20551 if { (ac_try
="$ac_compile"
20552 case "(($ac_try" in
20553 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20554 *) ac_try_echo=$ac_try;;
20556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20557 (eval "$ac_compile") 2>conftest.er1
20559 grep -v '^ *+' conftest.er1 >conftest.err
20561 cat conftest.err >&5
20562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20563 (exit $ac_status); } && {
20564 test -z "$ac_c_werror_flag" ||
20565 test ! -s conftest.err
20566 } && test -s conftest.$ac_objext; then
20569 echo "$as_me: failed program was:" >&5
20570 sed 's/^/| /' conftest.$ac_ext >&5
20573 cat >>confdefs.h <<\_ACEOF
20580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20581 { echo "$as_me:$LINENO: result: $works" >&5
20582 echo "${ECHO_T}$works" >&6; }
20585 { echo "$as_me:$LINENO: checking for prototypes" >&5
20586 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
20587 cat >conftest.$ac_ext <<_ACEOF
20590 cat confdefs.h >>conftest.$ac_ext
20591 cat >>conftest.$ac_ext <<_ACEOF
20592 /* end confdefs.h. */
20593 int foo(int x) { return 0; }
20602 rm -f conftest.$ac_objext
20603 if { (ac_try="$ac_compile"
20604 case "(($ac_try" in
20605 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20606 *) ac_try_echo
=$ac_try;;
20608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20609 (eval "$ac_compile") 2>conftest.er1
20611 grep -v '^ *+' conftest.er1
>conftest.err
20613 cat conftest.err
>&5
20614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615 (exit $ac_status); } && {
20616 test -z "$ac_c_werror_flag" ||
20617 test ! -s conftest.err
20618 } && test -s conftest.
$ac_objext; then
20621 cat >>confdefs.h
<<\_ACEOF
20622 #define HAVE_PROTOTYPES 1
20625 have_prototypes
=yes
20628 echo "$as_me: failed program was:" >&5
20629 sed 's/^/| /' conftest.
$ac_ext >&5
20634 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20635 { echo "$as_me:$LINENO: result: $have_prototypes" >&5
20636 echo "${ECHO_T}$have_prototypes" >&6; }
20639 { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
20640 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
20641 cat >conftest.
$ac_ext <<_ACEOF
20644 cat confdefs.h
>>conftest.
$ac_ext
20645 cat >>conftest.
$ac_ext <<_ACEOF
20646 /* end confdefs.h. */
20648 #include <stdarg.h>
20649 int foo(int x, ...) {
20653 va_arg(va, char *);
20654 va_arg(va, double);
20661 return foo(10, "", 3.14);
20666 rm -f conftest.
$ac_objext
20667 if { (ac_try
="$ac_compile"
20668 case "(($ac_try" in
20669 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20670 *) ac_try_echo=$ac_try;;
20672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20673 (eval "$ac_compile") 2>conftest.er1
20675 grep -v '^ *+' conftest.er1 >conftest.err
20677 cat conftest.err >&5
20678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20679 (exit $ac_status); } && {
20680 test -z "$ac_c_werror_flag" ||
20681 test ! -s conftest.err
20682 } && test -s conftest.$ac_objext; then
20685 cat >>confdefs.h <<\_ACEOF
20686 #define HAVE_STDARG_PROTOTYPES 1
20692 echo "$as_me: failed program was:" >&5
20693 sed 's/^/| /' conftest.$ac_ext >&5
20698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20699 { echo "$as_me:$LINENO: result: $works" >&5
20700 echo "${ECHO_T}$works" >&6; }
20702 # check for socketpair
20703 { echo "$as_me:$LINENO: checking for socketpair" >&5
20704 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
20705 cat >conftest.$ac_ext <<_ACEOF
20708 cat confdefs.h >>conftest.$ac_ext
20709 cat >>conftest.$ac_ext <<_ACEOF
20710 /* end confdefs.h. */
20712 #include <sys/types.h>
20713 #include <sys/socket.h>
20723 rm -f conftest.$ac_objext
20724 if { (ac_try="$ac_compile"
20725 case "(($ac_try" in
20726 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20727 *) ac_try_echo
=$ac_try;;
20729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20730 (eval "$ac_compile") 2>conftest.er1
20732 grep -v '^ *+' conftest.er1
>conftest.err
20734 cat conftest.err
>&5
20735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20736 (exit $ac_status); } && {
20737 test -z "$ac_c_werror_flag" ||
20738 test ! -s conftest.err
20739 } && test -s conftest.
$ac_objext; then
20741 cat >>confdefs.h
<<\_ACEOF
20742 #define HAVE_SOCKETPAIR 1
20745 { echo "$as_me:$LINENO: result: yes" >&5
20746 echo "${ECHO_T}yes" >&6; }
20748 echo "$as_me: failed program was:" >&5
20749 sed 's/^/| /' conftest.
$ac_ext >&5
20751 { echo "$as_me:$LINENO: result: no" >&5
20752 echo "${ECHO_T}no" >&6; }
20756 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20758 # check if sockaddr has sa_len member
20759 { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
20760 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; }
20761 cat >conftest.
$ac_ext <<_ACEOF
20764 cat confdefs.h
>>conftest.
$ac_ext
20765 cat >>conftest.
$ac_ext <<_ACEOF
20766 /* end confdefs.h. */
20767 #include <sys/types.h>
20768 #include <sys/socket.h>
20778 rm -f conftest.
$ac_objext
20779 if { (ac_try
="$ac_compile"
20780 case "(($ac_try" in
20781 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20782 *) ac_try_echo=$ac_try;;
20784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20785 (eval "$ac_compile") 2>conftest.er1
20787 grep -v '^ *+' conftest.er1 >conftest.err
20789 cat conftest.err >&5
20790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20791 (exit $ac_status); } && {
20792 test -z "$ac_c_werror_flag" ||
20793 test ! -s conftest.err
20794 } && test -s conftest.$ac_objext; then
20795 { echo "$as_me:$LINENO: result: yes" >&5
20796 echo "${ECHO_T}yes" >&6; }
20798 cat >>confdefs.h <<\_ACEOF
20799 #define HAVE_SOCKADDR_SA_LEN 1
20803 echo "$as_me: failed program was:" >&5
20804 sed 's/^/| /' conftest.$ac_ext >&5
20806 { echo "$as_me:$LINENO: result: no" >&5
20807 echo "${ECHO_T}no" >&6; }
20810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20812 va_list_is_array=no
20813 { echo "$as_me:$LINENO: checking whether va_list is an array" >&5
20814 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
20815 cat >conftest.$ac_ext <<_ACEOF
20818 cat confdefs.h >>conftest.$ac_ext
20819 cat >>conftest.$ac_ext <<_ACEOF
20820 /* end confdefs.h. */
20822 #ifdef HAVE_STDARG_PROTOTYPES
20823 #include <stdarg.h>
20825 #include <varargs.h>
20831 va_list list1, list2; list1 = list2;
20836 rm -f conftest.$ac_objext
20837 if { (ac_try="$ac_compile"
20838 case "(($ac_try" in
20839 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20840 *) ac_try_echo
=$ac_try;;
20842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20843 (eval "$ac_compile") 2>conftest.er1
20845 grep -v '^ *+' conftest.er1
>conftest.err
20847 cat conftest.err
>&5
20848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849 (exit $ac_status); } && {
20850 test -z "$ac_c_werror_flag" ||
20851 test ! -s conftest.err
20852 } && test -s conftest.
$ac_objext; then
20855 echo "$as_me: failed program was:" >&5
20856 sed 's/^/| /' conftest.
$ac_ext >&5
20860 cat >>confdefs.h
<<\_ACEOF
20861 #define VA_LIST_IS_ARRAY 1
20864 va_list_is_array
=yes
20868 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20869 { echo "$as_me:$LINENO: result: $va_list_is_array" >&5
20870 echo "${ECHO_T}$va_list_is_array" >&6; }
20872 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
20876 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
20877 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
20878 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
20879 echo $ECHO_N "(cached) $ECHO_C" >&6
20881 cat >conftest.
$ac_ext <<_ACEOF
20884 cat confdefs.h
>>conftest.
$ac_ext
20885 cat >>conftest.
$ac_ext <<_ACEOF
20886 /* end confdefs.h. */
20887 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
20888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20889 #define gethostbyname_r innocuous_gethostbyname_r
20891 /* System header to define __stub macros and hopefully few prototypes,
20892 which can conflict with char gethostbyname_r (); below.
20893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20894 <limits.h> exists even on freestanding compilers. */
20897 # include <limits.h>
20899 # include <assert.h>
20902 #undef gethostbyname_r
20904 /* Override any GCC internal prototype to avoid an error.
20905 Use char because int might match the return type of a GCC
20906 builtin and then its argument prototype would still apply. */
20910 char gethostbyname_r ();
20911 /* The GNU C library defines this for functions which it implements
20912 to always fail with ENOSYS. Some functions are actually named
20913 something starting with __ and the normal name is an alias. */
20914 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
20921 return gethostbyname_r ();
20926 rm -f conftest.
$ac_objext conftest
$ac_exeext
20927 if { (ac_try
="$ac_link"
20928 case "(($ac_try" in
20929 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20930 *) ac_try_echo=$ac_try;;
20932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20933 (eval "$ac_link") 2>conftest.er1
20935 grep -v '^ *+' conftest.er1 >conftest.err
20937 cat conftest.err >&5
20938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20939 (exit $ac_status); } && {
20940 test -z "$ac_c_werror_flag" ||
20941 test ! -s conftest.err
20942 } && test -s conftest$ac_exeext &&
20943 $as_test_x conftest$ac_exeext; then
20944 ac_cv_func_gethostbyname_r=yes
20946 echo "$as_me: failed program was:" >&5
20947 sed 's/^/| /' conftest.$ac_ext >&5
20949 ac_cv_func_gethostbyname_r=no
20952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20953 conftest$ac_exeext conftest.$ac_ext
20955 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
20956 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
20957 if test $ac_cv_func_gethostbyname_r = yes; then
20959 cat >>confdefs.h <<\_ACEOF
20960 #define HAVE_GETHOSTBYNAME_R 1
20963 { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
20964 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
20966 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
20967 cat >conftest.$ac_ext <<_ACEOF
20970 cat confdefs.h >>conftest.$ac_ext
20971 cat >>conftest.$ac_ext <<_ACEOF
20972 /* end confdefs.h. */
20974 # include <netdb.h>
20981 struct hostent *he, *res;
20986 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
20992 rm -f conftest.$ac_objext
20993 if { (ac_try="$ac_compile"
20994 case "(($ac_try" in
20995 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20996 *) ac_try_echo
=$ac_try;;
20998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20999 (eval "$ac_compile") 2>conftest.er1
21001 grep -v '^ *+' conftest.er1
>conftest.err
21003 cat conftest.err
>&5
21004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21005 (exit $ac_status); } && {
21006 test -z "$ac_c_werror_flag" ||
21007 test ! -s conftest.err
21008 } && test -s conftest.
$ac_objext; then
21010 cat >>confdefs.h
<<\_ACEOF
21011 #define HAVE_GETHOSTBYNAME_R 1
21015 cat >>confdefs.h
<<\_ACEOF
21016 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
21019 { echo "$as_me:$LINENO: result: yes" >&5
21020 echo "${ECHO_T}yes" >&6; }
21023 echo "$as_me: failed program was:" >&5
21024 sed 's/^/| /' conftest.
$ac_ext >&5
21027 { echo "$as_me:$LINENO: result: no" >&5
21028 echo "${ECHO_T}no" >&6; }
21029 { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
21030 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
21031 cat >conftest.
$ac_ext <<_ACEOF
21034 cat confdefs.h
>>conftest.
$ac_ext
21035 cat >>conftest.
$ac_ext <<_ACEOF
21036 /* end confdefs.h. */
21038 # include <netdb.h>
21045 struct hostent *he;
21050 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
21056 rm -f conftest.
$ac_objext
21057 if { (ac_try
="$ac_compile"
21058 case "(($ac_try" in
21059 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21060 *) ac_try_echo=$ac_try;;
21062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21063 (eval "$ac_compile") 2>conftest.er1
21065 grep -v '^ *+' conftest.er1 >conftest.err
21067 cat conftest.err >&5
21068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21069 (exit $ac_status); } && {
21070 test -z "$ac_c_werror_flag" ||
21071 test ! -s conftest.err
21072 } && test -s conftest.$ac_objext; then
21074 cat >>confdefs.h <<\_ACEOF
21075 #define HAVE_GETHOSTBYNAME_R 1
21079 cat >>confdefs.h <<\_ACEOF
21080 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
21083 { echo "$as_me:$LINENO: result: yes" >&5
21084 echo "${ECHO_T}yes" >&6; }
21087 echo "$as_me: failed program was:" >&5
21088 sed 's/^/| /' conftest.$ac_ext >&5
21091 { echo "$as_me:$LINENO: result: no" >&5
21092 echo "${ECHO_T}no" >&6; }
21093 { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
21094 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
21095 cat >conftest.$ac_ext <<_ACEOF
21098 cat confdefs.h >>conftest.$ac_ext
21099 cat >>conftest.$ac_ext <<_ACEOF
21100 /* end confdefs.h. */
21102 # include <netdb.h>
21109 struct hostent *he;
21110 struct hostent_data data;
21112 (void) gethostbyname_r(name, he, &data);
21118 rm -f conftest.$ac_objext
21119 if { (ac_try="$ac_compile"
21120 case "(($ac_try" in
21121 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21122 *) ac_try_echo
=$ac_try;;
21124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21125 (eval "$ac_compile") 2>conftest.er1
21127 grep -v '^ *+' conftest.er1
>conftest.err
21129 cat conftest.err
>&5
21130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21131 (exit $ac_status); } && {
21132 test -z "$ac_c_werror_flag" ||
21133 test ! -s conftest.err
21134 } && test -s conftest.
$ac_objext; then
21136 cat >>confdefs.h
<<\_ACEOF
21137 #define HAVE_GETHOSTBYNAME_R 1
21141 cat >>confdefs.h
<<\_ACEOF
21142 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
21145 { echo "$as_me:$LINENO: result: yes" >&5
21146 echo "${ECHO_T}yes" >&6; }
21149 echo "$as_me: failed program was:" >&5
21150 sed 's/^/| /' conftest.
$ac_ext >&5
21153 { echo "$as_me:$LINENO: result: no" >&5
21154 echo "${ECHO_T}no" >&6; }
21158 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21162 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21166 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21172 for ac_func
in gethostbyname
21174 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21175 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21176 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21177 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21178 echo $ECHO_N "(cached) $ECHO_C" >&6
21180 cat >conftest.
$ac_ext <<_ACEOF
21183 cat confdefs.h
>>conftest.
$ac_ext
21184 cat >>conftest.
$ac_ext <<_ACEOF
21185 /* end confdefs.h. */
21186 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21187 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21188 #define $ac_func innocuous_$ac_func
21190 /* System header to define __stub macros and hopefully few prototypes,
21191 which can conflict with char $ac_func (); below.
21192 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21193 <limits.h> exists even on freestanding compilers. */
21196 # include <limits.h>
21198 # include <assert.h>
21203 /* Override any GCC internal prototype to avoid an error.
21204 Use char because int might match the return type of a GCC
21205 builtin and then its argument prototype would still apply. */
21210 /* The GNU C library defines this for functions which it implements
21211 to always fail with ENOSYS. Some functions are actually named
21212 something starting with __ and the normal name is an alias. */
21213 #if defined __stub_$ac_func || defined __stub___$ac_func
21220 return $ac_func ();
21225 rm -f conftest.
$ac_objext conftest
$ac_exeext
21226 if { (ac_try
="$ac_link"
21227 case "(($ac_try" in
21228 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21229 *) ac_try_echo=$ac_try;;
21231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21232 (eval "$ac_link") 2>conftest.er1
21234 grep -v '^ *+' conftest.er1 >conftest.err
21236 cat conftest.err >&5
21237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21238 (exit $ac_status); } && {
21239 test -z "$ac_c_werror_flag" ||
21240 test ! -s conftest.err
21241 } && test -s conftest$ac_exeext &&
21242 $as_test_x conftest$ac_exeext; then
21243 eval "$as_ac_var=yes"
21245 echo "$as_me: failed program was:" >&5
21246 sed 's/^/| /' conftest.$ac_ext >&5
21248 eval "$as_ac_var=no"
21251 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21252 conftest$ac_exeext conftest.$ac_ext
21254 ac_res=`eval echo '${'$as_ac_var'}'`
21255 { echo "$as_me:$LINENO: result: $ac_res" >&5
21256 echo "${ECHO_T}$ac_res" >&6; }
21257 if test `eval echo '${'$as_ac_var'}'` = yes; then
21258 cat >>confdefs.h <<_ACEOF
21259 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
21274 # checks for system services
21277 # Linux requires this for correct f.p. operations
21278 { echo "$as_me:$LINENO: checking for __fpu_control" >&5
21279 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
21280 if test "${ac_cv_func___fpu_control+set}" = set; then
21281 echo $ECHO_N "(cached) $ECHO_C" >&6
21283 cat >conftest.$ac_ext <<_ACEOF
21286 cat confdefs.h >>conftest.$ac_ext
21287 cat >>conftest.$ac_ext <<_ACEOF
21288 /* end confdefs.h. */
21289 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
21290 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21291 #define __fpu_control innocuous___fpu_control
21293 /* System header to define __stub macros and hopefully few prototypes,
21294 which can conflict with char __fpu_control (); below.
21295 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21296 <limits.h> exists even on freestanding compilers. */
21299 # include <limits.h>
21301 # include <assert.h>
21304 #undef __fpu_control
21306 /* Override any GCC internal prototype to avoid an error.
21307 Use char because int might match the return type of a GCC
21308 builtin and then its argument prototype would still apply. */
21312 char __fpu_control ();
21313 /* The GNU C library defines this for functions which it implements
21314 to always fail with ENOSYS. Some functions are actually named
21315 something starting with __ and the normal name is an alias. */
21316 #if defined __stub___fpu_control || defined __stub_____fpu_control
21323 return __fpu_control ();
21328 rm -f conftest.$ac_objext conftest$ac_exeext
21329 if { (ac_try="$ac_link"
21330 case "(($ac_try" in
21331 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21332 *) ac_try_echo
=$ac_try;;
21334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21335 (eval "$ac_link") 2>conftest.er1
21337 grep -v '^ *+' conftest.er1
>conftest.err
21339 cat conftest.err
>&5
21340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21341 (exit $ac_status); } && {
21342 test -z "$ac_c_werror_flag" ||
21343 test ! -s conftest.err
21344 } && test -s conftest
$ac_exeext &&
21345 $as_test_x conftest
$ac_exeext; then
21346 ac_cv_func___fpu_control
=yes
21348 echo "$as_me: failed program was:" >&5
21349 sed 's/^/| /' conftest.
$ac_ext >&5
21351 ac_cv_func___fpu_control
=no
21354 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21355 conftest
$ac_exeext conftest.
$ac_ext
21357 { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
21358 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
21359 if test $ac_cv_func___fpu_control = yes; then
21363 { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
21364 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
21365 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
21366 echo $ECHO_N "(cached) $ECHO_C" >&6
21368 ac_check_lib_save_LIBS
=$LIBS
21369 LIBS
="-lieee $LIBS"
21370 cat >conftest.
$ac_ext <<_ACEOF
21373 cat confdefs.h
>>conftest.
$ac_ext
21374 cat >>conftest.
$ac_ext <<_ACEOF
21375 /* end confdefs.h. */
21377 /* Override any GCC internal prototype to avoid an error.
21378 Use char because int might match the return type of a GCC
21379 builtin and then its argument prototype would still apply. */
21383 char __fpu_control ();
21387 return __fpu_control ();
21392 rm -f conftest.
$ac_objext conftest
$ac_exeext
21393 if { (ac_try
="$ac_link"
21394 case "(($ac_try" in
21395 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21396 *) ac_try_echo=$ac_try;;
21398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21399 (eval "$ac_link") 2>conftest.er1
21401 grep -v '^ *+' conftest.er1 >conftest.err
21403 cat conftest.err >&5
21404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405 (exit $ac_status); } && {
21406 test -z "$ac_c_werror_flag" ||
21407 test ! -s conftest.err
21408 } && test -s conftest$ac_exeext &&
21409 $as_test_x conftest$ac_exeext; then
21410 ac_cv_lib_ieee___fpu_control=yes
21412 echo "$as_me: failed program was:" >&5
21413 sed 's/^/| /' conftest.$ac_ext >&5
21415 ac_cv_lib_ieee___fpu_control=no
21418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21419 conftest$ac_exeext conftest.$ac_ext
21420 LIBS=$ac_check_lib_save_LIBS
21422 { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
21423 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
21424 if test $ac_cv_lib_ieee___fpu_control = yes; then
21425 cat >>confdefs.h <<_ACEOF
21426 #define HAVE_LIBIEEE 1
21429 LIBS="-lieee $LIBS"
21437 # Check for --with-fpectl
21438 { echo "$as_me:$LINENO: checking for --with-fpectl" >&5
21439 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
21441 # Check whether --with-fpectl was given.
21442 if test "${with_fpectl+set}" = set; then
21443 withval=$with_fpectl;
21444 if test "$withval" != no
21447 cat >>confdefs.h <<\_ACEOF
21448 #define WANT_SIGFPE_HANDLER 1
21451 { echo "$as_me:$LINENO: result: yes" >&5
21452 echo "${ECHO_T}yes" >&6; }
21453 else { echo "$as_me:$LINENO: result: no" >&5
21454 echo "${ECHO_T}no" >&6; }
21457 { echo "$as_me:$LINENO: result: no" >&5
21458 echo "${ECHO_T}no" >&6; }
21462 # check for --with-libm=...
21464 case $ac_sys_system in
21469 { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
21470 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
21472 # Check whether --with-libm was given.
21473 if test "${with_libm+set}" = set; then
21474 withval=$with_libm;
21475 if test "$withval" = no
21477 { echo "$as_me:$LINENO: result: force LIBM empty" >&5
21478 echo "${ECHO_T}force LIBM empty" >&6; }
21479 elif test "$withval" != yes
21481 { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
21482 echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
21483 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
21484 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
21485 { (exit 1); exit 1; }; }
21488 { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
21489 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
21493 # check for --with-libc=...
21495 { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
21496 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
21498 # Check whether --with-libc was given.
21499 if test "${with_libc+set}" = set; then
21500 withval=$with_libc;
21501 if test "$withval" = no
21503 { echo "$as_me:$LINENO: result: force LIBC empty" >&5
21504 echo "${ECHO_T}force LIBC empty" >&6; }
21505 elif test "$withval" != yes
21507 { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
21508 echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
21509 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
21510 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
21511 { (exit 1); exit 1; }; }
21514 { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
21515 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
21519 # ************************************
21520 # * Check for mathematical functions *
21521 # ************************************
21526 # Detect whether system arithmetic is subject to x87-style double
21527 # rounding issues. The result of this test has little meaning on non
21528 # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding
21529 # mode is round-to-nearest and double rounding issues are present, and
21530 # 0 otherwise. See http://bugs.python.org/issue2937 for more info.
21531 { echo "$as_me:$LINENO: checking for x87-style double rounding" >&5
21532 echo $ECHO_N "checking for x87-style double rounding... $ECHO_C" >&6; }
21533 if test "${ac_cv_x87_double_rounding+set}" = set; then
21534 echo $ECHO_N "(cached) $ECHO_C" >&6
21537 if test "$cross_compiling" = yes; then
21538 ac_cv_x87_double_rounding=no
21540 cat >conftest.$ac_ext <<_ACEOF
21543 cat confdefs.h >>conftest.$ac_ext
21544 cat >>conftest.$ac_ext <<_ACEOF
21545 /* end confdefs.h. */
21547 #include <stdlib.h>
21550 volatile double x, y, z;
21551 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
21552 x = 0.99999999999999989; /* 1-2**-53 */
21556 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
21562 /* both tests show evidence of double rounding */
21567 rm -f conftest$ac_exeext
21568 if { (ac_try="$ac_link"
21569 case "(($ac_try" in
21570 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21571 *) ac_try_echo
=$ac_try;;
21573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21574 (eval "$ac_link") 2>&5
21576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21577 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21578 { (case "(($ac_try" in
21579 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21580 *) ac_try_echo=$ac_try;;
21582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21583 (eval "$ac_try") 2>&5
21585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21586 (exit $ac_status); }; }; then
21587 ac_cv_x87_double_rounding=no
21589 echo "$as_me: program exited with status $ac_status" >&5
21590 echo "$as_me: failed program was:" >&5
21591 sed 's/^/| /' conftest.$ac_ext >&5
21593 ( exit $ac_status )
21594 ac_cv_x87_double_rounding=yes
21596 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21602 { echo "$as_me:$LINENO: result: $ac_cv_x87_double_rounding" >&5
21603 echo "${ECHO_T}$ac_cv_x87_double_rounding" >&6; }
21604 if test "$ac_cv_x87_double_rounding" = yes
21607 cat >>confdefs.h <<\_ACEOF
21608 #define X87_DOUBLE_ROUNDING 1
21614 # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
21615 # -0. on some architectures.
21616 { echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5
21617 echo $ECHO_N "checking whether tanh preserves the sign of zero... $ECHO_C" >&6; }
21618 if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then
21619 echo $ECHO_N "(cached) $ECHO_C" >&6
21622 if test "$cross_compiling" = yes; then
21623 ac_cv_tanh_preserves_zero_sign=no
21625 cat >conftest.$ac_ext <<_ACEOF
21628 cat confdefs.h >>conftest.$ac_ext
21629 cat >>conftest.$ac_ext <<_ACEOF
21630 /* end confdefs.h. */
21633 #include <stdlib.h>
21635 /* return 0 if either negative zeros don't exist
21636 on this platform or if negative zeros exist
21637 and tanh(-0.) == -0. */
21638 if (atan2(0., -1.) == atan2(-0., -1.) ||
21639 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
21644 rm -f conftest$ac_exeext
21645 if { (ac_try="$ac_link"
21646 case "(($ac_try" in
21647 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21648 *) ac_try_echo
=$ac_try;;
21650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21651 (eval "$ac_link") 2>&5
21653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21654 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21655 { (case "(($ac_try" in
21656 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21657 *) ac_try_echo=$ac_try;;
21659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21660 (eval "$ac_try") 2>&5
21662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21663 (exit $ac_status); }; }; then
21664 ac_cv_tanh_preserves_zero_sign=yes
21666 echo "$as_me: program exited with status $ac_status" >&5
21667 echo "$as_me: failed program was:" >&5
21668 sed 's/^/| /' conftest.$ac_ext >&5
21670 ( exit $ac_status )
21671 ac_cv_tanh_preserves_zero_sign=no
21673 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21679 { echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5
21680 echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; }
21681 if test "$ac_cv_tanh_preserves_zero_sign" = yes
21684 cat >>confdefs.h <<\_ACEOF
21685 #define TANH_PRESERVES_ZERO_SIGN 1
21698 for ac_func in acosh asinh atanh copysign expm1 finite hypot log1p
21700 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
21701 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21702 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21703 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21704 echo $ECHO_N "(cached) $ECHO_C" >&6
21706 cat >conftest.$ac_ext <<_ACEOF
21709 cat confdefs.h >>conftest.$ac_ext
21710 cat >>conftest.$ac_ext <<_ACEOF
21711 /* end confdefs.h. */
21712 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21713 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21714 #define $ac_func innocuous_$ac_func
21716 /* System header to define __stub macros and hopefully few prototypes,
21717 which can conflict with char $ac_func (); below.
21718 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21719 <limits.h> exists even on freestanding compilers. */
21722 # include <limits.h>
21724 # include <assert.h>
21729 /* Override any GCC internal prototype to avoid an error.
21730 Use char because int might match the return type of a GCC
21731 builtin and then its argument prototype would still apply. */
21736 /* The GNU C library defines this for functions which it implements
21737 to always fail with ENOSYS. Some functions are actually named
21738 something starting with __ and the normal name is an alias. */
21739 #if defined __stub_$ac_func || defined __stub___$ac_func
21746 return $ac_func ();
21751 rm -f conftest.$ac_objext conftest$ac_exeext
21752 if { (ac_try="$ac_link"
21753 case "(($ac_try" in
21754 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21755 *) ac_try_echo
=$ac_try;;
21757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21758 (eval "$ac_link") 2>conftest.er1
21760 grep -v '^ *+' conftest.er1
>conftest.err
21762 cat conftest.err
>&5
21763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21764 (exit $ac_status); } && {
21765 test -z "$ac_c_werror_flag" ||
21766 test ! -s conftest.err
21767 } && test -s conftest
$ac_exeext &&
21768 $as_test_x conftest
$ac_exeext; then
21769 eval "$as_ac_var=yes"
21771 echo "$as_me: failed program was:" >&5
21772 sed 's/^/| /' conftest.
$ac_ext >&5
21774 eval "$as_ac_var=no"
21777 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21778 conftest
$ac_exeext conftest.
$ac_ext
21780 ac_res
=`eval echo '${'$as_ac_var'}'`
21781 { echo "$as_me:$LINENO: result: $ac_res" >&5
21782 echo "${ECHO_T}$ac_res" >&6; }
21783 if test `eval echo '${'$as_ac_var'}'` = yes; then
21784 cat >>confdefs.h
<<_ACEOF
21785 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21791 { echo "$as_me:$LINENO: checking whether isinf is declared" >&5
21792 echo $ECHO_N "checking whether isinf is declared... $ECHO_C" >&6; }
21793 if test "${ac_cv_have_decl_isinf+set}" = set; then
21794 echo $ECHO_N "(cached) $ECHO_C" >&6
21796 cat >conftest.
$ac_ext <<_ACEOF
21799 cat confdefs.h
>>conftest.
$ac_ext
21800 cat >>conftest.
$ac_ext <<_ACEOF
21801 /* end confdefs.h. */
21815 rm -f conftest.
$ac_objext
21816 if { (ac_try
="$ac_compile"
21817 case "(($ac_try" in
21818 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21819 *) ac_try_echo=$ac_try;;
21821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21822 (eval "$ac_compile") 2>conftest.er1
21824 grep -v '^ *+' conftest.er1 >conftest.err
21826 cat conftest.err >&5
21827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21828 (exit $ac_status); } && {
21829 test -z "$ac_c_werror_flag" ||
21830 test ! -s conftest.err
21831 } && test -s conftest.$ac_objext; then
21832 ac_cv_have_decl_isinf=yes
21834 echo "$as_me: failed program was:" >&5
21835 sed 's/^/| /' conftest.$ac_ext >&5
21837 ac_cv_have_decl_isinf=no
21840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21842 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isinf" >&5
21843 echo "${ECHO_T}$ac_cv_have_decl_isinf" >&6; }
21844 if test $ac_cv_have_decl_isinf = yes; then
21846 cat >>confdefs.h <<_ACEOF
21847 #define HAVE_DECL_ISINF 1
21852 cat >>confdefs.h <<_ACEOF
21853 #define HAVE_DECL_ISINF 0
21858 { echo "$as_me:$LINENO: checking whether isnan is declared" >&5
21859 echo $ECHO_N "checking whether isnan is declared... $ECHO_C" >&6; }
21860 if test "${ac_cv_have_decl_isnan+set}" = set; then
21861 echo $ECHO_N "(cached) $ECHO_C" >&6
21863 cat >conftest.$ac_ext <<_ACEOF
21866 cat confdefs.h >>conftest.$ac_ext
21867 cat >>conftest.$ac_ext <<_ACEOF
21868 /* end confdefs.h. */
21882 rm -f conftest.$ac_objext
21883 if { (ac_try="$ac_compile"
21884 case "(($ac_try" in
21885 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21886 *) ac_try_echo
=$ac_try;;
21888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21889 (eval "$ac_compile") 2>conftest.er1
21891 grep -v '^ *+' conftest.er1
>conftest.err
21893 cat conftest.err
>&5
21894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21895 (exit $ac_status); } && {
21896 test -z "$ac_c_werror_flag" ||
21897 test ! -s conftest.err
21898 } && test -s conftest.
$ac_objext; then
21899 ac_cv_have_decl_isnan
=yes
21901 echo "$as_me: failed program was:" >&5
21902 sed 's/^/| /' conftest.
$ac_ext >&5
21904 ac_cv_have_decl_isnan
=no
21907 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21909 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isnan" >&5
21910 echo "${ECHO_T}$ac_cv_have_decl_isnan" >&6; }
21911 if test $ac_cv_have_decl_isnan = yes; then
21913 cat >>confdefs.h
<<_ACEOF
21914 #define HAVE_DECL_ISNAN 1
21919 cat >>confdefs.h
<<_ACEOF
21920 #define HAVE_DECL_ISNAN 0
21925 { echo "$as_me:$LINENO: checking whether isfinite is declared" >&5
21926 echo $ECHO_N "checking whether isfinite is declared... $ECHO_C" >&6; }
21927 if test "${ac_cv_have_decl_isfinite+set}" = set; then
21928 echo $ECHO_N "(cached) $ECHO_C" >&6
21930 cat >conftest.
$ac_ext <<_ACEOF
21933 cat confdefs.h
>>conftest.
$ac_ext
21934 cat >>conftest.
$ac_ext <<_ACEOF
21935 /* end confdefs.h. */
21949 rm -f conftest.
$ac_objext
21950 if { (ac_try
="$ac_compile"
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_compile") 2>conftest.er1
21958 grep -v '^ *+' conftest.er1 >conftest.err
21960 cat conftest.err >&5
21961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21962 (exit $ac_status); } && {
21963 test -z "$ac_c_werror_flag" ||
21964 test ! -s conftest.err
21965 } && test -s conftest.$ac_objext; then
21966 ac_cv_have_decl_isfinite=yes
21968 echo "$as_me: failed program was:" >&5
21969 sed 's/^/| /' conftest.$ac_ext >&5
21971 ac_cv_have_decl_isfinite=no
21974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21976 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isfinite" >&5
21977 echo "${ECHO_T}$ac_cv_have_decl_isfinite" >&6; }
21978 if test $ac_cv_have_decl_isfinite = yes; then
21980 cat >>confdefs.h <<_ACEOF
21981 #define HAVE_DECL_ISFINITE 1
21986 cat >>confdefs.h <<_ACEOF
21987 #define HAVE_DECL_ISFINITE 0
21997 # check for wchar.h
21998 if test "${ac_cv_header_wchar_h+set}" = set; then
21999 { echo "$as_me:$LINENO: checking for wchar.h" >&5
22000 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
22001 if test "${ac_cv_header_wchar_h+set}" = set; then
22002 echo $ECHO_N "(cached) $ECHO_C" >&6
22004 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
22005 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
22007 # Is the header compilable?
22008 { echo "$as_me:$LINENO: checking wchar.h usability" >&5
22009 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; }
22010 cat >conftest.$ac_ext <<_ACEOF
22013 cat confdefs.h >>conftest.$ac_ext
22014 cat >>conftest.$ac_ext <<_ACEOF
22015 /* end confdefs.h. */
22016 $ac_includes_default
22019 rm -f conftest.$ac_objext
22020 if { (ac_try="$ac_compile"
22021 case "(($ac_try" in
22022 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22023 *) ac_try_echo
=$ac_try;;
22025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22026 (eval "$ac_compile") 2>conftest.er1
22028 grep -v '^ *+' conftest.er1
>conftest.err
22030 cat conftest.err
>&5
22031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22032 (exit $ac_status); } && {
22033 test -z "$ac_c_werror_flag" ||
22034 test ! -s conftest.err
22035 } && test -s conftest.
$ac_objext; then
22036 ac_header_compiler
=yes
22038 echo "$as_me: failed program was:" >&5
22039 sed 's/^/| /' conftest.
$ac_ext >&5
22041 ac_header_compiler
=no
22044 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22045 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22046 echo "${ECHO_T}$ac_header_compiler" >&6; }
22048 # Is the header present?
22049 { echo "$as_me:$LINENO: checking wchar.h presence" >&5
22050 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; }
22051 cat >conftest.
$ac_ext <<_ACEOF
22054 cat confdefs.h
>>conftest.
$ac_ext
22055 cat >>conftest.
$ac_ext <<_ACEOF
22056 /* end confdefs.h. */
22059 if { (ac_try
="$ac_cpp conftest.$ac_ext"
22060 case "(($ac_try" in
22061 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22062 *) ac_try_echo=$ac_try;;
22064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22065 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22067 grep -v '^ *+' conftest.er1 >conftest.err
22069 cat conftest.err >&5
22070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22071 (exit $ac_status); } >/dev/null && {
22072 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22073 test ! -s conftest.err
22075 ac_header_preproc=yes
22077 echo "$as_me: failed program was:" >&5
22078 sed 's/^/| /' conftest.$ac_ext >&5
22080 ac_header_preproc=no
22083 rm -f conftest.err conftest.$ac_ext
22084 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22085 echo "${ECHO_T}$ac_header_preproc" >&6; }
22087 # So? What about this header?
22088 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22090 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
22091 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22092 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
22093 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
22094 ac_header_preproc=yes
22097 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
22098 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
22099 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
22100 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
22101 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
22102 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
22103 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
22104 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
22105 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
22106 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
22107 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
22108 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
22110 ## ------------------------------------------------ ##
22111 ## Report this to http://www.python.org/python-bugs ##
22112 ## ------------------------------------------------ ##
22114 ) | sed "s/^/$as_me: WARNING: /" >&2
22117 { echo "$as_me:$LINENO: checking for wchar.h" >&5
22118 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
22119 if test "${ac_cv_header_wchar_h+set}" = set; then
22120 echo $ECHO_N "(cached) $ECHO_C" >&6
22122 ac_cv_header_wchar_h=$ac_header_preproc
22124 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
22125 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
22128 if test $ac_cv_header_wchar_h = yes; then
22131 cat >>confdefs.h <<\_ACEOF
22132 #define HAVE_WCHAR_H 1
22144 # determine wchar_t size
22145 if test "$wchar_h" = yes
22147 { echo "$as_me:$LINENO: checking for wchar_t" >&5
22148 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
22149 if test "${ac_cv_type_wchar_t+set}" = set; then
22150 echo $ECHO_N "(cached) $ECHO_C" >&6
22152 cat >conftest.$ac_ext <<_ACEOF
22155 cat confdefs.h >>conftest.$ac_ext
22156 cat >>conftest.$ac_ext <<_ACEOF
22157 /* end confdefs.h. */
22160 typedef wchar_t ac__type_new_;
22164 if ((ac__type_new_ *) 0)
22166 if (sizeof (ac__type_new_))
22172 rm -f conftest.$ac_objext
22173 if { (ac_try="$ac_compile"
22174 case "(($ac_try" in
22175 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22176 *) ac_try_echo
=$ac_try;;
22178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22179 (eval "$ac_compile") 2>conftest.er1
22181 grep -v '^ *+' conftest.er1
>conftest.err
22183 cat conftest.err
>&5
22184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22185 (exit $ac_status); } && {
22186 test -z "$ac_c_werror_flag" ||
22187 test ! -s conftest.err
22188 } && test -s conftest.
$ac_objext; then
22189 ac_cv_type_wchar_t
=yes
22191 echo "$as_me: failed program was:" >&5
22192 sed 's/^/| /' conftest.
$ac_ext >&5
22194 ac_cv_type_wchar_t
=no
22197 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22199 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
22200 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
22202 # The cast to long int works around a bug in the HP C Compiler
22203 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22204 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22205 # This bug is HP SR number 8606223364.
22206 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
22207 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
22208 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
22209 echo $ECHO_N "(cached) $ECHO_C" >&6
22211 if test "$cross_compiling" = yes; then
22212 # Depending upon the size, compute the lo and hi bounds.
22213 cat >conftest.
$ac_ext <<_ACEOF
22216 cat confdefs.h
>>conftest.
$ac_ext
22217 cat >>conftest.
$ac_ext <<_ACEOF
22218 /* end confdefs.h. */
22221 typedef wchar_t ac__type_sizeof_;
22225 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22232 rm -f conftest.
$ac_objext
22233 if { (ac_try
="$ac_compile"
22234 case "(($ac_try" in
22235 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22236 *) ac_try_echo=$ac_try;;
22238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22239 (eval "$ac_compile") 2>conftest.er1
22241 grep -v '^ *+' conftest.er1 >conftest.err
22243 cat conftest.err >&5
22244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22245 (exit $ac_status); } && {
22246 test -z "$ac_c_werror_flag" ||
22247 test ! -s conftest.err
22248 } && test -s conftest.$ac_objext; then
22251 cat >conftest.$ac_ext <<_ACEOF
22254 cat confdefs.h >>conftest.$ac_ext
22255 cat >>conftest.$ac_ext <<_ACEOF
22256 /* end confdefs.h. */
22259 typedef wchar_t ac__type_sizeof_;
22263 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22270 rm -f conftest.$ac_objext
22271 if { (ac_try="$ac_compile"
22272 case "(($ac_try" in
22273 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22274 *) ac_try_echo
=$ac_try;;
22276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22277 (eval "$ac_compile") 2>conftest.er1
22279 grep -v '^ *+' conftest.er1
>conftest.err
22281 cat conftest.err
>&5
22282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22283 (exit $ac_status); } && {
22284 test -z "$ac_c_werror_flag" ||
22285 test ! -s conftest.err
22286 } && test -s conftest.
$ac_objext; then
22287 ac_hi
=$ac_mid; break
22289 echo "$as_me: failed program was:" >&5
22290 sed 's/^/| /' conftest.
$ac_ext >&5
22292 ac_lo
=`expr $ac_mid + 1`
22293 if test $ac_lo -le $ac_mid; then
22297 ac_mid
=`expr 2 '*' $ac_mid + 1`
22300 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22303 echo "$as_me: failed program was:" >&5
22304 sed 's/^/| /' conftest.
$ac_ext >&5
22306 cat >conftest.
$ac_ext <<_ACEOF
22309 cat confdefs.h
>>conftest.
$ac_ext
22310 cat >>conftest.
$ac_ext <<_ACEOF
22311 /* end confdefs.h. */
22314 typedef wchar_t ac__type_sizeof_;
22318 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22325 rm -f conftest.
$ac_objext
22326 if { (ac_try
="$ac_compile"
22327 case "(($ac_try" in
22328 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22329 *) ac_try_echo=$ac_try;;
22331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22332 (eval "$ac_compile") 2>conftest.er1
22334 grep -v '^ *+' conftest.er1 >conftest.err
22336 cat conftest.err >&5
22337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22338 (exit $ac_status); } && {
22339 test -z "$ac_c_werror_flag" ||
22340 test ! -s conftest.err
22341 } && test -s conftest.$ac_objext; then
22344 cat >conftest.$ac_ext <<_ACEOF
22347 cat confdefs.h >>conftest.$ac_ext
22348 cat >>conftest.$ac_ext <<_ACEOF
22349 /* end confdefs.h. */
22352 typedef wchar_t ac__type_sizeof_;
22356 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22363 rm -f conftest.$ac_objext
22364 if { (ac_try="$ac_compile"
22365 case "(($ac_try" in
22366 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22367 *) ac_try_echo
=$ac_try;;
22369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22370 (eval "$ac_compile") 2>conftest.er1
22372 grep -v '^ *+' conftest.er1
>conftest.err
22374 cat conftest.err
>&5
22375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22376 (exit $ac_status); } && {
22377 test -z "$ac_c_werror_flag" ||
22378 test ! -s conftest.err
22379 } && test -s conftest.
$ac_objext; then
22380 ac_lo
=$ac_mid; break
22382 echo "$as_me: failed program was:" >&5
22383 sed 's/^/| /' conftest.
$ac_ext >&5
22385 ac_hi
=`expr '(' $ac_mid ')' - 1`
22386 if test $ac_mid -le $ac_hi; then
22390 ac_mid
=`expr 2 '*' $ac_mid`
22393 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22396 echo "$as_me: failed program was:" >&5
22397 sed 's/^/| /' conftest.
$ac_ext >&5
22402 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22405 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22406 # Binary search between lo and hi bounds.
22407 while test "x$ac_lo" != "x$ac_hi"; do
22408 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22409 cat >conftest.
$ac_ext <<_ACEOF
22412 cat confdefs.h
>>conftest.
$ac_ext
22413 cat >>conftest.
$ac_ext <<_ACEOF
22414 /* end confdefs.h. */
22417 typedef wchar_t ac__type_sizeof_;
22421 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22428 rm -f conftest.
$ac_objext
22429 if { (ac_try
="$ac_compile"
22430 case "(($ac_try" in
22431 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22432 *) ac_try_echo=$ac_try;;
22434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22435 (eval "$ac_compile") 2>conftest.er1
22437 grep -v '^ *+' conftest.er1 >conftest.err
22439 cat conftest.err >&5
22440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22441 (exit $ac_status); } && {
22442 test -z "$ac_c_werror_flag" ||
22443 test ! -s conftest.err
22444 } && test -s conftest.$ac_objext; then
22447 echo "$as_me: failed program was:" >&5
22448 sed 's/^/| /' conftest.$ac_ext >&5
22450 ac_lo=`expr '(' $ac_mid ')' + 1`
22453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22456 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
22457 '') if test "$ac_cv_type_wchar_t" = yes; then
22458 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
22459 See \`config.log
' for more details." >&5
22460 echo "$as_me: error: cannot compute sizeof (wchar_t)
22461 See \`config.log' for more details.
" >&2;}
22462 { (exit 77); exit 77; }; }
22464 ac_cv_sizeof_wchar_t=0
22468 cat >conftest.$ac_ext <<_ACEOF
22471 cat confdefs.h >>conftest.$ac_ext
22472 cat >>conftest.$ac_ext <<_ACEOF
22473 /* end confdefs.h. */
22476 typedef wchar_t ac__type_sizeof_;
22477 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22478 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22480 #include <stdlib.h>
22485 FILE *f = fopen ("conftest.val
", "w
");
22488 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22490 long int i = longval ();
22491 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22493 fprintf (f, "%ld
\n", i);
22497 unsigned long int i = ulongval ();
22498 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22500 fprintf (f, "%lu
\n", i);
22502 return ferror (f) || fclose (f) != 0;
22508 rm -f conftest$ac_exeext
22509 if { (ac_try="$ac_link"
22510 case "(($ac_try" in
22511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22512 *) ac_try_echo=$ac_try;;
22514 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22515 (eval "$ac_link") 2>&5
22517 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22518 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22519 { (case "(($ac_try" in
22520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22521 *) ac_try_echo=$ac_try;;
22523 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22524 (eval "$ac_try") 2>&5
22526 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22527 (exit $ac_status); }; }; then
22528 ac_cv_sizeof_wchar_t=`cat conftest.val`
22530 echo "$as_me: program exited with status
$ac_status" >&5
22531 echo "$as_me: failed program was
:" >&5
22532 sed 's/^/| /' conftest.$ac_ext >&5
22534 ( exit $ac_status )
22535 if test "$ac_cv_type_wchar_t" = yes; then
22536 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(wchar_t
)
22537 See \
`config.log' for more details." >&5
22538 echo "$as_me: error: cannot compute sizeof (wchar_t)
22539 See \`config.log
' for more details." >&2;}
22540 { (exit 77); exit 77; }; }
22542 ac_cv_sizeof_wchar_t=0
22545 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22549 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
22550 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
22554 cat >>confdefs.h <<_ACEOF
22555 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
22561 { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
22562 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6; }
22564 cat >conftest.$ac_ext <<_ACEOF
22567 cat confdefs.h >>conftest.$ac_ext
22568 cat >>conftest.$ac_ext <<_ACEOF
22569 /* end confdefs.h. */
22572 #if TCL_UTF_MAX != 6
22573 # error "NOT UCS4_TCL"
22583 rm -f conftest.$ac_objext
22584 if { (ac_try="$ac_compile"
22585 case "(($ac_try" in
22586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22587 *) ac_try_echo=$ac_try;;
22589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22590 (eval "$ac_compile") 2>conftest.er1
22592 grep -v '^
*+' conftest.er1 >conftest.err
22594 cat conftest.err >&5
22595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22596 (exit $ac_status); } && {
22597 test -z "$ac_c_werror_flag" ||
22598 test ! -s conftest.err
22599 } && test -s conftest.$ac_objext; then
22602 cat >>confdefs.h <<\_ACEOF
22603 #define HAVE_UCS4_TCL 1
22609 echo "$as_me: failed program was:" >&5
22610 sed 's
/^
/|
/' conftest.$ac_ext >&5
22615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22616 { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
22617 echo "${ECHO_T}$have_ucs4_tcl" >&6; }
22619 # check whether wchar_t is signed or not
22620 if test "$wchar_h" = yes
22622 # check whether wchar_t is signed or not
22623 { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
22624 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6; }
22625 if test "${ac_cv_wchar_t_signed+set}" = set; then
22626 echo $ECHO_N "(cached) $ECHO_C" >&6
22629 if test "$cross_compiling" = yes; then
22630 ac_cv_wchar_t_signed=yes
22632 cat >conftest.$ac_ext <<_ACEOF
22635 cat confdefs.h >>conftest.$ac_ext
22636 cat >>conftest.$ac_ext <<_ACEOF
22637 /* end confdefs.h. */
22642 /* Success: exit code 0 */
22643 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
22647 rm -f conftest$ac_exeext
22648 if { (ac_try="$ac_link"
22649 case "(($ac_try" in
22650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22651 *) ac_try_echo=$ac_try;;
22653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22654 (eval "$ac_link") 2>&5
22656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22657 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
22658 { (case "(($ac_try" in
22659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22660 *) ac_try_echo=$ac_try;;
22662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22663 (eval "$ac_try") 2>&5
22665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22666 (exit $ac_status); }; }; then
22667 ac_cv_wchar_t_signed=yes
22669 echo "$as_me: program exited with status $ac_status" >&5
22670 echo "$as_me: failed program was:" >&5
22671 sed 's
/^
/|
/' conftest.$ac_ext >&5
22673 ( exit $ac_status )
22674 ac_cv_wchar_t_signed=no
22676 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22682 { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
22683 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
22686 { echo "$as_me:$LINENO: checking what type to use for unicode" >&5
22687 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6; }
22688 # Check whether --enable-unicode was given.
22689 if test "${enable_unicode+set}" = set; then
22690 enableval=$enable_unicode;
22696 if test $enable_unicode = yes
22698 # Without any arguments, Py_UNICODE defaults to two-byte mode
22699 case "$have_ucs4_tcl" in
22700 yes) enable_unicode="ucs4"
22702 *) enable_unicode="ucs2"
22709 case "$enable_unicode" in
22710 ucs2) unicode_size="2"
22711 cat >>confdefs.h <<\_ACEOF
22712 #define Py_UNICODE_SIZE 2
22716 ucs4) unicode_size="4"
22717 cat >>confdefs.h <<\_ACEOF
22718 #define Py_UNICODE_SIZE 4
22728 if test "$enable_unicode" = "no"
22731 { echo "$as_me:$LINENO: result: not used" >&5
22732 echo "${ECHO_T}not used" >&6; }
22734 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
22736 cat >>confdefs.h <<\_ACEOF
22737 #define Py_USING_UNICODE 1
22741 # wchar_t is only usable if it maps to an unsigned type
22742 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
22743 -a "$ac_cv_wchar_t_signed" = "no"
22745 PY_UNICODE_TYPE="wchar_t"
22747 cat >>confdefs.h <<\_ACEOF
22748 #define HAVE_USABLE_WCHAR_T 1
22751 cat >>confdefs.h <<\_ACEOF
22752 #define PY_UNICODE_TYPE wchar_t
22755 elif test "$ac_cv_sizeof_short" = "$unicode_size"
22757 PY_UNICODE_TYPE="unsigned short"
22758 cat >>confdefs.h <<\_ACEOF
22759 #define PY_UNICODE_TYPE unsigned short
22762 elif test "$ac_cv_sizeof_long" = "$unicode_size"
22764 PY_UNICODE_TYPE="unsigned long"
22765 cat >>confdefs.h <<\_ACEOF
22766 #define PY_UNICODE_TYPE unsigned long
22770 PY_UNICODE_TYPE="no type found"
22772 { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
22773 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
22776 # check for endianness
22777 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22778 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
22779 if test "${ac_cv_c_bigendian+set}" = set; then
22780 echo $ECHO_N "(cached) $ECHO_C" >&6
22782 # See if sys/param.h defines the BYTE_ORDER macro.
22783 cat >conftest.$ac_ext <<_ACEOF
22786 cat confdefs.h >>conftest.$ac_ext
22787 cat >>conftest.$ac_ext <<_ACEOF
22788 /* end confdefs.h. */
22789 #include <sys/types.h>
22790 #include <sys/param.h>
22795 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
22796 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
22797 bogus endian macros
22804 rm -f conftest.$ac_objext
22805 if { (ac_try="$ac_compile"
22806 case "(($ac_try" in
22807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22808 *) ac_try_echo=$ac_try;;
22810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22811 (eval "$ac_compile") 2>conftest.er1
22813 grep -v '^
*+' conftest.er1 >conftest.err
22815 cat conftest.err >&5
22816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22817 (exit $ac_status); } && {
22818 test -z "$ac_c_werror_flag" ||
22819 test ! -s conftest.err
22820 } && test -s conftest.$ac_objext; then
22821 # It does; now see whether it defined to BIG_ENDIAN or not.
22822 cat >conftest.$ac_ext <<_ACEOF
22825 cat confdefs.h >>conftest.$ac_ext
22826 cat >>conftest.$ac_ext <<_ACEOF
22827 /* end confdefs.h. */
22828 #include <sys/types.h>
22829 #include <sys/param.h>
22834 #if BYTE_ORDER != BIG_ENDIAN
22842 rm -f conftest.$ac_objext
22843 if { (ac_try="$ac_compile"
22844 case "(($ac_try" in
22845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22846 *) ac_try_echo=$ac_try;;
22848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22849 (eval "$ac_compile") 2>conftest.er1
22851 grep -v '^
*+' conftest.er1 >conftest.err
22853 cat conftest.err >&5
22854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22855 (exit $ac_status); } && {
22856 test -z "$ac_c_werror_flag" ||
22857 test ! -s conftest.err
22858 } && test -s conftest.$ac_objext; then
22859 ac_cv_c_bigendian=yes
22861 echo "$as_me: failed program was:" >&5
22862 sed 's
/^
/|
/' conftest.$ac_ext >&5
22864 ac_cv_c_bigendian=no
22867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22869 echo "$as_me: failed program was:" >&5
22870 sed 's
/^
/|
/' conftest.$ac_ext >&5
22872 # It does not; compile a test program.
22873 if test "$cross_compiling" = yes; then
22874 # try to guess the endianness by grepping values into an object file
22875 ac_cv_c_bigendian=unknown
22876 cat >conftest.$ac_ext <<_ACEOF
22879 cat confdefs.h >>conftest.$ac_ext
22880 cat >>conftest.$ac_ext <<_ACEOF
22881 /* end confdefs.h. */
22882 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22883 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22884 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
22885 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22886 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22887 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
22891 _ascii (); _ebcdic ();
22896 rm -f conftest.$ac_objext
22897 if { (ac_try="$ac_compile"
22898 case "(($ac_try" in
22899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22900 *) ac_try_echo=$ac_try;;
22902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22903 (eval "$ac_compile") 2>conftest.er1
22905 grep -v '^
*+' conftest.er1 >conftest.err
22907 cat conftest.err >&5
22908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22909 (exit $ac_status); } && {
22910 test -z "$ac_c_werror_flag" ||
22911 test ! -s conftest.err
22912 } && test -s conftest.$ac_objext; then
22913 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
22914 ac_cv_c_bigendian=yes
22916 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22917 if test "$ac_cv_c_bigendian" = unknown; then
22918 ac_cv_c_bigendian=no
22920 # finding both strings is unlikely to happen, but who knows?
22921 ac_cv_c_bigendian=unknown
22925 echo "$as_me: failed program was:" >&5
22926 sed 's
/^
/|
/' conftest.$ac_ext >&5
22931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22933 cat >conftest.$ac_ext <<_ACEOF
22936 cat confdefs.h >>conftest.$ac_ext
22937 cat >>conftest.$ac_ext <<_ACEOF
22938 /* end confdefs.h. */
22939 $ac_includes_default
22944 /* Are we little or big endian? From Harbison&Steele. */
22948 char c[sizeof (long int)];
22951 return u.c[sizeof (long int) - 1] == 1;
22957 rm -f conftest$ac_exeext
22958 if { (ac_try="$ac_link"
22959 case "(($ac_try" in
22960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22961 *) ac_try_echo=$ac_try;;
22963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22964 (eval "$ac_link") 2>&5
22966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22967 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
22968 { (case "(($ac_try" in
22969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22970 *) ac_try_echo=$ac_try;;
22972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22973 (eval "$ac_try") 2>&5
22975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22976 (exit $ac_status); }; }; then
22977 ac_cv_c_bigendian=no
22979 echo "$as_me: program exited with status $ac_status" >&5
22980 echo "$as_me: failed program was:" >&5
22981 sed 's
/^
/|
/' conftest.$ac_ext >&5
22983 ( exit $ac_status )
22984 ac_cv_c_bigendian=yes
22986 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22994 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22995 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
22996 case $ac_cv_c_bigendian in
22999 cat >>confdefs.h <<\_ACEOF
23000 #define WORDS_BIGENDIAN 1
23006 { { echo "$as_me:$LINENO: error: unknown endianness
23007 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
23008 echo "$as_me: error: unknown endianness
23009 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
23010 { (exit 1); exit 1; }; } ;;
23014 # Check whether right shifting a negative integer extends the sign bit
23015 # or fills with zeros (like the Cray J90, according to Tim Peters).
23016 { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
23017 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6; }
23018 if test "${ac_cv_rshift_extends_sign+set}" = set; then
23019 echo $ECHO_N "(cached) $ECHO_C" >&6
23022 if test "$cross_compiling" = yes; then
23023 ac_cv_rshift_extends_sign=yes
23025 cat >conftest.$ac_ext <<_ACEOF
23028 cat confdefs.h >>conftest.$ac_ext
23029 cat >>conftest.$ac_ext <<_ACEOF
23030 /* end confdefs.h. */
23034 exit(((-1)>>3 == -1) ? 0 : 1);
23038 rm -f conftest$ac_exeext
23039 if { (ac_try="$ac_link"
23040 case "(($ac_try" in
23041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23042 *) ac_try_echo=$ac_try;;
23044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23045 (eval "$ac_link") 2>&5
23047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23048 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
23049 { (case "(($ac_try" in
23050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23051 *) ac_try_echo=$ac_try;;
23053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23054 (eval "$ac_try") 2>&5
23056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23057 (exit $ac_status); }; }; then
23058 ac_cv_rshift_extends_sign=yes
23060 echo "$as_me: program exited with status $ac_status" >&5
23061 echo "$as_me: failed program was:" >&5
23062 sed 's
/^
/|
/' conftest.$ac_ext >&5
23064 ( exit $ac_status )
23065 ac_cv_rshift_extends_sign=no
23067 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23073 { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
23074 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
23075 if test "$ac_cv_rshift_extends_sign" = no
23078 cat >>confdefs.h <<\_ACEOF
23079 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
23084 # check for getc_unlocked and related locking functions
23085 { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
23086 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6; }
23087 if test "${ac_cv_have_getc_unlocked+set}" = set; then
23088 echo $ECHO_N "(cached) $ECHO_C" >&6
23091 cat >conftest.$ac_ext <<_ACEOF
23094 cat confdefs.h >>conftest.$ac_ext
23095 cat >>conftest.$ac_ext <<_ACEOF
23096 /* end confdefs.h. */
23102 FILE *f = fopen("/dev/null", "r");
23111 rm -f conftest.$ac_objext conftest$ac_exeext
23112 if { (ac_try="$ac_link"
23113 case "(($ac_try" in
23114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23115 *) ac_try_echo=$ac_try;;
23117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23118 (eval "$ac_link") 2>conftest.er1
23120 grep -v '^
*+' conftest.er1 >conftest.err
23122 cat conftest.err >&5
23123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23124 (exit $ac_status); } && {
23125 test -z "$ac_c_werror_flag" ||
23126 test ! -s conftest.err
23127 } && test -s conftest$ac_exeext &&
23128 $as_test_x conftest$ac_exeext; then
23129 ac_cv_have_getc_unlocked=yes
23131 echo "$as_me: failed program was:" >&5
23132 sed 's
/^
/|
/' conftest.$ac_ext >&5
23134 ac_cv_have_getc_unlocked=no
23137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23138 conftest$ac_exeext conftest.$ac_ext
23141 { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
23142 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
23143 if test "$ac_cv_have_getc_unlocked" = yes
23146 cat >>confdefs.h <<\_ACEOF
23147 #define HAVE_GETC_UNLOCKED 1
23152 # check where readline lives
23153 # save the value of LIBS so we don't actually link Python with readline
23154 LIBS_no_readline
=$LIBS
23156 # On some systems we need to link readline to a termcap compatible
23157 # library. NOTE: Keep the precedence of listed libraries synchronised
23159 py_cv_lib_readline
=no
23160 { echo "$as_me:$LINENO: checking how to link readline libs" >&5
23161 echo $ECHO_N "checking how to link readline libs... $ECHO_C" >&6; }
23162 for py_libtermcap
in "" ncursesw ncurses curses termcap
; do
23163 if test -z "$py_libtermcap"; then
23164 READLINE_LIBS
="-lreadline"
23166 READLINE_LIBS
="-lreadline -l$py_libtermcap"
23168 LIBS
="$READLINE_LIBS $LIBS_no_readline"
23169 cat >conftest.
$ac_ext <<_ACEOF
23172 cat confdefs.h
>>conftest.
$ac_ext
23173 cat >>conftest.
$ac_ext <<_ACEOF
23174 /* end confdefs.h. */
23176 /* Override any GCC internal prototype to avoid an error.
23177 Use char because int might match the return type of a GCC
23178 builtin and then its argument prototype would still apply. */
23186 return readline ();
23191 rm -f conftest.
$ac_objext conftest
$ac_exeext
23192 if { (ac_try
="$ac_link"
23193 case "(($ac_try" in
23194 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23195 *) ac_try_echo=$ac_try;;
23197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23198 (eval "$ac_link") 2>conftest.er1
23200 grep -v '^ *+' conftest.er1 >conftest.err
23202 cat conftest.err >&5
23203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23204 (exit $ac_status); } && {
23205 test -z "$ac_c_werror_flag" ||
23206 test ! -s conftest.err
23207 } && test -s conftest$ac_exeext &&
23208 $as_test_x conftest$ac_exeext; then
23209 py_cv_lib_readline=yes
23211 echo "$as_me: failed program was:" >&5
23212 sed 's/^/| /' conftest.$ac_ext >&5
23217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23218 conftest$ac_exeext conftest.$ac_ext
23219 if test $py_cv_lib_readline = yes; then
23223 # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts
23224 #AC_SUBST([READLINE_LIBS])
23225 if test $py_cv_lib_readline = no; then
23226 { echo "$as_me:$LINENO: result: none" >&5
23227 echo "${ECHO_T}none" >&6; }
23229 { echo "$as_me:$LINENO: result: $READLINE_LIBS" >&5
23230 echo "${ECHO_T}$READLINE_LIBS" >&6; }
23232 cat >>confdefs.h <<\_ACEOF
23233 #define HAVE_LIBREADLINE 1
23238 # check for readline 2.1
23239 { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
23240 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6; }
23241 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
23242 echo $ECHO_N "(cached) $ECHO_C" >&6
23244 ac_check_lib_save_LIBS=$LIBS
23245 LIBS="-lreadline $READLINE_LIBS $LIBS"
23246 cat >conftest.$ac_ext <<_ACEOF
23249 cat confdefs.h >>conftest.$ac_ext
23250 cat >>conftest.$ac_ext <<_ACEOF
23251 /* end confdefs.h. */
23253 /* Override any GCC internal prototype to avoid an error.
23254 Use char because int might match the return type of a GCC
23255 builtin and then its argument prototype would still apply. */
23259 char rl_callback_handler_install ();
23263 return rl_callback_handler_install ();
23268 rm -f conftest.$ac_objext conftest$ac_exeext
23269 if { (ac_try="$ac_link"
23270 case "(($ac_try" in
23271 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23272 *) ac_try_echo
=$ac_try;;
23274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23275 (eval "$ac_link") 2>conftest.er1
23277 grep -v '^ *+' conftest.er1
>conftest.err
23279 cat conftest.err
>&5
23280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23281 (exit $ac_status); } && {
23282 test -z "$ac_c_werror_flag" ||
23283 test ! -s conftest.err
23284 } && test -s conftest
$ac_exeext &&
23285 $as_test_x conftest
$ac_exeext; then
23286 ac_cv_lib_readline_rl_callback_handler_install
=yes
23288 echo "$as_me: failed program was:" >&5
23289 sed 's/^/| /' conftest.
$ac_ext >&5
23291 ac_cv_lib_readline_rl_callback_handler_install
=no
23294 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23295 conftest
$ac_exeext conftest.
$ac_ext
23296 LIBS
=$ac_check_lib_save_LIBS
23298 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
23299 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
23300 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
23302 cat >>confdefs.h
<<\_ACEOF
23303 #define HAVE_RL_CALLBACK 1
23309 # check for readline 2.2
23310 cat >conftest.
$ac_ext <<_ACEOF
23313 cat confdefs.h
>>conftest.
$ac_ext
23314 cat >>conftest.
$ac_ext <<_ACEOF
23315 /* end confdefs.h. */
23316 #include <readline/readline.h>
23318 if { (ac_try
="$ac_cpp conftest.$ac_ext"
23319 case "(($ac_try" in
23320 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23321 *) ac_try_echo=$ac_try;;
23323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23324 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23326 grep -v '^ *+' conftest.er1 >conftest.err
23328 cat conftest.err >&5
23329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23330 (exit $ac_status); } >/dev/null && {
23331 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23332 test ! -s conftest.err
23336 echo "$as_me: failed program was:" >&5
23337 sed 's/^/| /' conftest.$ac_ext >&5
23342 rm -f conftest.err conftest.$ac_ext
23343 if test $have_readline = yes
23345 cat >conftest.$ac_ext <<_ACEOF
23348 cat confdefs.h >>conftest.$ac_ext
23349 cat >>conftest.$ac_ext <<_ACEOF
23350 /* end confdefs.h. */
23351 #include <readline/readline.h>
23354 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23355 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
23357 cat >>confdefs.h <<\_ACEOF
23358 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
23366 # check for readline 4.0
23367 { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
23368 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6; }
23369 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
23370 echo $ECHO_N "(cached) $ECHO_C" >&6
23372 ac_check_lib_save_LIBS=$LIBS
23373 LIBS="-lreadline $READLINE_LIBS $LIBS"
23374 cat >conftest.$ac_ext <<_ACEOF
23377 cat confdefs.h >>conftest.$ac_ext
23378 cat >>conftest.$ac_ext <<_ACEOF
23379 /* end confdefs.h. */
23381 /* Override any GCC internal prototype to avoid an error.
23382 Use char because int might match the return type of a GCC
23383 builtin and then its argument prototype would still apply. */
23387 char rl_pre_input_hook ();
23391 return rl_pre_input_hook ();
23396 rm -f conftest.$ac_objext conftest$ac_exeext
23397 if { (ac_try="$ac_link"
23398 case "(($ac_try" in
23399 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23400 *) ac_try_echo
=$ac_try;;
23402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23403 (eval "$ac_link") 2>conftest.er1
23405 grep -v '^ *+' conftest.er1
>conftest.err
23407 cat conftest.err
>&5
23408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23409 (exit $ac_status); } && {
23410 test -z "$ac_c_werror_flag" ||
23411 test ! -s conftest.err
23412 } && test -s conftest
$ac_exeext &&
23413 $as_test_x conftest
$ac_exeext; then
23414 ac_cv_lib_readline_rl_pre_input_hook
=yes
23416 echo "$as_me: failed program was:" >&5
23417 sed 's/^/| /' conftest.
$ac_ext >&5
23419 ac_cv_lib_readline_rl_pre_input_hook
=no
23422 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23423 conftest
$ac_exeext conftest.
$ac_ext
23424 LIBS
=$ac_check_lib_save_LIBS
23426 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
23427 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
23428 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
23430 cat >>confdefs.h
<<\_ACEOF
23431 #define HAVE_RL_PRE_INPUT_HOOK 1
23438 { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5
23439 echo $ECHO_N "checking for rl_completion_display_matches_hook in -lreadline... $ECHO_C" >&6; }
23440 if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
23441 echo $ECHO_N "(cached) $ECHO_C" >&6
23443 ac_check_lib_save_LIBS
=$LIBS
23444 LIBS
="-lreadline $READLINE_LIBS $LIBS"
23445 cat >conftest.
$ac_ext <<_ACEOF
23448 cat confdefs.h
>>conftest.
$ac_ext
23449 cat >>conftest.
$ac_ext <<_ACEOF
23450 /* end confdefs.h. */
23452 /* Override any GCC internal prototype to avoid an error.
23453 Use char because int might match the return type of a GCC
23454 builtin and then its argument prototype would still apply. */
23458 char rl_completion_display_matches_hook ();
23462 return rl_completion_display_matches_hook ();
23467 rm -f conftest.
$ac_objext conftest
$ac_exeext
23468 if { (ac_try
="$ac_link"
23469 case "(($ac_try" in
23470 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23471 *) ac_try_echo=$ac_try;;
23473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23474 (eval "$ac_link") 2>conftest.er1
23476 grep -v '^ *+' conftest.er1 >conftest.err
23478 cat conftest.err >&5
23479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23480 (exit $ac_status); } && {
23481 test -z "$ac_c_werror_flag" ||
23482 test ! -s conftest.err
23483 } && test -s conftest$ac_exeext &&
23484 $as_test_x conftest$ac_exeext; then
23485 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
23487 echo "$as_me: failed program was:" >&5
23488 sed 's/^/| /' conftest.$ac_ext >&5
23490 ac_cv_lib_readline_rl_completion_display_matches_hook=no
23493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23494 conftest$ac_exeext conftest.$ac_ext
23495 LIBS=$ac_check_lib_save_LIBS
23497 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
23498 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
23499 if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then
23501 cat >>confdefs.h <<\_ACEOF
23502 #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
23508 # check for readline 4.2
23509 { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
23510 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; }
23511 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
23512 echo $ECHO_N "(cached) $ECHO_C" >&6
23514 ac_check_lib_save_LIBS=$LIBS
23515 LIBS="-lreadline $READLINE_LIBS $LIBS"
23516 cat >conftest.$ac_ext <<_ACEOF
23519 cat confdefs.h >>conftest.$ac_ext
23520 cat >>conftest.$ac_ext <<_ACEOF
23521 /* end confdefs.h. */
23523 /* Override any GCC internal prototype to avoid an error.
23524 Use char because int might match the return type of a GCC
23525 builtin and then its argument prototype would still apply. */
23529 char rl_completion_matches ();
23533 return rl_completion_matches ();
23538 rm -f conftest.$ac_objext conftest$ac_exeext
23539 if { (ac_try="$ac_link"
23540 case "(($ac_try" in
23541 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23542 *) ac_try_echo
=$ac_try;;
23544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23545 (eval "$ac_link") 2>conftest.er1
23547 grep -v '^ *+' conftest.er1
>conftest.err
23549 cat conftest.err
>&5
23550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23551 (exit $ac_status); } && {
23552 test -z "$ac_c_werror_flag" ||
23553 test ! -s conftest.err
23554 } && test -s conftest
$ac_exeext &&
23555 $as_test_x conftest
$ac_exeext; then
23556 ac_cv_lib_readline_rl_completion_matches
=yes
23558 echo "$as_me: failed program was:" >&5
23559 sed 's/^/| /' conftest.
$ac_ext >&5
23561 ac_cv_lib_readline_rl_completion_matches
=no
23564 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23565 conftest
$ac_exeext conftest.
$ac_ext
23566 LIBS
=$ac_check_lib_save_LIBS
23568 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
23569 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
23570 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
23572 cat >>confdefs.h
<<\_ACEOF
23573 #define HAVE_RL_COMPLETION_MATCHES 1
23579 # also in readline 4.2
23580 cat >conftest.
$ac_ext <<_ACEOF
23583 cat confdefs.h
>>conftest.
$ac_ext
23584 cat >>conftest.
$ac_ext <<_ACEOF
23585 /* end confdefs.h. */
23586 #include <readline/readline.h>
23588 if { (ac_try
="$ac_cpp conftest.$ac_ext"
23589 case "(($ac_try" in
23590 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23591 *) ac_try_echo=$ac_try;;
23593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23596 grep -v '^ *+' conftest.er1 >conftest.err
23598 cat conftest.err >&5
23599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23600 (exit $ac_status); } >/dev/null && {
23601 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23602 test ! -s conftest.err
23606 echo "$as_me: failed program was:" >&5
23607 sed 's/^/| /' conftest.$ac_ext >&5
23612 rm -f conftest.err conftest.$ac_ext
23613 if test $have_readline = yes
23615 cat >conftest.$ac_ext <<_ACEOF
23618 cat confdefs.h >>conftest.$ac_ext
23619 cat >>conftest.$ac_ext <<_ACEOF
23620 /* end confdefs.h. */
23621 #include <readline/readline.h>
23624 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23625 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
23627 cat >>confdefs.h <<\_ACEOF
23628 #define HAVE_RL_CATCH_SIGNAL 1
23636 # End of readline checks: restore LIBS
23637 LIBS=$LIBS_no_readline
23639 { echo "$as_me:$LINENO: checking for broken nice()" >&5
23640 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; }
23641 if test "${ac_cv_broken_nice+set}" = set; then
23642 echo $ECHO_N "(cached) $ECHO_C" >&6
23645 if test "$cross_compiling" = yes; then
23646 ac_cv_broken_nice=no
23648 cat >conftest.$ac_ext <<_ACEOF
23651 cat confdefs.h >>conftest.$ac_ext
23652 cat >>conftest.$ac_ext <<_ACEOF
23653 /* end confdefs.h. */
23657 int val1 = nice(1);
23658 if (val1 != -1 && val1 == nice(2))
23664 rm -f conftest$ac_exeext
23665 if { (ac_try="$ac_link"
23666 case "(($ac_try" in
23667 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23668 *) ac_try_echo
=$ac_try;;
23670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23671 (eval "$ac_link") 2>&5
23673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23674 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23675 { (case "(($ac_try" in
23676 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23677 *) ac_try_echo=$ac_try;;
23679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23680 (eval "$ac_try") 2>&5
23682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23683 (exit $ac_status); }; }; then
23684 ac_cv_broken_nice=yes
23686 echo "$as_me: program exited with status $ac_status" >&5
23687 echo "$as_me: failed program was:" >&5
23688 sed 's/^/| /' conftest.$ac_ext >&5
23690 ( exit $ac_status )
23691 ac_cv_broken_nice=no
23693 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23699 { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
23700 echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
23701 if test "$ac_cv_broken_nice" = yes
23704 cat >>confdefs.h <<\_ACEOF
23705 #define HAVE_BROKEN_NICE 1
23710 { echo "$as_me:$LINENO: checking for broken poll()" >&5
23711 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; }
23712 if test "$cross_compiling" = yes; then
23713 ac_cv_broken_poll=no
23715 cat >conftest.$ac_ext <<_ACEOF
23718 cat confdefs.h >>conftest.$ac_ext
23719 cat >>conftest.$ac_ext <<_ACEOF
23720 /* end confdefs.h. */
23726 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
23730 int poll_test = poll (&poll_struct, 1, 0);
23736 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
23747 rm -f conftest$ac_exeext
23748 if { (ac_try="$ac_link"
23749 case "(($ac_try" in
23750 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23751 *) ac_try_echo
=$ac_try;;
23753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23754 (eval "$ac_link") 2>&5
23756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23757 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23758 { (case "(($ac_try" in
23759 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23760 *) ac_try_echo=$ac_try;;
23762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23763 (eval "$ac_try") 2>&5
23765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23766 (exit $ac_status); }; }; then
23767 ac_cv_broken_poll=yes
23769 echo "$as_me: program exited with status $ac_status" >&5
23770 echo "$as_me: failed program was:" >&5
23771 sed 's/^/| /' conftest.$ac_ext >&5
23773 ( exit $ac_status )
23774 ac_cv_broken_poll=no
23776 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23780 { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
23781 echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
23782 if test "$ac_cv_broken_poll" = yes
23785 cat >>confdefs.h <<\_ACEOF
23786 #define HAVE_BROKEN_POLL 1
23791 # Before we can test tzset, we need to check if struct tm has a tm_zone
23792 # (which is not required by ISO C or UNIX spec) and/or if we support
23794 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
23795 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
23796 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
23797 echo $ECHO_N "(cached) $ECHO_C" >&6
23799 cat >conftest.$ac_ext <<_ACEOF
23802 cat confdefs.h >>conftest.$ac_ext
23803 cat >>conftest.$ac_ext <<_ACEOF
23804 /* end confdefs.h. */
23805 #include <sys/types.h>
23806 #include <$ac_cv_struct_tm>
23812 static struct tm ac_aggr;
23813 if (ac_aggr.tm_zone)
23819 rm -f conftest.$ac_objext
23820 if { (ac_try="$ac_compile"
23821 case "(($ac_try" in
23822 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23823 *) ac_try_echo
=$ac_try;;
23825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23826 (eval "$ac_compile") 2>conftest.er1
23828 grep -v '^ *+' conftest.er1
>conftest.err
23830 cat conftest.err
>&5
23831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23832 (exit $ac_status); } && {
23833 test -z "$ac_c_werror_flag" ||
23834 test ! -s conftest.err
23835 } && test -s conftest.
$ac_objext; then
23836 ac_cv_member_struct_tm_tm_zone
=yes
23838 echo "$as_me: failed program was:" >&5
23839 sed 's/^/| /' conftest.
$ac_ext >&5
23841 cat >conftest.
$ac_ext <<_ACEOF
23844 cat confdefs.h
>>conftest.
$ac_ext
23845 cat >>conftest.
$ac_ext <<_ACEOF
23846 /* end confdefs.h. */
23847 #include <sys/types.h>
23848 #include <$ac_cv_struct_tm>
23854 static struct tm ac_aggr;
23855 if (sizeof ac_aggr.tm_zone)
23861 rm -f conftest.
$ac_objext
23862 if { (ac_try
="$ac_compile"
23863 case "(($ac_try" in
23864 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23865 *) ac_try_echo=$ac_try;;
23867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23868 (eval "$ac_compile") 2>conftest.er1
23870 grep -v '^ *+' conftest.er1 >conftest.err
23872 cat conftest.err >&5
23873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23874 (exit $ac_status); } && {
23875 test -z "$ac_c_werror_flag" ||
23876 test ! -s conftest.err
23877 } && test -s conftest.$ac_objext; then
23878 ac_cv_member_struct_tm_tm_zone=yes
23880 echo "$as_me: failed program was:" >&5
23881 sed 's/^/| /' conftest.$ac_ext >&5
23883 ac_cv_member_struct_tm_tm_zone=no
23886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23891 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
23892 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
23893 if test $ac_cv_member_struct_tm_tm_zone = yes; then
23895 cat >>confdefs.h <<_ACEOF
23896 #define HAVE_STRUCT_TM_TM_ZONE 1
23902 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
23904 cat >>confdefs.h <<\_ACEOF
23905 #define HAVE_TM_ZONE 1
23909 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
23910 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
23911 if test "${ac_cv_have_decl_tzname+set}" = set; then
23912 echo $ECHO_N "(cached) $ECHO_C" >&6
23914 cat >conftest.$ac_ext <<_ACEOF
23917 cat confdefs.h >>conftest.$ac_ext
23918 cat >>conftest.$ac_ext <<_ACEOF
23919 /* end confdefs.h. */
23933 rm -f conftest.$ac_objext
23934 if { (ac_try="$ac_compile"
23935 case "(($ac_try" in
23936 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23937 *) ac_try_echo
=$ac_try;;
23939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23940 (eval "$ac_compile") 2>conftest.er1
23942 grep -v '^ *+' conftest.er1
>conftest.err
23944 cat conftest.err
>&5
23945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23946 (exit $ac_status); } && {
23947 test -z "$ac_c_werror_flag" ||
23948 test ! -s conftest.err
23949 } && test -s conftest.
$ac_objext; then
23950 ac_cv_have_decl_tzname
=yes
23952 echo "$as_me: failed program was:" >&5
23953 sed 's/^/| /' conftest.
$ac_ext >&5
23955 ac_cv_have_decl_tzname
=no
23958 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23960 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
23961 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
23962 if test $ac_cv_have_decl_tzname = yes; then
23964 cat >>confdefs.h
<<_ACEOF
23965 #define HAVE_DECL_TZNAME 1
23970 cat >>confdefs.h
<<_ACEOF
23971 #define HAVE_DECL_TZNAME 0
23978 { echo "$as_me:$LINENO: checking for tzname" >&5
23979 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
23980 if test "${ac_cv_var_tzname+set}" = set; then
23981 echo $ECHO_N "(cached) $ECHO_C" >&6
23983 cat >conftest.
$ac_ext <<_ACEOF
23986 cat confdefs.h
>>conftest.
$ac_ext
23987 cat >>conftest.
$ac_ext <<_ACEOF
23988 /* end confdefs.h. */
23990 #if !HAVE_DECL_TZNAME
23991 extern char *tzname[];
23997 return tzname[0][0];
24002 rm -f conftest.
$ac_objext conftest
$ac_exeext
24003 if { (ac_try
="$ac_link"
24004 case "(($ac_try" in
24005 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24006 *) ac_try_echo=$ac_try;;
24008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24009 (eval "$ac_link") 2>conftest.er1
24011 grep -v '^ *+' conftest.er1 >conftest.err
24013 cat conftest.err >&5
24014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24015 (exit $ac_status); } && {
24016 test -z "$ac_c_werror_flag" ||
24017 test ! -s conftest.err
24018 } && test -s conftest$ac_exeext &&
24019 $as_test_x conftest$ac_exeext; then
24020 ac_cv_var_tzname=yes
24022 echo "$as_me: failed program was:" >&5
24023 sed 's/^/| /' conftest.$ac_ext >&5
24025 ac_cv_var_tzname=no
24028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24029 conftest$ac_exeext conftest.$ac_ext
24031 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
24032 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
24033 if test $ac_cv_var_tzname = yes; then
24035 cat >>confdefs.h <<\_ACEOF
24036 #define HAVE_TZNAME 1
24043 # check tzset(3) exists and works like we expect it to
24044 { echo "$as_me:$LINENO: checking for working tzset()" >&5
24045 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; }
24046 if test "${ac_cv_working_tzset+set}" = set; then
24047 echo $ECHO_N "(cached) $ECHO_C" >&6
24050 if test "$cross_compiling" = yes; then
24051 ac_cv_working_tzset=no
24053 cat >conftest.$ac_ext <<_ACEOF
24056 cat confdefs.h >>conftest.$ac_ext
24057 cat >>conftest.$ac_ext <<_ACEOF
24058 /* end confdefs.h. */
24060 #include <stdlib.h>
24062 #include <string.h>
24065 extern char *tzname[];
24070 /* Note that we need to ensure that not only does tzset(3)
24071 do 'something' with localtime, but it works as documented
24072 in the library reference and as expected by the test suite.
24073 This includes making sure that tzname is set properly if
24074 tm->tm_zone does not exist since it is the alternative way
24075 of getting timezone info.
24077 Red Hat 6.2 doesn't understand the southern hemisphere
24078 after New Year's Day.
24081 time_t groundhogday = 1044144000; /* GMT-based */
24082 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
24084 putenv("TZ=UTC+0");
24086 if (localtime(&groundhogday)->tm_hour != 0)
24089 /* For UTC, tzname[1] is sometimes "", sometimes " " */
24090 if (strcmp(tzname[0], "UTC") ||
24091 (tzname[1][0] != 0 && tzname[1][0] != ' '))
24095 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
24097 if (localtime(&groundhogday)->tm_hour != 19)
24100 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
24104 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
24106 if (localtime(&groundhogday)->tm_hour != 11)
24109 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
24113 #if HAVE_STRUCT_TM_TM_ZONE
24114 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
24116 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
24124 rm -f conftest$ac_exeext
24125 if { (ac_try="$ac_link"
24126 case "(($ac_try" in
24127 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24128 *) ac_try_echo
=$ac_try;;
24130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24131 (eval "$ac_link") 2>&5
24133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24134 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24135 { (case "(($ac_try" in
24136 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24137 *) ac_try_echo=$ac_try;;
24139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24140 (eval "$ac_try") 2>&5
24142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24143 (exit $ac_status); }; }; then
24144 ac_cv_working_tzset=yes
24146 echo "$as_me: program exited with status $ac_status" >&5
24147 echo "$as_me: failed program was:" >&5
24148 sed 's/^/| /' conftest.$ac_ext >&5
24150 ( exit $ac_status )
24151 ac_cv_working_tzset=no
24153 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24159 { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
24160 echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
24161 if test "$ac_cv_working_tzset" = yes
24164 cat >>confdefs.h <<\_ACEOF
24165 #define HAVE_WORKING_TZSET 1
24170 # Look for subsecond timestamps in struct stat
24171 { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
24172 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6; }
24173 if test "${ac_cv_stat_tv_nsec+set}" = set; then
24174 echo $ECHO_N "(cached) $ECHO_C" >&6
24176 cat >conftest.$ac_ext <<_ACEOF
24179 cat confdefs.h >>conftest.$ac_ext
24180 cat >>conftest.$ac_ext <<_ACEOF
24181 /* end confdefs.h. */
24182 #include <sys/stat.h>
24188 st.st_mtim.tv_nsec = 1;
24194 rm -f conftest.$ac_objext
24195 if { (ac_try="$ac_compile"
24196 case "(($ac_try" in
24197 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24198 *) ac_try_echo
=$ac_try;;
24200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24201 (eval "$ac_compile") 2>conftest.er1
24203 grep -v '^ *+' conftest.er1
>conftest.err
24205 cat conftest.err
>&5
24206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24207 (exit $ac_status); } && {
24208 test -z "$ac_c_werror_flag" ||
24209 test ! -s conftest.err
24210 } && test -s conftest.
$ac_objext; then
24211 ac_cv_stat_tv_nsec
=yes
24213 echo "$as_me: failed program was:" >&5
24214 sed 's/^/| /' conftest.
$ac_ext >&5
24216 ac_cv_stat_tv_nsec
=no
24219 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24222 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
24223 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
24224 if test "$ac_cv_stat_tv_nsec" = yes
24227 cat >>confdefs.h
<<\_ACEOF
24228 #define HAVE_STAT_TV_NSEC 1
24233 # Look for BSD style subsecond timestamps in struct stat
24234 { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
24235 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6; }
24236 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
24237 echo $ECHO_N "(cached) $ECHO_C" >&6
24239 cat >conftest.
$ac_ext <<_ACEOF
24242 cat confdefs.h
>>conftest.
$ac_ext
24243 cat >>conftest.
$ac_ext <<_ACEOF
24244 /* end confdefs.h. */
24245 #include <sys/stat.h>
24251 st.st_mtimespec.tv_nsec = 1;
24257 rm -f conftest.
$ac_objext
24258 if { (ac_try
="$ac_compile"
24259 case "(($ac_try" in
24260 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24261 *) ac_try_echo=$ac_try;;
24263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24264 (eval "$ac_compile") 2>conftest.er1
24266 grep -v '^ *+' conftest.er1 >conftest.err
24268 cat conftest.err >&5
24269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24270 (exit $ac_status); } && {
24271 test -z "$ac_c_werror_flag" ||
24272 test ! -s conftest.err
24273 } && test -s conftest.$ac_objext; then
24274 ac_cv_stat_tv_nsec2=yes
24276 echo "$as_me: failed program was:" >&5
24277 sed 's/^/| /' conftest.$ac_ext >&5
24279 ac_cv_stat_tv_nsec2=no
24282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24285 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
24286 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
24287 if test "$ac_cv_stat_tv_nsec2" = yes
24290 cat >>confdefs.h <<\_ACEOF
24291 #define HAVE_STAT_TV_NSEC2 1
24296 # On HP/UX 11.0, mvwdelch is a block with a return statement
24297 { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
24298 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6; }
24299 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
24300 echo $ECHO_N "(cached) $ECHO_C" >&6
24302 cat >conftest.$ac_ext <<_ACEOF
24305 cat confdefs.h >>conftest.$ac_ext
24306 cat >>conftest.$ac_ext <<_ACEOF
24307 /* end confdefs.h. */
24308 #include <curses.h>
24314 rtn = mvwdelch(0,0,0);
24320 rm -f conftest.$ac_objext
24321 if { (ac_try="$ac_compile"
24322 case "(($ac_try" in
24323 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24324 *) ac_try_echo
=$ac_try;;
24326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24327 (eval "$ac_compile") 2>conftest.er1
24329 grep -v '^ *+' conftest.er1
>conftest.err
24331 cat conftest.err
>&5
24332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24333 (exit $ac_status); } && {
24334 test -z "$ac_c_werror_flag" ||
24335 test ! -s conftest.err
24336 } && test -s conftest.
$ac_objext; then
24337 ac_cv_mvwdelch_is_expression
=yes
24339 echo "$as_me: failed program was:" >&5
24340 sed 's/^/| /' conftest.
$ac_ext >&5
24342 ac_cv_mvwdelch_is_expression
=no
24345 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24348 { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
24349 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
24351 if test "$ac_cv_mvwdelch_is_expression" = yes
24354 cat >>confdefs.h
<<\_ACEOF
24355 #define MVWDELCH_IS_EXPRESSION 1
24360 { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
24361 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6; }
24362 if test "${ac_cv_window_has_flags+set}" = set; then
24363 echo $ECHO_N "(cached) $ECHO_C" >&6
24365 cat >conftest.
$ac_ext <<_ACEOF
24368 cat confdefs.h
>>conftest.
$ac_ext
24369 cat >>conftest.
$ac_ext <<_ACEOF
24370 /* end confdefs.h. */
24371 #include <curses.h>
24383 rm -f conftest.
$ac_objext
24384 if { (ac_try
="$ac_compile"
24385 case "(($ac_try" in
24386 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24387 *) ac_try_echo=$ac_try;;
24389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24390 (eval "$ac_compile") 2>conftest.er1
24392 grep -v '^ *+' conftest.er1 >conftest.err
24394 cat conftest.err >&5
24395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24396 (exit $ac_status); } && {
24397 test -z "$ac_c_werror_flag" ||
24398 test ! -s conftest.err
24399 } && test -s conftest.$ac_objext; then
24400 ac_cv_window_has_flags=yes
24402 echo "$as_me: failed program was:" >&5
24403 sed 's/^/| /' conftest.$ac_ext >&5
24405 ac_cv_window_has_flags=no
24408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24411 { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
24412 echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
24415 if test "$ac_cv_window_has_flags" = yes
24418 cat >>confdefs.h <<\_ACEOF
24419 #define WINDOW_HAS_FLAGS 1
24424 { echo "$as_me:$LINENO: checking for is_term_resized" >&5
24425 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; }
24426 cat >conftest.$ac_ext <<_ACEOF
24429 cat confdefs.h >>conftest.$ac_ext
24430 cat >>conftest.$ac_ext <<_ACEOF
24431 /* end confdefs.h. */
24432 #include <curses.h>
24436 void *x=is_term_resized
24441 rm -f conftest.$ac_objext
24442 if { (ac_try="$ac_compile"
24443 case "(($ac_try" in
24444 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24445 *) ac_try_echo
=$ac_try;;
24447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24448 (eval "$ac_compile") 2>conftest.er1
24450 grep -v '^ *+' conftest.er1
>conftest.err
24452 cat conftest.err
>&5
24453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24454 (exit $ac_status); } && {
24455 test -z "$ac_c_werror_flag" ||
24456 test ! -s conftest.err
24457 } && test -s conftest.
$ac_objext; then
24459 cat >>confdefs.h
<<\_ACEOF
24460 #define HAVE_CURSES_IS_TERM_RESIZED 1
24463 { echo "$as_me:$LINENO: result: yes" >&5
24464 echo "${ECHO_T}yes" >&6; }
24466 echo "$as_me: failed program was:" >&5
24467 sed 's/^/| /' conftest.
$ac_ext >&5
24469 { echo "$as_me:$LINENO: result: no" >&5
24470 echo "${ECHO_T}no" >&6; }
24474 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24476 { echo "$as_me:$LINENO: checking for resize_term" >&5
24477 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; }
24478 cat >conftest.
$ac_ext <<_ACEOF
24481 cat confdefs.h
>>conftest.
$ac_ext
24482 cat >>conftest.
$ac_ext <<_ACEOF
24483 /* end confdefs.h. */
24484 #include <curses.h>
24488 void *x=resize_term
24493 rm -f conftest.
$ac_objext
24494 if { (ac_try
="$ac_compile"
24495 case "(($ac_try" in
24496 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24497 *) ac_try_echo=$ac_try;;
24499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24500 (eval "$ac_compile") 2>conftest.er1
24502 grep -v '^ *+' conftest.er1 >conftest.err
24504 cat conftest.err >&5
24505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24506 (exit $ac_status); } && {
24507 test -z "$ac_c_werror_flag" ||
24508 test ! -s conftest.err
24509 } && test -s conftest.$ac_objext; then
24511 cat >>confdefs.h <<\_ACEOF
24512 #define HAVE_CURSES_RESIZE_TERM 1
24515 { echo "$as_me:$LINENO: result: yes" >&5
24516 echo "${ECHO_T}yes" >&6; }
24518 echo "$as_me: failed program was:" >&5
24519 sed 's/^/| /' conftest.$ac_ext >&5
24521 { echo "$as_me:$LINENO: result: no" >&5
24522 echo "${ECHO_T}no" >&6; }
24526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24528 { echo "$as_me:$LINENO: checking for resizeterm" >&5
24529 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; }
24530 cat >conftest.$ac_ext <<_ACEOF
24533 cat confdefs.h >>conftest.$ac_ext
24534 cat >>conftest.$ac_ext <<_ACEOF
24535 /* end confdefs.h. */
24536 #include <curses.h>
24545 rm -f conftest.$ac_objext
24546 if { (ac_try="$ac_compile"
24547 case "(($ac_try" in
24548 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24549 *) ac_try_echo
=$ac_try;;
24551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24552 (eval "$ac_compile") 2>conftest.er1
24554 grep -v '^ *+' conftest.er1
>conftest.err
24556 cat conftest.err
>&5
24557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24558 (exit $ac_status); } && {
24559 test -z "$ac_c_werror_flag" ||
24560 test ! -s conftest.err
24561 } && test -s conftest.
$ac_objext; then
24563 cat >>confdefs.h
<<\_ACEOF
24564 #define HAVE_CURSES_RESIZETERM 1
24567 { echo "$as_me:$LINENO: result: yes" >&5
24568 echo "${ECHO_T}yes" >&6; }
24570 echo "$as_me: failed program was:" >&5
24571 sed 's/^/| /' conftest.
$ac_ext >&5
24573 { echo "$as_me:$LINENO: result: no" >&5
24574 echo "${ECHO_T}no" >&6; }
24578 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24580 { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
24581 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; }
24583 if test -r /dev
/ptmx
24585 { echo "$as_me:$LINENO: result: yes" >&5
24586 echo "${ECHO_T}yes" >&6; }
24588 cat >>confdefs.h
<<\_ACEOF
24589 #define HAVE_DEV_PTMX 1
24593 { echo "$as_me:$LINENO: result: no" >&5
24594 echo "${ECHO_T}no" >&6; }
24597 { echo "$as_me:$LINENO: checking for /dev/ptc" >&5
24598 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
24600 if test -r /dev
/ptc
24602 { echo "$as_me:$LINENO: result: yes" >&5
24603 echo "${ECHO_T}yes" >&6; }
24605 cat >>confdefs.h
<<\_ACEOF
24606 #define HAVE_DEV_PTC 1
24610 { echo "$as_me:$LINENO: result: no" >&5
24611 echo "${ECHO_T}no" >&6; }
24614 { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
24615 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; }
24616 if test "$cross_compiling" = yes; then
24617 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24618 See \`config.log' for more details." >&5
24619 echo "$as_me: error: cannot run test program while cross compiling
24620 See \`config.log' for more details." >&2;}
24621 { (exit 1); exit 1; }; }
24623 cat >conftest.
$ac_ext <<_ACEOF
24626 cat confdefs.h
>>conftest.
$ac_ext
24627 cat >>conftest.
$ac_ext <<_ACEOF
24628 /* end confdefs.h. */
24630 #include <stddef.h>
24631 #include <string.h>
24633 #ifdef HAVE_SYS_TYPES_H
24634 #include <sys/types.h>
24637 #ifdef HAVE_SSIZE_T
24638 typedef ssize_t Py_ssize_t;
24639 #elif SIZEOF_VOID_P == SIZEOF_LONG
24640 typedef long Py_ssize_t;
24642 typedef int Py_ssize_t;
24649 if(sprintf(buffer, "%zd", (size_t)123) < 0)
24652 if (strcmp(buffer, "123"))
24655 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
24658 if (strcmp(buffer, "-123"))
24664 rm -f conftest
$ac_exeext
24665 if { (ac_try
="$ac_link"
24666 case "(($ac_try" in
24667 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24668 *) ac_try_echo=$ac_try;;
24670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24671 (eval "$ac_link") 2>&5
24673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24674 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24675 { (case "(($ac_try" in
24676 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24677 *) ac_try_echo
=$ac_try;;
24679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24680 (eval "$ac_try") 2>&5
24682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24683 (exit $ac_status); }; }; then
24684 { echo "$as_me:$LINENO: result: yes" >&5
24685 echo "${ECHO_T}yes" >&6; }
24687 cat >>confdefs.h
<<\_ACEOF
24688 #define PY_FORMAT_SIZE_T "z"
24692 echo "$as_me: program exited with status $ac_status" >&5
24693 echo "$as_me: failed program was:" >&5
24694 sed 's/^/| /' conftest.
$ac_ext >&5
24696 ( exit $ac_status )
24697 { echo "$as_me:$LINENO: result: no" >&5
24698 echo "${ECHO_T}no" >&6; }
24700 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
24705 { echo "$as_me:$LINENO: checking for socklen_t" >&5
24706 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
24707 if test "${ac_cv_type_socklen_t+set}" = set; then
24708 echo $ECHO_N "(cached) $ECHO_C" >&6
24710 cat >conftest.
$ac_ext <<_ACEOF
24713 cat confdefs.h
>>conftest.
$ac_ext
24714 cat >>conftest.
$ac_ext <<_ACEOF
24715 /* end confdefs.h. */
24717 #ifdef HAVE_SYS_TYPES_H
24718 #include <sys/types.h>
24720 #ifdef HAVE_SYS_SOCKET_H
24721 #include <sys/socket.h>
24725 typedef socklen_t ac__type_new_;
24729 if ((ac__type_new_ *) 0)
24731 if (sizeof (ac__type_new_))
24737 rm -f conftest.
$ac_objext
24738 if { (ac_try
="$ac_compile"
24739 case "(($ac_try" in
24740 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24741 *) ac_try_echo=$ac_try;;
24743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24744 (eval "$ac_compile") 2>conftest.er1
24746 grep -v '^ *+' conftest.er1 >conftest.err
24748 cat conftest.err >&5
24749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24750 (exit $ac_status); } && {
24751 test -z "$ac_c_werror_flag" ||
24752 test ! -s conftest.err
24753 } && test -s conftest.$ac_objext; then
24754 ac_cv_type_socklen_t=yes
24756 echo "$as_me: failed program was:" >&5
24757 sed 's/^/| /' conftest.$ac_ext >&5
24759 ac_cv_type_socklen_t=no
24762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24764 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
24765 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
24766 if test $ac_cv_type_socklen_t = yes; then
24770 cat >>confdefs.h <<\_ACEOF
24771 #define socklen_t int
24779 for h in `(cd $srcdir;echo Python
/thread_
*.h
)`
24781 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
24785 SRCDIRS="Parser Grammar Objects Python Modules Mac"
24786 { echo "$as_me:$LINENO: checking for build directories" >&5
24787 echo $ECHO_N "checking for build directories... $ECHO_C" >&6; }
24788 for dir in $SRCDIRS; do
24789 if test ! -d $dir; then
24793 { echo "$as_me:$LINENO: result: done" >&5
24794 echo "${ECHO_T}done" >&6; }
24796 # generate output files
24797 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config"
24799 cat >confcache <<\_ACEOF
24800 # This file is a shell script that caches the results of configure
24801 # tests run on this system so they can be shared between configure
24802 # scripts and configure runs, see configure's option --config-cache.
24803 # It is not useful on other systems. If it contains results you don't
24804 # want to keep, you may remove or edit it.
24806 # config.status only pays attention to the cache file if you give it
24807 # the --recheck option to rerun configure.
24809 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
24810 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24811 # following values.
24815 # The following way of writing the cache mishandles newlines in values,
24816 # but we know of no workaround that is simple, portable, and efficient.
24817 # So, we kill variables containing newlines.
24818 # Ultrix sh set writes to stderr and can't be redirected directly,
24819 # and sets the high bit in the cache file unless we assign to the vars.
24821 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24822 eval ac_val
=\$
$ac_var
24826 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24827 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24830 _ | IFS | as_nl
) ;; #(
24831 *) $as_unset $ac_var ;;
24837 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24838 *${as_nl}ac_space
=\
*)
24839 # `set' does not quote correctly, so add quotes (double-quote
24840 # substitution turns \\\\ into \\, and sed turns \\ into \).
24843 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24846 # `set' quotes correctly as required by POSIX, so do not add quotes.
24847 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24856 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24858 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24860 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
24861 if test -w "$cache_file"; then
24862 test "x$cache_file" != "x/dev/null" &&
24863 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24864 echo "$as_me: updating cache $cache_file" >&6;}
24865 cat confcache
>$cache_file
24867 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24868 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24873 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
24874 # Let make expand exec_prefix.
24875 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
24877 DEFS
=-DHAVE_CONFIG_H
24881 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
24882 # 1. Remove the extension, and $U if already installed.
24883 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
24884 ac_i
=`echo "$ac_i" | sed "$ac_script"`
24885 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24886 # will be set to the directory where LIBOBJS objects are built.
24887 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24888 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24890 LIBOBJS
=$ac_libobjs
24892 LTLIBOBJS
=$ac_ltlibobjs
24896 : ${CONFIG_STATUS=./config.status}
24897 ac_clean_files_save
=$ac_clean_files
24898 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
24899 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24900 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24901 cat >$CONFIG_STATUS <<_ACEOF
24903 # Generated by $as_me.
24904 # Run this file to recreate the current configuration.
24905 # Compiler output produced by configure, useful for debugging
24906 # configure, is in config.log if it exists.
24909 ac_cs_recheck=false
24911 SHELL=\${CONFIG_SHELL-$SHELL}
24914 cat >>$CONFIG_STATUS <<\_ACEOF
24915 ## --------------------- ##
24916 ## M4sh Initialization. ##
24917 ## --------------------- ##
24919 # Be more Bourne compatible
24920 DUALCASE
=1; export DUALCASE
# for MKS sh
24921 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
24924 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24925 # is contrary to our usage. Disable this feature.
24926 alias -g '${1+"$@"}'='"$@"'
24927 setopt NO_GLOB_SUBST
24929 case `(set -o) 2>/dev/null` in
24930 *posix
*) set -o posix
;;
24939 # Avoid depending upon Character Ranges.
24940 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
24941 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24942 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
24943 as_cr_digits
='0123456789'
24944 as_cr_alnum
=$as_cr_Letters$as_cr_digits
24946 # The user is always right.
24947 if test "${PATH_SEPARATOR+set}" != set; then
24948 echo "#! /bin/sh" >conf$$.sh
24949 echo "exit 0" >>conf$$.sh
24951 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
24959 # Support unset when possible.
24960 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
24968 # We need space, tab and new line, in precisely that order. Quoting is
24969 # there to prevent editors from complaining about space-tab.
24970 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24971 # splitting by setting IFS to empty value.)
24976 # Find who we are. Look in the path if we contain no directory separator.
24978 *[\\/]* ) as_myself
=$0 ;;
24979 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24980 for as_dir
in $PATH
24983 test -z "$as_dir" && as_dir
=.
24984 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
24990 # We did not find ourselves, most probably we were run as `sh COMMAND'
24991 # in which case we are not to be found in the path.
24992 if test "x$as_myself" = x
; then
24995 if test ! -f "$as_myself"; then
24996 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24997 { (exit 1); exit 1; }
25000 # Work around bugs in pre-3.0 UWIN ksh.
25001 for as_var
in ENV MAIL MAILPATH
25002 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
25010 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25011 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25012 LC_TELEPHONE LC_TIME
25014 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25015 eval $as_var=C
; export $as_var
25017 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
25021 # Required to use basename.
25022 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
25023 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
25029 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25030 as_basename
=basename
25036 # Name of the executable.
25037 as_me
=`$as_basename -- "$0" ||
25038 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25039 X"$0" : 'X\(//\)$' \| \
25040 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25042 sed '/^.*\/\([^/][^/]*\)\/*$/{
25061 as_lineno_1
=$LINENO
25062 as_lineno_2
=$LINENO
25063 test "x$as_lineno_1" != "x$as_lineno_2" &&
25064 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
25066 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25067 # uniformly replaced by the line number. The first 'sed' inserts a
25068 # line-number line after each line using $LINENO; the second 'sed'
25069 # does the real work. The second script uses 'N' to pair each
25070 # line-number line with the line containing $LINENO, and appends
25071 # trailing '-' during substitution so that $LINENO is not a special
25072 # case at line end.
25073 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25074 # scripts with optimization help from Paolo Bonzini. Blame Lee
25075 # E. McMahon (1931-1989) for sed's syntax. :-)
25087 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25090 ' >$as_me.lineno
&&
25091 chmod +x
"$as_me.lineno" ||
25092 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25093 { (exit 1); exit 1; }; }
25095 # Don't try to exec as it changes $[0], causing all sort of problems
25096 # (the dirname of $[0] is not the place where we might find the
25097 # original and so on. Autoconf is especially sensitive to this).
25098 .
"./$as_me.lineno"
25099 # Exit status is that of the last command.
25104 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
25110 ECHO_C
= ECHO_N
= ECHO_T
=
25111 case `echo -n x` in
25113 case `echo 'x\c'` in
25114 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
25121 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
25122 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
25128 rm -f conf$$ conf$$.exe conf$$.
file
25129 if test -d conf$$.dir
; then
25130 rm -f conf$$.dir
/conf$$.
file
25136 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
25138 # ... but there are two gotchas:
25139 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25140 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25141 # In both cases, we have to default to `cp -p'.
25142 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
25144 elif ln conf$$.
file conf$$
2>/dev
/null
; then
25149 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
25150 rmdir conf$$.dir
2>/dev
/null
25152 if mkdir
-p .
2>/dev
/null
; then
25155 test -d .
/-p && rmdir .
/-p
25159 if test -x / >/dev
/null
2>&1; then
25160 as_test_x
='test -x'
25162 if ls -dL / >/dev
/null
2>&1; then
25169 if test -d "$1"; then
25175 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25176 ???[sx]*):;;*)false;;esac;fi
25180 as_executable_p
=$as_test_x
25182 # Sed expression to map a string onto a valid CPP name.
25183 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25185 # Sed expression to map a string onto a valid variable name.
25186 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25191 # Save the log message, to keep $[0] and so on meaningful, and to
25192 # report actual input values of CONFIG_FILES etc. instead of their
25193 # values after options handling.
25195 This file was extended by python $as_me 2.7, which was
25196 generated by GNU Autoconf 2.61. Invocation command line was
25198 CONFIG_FILES = $CONFIG_FILES
25199 CONFIG_HEADERS = $CONFIG_HEADERS
25200 CONFIG_LINKS = $CONFIG_LINKS
25201 CONFIG_COMMANDS = $CONFIG_COMMANDS
25204 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25209 cat >>$CONFIG_STATUS <<_ACEOF
25210 # Files that config.status was made for.
25211 config_files="$ac_config_files"
25212 config_headers="$ac_config_headers"
25216 cat >>$CONFIG_STATUS <<\_ACEOF
25218 \`$as_me' instantiates files from templates according to the
25219 current configuration.
25221 Usage: $0 [OPTIONS] [FILE]...
25223 -h, --help print this help, then exit
25224 -V, --version print version number and configuration settings, then exit
25225 -q, --quiet do not print progress messages
25226 -d, --debug don't remove temporary files
25227 --recheck update $as_me by reconfiguring in the same conditions
25228 --file=FILE[:TEMPLATE]
25229 instantiate the configuration file FILE
25230 --header=FILE[:TEMPLATE]
25231 instantiate the configuration header FILE
25233 Configuration files:
25236 Configuration headers:
25239 Report bugs to <bug-autoconf@gnu.org>."
25242 cat >>$CONFIG_STATUS <<_ACEOF
25244 python config.status 2.7
25245 configured by $0, generated by GNU Autoconf 2.61,
25246 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25248 Copyright (C) 2006 Free Software Foundation, Inc.
25249 This config.status script is free software; the Free Software Foundation
25250 gives unlimited permission to copy, distribute and modify it."
25257 cat >>$CONFIG_STATUS <<\_ACEOF
25258 # If no file are specified by the user, then we need to provide default
25259 # value. By we need to know if files were specified by the user.
25265 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
25266 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
25277 # Handling of the options.
25278 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
25280 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
25281 echo "$ac_cs_version"; exit ;;
25282 --debug |
--debu |
--deb |
--de |
--d |
-d )
25284 --file |
--fil |
--fi |
--f )
25286 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
25287 ac_need_defaults
=false
;;
25288 --header |
--heade |
--head |
--hea )
25290 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
25291 ac_need_defaults
=false
;;
25293 # Conflict between --help and --header
25294 { echo "$as_me: error: ambiguous option: $1
25295 Try \`$0 --help' for more information." >&2
25296 { (exit 1); exit 1; }; };;
25297 --help |
--hel |
-h )
25298 echo "$ac_cs_usage"; exit ;;
25299 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
25300 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
25303 # This is an error.
25304 -*) { echo "$as_me: error: unrecognized option: $1
25305 Try \`$0 --help' for more information." >&2
25306 { (exit 1); exit 1; }; } ;;
25308 *) ac_config_targets
="$ac_config_targets $1"
25309 ac_need_defaults
=false
;;
25315 ac_configure_extra_args
=
25317 if $ac_cs_silent; then
25319 ac_configure_extra_args
="$ac_configure_extra_args --silent"
25323 cat >>$CONFIG_STATUS <<_ACEOF
25324 if \$ac_cs_recheck; then
25325 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25326 CONFIG_SHELL=$SHELL
25327 export CONFIG_SHELL
25328 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25332 cat >>$CONFIG_STATUS <<\_ACEOF
25336 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25337 ## Running $as_me. ##
25343 cat >>$CONFIG_STATUS <<_ACEOF
25346 cat >>$CONFIG_STATUS <<\_ACEOF
25348 # Handling of arguments.
25349 for ac_config_target
in $ac_config_targets
25351 case $ac_config_target in
25352 "pyconfig.h") CONFIG_HEADERS
="$CONFIG_HEADERS pyconfig.h" ;;
25353 "Mac/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/Makefile" ;;
25354 "Mac/PythonLauncher/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
25355 "Mac/IDLE/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/IDLE/Makefile" ;;
25356 "Mac/Resources/framework/Info.plist") CONFIG_FILES
="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
25357 "Mac/Resources/app/Info.plist") CONFIG_FILES
="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
25358 "Makefile.pre") CONFIG_FILES
="$CONFIG_FILES Makefile.pre" ;;
25359 "Modules/Setup.config") CONFIG_FILES
="$CONFIG_FILES Modules/Setup.config" ;;
25361 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25362 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25363 { (exit 1); exit 1; }; };;
25368 # If the user did not use the arguments to specify the items to instantiate,
25369 # then the envvar interface is used. Set only those that are not.
25370 # We use the long form for the default assignment because of an extremely
25371 # bizarre bug on SunOS 4.1.3.
25372 if $ac_need_defaults; then
25373 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
25374 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
25377 # Have a temporary directory for convenience. Make it in the build tree
25378 # simply because there is no reason against having it here, and in addition,
25379 # creating and moving files from /tmp can sometimes cause problems.
25380 # Hook for its removal unless debugging.
25381 # Note that there is a small window in which the directory will not be cleaned:
25382 # after its creation but before its name has been assigned to `$tmp'.
25386 trap 'exit_status=$?
25387 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25389 trap '{ (exit 1); exit 1; }' 1 2 13 15
25391 # Create a (secure) tmp directory for tmp files.
25394 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25395 test -n "$tmp" && test -d "$tmp"
25398 tmp
=.
/conf$$
-$RANDOM
25399 (umask 077 && mkdir
"$tmp")
25402 echo "$me: cannot create a temporary directory in ." >&2
25403 { (exit 1); exit 1; }
25407 # Set up the sed scripts for CONFIG_FILES section.
25410 # No need to generate the scripts if there are no CONFIG_FILES.
25411 # This happens for instance when ./config.status config.h
25412 if test -n "$CONFIG_FILES"; then
25419 for ac_last_try
in false false false false false
:; do
25420 cat >conf$
$subs.
sed <<_ACEOF
25421 SHELL!$SHELL$ac_delim
25422 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25423 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25424 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25425 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25426 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25427 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25428 exec_prefix!$exec_prefix$ac_delim
25429 prefix!$prefix$ac_delim
25430 program_transform_name!$program_transform_name$ac_delim
25431 bindir!$bindir$ac_delim
25432 sbindir!$sbindir$ac_delim
25433 libexecdir!$libexecdir$ac_delim
25434 datarootdir!$datarootdir$ac_delim
25435 datadir!$datadir$ac_delim
25436 sysconfdir!$sysconfdir$ac_delim
25437 sharedstatedir!$sharedstatedir$ac_delim
25438 localstatedir!$localstatedir$ac_delim
25439 includedir!$includedir$ac_delim
25440 oldincludedir!$oldincludedir$ac_delim
25441 docdir!$docdir$ac_delim
25442 infodir!$infodir$ac_delim
25443 htmldir!$htmldir$ac_delim
25444 dvidir!$dvidir$ac_delim
25445 pdfdir!$pdfdir$ac_delim
25446 psdir!$psdir$ac_delim
25447 libdir!$libdir$ac_delim
25448 localedir!$localedir$ac_delim
25449 mandir!$mandir$ac_delim
25450 DEFS!$DEFS$ac_delim
25451 ECHO_C!$ECHO_C$ac_delim
25452 ECHO_N!$ECHO_N$ac_delim
25453 ECHO_T!$ECHO_T$ac_delim
25454 LIBS!$LIBS$ac_delim
25455 build_alias!$build_alias$ac_delim
25456 host_alias!$host_alias$ac_delim
25457 target_alias!$target_alias$ac_delim
25458 VERSION!$VERSION$ac_delim
25459 SOVERSION!$SOVERSION$ac_delim
25460 CONFIG_ARGS!$CONFIG_ARGS$ac_delim
25461 UNIVERSALSDK!$UNIVERSALSDK$ac_delim
25462 ARCH_RUN_32BIT!$ARCH_RUN_32BIT$ac_delim
25463 PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
25464 PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim
25465 PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
25466 PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
25467 PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
25468 FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
25469 FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
25470 FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
25471 FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
25472 FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
25473 MACHDEP!$MACHDEP$ac_delim
25474 SGI_ABI!$SGI_ABI$ac_delim
25475 EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim
25476 EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim
25477 CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
25478 EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
25480 CFLAGS!$CFLAGS$ac_delim
25481 LDFLAGS!$LDFLAGS$ac_delim
25482 CPPFLAGS!$CPPFLAGS$ac_delim
25483 ac_ct_CC!$ac_ct_CC$ac_delim
25484 EXEEXT!$EXEEXT$ac_delim
25485 OBJEXT!$OBJEXT$ac_delim
25487 MAINCC!$MAINCC$ac_delim
25489 GREP!$GREP$ac_delim
25490 EGREP!$EGREP$ac_delim
25491 BUILDEXEEXT!$BUILDEXEEXT$ac_delim
25492 LIBRARY!$LIBRARY$ac_delim
25493 LDLIBRARY!$LDLIBRARY$ac_delim
25494 DLLLIBRARY!$DLLLIBRARY$ac_delim
25495 BLDLIBRARY!$BLDLIBRARY$ac_delim
25496 LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
25497 INSTSONAME!$INSTSONAME$ac_delim
25498 RUNSHARED!$RUNSHARED$ac_delim
25499 LINKCC!$LINKCC$ac_delim
25500 RANLIB!$RANLIB$ac_delim
25502 SVNVERSION!$SVNVERSION$ac_delim
25503 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25504 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25505 INSTALL_DATA!$INSTALL_DATA$ac_delim
25508 BASECFLAGS!$BASECFLAGS$ac_delim
25509 UNIVERSAL_ARCH_FLAGS!$UNIVERSAL_ARCH_FLAGS$ac_delim
25510 OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
25511 LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
25513 LDSHARED!$LDSHARED$ac_delim
25514 BLDSHARED!$BLDSHARED$ac_delim
25515 CCSHARED!$CCSHARED$ac_delim
25516 LINKFORSHARED!$LINKFORSHARED$ac_delim
25517 CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
25520 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25522 elif $ac_last_try; then
25523 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25524 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25525 { (exit 1); exit 1; }; }
25527 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
25531 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25532 if test -n "$ac_eof"; then
25533 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
25534 ac_eof
=`expr $ac_eof + 1`
25537 cat >>$CONFIG_STATUS <<_ACEOF
25538 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25539 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25542 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25543 s/^/s,@/; s/!/@,|#_!!_#|/
25546 s/'"$ac_delim"'$/,g/; t
25548 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25549 ' >>$CONFIG_STATUS <conf$
$subs.
sed
25550 rm -f conf$
$subs.
sed
25551 cat >>$CONFIG_STATUS <<_ACEOF
25557 for ac_last_try
in false false false false false
:; do
25558 cat >conf$
$subs.
sed <<_ACEOF
25559 SHLIBS!$SHLIBS$ac_delim
25560 USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
25561 SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
25562 USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
25563 LDLAST!$LDLAST$ac_delim
25564 THREADOBJ!$THREADOBJ$ac_delim
25565 DLINCLDIR!$DLINCLDIR$ac_delim
25566 DYNLOADFILE!$DYNLOADFILE$ac_delim
25567 MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
25568 TRUE!$TRUE$ac_delim
25569 LIBOBJS!$LIBOBJS$ac_delim
25570 HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
25571 HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
25572 HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
25573 HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
25574 HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
25575 LIBM!$LIBM$ac_delim
25576 LIBC!$LIBC$ac_delim
25577 UNICODE_OBJS!$UNICODE_OBJS$ac_delim
25578 THREADHEADERS!$THREADHEADERS$ac_delim
25579 SRCDIRS!$SRCDIRS$ac_delim
25580 LTLIBOBJS!$LTLIBOBJS$ac_delim
25583 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
25585 elif $ac_last_try; then
25586 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25587 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25588 { (exit 1); exit 1; }; }
25590 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
25594 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25595 if test -n "$ac_eof"; then
25596 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
25597 ac_eof
=`expr $ac_eof + 1`
25600 cat >>$CONFIG_STATUS <<_ACEOF
25601 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25602 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25605 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25606 s/^/s,@/; s/!/@,|#_!!_#|/
25609 s/'"$ac_delim"'$/,g/; t
25611 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25612 ' >>$CONFIG_STATUS <conf$
$subs.
sed
25613 rm -f conf$
$subs.
sed
25614 cat >>$CONFIG_STATUS <<_ACEOF
25621 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25622 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25623 # trailing colons and then remove the whole line if VPATH becomes empty
25624 # (actually we leave an empty line to preserve line numbers).
25625 if test "x$srcdir" = x.
; then
25626 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
25627 s/:*\$(srcdir):*/:/
25628 s/:*\${srcdir}:*/:/
25630 s/^\([^=]*=[ ]*\):*/\1/
25636 cat >>$CONFIG_STATUS <<\_ACEOF
25637 fi # test -n "$CONFIG_FILES"
25640 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
25643 :[FHLC
]) ac_mode
=$ac_tag; continue;;
25645 case $ac_mode$ac_tag in
25647 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25648 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25649 { (exit 1); exit 1; }; };;
25650 :[FH
]-) ac_tag
=-:-;;
25651 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
25668 -) ac_f
="$tmp/stdin";;
25669 *) # Look for the file first in the build tree, then in the source tree
25670 # (if the path is not absolute). The absolute path cannot be DOS-style,
25671 # because $ac_f cannot contain `:'.
25675 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
25677 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25678 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25679 { (exit 1); exit 1; }; };;
25681 ac_file_inputs
="$ac_file_inputs $ac_f"
25684 # Let's still pretend it is `configure' which instantiates (i.e., don't
25685 # use $as_me), people would be surprised to read:
25686 # /* config.h. Generated by config.status. */
25687 configure_input
="Generated from "`IFS=:
25688 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25689 if test x
"$ac_file" != x-
; then
25690 configure_input
="$ac_file. $configure_input"
25691 { echo "$as_me:$LINENO: creating $ac_file" >&5
25692 echo "$as_me: creating $ac_file" >&6;}
25696 *:-:* |
*:-) cat >"$tmp/stdin";;
25701 ac_dir
=`$as_dirname -- "$ac_file" ||
25702 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25703 X"$ac_file" : 'X\(//\)[^/]' \| \
25704 X"$ac_file" : 'X\(//\)$' \| \
25705 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25707 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25711 /^X\(\/\/\)[^/].*/{
25726 -*) as_dir
=.
/$as_dir;;
25728 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
25732 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25733 *) as_qdir
=$as_dir;;
25735 as_dirs
="'$as_qdir' $as_dirs"
25736 as_dir
=`$as_dirname -- "$as_dir" ||
25737 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25738 X"$as_dir" : 'X\(//\)[^/]' \| \
25739 X"$as_dir" : 'X\(//\)$' \| \
25740 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25742 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25746 /^X\(\/\/\)[^/].*/{
25759 test -d "$as_dir" && break
25761 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
25762 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25763 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25764 { (exit 1); exit 1; }; }; }
25768 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25770 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25771 # A ".." for each directory in $ac_dir_suffix.
25772 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25773 case $ac_top_builddir_sub in
25774 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25775 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
25778 ac_abs_top_builddir
=$ac_pwd
25779 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
25780 # for backward compatibility:
25781 ac_top_builddir
=$ac_top_build_prefix
25784 .
) # We are building in place.
25786 ac_top_srcdir
=$ac_top_builddir_sub
25787 ac_abs_top_srcdir
=$ac_pwd ;;
25788 [\\/]* | ?
:[\\/]* ) # Absolute name.
25789 ac_srcdir
=$srcdir$ac_dir_suffix;
25790 ac_top_srcdir
=$srcdir
25791 ac_abs_top_srcdir
=$srcdir ;;
25792 *) # Relative name.
25793 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
25794 ac_top_srcdir
=$ac_top_build_prefix$srcdir
25795 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
25797 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
25807 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
25808 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
25812 cat >>$CONFIG_STATUS <<\_ACEOF
25813 # If the template does not know about datarootdir, expand it.
25814 # FIXME: This hack should be removed a few years after 2.60.
25815 ac_datarootdir_hack
=; ac_datarootdir_seen
=
25817 case `sed -n '/datarootdir/ {
25826 ' $ac_file_inputs` in
25827 *datarootdir
*) ac_datarootdir_seen
=yes;;
25828 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
25829 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25830 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25832 cat >>$CONFIG_STATUS <<_ACEOF
25833 ac_datarootdir_hack='
25834 s&@datadir@&$datadir&g
25835 s&@docdir@&$docdir&g
25836 s&@infodir@&$infodir&g
25837 s&@localedir@&$localedir&g
25838 s&@mandir@&$mandir&g
25839 s&\\\${datarootdir}&$datarootdir&g' ;;
25843 # Neutralize VPATH when `$srcdir' = `.'.
25844 # Shell code in configure.ac might set extrasub.
25845 # FIXME: do we really want to maintain this feature?
25846 cat >>$CONFIG_STATUS <<_ACEOF
25850 cat >>$CONFIG_STATUS <<\_ACEOF
25852 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
25853 s
&@configure_input@
&$configure_input&;t t
25854 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
25855 s
&@srcdir@
&$ac_srcdir&;t t
25856 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
25857 s
&@top_srcdir@
&$ac_top_srcdir&;t t
25858 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
25859 s
&@builddir@
&$ac_builddir&;t t
25860 s
&@abs_builddir@
&$ac_abs_builddir&;t t
25861 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
25862 s
&@INSTALL@
&$ac_INSTALL&;t t
25863 $ac_datarootdir_hack
25864 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
25866 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25867 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
25868 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
25869 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
25870 which seems to be undefined. Please make sure it is defined." >&5
25871 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
25872 which seems to be undefined. Please make sure it is defined." >&2;}
25876 -) cat "$tmp/out"; rm -f "$tmp/out";;
25877 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25886 # Transform confdefs.h into a sed script `conftest.defines', that
25887 # substitutes the proper values into config.h.in to produce config.h.
25888 rm -f conftest.defines conftest.
tail
25889 # First, append a space to every undef/define line, to ease matching.
25890 echo 's/$/ /' >conftest.defines
25891 # Then, protect against being on the right side of a sed subst, or in
25892 # an unquoted here document, in config.status. If some macros were
25893 # called several times there might be several #defines for the same
25894 # symbol, which is useless. But do not sort them, since the last
25895 # AC_DEFINE must be honored.
25896 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
25897 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25898 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25899 # PARAMS is the parameter list in the macro definition--in most cases, it's
25900 # just an empty string.
25901 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25902 ac_dB
='\\)[ (].*,\\1define\\2'
25910 s/^[ ]*#[ ]*define[ ][ ]*//
25915 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25916 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25917 ' >>conftest.defines
25919 # Remove the space that was appended to ease matching.
25920 # Then replace #undef with comments. This is necessary, for
25921 # example, in the case of _POSIX_SOURCE, which is predefined and required
25922 # on some systems where configure will not decide to define it.
25923 # (The regexp can be short, since the line contains either #define or #undef.)
25925 s,^[ #]*u.*,/* & */,' >>conftest.defines
25927 # Break up conftest.defines:
25928 ac_max_sed_lines
=50
25930 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25931 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25932 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25934 ac_in
='$ac_file_inputs'
25935 ac_out
='"$tmp/out1"'
25936 ac_nxt
='"$tmp/out2"'
25940 # Write a here document:
25941 cat >>$CONFIG_STATUS <<_ACEOF
25942 # First, check the format of the line:
25943 cat >"\$tmp/defines.sed" <<\\CEOF
25944 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25945 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25949 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
25951 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25952 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
25953 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
25954 grep . conftest.
tail >/dev
/null ||
break
25955 rm -f conftest.defines
25956 mv conftest.
tail conftest.defines
25958 rm -f conftest.defines conftest.
tail
25960 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25961 cat >>$CONFIG_STATUS <<\_ACEOF
25962 if test x
"$ac_file" != x-
; then
25963 echo "/* $configure_input */" >"$tmp/config.h"
25964 cat "$ac_result" >>"$tmp/config.h"
25965 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
25966 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25967 echo "$as_me: $ac_file is unchanged" >&6;}
25970 mv "$tmp/config.h" $ac_file
25973 echo "/* $configure_input */"
25985 { (exit 0); exit 0; }
25987 chmod +x
$CONFIG_STATUS
25988 ac_clean_files
=$ac_clean_files_save
25991 # configure is writing to config.log, and then calls config.status.
25992 # config.status does its own redirection, appending to config.log.
25993 # Unfortunately, on DOS this fails, as config.log is still kept open
25994 # by configure, so config.status won't be able to write to it; its
25995 # output is simply discarded. So we exec the FD to /dev/null,
25996 # effectively closing config.log, so it can be properly (re)opened and
25997 # appended to by config.status. When coming back to configure, we
25998 # need to make the FD available again.
25999 if test "$no_create" != yes; then
26001 ac_config_status_args
=
26002 test "$silent" = yes &&
26003 ac_config_status_args
="$ac_config_status_args --quiet"
26005 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
26007 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26008 # would make configure fail if this is the last instruction.
26009 $ac_cs_success ||
{ (exit 1); exit 1; }
26013 echo "creating Modules/Setup"
26014 if test ! -f Modules
/Setup
26016 cp $srcdir/Modules
/Setup.dist Modules
/Setup
26019 echo "creating Modules/Setup.local"
26020 if test ! -f Modules
/Setup.
local
26022 echo "# Edit this file for local setup changes" >Modules
/Setup.
local
26025 echo "creating Makefile"
26026 $SHELL $srcdir/Modules
/makesetup
-c $srcdir/Modules
/config.c.
in \
26027 -s Modules Modules
/Setup.config \
26028 Modules
/Setup.
local Modules
/Setup
26030 case $ac_sys_system in
26032 { echo "$as_me:$LINENO: WARNING:
26034 Support for BeOS is deprecated as of Python 2.6.
26035 See PEP 11 for the gory details.
26037 echo "$as_me: WARNING:
26039 Support for BeOS is deprecated as of Python 2.6.
26040 See PEP 11 for the gory details.
26046 mv config.c Modules