2 # From configure.in Revision: 77169 .
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://bugs.python.org/>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be more Bourne compatible
17 DUALCASE
=1; export DUALCASE
# for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in
27 *posix
*) set -o posix
;;
36 # Avoid depending upon Character Ranges.
37 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits
='0123456789'
41 as_cr_alnum
=$as_cr_Letters$as_cr_digits
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45 echo "#! /bin/sh" >conf$$.sh
46 echo "exit 0" >>conf$$.sh
48 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
56 # Support unset when possible.
57 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
65 # We need space, tab and new line, in precisely that order. Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
73 # Find who we are. Look in the path if we contain no directory separator.
75 *[\\/]* ) as_myself
=$0 ;;
76 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
80 test -z "$as_dir" && as_dir
=.
81 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x
; then
92 if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var
in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
111 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C
; export $as_var
114 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
118 # Required to use basename.
119 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
126 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
133 # Name of the executable.
134 as_me
=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
139 sed '/^.*\/\([^/][^/]*\)\/*$/{
157 if test "x$CONFIG_SHELL" = x
; then
158 if (eval ":") 2>/dev
/null
; then
164 if test $as_have_required = yes && (eval ":
174 as_func_ret_success () {
177 as_func_ret_failure () {
182 if as_func_success; then
186 echo as_func_success failed.
189 if as_func_failure; then
191 echo as_func_failure succeeded.
194 if as_func_ret_success; then
198 echo as_func_ret_success failed.
201 if as_func_ret_failure; then
203 echo as_func_ret_failure succeeded.
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
210 echo positional parameters were not saved.
213 test \$exitcode = 0) || { (exit 1); exit 1; }
218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev
/null
; then
224 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
225 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
228 test -z "$as_dir" && as_dir
=.
231 for as_base
in sh bash ksh sh5
; do
232 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
239 for as_shell
in $as_candidate_shells $SHELL; do
240 # Try only shells that exist, to save several forks.
241 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
242 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247 # is contrary to our usage. Disable this feature.
248 alias -g '${1+"$@"}'='"$@"'
251 case `(set -o) 2>/dev/null` in
252 *posix
*) set -o posix
;;
261 CONFIG_SHELL
=$as_shell
263 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
272 case `(set -o) 2>/dev/null` in
273 *posix
*) set -o posix
;;
289 as_func_ret_success
() {
292 as_func_ret_failure
() {
297 if as_func_success
; then
301 echo as_func_success failed.
304 if as_func_failure
; then
306 echo as_func_failure succeeded.
309 if as_func_ret_success
; then
313 echo as_func_ret_success failed.
316 if as_func_ret_failure
; then
318 echo as_func_ret_failure succeeded.
321 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
325 echo positional parameters were not saved.
328 test $exitcode = 0) ||
{ (exit 1); exit 1; }
333 test "x$as_lineno_1" != "x$as_lineno_2" &&
334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
345 if test "x$CONFIG_SHELL" != x
; then
346 for as_var
in BASH_ENV ENV
347 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
354 if test $as_have_required = no
; then
355 echo This
script requires a shell
more modern than all the
356 echo shells that I found on your system. Please
install a
357 echo modern shell
, or manually run the
script under such a
358 echo shell
if you
do have one.
359 { (exit 1); exit 1; }
369 (eval "as_func_return () {
378 as_func_ret_success () {
381 as_func_ret_failure () {
386 if as_func_success; then
390 echo as_func_success failed.
393 if as_func_failure; then
395 echo as_func_failure succeeded.
398 if as_func_ret_success; then
402 echo as_func_ret_success failed.
405 if as_func_ret_failure; then
407 echo as_func_ret_failure succeeded.
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
414 echo positional parameters were not saved.
417 test \$exitcode = 0") ||
{
418 echo No shell found that supports shell functions.
419 echo Please tell autoconf@gnu.org about your system
,
420 echo including any error possibly output before this
428 test "x$as_lineno_1" != "x$as_lineno_2" &&
429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432 # uniformly replaced by the line number. The first 'sed' inserts a
433 # line-number line after each line using $LINENO; the second 'sed'
434 # does the real work. The second script uses 'N' to pair each
435 # line-number line with the line containing $LINENO, and appends
436 # trailing '-' during substitution so that $LINENO is not a special
438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439 # scripts with optimization help from Paolo Bonzini. Blame Lee
440 # E. McMahon (1931-1989) for sed's syntax. :-)
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
456 chmod +x
"$as_me.lineno" ||
457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458 { (exit 1); exit 1; }; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
464 # Exit status is that of the last command.
469 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
475 ECHO_C
= ECHO_N
= ECHO_T
=
479 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
486 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
493 rm -f conf$$ conf$$.exe conf$$.
file
494 if test -d conf$$.dir
; then
495 rm -f conf$$.dir
/conf$$.
file
501 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
503 # ... but there are two gotchas:
504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506 # In both cases, we have to default to `cp -p'.
507 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
509 elif ln conf$$.
file conf$$
2>/dev
/null
; then
514 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
515 rmdir conf$$.dir
2>/dev
/null
517 if mkdir
-p .
2>/dev
/null
; then
520 test -d .
/-p && rmdir .
/-p
524 if test -x / >/dev
/null
2>&1; then
527 if ls -dL / >/dev
/null
2>&1; then
534 if test -d "$1"; then
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
545 as_executable_p
=$as_test_x
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 exec 7<&0 </dev
/null
6>&1
558 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559 # so uname gets run too.
560 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
565 ac_default_prefix
=/usr
/local
567 ac_config_libobj_dir
=.
573 SHELL
=${CONFIG_SHELL-/bin/sh}
575 # Identity of this package.
576 PACKAGE_NAME
='python'
577 PACKAGE_TARNAME
='python'
578 PACKAGE_VERSION
='2.7'
579 PACKAGE_STRING
='python 2.7'
580 PACKAGE_BUGREPORT
='http://bugs.python.org/'
582 ac_unique_file
="Include/object.h"
583 # Factoring default headers for most tests.
584 ac_includes_default
="\
586 #ifdef HAVE_SYS_TYPES_H
587 # include <sys/types.h>
589 #ifdef HAVE_SYS_STAT_H
590 # include <sys/stat.h>
596 # ifdef HAVE_STDLIB_H
601 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
606 #ifdef HAVE_STRINGS_H
607 # include <strings.h>
609 #ifdef HAVE_INTTYPES_H
610 # include <inttypes.h>
628 program_transform_name
663 PYTHONFRAMEWORKIDENTIFIER
665 PYTHONFRAMEWORKPREFIX
666 PYTHONFRAMEWORKINSTALLDIR
667 FRAMEWORKINSTALLFIRST
669 FRAMEWORKALTINSTALLFIRST
670 FRAMEWORKALTINSTALLLAST
671 FRAMEWORKUNIXTOOLSPREFIX
676 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
677 EXPORT_MACOSX_DEPLOYMENT_TARGET
730 HAVE_GETHOSTBYNAME_R_6_ARG
731 HAVE_GETHOSTBYNAME_R_5_ARG
732 HAVE_GETHOSTBYNAME_R_3_ARG
742 ac_precious_vars
='build_alias
753 # Initialize some variables set by options.
755 ac_init_version
=false
756 # The variables have the same names as the options, with
757 # dashes changed to underlines.
765 program_transform_name
=s
,x
,x
,
773 # Installation directory options.
774 # These are left unexpanded so users can "make install exec_prefix=/foo"
775 # and all the variables that are supposed to be based on exec_prefix
776 # by default will actually change.
777 # Use braces instead of parens because sh, perl, etc. also accept them.
778 # (The list follows the same order as the GNU Coding Standards.)
779 bindir
='${exec_prefix}/bin'
780 sbindir
='${exec_prefix}/sbin'
781 libexecdir
='${exec_prefix}/libexec'
782 datarootdir
='${prefix}/share'
783 datadir
='${datarootdir}'
784 sysconfdir
='${prefix}/etc'
785 sharedstatedir
='${prefix}/com'
786 localstatedir
='${prefix}/var'
787 includedir
='${prefix}/include'
788 oldincludedir
='/usr/include'
789 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
790 infodir
='${datarootdir}/info'
795 libdir
='${exec_prefix}/lib'
796 localedir
='${datarootdir}/locale'
797 mandir
='${datarootdir}/man'
803 # If the previous option needs an argument, assign it.
804 if test -n "$ac_prev"; then
805 eval $ac_prev=\
$ac_option
811 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
815 # Accept the important Cygnus configure options, so we can diagnose typos.
817 case $ac_dashdash$ac_option in
821 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
823 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
826 -build |
--build |
--buil |
--bui |
--bu)
827 ac_prev
=build_alias
;;
828 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
829 build_alias
=$ac_optarg ;;
831 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
832 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
833 ac_prev
=cache_file
;;
834 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
835 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
836 cache_file
=$ac_optarg ;;
839 cache_file
=config.cache
;;
841 -datadir |
--datadir |
--datadi |
--datad)
843 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
844 datadir
=$ac_optarg ;;
846 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
847 |
--dataroo |
--dataro |
--datar)
848 ac_prev
=datarootdir
;;
849 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
850 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
851 datarootdir
=$ac_optarg ;;
853 -disable-* |
--disable-*)
854 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
855 # Reject names that are not valid shell variable names.
856 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
857 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
858 { (exit 1); exit 1; }; }
859 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
860 eval enable_
$ac_feature=no
;;
862 -docdir |
--docdir |
--docdi |
--doc |
--do)
864 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
867 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
869 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
872 -enable-* |
--enable-*)
873 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
874 # Reject names that are not valid shell variable names.
875 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
876 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
877 { (exit 1); exit 1; }; }
878 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
879 eval enable_
$ac_feature=\
$ac_optarg ;;
881 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
882 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
883 |
--exec |
--exe |
--ex)
884 ac_prev
=exec_prefix
;;
885 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
886 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
887 |
--exec=* |
--exe=* |
--ex=*)
888 exec_prefix
=$ac_optarg ;;
890 -gas |
--gas |
--ga |
--g)
891 # Obsolete; use --with-gas.
894 -help |
--help |
--hel |
--he |
-h)
896 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
897 ac_init_help
=recursive
;;
898 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
899 ac_init_help
=short
;;
901 -host |
--host |
--hos |
--ho)
902 ac_prev
=host_alias
;;
903 -host=* |
--host=* |
--hos=* |
--ho=*)
904 host_alias
=$ac_optarg ;;
906 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
908 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
910 htmldir
=$ac_optarg ;;
912 -includedir |
--includedir |
--includedi |
--included |
--include \
913 |
--includ |
--inclu |
--incl |
--inc)
914 ac_prev
=includedir
;;
915 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
916 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
917 includedir
=$ac_optarg ;;
919 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
921 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
922 infodir
=$ac_optarg ;;
924 -libdir |
--libdir |
--libdi |
--libd)
926 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
929 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
930 |
--libexe |
--libex |
--libe)
931 ac_prev
=libexecdir
;;
932 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
933 |
--libexe=* |
--libex=* |
--libe=*)
934 libexecdir
=$ac_optarg ;;
936 -localedir |
--localedir |
--localedi |
--localed |
--locale)
938 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
939 localedir
=$ac_optarg ;;
941 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
942 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
943 ac_prev
=localstatedir
;;
944 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
945 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
946 localstatedir
=$ac_optarg ;;
948 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
950 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
954 # Obsolete; use --without-fp.
957 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
958 |
--no-cr |
--no-c |
-n)
961 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
962 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
965 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
966 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
967 |
--oldin |
--oldi |
--old |
--ol |
--o)
968 ac_prev
=oldincludedir
;;
969 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
970 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
971 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
972 oldincludedir
=$ac_optarg ;;
974 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
976 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
979 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
980 |
--program-pre |
--program-pr |
--program-p)
981 ac_prev
=program_prefix
;;
982 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
983 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
984 program_prefix
=$ac_optarg ;;
986 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
987 |
--program-suf |
--program-su |
--program-s)
988 ac_prev
=program_suffix
;;
989 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
990 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
991 program_suffix
=$ac_optarg ;;
993 -program-transform-name |
--program-transform-name \
994 |
--program-transform-nam |
--program-transform-na \
995 |
--program-transform-n |
--program-transform- \
996 |
--program-transform |
--program-transfor \
997 |
--program-transfo |
--program-transf \
998 |
--program-trans |
--program-tran \
999 |
--progr-tra |
--program-tr |
--program-t)
1000 ac_prev
=program_transform_name
;;
1001 -program-transform-name=* |
--program-transform-name=* \
1002 |
--program-transform-nam=* |
--program-transform-na=* \
1003 |
--program-transform-n=* |
--program-transform-=* \
1004 |
--program-transform=* |
--program-transfor=* \
1005 |
--program-transfo=* |
--program-transf=* \
1006 |
--program-trans=* |
--program-tran=* \
1007 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1008 program_transform_name
=$ac_optarg ;;
1010 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1012 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1013 pdfdir
=$ac_optarg ;;
1015 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1017 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1020 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1021 |
-silent |
--silent |
--silen |
--sile |
--sil)
1024 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1026 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1028 sbindir
=$ac_optarg ;;
1030 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1031 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1032 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1034 ac_prev
=sharedstatedir
;;
1035 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1036 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1037 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1039 sharedstatedir
=$ac_optarg ;;
1041 -site |
--site |
--sit)
1043 -site=* |
--site=* |
--sit=*)
1046 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1048 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1049 srcdir
=$ac_optarg ;;
1051 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1052 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1053 ac_prev
=sysconfdir
;;
1054 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1055 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1056 sysconfdir
=$ac_optarg ;;
1058 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1059 ac_prev
=target_alias
;;
1060 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1061 target_alias
=$ac_optarg ;;
1063 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1066 -version |
--version |
--versio |
--versi |
--vers |
-V)
1067 ac_init_version
=: ;;
1070 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1071 # Reject names that are not valid shell variable names.
1072 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1073 { echo "$as_me: error: invalid package name: $ac_package" >&2
1074 { (exit 1); exit 1; }; }
1075 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1076 eval with_
$ac_package=\
$ac_optarg ;;
1078 -without-* |
--without-*)
1079 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1080 # Reject names that are not valid shell variable names.
1081 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1082 { echo "$as_me: error: invalid package name: $ac_package" >&2
1083 { (exit 1); exit 1; }; }
1084 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1085 eval with_
$ac_package=no
;;
1088 # Obsolete; use --with-x.
1091 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1092 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1093 ac_prev
=x_includes
;;
1094 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1095 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1096 x_includes
=$ac_optarg ;;
1098 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1099 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1100 ac_prev
=x_libraries
;;
1101 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1102 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1103 x_libraries
=$ac_optarg ;;
1105 -*) { echo "$as_me: error: unrecognized option: $ac_option
1106 Try \`$0 --help' for more information." >&2
1107 { (exit 1); exit 1; }; }
1111 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1112 # Reject names that are not valid shell variable names.
1113 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1114 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1115 { (exit 1); exit 1; }; }
1116 eval $ac_envvar=\
$ac_optarg
1117 export $ac_envvar ;;
1120 # FIXME: should be removed in autoconf 3.0.
1121 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1122 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1123 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1124 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1130 if test -n "$ac_prev"; then
1131 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1132 { echo "$as_me: error: missing argument to $ac_option" >&2
1133 { (exit 1); exit 1; }; }
1136 # Be sure to have absolute directory names.
1137 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1138 datadir sysconfdir sharedstatedir localstatedir includedir \
1139 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1140 libdir localedir mandir
1142 eval ac_val
=\$
$ac_var
1144 [\\/$
]* | ?
:[\\/]* ) continue;;
1145 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1147 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1148 { (exit 1); exit 1; }; }
1151 # There might be people who depend on the old broken behavior: `$host'
1152 # used to hold the argument of --host etc.
1153 # FIXME: To remove some day.
1156 target
=$target_alias
1158 # FIXME: To remove some day.
1159 if test "x$host_alias" != x
; then
1160 if test "x$build_alias" = x
; then
1161 cross_compiling
=maybe
1162 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1163 If a cross compiler is detected then cross compile mode will be used." >&2
1164 elif test "x$build_alias" != "x$host_alias"; then
1170 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1172 test "$silent" = yes && exec 6>/dev
/null
1175 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1176 ac_ls_di
=`ls -di .` &&
1177 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1178 { echo "$as_me: error: Working directory cannot be determined" >&2
1179 { (exit 1); exit 1; }; }
1180 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1181 { echo "$as_me: error: pwd does not report name of working directory" >&2
1182 { (exit 1); exit 1; }; }
1185 # Find the source files, if location was not specified.
1186 if test -z "$srcdir"; then
1187 ac_srcdir_defaulted
=yes
1188 # Try the directory containing this script, then the parent directory.
1189 ac_confdir
=`$as_dirname -- "$0" ||
1190 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1191 X"$0" : 'X\(//\)[^/]' \| \
1192 X"$0" : 'X\(//\)$' \| \
1193 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1195 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1213 if test ! -r "$srcdir/$ac_unique_file"; then
1217 ac_srcdir_defaulted
=no
1219 if test ! -r "$srcdir/$ac_unique_file"; then
1220 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1221 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1222 { (exit 1); exit 1; }; }
1224 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1226 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1227 { (exit 1); exit 1; }; }
1229 # When building in place, set srcdir=.
1230 if test "$ac_abs_confdir" = "$ac_pwd"; then
1233 # Remove unnecessary trailing slashes from srcdir.
1234 # Double slashes in file names in object file debugging info
1235 # mess up M-x gdb in Emacs.
1237 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1239 for ac_var
in $ac_precious_vars; do
1240 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1241 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1242 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1243 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1247 # Report the --help message.
1249 if test "$ac_init_help" = "long"; then
1250 # Omit some internal or obsolete options to make the list less imposing.
1251 # This message is too long to be a string in the A/UX 3.1 sh.
1253 \`configure' configures python 2.7 to adapt to many kinds of systems.
1255 Usage: $0 [OPTION]... [VAR=VALUE]...
1257 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1258 VAR=VALUE. See below for descriptions of some of the useful variables.
1260 Defaults for the options are specified in brackets.
1263 -h, --help display this help and exit
1264 --help=short display options specific to this package
1265 --help=recursive display the short help of all the included packages
1266 -V, --version display version information and exit
1267 -q, --quiet, --silent do not print \`checking...' messages
1268 --cache-file=FILE cache test results in FILE [disabled]
1269 -C, --config-cache alias for \`--cache-file=config.cache'
1270 -n, --no-create do not create output files
1271 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1273 Installation directories:
1274 --prefix=PREFIX install architecture-independent files in PREFIX
1275 [$ac_default_prefix]
1276 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1279 By default, \`make install' will install all the files in
1280 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1281 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1282 for instance \`--prefix=\$HOME'.
1284 For better control, use the options below.
1286 Fine tuning of the installation directories:
1287 --bindir=DIR user executables [EPREFIX/bin]
1288 --sbindir=DIR system admin executables [EPREFIX/sbin]
1289 --libexecdir=DIR program executables [EPREFIX/libexec]
1290 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1291 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1292 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1293 --libdir=DIR object code libraries [EPREFIX/lib]
1294 --includedir=DIR C header files [PREFIX/include]
1295 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1296 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1297 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1298 --infodir=DIR info documentation [DATAROOTDIR/info]
1299 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1300 --mandir=DIR man documentation [DATAROOTDIR/man]
1301 --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1302 --htmldir=DIR html documentation [DOCDIR]
1303 --dvidir=DIR dvi documentation [DOCDIR]
1304 --pdfdir=DIR pdf documentation [DOCDIR]
1305 --psdir=DIR ps documentation [DOCDIR]
1312 if test -n "$ac_init_help"; then
1313 case $ac_init_help in
1314 short | recursive
) echo "Configuration of python 2.7:";;
1319 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1320 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1321 --enable-universalsdk[=SDKDIR
]
1322 Build against Mac OS X
10.4u SDK
(ppc
/i386
)
1323 --enable-framework[=INSTALLDIR
]
1324 Build
(MacOSX|Darwin
) framework
1325 --enable-shared disable
/enable building shared python library
1326 --enable-profiling enable C-level code profiling
1327 --enable-toolbox-glue disable
/enable MacOSX glue code
for extensions
1328 --enable-ipv6 Enable ipv6
(with ipv4
) support
1329 --disable-ipv6 Disable ipv6 support
1330 --enable-big-digits[=BITS
]
1331 use big digits
for Python longs
[BITS
=30]
1332 --enable-unicode[=ucs
[24]]
1333 Enable Unicode
strings (default is
yes)
1336 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1337 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1338 --with-universal-archs=ARCH
1339 select architectures
for universal build
("32-bit",
1340 "64-bit", "3-way", "intel" or
"all")
1341 --with-framework-name=FRAMEWORK
1342 specify an alternate name of the framework built
1343 with
--enable-framework
1344 --without-gcc never use gcc
1345 --with-cxx-main=<compiler
>
1346 compile main
() and link python executable with C
++
1348 --with-suffix=.exe
set executable suffix
1349 --with-pydebug build with Py_DEBUG defined
1350 --with-libs='lib1 ...' link against additional libs
1351 --with-system-expat build pyexpat module using an installed expat
1353 --with-system-ffi build _ctypes module using an installed ffi library
1354 --with-dbmliborder=db1
:db2
:...
1355 order to check db backends
for dbm. Valid value is a
1356 colon separated string with the backend names
1357 `ndbm', `gdbm
' and `bdb'.
1358 --with-signal-module disable
/enable signal module
1359 --with-dec-threads use DEC Alpha
/OSF1 thread-safe libraries
1360 --with(out
)-threads[=DIRECTORY
]
1361 disable
/enable thread support
1362 --with(out
)-thread[=DIRECTORY
]
1363 deprecated
; use
--with(out
)-threads
1364 --with-pth use GNU pth threading libraries
1365 --with(out
)-doc-strings disable
/enable documentation
strings
1366 --with(out
)-tsc enable
/disable timestamp counter profile
1367 --with(out
)-pymalloc disable
/enable specialized mallocs
1368 --with-valgrind Enable Valgrind support
1369 --with-wctype-functions use wctype.h functions
1370 --with-fpectl enable SIGFPE catching
1371 --with-libm=STRING math library
1372 --with-libc=STRING C library
1374 Some influential environment variables
:
1375 CC C compiler
command
1376 CFLAGS C compiler flags
1377 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1378 nonstandard directory
<lib dir
>
1379 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1380 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1381 you have headers
in a nonstandard directory
<include dir
>
1384 Use these variables to override the choices made by
`configure' or to help
1385 it to find libraries and programs with nonstandard names/locations.
1387 Report bugs to <http://bugs.python.org/>.
1392 if test "$ac_init_help" = "recursive"; then
1393 # If there are subdirs, report their specific --help.
1394 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1395 test -d "$ac_dir" || continue
1399 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1401 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1402 # A ".." for each directory in $ac_dir_suffix.
1403 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1404 case $ac_top_builddir_sub in
1405 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1406 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1409 ac_abs_top_builddir=$ac_pwd
1410 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1411 # for backward compatibility:
1412 ac_top_builddir=$ac_top_build_prefix
1415 .) # We are building in place.
1417 ac_top_srcdir=$ac_top_builddir_sub
1418 ac_abs_top_srcdir=$ac_pwd ;;
1419 [\\/]* | ?:[\\/]* ) # Absolute name.
1420 ac_srcdir=$srcdir$ac_dir_suffix;
1421 ac_top_srcdir=$srcdir
1422 ac_abs_top_srcdir=$srcdir ;;
1424 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1425 ac_top_srcdir=$ac_top_build_prefix$srcdir
1426 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1428 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1430 cd "$ac_dir" || { ac_status=$?; continue; }
1431 # Check for guested configure.
1432 if test -f "$ac_srcdir/configure.gnu"; then
1434 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1435 elif test -f "$ac_srcdir/configure"; then
1437 $SHELL "$ac_srcdir/configure" --help=recursive
1439 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1441 cd "$ac_pwd" || { ac_status=$?; break; }
1445 test -n "$ac_init_help" && exit $ac_status
1446 if $ac_init_version; then
1448 python configure 2.7
1449 generated by GNU Autoconf 2.61
1451 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1452 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1453 This configure script is free software; the Free Software Foundation
1454 gives unlimited permission to copy, distribute and modify it.
1458 cat >config.log <<_ACEOF
1459 This file contains any messages produced by compilers while
1460 running configure, to aid debugging if configure makes a mistake.
1462 It was created by python $as_me 2.7, which was
1463 generated by GNU Autoconf 2.61. Invocation command line was
1475 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1476 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1477 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1478 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1479 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1481 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1482 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1484 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1485 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1486 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1487 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1488 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1489 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1490 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1498 test -z "$as_dir" && as_dir=.
1499 echo "PATH: $as_dir"
1515 # Keep a trace of the command line.
1516 # Strip out --no-create and --no-recursion so they do not pile up.
1517 # Strip out --silent because we don't want to record it for future runs.
1518 # Also quote any args containing shell meta-characters.
1519 # Make two passes to allow for proper duplicate-argument suppression.
1523 ac_must_keep_next=false
1529 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1530 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1531 | -silent | --silent | --silen | --sile | --sil)
1534 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1537 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1539 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1540 if test $ac_must_keep_next = true; then
1541 ac_must_keep_next=false # Got value, back to normal.
1544 *=* | --config-cache | -C | -disable-* | --disable-* \
1545 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1546 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1547 | -with-* | --with-* | -without-* | --without-* | --x)
1548 case "$ac_configure_args0 " in
1549 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1552 -* ) ac_must_keep_next=true ;;
1555 ac_configure_args="$ac_configure_args '$ac_arg'"
1560 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1561 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1563 # When interrupted or exit'd, cleanup temporary files, and complete
1564 # config.log. We remove comments because anyway the quotes in there
1565 # would cause problems or look ugly.
1566 # WARNING: Use '\'' to represent an apostrophe within the trap.
1567 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1568 trap 'exit_status=$?
1569 # Save into config.log some information that might help in debugging.
1574 ## ---------------- ##
1575 ## Cache variables. ##
1576 ## ---------------- ##
1579 # The following way of writing the cache mishandles newlines in values,
1581 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1582 eval ac_val=\$$ac_var
1586 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1587 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1590 _ | IFS | as_nl) ;; #(
1591 *) $as_unset $ac_var ;;
1596 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1597 *${as_nl}ac_space=\ *)
1599 "s/'\''/'\''\\\\'\'''\''/g;
1600 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1603 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1611 ## ----------------- ##
1612 ## Output variables. ##
1613 ## ----------------- ##
1616 for ac_var in $ac_subst_vars
1618 eval ac_val=\$$ac_var
1620 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1622 echo "$ac_var='\''$ac_val'\''"
1626 if test -n "$ac_subst_files"; then
1628 ## ------------------- ##
1629 ## File substitutions. ##
1630 ## ------------------- ##
1633 for ac_var in $ac_subst_files
1635 eval ac_val=\$$ac_var
1637 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1639 echo "$ac_var='\''$ac_val'\''"
1644 if test -s confdefs.h; then
1654 test "$ac_signal" != 0 &&
1655 echo "$as_me: caught signal $ac_signal"
1656 echo "$as_me: exit $exit_status"
1658 rm -f core *.core core.conftest.* &&
1659 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1662 for ac_signal in 1 2 13 15; do
1663 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1667 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1668 rm -f -r conftest* confdefs.h
1670 # Predefined preprocessor variables.
1672 cat >>confdefs.h <<_ACEOF
1673 #define PACKAGE_NAME "$PACKAGE_NAME"
1677 cat >>confdefs.h <<_ACEOF
1678 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1682 cat >>confdefs.h <<_ACEOF
1683 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1687 cat >>confdefs.h <<_ACEOF
1688 #define PACKAGE_STRING "$PACKAGE_STRING"
1692 cat >>confdefs.h <<_ACEOF
1693 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1697 # Let the site file select an alternate cache file if it wants to.
1698 # Prefer explicitly selected file to automatically selected ones.
1699 if test -n "$CONFIG_SITE"; then
1700 set x "$CONFIG_SITE"
1701 elif test "x$prefix" != xNONE; then
1702 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1704 set x "$ac_default_prefix/share/config.site" \
1705 "$ac_default_prefix/etc/config.site"
1710 if test -r "$ac_site_file"; then
1711 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1712 echo "$as_me: loading site script $ac_site_file" >&6;}
1713 sed 's/^/| /' "$ac_site_file" >&5
1718 if test -r "$cache_file"; then
1719 # Some versions of bash will fail to source /dev/null (special
1720 # files actually), so we avoid doing that.
1721 if test -f "$cache_file"; then
1722 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1723 echo "$as_me: loading cache $cache_file" >&6;}
1725 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1726 *) . "./$cache_file";;
1730 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1731 echo "$as_me: creating cache $cache_file" >&6;}
1735 # Check that the precious variables saved in the cache have kept the same
1737 ac_cache_corrupted=false
1738 for ac_var in $ac_precious_vars; do
1739 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1740 eval ac_new_set=\$ac_env_${ac_var}_set
1741 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1742 eval ac_new_val=\$ac_env_${ac_var}_value
1743 case $ac_old_set,$ac_new_set in
1745 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1746 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1747 ac_cache_corrupted=: ;;
1749 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1750 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1751 ac_cache_corrupted=: ;;
1754 if test "x$ac_old_val" != "x$ac_new_val"; then
1755 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1756 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1757 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1758 echo "$as_me: former value
: $ac_old_val" >&2;}
1759 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1760 echo "$as_me: current value
: $ac_new_val" >&2;}
1761 ac_cache_corrupted=:
1764 # Pass precious variables to config.status.
1765 if test "$ac_new_set" = set; then
1767 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1768 *) ac_arg=$ac_var=$ac_new_val ;;
1770 case " $ac_configure_args " in
1771 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1772 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1776 if $ac_cache_corrupted; then
1777 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1778 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1779 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1780 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1781 { (exit 1); exit 1; }; }
1809 ac_cpp='$CPP $CPPFLAGS'
1810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1816 ac_config_headers="$ac_config_headers pyconfig.h"
1820 if test "$prefix" != "/"; then
1821 prefix=`echo "$prefix" |
sed -e 's/\/$//g'`
1829 # We don't use PACKAGE_ variables, and they cause conflicts
1830 # with other autoconf-based packages that include Python.h
1831 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1833 mv confdefs.h.new confdefs.h
1841 # The later defininition of _XOPEN_SOURCE disables certain features
1842 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1844 cat >>confdefs.h <<\_ACEOF
1845 #define _GNU_SOURCE 1
1849 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1850 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1853 cat >>confdefs.h <<\_ACEOF
1854 #define _NETBSD_SOURCE 1
1858 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1859 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1862 cat >>confdefs.h <<\_ACEOF
1863 #define __BSD_VISIBLE 1
1867 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1868 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1870 cat >>confdefs.h <<\_ACEOF
1871 #define _BSD_TYPES 1
1875 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1876 # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
1879 cat >>confdefs.h <<\_ACEOF
1880 #define _DARWIN_C_SOURCE 1
1885 define_xopen_source=yes
1887 # Arguments passed to configure.
1889 CONFIG_ARGS="$ac_configure_args"
1891 # Check whether --enable-universalsdk was given.
1892 if test "${enable_universalsdk+set}" = set; then
1893 enableval=$enable_universalsdk;
1896 enableval=/Developer/SDKs/MacOSX10.4u.sdk
1902 enable_universalsdk=
1905 UNIVERSALSDK=$enableval
1912 enable_universalsdk=
1920 UNIVERSAL_ARCHS="32-bit"
1922 { echo "$as_me:$LINENO: checking for --with-universal-archs" >&5
1923 echo $ECHO_N "checking for --with-universal-archs... $ECHO_C" >&6; }
1925 # Check whether --with-universal-archs was given.
1926 if test "${with_universal_archs+set}" = set; then
1927 withval=$with_universal_archs;
1928 { echo "$as_me:$LINENO: result: $withval" >&5
1929 echo "${ECHO_T}$withval" >&6; }
1930 UNIVERSAL_ARCHS="$withval"
1931 if test "${enable_universalsdk}" ; then
1934 { { echo "$as_me:$LINENO: error: --with-universal-archs without --enable-universalsdk. See Mac/README" >&5
1935 echo "$as_me: error: --with-universal-archs without --enable-universalsdk. See Mac/README" >&2;}
1936 { (exit 1); exit 1; }; }
1941 { echo "$as_me:$LINENO: result: 32-bit" >&5
1942 echo "${ECHO_T}32-bit" >&6; }
1950 # Check whether --with-framework-name was given.
1951 if test "${with_framework_name+set}" = set; then
1952 withval=$with_framework_name;
1953 if test "${enable_framework}"; then
1956 { { echo "$as_me:$LINENO: error: --with-framework-name without --enable-framework. See Mac/README" >&5
1957 echo "$as_me: error: --with-framework-name without --enable-framework. See Mac/README" >&2;}
1958 { (exit 1); exit 1; }; }
1960 PYTHONFRAMEWORK=${withval}
1961 PYTHONFRAMEWORKDIR=${withval}.framework
1962 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval |
tr 'A-Z' 'a-z'`
1966 PYTHONFRAMEWORK=Python
1967 PYTHONFRAMEWORKDIR=Python.framework
1968 PYTHONFRAMEWORKIDENTIFIER=org.python.python
1972 # Check whether --enable-framework was given.
1973 if test "${enable_framework+set}" = set; then
1974 enableval=$enable_framework;
1977 enableval=/Library/Frameworks
1982 PYTHONFRAMEWORKDIR=no-framework
1983 PYTHONFRAMEWORKPREFIX=
1984 PYTHONFRAMEWORKINSTALLDIR=
1985 FRAMEWORKINSTALLFIRST=
1986 FRAMEWORKINSTALLLAST=
1987 FRAMEWORKALTINSTALLFIRST=
1988 FRAMEWORKALTINSTALLLAST=
1989 if test "x${prefix}" = "xNONE"; then
1990 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1992 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1997 PYTHONFRAMEWORKPREFIX=$enableval
1998 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1999 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
2000 FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall"
2001 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
2002 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
2004 if test "x${prefix}" = "xNONE" ; then
2005 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2007 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2009 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
2011 # Add files for Mac specific code to the list of output
2013 ac_config_files="$ac_config_files Mac/Makefile"
2015 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
2017 ac_config_files="$ac_config_files Mac/IDLE/Makefile"
2019 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
2021 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
2028 PYTHONFRAMEWORKDIR=no-framework
2029 PYTHONFRAMEWORKPREFIX=
2030 PYTHONFRAMEWORKINSTALLDIR=
2031 FRAMEWORKINSTALLFIRST=
2032 FRAMEWORKINSTALLLAST=
2033 FRAMEWORKALTINSTALLFIRST=
2034 FRAMEWORKALTINSTALLLAST=
2035 if test "x${prefix}" = "xNONE" ; then
2036 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2038 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2057 ## AC_HELP_STRING(--with-dyld,
2058 ## Use (OpenStep|Rhapsody) dynamic linker))
2060 # Set name for machine-dependent library files
2062 { echo "$as_me:$LINENO: checking MACHDEP" >&5
2063 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; }
2064 if test -z "$MACHDEP"
2066 ac_sys_system=`uname
-s`
2067 if test "$ac_sys_system" = "AIX" \
2068 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
2069 ac_sys_release=`uname
-v`
2071 ac_sys_release=`uname
-r`
2073 ac_md_system=`echo $ac_sys_system |
2074 tr -d '/ ' |
tr '[A-Z]' '[a-z]'`
2075 ac_md_release=`echo $ac_sys_release |
2076 tr -d '/ ' |
sed 's/^[A-Z]\.//' |
sed 's/\..*//'`
2077 MACHDEP="$ac_md_system$ac_md_release"
2080 cygwin*) MACHDEP="cygwin";;
2081 darwin*) MACHDEP="darwin";;
2082 atheos*) MACHDEP="atheos";;
2083 irix646) MACHDEP="irix6";;
2084 '') MACHDEP="unknown";;
2088 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
2089 # disable features if it is defined, without any means to access these
2090 # features as extensions. For these systems, we skip the definition of
2091 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
2092 # some feature, make sure there is no alternative way to access this
2093 # feature. Also, when using wildcards, make sure you have verified the
2094 # need for not defining _XOPEN_SOURCE on all systems matching the
2095 # wildcard, and that the wildcard does not include future systems
2096 # (which may remove their limitations).
2097 case $ac_sys_system/$ac_sys_release in
2098 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
2099 # even though select is a POSIX function. Reported by J. Ribbens.
2100 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
2101 OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123])
2102 define_xopen_source=no
2103 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2104 # also defined. This can be overridden by defining _BSD_SOURCE
2105 # As this has a different meaning on Linux, only define it on OpenBSD
2107 cat >>confdefs.h <<\_ACEOF
2108 #define _BSD_SOURCE 1
2112 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
2113 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
2115 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
2116 define_xopen_source=no;;
2117 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
2118 # of union __?sigval. Reported by Stuart Bishop.
2120 define_xopen_source=no;;
2121 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
2122 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
2123 # Reconfirmed for 7.1.4 by Martin v. Loewis.
2124 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
2125 define_xopen_source=no;;
2126 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
2127 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
2129 define_xopen_source=no;;
2130 # On FreeBSD 4, the math functions C89 does not cover are never defined
2131 # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them.
2133 define_xopen_source=no;;
2134 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
2135 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
2136 # identifies itself as Darwin/7.*
2137 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2138 # disables platform specific features beyond repair.
2139 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2140 # has no effect, don't bother defining them
2142 define_xopen_source=no;;
2143 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
2144 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
2145 # or has another value. By not (re)defining it, the defaults come in place.
2147 define_xopen_source=no;;
2149 if test `uname
-r` -eq 1; then
2150 define_xopen_source=no
2153 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
2154 # defining NI_NUMERICHOST.
2156 define_xopen_source=no
2161 if test $define_xopen_source = yes
2163 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
2164 # defined precisely as g++ defines it
2165 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
2167 case $ac_sys_system/$ac_sys_release in
2168 SunOS/5.8|SunOS/5.9|SunOS/5.10)
2170 cat >>confdefs.h <<\_ACEOF
2171 #define _XOPEN_SOURCE 500
2177 cat >>confdefs.h <<\_ACEOF
2178 #define _XOPEN_SOURCE 600
2184 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
2185 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
2186 # several APIs are not declared. Since this is also needed in some
2187 # cases for HP-UX, we define it globally.
2188 # except for Solaris 10, where it must not be defined,
2189 # as it implies XPG4.2
2190 case $ac_sys_system/$ac_sys_release in
2195 cat >>confdefs.h <<\_ACEOF
2196 #define _XOPEN_SOURCE_EXTENDED 1
2203 cat >>confdefs.h <<\_ACEOF
2204 #define _POSIX_C_SOURCE 200112L
2211 # SGI compilers allow the specification of the both the ABI and the
2212 # ISA on the command line. Depending on the values of these switches,
2213 # different and often incompatable code will be generated.
2215 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
2216 # thus supply support for various ABI/ISA combinations. The MACHDEP
2217 # variable is also adjusted.
2220 if test ! -z "$SGI_ABI"
2223 LDFLAGS="$SGI_ABI $LDFLAGS"
2224 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" |
sed 's/ *//g'`
2226 { echo "$as_me:$LINENO: result: $MACHDEP" >&5
2227 echo "${ECHO_T}$MACHDEP" >&6; }
2229 # And add extra plat-mac for darwin
2232 { echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
2233 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6; }
2234 if test -z "$EXTRAPLATDIR"
2238 EXTRAPLATDIR="\$(PLATMACDIRS)"
2239 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
2247 { echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
2248 echo "${ECHO_T}$EXTRAPLATDIR" >&6; }
2250 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
2251 # it may influence the way we can build extensions, so distutils
2255 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
2256 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
2258 { echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5
2259 echo $ECHO_N "checking machine type as reported by uname -m... $ECHO_C" >&6; }
2260 ac_sys_machine=`uname
-m`
2261 { echo "$as_me:$LINENO: result: $ac_sys_machine" >&5
2262 echo "${ECHO_T}$ac_sys_machine" >&6; }
2264 # checks for alternative programs
2266 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
2267 # for debug/optimization stuff. BASECFLAGS is for flags that are required
2268 # just to get things to compile and link. Users are free to override OPT
2269 # when running configure or make. The build should not break if they do.
2270 # BASECFLAGS should generally not be messed with, however.
2272 # XXX shouldn't some/most/all of this code be merged with the stuff later
2273 # on that fiddles with OPT and BASECFLAGS?
2274 { echo "$as_me:$LINENO: checking for --without-gcc" >&5
2275 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; }
2277 # Check whether --with-gcc was given.
2278 if test "${with_gcc+set}" = set; then
2286 without_gcc=$withval;;
2290 case $ac_sys_system in
2294 case $BE_HOST_CPU in
2298 BASECFLAGS="$BASECFLAGS -export pragma"
2300 LDFLAGS="$LDFLAGS -nodup"
2308 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
2309 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
2310 { (exit 1); exit 1; }; }
2313 AR="\$(srcdir)/Modules/ar_beos"
2320 { echo "$as_me:$LINENO: result: $without_gcc" >&5
2321 echo "${ECHO_T}$without_gcc" >&6; }
2323 # If the user switches compilers, we can't believe the cache
2324 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
2326 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
2327 (it is also a good idea to do 'make clean' before compiling)" >&5
2328 echo "$as_me: error: cached CC is different -- throw away $cache_file
2329 (it is also a good idea to do 'make clean' before compiling)" >&2;}
2330 { (exit 1); exit 1; }; }
2334 ac_cpp='$CPP $CPPFLAGS'
2335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2338 if test -n "$ac_tool_prefix"; then
2339 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2340 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2341 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2343 if test "${ac_cv_prog_CC+set}" = set; then
2344 echo $ECHO_N "(cached) $ECHO_C" >&6
2346 if test -n "$CC"; then
2347 ac_cv_prog_CC="$CC" # Let the user override the test.
2349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2353 test -z "$as_dir" && as_dir=.
2354 for ac_exec_ext in '' $ac_executable_extensions; do
2355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2356 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2367 if test -n "$CC"; then
2368 { echo "$as_me:$LINENO: result: $CC" >&5
2369 echo "${ECHO_T}$CC" >&6; }
2371 { echo "$as_me:$LINENO: result: no" >&5
2372 echo "${ECHO_T}no" >&6; }
2377 if test -z "$ac_cv_prog_CC"; then
2379 # Extract the first word of "gcc", so it can be a program name with args.
2380 set dummy gcc; ac_word=$2
2381 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2383 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2384 echo $ECHO_N "(cached) $ECHO_C" >&6
2386 if test -n "$ac_ct_CC"; then
2387 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2393 test -z "$as_dir" && as_dir=.
2394 for ac_exec_ext in '' $ac_executable_extensions; do
2395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2396 ac_cv_prog_ac_ct_CC="gcc"
2397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2406 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2407 if test -n "$ac_ct_CC"; then
2408 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2409 echo "${ECHO_T}$ac_ct_CC" >&6; }
2411 { echo "$as_me:$LINENO: result: no" >&5
2412 echo "${ECHO_T}no" >&6; }
2415 if test "x$ac_ct_CC" = x; then
2418 case $cross_compiling:$ac_tool_warned in
2420 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2421 whose name does not start with the host triplet. If you think this
2422 configuration is useful to you, please write to autoconf@gnu.org." >&5
2423 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2424 whose name does not start with the host triplet. If you think this
2425 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2426 ac_tool_warned=yes ;;
2434 if test -z "$CC"; then
2435 if test -n "$ac_tool_prefix"; then
2436 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2437 set dummy ${ac_tool_prefix}cc; ac_word=$2
2438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2440 if test "${ac_cv_prog_CC+set}" = set; then
2441 echo $ECHO_N "(cached) $ECHO_C" >&6
2443 if test -n "$CC"; then
2444 ac_cv_prog_CC="$CC" # Let the user override the test.
2446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2450 test -z "$as_dir" && as_dir=.
2451 for ac_exec_ext in '' $ac_executable_extensions; do
2452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2453 ac_cv_prog_CC="${ac_tool_prefix}cc"
2454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2464 if test -n "$CC"; then
2465 { echo "$as_me:$LINENO: result: $CC" >&5
2466 echo "${ECHO_T}$CC" >&6; }
2468 { echo "$as_me:$LINENO: result: no" >&5
2469 echo "${ECHO_T}no" >&6; }
2475 if test -z "$CC"; then
2476 # Extract the first word of "cc", so it can be a program name with args.
2477 set dummy cc; ac_word=$2
2478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2480 if test "${ac_cv_prog_CC+set}" = set; then
2481 echo $ECHO_N "(cached) $ECHO_C" >&6
2483 if test -n "$CC"; then
2484 ac_cv_prog_CC="$CC" # Let the user override the test.
2487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491 test -z "$as_dir" && as_dir=.
2492 for ac_exec_ext in '' $ac_executable_extensions; do
2493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2494 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2495 ac_prog_rejected=yes
2499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2506 if test $ac_prog_rejected = yes; then
2507 # We found a bogon in the path, so make sure we never use it.
2508 set dummy $ac_cv_prog_CC
2510 if test $# != 0; then
2511 # We chose a different compiler from the bogus one.
2512 # However, it has the same basename, so the bogon will be chosen
2513 # first if we set CC to just the basename; use the full file name.
2515 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2521 if test -n "$CC"; then
2522 { echo "$as_me:$LINENO: result: $CC" >&5
2523 echo "${ECHO_T}$CC" >&6; }
2525 { echo "$as_me:$LINENO: result: no" >&5
2526 echo "${ECHO_T}no" >&6; }
2531 if test -z "$CC"; then
2532 if test -n "$ac_tool_prefix"; then
2533 for ac_prog in cl.exe
2535 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2536 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2537 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2539 if test "${ac_cv_prog_CC+set}" = set; then
2540 echo $ECHO_N "(cached) $ECHO_C" >&6
2542 if test -n "$CC"; then
2543 ac_cv_prog_CC="$CC" # Let the user override the test.
2545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2549 test -z "$as_dir" && as_dir=.
2550 for ac_exec_ext in '' $ac_executable_extensions; do
2551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2552 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2563 if test -n "$CC"; then
2564 { echo "$as_me:$LINENO: result: $CC" >&5
2565 echo "${ECHO_T}$CC" >&6; }
2567 { echo "$as_me:$LINENO: result: no" >&5
2568 echo "${ECHO_T}no" >&6; }
2572 test -n "$CC" && break
2575 if test -z "$CC"; then
2577 for ac_prog in cl.exe
2579 # Extract the first word of "$ac_prog", so it can be a program name with args.
2580 set dummy $ac_prog; ac_word=$2
2581 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2583 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2584 echo $ECHO_N "(cached) $ECHO_C" >&6
2586 if test -n "$ac_ct_CC"; then
2587 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593 test -z "$as_dir" && as_dir=.
2594 for ac_exec_ext in '' $ac_executable_extensions; do
2595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2596 ac_cv_prog_ac_ct_CC="$ac_prog"
2597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2606 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2607 if test -n "$ac_ct_CC"; then
2608 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2609 echo "${ECHO_T}$ac_ct_CC" >&6; }
2611 { echo "$as_me:$LINENO: result: no" >&5
2612 echo "${ECHO_T}no" >&6; }
2616 test -n "$ac_ct_CC" && break
2619 if test "x$ac_ct_CC" = x; then
2622 case $cross_compiling:$ac_tool_warned in
2624 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2625 whose name does not start with the host triplet. If you think this
2626 configuration is useful to you, please write to autoconf@gnu.org." >&5
2627 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2628 whose name does not start with the host triplet. If you think this
2629 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2630 ac_tool_warned=yes ;;
2639 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2640 See \`config.log
' for more details." >&5
2641 echo "$as_me: error: no acceptable C compiler found in \$PATH
2642 See \`config.log' for more details.
" >&2;}
2643 { (exit 1); exit 1; }; }
2645 # Provide some information about the compiler.
2646 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2647 ac_compiler=`set X $ac_compile; echo $2`
2648 { (ac_try="$ac_compiler --version >&5"
2650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2651 *) ac_try_echo=$ac_try;;
2653 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2654 (eval "$ac_compiler --version >&5") 2>&5
2656 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2657 (exit $ac_status); }
2658 { (ac_try="$ac_compiler -v >&5"
2660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2661 *) ac_try_echo=$ac_try;;
2663 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2664 (eval "$ac_compiler -v >&5") 2>&5
2666 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2667 (exit $ac_status); }
2668 { (ac_try="$ac_compiler -V >&5"
2670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2671 *) ac_try_echo=$ac_try;;
2673 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2674 (eval "$ac_compiler -V >&5") 2>&5
2676 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2677 (exit $ac_status); }
2679 cat >conftest.$ac_ext <<_ACEOF
2682 cat confdefs.h >>conftest.$ac_ext
2683 cat >>conftest.$ac_ext <<_ACEOF
2684 /* end confdefs.h. */
2694 ac_clean_files_save=$ac_clean_files
2695 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2696 # Try to create an executable without -o first, disregard a.out.
2697 # It will help us diagnose broken compilers, and finding out an intuition
2699 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2700 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2701 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2703 # List of possible output files, starting from the most likely.
2704 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2705 # only as a last resort. b.out is created by i960 compilers.
2706 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2708 # The IRIX 6 linker writes into existing files which may not be
2709 # executable, retaining their permissions. Remove them first so a
2710 # subsequent execution test works.
2712 for ac_file in $ac_files
2715 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2716 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2721 if { (ac_try="$ac_link_default"
2723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2724 *) ac_try_echo=$ac_try;;
2726 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2727 (eval "$ac_link_default") 2>&5
2729 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2730 (exit $ac_status); }; then
2731 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2732 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2733 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2734 # so that the user can short-circuit this test for compilers unknown to
2736 for ac_file in $ac_files ''
2738 test -f "$ac_file" || continue
2740 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2743 # We found the default executable, but exeext='' is most
2747 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2749 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2751 # We set ac_cv_exeext here because the later test for it is not
2752 # safe: cross compilers may not add the suffix if given an `-o'
2753 # argument, so we may need to know it at that point already.
2754 # Even if this section looks crufty: it has the advantage of
2761 test "$ac_cv_exeext" = no && ac_cv_exeext=
2767 { echo "$as_me:$LINENO: result
: $ac_file" >&5
2768 echo "${ECHO_T}$ac_file" >&6; }
2769 if test -z "$ac_file"; then
2770 echo "$as_me: failed program was
:" >&5
2771 sed 's/^/| /' conftest.$ac_ext >&5
2773 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2774 See \
`config.log' for more details." >&5
2775 echo "$as_me: error: C compiler cannot create executables
2776 See \`config.log
' for more details." >&2;}
2777 { (exit 77); exit 77; }; }
2780 ac_exeext=$ac_cv_exeext
2782 # Check that the compiler produces executables we can run. If not, either
2783 # the compiler is broken, or we cross compile.
2784 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2785 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2786 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2787 # If not cross compiling, check that we can run a simple program.
2788 if test "$cross_compiling" != yes; then
2789 if { ac_try='.
/$ac_file'
2790 { (case "(($ac_try" in
2791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2792 *) ac_try_echo=$ac_try;;
2794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2795 (eval "$ac_try") 2>&5
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); }; }; then
2801 if test "$cross_compiling" = maybe; then
2804 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2805 If you meant to cross compile, use \`--host'.
2806 See \
`config.log' for more details." >&5
2807 echo "$as_me: error: cannot run C compiled programs.
2808 If you meant to cross compile, use \`--host'.
2809 See \`config.log' for more details.
" >&2;}
2810 { (exit 1); exit 1; }; }
2814 { echo "$as_me:$LINENO: result
: yes" >&5
2815 echo "${ECHO_T}yes" >&6; }
2817 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2818 ac_clean_files=$ac_clean_files_save
2819 # Check that the compiler produces executables we can run. If not, either
2820 # the compiler is broken, or we cross compile.
2821 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2822 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2823 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2824 echo "${ECHO_T}$cross_compiling" >&6; }
2826 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2827 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2828 if { (ac_try="$ac_link"
2830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2831 *) ac_try_echo=$ac_try;;
2833 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2834 (eval "$ac_link") 2>&5
2836 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2837 (exit $ac_status); }; then
2838 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2839 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2840 # work properly (i.e., refer to `conftest.exe'), while it won't with
2842 for ac_file in conftest.exe conftest conftest.*; do
2843 test -f "$ac_file" || continue
2845 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2846 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2852 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2853 See \
`config.log' for more details." >&5
2854 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2855 See \`config.log
' for more details." >&2;}
2856 { (exit 1); exit 1; }; }
2859 rm -f conftest$ac_cv_exeext
2860 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2861 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2863 rm -f conftest.$ac_ext
2864 EXEEXT=$ac_cv_exeext
2866 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2867 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2868 if test "${ac_cv_objext+set}" = set; then
2869 echo $ECHO_N "(cached) $ECHO_C" >&6
2871 cat >conftest.$ac_ext <<_ACEOF
2874 cat confdefs.h >>conftest.$ac_ext
2875 cat >>conftest.$ac_ext <<_ACEOF
2876 /* end confdefs.h. */
2886 rm -f conftest.o conftest.obj
2887 if { (ac_try="$ac_compile"
2889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2890 *) ac_try_echo=$ac_try;;
2892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2893 (eval "$ac_compile") 2>&5
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); }; then
2897 for ac_file in conftest.o conftest.obj conftest.*; do
2898 test -f "$ac_file" || continue;
2900 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2901 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2906 echo "$as_me: failed program was:" >&5
2907 sed 's
/^
/|
/' conftest.$ac_ext >&5
2909 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2910 See \`config.log' for more details.
" >&5
2911 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
2912 See \
`config.log' for more details." >&2;}
2913 { (exit 1); exit 1; }; }
2916 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2918 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2919 echo "${ECHO_T}$ac_cv_objext" >&6; }
2920 OBJEXT=$ac_cv_objext
2922 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2923 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2924 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2925 echo $ECHO_N "(cached) $ECHO_C" >&6
2927 cat >conftest.$ac_ext <<_ACEOF
2930 cat confdefs.h >>conftest.$ac_ext
2931 cat >>conftest.$ac_ext <<_ACEOF
2932 /* end confdefs.h. */
2945 rm -f conftest.$ac_objext
2946 if { (ac_try="$ac_compile"
2948 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2949 *) ac_try_echo
=$ac_try;;
2951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2952 (eval "$ac_compile") 2>conftest.er1
2954 grep -v '^ *+' conftest.er1
>conftest.err
2956 cat conftest.err
>&5
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); } && {
2959 test -z "$ac_c_werror_flag" ||
2960 test ! -s conftest.err
2961 } && test -s conftest.
$ac_objext; then
2964 echo "$as_me: failed program was:" >&5
2965 sed 's/^/| /' conftest.
$ac_ext >&5
2970 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2971 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2974 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2975 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2976 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2977 ac_test_CFLAGS
=${CFLAGS+set}
2978 ac_save_CFLAGS
=$CFLAGS
2979 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2980 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2981 if test "${ac_cv_prog_cc_g+set}" = set; then
2982 echo $ECHO_N "(cached) $ECHO_C" >&6
2984 ac_save_c_werror_flag
=$ac_c_werror_flag
2985 ac_c_werror_flag
=yes
2988 cat >conftest.
$ac_ext <<_ACEOF
2991 cat confdefs.h
>>conftest.
$ac_ext
2992 cat >>conftest.
$ac_ext <<_ACEOF
2993 /* end confdefs.h. */
3003 rm -f conftest.
$ac_objext
3004 if { (ac_try
="$ac_compile"
3006 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3007 *) ac_try_echo=$ac_try;;
3009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3010 (eval "$ac_compile") 2>conftest.er1
3012 grep -v '^ *+' conftest.er1 >conftest.err
3014 cat conftest.err >&5
3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016 (exit $ac_status); } && {
3017 test -z "$ac_c_werror_flag" ||
3018 test ! -s conftest.err
3019 } && test -s conftest.$ac_objext; then
3022 echo "$as_me: failed program was:" >&5
3023 sed 's/^/| /' conftest.$ac_ext >&5
3026 cat >conftest.$ac_ext <<_ACEOF
3029 cat confdefs.h >>conftest.$ac_ext
3030 cat >>conftest.$ac_ext <<_ACEOF
3031 /* end confdefs.h. */
3041 rm -f conftest.$ac_objext
3042 if { (ac_try="$ac_compile"
3044 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3045 *) ac_try_echo
=$ac_try;;
3047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3048 (eval "$ac_compile") 2>conftest.er1
3050 grep -v '^ *+' conftest.er1
>conftest.err
3052 cat conftest.err
>&5
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); } && {
3055 test -z "$ac_c_werror_flag" ||
3056 test ! -s conftest.err
3057 } && test -s conftest.
$ac_objext; then
3060 echo "$as_me: failed program was:" >&5
3061 sed 's/^/| /' conftest.
$ac_ext >&5
3063 ac_c_werror_flag
=$ac_save_c_werror_flag
3065 cat >conftest.
$ac_ext <<_ACEOF
3068 cat confdefs.h
>>conftest.
$ac_ext
3069 cat >>conftest.
$ac_ext <<_ACEOF
3070 /* end confdefs.h. */
3080 rm -f conftest.
$ac_objext
3081 if { (ac_try
="$ac_compile"
3083 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3084 *) ac_try_echo=$ac_try;;
3086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3087 (eval "$ac_compile") 2>conftest.er1
3089 grep -v '^ *+' conftest.er1 >conftest.err
3091 cat conftest.err >&5
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); } && {
3094 test -z "$ac_c_werror_flag" ||
3095 test ! -s conftest.err
3096 } && test -s conftest.$ac_objext; then
3099 echo "$as_me: failed program was:" >&5
3100 sed 's/^/| /' conftest.$ac_ext >&5
3105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3112 ac_c_werror_flag=$ac_save_c_werror_flag
3114 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3115 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3116 if test "$ac_test_CFLAGS" = set; then
3117 CFLAGS=$ac_save_CFLAGS
3118 elif test $ac_cv_prog_cc_g = yes; then
3119 if test "$GCC" = yes; then
3125 if test "$GCC" = yes; then
3131 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3132 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3133 if test "${ac_cv_prog_cc_c89+set}" = set; then
3134 echo $ECHO_N "(cached) $ECHO_C" >&6
3136 ac_cv_prog_cc_c89=no
3138 cat >conftest.$ac_ext <<_ACEOF
3141 cat confdefs.h >>conftest.$ac_ext
3142 cat >>conftest.$ac_ext <<_ACEOF
3143 /* end confdefs.h. */
3146 #include <sys/types.h>
3147 #include <sys/stat.h>
3148 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3149 struct buf { int x; };
3150 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3151 static char *e (p, i)
3157 static char *f (char * (*g) (char **, int), char **p, ...)
3162 s = g (p, va_arg (v,int));
3167 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3168 function prototypes and stuff, but not '\xHH' hex character constants.
3169 These don't provoke an error unfortunately, instead are silently treated
3170 as 'x'. The following induces an error, until -std is added to get
3171 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3172 array size at least. It's necessary to write '\x00'==0 to get something
3173 that's true only with -std. */
3174 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3176 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3177 inside strings and character constants. */
3179 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3181 int test (int i, double x);
3182 struct s1 {int (*f) (int a);};
3183 struct s2 {int (*f) (double a);};
3184 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3190 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3195 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3196 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3198 CC="$ac_save_CC $ac_arg"
3199 rm -f conftest.$ac_objext
3200 if { (ac_try="$ac_compile"
3202 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3203 *) ac_try_echo
=$ac_try;;
3205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3206 (eval "$ac_compile") 2>conftest.er1
3208 grep -v '^ *+' conftest.er1
>conftest.err
3210 cat conftest.err
>&5
3211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212 (exit $ac_status); } && {
3213 test -z "$ac_c_werror_flag" ||
3214 test ! -s conftest.err
3215 } && test -s conftest.
$ac_objext; then
3216 ac_cv_prog_cc_c89
=$ac_arg
3218 echo "$as_me: failed program was:" >&5
3219 sed 's/^/| /' conftest.
$ac_ext >&5
3224 rm -f core conftest.err conftest.
$ac_objext
3225 test "x$ac_cv_prog_cc_c89" != "xno" && break
3227 rm -f conftest.
$ac_ext
3232 case "x$ac_cv_prog_cc_c89" in
3234 { echo "$as_me:$LINENO: result: none needed" >&5
3235 echo "${ECHO_T}none needed" >&6; } ;;
3237 { echo "$as_me:$LINENO: result: unsupported" >&5
3238 echo "${ECHO_T}unsupported" >&6; } ;;
3240 CC
="$CC $ac_cv_prog_cc_c89"
3241 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3242 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3247 ac_cpp
='$CPP $CPPFLAGS'
3248 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3249 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3250 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3255 { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
3256 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; }
3258 # Check whether --with-cxx_main was given.
3259 if test "${with_cxx_main+set}" = set; then
3260 withval
=$with_cxx_main;
3263 no
) with_cxx_main
=no
3265 yes) with_cxx_main
=yes
3267 *) with_cxx_main
=yes
3281 { echo "$as_me:$LINENO: result: $with_cxx_main" >&5
3282 echo "${ECHO_T}$with_cxx_main" >&6; }
3288 gcc
) # Extract the first word of "g++", so it can be a program name with args.
3289 set dummy g
++; ac_word
=$2
3290 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3292 if test "${ac_cv_path_CXX+set}" = set; then
3293 echo $ECHO_N "(cached) $ECHO_C" >&6
3297 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
3300 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3301 for as_dir
in notfound
3304 test -z "$as_dir" && as_dir
=.
3305 for ac_exec_ext
in '' $ac_executable_extensions; do
3306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3307 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
3308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3315 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="g++"
3320 if test -n "$CXX"; then
3321 { echo "$as_me:$LINENO: result: $CXX" >&5
3322 echo "${ECHO_T}$CXX" >&6; }
3324 { echo "$as_me:$LINENO: result: no" >&5
3325 echo "${ECHO_T}no" >&6; }
3329 cc
) # Extract the first word of "c++", so it can be a program name with args.
3330 set dummy c
++; ac_word
=$2
3331 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3333 if test "${ac_cv_path_CXX+set}" = set; then
3334 echo $ECHO_N "(cached) $ECHO_C" >&6
3338 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
3341 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3342 for as_dir
in notfound
3345 test -z "$as_dir" && as_dir
=.
3346 for ac_exec_ext
in '' $ac_executable_extensions; do
3347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3348 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
3349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3356 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="c++"
3361 if test -n "$CXX"; then
3362 { echo "$as_me:$LINENO: result: $CXX" >&5
3363 echo "${ECHO_T}$CXX" >&6; }
3365 { echo "$as_me:$LINENO: result: no" >&5
3366 echo "${ECHO_T}no" >&6; }
3371 if test "$CXX" = "notfound"
3378 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
3380 # Extract the first word of "$ac_prog", so it can be a program name with args.
3381 set dummy
$ac_prog; ac_word
=$2
3382 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3384 if test "${ac_cv_prog_CXX+set}" = set; then
3385 echo $ECHO_N "(cached) $ECHO_C" >&6
3387 if test -n "$CXX"; then
3388 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
3390 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3394 test -z "$as_dir" && as_dir
=.
3395 for ac_exec_ext
in '' $ac_executable_extensions; do
3396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3397 ac_cv_prog_CXX
="$ac_prog"
3398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3408 if test -n "$CXX"; then
3409 { echo "$as_me:$LINENO: result: $CXX" >&5
3410 echo "${ECHO_T}$CXX" >&6; }
3412 { echo "$as_me:$LINENO: result: no" >&5
3413 echo "${ECHO_T}no" >&6; }
3417 test -n "$CXX" && break
3419 test -n "$CXX" || CXX
="notfound"
3421 if test "$CXX" = "notfound"
3426 if test "$preset_cxx" != "$CXX"
3428 { echo "$as_me:$LINENO: WARNING:
3430 By default, distutils will build C++ extension modules with \"$CXX\".
3431 If this is not intended, then set CXX on the configure command line.
3433 echo "$as_me: WARNING:
3435 By default, distutils will build C++ extension modules with \"$CXX\".
3436 If this is not intended, then set CXX on the configure command line.
3441 # checks for UNIX variants that set C preprocessor variables
3444 ac_cpp
='$CPP $CPPFLAGS'
3445 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3446 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3447 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3448 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3449 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3450 # On Suns, sometimes $CPP names a directory.
3451 if test -n "$CPP" && test -d "$CPP"; then
3454 if test -z "$CPP"; then
3455 if test "${ac_cv_prog_CPP+set}" = set; then
3456 echo $ECHO_N "(cached) $ECHO_C" >&6
3458 # Double quotes because CPP needs to be expanded
3459 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3462 for ac_c_preproc_warn_flag
in '' yes
3464 # Use a header file that comes with gcc, so configuring glibc
3465 # with a fresh cross-compiler works.
3466 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3467 # <limits.h> exists even on freestanding compilers.
3468 # On the NeXT, cc -E runs the code through the compiler's parser,
3469 # not just through cpp. "Syntax error" is here to catch this case.
3470 cat >conftest.
$ac_ext <<_ACEOF
3473 cat confdefs.h
>>conftest.
$ac_ext
3474 cat >>conftest.
$ac_ext <<_ACEOF
3475 /* end confdefs.h. */
3477 # include <limits.h>
3479 # include <assert.h>
3483 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3485 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3486 *) ac_try_echo=$ac_try;;
3488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3491 grep -v '^ *+' conftest.er1 >conftest.err
3493 cat conftest.err >&5
3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); } >/dev/null && {
3496 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3497 test ! -s conftest.err
3501 echo "$as_me: failed program was:" >&5
3502 sed 's/^/| /' conftest.$ac_ext >&5
3504 # Broken: fails on valid input.
3508 rm -f conftest.err conftest.$ac_ext
3510 # OK, works on sane cases. Now check whether nonexistent headers
3511 # can be detected and how.
3512 cat >conftest.$ac_ext <<_ACEOF
3515 cat confdefs.h >>conftest.$ac_ext
3516 cat >>conftest.$ac_ext <<_ACEOF
3517 /* end confdefs.h. */
3518 #include <ac_nonexistent.h>
3520 if { (ac_try="$ac_cpp conftest.$ac_ext"
3522 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3523 *) ac_try_echo
=$ac_try;;
3525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3526 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3528 grep -v '^ *+' conftest.er1
>conftest.err
3530 cat conftest.err
>&5
3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532 (exit $ac_status); } >/dev
/null
&& {
3533 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3534 test ! -s conftest.err
3536 # Broken: success on invalid input.
3539 echo "$as_me: failed program was:" >&5
3540 sed 's/^/| /' conftest.
$ac_ext >&5
3542 # Passes both tests.
3547 rm -f conftest.err conftest.
$ac_ext
3550 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3551 rm -f conftest.err conftest.
$ac_ext
3552 if $ac_preproc_ok; then
3564 { echo "$as_me:$LINENO: result: $CPP" >&5
3565 echo "${ECHO_T}$CPP" >&6; }
3567 for ac_c_preproc_warn_flag
in '' yes
3569 # Use a header file that comes with gcc, so configuring glibc
3570 # with a fresh cross-compiler works.
3571 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3572 # <limits.h> exists even on freestanding compilers.
3573 # On the NeXT, cc -E runs the code through the compiler's parser,
3574 # not just through cpp. "Syntax error" is here to catch this case.
3575 cat >conftest.
$ac_ext <<_ACEOF
3578 cat confdefs.h
>>conftest.
$ac_ext
3579 cat >>conftest.
$ac_ext <<_ACEOF
3580 /* end confdefs.h. */
3582 # include <limits.h>
3584 # include <assert.h>
3588 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3590 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3591 *) ac_try_echo=$ac_try;;
3593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3596 grep -v '^ *+' conftest.er1 >conftest.err
3598 cat conftest.err >&5
3599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); } >/dev/null && {
3601 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3602 test ! -s conftest.err
3606 echo "$as_me: failed program was:" >&5
3607 sed 's/^/| /' conftest.$ac_ext >&5
3609 # Broken: fails on valid input.
3613 rm -f conftest.err conftest.$ac_ext
3615 # OK, works on sane cases. Now check whether nonexistent headers
3616 # can be detected and how.
3617 cat >conftest.$ac_ext <<_ACEOF
3620 cat confdefs.h >>conftest.$ac_ext
3621 cat >>conftest.$ac_ext <<_ACEOF
3622 /* end confdefs.h. */
3623 #include <ac_nonexistent.h>
3625 if { (ac_try="$ac_cpp conftest.$ac_ext"
3627 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3628 *) ac_try_echo
=$ac_try;;
3630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3631 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3633 grep -v '^ *+' conftest.er1
>conftest.err
3635 cat conftest.err
>&5
3636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637 (exit $ac_status); } >/dev
/null
&& {
3638 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3639 test ! -s conftest.err
3641 # Broken: success on invalid input.
3644 echo "$as_me: failed program was:" >&5
3645 sed 's/^/| /' conftest.
$ac_ext >&5
3647 # Passes both tests.
3652 rm -f conftest.err conftest.
$ac_ext
3655 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3656 rm -f conftest.err conftest.
$ac_ext
3657 if $ac_preproc_ok; then
3660 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3661 See \`config.log' for more details." >&5
3662 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3663 See \`config.log' for more details." >&2;}
3664 { (exit 1); exit 1; }; }
3668 ac_cpp
='$CPP $CPPFLAGS'
3669 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3670 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3671 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3674 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3675 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3676 if test "${ac_cv_path_GREP+set}" = set; then
3677 echo $ECHO_N "(cached) $ECHO_C" >&6
3679 # Extract the first word of "grep ggrep" to use in msg output
3680 if test -z "$GREP"; then
3681 set dummy
grep ggrep
; ac_prog_name
=$2
3682 if test "${ac_cv_path_GREP+set}" = set; then
3683 echo $ECHO_N "(cached) $ECHO_C" >&6
3685 ac_path_GREP_found
=false
3686 # Loop through the user's path and test for each of PROGNAME-LIST
3687 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3688 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3691 test -z "$as_dir" && as_dir
=.
3692 for ac_prog
in grep ggrep
; do
3693 for ac_exec_ext
in '' $ac_executable_extensions; do
3694 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3695 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3696 # Check for GNU ac_path_GREP and select it if it is found.
3697 # Check for GNU $ac_path_GREP
3698 case `"$ac_path_GREP" --version 2>&1` in
3700 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3703 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3706 cat "conftest.in" "conftest.in" >"conftest.tmp"
3707 mv "conftest.tmp" "conftest.in"
3708 cp "conftest.in" "conftest.nl"
3709 echo 'GREP' >> "conftest.nl"
3710 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3711 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3712 ac_count
=`expr $ac_count + 1`
3713 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3714 # Best one so far, save it but keep looking for a better one
3715 ac_cv_path_GREP
="$ac_path_GREP"
3716 ac_path_GREP_max
=$ac_count
3718 # 10*(2^10) chars as input seems more than enough
3719 test $ac_count -gt 10 && break
3721 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3725 $ac_path_GREP_found && break 3
3735 GREP
="$ac_cv_path_GREP"
3736 if test -z "$GREP"; then
3737 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3738 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3739 { (exit 1); exit 1; }; }
3743 ac_cv_path_GREP
=$GREP
3748 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3749 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3750 GREP
="$ac_cv_path_GREP"
3753 { echo "$as_me:$LINENO: checking for egrep" >&5
3754 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3755 if test "${ac_cv_path_EGREP+set}" = set; then
3756 echo $ECHO_N "(cached) $ECHO_C" >&6
3758 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3759 then ac_cv_path_EGREP
="$GREP -E"
3761 # Extract the first word of "egrep" to use in msg output
3762 if test -z "$EGREP"; then
3763 set dummy
egrep; ac_prog_name
=$2
3764 if test "${ac_cv_path_EGREP+set}" = set; then
3765 echo $ECHO_N "(cached) $ECHO_C" >&6
3767 ac_path_EGREP_found
=false
3768 # Loop through the user's path and test for each of PROGNAME-LIST
3769 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3770 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3773 test -z "$as_dir" && as_dir
=.
3774 for ac_prog
in egrep; do
3775 for ac_exec_ext
in '' $ac_executable_extensions; do
3776 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3777 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3778 # Check for GNU ac_path_EGREP and select it if it is found.
3779 # Check for GNU $ac_path_EGREP
3780 case `"$ac_path_EGREP" --version 2>&1` in
3782 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3785 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3788 cat "conftest.in" "conftest.in" >"conftest.tmp"
3789 mv "conftest.tmp" "conftest.in"
3790 cp "conftest.in" "conftest.nl"
3791 echo 'EGREP' >> "conftest.nl"
3792 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3793 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3794 ac_count
=`expr $ac_count + 1`
3795 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3796 # Best one so far, save it but keep looking for a better one
3797 ac_cv_path_EGREP
="$ac_path_EGREP"
3798 ac_path_EGREP_max
=$ac_count
3800 # 10*(2^10) chars as input seems more than enough
3801 test $ac_count -gt 10 && break
3803 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3807 $ac_path_EGREP_found && break 3
3817 EGREP
="$ac_cv_path_EGREP"
3818 if test -z "$EGREP"; then
3819 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3820 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3821 { (exit 1); exit 1; }; }
3825 ac_cv_path_EGREP
=$EGREP
3831 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3832 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3833 EGREP
="$ac_cv_path_EGREP"
3837 { echo "$as_me:$LINENO: checking for AIX" >&5
3838 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3839 cat >conftest.
$ac_ext <<_ACEOF
3842 cat confdefs.h
>>conftest.
$ac_ext
3843 cat >>conftest.
$ac_ext <<_ACEOF
3844 /* end confdefs.h. */
3850 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3851 $EGREP "yes" >/dev
/null
2>&1; then
3852 { echo "$as_me:$LINENO: result: yes" >&5
3853 echo "${ECHO_T}yes" >&6; }
3854 cat >>confdefs.h
<<\_ACEOF
3855 #define _ALL_SOURCE 1
3859 { echo "$as_me:$LINENO: result: no" >&5
3860 echo "${ECHO_T}no" >&6; }
3866 # Check for unsupported systems
3867 case $ac_sys_system/$ac_sys_release in
3869 echo This system \
($ac_sys_system/$ac_sys_release\
) is no longer supported.
3870 echo See README
for details.
3875 { echo "$as_me:$LINENO: checking for --with-suffix" >&5
3876 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; }
3878 # Check whether --with-suffix was given.
3879 if test "${with_suffix+set}" = set; then
3880 withval
=$with_suffix;
3884 *) EXEEXT
=$withval;;
3888 { echo "$as_me:$LINENO: result: $EXEEXT" >&5
3889 echo "${ECHO_T}$EXEEXT" >&6; }
3891 # Test whether we're running on a non-case-sensitive system, in which
3892 # case we give a warning if no ext is given
3894 { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3895 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; }
3896 if test ! -d CaseSensitiveTestDir
; then
3897 mkdir CaseSensitiveTestDir
3900 if test -d casesensitivetestdir
3902 { echo "$as_me:$LINENO: result: yes" >&5
3903 echo "${ECHO_T}yes" >&6; }
3906 { echo "$as_me:$LINENO: result: no" >&5
3907 echo "${ECHO_T}no" >&6; }
3910 rmdir CaseSensitiveTestDir
3915 gcc
) CC
="$CC -D_HAVE_BSDI";;
3919 case $ac_sys_system in
3922 cc|
*/cc
) CC
="$CC -Ae";;
3925 # Some functions have a prototype only with that define, e.g. confstr
3927 cat >>confdefs.h
<<\_ACEOF
3928 #define __EXTENSIONS__ 1
3936 { echo "$as_me:$LINENO: checking LIBRARY" >&5
3937 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; }
3938 if test -z "$LIBRARY"
3940 LIBRARY
='libpython$(VERSION).a'
3942 { echo "$as_me:$LINENO: result: $LIBRARY" >&5
3943 echo "${ECHO_T}$LIBRARY" >&6; }
3945 # LDLIBRARY is the name of the library to link against (as opposed to the
3946 # name of the library into which to insert object files). BLDLIBRARY is also
3947 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3948 # is blank as the main program is not linked directly against LDLIBRARY.
3949 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3950 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3951 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3952 # DLLLIBRARY is the shared (i.e., DLL) library.
3954 # RUNSHARED is used to run shared python without installed libraries
3956 # INSTSONAME is the name of the shared library that will be use to install
3957 # on the system - some systems like version suffix, others don't
3964 LDLIBRARY
="$LIBRARY"
3965 BLDLIBRARY
='$(LDLIBRARY)'
3966 INSTSONAME
='$(LDLIBRARY)'
3971 # LINKCC is the command that links the python executable -- default is $(CC).
3972 # If CXX is set, and if it is needed to link a main function that was
3973 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3974 # python might then depend on the C++ runtime
3975 # This is altered for AIX in order to build the export list before
3978 { echo "$as_me:$LINENO: checking LINKCC" >&5
3979 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; }
3980 if test -z "$LINKCC"
3982 LINKCC
='$(PURIFY) $(MAINCC)'
3983 case $ac_sys_system in
3986 if test $ac_sys_release -ge 5 -o \
3987 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3990 LINKCC
="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3992 # qcc must be used because the other compilers do not
3997 { echo "$as_me:$LINENO: result: $LINKCC" >&5
3998 echo "${ECHO_T}$LINKCC" >&6; }
4000 # GNULD is set to "yes" if the GNU linker is used. If this goes wrong
4001 # make sure we default having it set to "no": this is used by
4002 # distutils.unixccompiler to know if it should add --enable-new-dtags
4003 # to linker command lines, and failing to detect GNU ld simply results
4004 # in the same bahaviour as before.
4006 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4007 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4009 if test "$GCC" = yes; then
4010 ac_prog
=`$CC -print-prog-name=ld`
4012 case `"$ac_prog" -V 2>&1 < /dev/null` in
4018 { echo "$as_me:$LINENO: result: $GNULD" >&5
4019 echo "${ECHO_T}$GNULD" >&6; }
4021 { echo "$as_me:$LINENO: checking for --enable-shared" >&5
4022 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; }
4023 # Check whether --enable-shared was given.
4024 if test "${enable_shared+set}" = set; then
4025 enableval
=$enable_shared;
4029 if test -z "$enable_shared"
4031 case $ac_sys_system in
4033 enable_shared
="yes";;
4035 enable_shared
="no";;
4038 { echo "$as_me:$LINENO: result: $enable_shared" >&5
4039 echo "${ECHO_T}$enable_shared" >&6; }
4041 { echo "$as_me:$LINENO: checking for --enable-profiling" >&5
4042 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; }
4043 # Check whether --enable-profiling was given.
4044 if test "${enable_profiling+set}" = set; then
4045 enableval
=$enable_profiling; ac_save_cc
="$CC"
4047 if test "$cross_compiling" = yes; then
4048 ac_enable_profiling
="no"
4050 cat >conftest.
$ac_ext <<_ACEOF
4053 cat confdefs.h
>>conftest.
$ac_ext
4054 cat >>conftest.
$ac_ext <<_ACEOF
4055 /* end confdefs.h. */
4056 int main() { return 0; }
4058 rm -f conftest
$ac_exeext
4059 if { (ac_try
="$ac_link"
4061 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4062 *) ac_try_echo=$ac_try;;
4064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4065 (eval "$ac_link") 2>&5
4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4069 { (case "(($ac_try" in
4070 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4071 *) ac_try_echo
=$ac_try;;
4073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4074 (eval "$ac_try") 2>&5
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); }; }; then
4078 ac_enable_profiling
="yes"
4080 echo "$as_me: program exited with status $ac_status" >&5
4081 echo "$as_me: failed program was:" >&5
4082 sed 's/^/| /' conftest.
$ac_ext >&5
4085 ac_enable_profiling
="no"
4087 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4094 { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
4095 echo "${ECHO_T}$ac_enable_profiling" >&6; }
4097 case "$ac_enable_profiling" in
4099 BASECFLAGS
="-pg $BASECFLAGS"
4100 LDFLAGS
="-pg $LDFLAGS"
4104 { echo "$as_me:$LINENO: checking LDLIBRARY" >&5
4105 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; }
4107 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
4108 # library that we build, but we do not want to link against it (we
4109 # will find it with a -framework option). For this reason there is an
4110 # extra variable BLDLIBRARY against which Python and the extension
4111 # modules are linked, BLDLIBRARY. This is normally the same as
4112 # LDLIBRARY, but empty for MacOSX framework builds.
4113 if test "$enable_framework"
4115 LDLIBRARY
='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
4116 RUNSHARED
=DYLD_FRAMEWORK_PATH
="`pwd`:$DYLD_FRAMEWORK_PATH"
4119 BLDLIBRARY
='$(LDLIBRARY)'
4122 # Other platforms follow
4123 if test $enable_shared = "yes"; then
4125 cat >>confdefs.h
<<\_ACEOF
4126 #define Py_ENABLE_SHARED 1
4129 case $ac_sys_system in
4131 LDLIBRARY
='libpython$(VERSION).so'
4134 LDLIBRARY
='libpython$(VERSION).dll.a'
4135 DLLLIBRARY
='libpython$(VERSION).dll'
4138 LDLIBRARY
='libpython$(VERSION).so'
4139 BLDLIBRARY
='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
4140 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4141 INSTSONAME
="$LDLIBRARY".
$SOVERSION
4143 Linux
*|GNU
*|NetBSD
*|FreeBSD
*|DragonFly
*)
4144 LDLIBRARY
='libpython$(VERSION).so'
4145 BLDLIBRARY
='-L. -lpython$(VERSION)'
4146 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4147 case $ac_sys_system in
4149 SOVERSION
=`echo $SOVERSION|cut -d "." -f 1`
4152 INSTSONAME
="$LDLIBRARY".
$SOVERSION
4157 LDLIBRARY
='libpython$(VERSION).so'
4160 LDLIBRARY
='libpython$(VERSION).sl'
4163 BLDLIBRARY
='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
4164 RUNSHARED
=SHLIB_PATH
=`pwd`:${SHLIB_PATH}
4167 LDLIBRARY
='libpython$(VERSION).so'
4168 BLDLIBRARY
='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
4169 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4172 LDLIBRARY
='libpython$(VERSION).so'
4173 BLDLIBRARY
='-L. -lpython$(VERSION)'
4174 RUNSHARED
=DLL_PATH
=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
4177 LDLIBRARY
='libpython$(VERSION).dylib'
4178 BLDLIBRARY
='-L. -lpython$(VERSION)'
4179 RUNSHARED
='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}'
4183 else # shared is disabled
4184 case $ac_sys_system in
4186 BLDLIBRARY
='$(LIBRARY)'
4187 LDLIBRARY
='libpython$(VERSION).dll.a'
4192 { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
4193 echo "${ECHO_T}$LDLIBRARY" >&6; }
4195 if test -n "$ac_tool_prefix"; then
4196 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4197 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4198 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4200 if test "${ac_cv_prog_RANLIB+set}" = set; then
4201 echo $ECHO_N "(cached) $ECHO_C" >&6
4203 if test -n "$RANLIB"; then
4204 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4206 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4210 test -z "$as_dir" && as_dir
=.
4211 for ac_exec_ext
in '' $ac_executable_extensions; do
4212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4213 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4223 RANLIB
=$ac_cv_prog_RANLIB
4224 if test -n "$RANLIB"; then
4225 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4226 echo "${ECHO_T}$RANLIB" >&6; }
4228 { echo "$as_me:$LINENO: result: no" >&5
4229 echo "${ECHO_T}no" >&6; }
4234 if test -z "$ac_cv_prog_RANLIB"; then
4235 ac_ct_RANLIB
=$RANLIB
4236 # Extract the first word of "ranlib", so it can be a program name with args.
4237 set dummy ranlib
; ac_word
=$2
4238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4240 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4241 echo $ECHO_N "(cached) $ECHO_C" >&6
4243 if test -n "$ac_ct_RANLIB"; then
4244 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4246 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4250 test -z "$as_dir" && as_dir
=.
4251 for ac_exec_ext
in '' $ac_executable_extensions; do
4252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4253 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4263 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4264 if test -n "$ac_ct_RANLIB"; then
4265 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4266 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4268 { echo "$as_me:$LINENO: result: no" >&5
4269 echo "${ECHO_T}no" >&6; }
4272 if test "x$ac_ct_RANLIB" = x
; then
4275 case $cross_compiling:$ac_tool_warned in
4277 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4278 whose name does not start with the host triplet. If you think this
4279 configuration is useful to you, please write to autoconf@gnu.org." >&5
4280 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4281 whose name does not start with the host triplet. If you think this
4282 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4283 ac_tool_warned
=yes ;;
4285 RANLIB
=$ac_ct_RANLIB
4288 RANLIB
="$ac_cv_prog_RANLIB"
4292 for ac_prog
in ar aal
4294 # Extract the first word of "$ac_prog", so it can be a program name with args.
4295 set dummy
$ac_prog; ac_word
=$2
4296 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4298 if test "${ac_cv_prog_AR+set}" = set; then
4299 echo $ECHO_N "(cached) $ECHO_C" >&6
4301 if test -n "$AR"; then
4302 ac_cv_prog_AR
="$AR" # Let the user override the test.
4304 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4308 test -z "$as_dir" && as_dir
=.
4309 for ac_exec_ext
in '' $ac_executable_extensions; do
4310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4311 ac_cv_prog_AR
="$ac_prog"
4312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4322 if test -n "$AR"; then
4323 { echo "$as_me:$LINENO: result: $AR" >&5
4324 echo "${ECHO_T}$AR" >&6; }
4326 { echo "$as_me:$LINENO: result: no" >&5
4327 echo "${ECHO_T}no" >&6; }
4331 test -n "$AR" && break
4333 test -n "$AR" || AR
="ar"
4336 # tweak ARFLAGS only if the user didn't set it on the command line
4338 if test -z "$ARFLAGS"
4344 # Extract the first word of "svnversion", so it can be a program name with args.
4345 set dummy svnversion
; ac_word
=$2
4346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4348 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
4349 echo $ECHO_N "(cached) $ECHO_C" >&6
4351 if test -n "$SVNVERSION"; then
4352 ac_cv_prog_SVNVERSION
="$SVNVERSION" # Let the user override the test.
4354 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4358 test -z "$as_dir" && as_dir
=.
4359 for ac_exec_ext
in '' $ac_executable_extensions; do
4360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4361 ac_cv_prog_SVNVERSION
="found"
4362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4369 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION
="not-found"
4372 SVNVERSION
=$ac_cv_prog_SVNVERSION
4373 if test -n "$SVNVERSION"; then
4374 { echo "$as_me:$LINENO: result: $SVNVERSION" >&5
4375 echo "${ECHO_T}$SVNVERSION" >&6; }
4377 { echo "$as_me:$LINENO: result: no" >&5
4378 echo "${ECHO_T}no" >&6; }
4382 if test $SVNVERSION = found
4384 SVNVERSION
="svnversion \$(srcdir)"
4386 SVNVERSION
="echo Unversioned directory"
4391 # install -d does not work on BSDI or HP-UX
4392 if test -z "$INSTALL"
4394 INSTALL
="${srcdir}/install-sh -c"
4398 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4399 if test -f "$ac_dir/install-sh"; then
4401 ac_install_sh
="$ac_aux_dir/install-sh -c"
4403 elif test -f "$ac_dir/install.sh"; then
4405 ac_install_sh
="$ac_aux_dir/install.sh -c"
4407 elif test -f "$ac_dir/shtool"; then
4409 ac_install_sh
="$ac_aux_dir/shtool install -c"
4413 if test -z "$ac_aux_dir"; then
4414 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4415 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4416 { (exit 1); exit 1; }; }
4419 # These three variables are undocumented and unsupported,
4420 # and are intended to be withdrawn in a future Autoconf release.
4421 # They can cause serious problems if a builder's source tree is in a directory
4422 # whose full name contains unusual characters.
4423 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4424 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4425 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4428 # Find a good install program. We prefer a C program (faster),
4429 # so one script is as good as another. But avoid the broken or
4430 # incompatible versions:
4431 # SysV /etc/install, /usr/sbin/install
4432 # SunOS /usr/etc/install
4433 # IRIX /sbin/install
4435 # AmigaOS /C/install, which installs bootblocks on floppy discs
4436 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4437 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4438 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4439 # OS/2's system install, which has a completely different semantic
4440 # ./install, which can be erroneously created by make from ./install.sh.
4441 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4442 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4443 if test -z "$INSTALL"; then
4444 if test "${ac_cv_path_install+set}" = set; then
4445 echo $ECHO_N "(cached) $ECHO_C" >&6
4447 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4451 test -z "$as_dir" && as_dir
=.
4452 # Account for people who put trailing slashes in PATH elements.
4454 .
/ | .
// |
/cC
/* | \
4455 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4456 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4459 # OSF1 and SCO ODT 3.0 have their own names for install.
4460 # Don't use installbsd from OSF since it installs stuff as root
4462 for ac_prog
in ginstall scoinst
install; do
4463 for ac_exec_ext
in '' $ac_executable_extensions; do
4464 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4465 if test $ac_prog = install &&
4466 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4467 # AIX install. It has an incompatible calling convention.
4469 elif test $ac_prog = install &&
4470 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4471 # program-specific install script used by HP pwplus--don't use.
4474 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4487 if test "${ac_cv_path_install+set}" = set; then
4488 INSTALL
=$ac_cv_path_install
4490 # As a last resort, use the slow shell script. Don't cache a
4491 # value for INSTALL within a source directory, because that will
4492 # break other packages using the cache if that directory is
4493 # removed, or if the value is a relative name.
4494 INSTALL
=$ac_install_sh
4497 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4498 echo "${ECHO_T}$INSTALL" >&6; }
4500 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4501 # It thinks the first close brace ends the variable substitution.
4502 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4504 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4506 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4509 # Not every filesystem supports hard links
4511 if test -z "$LN" ; then
4512 case $ac_sys_system in
4514 CYGWIN
*) LN
="ln -s";;
4515 atheos
*) LN
="ln -s";;
4520 # Check for --with-pydebug
4521 { echo "$as_me:$LINENO: checking for --with-pydebug" >&5
4522 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; }
4524 # Check whether --with-pydebug was given.
4525 if test "${with_pydebug+set}" = set; then
4526 withval
=$with_pydebug;
4527 if test "$withval" != no
4530 cat >>confdefs.h
<<\_ACEOF
4534 { echo "$as_me:$LINENO: result: yes" >&5
4535 echo "${ECHO_T}yes" >&6; };
4537 else { echo "$as_me:$LINENO: result: no" >&5
4538 echo "${ECHO_T}no" >&6; }; Py_DEBUG
='false'
4541 { echo "$as_me:$LINENO: result: no" >&5
4542 echo "${ECHO_T}no" >&6; }
4546 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
4547 # merged with this chunk of code?
4549 # Optimizer/debugger flags
4550 # ------------------------
4551 # (The following bit of code is complicated enough - please keep things
4552 # indented properly. Just pretend you're editing Python code. ;-)
4554 # There are two parallel sets of case statements below, one that checks to
4555 # see if OPT was set and one that does BASECFLAGS setting based upon
4556 # compiler and platform. BASECFLAGS tweaks need to be made even if the
4559 # tweak OPT based on compiler and platform, only if the user didn't set
4560 # it on the command line
4566 if test "$CC" != 'g++' ; then
4567 STRICT_PROTO
="-Wstrict-prototypes"
4569 # For gcc 4.x we need to use -fwrapv so lets check if its supported
4570 if "$CC" -v --help 2>/dev
/null |
grep -- -fwrapv > /dev
/null
; then
4573 case $ac_cv_prog_cc_g in
4575 if test "$Py_DEBUG" = 'true' ; then
4576 # Optimization messes up debuggers, so turn it off for
4578 OPT
="-g -Wall $STRICT_PROTO"
4580 OPT
="-g $WRAP -O3 -Wall $STRICT_PROTO"
4584 OPT
="-O3 -Wall $STRICT_PROTO"
4587 case $ac_sys_system in
4588 SCO_SV
*) OPT
="$OPT -m486 -DSCO5"
4601 # The -arch flags for universal builds on OSX
4602 UNIVERSAL_ARCH_FLAGS
=
4605 # tweak BASECFLAGS based on compiler and platform
4608 # Python violates C99 rules, by casting between incompatible
4609 # pointer types. GCC may generate bad code as a result of that,
4610 # so use -fno-strict-aliasing if supported.
4611 { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
4612 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; }
4614 CC
="$CC -fno-strict-aliasing"
4615 if test "${ac_cv_no_strict_aliasing_ok+set}" = set; then
4616 echo $ECHO_N "(cached) $ECHO_C" >&6
4618 cat >conftest.
$ac_ext <<_ACEOF
4621 cat confdefs.h
>>conftest.
$ac_ext
4622 cat >>conftest.
$ac_ext <<_ACEOF
4623 /* end confdefs.h. */
4628 int main() { return 0; }
4633 rm -f conftest.
$ac_objext
4634 if { (ac_try
="$ac_compile"
4636 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4637 *) ac_try_echo=$ac_try;;
4639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4640 (eval "$ac_compile") 2>conftest.er1
4642 grep -v '^ *+' conftest.er1 >conftest.err
4644 cat conftest.err >&5
4645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646 (exit $ac_status); } && {
4647 test -z "$ac_c_werror_flag" ||
4648 test ! -s conftest.err
4649 } && test -s conftest.$ac_objext; then
4650 ac_cv_no_strict_aliasing_ok=yes
4652 echo "$as_me: failed program was:" >&5
4653 sed 's/^/| /' conftest.$ac_ext >&5
4655 ac_cv_no_strict_aliasing_ok=no
4658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4662 { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
4663 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; }
4664 if test $ac_cv_no_strict_aliasing_ok = yes
4666 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
4669 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
4670 # support. Without this, treatment of subnormals doesn't follow
4672 case $ac_sys_machine in
4674 BASECFLAGS="$BASECFLAGS -mieee"
4678 case $ac_sys_system in
4680 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
4682 # is there any other compiler on Darwin besides gcc?
4684 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
4685 # used to be here, but non-Apple gcc doesn't accept them.
4688 if test "${enable_universalsdk}"; then
4689 UNIVERSAL_ARCH_FLAGS=""
4690 if test "$UNIVERSAL_ARCHS" = "32-bit" ; then
4691 UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386"
4693 LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386"
4695 elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then
4696 UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64"
4698 ARCH_RUN_32BIT="true"
4700 elif test "$UNIVERSAL_ARCHS" = "all" ; then
4701 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
4702 LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386"
4703 ARCH_RUN_32BIT="arch -i386 -ppc"
4705 elif test "$UNIVERSAL_ARCHS" = "intel" ; then
4706 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64"
4707 LIPO_32BIT_FLAGS="-extract i386"
4708 ARCH_RUN_32BIT="arch -i386"
4710 elif test "$UNIVERSAL_ARCHS" = "3-way" ; then
4711 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64"
4712 LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386"
4713 ARCH_RUN_32BIT="arch -i386 -ppc7400"
4716 { { echo "$as_me:$LINENO: error: proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" >&5
4717 echo "$as_me: error: proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" >&2;}
4718 { (exit 1); exit 1; }; }
4723 BASECFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
4724 tgt=`sw_vers
-productVersion |
sed 's/\(10\.[0-9]*\).*/\1/'`
4725 if test "${UNIVERSALSDK}" != "/" -a "${tgt}" '>' '10.4' ; then
4726 CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
4730 # Calculate the right deployment target for this build.
4732 cur_target=`sw_vers
-productVersion |
sed 's/\(10\.[0-9]*\).*/\1/'`
4733 if test ${cur_target} '>' 10.2; then
4735 if test ${enable_universalsdk}; then
4736 if test "${UNIVERSAL_ARCHS}" = "all"; then
4737 # Ensure that the default platform for a
4738 # 4-way universal build is OSX 10.5,
4739 # that's the first OS release where
4740 # 4-way builds make sense.
4743 elif test "${UNIVERSAL_ARCHS}" = "3-way"; then
4746 elif test "${UNIVERSAL_ARCHS}" = "intel"; then
4749 elif test "${UNIVERSAL_ARCHS}" = "64-bit"; then
4753 if test `arch
` = "i386"; then
4754 # On Intel macs default to a deployment
4755 # target of 10.4, that's the first OSX
4756 # release with Intel support.
4761 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
4763 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
4764 # environment with a value that is the same as what we'll use
4765 # in the Makefile to ensure that we'll get the same compiler
4766 # environment during configure and build time.
4767 MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
4768 export MACOSX_DEPLOYMENT_TARGET
4769 EXPORT_MACOSX_DEPLOYMENT_TARGET=''
4773 BASECFLAGS="$BASECFLAGS -mieee"
4779 case $ac_sys_system in
4780 OpenUNIX*|UnixWare*)
4781 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
4784 BASECFLAGS="$BASECFLAGS -ieee -std"
4787 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
4793 if test "$Py_DEBUG" = 'true'; then
4799 if test "$ac_arch_flags"
4801 BASECFLAGS="$BASECFLAGS $ac_arch_flags"
4804 # disable check for icc since it seems to pass, but generates a warning
4807 ac_cv_opt_olimit_ok=no
4810 { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
4811 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; }
4812 if test "${ac_cv_opt_olimit_ok+set}" = set; then
4813 echo $ECHO_N "(cached) $ECHO_C" >&6
4816 CC="$CC -OPT:Olimit=0"
4817 cat >conftest.$ac_ext <<_ACEOF
4820 cat confdefs.h >>conftest.$ac_ext
4821 cat >>conftest.$ac_ext <<_ACEOF
4822 /* end confdefs.h. */
4827 int main() { return 0; }
4832 rm -f conftest.$ac_objext
4833 if { (ac_try="$ac_compile"
4835 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4836 *) ac_try_echo
=$ac_try;;
4838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4839 (eval "$ac_compile") 2>conftest.er1
4841 grep -v '^ *+' conftest.er1
>conftest.err
4843 cat conftest.err
>&5
4844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845 (exit $ac_status); } && {
4846 test -z "$ac_c_werror_flag" ||
4847 test ! -s conftest.err
4848 } && test -s conftest.
$ac_objext; then
4849 ac_cv_opt_olimit_ok
=yes
4851 echo "$as_me: failed program was:" >&5
4852 sed 's/^/| /' conftest.
$ac_ext >&5
4854 ac_cv_opt_olimit_ok
=no
4857 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4861 { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
4862 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; }
4863 if test $ac_cv_opt_olimit_ok = yes; then
4864 case $ac_sys_system in
4865 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
4866 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
4871 BASECFLAGS
="$BASECFLAGS -OPT:Olimit=0"
4875 { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
4876 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; }
4877 if test "${ac_cv_olimit_ok+set}" = set; then
4878 echo $ECHO_N "(cached) $ECHO_C" >&6
4881 CC
="$CC -Olimit 1500"
4882 cat >conftest.
$ac_ext <<_ACEOF
4885 cat confdefs.h
>>conftest.
$ac_ext
4886 cat >>conftest.
$ac_ext <<_ACEOF
4887 /* end confdefs.h. */
4892 int main() { return 0; }
4897 rm -f conftest.
$ac_objext
4898 if { (ac_try
="$ac_compile"
4900 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4901 *) ac_try_echo=$ac_try;;
4903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4904 (eval "$ac_compile") 2>conftest.er1
4906 grep -v '^ *+' conftest.er1 >conftest.err
4908 cat conftest.err >&5
4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910 (exit $ac_status); } && {
4911 test -z "$ac_c_werror_flag" ||
4912 test ! -s conftest.err
4913 } && test -s conftest.$ac_objext; then
4916 echo "$as_me: failed program was:" >&5
4917 sed 's/^/| /' conftest.$ac_ext >&5
4922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4926 { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4927 echo "${ECHO_T}$ac_cv_olimit_ok" >&6; }
4928 if test $ac_cv_olimit_ok = yes; then
4929 BASECFLAGS="$BASECFLAGS -Olimit 1500"
4933 # Check whether GCC supports PyArg_ParseTuple format
4934 if test "$GCC" = "yes"
4936 { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
4937 echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; }
4939 CFLAGS="$CFLAGS -Werror"
4940 cat >conftest.$ac_ext <<_ACEOF
4943 cat confdefs.h >>conftest.$ac_ext
4944 cat >>conftest.$ac_ext <<_ACEOF
4945 /* end confdefs.h. */
4947 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
4957 rm -f conftest.$ac_objext
4958 if { (ac_try="$ac_compile"
4960 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4961 *) ac_try_echo
=$ac_try;;
4963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4964 (eval "$ac_compile") 2>conftest.er1
4966 grep -v '^ *+' conftest.er1
>conftest.err
4968 cat conftest.err
>&5
4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970 (exit $ac_status); } && {
4971 test -z "$ac_c_werror_flag" ||
4972 test ! -s conftest.err
4973 } && test -s conftest.
$ac_objext; then
4975 cat >>confdefs.h
<<\_ACEOF
4976 #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
4979 { echo "$as_me:$LINENO: result: yes" >&5
4980 echo "${ECHO_T}yes" >&6; }
4982 echo "$as_me: failed program was:" >&5
4983 sed 's/^/| /' conftest.
$ac_ext >&5
4985 { echo "$as_me:$LINENO: result: no" >&5
4986 echo "${ECHO_T}no" >&6; }
4990 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4994 # On some compilers, pthreads are available without further options
4995 # (e.g. MacOS X). On some of these systems, the compiler will not
4996 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4997 # So we have to see first whether pthreads are available without
4998 # options before we can check whether -Kpthread improves anything.
4999 { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
5000 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; }
5001 if test "${ac_cv_pthread_is_default+set}" = set; then
5002 echo $ECHO_N "(cached) $ECHO_C" >&6
5004 if test "$cross_compiling" = yes; then
5005 ac_cv_pthread_is_default
=no
5007 cat >conftest.
$ac_ext <<_ACEOF
5010 cat confdefs.h
>>conftest.
$ac_ext
5011 cat >>conftest.
$ac_ext <<_ACEOF
5012 /* end confdefs.h. */
5014 #include <pthread.h>
5016 void* routine(void* p){return NULL;}
5020 if(pthread_create(&p,NULL,routine,NULL)!=0)
5022 (void)pthread_detach(p);
5027 rm -f conftest
$ac_exeext
5028 if { (ac_try
="$ac_link"
5030 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5031 *) ac_try_echo=$ac_try;;
5033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5034 (eval "$ac_link") 2>&5
5036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5038 { (case "(($ac_try" in
5039 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5040 *) ac_try_echo
=$ac_try;;
5042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5043 (eval "$ac_try") 2>&5
5045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046 (exit $ac_status); }; }; then
5048 ac_cv_pthread_is_default
=yes
5053 echo "$as_me: program exited with status $ac_status" >&5
5054 echo "$as_me: failed program was:" >&5
5055 sed 's/^/| /' conftest.
$ac_ext >&5
5058 ac_cv_pthread_is_default
=no
5060 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5067 { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
5068 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; }
5071 if test $ac_cv_pthread_is_default = yes
5075 # -Kpthread, if available, provides the right #defines
5076 # and linker options to make pthread_create available
5077 # Some compilers won't report that they do not support -Kpthread,
5078 # so we need to run a program to see whether it really made the
5079 # function available.
5080 { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
5081 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; }
5082 if test "${ac_cv_kpthread+set}" = set; then
5083 echo $ECHO_N "(cached) $ECHO_C" >&6
5087 if test "$cross_compiling" = yes; then
5090 cat >conftest.
$ac_ext <<_ACEOF
5093 cat confdefs.h
>>conftest.
$ac_ext
5094 cat >>conftest.
$ac_ext <<_ACEOF
5095 /* end confdefs.h. */
5097 #include <pthread.h>
5099 void* routine(void* p){return NULL;}
5103 if(pthread_create(&p,NULL,routine,NULL)!=0)
5105 (void)pthread_detach(p);
5110 rm -f conftest
$ac_exeext
5111 if { (ac_try
="$ac_link"
5113 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5114 *) ac_try_echo=$ac_try;;
5116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5117 (eval "$ac_link") 2>&5
5119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5121 { (case "(($ac_try" in
5122 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5123 *) ac_try_echo
=$ac_try;;
5125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5126 (eval "$ac_try") 2>&5
5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); }; }; then
5132 echo "$as_me: program exited with status $ac_status" >&5
5133 echo "$as_me: failed program was:" >&5
5134 sed 's/^/| /' conftest.
$ac_ext >&5
5139 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5146 { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
5147 echo "${ECHO_T}$ac_cv_kpthread" >&6; }
5150 if test $ac_cv_kpthread = no
-a $ac_cv_pthread_is_default = no
5152 # -Kthread, if available, provides the right #defines
5153 # and linker options to make pthread_create available
5154 # Some compilers won't report that they do not support -Kthread,
5155 # so we need to run a program to see whether it really made the
5156 # function available.
5157 { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
5158 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; }
5159 if test "${ac_cv_kthread+set}" = set; then
5160 echo $ECHO_N "(cached) $ECHO_C" >&6
5164 if test "$cross_compiling" = yes; then
5167 cat >conftest.
$ac_ext <<_ACEOF
5170 cat confdefs.h
>>conftest.
$ac_ext
5171 cat >>conftest.
$ac_ext <<_ACEOF
5172 /* end confdefs.h. */
5174 #include <pthread.h>
5176 void* routine(void* p){return NULL;}
5180 if(pthread_create(&p,NULL,routine,NULL)!=0)
5182 (void)pthread_detach(p);
5187 rm -f conftest
$ac_exeext
5188 if { (ac_try
="$ac_link"
5190 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5191 *) ac_try_echo=$ac_try;;
5193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5194 (eval "$ac_link") 2>&5
5196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5198 { (case "(($ac_try" in
5199 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5200 *) ac_try_echo
=$ac_try;;
5202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5203 (eval "$ac_try") 2>&5
5205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206 (exit $ac_status); }; }; then
5209 echo "$as_me: program exited with status $ac_status" >&5
5210 echo "$as_me: failed program was:" >&5
5211 sed 's/^/| /' conftest.
$ac_ext >&5
5216 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5223 { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
5224 echo "${ECHO_T}$ac_cv_kthread" >&6; }
5227 if test $ac_cv_kthread = no
-a $ac_cv_pthread_is_default = no
5229 # -pthread, if available, provides the right #defines
5230 # and linker options to make pthread_create available
5231 # Some compilers won't report that they do not support -pthread,
5232 # so we need to run a program to see whether it really made the
5233 # function available.
5234 { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
5235 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; }
5236 if test "${ac_cv_thread+set}" = set; then
5237 echo $ECHO_N "(cached) $ECHO_C" >&6
5241 if test "$cross_compiling" = yes; then
5244 cat >conftest.
$ac_ext <<_ACEOF
5247 cat confdefs.h
>>conftest.
$ac_ext
5248 cat >>conftest.
$ac_ext <<_ACEOF
5249 /* end confdefs.h. */
5251 #include <pthread.h>
5253 void* routine(void* p){return NULL;}
5257 if(pthread_create(&p,NULL,routine,NULL)!=0)
5259 (void)pthread_detach(p);
5264 rm -f conftest
$ac_exeext
5265 if { (ac_try
="$ac_link"
5267 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5268 *) ac_try_echo=$ac_try;;
5270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5271 (eval "$ac_link") 2>&5
5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5275 { (case "(($ac_try" in
5276 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5277 *) ac_try_echo
=$ac_try;;
5279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5280 (eval "$ac_try") 2>&5
5282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283 (exit $ac_status); }; }; then
5286 echo "$as_me: program exited with status $ac_status" >&5
5287 echo "$as_me: failed program was:" >&5
5288 sed 's/^/| /' conftest.
$ac_ext >&5
5293 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5300 { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
5301 echo "${ECHO_T}$ac_cv_pthread" >&6; }
5304 # If we have set a CC compiler flag for thread support then
5305 # check if it works for CXX, too.
5309 { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
5310 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; }
5313 if test "$ac_cv_kpthread" = "yes"
5315 CXX
="$CXX -Kpthread"
5316 ac_cv_cxx_thread
=yes
5317 elif test "$ac_cv_kthread" = "yes"
5320 ac_cv_cxx_thread
=yes
5321 elif test "$ac_cv_pthread" = "yes"
5324 ac_cv_cxx_thread
=yes
5327 if test $ac_cv_cxx_thread = yes
5329 echo 'void foo();int main(){foo();}void foo(){}' > conftest.
$ac_ext
5330 $CXX -c conftest.
$ac_ext 2>&5
5331 if $CXX -o conftest
$ac_exeext conftest.
$ac_objext 2>&5 \
5332 && test -s conftest
$ac_exeext && .
/conftest
$ac_exeext
5334 ac_cv_cxx_thread
=yes
5340 { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
5341 echo "${ECHO_T}$ac_cv_cxx_thread" >&6; }
5346 # checks for header files
5347 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5348 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5349 if test "${ac_cv_header_stdc+set}" = set; then
5350 echo $ECHO_N "(cached) $ECHO_C" >&6
5352 cat >conftest.
$ac_ext <<_ACEOF
5355 cat confdefs.h
>>conftest.
$ac_ext
5356 cat >>conftest.
$ac_ext <<_ACEOF
5357 /* end confdefs.h. */
5371 rm -f conftest.
$ac_objext
5372 if { (ac_try
="$ac_compile"
5374 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5375 *) ac_try_echo=$ac_try;;
5377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5378 (eval "$ac_compile") 2>conftest.er1
5380 grep -v '^ *+' conftest.er1 >conftest.err
5382 cat conftest.err >&5
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); } && {
5385 test -z "$ac_c_werror_flag" ||
5386 test ! -s conftest.err
5387 } && test -s conftest.$ac_objext; then
5388 ac_cv_header_stdc=yes
5390 echo "$as_me: failed program was:" >&5
5391 sed 's/^/| /' conftest.$ac_ext >&5
5393 ac_cv_header_stdc=no
5396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5398 if test $ac_cv_header_stdc = yes; then
5399 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5400 cat >conftest.$ac_ext <<_ACEOF
5403 cat confdefs.h >>conftest.$ac_ext
5404 cat >>conftest.$ac_ext <<_ACEOF
5405 /* end confdefs.h. */
5409 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5410 $EGREP "memchr" >/dev/null 2>&1; then
5413 ac_cv_header_stdc=no
5419 if test $ac_cv_header_stdc = yes; then
5420 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5421 cat >conftest.$ac_ext <<_ACEOF
5424 cat confdefs.h >>conftest.$ac_ext
5425 cat >>conftest.$ac_ext <<_ACEOF
5426 /* end confdefs.h. */
5430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5431 $EGREP "free" >/dev/null 2>&1; then
5434 ac_cv_header_stdc=no
5440 if test $ac_cv_header_stdc = yes; then
5441 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5442 if test "$cross_compiling" = yes; then
5445 cat >conftest.$ac_ext <<_ACEOF
5448 cat confdefs.h >>conftest.$ac_ext
5449 cat >>conftest.$ac_ext <<_ACEOF
5450 /* end confdefs.h. */
5453 #if ((' ' & 0x0FF) == 0x020)
5454 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5455 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5457 # define ISLOWER(c) \
5458 (('a' <= (c) && (c) <= 'i') \
5459 || ('j' <= (c) && (c) <= 'r') \
5460 || ('s' <= (c) && (c) <= 'z'))
5461 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5464 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5469 for (i = 0; i < 256; i++)
5470 if (XOR (islower (i), ISLOWER (i))
5471 || toupper (i) != TOUPPER (i))
5476 rm -f conftest$ac_exeext
5477 if { (ac_try="$ac_link"
5479 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5480 *) ac_try_echo
=$ac_try;;
5482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5483 (eval "$ac_link") 2>&5
5485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5487 { (case "(($ac_try" in
5488 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5489 *) ac_try_echo=$ac_try;;
5491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5492 (eval "$ac_try") 2>&5
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); }; }; then
5498 echo "$as_me: program exited with status $ac_status" >&5
5499 echo "$as_me: failed program was:" >&5
5500 sed 's/^/| /' conftest.$ac_ext >&5
5503 ac_cv_header_stdc=no
5505 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5511 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5512 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5513 if test $ac_cv_header_stdc = yes; then
5515 cat >>confdefs.h <<\_ACEOF
5516 #define STDC_HEADERS 1
5521 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5531 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5532 inttypes.h stdint.h unistd.h
5534 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5535 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5537 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5538 echo $ECHO_N "(cached) $ECHO_C" >&6
5540 cat >conftest.$ac_ext <<_ACEOF
5543 cat confdefs.h >>conftest.$ac_ext
5544 cat >>conftest.$ac_ext <<_ACEOF
5545 /* end confdefs.h. */
5546 $ac_includes_default
5548 #include <$ac_header>
5550 rm -f conftest.$ac_objext
5551 if { (ac_try="$ac_compile"
5553 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5554 *) ac_try_echo
=$ac_try;;
5556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5557 (eval "$ac_compile") 2>conftest.er1
5559 grep -v '^ *+' conftest.er1
>conftest.err
5561 cat conftest.err
>&5
5562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563 (exit $ac_status); } && {
5564 test -z "$ac_c_werror_flag" ||
5565 test ! -s conftest.err
5566 } && test -s conftest.
$ac_objext; then
5567 eval "$as_ac_Header=yes"
5569 echo "$as_me: failed program was:" >&5
5570 sed 's/^/| /' conftest.
$ac_ext >&5
5572 eval "$as_ac_Header=no"
5575 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5577 ac_res
=`eval echo '${'$as_ac_Header'}'`
5578 { echo "$as_me:$LINENO: result: $ac_res" >&5
5579 echo "${ECHO_T}$ac_res" >&6; }
5580 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5581 cat >>confdefs.h
<<_ACEOF
5582 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5644 for ac_header
in asm
/types.h conio.h curses.h direct.h dlfcn.h errno.h \
5646 ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
5647 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
5649 sys
/audioio.h sys
/bsdtty.h sys
/epoll.h sys
/event.h sys
/file.h sys
/loadavg.h \
5650 sys
/lock.h sys
/mkdev.h sys
/modem.h \
5651 sys
/param.h sys
/poll.h sys
/select.h sys
/socket.h sys
/statvfs.h sys
/stat.h \
5652 sys
/termio.h sys
/time.h \
5653 sys
/times.h sys
/types.h sys
/un.h sys
/utsname.h sys
/wait.h pty.h libutil.h \
5654 sys
/resource.h netpacket
/packet.h sysexits.h bluetooth.h \
5655 bluetooth
/bluetooth.h linux
/tipc.h
5657 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5658 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5659 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5661 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5662 echo $ECHO_N "(cached) $ECHO_C" >&6
5664 ac_res
=`eval echo '${'$as_ac_Header'}'`
5665 { echo "$as_me:$LINENO: result: $ac_res" >&5
5666 echo "${ECHO_T}$ac_res" >&6; }
5668 # Is the header compilable?
5669 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5670 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5671 cat >conftest.
$ac_ext <<_ACEOF
5674 cat confdefs.h
>>conftest.
$ac_ext
5675 cat >>conftest.
$ac_ext <<_ACEOF
5676 /* end confdefs.h. */
5677 $ac_includes_default
5678 #include <$ac_header>
5680 rm -f conftest.
$ac_objext
5681 if { (ac_try
="$ac_compile"
5683 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5684 *) ac_try_echo=$ac_try;;
5686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5687 (eval "$ac_compile") 2>conftest.er1
5689 grep -v '^ *+' conftest.er1 >conftest.err
5691 cat conftest.err >&5
5692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693 (exit $ac_status); } && {
5694 test -z "$ac_c_werror_flag" ||
5695 test ! -s conftest.err
5696 } && test -s conftest.$ac_objext; then
5697 ac_header_compiler=yes
5699 echo "$as_me: failed program was:" >&5
5700 sed 's/^/| /' conftest.$ac_ext >&5
5702 ac_header_compiler=no
5705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5706 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5707 echo "${ECHO_T}$ac_header_compiler" >&6; }
5709 # Is the header present?
5710 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5711 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5712 cat >conftest.$ac_ext <<_ACEOF
5715 cat confdefs.h >>conftest.$ac_ext
5716 cat >>conftest.$ac_ext <<_ACEOF
5717 /* end confdefs.h. */
5718 #include <$ac_header>
5720 if { (ac_try="$ac_cpp conftest.$ac_ext"
5722 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5723 *) ac_try_echo
=$ac_try;;
5725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5726 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5728 grep -v '^ *+' conftest.er1
>conftest.err
5730 cat conftest.err
>&5
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); } >/dev
/null
&& {
5733 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5734 test ! -s conftest.err
5736 ac_header_preproc
=yes
5738 echo "$as_me: failed program was:" >&5
5739 sed 's/^/| /' conftest.
$ac_ext >&5
5741 ac_header_preproc
=no
5744 rm -f conftest.err conftest.
$ac_ext
5745 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5746 echo "${ECHO_T}$ac_header_preproc" >&6; }
5748 # So? What about this header?
5749 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5751 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5752 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5754 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5755 ac_header_preproc
=yes
5758 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5759 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5760 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5761 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5762 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5763 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5764 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5765 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5767 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5768 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5769 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5771 ## -------------------------------------- ##
5772 ## Report this to http://bugs.python.org/ ##
5773 ## -------------------------------------- ##
5775 ) |
sed "s/^/$as_me: WARNING: /" >&2
5778 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5780 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5781 echo $ECHO_N "(cached) $ECHO_C" >&6
5783 eval "$as_ac_Header=\$ac_header_preproc"
5785 ac_res
=`eval echo '${'$as_ac_Header'}'`
5786 { echo "$as_me:$LINENO: result: $ac_res" >&5
5787 echo "${ECHO_T}$ac_res" >&6; }
5790 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5791 cat >>confdefs.h
<<_ACEOF
5792 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5805 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
5806 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5807 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5808 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5809 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5810 echo $ECHO_N "(cached) $ECHO_C" >&6
5812 cat >conftest.
$ac_ext <<_ACEOF
5815 cat confdefs.h
>>conftest.
$ac_ext
5816 cat >>conftest.
$ac_ext <<_ACEOF
5817 /* end confdefs.h. */
5818 #include <sys/types.h>
5830 rm -f conftest.
$ac_objext
5831 if { (ac_try
="$ac_compile"
5833 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5834 *) ac_try_echo=$ac_try;;
5836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5837 (eval "$ac_compile") 2>conftest.er1
5839 grep -v '^ *+' conftest.er1 >conftest.err
5841 cat conftest.err >&5
5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); } && {
5844 test -z "$ac_c_werror_flag" ||
5845 test ! -s conftest.err
5846 } && test -s conftest.$ac_objext; then
5847 eval "$as_ac_Header=yes"
5849 echo "$as_me: failed program was:" >&5
5850 sed 's/^/| /' conftest.$ac_ext >&5
5852 eval "$as_ac_Header=no"
5855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5857 ac_res=`eval echo '${'$as_ac_Header'}'`
5858 { echo "$as_me:$LINENO: result: $ac_res" >&5
5859 echo "${ECHO_T}$ac_res" >&6; }
5860 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5861 cat >>confdefs.h <<_ACEOF
5862 #define `echo "HAVE_$ac_hdr" |
$as_tr_cpp` 1
5865 ac_header_dirent=$ac_hdr; break
5869 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5870 if test $ac_header_dirent = dirent.h; then
5871 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5872 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5873 if test "${ac_cv_search_opendir+set}" = set; then
5874 echo $ECHO_N "(cached) $ECHO_C" >&6
5876 ac_func_search_save_LIBS=$LIBS
5877 cat >conftest.$ac_ext <<_ACEOF
5880 cat confdefs.h >>conftest.$ac_ext
5881 cat >>conftest.$ac_ext <<_ACEOF
5882 /* end confdefs.h. */
5884 /* Override any GCC internal prototype to avoid an error.
5885 Use char because int might match the return type of a GCC
5886 builtin and then its argument prototype would still apply. */
5899 for ac_lib in '' dir; do
5900 if test -z "$ac_lib"; then
5901 ac_res="none required"
5904 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5906 rm -f conftest.$ac_objext conftest$ac_exeext
5907 if { (ac_try="$ac_link"
5909 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5910 *) ac_try_echo
=$ac_try;;
5912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5913 (eval "$ac_link") 2>conftest.er1
5915 grep -v '^ *+' conftest.er1
>conftest.err
5917 cat conftest.err
>&5
5918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919 (exit $ac_status); } && {
5920 test -z "$ac_c_werror_flag" ||
5921 test ! -s conftest.err
5922 } && test -s conftest
$ac_exeext &&
5923 $as_test_x conftest
$ac_exeext; then
5924 ac_cv_search_opendir
=$ac_res
5926 echo "$as_me: failed program was:" >&5
5927 sed 's/^/| /' conftest.
$ac_ext >&5
5932 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5934 if test "${ac_cv_search_opendir+set}" = set; then
5938 if test "${ac_cv_search_opendir+set}" = set; then
5941 ac_cv_search_opendir
=no
5944 LIBS
=$ac_func_search_save_LIBS
5946 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5947 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5948 ac_res
=$ac_cv_search_opendir
5949 if test "$ac_res" != no
; then
5950 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5955 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5956 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5957 if test "${ac_cv_search_opendir+set}" = set; then
5958 echo $ECHO_N "(cached) $ECHO_C" >&6
5960 ac_func_search_save_LIBS
=$LIBS
5961 cat >conftest.
$ac_ext <<_ACEOF
5964 cat confdefs.h
>>conftest.
$ac_ext
5965 cat >>conftest.
$ac_ext <<_ACEOF
5966 /* end confdefs.h. */
5968 /* Override any GCC internal prototype to avoid an error.
5969 Use char because int might match the return type of a GCC
5970 builtin and then its argument prototype would still apply. */
5983 for ac_lib
in '' x
; do
5984 if test -z "$ac_lib"; then
5985 ac_res
="none required"
5988 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5990 rm -f conftest.
$ac_objext conftest
$ac_exeext
5991 if { (ac_try
="$ac_link"
5993 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5994 *) ac_try_echo=$ac_try;;
5996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5997 (eval "$ac_link") 2>conftest.er1
5999 grep -v '^ *+' conftest.er1 >conftest.err
6001 cat conftest.err >&5
6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); } && {
6004 test -z "$ac_c_werror_flag" ||
6005 test ! -s conftest.err
6006 } && test -s conftest$ac_exeext &&
6007 $as_test_x conftest$ac_exeext; then
6008 ac_cv_search_opendir=$ac_res
6010 echo "$as_me: failed program was:" >&5
6011 sed 's/^/| /' conftest.$ac_ext >&5
6016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6018 if test "${ac_cv_search_opendir+set}" = set; then
6022 if test "${ac_cv_search_opendir+set}" = set; then
6025 ac_cv_search_opendir=no
6028 LIBS=$ac_func_search_save_LIBS
6030 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6031 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
6032 ac_res=$ac_cv_search_opendir
6033 if test "$ac_res" != no; then
6034 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6040 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
6041 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
6042 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
6043 echo $ECHO_N "(cached) $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 #include <sys/types.h>
6055 return makedev(0, 0);
6060 rm -f conftest.$ac_objext conftest$ac_exeext
6061 if { (ac_try="$ac_link"
6063 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6064 *) ac_try_echo
=$ac_try;;
6066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6067 (eval "$ac_link") 2>conftest.er1
6069 grep -v '^ *+' conftest.er1
>conftest.err
6071 cat conftest.err
>&5
6072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073 (exit $ac_status); } && {
6074 test -z "$ac_c_werror_flag" ||
6075 test ! -s conftest.err
6076 } && test -s conftest
$ac_exeext &&
6077 $as_test_x conftest
$ac_exeext; then
6078 ac_cv_header_sys_types_h_makedev
=yes
6080 echo "$as_me: failed program was:" >&5
6081 sed 's/^/| /' conftest.
$ac_ext >&5
6083 ac_cv_header_sys_types_h_makedev
=no
6086 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6087 conftest
$ac_exeext conftest.
$ac_ext
6090 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
6091 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
6093 if test $ac_cv_header_sys_types_h_makedev = no
; then
6094 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6095 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6096 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6097 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6098 echo $ECHO_N "(cached) $ECHO_C" >&6
6100 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6101 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6103 # Is the header compilable?
6104 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
6105 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
6106 cat >conftest.
$ac_ext <<_ACEOF
6109 cat confdefs.h
>>conftest.
$ac_ext
6110 cat >>conftest.
$ac_ext <<_ACEOF
6111 /* end confdefs.h. */
6112 $ac_includes_default
6113 #include <sys/mkdev.h>
6115 rm -f conftest.
$ac_objext
6116 if { (ac_try
="$ac_compile"
6118 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6119 *) ac_try_echo=$ac_try;;
6121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6122 (eval "$ac_compile") 2>conftest.er1
6124 grep -v '^ *+' conftest.er1 >conftest.err
6126 cat conftest.err >&5
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); } && {
6129 test -z "$ac_c_werror_flag" ||
6130 test ! -s conftest.err
6131 } && test -s conftest.$ac_objext; then
6132 ac_header_compiler=yes
6134 echo "$as_me: failed program was:" >&5
6135 sed 's/^/| /' conftest.$ac_ext >&5
6137 ac_header_compiler=no
6140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6141 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6142 echo "${ECHO_T}$ac_header_compiler" >&6; }
6144 # Is the header present?
6145 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
6146 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
6147 cat >conftest.$ac_ext <<_ACEOF
6150 cat confdefs.h >>conftest.$ac_ext
6151 cat >>conftest.$ac_ext <<_ACEOF
6152 /* end confdefs.h. */
6153 #include <sys/mkdev.h>
6155 if { (ac_try="$ac_cpp conftest.$ac_ext"
6157 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6158 *) ac_try_echo
=$ac_try;;
6160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6161 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6163 grep -v '^ *+' conftest.er1
>conftest.err
6165 cat conftest.err
>&5
6166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167 (exit $ac_status); } >/dev
/null
&& {
6168 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6169 test ! -s conftest.err
6171 ac_header_preproc
=yes
6173 echo "$as_me: failed program was:" >&5
6174 sed 's/^/| /' conftest.
$ac_ext >&5
6176 ac_header_preproc
=no
6179 rm -f conftest.err conftest.
$ac_ext
6180 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6181 echo "${ECHO_T}$ac_header_preproc" >&6; }
6183 # So? What about this header?
6184 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6186 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6187 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6188 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
6189 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
6190 ac_header_preproc
=yes
6193 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6194 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6195 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6196 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6197 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
6198 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
6199 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
6200 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
6201 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6202 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6203 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
6204 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
6206 ## -------------------------------------- ##
6207 ## Report this to http://bugs.python.org/ ##
6208 ## -------------------------------------- ##
6210 ) |
sed "s/^/$as_me: WARNING: /" >&2
6213 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6214 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6215 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6216 echo $ECHO_N "(cached) $ECHO_C" >&6
6218 ac_cv_header_sys_mkdev_h
=$ac_header_preproc
6220 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6221 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6224 if test $ac_cv_header_sys_mkdev_h = yes; then
6226 cat >>confdefs.h
<<\_ACEOF
6227 #define MAJOR_IN_MKDEV 1
6234 if test $ac_cv_header_sys_mkdev_h = no
; then
6235 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6236 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6237 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6238 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6239 echo $ECHO_N "(cached) $ECHO_C" >&6
6241 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6242 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6244 # Is the header compilable?
6245 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6246 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
6247 cat >conftest.
$ac_ext <<_ACEOF
6250 cat confdefs.h
>>conftest.
$ac_ext
6251 cat >>conftest.
$ac_ext <<_ACEOF
6252 /* end confdefs.h. */
6253 $ac_includes_default
6254 #include <sys/sysmacros.h>
6256 rm -f conftest.
$ac_objext
6257 if { (ac_try
="$ac_compile"
6259 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6260 *) ac_try_echo=$ac_try;;
6262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6263 (eval "$ac_compile") 2>conftest.er1
6265 grep -v '^ *+' conftest.er1 >conftest.err
6267 cat conftest.err >&5
6268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269 (exit $ac_status); } && {
6270 test -z "$ac_c_werror_flag" ||
6271 test ! -s conftest.err
6272 } && test -s conftest.$ac_objext; then
6273 ac_header_compiler=yes
6275 echo "$as_me: failed program was:" >&5
6276 sed 's/^/| /' conftest.$ac_ext >&5
6278 ac_header_compiler=no
6281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6282 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6283 echo "${ECHO_T}$ac_header_compiler" >&6; }
6285 # Is the header present?
6286 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6287 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
6288 cat >conftest.$ac_ext <<_ACEOF
6291 cat confdefs.h >>conftest.$ac_ext
6292 cat >>conftest.$ac_ext <<_ACEOF
6293 /* end confdefs.h. */
6294 #include <sys/sysmacros.h>
6296 if { (ac_try="$ac_cpp conftest.$ac_ext"
6298 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6299 *) ac_try_echo
=$ac_try;;
6301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6302 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6304 grep -v '^ *+' conftest.er1
>conftest.err
6306 cat conftest.err
>&5
6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); } >/dev
/null
&& {
6309 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6310 test ! -s conftest.err
6312 ac_header_preproc
=yes
6314 echo "$as_me: failed program was:" >&5
6315 sed 's/^/| /' conftest.
$ac_ext >&5
6317 ac_header_preproc
=no
6320 rm -f conftest.err conftest.
$ac_ext
6321 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6322 echo "${ECHO_T}$ac_header_preproc" >&6; }
6324 # So? What about this header?
6325 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6327 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6328 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6329 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6330 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
6331 ac_header_preproc
=yes
6334 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6335 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6336 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6337 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6338 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6339 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6340 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
6341 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
6342 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6343 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
6344 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6345 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
6347 ## -------------------------------------- ##
6348 ## Report this to http://bugs.python.org/ ##
6349 ## -------------------------------------- ##
6351 ) |
sed "s/^/$as_me: WARNING: /" >&2
6354 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6355 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6356 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6357 echo $ECHO_N "(cached) $ECHO_C" >&6
6359 ac_cv_header_sys_sysmacros_h
=$ac_header_preproc
6361 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6362 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6365 if test $ac_cv_header_sys_sysmacros_h = yes; then
6367 cat >>confdefs.h
<<\_ACEOF
6368 #define MAJOR_IN_SYSMACROS 1
6378 # On Solaris, term.h requires curses.h
6380 for ac_header
in term.h
6382 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6383 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6385 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6386 echo $ECHO_N "(cached) $ECHO_C" >&6
6388 cat >conftest.
$ac_ext <<_ACEOF
6391 cat confdefs.h
>>conftest.
$ac_ext
6392 cat >>conftest.
$ac_ext <<_ACEOF
6393 /* end confdefs.h. */
6395 #ifdef HAVE_CURSES_H
6400 #include <$ac_header>
6402 rm -f conftest.
$ac_objext
6403 if { (ac_try
="$ac_compile"
6405 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6406 *) ac_try_echo=$ac_try;;
6408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6409 (eval "$ac_compile") 2>conftest.er1
6411 grep -v '^ *+' conftest.er1 >conftest.err
6413 cat conftest.err >&5
6414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415 (exit $ac_status); } && {
6416 test -z "$ac_c_werror_flag" ||
6417 test ! -s conftest.err
6418 } && test -s conftest.$ac_objext; then
6419 eval "$as_ac_Header=yes"
6421 echo "$as_me: failed program was:" >&5
6422 sed 's/^/| /' conftest.$ac_ext >&5
6424 eval "$as_ac_Header=no"
6427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6429 ac_res=`eval echo '${'$as_ac_Header'}'`
6430 { echo "$as_me:$LINENO: result: $ac_res" >&5
6431 echo "${ECHO_T}$ac_res" >&6; }
6432 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6433 cat >>confdefs.h <<_ACEOF
6434 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6442 # On Linux, netlink.h requires asm/types.h
6444 for ac_header in linux/netlink.h
6446 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6447 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6448 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6449 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6450 echo $ECHO_N "(cached) $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. */
6459 #ifdef HAVE_ASM_TYPES_H
6460 #include <asm/types.h>
6462 #ifdef HAVE_SYS_SOCKET_H
6463 #include <sys/socket.h>
6467 #include <$ac_header>
6469 rm -f conftest.$ac_objext
6470 if { (ac_try="$ac_compile"
6472 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6473 *) ac_try_echo
=$ac_try;;
6475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6476 (eval "$ac_compile") 2>conftest.er1
6478 grep -v '^ *+' conftest.er1
>conftest.err
6480 cat conftest.err
>&5
6481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482 (exit $ac_status); } && {
6483 test -z "$ac_c_werror_flag" ||
6484 test ! -s conftest.err
6485 } && test -s conftest.
$ac_objext; then
6486 eval "$as_ac_Header=yes"
6488 echo "$as_me: failed program was:" >&5
6489 sed 's/^/| /' conftest.
$ac_ext >&5
6491 eval "$as_ac_Header=no"
6494 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6496 ac_res
=`eval echo '${'$as_ac_Header'}'`
6497 { echo "$as_me:$LINENO: result: $ac_res" >&5
6498 echo "${ECHO_T}$ac_res" >&6; }
6499 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6500 cat >>confdefs.h
<<_ACEOF
6501 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6509 # checks for typedefs
6511 { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
6512 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6; }
6513 cat >conftest.
$ac_ext <<_ACEOF
6516 cat confdefs.h
>>conftest.
$ac_ext
6517 cat >>conftest.
$ac_ext <<_ACEOF
6518 /* end confdefs.h. */
6522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6523 $EGREP "clock_t" >/dev
/null
2>&1; then
6528 cat >>confdefs.h
<<\_ACEOF
6529 #define clock_t long
6536 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
6537 echo "${ECHO_T}$was_it_defined" >&6; }
6539 # Check whether using makedev requires defining _OSF_SOURCE
6540 { echo "$as_me:$LINENO: checking for makedev" >&5
6541 echo $ECHO_N "checking for makedev... $ECHO_C" >&6; }
6542 cat >conftest.
$ac_ext <<_ACEOF
6545 cat confdefs.h
>>conftest.
$ac_ext
6546 cat >>conftest.
$ac_ext <<_ACEOF
6547 /* end confdefs.h. */
6548 #include <sys/types.h>
6557 rm -f conftest.
$ac_objext conftest
$ac_exeext
6558 if { (ac_try
="$ac_link"
6560 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6561 *) ac_try_echo=$ac_try;;
6563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6564 (eval "$ac_link") 2>conftest.er1
6566 grep -v '^ *+' conftest.er1 >conftest.err
6568 cat conftest.err >&5
6569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570 (exit $ac_status); } && {
6571 test -z "$ac_c_werror_flag" ||
6572 test ! -s conftest.err
6573 } && test -s conftest$ac_exeext &&
6574 $as_test_x conftest$ac_exeext; then
6575 ac_cv_has_makedev=yes
6577 echo "$as_me: failed program was:" >&5
6578 sed 's/^/| /' conftest.$ac_ext >&5
6580 ac_cv_has_makedev=no
6583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6584 conftest$ac_exeext conftest.$ac_ext
6585 if test "$ac_cv_has_makedev" = "no"; then
6586 # we didn't link, try if _OSF_SOURCE will allow us to link
6587 cat >conftest.$ac_ext <<_ACEOF
6590 cat confdefs.h >>conftest.$ac_ext
6591 cat >>conftest.$ac_ext <<_ACEOF
6592 /* end confdefs.h. */
6594 #define _OSF_SOURCE 1
6595 #include <sys/types.h>
6605 rm -f conftest.$ac_objext conftest$ac_exeext
6606 if { (ac_try="$ac_link"
6608 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6609 *) ac_try_echo
=$ac_try;;
6611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6612 (eval "$ac_link") 2>conftest.er1
6614 grep -v '^ *+' conftest.er1
>conftest.err
6616 cat conftest.err
>&5
6617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618 (exit $ac_status); } && {
6619 test -z "$ac_c_werror_flag" ||
6620 test ! -s conftest.err
6621 } && test -s conftest
$ac_exeext &&
6622 $as_test_x conftest
$ac_exeext; then
6623 ac_cv_has_makedev
=yes
6625 echo "$as_me: failed program was:" >&5
6626 sed 's/^/| /' conftest.
$ac_ext >&5
6628 ac_cv_has_makedev
=no
6631 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6632 conftest
$ac_exeext conftest.
$ac_ext
6633 if test "$ac_cv_has_makedev" = "yes"; then
6635 cat >>confdefs.h
<<\_ACEOF
6636 #define _OSF_SOURCE 1
6641 { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
6642 echo "${ECHO_T}$ac_cv_has_makedev" >&6; }
6643 if test "$ac_cv_has_makedev" = "yes"; then
6645 cat >>confdefs.h
<<\_ACEOF
6646 #define HAVE_MAKEDEV 1
6651 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
6652 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
6653 # defined, but the compiler does not support pragma redefine_extname,
6654 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
6655 # structures (such as rlimit64) without declaring them. As a
6656 # work-around, disable LFS on such configurations
6659 { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
6660 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; }
6661 cat >conftest.
$ac_ext <<_ACEOF
6664 cat confdefs.h
>>conftest.
$ac_ext
6665 cat >>conftest.
$ac_ext <<_ACEOF
6666 /* end confdefs.h. */
6668 #define _LARGEFILE_SOURCE 1
6669 #define _FILE_OFFSET_BITS 64
6670 #include <sys/resource.h>
6680 rm -f conftest.
$ac_objext
6681 if { (ac_try
="$ac_compile"
6683 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6684 *) ac_try_echo=$ac_try;;
6686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6687 (eval "$ac_compile") 2>conftest.er1
6689 grep -v '^ *+' conftest.er1 >conftest.err
6691 cat conftest.err >&5
6692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693 (exit $ac_status); } && {
6694 test -z "$ac_c_werror_flag" ||
6695 test ! -s conftest.err
6696 } && test -s conftest.$ac_objext; then
6699 echo "$as_me: failed program was:" >&5
6700 sed 's/^/| /' conftest.$ac_ext >&5
6705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6706 { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
6707 echo "${ECHO_T}$sol_lfs_bug" >&6; }
6708 if test "$sol_lfs_bug" = "yes"; then
6712 if test "$use_lfs" = "yes"; then
6713 # Two defines needed to enable largefile support on various platforms
6714 # These may affect some typedefs
6716 cat >>confdefs.h <<\_ACEOF
6717 #define _LARGEFILE_SOURCE 1
6721 cat >>confdefs.h <<\_ACEOF
6722 #define _FILE_OFFSET_BITS 64
6727 # Add some code to confdefs.h so that the test for off_t works on SCO
6728 cat >> confdefs.h <<\EOF
6734 # Type availability checks
6735 { echo "$as_me:$LINENO: checking for mode_t" >&5
6736 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
6737 if test "${ac_cv_type_mode_t+set}" = set; then
6738 echo $ECHO_N "(cached) $ECHO_C" >&6
6740 cat >conftest.$ac_ext <<_ACEOF
6743 cat confdefs.h >>conftest.$ac_ext
6744 cat >>conftest.$ac_ext <<_ACEOF
6745 /* end confdefs.h. */
6746 $ac_includes_default
6747 typedef mode_t ac__type_new_;
6751 if ((ac__type_new_ *) 0)
6753 if (sizeof (ac__type_new_))
6759 rm -f conftest.$ac_objext
6760 if { (ac_try="$ac_compile"
6762 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6763 *) ac_try_echo
=$ac_try;;
6765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6766 (eval "$ac_compile") 2>conftest.er1
6768 grep -v '^ *+' conftest.er1
>conftest.err
6770 cat conftest.err
>&5
6771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772 (exit $ac_status); } && {
6773 test -z "$ac_c_werror_flag" ||
6774 test ! -s conftest.err
6775 } && test -s conftest.
$ac_objext; then
6776 ac_cv_type_mode_t
=yes
6778 echo "$as_me: failed program was:" >&5
6779 sed 's/^/| /' conftest.
$ac_ext >&5
6781 ac_cv_type_mode_t
=no
6784 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6786 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6787 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
6788 if test $ac_cv_type_mode_t = yes; then
6792 cat >>confdefs.h
<<_ACEOF
6798 { echo "$as_me:$LINENO: checking for off_t" >&5
6799 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6800 if test "${ac_cv_type_off_t+set}" = set; then
6801 echo $ECHO_N "(cached) $ECHO_C" >&6
6803 cat >conftest.
$ac_ext <<_ACEOF
6806 cat confdefs.h
>>conftest.
$ac_ext
6807 cat >>conftest.
$ac_ext <<_ACEOF
6808 /* end confdefs.h. */
6809 $ac_includes_default
6810 typedef off_t ac__type_new_;
6814 if ((ac__type_new_ *) 0)
6816 if (sizeof (ac__type_new_))
6822 rm -f conftest.
$ac_objext
6823 if { (ac_try
="$ac_compile"
6825 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6826 *) ac_try_echo=$ac_try;;
6828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6829 (eval "$ac_compile") 2>conftest.er1
6831 grep -v '^ *+' conftest.er1 >conftest.err
6833 cat conftest.err >&5
6834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835 (exit $ac_status); } && {
6836 test -z "$ac_c_werror_flag" ||
6837 test ! -s conftest.err
6838 } && test -s conftest.$ac_objext; then
6839 ac_cv_type_off_t=yes
6841 echo "$as_me: failed program was:" >&5
6842 sed 's/^/| /' conftest.$ac_ext >&5
6847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6849 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6850 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6851 if test $ac_cv_type_off_t = yes; then
6855 cat >>confdefs.h <<_ACEOF
6856 #define off_t long int
6861 { echo "$as_me:$LINENO: checking for pid_t" >&5
6862 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
6863 if test "${ac_cv_type_pid_t+set}" = set; then
6864 echo $ECHO_N "(cached) $ECHO_C" >&6
6866 cat >conftest.$ac_ext <<_ACEOF
6869 cat confdefs.h >>conftest.$ac_ext
6870 cat >>conftest.$ac_ext <<_ACEOF
6871 /* end confdefs.h. */
6872 $ac_includes_default
6873 typedef pid_t ac__type_new_;
6877 if ((ac__type_new_ *) 0)
6879 if (sizeof (ac__type_new_))
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_pid_t
=yes
6904 echo "$as_me: failed program was:" >&5
6905 sed 's/^/| /' conftest.
$ac_ext >&5
6910 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6912 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6913 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
6914 if test $ac_cv_type_pid_t = yes; then
6918 cat >>confdefs.h
<<_ACEOF
6924 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6925 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6926 if test "${ac_cv_type_signal+set}" = set; then
6927 echo $ECHO_N "(cached) $ECHO_C" >&6
6929 cat >conftest.
$ac_ext <<_ACEOF
6932 cat confdefs.h
>>conftest.
$ac_ext
6933 cat >>conftest.
$ac_ext <<_ACEOF
6934 /* end confdefs.h. */
6935 #include <sys/types.h>
6941 return *(signal (0, 0)) (0) == 1;
6946 rm -f conftest.
$ac_objext
6947 if { (ac_try
="$ac_compile"
6949 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6950 *) ac_try_echo=$ac_try;;
6952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6953 (eval "$ac_compile") 2>conftest.er1
6955 grep -v '^ *+' conftest.er1 >conftest.err
6957 cat conftest.err >&5
6958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959 (exit $ac_status); } && {
6960 test -z "$ac_c_werror_flag" ||
6961 test ! -s conftest.err
6962 } && test -s conftest.$ac_objext; then
6963 ac_cv_type_signal=int
6965 echo "$as_me: failed program was:" >&5
6966 sed 's/^/| /' conftest.$ac_ext >&5
6968 ac_cv_type_signal=void
6971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6973 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6974 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6976 cat >>confdefs.h <<_ACEOF
6977 #define RETSIGTYPE $ac_cv_type_signal
6981 { echo "$as_me:$LINENO: checking for size_t" >&5
6982 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6983 if test "${ac_cv_type_size_t+set}" = set; then
6984 echo $ECHO_N "(cached) $ECHO_C" >&6
6986 cat >conftest.$ac_ext <<_ACEOF
6989 cat confdefs.h >>conftest.$ac_ext
6990 cat >>conftest.$ac_ext <<_ACEOF
6991 /* end confdefs.h. */
6992 $ac_includes_default
6993 typedef size_t ac__type_new_;
6997 if ((ac__type_new_ *) 0)
6999 if (sizeof (ac__type_new_))
7005 rm -f conftest.$ac_objext
7006 if { (ac_try="$ac_compile"
7008 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7009 *) ac_try_echo
=$ac_try;;
7011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7012 (eval "$ac_compile") 2>conftest.er1
7014 grep -v '^ *+' conftest.er1
>conftest.err
7016 cat conftest.err
>&5
7017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018 (exit $ac_status); } && {
7019 test -z "$ac_c_werror_flag" ||
7020 test ! -s conftest.err
7021 } && test -s conftest.
$ac_objext; then
7022 ac_cv_type_size_t
=yes
7024 echo "$as_me: failed program was:" >&5
7025 sed 's/^/| /' conftest.
$ac_ext >&5
7027 ac_cv_type_size_t
=no
7030 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7032 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7033 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
7034 if test $ac_cv_type_size_t = yes; then
7038 cat >>confdefs.h
<<_ACEOF
7039 #define size_t unsigned int
7044 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7045 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
7046 if test "${ac_cv_type_uid_t+set}" = set; then
7047 echo $ECHO_N "(cached) $ECHO_C" >&6
7049 cat >conftest.
$ac_ext <<_ACEOF
7052 cat confdefs.h
>>conftest.
$ac_ext
7053 cat >>conftest.
$ac_ext <<_ACEOF
7054 /* end confdefs.h. */
7055 #include <sys/types.h>
7058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7059 $EGREP "uid_t" >/dev
/null
2>&1; then
7060 ac_cv_type_uid_t
=yes
7067 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7068 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7069 if test $ac_cv_type_uid_t = no
; then
7071 cat >>confdefs.h
<<\_ACEOF
7076 cat >>confdefs.h
<<\_ACEOF
7083 { echo "$as_me:$LINENO: checking for uint32_t" >&5
7084 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
7085 if test "${ac_cv_c_uint32_t+set}" = set; then
7086 echo $ECHO_N "(cached) $ECHO_C" >&6
7089 for ac_type
in 'uint32_t' 'unsigned int' 'unsigned long int' \
7090 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7091 cat >conftest.
$ac_ext <<_ACEOF
7094 cat confdefs.h
>>conftest.
$ac_ext
7095 cat >>conftest.
$ac_ext <<_ACEOF
7096 /* end confdefs.h. */
7097 $ac_includes_default
7101 static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
7108 rm -f conftest.
$ac_objext
7109 if { (ac_try
="$ac_compile"
7111 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7112 *) ac_try_echo=$ac_try;;
7114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7115 (eval "$ac_compile") 2>conftest.er1
7117 grep -v '^ *+' conftest.er1 >conftest.err
7119 cat conftest.err >&5
7120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121 (exit $ac_status); } && {
7122 test -z "$ac_c_werror_flag" ||
7123 test ! -s conftest.err
7124 } && test -s conftest.$ac_objext; then
7126 uint32_t) ac_cv_c_uint32_t=yes ;;
7127 *) ac_cv_c_uint32_t=$ac_type ;;
7131 echo "$as_me: failed program was:" >&5
7132 sed 's/^/| /' conftest.$ac_ext >&5
7137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7138 test "$ac_cv_c_uint32_t" != no && break
7141 { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
7142 echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
7143 case $ac_cv_c_uint32_t in #(
7147 cat >>confdefs.h <<\_ACEOF
7152 cat >>confdefs.h <<_ACEOF
7153 #define uint32_t $ac_cv_c_uint32_t
7159 { echo "$as_me:$LINENO: checking for uint64_t" >&5
7160 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
7161 if test "${ac_cv_c_uint64_t+set}" = set; then
7162 echo $ECHO_N "(cached) $ECHO_C" >&6
7165 for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
7166 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7167 cat >conftest.$ac_ext <<_ACEOF
7170 cat confdefs.h >>conftest.$ac_ext
7171 cat >>conftest.$ac_ext <<_ACEOF
7172 /* end confdefs.h. */
7173 $ac_includes_default
7177 static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
7184 rm -f conftest.$ac_objext
7185 if { (ac_try="$ac_compile"
7187 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7188 *) ac_try_echo
=$ac_try;;
7190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7191 (eval "$ac_compile") 2>conftest.er1
7193 grep -v '^ *+' conftest.er1
>conftest.err
7195 cat conftest.err
>&5
7196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197 (exit $ac_status); } && {
7198 test -z "$ac_c_werror_flag" ||
7199 test ! -s conftest.err
7200 } && test -s conftest.
$ac_objext; then
7202 uint64_t
) ac_cv_c_uint64_t
=yes ;;
7203 *) ac_cv_c_uint64_t
=$ac_type ;;
7207 echo "$as_me: failed program was:" >&5
7208 sed 's/^/| /' conftest.
$ac_ext >&5
7213 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7214 test "$ac_cv_c_uint64_t" != no
&& break
7217 { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
7218 echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
7219 case $ac_cv_c_uint64_t in #(
7223 cat >>confdefs.h
<<\_ACEOF
7228 cat >>confdefs.h
<<_ACEOF
7229 #define uint64_t $ac_cv_c_uint64_t
7235 { echo "$as_me:$LINENO: checking for int32_t" >&5
7236 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
7237 if test "${ac_cv_c_int32_t+set}" = set; then
7238 echo $ECHO_N "(cached) $ECHO_C" >&6
7241 for ac_type
in 'int32_t' 'int' 'long int' \
7242 'long long int' 'short int' 'signed char'; do
7243 cat >conftest.
$ac_ext <<_ACEOF
7246 cat confdefs.h
>>conftest.
$ac_ext
7247 cat >>conftest.
$ac_ext <<_ACEOF
7248 /* end confdefs.h. */
7249 $ac_includes_default
7253 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
7260 rm -f conftest.
$ac_objext
7261 if { (ac_try
="$ac_compile"
7263 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7264 *) ac_try_echo=$ac_try;;
7266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7267 (eval "$ac_compile") 2>conftest.er1
7269 grep -v '^ *+' conftest.er1 >conftest.err
7271 cat conftest.err >&5
7272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7273 (exit $ac_status); } && {
7274 test -z "$ac_c_werror_flag" ||
7275 test ! -s conftest.err
7276 } && test -s conftest.$ac_objext; then
7277 cat >conftest.$ac_ext <<_ACEOF
7280 cat confdefs.h >>conftest.$ac_ext
7281 cat >>conftest.$ac_ext <<_ACEOF
7282 /* end confdefs.h. */
7283 $ac_includes_default
7287 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
7288 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
7295 rm -f conftest.$ac_objext
7296 if { (ac_try="$ac_compile"
7298 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7299 *) ac_try_echo
=$ac_try;;
7301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7302 (eval "$ac_compile") 2>conftest.er1
7304 grep -v '^ *+' conftest.er1
>conftest.err
7306 cat conftest.err
>&5
7307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308 (exit $ac_status); } && {
7309 test -z "$ac_c_werror_flag" ||
7310 test ! -s conftest.err
7311 } && test -s conftest.
$ac_objext; then
7314 echo "$as_me: failed program was:" >&5
7315 sed 's/^/| /' conftest.
$ac_ext >&5
7318 int32_t
) ac_cv_c_int32_t
=yes ;;
7319 *) ac_cv_c_int32_t
=$ac_type ;;
7324 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7326 echo "$as_me: failed program was:" >&5
7327 sed 's/^/| /' conftest.
$ac_ext >&5
7332 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7333 test "$ac_cv_c_int32_t" != no
&& break
7336 { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
7337 echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
7338 case $ac_cv_c_int32_t in #(
7342 cat >>confdefs.h
<<_ACEOF
7343 #define int32_t $ac_cv_c_int32_t
7349 { echo "$as_me:$LINENO: checking for int64_t" >&5
7350 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
7351 if test "${ac_cv_c_int64_t+set}" = set; then
7352 echo $ECHO_N "(cached) $ECHO_C" >&6
7355 for ac_type
in 'int64_t' 'int' 'long int' \
7356 'long long int' 'short int' 'signed char'; do
7357 cat >conftest.
$ac_ext <<_ACEOF
7360 cat confdefs.h
>>conftest.
$ac_ext
7361 cat >>conftest.
$ac_ext <<_ACEOF
7362 /* end confdefs.h. */
7363 $ac_includes_default
7367 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
7374 rm -f conftest.
$ac_objext
7375 if { (ac_try
="$ac_compile"
7377 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7378 *) ac_try_echo=$ac_try;;
7380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7381 (eval "$ac_compile") 2>conftest.er1
7383 grep -v '^ *+' conftest.er1 >conftest.err
7385 cat conftest.err >&5
7386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7387 (exit $ac_status); } && {
7388 test -z "$ac_c_werror_flag" ||
7389 test ! -s conftest.err
7390 } && test -s conftest.$ac_objext; then
7391 cat >conftest.$ac_ext <<_ACEOF
7394 cat confdefs.h >>conftest.$ac_ext
7395 cat >>conftest.$ac_ext <<_ACEOF
7396 /* end confdefs.h. */
7397 $ac_includes_default
7401 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
7402 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
7409 rm -f conftest.$ac_objext
7410 if { (ac_try="$ac_compile"
7412 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7413 *) ac_try_echo
=$ac_try;;
7415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7416 (eval "$ac_compile") 2>conftest.er1
7418 grep -v '^ *+' conftest.er1
>conftest.err
7420 cat conftest.err
>&5
7421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422 (exit $ac_status); } && {
7423 test -z "$ac_c_werror_flag" ||
7424 test ! -s conftest.err
7425 } && test -s conftest.
$ac_objext; then
7428 echo "$as_me: failed program was:" >&5
7429 sed 's/^/| /' conftest.
$ac_ext >&5
7432 int64_t
) ac_cv_c_int64_t
=yes ;;
7433 *) ac_cv_c_int64_t
=$ac_type ;;
7438 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7440 echo "$as_me: failed program was:" >&5
7441 sed 's/^/| /' conftest.
$ac_ext >&5
7446 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7447 test "$ac_cv_c_int64_t" != no
&& break
7450 { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
7451 echo "${ECHO_T}$ac_cv_c_int64_t" >&6; }
7452 case $ac_cv_c_int64_t in #(
7456 cat >>confdefs.h
<<_ACEOF
7457 #define int64_t $ac_cv_c_int64_t
7462 { echo "$as_me:$LINENO: checking for ssize_t" >&5
7463 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
7464 if test "${ac_cv_type_ssize_t+set}" = set; then
7465 echo $ECHO_N "(cached) $ECHO_C" >&6
7467 cat >conftest.
$ac_ext <<_ACEOF
7470 cat confdefs.h
>>conftest.
$ac_ext
7471 cat >>conftest.
$ac_ext <<_ACEOF
7472 /* end confdefs.h. */
7473 $ac_includes_default
7474 typedef ssize_t ac__type_new_;
7478 if ((ac__type_new_ *) 0)
7480 if (sizeof (ac__type_new_))
7486 rm -f conftest.
$ac_objext
7487 if { (ac_try
="$ac_compile"
7489 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7490 *) ac_try_echo=$ac_try;;
7492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7493 (eval "$ac_compile") 2>conftest.er1
7495 grep -v '^ *+' conftest.er1 >conftest.err
7497 cat conftest.err >&5
7498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7499 (exit $ac_status); } && {
7500 test -z "$ac_c_werror_flag" ||
7501 test ! -s conftest.err
7502 } && test -s conftest.$ac_objext; then
7503 ac_cv_type_ssize_t=yes
7505 echo "$as_me: failed program was:" >&5
7506 sed 's/^/| /' conftest.$ac_ext >&5
7508 ac_cv_type_ssize_t=no
7511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7513 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7514 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
7515 if test $ac_cv_type_ssize_t = yes; then
7517 cat >>confdefs.h <<\_ACEOF
7518 #define HAVE_SSIZE_T 1
7524 # Sizes of various common basic types
7525 # ANSI C requires sizeof(char) == 1, so no need to check it
7526 { echo "$as_me:$LINENO: checking for int" >&5
7527 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
7528 if test "${ac_cv_type_int+set}" = set; then
7529 echo $ECHO_N "(cached) $ECHO_C" >&6
7531 cat >conftest.$ac_ext <<_ACEOF
7534 cat confdefs.h >>conftest.$ac_ext
7535 cat >>conftest.$ac_ext <<_ACEOF
7536 /* end confdefs.h. */
7537 $ac_includes_default
7538 typedef int ac__type_new_;
7542 if ((ac__type_new_ *) 0)
7544 if (sizeof (ac__type_new_))
7550 rm -f conftest.$ac_objext
7551 if { (ac_try="$ac_compile"
7553 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7554 *) ac_try_echo
=$ac_try;;
7556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7557 (eval "$ac_compile") 2>conftest.er1
7559 grep -v '^ *+' conftest.er1
>conftest.err
7561 cat conftest.err
>&5
7562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563 (exit $ac_status); } && {
7564 test -z "$ac_c_werror_flag" ||
7565 test ! -s conftest.err
7566 } && test -s conftest.
$ac_objext; then
7569 echo "$as_me: failed program was:" >&5
7570 sed 's/^/| /' conftest.
$ac_ext >&5
7575 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7577 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7578 echo "${ECHO_T}$ac_cv_type_int" >&6; }
7580 # The cast to long int works around a bug in the HP C Compiler
7581 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7582 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7583 # This bug is HP SR number 8606223364.
7584 { echo "$as_me:$LINENO: checking size of int" >&5
7585 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
7586 if test "${ac_cv_sizeof_int+set}" = set; then
7587 echo $ECHO_N "(cached) $ECHO_C" >&6
7589 if test "$cross_compiling" = yes; then
7590 # Depending upon the size, compute the lo and hi bounds.
7591 cat >conftest.
$ac_ext <<_ACEOF
7594 cat confdefs.h
>>conftest.
$ac_ext
7595 cat >>conftest.
$ac_ext <<_ACEOF
7596 /* end confdefs.h. */
7597 $ac_includes_default
7598 typedef int ac__type_sizeof_;
7602 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7609 rm -f conftest.
$ac_objext
7610 if { (ac_try
="$ac_compile"
7612 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7613 *) ac_try_echo=$ac_try;;
7615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7616 (eval "$ac_compile") 2>conftest.er1
7618 grep -v '^ *+' conftest.er1 >conftest.err
7620 cat conftest.err >&5
7621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7622 (exit $ac_status); } && {
7623 test -z "$ac_c_werror_flag" ||
7624 test ! -s conftest.err
7625 } && test -s conftest.$ac_objext; then
7628 cat >conftest.$ac_ext <<_ACEOF
7631 cat confdefs.h >>conftest.$ac_ext
7632 cat >>conftest.$ac_ext <<_ACEOF
7633 /* end confdefs.h. */
7634 $ac_includes_default
7635 typedef int ac__type_sizeof_;
7639 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7646 rm -f conftest.$ac_objext
7647 if { (ac_try="$ac_compile"
7649 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7650 *) ac_try_echo
=$ac_try;;
7652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7653 (eval "$ac_compile") 2>conftest.er1
7655 grep -v '^ *+' conftest.er1
>conftest.err
7657 cat conftest.err
>&5
7658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7659 (exit $ac_status); } && {
7660 test -z "$ac_c_werror_flag" ||
7661 test ! -s conftest.err
7662 } && test -s conftest.
$ac_objext; then
7663 ac_hi
=$ac_mid; break
7665 echo "$as_me: failed program was:" >&5
7666 sed 's/^/| /' conftest.
$ac_ext >&5
7668 ac_lo
=`expr $ac_mid + 1`
7669 if test $ac_lo -le $ac_mid; then
7673 ac_mid
=`expr 2 '*' $ac_mid + 1`
7676 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7679 echo "$as_me: failed program was:" >&5
7680 sed 's/^/| /' conftest.
$ac_ext >&5
7682 cat >conftest.
$ac_ext <<_ACEOF
7685 cat confdefs.h
>>conftest.
$ac_ext
7686 cat >>conftest.
$ac_ext <<_ACEOF
7687 /* end confdefs.h. */
7688 $ac_includes_default
7689 typedef int ac__type_sizeof_;
7693 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7700 rm -f conftest.
$ac_objext
7701 if { (ac_try
="$ac_compile"
7703 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7704 *) ac_try_echo=$ac_try;;
7706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7707 (eval "$ac_compile") 2>conftest.er1
7709 grep -v '^ *+' conftest.er1 >conftest.err
7711 cat conftest.err >&5
7712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713 (exit $ac_status); } && {
7714 test -z "$ac_c_werror_flag" ||
7715 test ! -s conftest.err
7716 } && test -s conftest.$ac_objext; then
7719 cat >conftest.$ac_ext <<_ACEOF
7722 cat confdefs.h >>conftest.$ac_ext
7723 cat >>conftest.$ac_ext <<_ACEOF
7724 /* end confdefs.h. */
7725 $ac_includes_default
7726 typedef int ac__type_sizeof_;
7730 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7737 rm -f conftest.$ac_objext
7738 if { (ac_try="$ac_compile"
7740 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7741 *) ac_try_echo
=$ac_try;;
7743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7744 (eval "$ac_compile") 2>conftest.er1
7746 grep -v '^ *+' conftest.er1
>conftest.err
7748 cat conftest.err
>&5
7749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7750 (exit $ac_status); } && {
7751 test -z "$ac_c_werror_flag" ||
7752 test ! -s conftest.err
7753 } && test -s conftest.
$ac_objext; then
7754 ac_lo
=$ac_mid; break
7756 echo "$as_me: failed program was:" >&5
7757 sed 's/^/| /' conftest.
$ac_ext >&5
7759 ac_hi
=`expr '(' $ac_mid ')' - 1`
7760 if test $ac_mid -le $ac_hi; then
7764 ac_mid
=`expr 2 '*' $ac_mid`
7767 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7770 echo "$as_me: failed program was:" >&5
7771 sed 's/^/| /' conftest.
$ac_ext >&5
7776 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7779 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7780 # Binary search between lo and hi bounds.
7781 while test "x$ac_lo" != "x$ac_hi"; do
7782 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7783 cat >conftest.
$ac_ext <<_ACEOF
7786 cat confdefs.h
>>conftest.
$ac_ext
7787 cat >>conftest.
$ac_ext <<_ACEOF
7788 /* end confdefs.h. */
7789 $ac_includes_default
7790 typedef int ac__type_sizeof_;
7794 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7801 rm -f conftest.
$ac_objext
7802 if { (ac_try
="$ac_compile"
7804 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7805 *) ac_try_echo=$ac_try;;
7807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7808 (eval "$ac_compile") 2>conftest.er1
7810 grep -v '^ *+' conftest.er1 >conftest.err
7812 cat conftest.err >&5
7813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814 (exit $ac_status); } && {
7815 test -z "$ac_c_werror_flag" ||
7816 test ! -s conftest.err
7817 } && test -s conftest.$ac_objext; then
7820 echo "$as_me: failed program was:" >&5
7821 sed 's/^/| /' conftest.$ac_ext >&5
7823 ac_lo=`expr '(' $ac_mid ')' + 1`
7826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7829 ?*) ac_cv_sizeof_int=$ac_lo;;
7830 '') if test "$ac_cv_type_int" = yes; then
7831 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7832 See \`config.log
' for more details." >&5
7833 echo "$as_me: error: cannot compute sizeof (int)
7834 See \`config.log' for more details.
" >&2;}
7835 { (exit 77); exit 77; }; }
7841 cat >conftest.$ac_ext <<_ACEOF
7844 cat confdefs.h >>conftest.$ac_ext
7845 cat >>conftest.$ac_ext <<_ACEOF
7846 /* end confdefs.h. */
7847 $ac_includes_default
7848 typedef int ac__type_sizeof_;
7849 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7850 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7857 FILE *f = fopen ("conftest.val
", "w
");
7860 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7862 long int i = longval ();
7863 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7865 fprintf (f, "%ld
\n", i);
7869 unsigned long int i = ulongval ();
7870 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7872 fprintf (f, "%lu
\n", i);
7874 return ferror (f) || fclose (f) != 0;
7880 rm -f conftest$ac_exeext
7881 if { (ac_try="$ac_link"
7883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7884 *) ac_try_echo=$ac_try;;
7886 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7887 (eval "$ac_link") 2>&5
7889 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7890 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7891 { (case "(($ac_try" in
7892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7893 *) ac_try_echo=$ac_try;;
7895 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7896 (eval "$ac_try") 2>&5
7898 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7899 (exit $ac_status); }; }; then
7900 ac_cv_sizeof_int=`cat conftest.val`
7902 echo "$as_me: program exited with status
$ac_status" >&5
7903 echo "$as_me: failed program was
:" >&5
7904 sed 's/^/| /' conftest.$ac_ext >&5
7907 if test "$ac_cv_type_int" = yes; then
7908 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(int
)
7909 See \
`config.log' for more details." >&5
7910 echo "$as_me: error: cannot compute sizeof (int)
7911 See \`config.log
' for more details." >&2;}
7912 { (exit 77); exit 77; }; }
7917 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7921 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7922 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7926 cat >>confdefs.h <<_ACEOF
7927 #define SIZEOF_INT $ac_cv_sizeof_int
7931 { echo "$as_me:$LINENO: checking for long" >&5
7932 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
7933 if test "${ac_cv_type_long+set}" = set; then
7934 echo $ECHO_N "(cached) $ECHO_C" >&6
7936 cat >conftest.$ac_ext <<_ACEOF
7939 cat confdefs.h >>conftest.$ac_ext
7940 cat >>conftest.$ac_ext <<_ACEOF
7941 /* end confdefs.h. */
7942 $ac_includes_default
7943 typedef long ac__type_new_;
7947 if ((ac__type_new_ *) 0)
7949 if (sizeof (ac__type_new_))
7955 rm -f conftest.$ac_objext
7956 if { (ac_try="$ac_compile"
7958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7959 *) ac_try_echo=$ac_try;;
7961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7962 (eval "$ac_compile") 2>conftest.er1
7964 grep -v '^
*+' conftest.er1 >conftest.err
7966 cat conftest.err >&5
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); } && {
7969 test -z "$ac_c_werror_flag" ||
7970 test ! -s conftest.err
7971 } && test -s conftest.$ac_objext; then
7974 echo "$as_me: failed program was:" >&5
7975 sed 's
/^
/|
/' conftest.$ac_ext >&5
7980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7982 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7983 echo "${ECHO_T}$ac_cv_type_long" >&6; }
7985 # The cast to long int works around a bug in the HP C Compiler
7986 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7987 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7988 # This bug is HP SR number 8606223364.
7989 { echo "$as_me:$LINENO: checking size of long" >&5
7990 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
7991 if test "${ac_cv_sizeof_long+set}" = set; then
7992 echo $ECHO_N "(cached) $ECHO_C" >&6
7994 if test "$cross_compiling" = yes; then
7995 # Depending upon the size, compute the lo and hi bounds.
7996 cat >conftest.
$ac_ext <<_ACEOF
7999 cat confdefs.h
>>conftest.
$ac_ext
8000 cat >>conftest.
$ac_ext <<_ACEOF
8001 /* end confdefs.h. */
8002 $ac_includes_default
8003 typedef long ac__type_sizeof_;
8007 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8014 rm -f conftest.
$ac_objext
8015 if { (ac_try
="$ac_compile"
8017 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8018 *) ac_try_echo=$ac_try;;
8020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8021 (eval "$ac_compile") 2>conftest.er1
8023 grep -v '^ *+' conftest.er1 >conftest.err
8025 cat conftest.err >&5
8026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027 (exit $ac_status); } && {
8028 test -z "$ac_c_werror_flag" ||
8029 test ! -s conftest.err
8030 } && test -s conftest.$ac_objext; then
8033 cat >conftest.$ac_ext <<_ACEOF
8036 cat confdefs.h >>conftest.$ac_ext
8037 cat >>conftest.$ac_ext <<_ACEOF
8038 /* end confdefs.h. */
8039 $ac_includes_default
8040 typedef long ac__type_sizeof_;
8044 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8051 rm -f conftest.$ac_objext
8052 if { (ac_try="$ac_compile"
8054 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8055 *) ac_try_echo
=$ac_try;;
8057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8058 (eval "$ac_compile") 2>conftest.er1
8060 grep -v '^ *+' conftest.er1
>conftest.err
8062 cat conftest.err
>&5
8063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064 (exit $ac_status); } && {
8065 test -z "$ac_c_werror_flag" ||
8066 test ! -s conftest.err
8067 } && test -s conftest.
$ac_objext; then
8068 ac_hi
=$ac_mid; break
8070 echo "$as_me: failed program was:" >&5
8071 sed 's/^/| /' conftest.
$ac_ext >&5
8073 ac_lo
=`expr $ac_mid + 1`
8074 if test $ac_lo -le $ac_mid; then
8078 ac_mid
=`expr 2 '*' $ac_mid + 1`
8081 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8084 echo "$as_me: failed program was:" >&5
8085 sed 's/^/| /' conftest.
$ac_ext >&5
8087 cat >conftest.
$ac_ext <<_ACEOF
8090 cat confdefs.h
>>conftest.
$ac_ext
8091 cat >>conftest.
$ac_ext <<_ACEOF
8092 /* end confdefs.h. */
8093 $ac_includes_default
8094 typedef long ac__type_sizeof_;
8098 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8105 rm -f conftest.
$ac_objext
8106 if { (ac_try
="$ac_compile"
8108 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8109 *) ac_try_echo=$ac_try;;
8111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8112 (eval "$ac_compile") 2>conftest.er1
8114 grep -v '^ *+' conftest.er1 >conftest.err
8116 cat conftest.err >&5
8117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118 (exit $ac_status); } && {
8119 test -z "$ac_c_werror_flag" ||
8120 test ! -s conftest.err
8121 } && test -s conftest.$ac_objext; then
8124 cat >conftest.$ac_ext <<_ACEOF
8127 cat confdefs.h >>conftest.$ac_ext
8128 cat >>conftest.$ac_ext <<_ACEOF
8129 /* end confdefs.h. */
8130 $ac_includes_default
8131 typedef long ac__type_sizeof_;
8135 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8142 rm -f conftest.$ac_objext
8143 if { (ac_try="$ac_compile"
8145 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8146 *) ac_try_echo
=$ac_try;;
8148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8149 (eval "$ac_compile") 2>conftest.er1
8151 grep -v '^ *+' conftest.er1
>conftest.err
8153 cat conftest.err
>&5
8154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155 (exit $ac_status); } && {
8156 test -z "$ac_c_werror_flag" ||
8157 test ! -s conftest.err
8158 } && test -s conftest.
$ac_objext; then
8159 ac_lo
=$ac_mid; break
8161 echo "$as_me: failed program was:" >&5
8162 sed 's/^/| /' conftest.
$ac_ext >&5
8164 ac_hi
=`expr '(' $ac_mid ')' - 1`
8165 if test $ac_mid -le $ac_hi; then
8169 ac_mid
=`expr 2 '*' $ac_mid`
8172 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8175 echo "$as_me: failed program was:" >&5
8176 sed 's/^/| /' conftest.
$ac_ext >&5
8181 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8184 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8185 # Binary search between lo and hi bounds.
8186 while test "x$ac_lo" != "x$ac_hi"; do
8187 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8188 cat >conftest.
$ac_ext <<_ACEOF
8191 cat confdefs.h
>>conftest.
$ac_ext
8192 cat >>conftest.
$ac_ext <<_ACEOF
8193 /* end confdefs.h. */
8194 $ac_includes_default
8195 typedef long ac__type_sizeof_;
8199 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8206 rm -f conftest.
$ac_objext
8207 if { (ac_try
="$ac_compile"
8209 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8210 *) ac_try_echo=$ac_try;;
8212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8213 (eval "$ac_compile") 2>conftest.er1
8215 grep -v '^ *+' conftest.er1 >conftest.err
8217 cat conftest.err >&5
8218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219 (exit $ac_status); } && {
8220 test -z "$ac_c_werror_flag" ||
8221 test ! -s conftest.err
8222 } && test -s conftest.$ac_objext; then
8225 echo "$as_me: failed program was:" >&5
8226 sed 's/^/| /' conftest.$ac_ext >&5
8228 ac_lo=`expr '(' $ac_mid ')' + 1`
8231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8234 ?*) ac_cv_sizeof_long=$ac_lo;;
8235 '') if test "$ac_cv_type_long" = yes; then
8236 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8237 See \`config.log
' for more details." >&5
8238 echo "$as_me: error: cannot compute sizeof (long)
8239 See \`config.log' for more details.
" >&2;}
8240 { (exit 77); exit 77; }; }
8246 cat >conftest.$ac_ext <<_ACEOF
8249 cat confdefs.h >>conftest.$ac_ext
8250 cat >>conftest.$ac_ext <<_ACEOF
8251 /* end confdefs.h. */
8252 $ac_includes_default
8253 typedef long ac__type_sizeof_;
8254 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8255 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8262 FILE *f = fopen ("conftest.val
", "w
");
8265 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8267 long int i = longval ();
8268 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8270 fprintf (f, "%ld
\n", i);
8274 unsigned long int i = ulongval ();
8275 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8277 fprintf (f, "%lu
\n", i);
8279 return ferror (f) || fclose (f) != 0;
8285 rm -f conftest$ac_exeext
8286 if { (ac_try="$ac_link"
8288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8289 *) ac_try_echo=$ac_try;;
8291 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8292 (eval "$ac_link") 2>&5
8294 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8295 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8296 { (case "(($ac_try" in
8297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8298 *) ac_try_echo=$ac_try;;
8300 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8301 (eval "$ac_try") 2>&5
8303 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8304 (exit $ac_status); }; }; then
8305 ac_cv_sizeof_long=`cat conftest.val`
8307 echo "$as_me: program exited with status
$ac_status" >&5
8308 echo "$as_me: failed program was
:" >&5
8309 sed 's/^/| /' conftest.$ac_ext >&5
8312 if test "$ac_cv_type_long" = yes; then
8313 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long
)
8314 See \
`config.log' for more details." >&5
8315 echo "$as_me: error: cannot compute sizeof (long)
8316 See \`config.log
' for more details." >&2;}
8317 { (exit 77); exit 77; }; }
8322 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8326 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8327 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
8331 cat >>confdefs.h <<_ACEOF
8332 #define SIZEOF_LONG $ac_cv_sizeof_long
8336 { echo "$as_me:$LINENO: checking for void *" >&5
8337 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
8338 if test "${ac_cv_type_void_p+set}" = set; then
8339 echo $ECHO_N "(cached) $ECHO_C" >&6
8341 cat >conftest.$ac_ext <<_ACEOF
8344 cat confdefs.h >>conftest.$ac_ext
8345 cat >>conftest.$ac_ext <<_ACEOF
8346 /* end confdefs.h. */
8347 $ac_includes_default
8348 typedef void * ac__type_new_;
8352 if ((ac__type_new_ *) 0)
8354 if (sizeof (ac__type_new_))
8360 rm -f conftest.$ac_objext
8361 if { (ac_try="$ac_compile"
8363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8364 *) ac_try_echo=$ac_try;;
8366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8367 (eval "$ac_compile") 2>conftest.er1
8369 grep -v '^
*+' conftest.er1 >conftest.err
8371 cat conftest.err >&5
8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373 (exit $ac_status); } && {
8374 test -z "$ac_c_werror_flag" ||
8375 test ! -s conftest.err
8376 } && test -s conftest.$ac_objext; then
8377 ac_cv_type_void_p=yes
8379 echo "$as_me: failed program was:" >&5
8380 sed 's
/^
/|
/' conftest.$ac_ext >&5
8382 ac_cv_type_void_p=no
8385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8387 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
8388 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
8390 # The cast to long int works around a bug in the HP C Compiler
8391 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8392 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8393 # This bug is HP SR number 8606223364.
8394 { echo "$as_me:$LINENO: checking size of void *" >&5
8395 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
8396 if test "${ac_cv_sizeof_void_p+set}" = set; then
8397 echo $ECHO_N "(cached) $ECHO_C" >&6
8399 if test "$cross_compiling" = yes; then
8400 # Depending upon the size, compute the lo and hi bounds.
8401 cat >conftest.
$ac_ext <<_ACEOF
8404 cat confdefs.h
>>conftest.
$ac_ext
8405 cat >>conftest.
$ac_ext <<_ACEOF
8406 /* end confdefs.h. */
8407 $ac_includes_default
8408 typedef void * ac__type_sizeof_;
8412 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8419 rm -f conftest.
$ac_objext
8420 if { (ac_try
="$ac_compile"
8422 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8423 *) ac_try_echo=$ac_try;;
8425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8426 (eval "$ac_compile") 2>conftest.er1
8428 grep -v '^ *+' conftest.er1 >conftest.err
8430 cat conftest.err >&5
8431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432 (exit $ac_status); } && {
8433 test -z "$ac_c_werror_flag" ||
8434 test ! -s conftest.err
8435 } && test -s conftest.$ac_objext; then
8438 cat >conftest.$ac_ext <<_ACEOF
8441 cat confdefs.h >>conftest.$ac_ext
8442 cat >>conftest.$ac_ext <<_ACEOF
8443 /* end confdefs.h. */
8444 $ac_includes_default
8445 typedef void * ac__type_sizeof_;
8449 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8456 rm -f conftest.$ac_objext
8457 if { (ac_try="$ac_compile"
8459 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8460 *) ac_try_echo
=$ac_try;;
8462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8463 (eval "$ac_compile") 2>conftest.er1
8465 grep -v '^ *+' conftest.er1
>conftest.err
8467 cat conftest.err
>&5
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); } && {
8470 test -z "$ac_c_werror_flag" ||
8471 test ! -s conftest.err
8472 } && test -s conftest.
$ac_objext; then
8473 ac_hi
=$ac_mid; break
8475 echo "$as_me: failed program was:" >&5
8476 sed 's/^/| /' conftest.
$ac_ext >&5
8478 ac_lo
=`expr $ac_mid + 1`
8479 if test $ac_lo -le $ac_mid; then
8483 ac_mid
=`expr 2 '*' $ac_mid + 1`
8486 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8489 echo "$as_me: failed program was:" >&5
8490 sed 's/^/| /' conftest.
$ac_ext >&5
8492 cat >conftest.
$ac_ext <<_ACEOF
8495 cat confdefs.h
>>conftest.
$ac_ext
8496 cat >>conftest.
$ac_ext <<_ACEOF
8497 /* end confdefs.h. */
8498 $ac_includes_default
8499 typedef void * ac__type_sizeof_;
8503 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8510 rm -f conftest.
$ac_objext
8511 if { (ac_try
="$ac_compile"
8513 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8514 *) ac_try_echo=$ac_try;;
8516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8517 (eval "$ac_compile") 2>conftest.er1
8519 grep -v '^ *+' conftest.er1 >conftest.err
8521 cat conftest.err >&5
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); } && {
8524 test -z "$ac_c_werror_flag" ||
8525 test ! -s conftest.err
8526 } && test -s conftest.$ac_objext; then
8529 cat >conftest.$ac_ext <<_ACEOF
8532 cat confdefs.h >>conftest.$ac_ext
8533 cat >>conftest.$ac_ext <<_ACEOF
8534 /* end confdefs.h. */
8535 $ac_includes_default
8536 typedef void * ac__type_sizeof_;
8540 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8547 rm -f conftest.$ac_objext
8548 if { (ac_try="$ac_compile"
8550 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8551 *) ac_try_echo
=$ac_try;;
8553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8554 (eval "$ac_compile") 2>conftest.er1
8556 grep -v '^ *+' conftest.er1
>conftest.err
8558 cat conftest.err
>&5
8559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560 (exit $ac_status); } && {
8561 test -z "$ac_c_werror_flag" ||
8562 test ! -s conftest.err
8563 } && test -s conftest.
$ac_objext; then
8564 ac_lo
=$ac_mid; break
8566 echo "$as_me: failed program was:" >&5
8567 sed 's/^/| /' conftest.
$ac_ext >&5
8569 ac_hi
=`expr '(' $ac_mid ')' - 1`
8570 if test $ac_mid -le $ac_hi; then
8574 ac_mid
=`expr 2 '*' $ac_mid`
8577 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8580 echo "$as_me: failed program was:" >&5
8581 sed 's/^/| /' conftest.
$ac_ext >&5
8586 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8589 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8590 # Binary search between lo and hi bounds.
8591 while test "x$ac_lo" != "x$ac_hi"; do
8592 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8593 cat >conftest.
$ac_ext <<_ACEOF
8596 cat confdefs.h
>>conftest.
$ac_ext
8597 cat >>conftest.
$ac_ext <<_ACEOF
8598 /* end confdefs.h. */
8599 $ac_includes_default
8600 typedef void * ac__type_sizeof_;
8604 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8611 rm -f conftest.
$ac_objext
8612 if { (ac_try
="$ac_compile"
8614 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8615 *) ac_try_echo=$ac_try;;
8617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8618 (eval "$ac_compile") 2>conftest.er1
8620 grep -v '^ *+' conftest.er1 >conftest.err
8622 cat conftest.err >&5
8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 (exit $ac_status); } && {
8625 test -z "$ac_c_werror_flag" ||
8626 test ! -s conftest.err
8627 } && test -s conftest.$ac_objext; then
8630 echo "$as_me: failed program was:" >&5
8631 sed 's/^/| /' conftest.$ac_ext >&5
8633 ac_lo=`expr '(' $ac_mid ')' + 1`
8636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8639 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8640 '') if test "$ac_cv_type_void_p" = yes; then
8641 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8642 See \`config.log
' for more details." >&5
8643 echo "$as_me: error: cannot compute sizeof (void *)
8644 See \`config.log' for more details.
" >&2;}
8645 { (exit 77); exit 77; }; }
8647 ac_cv_sizeof_void_p=0
8651 cat >conftest.$ac_ext <<_ACEOF
8654 cat confdefs.h >>conftest.$ac_ext
8655 cat >>conftest.$ac_ext <<_ACEOF
8656 /* end confdefs.h. */
8657 $ac_includes_default
8658 typedef void * ac__type_sizeof_;
8659 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8660 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8667 FILE *f = fopen ("conftest.val
", "w
");
8670 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8672 long int i = longval ();
8673 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8675 fprintf (f, "%ld
\n", i);
8679 unsigned long int i = ulongval ();
8680 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8682 fprintf (f, "%lu
\n", i);
8684 return ferror (f) || fclose (f) != 0;
8690 rm -f conftest$ac_exeext
8691 if { (ac_try="$ac_link"
8693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8694 *) ac_try_echo=$ac_try;;
8696 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8697 (eval "$ac_link") 2>&5
8699 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8700 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8701 { (case "(($ac_try" in
8702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8703 *) ac_try_echo=$ac_try;;
8705 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8706 (eval "$ac_try") 2>&5
8708 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8709 (exit $ac_status); }; }; then
8710 ac_cv_sizeof_void_p=`cat conftest.val`
8712 echo "$as_me: program exited with status
$ac_status" >&5
8713 echo "$as_me: failed program was
:" >&5
8714 sed 's/^/| /' conftest.$ac_ext >&5
8717 if test "$ac_cv_type_void_p" = yes; then
8718 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(void
*)
8719 See \
`config.log' for more details." >&5
8720 echo "$as_me: error: cannot compute sizeof (void *)
8721 See \`config.log
' for more details." >&2;}
8722 { (exit 77); exit 77; }; }
8724 ac_cv_sizeof_void_p=0
8727 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8731 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8732 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8736 cat >>confdefs.h <<_ACEOF
8737 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8741 { echo "$as_me:$LINENO: checking for short" >&5
8742 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
8743 if test "${ac_cv_type_short+set}" = set; then
8744 echo $ECHO_N "(cached) $ECHO_C" >&6
8746 cat >conftest.$ac_ext <<_ACEOF
8749 cat confdefs.h >>conftest.$ac_ext
8750 cat >>conftest.$ac_ext <<_ACEOF
8751 /* end confdefs.h. */
8752 $ac_includes_default
8753 typedef short ac__type_new_;
8757 if ((ac__type_new_ *) 0)
8759 if (sizeof (ac__type_new_))
8765 rm -f conftest.$ac_objext
8766 if { (ac_try="$ac_compile"
8768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8769 *) ac_try_echo=$ac_try;;
8771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8772 (eval "$ac_compile") 2>conftest.er1
8774 grep -v '^
*+' conftest.er1 >conftest.err
8776 cat conftest.err >&5
8777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778 (exit $ac_status); } && {
8779 test -z "$ac_c_werror_flag" ||
8780 test ! -s conftest.err
8781 } && test -s conftest.$ac_objext; then
8782 ac_cv_type_short=yes
8784 echo "$as_me: failed program was:" >&5
8785 sed 's
/^
/|
/' conftest.$ac_ext >&5
8790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8792 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8793 echo "${ECHO_T}$ac_cv_type_short" >&6; }
8795 # The cast to long int works around a bug in the HP C Compiler
8796 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8797 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8798 # This bug is HP SR number 8606223364.
8799 { echo "$as_me:$LINENO: checking size of short" >&5
8800 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8801 if test "${ac_cv_sizeof_short+set}" = set; then
8802 echo $ECHO_N "(cached) $ECHO_C" >&6
8804 if test "$cross_compiling" = yes; then
8805 # Depending upon the size, compute the lo and hi bounds.
8806 cat >conftest.
$ac_ext <<_ACEOF
8809 cat confdefs.h
>>conftest.
$ac_ext
8810 cat >>conftest.
$ac_ext <<_ACEOF
8811 /* end confdefs.h. */
8812 $ac_includes_default
8813 typedef short ac__type_sizeof_;
8817 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8824 rm -f conftest.
$ac_objext
8825 if { (ac_try
="$ac_compile"
8827 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8828 *) ac_try_echo=$ac_try;;
8830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8831 (eval "$ac_compile") 2>conftest.er1
8833 grep -v '^ *+' conftest.er1 >conftest.err
8835 cat conftest.err >&5
8836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837 (exit $ac_status); } && {
8838 test -z "$ac_c_werror_flag" ||
8839 test ! -s conftest.err
8840 } && test -s conftest.$ac_objext; then
8843 cat >conftest.$ac_ext <<_ACEOF
8846 cat confdefs.h >>conftest.$ac_ext
8847 cat >>conftest.$ac_ext <<_ACEOF
8848 /* end confdefs.h. */
8849 $ac_includes_default
8850 typedef short ac__type_sizeof_;
8854 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8861 rm -f conftest.$ac_objext
8862 if { (ac_try="$ac_compile"
8864 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8865 *) ac_try_echo
=$ac_try;;
8867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8868 (eval "$ac_compile") 2>conftest.er1
8870 grep -v '^ *+' conftest.er1
>conftest.err
8872 cat conftest.err
>&5
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); } && {
8875 test -z "$ac_c_werror_flag" ||
8876 test ! -s conftest.err
8877 } && test -s conftest.
$ac_objext; then
8878 ac_hi
=$ac_mid; break
8880 echo "$as_me: failed program was:" >&5
8881 sed 's/^/| /' conftest.
$ac_ext >&5
8883 ac_lo
=`expr $ac_mid + 1`
8884 if test $ac_lo -le $ac_mid; then
8888 ac_mid
=`expr 2 '*' $ac_mid + 1`
8891 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8894 echo "$as_me: failed program was:" >&5
8895 sed 's/^/| /' conftest.
$ac_ext >&5
8897 cat >conftest.
$ac_ext <<_ACEOF
8900 cat confdefs.h
>>conftest.
$ac_ext
8901 cat >>conftest.
$ac_ext <<_ACEOF
8902 /* end confdefs.h. */
8903 $ac_includes_default
8904 typedef short ac__type_sizeof_;
8908 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8915 rm -f conftest.
$ac_objext
8916 if { (ac_try
="$ac_compile"
8918 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8919 *) ac_try_echo=$ac_try;;
8921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8922 (eval "$ac_compile") 2>conftest.er1
8924 grep -v '^ *+' conftest.er1 >conftest.err
8926 cat conftest.err >&5
8927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928 (exit $ac_status); } && {
8929 test -z "$ac_c_werror_flag" ||
8930 test ! -s conftest.err
8931 } && test -s conftest.$ac_objext; then
8934 cat >conftest.$ac_ext <<_ACEOF
8937 cat confdefs.h >>conftest.$ac_ext
8938 cat >>conftest.$ac_ext <<_ACEOF
8939 /* end confdefs.h. */
8940 $ac_includes_default
8941 typedef short ac__type_sizeof_;
8945 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8952 rm -f conftest.$ac_objext
8953 if { (ac_try="$ac_compile"
8955 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8956 *) ac_try_echo
=$ac_try;;
8958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8959 (eval "$ac_compile") 2>conftest.er1
8961 grep -v '^ *+' conftest.er1
>conftest.err
8963 cat conftest.err
>&5
8964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965 (exit $ac_status); } && {
8966 test -z "$ac_c_werror_flag" ||
8967 test ! -s conftest.err
8968 } && test -s conftest.
$ac_objext; then
8969 ac_lo
=$ac_mid; break
8971 echo "$as_me: failed program was:" >&5
8972 sed 's/^/| /' conftest.
$ac_ext >&5
8974 ac_hi
=`expr '(' $ac_mid ')' - 1`
8975 if test $ac_mid -le $ac_hi; then
8979 ac_mid
=`expr 2 '*' $ac_mid`
8982 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8985 echo "$as_me: failed program was:" >&5
8986 sed 's/^/| /' conftest.
$ac_ext >&5
8991 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8994 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8995 # Binary search between lo and hi bounds.
8996 while test "x$ac_lo" != "x$ac_hi"; do
8997 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8998 cat >conftest.
$ac_ext <<_ACEOF
9001 cat confdefs.h
>>conftest.
$ac_ext
9002 cat >>conftest.
$ac_ext <<_ACEOF
9003 /* end confdefs.h. */
9004 $ac_includes_default
9005 typedef short ac__type_sizeof_;
9009 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9016 rm -f conftest.
$ac_objext
9017 if { (ac_try
="$ac_compile"
9019 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9020 *) ac_try_echo=$ac_try;;
9022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9023 (eval "$ac_compile") 2>conftest.er1
9025 grep -v '^ *+' conftest.er1 >conftest.err
9027 cat conftest.err >&5
9028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029 (exit $ac_status); } && {
9030 test -z "$ac_c_werror_flag" ||
9031 test ! -s conftest.err
9032 } && test -s conftest.$ac_objext; then
9035 echo "$as_me: failed program was:" >&5
9036 sed 's/^/| /' conftest.$ac_ext >&5
9038 ac_lo=`expr '(' $ac_mid ')' + 1`
9041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9044 ?*) ac_cv_sizeof_short=$ac_lo;;
9045 '') if test "$ac_cv_type_short" = yes; then
9046 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
9047 See \`config.log
' for more details." >&5
9048 echo "$as_me: error: cannot compute sizeof (short)
9049 See \`config.log' for more details.
" >&2;}
9050 { (exit 77); exit 77; }; }
9052 ac_cv_sizeof_short=0
9056 cat >conftest.$ac_ext <<_ACEOF
9059 cat confdefs.h >>conftest.$ac_ext
9060 cat >>conftest.$ac_ext <<_ACEOF
9061 /* end confdefs.h. */
9062 $ac_includes_default
9063 typedef short ac__type_sizeof_;
9064 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9065 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9072 FILE *f = fopen ("conftest.val
", "w
");
9075 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9077 long int i = longval ();
9078 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9080 fprintf (f, "%ld
\n", i);
9084 unsigned long int i = ulongval ();
9085 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9087 fprintf (f, "%lu
\n", i);
9089 return ferror (f) || fclose (f) != 0;
9095 rm -f conftest$ac_exeext
9096 if { (ac_try="$ac_link"
9098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9099 *) ac_try_echo=$ac_try;;
9101 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9102 (eval "$ac_link") 2>&5
9104 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9105 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9106 { (case "(($ac_try" in
9107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9108 *) ac_try_echo=$ac_try;;
9110 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9111 (eval "$ac_try") 2>&5
9113 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9114 (exit $ac_status); }; }; then
9115 ac_cv_sizeof_short=`cat conftest.val`
9117 echo "$as_me: program exited with status
$ac_status" >&5
9118 echo "$as_me: failed program was
:" >&5
9119 sed 's/^/| /' conftest.$ac_ext >&5
9122 if test "$ac_cv_type_short" = yes; then
9123 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(short
)
9124 See \
`config.log' for more details." >&5
9125 echo "$as_me: error: cannot compute sizeof (short)
9126 See \`config.log
' for more details." >&2;}
9127 { (exit 77); exit 77; }; }
9129 ac_cv_sizeof_short=0
9132 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9136 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
9137 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
9141 cat >>confdefs.h <<_ACEOF
9142 #define SIZEOF_SHORT $ac_cv_sizeof_short
9146 { echo "$as_me:$LINENO: checking for float" >&5
9147 echo $ECHO_N "checking for float... $ECHO_C" >&6; }
9148 if test "${ac_cv_type_float+set}" = set; then
9149 echo $ECHO_N "(cached) $ECHO_C" >&6
9151 cat >conftest.$ac_ext <<_ACEOF
9154 cat confdefs.h >>conftest.$ac_ext
9155 cat >>conftest.$ac_ext <<_ACEOF
9156 /* end confdefs.h. */
9157 $ac_includes_default
9158 typedef float ac__type_new_;
9162 if ((ac__type_new_ *) 0)
9164 if (sizeof (ac__type_new_))
9170 rm -f conftest.$ac_objext
9171 if { (ac_try="$ac_compile"
9173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9174 *) ac_try_echo=$ac_try;;
9176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9177 (eval "$ac_compile") 2>conftest.er1
9179 grep -v '^
*+' conftest.er1 >conftest.err
9181 cat conftest.err >&5
9182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9183 (exit $ac_status); } && {
9184 test -z "$ac_c_werror_flag" ||
9185 test ! -s conftest.err
9186 } && test -s conftest.$ac_objext; then
9187 ac_cv_type_float=yes
9189 echo "$as_me: failed program was:" >&5
9190 sed 's
/^
/|
/' conftest.$ac_ext >&5
9195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9197 { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
9198 echo "${ECHO_T}$ac_cv_type_float" >&6; }
9200 # The cast to long int works around a bug in the HP C Compiler
9201 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9202 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9203 # This bug is HP SR number 8606223364.
9204 { echo "$as_me:$LINENO: checking size of float" >&5
9205 echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
9206 if test "${ac_cv_sizeof_float+set}" = set; then
9207 echo $ECHO_N "(cached) $ECHO_C" >&6
9209 if test "$cross_compiling" = yes; then
9210 # Depending upon the size, compute the lo and hi bounds.
9211 cat >conftest.
$ac_ext <<_ACEOF
9214 cat confdefs.h
>>conftest.
$ac_ext
9215 cat >>conftest.
$ac_ext <<_ACEOF
9216 /* end confdefs.h. */
9217 $ac_includes_default
9218 typedef float ac__type_sizeof_;
9222 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9229 rm -f conftest.
$ac_objext
9230 if { (ac_try
="$ac_compile"
9232 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9233 *) ac_try_echo=$ac_try;;
9235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9236 (eval "$ac_compile") 2>conftest.er1
9238 grep -v '^ *+' conftest.er1 >conftest.err
9240 cat conftest.err >&5
9241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242 (exit $ac_status); } && {
9243 test -z "$ac_c_werror_flag" ||
9244 test ! -s conftest.err
9245 } && test -s conftest.$ac_objext; then
9248 cat >conftest.$ac_ext <<_ACEOF
9251 cat confdefs.h >>conftest.$ac_ext
9252 cat >>conftest.$ac_ext <<_ACEOF
9253 /* end confdefs.h. */
9254 $ac_includes_default
9255 typedef float ac__type_sizeof_;
9259 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9266 rm -f conftest.$ac_objext
9267 if { (ac_try="$ac_compile"
9269 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9270 *) ac_try_echo
=$ac_try;;
9272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9273 (eval "$ac_compile") 2>conftest.er1
9275 grep -v '^ *+' conftest.er1
>conftest.err
9277 cat conftest.err
>&5
9278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9279 (exit $ac_status); } && {
9280 test -z "$ac_c_werror_flag" ||
9281 test ! -s conftest.err
9282 } && test -s conftest.
$ac_objext; then
9283 ac_hi
=$ac_mid; break
9285 echo "$as_me: failed program was:" >&5
9286 sed 's/^/| /' conftest.
$ac_ext >&5
9288 ac_lo
=`expr $ac_mid + 1`
9289 if test $ac_lo -le $ac_mid; then
9293 ac_mid
=`expr 2 '*' $ac_mid + 1`
9296 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9299 echo "$as_me: failed program was:" >&5
9300 sed 's/^/| /' conftest.
$ac_ext >&5
9302 cat >conftest.
$ac_ext <<_ACEOF
9305 cat confdefs.h
>>conftest.
$ac_ext
9306 cat >>conftest.
$ac_ext <<_ACEOF
9307 /* end confdefs.h. */
9308 $ac_includes_default
9309 typedef float ac__type_sizeof_;
9313 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9320 rm -f conftest.
$ac_objext
9321 if { (ac_try
="$ac_compile"
9323 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9324 *) ac_try_echo=$ac_try;;
9326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9327 (eval "$ac_compile") 2>conftest.er1
9329 grep -v '^ *+' conftest.er1 >conftest.err
9331 cat conftest.err >&5
9332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333 (exit $ac_status); } && {
9334 test -z "$ac_c_werror_flag" ||
9335 test ! -s conftest.err
9336 } && test -s conftest.$ac_objext; then
9339 cat >conftest.$ac_ext <<_ACEOF
9342 cat confdefs.h >>conftest.$ac_ext
9343 cat >>conftest.$ac_ext <<_ACEOF
9344 /* end confdefs.h. */
9345 $ac_includes_default
9346 typedef float ac__type_sizeof_;
9350 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9357 rm -f conftest.$ac_objext
9358 if { (ac_try="$ac_compile"
9360 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9361 *) ac_try_echo
=$ac_try;;
9363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9364 (eval "$ac_compile") 2>conftest.er1
9366 grep -v '^ *+' conftest.er1
>conftest.err
9368 cat conftest.err
>&5
9369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370 (exit $ac_status); } && {
9371 test -z "$ac_c_werror_flag" ||
9372 test ! -s conftest.err
9373 } && test -s conftest.
$ac_objext; then
9374 ac_lo
=$ac_mid; break
9376 echo "$as_me: failed program was:" >&5
9377 sed 's/^/| /' conftest.
$ac_ext >&5
9379 ac_hi
=`expr '(' $ac_mid ')' - 1`
9380 if test $ac_mid -le $ac_hi; then
9384 ac_mid
=`expr 2 '*' $ac_mid`
9387 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9390 echo "$as_me: failed program was:" >&5
9391 sed 's/^/| /' conftest.
$ac_ext >&5
9396 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9399 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9400 # Binary search between lo and hi bounds.
9401 while test "x$ac_lo" != "x$ac_hi"; do
9402 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9403 cat >conftest.
$ac_ext <<_ACEOF
9406 cat confdefs.h
>>conftest.
$ac_ext
9407 cat >>conftest.
$ac_ext <<_ACEOF
9408 /* end confdefs.h. */
9409 $ac_includes_default
9410 typedef float ac__type_sizeof_;
9414 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9421 rm -f conftest.
$ac_objext
9422 if { (ac_try
="$ac_compile"
9424 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9425 *) ac_try_echo=$ac_try;;
9427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9428 (eval "$ac_compile") 2>conftest.er1
9430 grep -v '^ *+' conftest.er1 >conftest.err
9432 cat conftest.err >&5
9433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434 (exit $ac_status); } && {
9435 test -z "$ac_c_werror_flag" ||
9436 test ! -s conftest.err
9437 } && test -s conftest.$ac_objext; then
9440 echo "$as_me: failed program was:" >&5
9441 sed 's/^/| /' conftest.$ac_ext >&5
9443 ac_lo=`expr '(' $ac_mid ')' + 1`
9446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9449 ?*) ac_cv_sizeof_float=$ac_lo;;
9450 '') if test "$ac_cv_type_float" = yes; then
9451 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
9452 See \`config.log
' for more details." >&5
9453 echo "$as_me: error: cannot compute sizeof (float)
9454 See \`config.log' for more details.
" >&2;}
9455 { (exit 77); exit 77; }; }
9457 ac_cv_sizeof_float=0
9461 cat >conftest.$ac_ext <<_ACEOF
9464 cat confdefs.h >>conftest.$ac_ext
9465 cat >>conftest.$ac_ext <<_ACEOF
9466 /* end confdefs.h. */
9467 $ac_includes_default
9468 typedef float ac__type_sizeof_;
9469 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9470 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9477 FILE *f = fopen ("conftest.val
", "w
");
9480 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9482 long int i = longval ();
9483 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9485 fprintf (f, "%ld
\n", i);
9489 unsigned long int i = ulongval ();
9490 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9492 fprintf (f, "%lu
\n", i);
9494 return ferror (f) || fclose (f) != 0;
9500 rm -f conftest$ac_exeext
9501 if { (ac_try="$ac_link"
9503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9504 *) ac_try_echo=$ac_try;;
9506 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9507 (eval "$ac_link") 2>&5
9509 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9510 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9511 { (case "(($ac_try" in
9512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9513 *) ac_try_echo=$ac_try;;
9515 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9516 (eval "$ac_try") 2>&5
9518 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9519 (exit $ac_status); }; }; then
9520 ac_cv_sizeof_float=`cat conftest.val`
9522 echo "$as_me: program exited with status
$ac_status" >&5
9523 echo "$as_me: failed program was
:" >&5
9524 sed 's/^/| /' conftest.$ac_ext >&5
9527 if test "$ac_cv_type_float" = yes; then
9528 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(float
)
9529 See \
`config.log' for more details." >&5
9530 echo "$as_me: error: cannot compute sizeof (float)
9531 See \`config.log
' for more details." >&2;}
9532 { (exit 77); exit 77; }; }
9534 ac_cv_sizeof_float=0
9537 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9541 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
9542 echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
9546 cat >>confdefs.h <<_ACEOF
9547 #define SIZEOF_FLOAT $ac_cv_sizeof_float
9551 { echo "$as_me:$LINENO: checking for double" >&5
9552 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
9553 if test "${ac_cv_type_double+set}" = set; then
9554 echo $ECHO_N "(cached) $ECHO_C" >&6
9556 cat >conftest.$ac_ext <<_ACEOF
9559 cat confdefs.h >>conftest.$ac_ext
9560 cat >>conftest.$ac_ext <<_ACEOF
9561 /* end confdefs.h. */
9562 $ac_includes_default
9563 typedef double ac__type_new_;
9567 if ((ac__type_new_ *) 0)
9569 if (sizeof (ac__type_new_))
9575 rm -f conftest.$ac_objext
9576 if { (ac_try="$ac_compile"
9578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9579 *) ac_try_echo=$ac_try;;
9581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9582 (eval "$ac_compile") 2>conftest.er1
9584 grep -v '^
*+' conftest.er1 >conftest.err
9586 cat conftest.err >&5
9587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588 (exit $ac_status); } && {
9589 test -z "$ac_c_werror_flag" ||
9590 test ! -s conftest.err
9591 } && test -s conftest.$ac_objext; then
9592 ac_cv_type_double=yes
9594 echo "$as_me: failed program was:" >&5
9595 sed 's
/^
/|
/' conftest.$ac_ext >&5
9597 ac_cv_type_double=no
9600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9602 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
9603 echo "${ECHO_T}$ac_cv_type_double" >&6; }
9605 # The cast to long int works around a bug in the HP C Compiler
9606 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9607 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9608 # This bug is HP SR number 8606223364.
9609 { echo "$as_me:$LINENO: checking size of double" >&5
9610 echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
9611 if test "${ac_cv_sizeof_double+set}" = set; then
9612 echo $ECHO_N "(cached) $ECHO_C" >&6
9614 if test "$cross_compiling" = yes; then
9615 # Depending upon the size, compute the lo and hi bounds.
9616 cat >conftest.
$ac_ext <<_ACEOF
9619 cat confdefs.h
>>conftest.
$ac_ext
9620 cat >>conftest.
$ac_ext <<_ACEOF
9621 /* end confdefs.h. */
9622 $ac_includes_default
9623 typedef double ac__type_sizeof_;
9627 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9634 rm -f conftest.
$ac_objext
9635 if { (ac_try
="$ac_compile"
9637 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9638 *) ac_try_echo=$ac_try;;
9640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9641 (eval "$ac_compile") 2>conftest.er1
9643 grep -v '^ *+' conftest.er1 >conftest.err
9645 cat conftest.err >&5
9646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647 (exit $ac_status); } && {
9648 test -z "$ac_c_werror_flag" ||
9649 test ! -s conftest.err
9650 } && test -s conftest.$ac_objext; then
9653 cat >conftest.$ac_ext <<_ACEOF
9656 cat confdefs.h >>conftest.$ac_ext
9657 cat >>conftest.$ac_ext <<_ACEOF
9658 /* end confdefs.h. */
9659 $ac_includes_default
9660 typedef double ac__type_sizeof_;
9664 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9671 rm -f conftest.$ac_objext
9672 if { (ac_try="$ac_compile"
9674 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9675 *) ac_try_echo
=$ac_try;;
9677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9678 (eval "$ac_compile") 2>conftest.er1
9680 grep -v '^ *+' conftest.er1
>conftest.err
9682 cat conftest.err
>&5
9683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684 (exit $ac_status); } && {
9685 test -z "$ac_c_werror_flag" ||
9686 test ! -s conftest.err
9687 } && test -s conftest.
$ac_objext; then
9688 ac_hi
=$ac_mid; break
9690 echo "$as_me: failed program was:" >&5
9691 sed 's/^/| /' conftest.
$ac_ext >&5
9693 ac_lo
=`expr $ac_mid + 1`
9694 if test $ac_lo -le $ac_mid; then
9698 ac_mid
=`expr 2 '*' $ac_mid + 1`
9701 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9704 echo "$as_me: failed program was:" >&5
9705 sed 's/^/| /' conftest.
$ac_ext >&5
9707 cat >conftest.
$ac_ext <<_ACEOF
9710 cat confdefs.h
>>conftest.
$ac_ext
9711 cat >>conftest.
$ac_ext <<_ACEOF
9712 /* end confdefs.h. */
9713 $ac_includes_default
9714 typedef double ac__type_sizeof_;
9718 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9725 rm -f conftest.
$ac_objext
9726 if { (ac_try
="$ac_compile"
9728 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9729 *) ac_try_echo=$ac_try;;
9731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9732 (eval "$ac_compile") 2>conftest.er1
9734 grep -v '^ *+' conftest.er1 >conftest.err
9736 cat conftest.err >&5
9737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738 (exit $ac_status); } && {
9739 test -z "$ac_c_werror_flag" ||
9740 test ! -s conftest.err
9741 } && test -s conftest.$ac_objext; then
9744 cat >conftest.$ac_ext <<_ACEOF
9747 cat confdefs.h >>conftest.$ac_ext
9748 cat >>conftest.$ac_ext <<_ACEOF
9749 /* end confdefs.h. */
9750 $ac_includes_default
9751 typedef double ac__type_sizeof_;
9755 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9762 rm -f conftest.$ac_objext
9763 if { (ac_try="$ac_compile"
9765 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9766 *) ac_try_echo
=$ac_try;;
9768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9769 (eval "$ac_compile") 2>conftest.er1
9771 grep -v '^ *+' conftest.er1
>conftest.err
9773 cat conftest.err
>&5
9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775 (exit $ac_status); } && {
9776 test -z "$ac_c_werror_flag" ||
9777 test ! -s conftest.err
9778 } && test -s conftest.
$ac_objext; then
9779 ac_lo
=$ac_mid; break
9781 echo "$as_me: failed program was:" >&5
9782 sed 's/^/| /' conftest.
$ac_ext >&5
9784 ac_hi
=`expr '(' $ac_mid ')' - 1`
9785 if test $ac_mid -le $ac_hi; then
9789 ac_mid
=`expr 2 '*' $ac_mid`
9792 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9795 echo "$as_me: failed program was:" >&5
9796 sed 's/^/| /' conftest.
$ac_ext >&5
9801 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9804 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9805 # Binary search between lo and hi bounds.
9806 while test "x$ac_lo" != "x$ac_hi"; do
9807 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9808 cat >conftest.
$ac_ext <<_ACEOF
9811 cat confdefs.h
>>conftest.
$ac_ext
9812 cat >>conftest.
$ac_ext <<_ACEOF
9813 /* end confdefs.h. */
9814 $ac_includes_default
9815 typedef double ac__type_sizeof_;
9819 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9826 rm -f conftest.
$ac_objext
9827 if { (ac_try
="$ac_compile"
9829 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9830 *) ac_try_echo=$ac_try;;
9832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9833 (eval "$ac_compile") 2>conftest.er1
9835 grep -v '^ *+' conftest.er1 >conftest.err
9837 cat conftest.err >&5
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); } && {
9840 test -z "$ac_c_werror_flag" ||
9841 test ! -s conftest.err
9842 } && test -s conftest.$ac_objext; then
9845 echo "$as_me: failed program was:" >&5
9846 sed 's/^/| /' conftest.$ac_ext >&5
9848 ac_lo=`expr '(' $ac_mid ')' + 1`
9851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9854 ?*) ac_cv_sizeof_double=$ac_lo;;
9855 '') if test "$ac_cv_type_double" = yes; then
9856 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9857 See \`config.log
' for more details." >&5
9858 echo "$as_me: error: cannot compute sizeof (double)
9859 See \`config.log' for more details.
" >&2;}
9860 { (exit 77); exit 77; }; }
9862 ac_cv_sizeof_double=0
9866 cat >conftest.$ac_ext <<_ACEOF
9869 cat confdefs.h >>conftest.$ac_ext
9870 cat >>conftest.$ac_ext <<_ACEOF
9871 /* end confdefs.h. */
9872 $ac_includes_default
9873 typedef double ac__type_sizeof_;
9874 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9875 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9882 FILE *f = fopen ("conftest.val
", "w
");
9885 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9887 long int i = longval ();
9888 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9890 fprintf (f, "%ld
\n", i);
9894 unsigned long int i = ulongval ();
9895 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9897 fprintf (f, "%lu
\n", i);
9899 return ferror (f) || fclose (f) != 0;
9905 rm -f conftest$ac_exeext
9906 if { (ac_try="$ac_link"
9908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9909 *) ac_try_echo=$ac_try;;
9911 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9912 (eval "$ac_link") 2>&5
9914 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9915 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9916 { (case "(($ac_try" in
9917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9918 *) ac_try_echo=$ac_try;;
9920 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9921 (eval "$ac_try") 2>&5
9923 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9924 (exit $ac_status); }; }; then
9925 ac_cv_sizeof_double=`cat conftest.val`
9927 echo "$as_me: program exited with status
$ac_status" >&5
9928 echo "$as_me: failed program was
:" >&5
9929 sed 's/^/| /' conftest.$ac_ext >&5
9932 if test "$ac_cv_type_double" = yes; then
9933 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(double
)
9934 See \
`config.log' for more details." >&5
9935 echo "$as_me: error: cannot compute sizeof (double)
9936 See \`config.log
' for more details." >&2;}
9937 { (exit 77); exit 77; }; }
9939 ac_cv_sizeof_double=0
9942 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9946 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
9947 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
9951 cat >>confdefs.h <<_ACEOF
9952 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
9956 { echo "$as_me:$LINENO: checking for fpos_t" >&5
9957 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; }
9958 if test "${ac_cv_type_fpos_t+set}" = set; then
9959 echo $ECHO_N "(cached) $ECHO_C" >&6
9961 cat >conftest.$ac_ext <<_ACEOF
9964 cat confdefs.h >>conftest.$ac_ext
9965 cat >>conftest.$ac_ext <<_ACEOF
9966 /* end confdefs.h. */
9967 $ac_includes_default
9968 typedef fpos_t ac__type_new_;
9972 if ((ac__type_new_ *) 0)
9974 if (sizeof (ac__type_new_))
9980 rm -f conftest.$ac_objext
9981 if { (ac_try="$ac_compile"
9983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9984 *) ac_try_echo=$ac_try;;
9986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9987 (eval "$ac_compile") 2>conftest.er1
9989 grep -v '^
*+' conftest.er1 >conftest.err
9991 cat conftest.err >&5
9992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993 (exit $ac_status); } && {
9994 test -z "$ac_c_werror_flag" ||
9995 test ! -s conftest.err
9996 } && test -s conftest.$ac_objext; then
9997 ac_cv_type_fpos_t=yes
9999 echo "$as_me: failed program was:" >&5
10000 sed 's
/^
/|
/' conftest.$ac_ext >&5
10002 ac_cv_type_fpos_t=no
10005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10007 { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
10008 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; }
10010 # The cast to long int works around a bug in the HP C Compiler
10011 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10012 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10013 # This bug is HP SR number 8606223364.
10014 { echo "$as_me:$LINENO: checking size of fpos_t" >&5
10015 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; }
10016 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
10017 echo $ECHO_N "(cached) $ECHO_C" >&6
10019 if test "$cross_compiling" = yes; then
10020 # Depending upon the size, compute the lo and hi bounds.
10021 cat >conftest.
$ac_ext <<_ACEOF
10024 cat confdefs.h
>>conftest.
$ac_ext
10025 cat >>conftest.
$ac_ext <<_ACEOF
10026 /* end confdefs.h. */
10027 $ac_includes_default
10028 typedef fpos_t ac__type_sizeof_;
10032 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10039 rm -f conftest.
$ac_objext
10040 if { (ac_try
="$ac_compile"
10041 case "(($ac_try" in
10042 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10043 *) ac_try_echo=$ac_try;;
10045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10046 (eval "$ac_compile") 2>conftest.er1
10048 grep -v '^ *+' conftest.er1 >conftest.err
10050 cat conftest.err >&5
10051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052 (exit $ac_status); } && {
10053 test -z "$ac_c_werror_flag" ||
10054 test ! -s conftest.err
10055 } && test -s conftest.$ac_objext; then
10058 cat >conftest.$ac_ext <<_ACEOF
10061 cat confdefs.h >>conftest.$ac_ext
10062 cat >>conftest.$ac_ext <<_ACEOF
10063 /* end confdefs.h. */
10064 $ac_includes_default
10065 typedef fpos_t ac__type_sizeof_;
10069 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10076 rm -f conftest.$ac_objext
10077 if { (ac_try="$ac_compile"
10078 case "(($ac_try" in
10079 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10080 *) ac_try_echo
=$ac_try;;
10082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10083 (eval "$ac_compile") 2>conftest.er1
10085 grep -v '^ *+' conftest.er1
>conftest.err
10087 cat conftest.err
>&5
10088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089 (exit $ac_status); } && {
10090 test -z "$ac_c_werror_flag" ||
10091 test ! -s conftest.err
10092 } && test -s conftest.
$ac_objext; then
10093 ac_hi
=$ac_mid; break
10095 echo "$as_me: failed program was:" >&5
10096 sed 's/^/| /' conftest.
$ac_ext >&5
10098 ac_lo
=`expr $ac_mid + 1`
10099 if test $ac_lo -le $ac_mid; then
10103 ac_mid
=`expr 2 '*' $ac_mid + 1`
10106 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10109 echo "$as_me: failed program was:" >&5
10110 sed 's/^/| /' conftest.
$ac_ext >&5
10112 cat >conftest.
$ac_ext <<_ACEOF
10115 cat confdefs.h
>>conftest.
$ac_ext
10116 cat >>conftest.
$ac_ext <<_ACEOF
10117 /* end confdefs.h. */
10118 $ac_includes_default
10119 typedef fpos_t ac__type_sizeof_;
10123 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10130 rm -f conftest.
$ac_objext
10131 if { (ac_try
="$ac_compile"
10132 case "(($ac_try" in
10133 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10134 *) ac_try_echo=$ac_try;;
10136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10137 (eval "$ac_compile") 2>conftest.er1
10139 grep -v '^ *+' conftest.er1 >conftest.err
10141 cat conftest.err >&5
10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); } && {
10144 test -z "$ac_c_werror_flag" ||
10145 test ! -s conftest.err
10146 } && test -s conftest.$ac_objext; then
10149 cat >conftest.$ac_ext <<_ACEOF
10152 cat confdefs.h >>conftest.$ac_ext
10153 cat >>conftest.$ac_ext <<_ACEOF
10154 /* end confdefs.h. */
10155 $ac_includes_default
10156 typedef fpos_t ac__type_sizeof_;
10160 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10167 rm -f conftest.$ac_objext
10168 if { (ac_try="$ac_compile"
10169 case "(($ac_try" in
10170 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10171 *) ac_try_echo
=$ac_try;;
10173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10174 (eval "$ac_compile") 2>conftest.er1
10176 grep -v '^ *+' conftest.er1
>conftest.err
10178 cat conftest.err
>&5
10179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180 (exit $ac_status); } && {
10181 test -z "$ac_c_werror_flag" ||
10182 test ! -s conftest.err
10183 } && test -s conftest.
$ac_objext; then
10184 ac_lo
=$ac_mid; break
10186 echo "$as_me: failed program was:" >&5
10187 sed 's/^/| /' conftest.
$ac_ext >&5
10189 ac_hi
=`expr '(' $ac_mid ')' - 1`
10190 if test $ac_mid -le $ac_hi; then
10194 ac_mid
=`expr 2 '*' $ac_mid`
10197 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10200 echo "$as_me: failed program was:" >&5
10201 sed 's/^/| /' conftest.
$ac_ext >&5
10206 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10209 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10210 # Binary search between lo and hi bounds.
10211 while test "x$ac_lo" != "x$ac_hi"; do
10212 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10213 cat >conftest.
$ac_ext <<_ACEOF
10216 cat confdefs.h
>>conftest.
$ac_ext
10217 cat >>conftest.
$ac_ext <<_ACEOF
10218 /* end confdefs.h. */
10219 $ac_includes_default
10220 typedef fpos_t ac__type_sizeof_;
10224 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10231 rm -f conftest.
$ac_objext
10232 if { (ac_try
="$ac_compile"
10233 case "(($ac_try" in
10234 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10235 *) ac_try_echo=$ac_try;;
10237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10238 (eval "$ac_compile") 2>conftest.er1
10240 grep -v '^ *+' conftest.er1 >conftest.err
10242 cat conftest.err >&5
10243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244 (exit $ac_status); } && {
10245 test -z "$ac_c_werror_flag" ||
10246 test ! -s conftest.err
10247 } && test -s conftest.$ac_objext; then
10250 echo "$as_me: failed program was:" >&5
10251 sed 's/^/| /' conftest.$ac_ext >&5
10253 ac_lo=`expr '(' $ac_mid ')' + 1`
10256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10259 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
10260 '') if test "$ac_cv_type_fpos_t" = yes; then
10261 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
10262 See \`config.log
' for more details." >&5
10263 echo "$as_me: error: cannot compute sizeof (fpos_t)
10264 See \`config.log' for more details.
" >&2;}
10265 { (exit 77); exit 77; }; }
10267 ac_cv_sizeof_fpos_t=0
10271 cat >conftest.$ac_ext <<_ACEOF
10274 cat confdefs.h >>conftest.$ac_ext
10275 cat >>conftest.$ac_ext <<_ACEOF
10276 /* end confdefs.h. */
10277 $ac_includes_default
10278 typedef fpos_t ac__type_sizeof_;
10279 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10280 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10282 #include <stdlib.h>
10287 FILE *f = fopen ("conftest.val
", "w
");
10290 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10292 long int i = longval ();
10293 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10295 fprintf (f, "%ld
\n", i);
10299 unsigned long int i = ulongval ();
10300 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10302 fprintf (f, "%lu
\n", i);
10304 return ferror (f) || fclose (f) != 0;
10310 rm -f conftest$ac_exeext
10311 if { (ac_try="$ac_link"
10312 case "(($ac_try" in
10313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10314 *) ac_try_echo=$ac_try;;
10316 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10317 (eval "$ac_link") 2>&5
10319 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10320 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10321 { (case "(($ac_try" in
10322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10323 *) ac_try_echo=$ac_try;;
10325 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10326 (eval "$ac_try") 2>&5
10328 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10329 (exit $ac_status); }; }; then
10330 ac_cv_sizeof_fpos_t=`cat conftest.val`
10332 echo "$as_me: program exited with status
$ac_status" >&5
10333 echo "$as_me: failed program was
:" >&5
10334 sed 's/^/| /' conftest.$ac_ext >&5
10336 ( exit $ac_status )
10337 if test "$ac_cv_type_fpos_t" = yes; then
10338 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(fpos_t
)
10339 See \
`config.log' for more details." >&5
10340 echo "$as_me: error: cannot compute sizeof (fpos_t)
10341 See \`config.log
' for more details." >&2;}
10342 { (exit 77); exit 77; }; }
10344 ac_cv_sizeof_fpos_t=0
10347 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10351 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
10352 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; }
10356 cat >>confdefs.h <<_ACEOF
10357 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
10361 { echo "$as_me:$LINENO: checking for size_t" >&5
10362 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
10363 if test "${ac_cv_type_size_t+set}" = set; then
10364 echo $ECHO_N "(cached) $ECHO_C" >&6
10366 cat >conftest.$ac_ext <<_ACEOF
10369 cat confdefs.h >>conftest.$ac_ext
10370 cat >>conftest.$ac_ext <<_ACEOF
10371 /* end confdefs.h. */
10372 $ac_includes_default
10373 typedef size_t ac__type_new_;
10377 if ((ac__type_new_ *) 0)
10379 if (sizeof (ac__type_new_))
10385 rm -f conftest.$ac_objext
10386 if { (ac_try="$ac_compile"
10387 case "(($ac_try" in
10388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10389 *) ac_try_echo=$ac_try;;
10391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10392 (eval "$ac_compile") 2>conftest.er1
10394 grep -v '^
*+' conftest.er1 >conftest.err
10396 cat conftest.err >&5
10397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398 (exit $ac_status); } && {
10399 test -z "$ac_c_werror_flag" ||
10400 test ! -s conftest.err
10401 } && test -s conftest.$ac_objext; then
10402 ac_cv_type_size_t=yes
10404 echo "$as_me: failed program was:" >&5
10405 sed 's
/^
/|
/' conftest.$ac_ext >&5
10407 ac_cv_type_size_t=no
10410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10412 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10413 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
10415 # The cast to long int works around a bug in the HP C Compiler
10416 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10417 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10418 # This bug is HP SR number 8606223364.
10419 { echo "$as_me:$LINENO: checking size of size_t" >&5
10420 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
10421 if test "${ac_cv_sizeof_size_t+set}" = set; then
10422 echo $ECHO_N "(cached) $ECHO_C" >&6
10424 if test "$cross_compiling" = yes; then
10425 # Depending upon the size, compute the lo and hi bounds.
10426 cat >conftest.
$ac_ext <<_ACEOF
10429 cat confdefs.h
>>conftest.
$ac_ext
10430 cat >>conftest.
$ac_ext <<_ACEOF
10431 /* end confdefs.h. */
10432 $ac_includes_default
10433 typedef size_t ac__type_sizeof_;
10437 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10444 rm -f conftest.
$ac_objext
10445 if { (ac_try
="$ac_compile"
10446 case "(($ac_try" in
10447 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10448 *) ac_try_echo=$ac_try;;
10450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10451 (eval "$ac_compile") 2>conftest.er1
10453 grep -v '^ *+' conftest.er1 >conftest.err
10455 cat conftest.err >&5
10456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457 (exit $ac_status); } && {
10458 test -z "$ac_c_werror_flag" ||
10459 test ! -s conftest.err
10460 } && test -s conftest.$ac_objext; then
10463 cat >conftest.$ac_ext <<_ACEOF
10466 cat confdefs.h >>conftest.$ac_ext
10467 cat >>conftest.$ac_ext <<_ACEOF
10468 /* end confdefs.h. */
10469 $ac_includes_default
10470 typedef size_t ac__type_sizeof_;
10474 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10481 rm -f conftest.$ac_objext
10482 if { (ac_try="$ac_compile"
10483 case "(($ac_try" in
10484 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10485 *) ac_try_echo
=$ac_try;;
10487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10488 (eval "$ac_compile") 2>conftest.er1
10490 grep -v '^ *+' conftest.er1
>conftest.err
10492 cat conftest.err
>&5
10493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494 (exit $ac_status); } && {
10495 test -z "$ac_c_werror_flag" ||
10496 test ! -s conftest.err
10497 } && test -s conftest.
$ac_objext; then
10498 ac_hi
=$ac_mid; break
10500 echo "$as_me: failed program was:" >&5
10501 sed 's/^/| /' conftest.
$ac_ext >&5
10503 ac_lo
=`expr $ac_mid + 1`
10504 if test $ac_lo -le $ac_mid; then
10508 ac_mid
=`expr 2 '*' $ac_mid + 1`
10511 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10514 echo "$as_me: failed program was:" >&5
10515 sed 's/^/| /' conftest.
$ac_ext >&5
10517 cat >conftest.
$ac_ext <<_ACEOF
10520 cat confdefs.h
>>conftest.
$ac_ext
10521 cat >>conftest.
$ac_ext <<_ACEOF
10522 /* end confdefs.h. */
10523 $ac_includes_default
10524 typedef size_t ac__type_sizeof_;
10528 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10535 rm -f conftest.
$ac_objext
10536 if { (ac_try
="$ac_compile"
10537 case "(($ac_try" in
10538 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10539 *) ac_try_echo=$ac_try;;
10541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10542 (eval "$ac_compile") 2>conftest.er1
10544 grep -v '^ *+' conftest.er1 >conftest.err
10546 cat conftest.err >&5
10547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548 (exit $ac_status); } && {
10549 test -z "$ac_c_werror_flag" ||
10550 test ! -s conftest.err
10551 } && test -s conftest.$ac_objext; then
10554 cat >conftest.$ac_ext <<_ACEOF
10557 cat confdefs.h >>conftest.$ac_ext
10558 cat >>conftest.$ac_ext <<_ACEOF
10559 /* end confdefs.h. */
10560 $ac_includes_default
10561 typedef size_t ac__type_sizeof_;
10565 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10572 rm -f conftest.$ac_objext
10573 if { (ac_try="$ac_compile"
10574 case "(($ac_try" in
10575 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10576 *) ac_try_echo
=$ac_try;;
10578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10579 (eval "$ac_compile") 2>conftest.er1
10581 grep -v '^ *+' conftest.er1
>conftest.err
10583 cat conftest.err
>&5
10584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585 (exit $ac_status); } && {
10586 test -z "$ac_c_werror_flag" ||
10587 test ! -s conftest.err
10588 } && test -s conftest.
$ac_objext; then
10589 ac_lo
=$ac_mid; break
10591 echo "$as_me: failed program was:" >&5
10592 sed 's/^/| /' conftest.
$ac_ext >&5
10594 ac_hi
=`expr '(' $ac_mid ')' - 1`
10595 if test $ac_mid -le $ac_hi; then
10599 ac_mid
=`expr 2 '*' $ac_mid`
10602 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10605 echo "$as_me: failed program was:" >&5
10606 sed 's/^/| /' conftest.
$ac_ext >&5
10611 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10614 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10615 # Binary search between lo and hi bounds.
10616 while test "x$ac_lo" != "x$ac_hi"; do
10617 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10618 cat >conftest.
$ac_ext <<_ACEOF
10621 cat confdefs.h
>>conftest.
$ac_ext
10622 cat >>conftest.
$ac_ext <<_ACEOF
10623 /* end confdefs.h. */
10624 $ac_includes_default
10625 typedef size_t ac__type_sizeof_;
10629 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10636 rm -f conftest.
$ac_objext
10637 if { (ac_try
="$ac_compile"
10638 case "(($ac_try" in
10639 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10640 *) ac_try_echo=$ac_try;;
10642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10643 (eval "$ac_compile") 2>conftest.er1
10645 grep -v '^ *+' conftest.er1 >conftest.err
10647 cat conftest.err >&5
10648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649 (exit $ac_status); } && {
10650 test -z "$ac_c_werror_flag" ||
10651 test ! -s conftest.err
10652 } && test -s conftest.$ac_objext; then
10655 echo "$as_me: failed program was:" >&5
10656 sed 's/^/| /' conftest.$ac_ext >&5
10658 ac_lo=`expr '(' $ac_mid ')' + 1`
10661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10664 ?*) ac_cv_sizeof_size_t=$ac_lo;;
10665 '') if test "$ac_cv_type_size_t" = yes; then
10666 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10667 See \`config.log
' for more details." >&5
10668 echo "$as_me: error: cannot compute sizeof (size_t)
10669 See \`config.log' for more details.
" >&2;}
10670 { (exit 77); exit 77; }; }
10672 ac_cv_sizeof_size_t=0
10676 cat >conftest.$ac_ext <<_ACEOF
10679 cat confdefs.h >>conftest.$ac_ext
10680 cat >>conftest.$ac_ext <<_ACEOF
10681 /* end confdefs.h. */
10682 $ac_includes_default
10683 typedef size_t ac__type_sizeof_;
10684 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10685 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10687 #include <stdlib.h>
10692 FILE *f = fopen ("conftest.val
", "w
");
10695 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10697 long int i = longval ();
10698 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10700 fprintf (f, "%ld
\n", i);
10704 unsigned long int i = ulongval ();
10705 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10707 fprintf (f, "%lu
\n", i);
10709 return ferror (f) || fclose (f) != 0;
10715 rm -f conftest$ac_exeext
10716 if { (ac_try="$ac_link"
10717 case "(($ac_try" in
10718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10719 *) ac_try_echo=$ac_try;;
10721 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10722 (eval "$ac_link") 2>&5
10724 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10725 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10726 { (case "(($ac_try" in
10727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10728 *) ac_try_echo=$ac_try;;
10730 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10731 (eval "$ac_try") 2>&5
10733 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10734 (exit $ac_status); }; }; then
10735 ac_cv_sizeof_size_t=`cat conftest.val`
10737 echo "$as_me: program exited with status
$ac_status" >&5
10738 echo "$as_me: failed program was
:" >&5
10739 sed 's/^/| /' conftest.$ac_ext >&5
10741 ( exit $ac_status )
10742 if test "$ac_cv_type_size_t" = yes; then
10743 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(size_t
)
10744 See \
`config.log' for more details." >&5
10745 echo "$as_me: error: cannot compute sizeof (size_t)
10746 See \`config.log
' for more details." >&2;}
10747 { (exit 77); exit 77; }; }
10749 ac_cv_sizeof_size_t=0
10752 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10756 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10757 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
10761 cat >>confdefs.h <<_ACEOF
10762 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10766 { echo "$as_me:$LINENO: checking for pid_t" >&5
10767 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10768 if test "${ac_cv_type_pid_t+set}" = set; then
10769 echo $ECHO_N "(cached) $ECHO_C" >&6
10771 cat >conftest.$ac_ext <<_ACEOF
10774 cat confdefs.h >>conftest.$ac_ext
10775 cat >>conftest.$ac_ext <<_ACEOF
10776 /* end confdefs.h. */
10777 $ac_includes_default
10778 typedef pid_t ac__type_new_;
10782 if ((ac__type_new_ *) 0)
10784 if (sizeof (ac__type_new_))
10790 rm -f conftest.$ac_objext
10791 if { (ac_try="$ac_compile"
10792 case "(($ac_try" in
10793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10794 *) ac_try_echo=$ac_try;;
10796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10797 (eval "$ac_compile") 2>conftest.er1
10799 grep -v '^
*+' conftest.er1 >conftest.err
10801 cat conftest.err >&5
10802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803 (exit $ac_status); } && {
10804 test -z "$ac_c_werror_flag" ||
10805 test ! -s conftest.err
10806 } && test -s conftest.$ac_objext; then
10807 ac_cv_type_pid_t=yes
10809 echo "$as_me: failed program was:" >&5
10810 sed 's
/^
/|
/' conftest.$ac_ext >&5
10812 ac_cv_type_pid_t=no
10815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10817 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10818 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10820 # The cast to long int works around a bug in the HP C Compiler
10821 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10822 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10823 # This bug is HP SR number 8606223364.
10824 { echo "$as_me:$LINENO: checking size of pid_t" >&5
10825 echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; }
10826 if test "${ac_cv_sizeof_pid_t+set}" = set; then
10827 echo $ECHO_N "(cached) $ECHO_C" >&6
10829 if test "$cross_compiling" = yes; then
10830 # Depending upon the size, compute the lo and hi bounds.
10831 cat >conftest.
$ac_ext <<_ACEOF
10834 cat confdefs.h
>>conftest.
$ac_ext
10835 cat >>conftest.
$ac_ext <<_ACEOF
10836 /* end confdefs.h. */
10837 $ac_includes_default
10838 typedef pid_t ac__type_sizeof_;
10842 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10849 rm -f conftest.
$ac_objext
10850 if { (ac_try
="$ac_compile"
10851 case "(($ac_try" in
10852 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10853 *) ac_try_echo=$ac_try;;
10855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10856 (eval "$ac_compile") 2>conftest.er1
10858 grep -v '^ *+' conftest.er1 >conftest.err
10860 cat conftest.err >&5
10861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862 (exit $ac_status); } && {
10863 test -z "$ac_c_werror_flag" ||
10864 test ! -s conftest.err
10865 } && test -s conftest.$ac_objext; then
10868 cat >conftest.$ac_ext <<_ACEOF
10871 cat confdefs.h >>conftest.$ac_ext
10872 cat >>conftest.$ac_ext <<_ACEOF
10873 /* end confdefs.h. */
10874 $ac_includes_default
10875 typedef pid_t ac__type_sizeof_;
10879 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10886 rm -f conftest.$ac_objext
10887 if { (ac_try="$ac_compile"
10888 case "(($ac_try" in
10889 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10890 *) ac_try_echo
=$ac_try;;
10892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10893 (eval "$ac_compile") 2>conftest.er1
10895 grep -v '^ *+' conftest.er1
>conftest.err
10897 cat conftest.err
>&5
10898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899 (exit $ac_status); } && {
10900 test -z "$ac_c_werror_flag" ||
10901 test ! -s conftest.err
10902 } && test -s conftest.
$ac_objext; then
10903 ac_hi
=$ac_mid; break
10905 echo "$as_me: failed program was:" >&5
10906 sed 's/^/| /' conftest.
$ac_ext >&5
10908 ac_lo
=`expr $ac_mid + 1`
10909 if test $ac_lo -le $ac_mid; then
10913 ac_mid
=`expr 2 '*' $ac_mid + 1`
10916 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10919 echo "$as_me: failed program was:" >&5
10920 sed 's/^/| /' conftest.
$ac_ext >&5
10922 cat >conftest.
$ac_ext <<_ACEOF
10925 cat confdefs.h
>>conftest.
$ac_ext
10926 cat >>conftest.
$ac_ext <<_ACEOF
10927 /* end confdefs.h. */
10928 $ac_includes_default
10929 typedef pid_t ac__type_sizeof_;
10933 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10940 rm -f conftest.
$ac_objext
10941 if { (ac_try
="$ac_compile"
10942 case "(($ac_try" in
10943 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10944 *) ac_try_echo=$ac_try;;
10946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10947 (eval "$ac_compile") 2>conftest.er1
10949 grep -v '^ *+' conftest.er1 >conftest.err
10951 cat conftest.err >&5
10952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953 (exit $ac_status); } && {
10954 test -z "$ac_c_werror_flag" ||
10955 test ! -s conftest.err
10956 } && test -s conftest.$ac_objext; then
10959 cat >conftest.$ac_ext <<_ACEOF
10962 cat confdefs.h >>conftest.$ac_ext
10963 cat >>conftest.$ac_ext <<_ACEOF
10964 /* end confdefs.h. */
10965 $ac_includes_default
10966 typedef pid_t ac__type_sizeof_;
10970 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10977 rm -f conftest.$ac_objext
10978 if { (ac_try="$ac_compile"
10979 case "(($ac_try" in
10980 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10981 *) ac_try_echo
=$ac_try;;
10983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10984 (eval "$ac_compile") 2>conftest.er1
10986 grep -v '^ *+' conftest.er1
>conftest.err
10988 cat conftest.err
>&5
10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990 (exit $ac_status); } && {
10991 test -z "$ac_c_werror_flag" ||
10992 test ! -s conftest.err
10993 } && test -s conftest.
$ac_objext; then
10994 ac_lo
=$ac_mid; break
10996 echo "$as_me: failed program was:" >&5
10997 sed 's/^/| /' conftest.
$ac_ext >&5
10999 ac_hi
=`expr '(' $ac_mid ')' - 1`
11000 if test $ac_mid -le $ac_hi; then
11004 ac_mid
=`expr 2 '*' $ac_mid`
11007 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11010 echo "$as_me: failed program was:" >&5
11011 sed 's/^/| /' conftest.
$ac_ext >&5
11016 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11019 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11020 # Binary search between lo and hi bounds.
11021 while test "x$ac_lo" != "x$ac_hi"; do
11022 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11023 cat >conftest.
$ac_ext <<_ACEOF
11026 cat confdefs.h
>>conftest.
$ac_ext
11027 cat >>conftest.
$ac_ext <<_ACEOF
11028 /* end confdefs.h. */
11029 $ac_includes_default
11030 typedef pid_t ac__type_sizeof_;
11034 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11041 rm -f conftest.
$ac_objext
11042 if { (ac_try
="$ac_compile"
11043 case "(($ac_try" in
11044 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11045 *) ac_try_echo=$ac_try;;
11047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11048 (eval "$ac_compile") 2>conftest.er1
11050 grep -v '^ *+' conftest.er1 >conftest.err
11052 cat conftest.err >&5
11053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054 (exit $ac_status); } && {
11055 test -z "$ac_c_werror_flag" ||
11056 test ! -s conftest.err
11057 } && test -s conftest.$ac_objext; then
11060 echo "$as_me: failed program was:" >&5
11061 sed 's/^/| /' conftest.$ac_ext >&5
11063 ac_lo=`expr '(' $ac_mid ')' + 1`
11066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11069 ?*) ac_cv_sizeof_pid_t=$ac_lo;;
11070 '') if test "$ac_cv_type_pid_t" = yes; then
11071 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
11072 See \`config.log
' for more details." >&5
11073 echo "$as_me: error: cannot compute sizeof (pid_t)
11074 See \`config.log' for more details.
" >&2;}
11075 { (exit 77); exit 77; }; }
11077 ac_cv_sizeof_pid_t=0
11081 cat >conftest.$ac_ext <<_ACEOF
11084 cat confdefs.h >>conftest.$ac_ext
11085 cat >>conftest.$ac_ext <<_ACEOF
11086 /* end confdefs.h. */
11087 $ac_includes_default
11088 typedef pid_t ac__type_sizeof_;
11089 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11090 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11092 #include <stdlib.h>
11097 FILE *f = fopen ("conftest.val
", "w
");
11100 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11102 long int i = longval ();
11103 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11105 fprintf (f, "%ld
\n", i);
11109 unsigned long int i = ulongval ();
11110 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11112 fprintf (f, "%lu
\n", i);
11114 return ferror (f) || fclose (f) != 0;
11120 rm -f conftest$ac_exeext
11121 if { (ac_try="$ac_link"
11122 case "(($ac_try" in
11123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11124 *) ac_try_echo=$ac_try;;
11126 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11127 (eval "$ac_link") 2>&5
11129 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11130 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11131 { (case "(($ac_try" in
11132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11133 *) ac_try_echo=$ac_try;;
11135 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11136 (eval "$ac_try") 2>&5
11138 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11139 (exit $ac_status); }; }; then
11140 ac_cv_sizeof_pid_t=`cat conftest.val`
11142 echo "$as_me: program exited with status
$ac_status" >&5
11143 echo "$as_me: failed program was
:" >&5
11144 sed 's/^/| /' conftest.$ac_ext >&5
11146 ( exit $ac_status )
11147 if test "$ac_cv_type_pid_t" = yes; then
11148 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(pid_t
)
11149 See \
`config.log' for more details." >&5
11150 echo "$as_me: error: cannot compute sizeof (pid_t)
11151 See \`config.log
' for more details." >&2;}
11152 { (exit 77); exit 77; }; }
11154 ac_cv_sizeof_pid_t=0
11157 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11161 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
11162 echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; }
11166 cat >>confdefs.h <<_ACEOF
11167 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
11172 { echo "$as_me:$LINENO: checking for long long support" >&5
11173 echo $ECHO_N "checking for long long support... $ECHO_C" >&6; }
11175 cat >conftest.$ac_ext <<_ACEOF
11178 cat confdefs.h >>conftest.$ac_ext
11179 cat >>conftest.$ac_ext <<_ACEOF
11180 /* end confdefs.h. */
11185 long long x; x = (long long)0;
11190 rm -f conftest.$ac_objext
11191 if { (ac_try="$ac_compile"
11192 case "(($ac_try" in
11193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11194 *) ac_try_echo=$ac_try;;
11196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11197 (eval "$ac_compile") 2>conftest.er1
11199 grep -v '^
*+' conftest.er1 >conftest.err
11201 cat conftest.err >&5
11202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11203 (exit $ac_status); } && {
11204 test -z "$ac_c_werror_flag" ||
11205 test ! -s conftest.err
11206 } && test -s conftest.$ac_objext; then
11209 cat >>confdefs.h <<\_ACEOF
11210 #define HAVE_LONG_LONG 1
11216 echo "$as_me: failed program was:" >&5
11217 sed 's
/^
/|
/' conftest.$ac_ext >&5
11222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11223 { echo "$as_me:$LINENO: result: $have_long_long" >&5
11224 echo "${ECHO_T}$have_long_long" >&6; }
11225 if test "$have_long_long" = yes ; then
11226 { echo "$as_me:$LINENO: checking for long long" >&5
11227 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
11228 if test "${ac_cv_type_long_long+set}" = set; then
11229 echo $ECHO_N "(cached) $ECHO_C" >&6
11231 cat >conftest.$ac_ext <<_ACEOF
11234 cat confdefs.h >>conftest.$ac_ext
11235 cat >>conftest.$ac_ext <<_ACEOF
11236 /* end confdefs.h. */
11237 $ac_includes_default
11238 typedef long long ac__type_new_;
11242 if ((ac__type_new_ *) 0)
11244 if (sizeof (ac__type_new_))
11250 rm -f conftest.$ac_objext
11251 if { (ac_try="$ac_compile"
11252 case "(($ac_try" in
11253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11254 *) ac_try_echo=$ac_try;;
11256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11257 (eval "$ac_compile") 2>conftest.er1
11259 grep -v '^
*+' conftest.er1 >conftest.err
11261 cat conftest.err >&5
11262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263 (exit $ac_status); } && {
11264 test -z "$ac_c_werror_flag" ||
11265 test ! -s conftest.err
11266 } && test -s conftest.$ac_objext; then
11267 ac_cv_type_long_long=yes
11269 echo "$as_me: failed program was:" >&5
11270 sed 's
/^
/|
/' conftest.$ac_ext >&5
11272 ac_cv_type_long_long=no
11275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11277 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11278 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
11280 # The cast to long int works around a bug in the HP C Compiler
11281 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11282 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11283 # This bug is HP SR number 8606223364.
11284 { echo "$as_me:$LINENO: checking size of long long" >&5
11285 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
11286 if test "${ac_cv_sizeof_long_long+set}" = set; then
11287 echo $ECHO_N "(cached) $ECHO_C" >&6
11289 if test "$cross_compiling" = yes; then
11290 # Depending upon the size, compute the lo and hi bounds.
11291 cat >conftest.
$ac_ext <<_ACEOF
11294 cat confdefs.h
>>conftest.
$ac_ext
11295 cat >>conftest.
$ac_ext <<_ACEOF
11296 /* end confdefs.h. */
11297 $ac_includes_default
11298 typedef long long ac__type_sizeof_;
11302 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11309 rm -f conftest.
$ac_objext
11310 if { (ac_try
="$ac_compile"
11311 case "(($ac_try" in
11312 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11313 *) ac_try_echo=$ac_try;;
11315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11316 (eval "$ac_compile") 2>conftest.er1
11318 grep -v '^ *+' conftest.er1 >conftest.err
11320 cat conftest.err >&5
11321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); } && {
11323 test -z "$ac_c_werror_flag" ||
11324 test ! -s conftest.err
11325 } && test -s conftest.$ac_objext; then
11328 cat >conftest.$ac_ext <<_ACEOF
11331 cat confdefs.h >>conftest.$ac_ext
11332 cat >>conftest.$ac_ext <<_ACEOF
11333 /* end confdefs.h. */
11334 $ac_includes_default
11335 typedef long long ac__type_sizeof_;
11339 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11346 rm -f conftest.$ac_objext
11347 if { (ac_try="$ac_compile"
11348 case "(($ac_try" in
11349 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11350 *) ac_try_echo
=$ac_try;;
11352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11353 (eval "$ac_compile") 2>conftest.er1
11355 grep -v '^ *+' conftest.er1
>conftest.err
11357 cat conftest.err
>&5
11358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11359 (exit $ac_status); } && {
11360 test -z "$ac_c_werror_flag" ||
11361 test ! -s conftest.err
11362 } && test -s conftest.
$ac_objext; then
11363 ac_hi
=$ac_mid; break
11365 echo "$as_me: failed program was:" >&5
11366 sed 's/^/| /' conftest.
$ac_ext >&5
11368 ac_lo
=`expr $ac_mid + 1`
11369 if test $ac_lo -le $ac_mid; then
11373 ac_mid
=`expr 2 '*' $ac_mid + 1`
11376 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11379 echo "$as_me: failed program was:" >&5
11380 sed 's/^/| /' conftest.
$ac_ext >&5
11382 cat >conftest.
$ac_ext <<_ACEOF
11385 cat confdefs.h
>>conftest.
$ac_ext
11386 cat >>conftest.
$ac_ext <<_ACEOF
11387 /* end confdefs.h. */
11388 $ac_includes_default
11389 typedef long long ac__type_sizeof_;
11393 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11400 rm -f conftest.
$ac_objext
11401 if { (ac_try
="$ac_compile"
11402 case "(($ac_try" in
11403 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11404 *) ac_try_echo=$ac_try;;
11406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11407 (eval "$ac_compile") 2>conftest.er1
11409 grep -v '^ *+' conftest.er1 >conftest.err
11411 cat conftest.err >&5
11412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413 (exit $ac_status); } && {
11414 test -z "$ac_c_werror_flag" ||
11415 test ! -s conftest.err
11416 } && test -s conftest.$ac_objext; then
11419 cat >conftest.$ac_ext <<_ACEOF
11422 cat confdefs.h >>conftest.$ac_ext
11423 cat >>conftest.$ac_ext <<_ACEOF
11424 /* end confdefs.h. */
11425 $ac_includes_default
11426 typedef long long ac__type_sizeof_;
11430 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11437 rm -f conftest.$ac_objext
11438 if { (ac_try="$ac_compile"
11439 case "(($ac_try" in
11440 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11441 *) ac_try_echo
=$ac_try;;
11443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11444 (eval "$ac_compile") 2>conftest.er1
11446 grep -v '^ *+' conftest.er1
>conftest.err
11448 cat conftest.err
>&5
11449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11450 (exit $ac_status); } && {
11451 test -z "$ac_c_werror_flag" ||
11452 test ! -s conftest.err
11453 } && test -s conftest.
$ac_objext; then
11454 ac_lo
=$ac_mid; break
11456 echo "$as_me: failed program was:" >&5
11457 sed 's/^/| /' conftest.
$ac_ext >&5
11459 ac_hi
=`expr '(' $ac_mid ')' - 1`
11460 if test $ac_mid -le $ac_hi; then
11464 ac_mid
=`expr 2 '*' $ac_mid`
11467 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11470 echo "$as_me: failed program was:" >&5
11471 sed 's/^/| /' conftest.
$ac_ext >&5
11476 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11479 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11480 # Binary search between lo and hi bounds.
11481 while test "x$ac_lo" != "x$ac_hi"; do
11482 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11483 cat >conftest.
$ac_ext <<_ACEOF
11486 cat confdefs.h
>>conftest.
$ac_ext
11487 cat >>conftest.
$ac_ext <<_ACEOF
11488 /* end confdefs.h. */
11489 $ac_includes_default
11490 typedef long long ac__type_sizeof_;
11494 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11501 rm -f conftest.
$ac_objext
11502 if { (ac_try
="$ac_compile"
11503 case "(($ac_try" in
11504 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11505 *) ac_try_echo=$ac_try;;
11507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11508 (eval "$ac_compile") 2>conftest.er1
11510 grep -v '^ *+' conftest.er1 >conftest.err
11512 cat conftest.err >&5
11513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11514 (exit $ac_status); } && {
11515 test -z "$ac_c_werror_flag" ||
11516 test ! -s conftest.err
11517 } && test -s conftest.$ac_objext; then
11520 echo "$as_me: failed program was:" >&5
11521 sed 's/^/| /' conftest.$ac_ext >&5
11523 ac_lo=`expr '(' $ac_mid ')' + 1`
11526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11529 ?*) ac_cv_sizeof_long_long=$ac_lo;;
11530 '') if test "$ac_cv_type_long_long" = yes; then
11531 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11532 See \`config.log
' for more details." >&5
11533 echo "$as_me: error: cannot compute sizeof (long long)
11534 See \`config.log' for more details.
" >&2;}
11535 { (exit 77); exit 77; }; }
11537 ac_cv_sizeof_long_long=0
11541 cat >conftest.$ac_ext <<_ACEOF
11544 cat confdefs.h >>conftest.$ac_ext
11545 cat >>conftest.$ac_ext <<_ACEOF
11546 /* end confdefs.h. */
11547 $ac_includes_default
11548 typedef long long ac__type_sizeof_;
11549 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11550 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11552 #include <stdlib.h>
11557 FILE *f = fopen ("conftest.val
", "w
");
11560 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11562 long int i = longval ();
11563 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11565 fprintf (f, "%ld
\n", i);
11569 unsigned long int i = ulongval ();
11570 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11572 fprintf (f, "%lu
\n", i);
11574 return ferror (f) || fclose (f) != 0;
11580 rm -f conftest$ac_exeext
11581 if { (ac_try="$ac_link"
11582 case "(($ac_try" in
11583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11584 *) ac_try_echo=$ac_try;;
11586 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11587 (eval "$ac_link") 2>&5
11589 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11590 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11591 { (case "(($ac_try" in
11592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11593 *) ac_try_echo=$ac_try;;
11595 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11596 (eval "$ac_try") 2>&5
11598 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11599 (exit $ac_status); }; }; then
11600 ac_cv_sizeof_long_long=`cat conftest.val`
11602 echo "$as_me: program exited with status
$ac_status" >&5
11603 echo "$as_me: failed program was
:" >&5
11604 sed 's/^/| /' conftest.$ac_ext >&5
11606 ( exit $ac_status )
11607 if test "$ac_cv_type_long_long" = yes; then
11608 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long long
)
11609 See \
`config.log' for more details." >&5
11610 echo "$as_me: error: cannot compute sizeof (long long)
11611 See \`config.log
' for more details." >&2;}
11612 { (exit 77); exit 77; }; }
11614 ac_cv_sizeof_long_long=0
11617 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11621 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11622 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
11626 cat >>confdefs.h <<_ACEOF
11627 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11633 { echo "$as_me:$LINENO: checking for long double support" >&5
11634 echo $ECHO_N "checking for long double support... $ECHO_C" >&6; }
11635 have_long_double=no
11636 cat >conftest.$ac_ext <<_ACEOF
11639 cat confdefs.h >>conftest.$ac_ext
11640 cat >>conftest.$ac_ext <<_ACEOF
11641 /* end confdefs.h. */
11646 long double x; x = (long double)0.;
11651 rm -f conftest.$ac_objext
11652 if { (ac_try="$ac_compile"
11653 case "(($ac_try" in
11654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11655 *) ac_try_echo=$ac_try;;
11657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11658 (eval "$ac_compile") 2>conftest.er1
11660 grep -v '^
*+' conftest.er1 >conftest.err
11662 cat conftest.err >&5
11663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664 (exit $ac_status); } && {
11665 test -z "$ac_c_werror_flag" ||
11666 test ! -s conftest.err
11667 } && test -s conftest.$ac_objext; then
11670 cat >>confdefs.h <<\_ACEOF
11671 #define HAVE_LONG_DOUBLE 1
11674 have_long_double=yes
11677 echo "$as_me: failed program was:" >&5
11678 sed 's
/^
/|
/' conftest.$ac_ext >&5
11683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11684 { echo "$as_me:$LINENO: result: $have_long_double" >&5
11685 echo "${ECHO_T}$have_long_double" >&6; }
11686 if test "$have_long_double" = yes ; then
11687 { echo "$as_me:$LINENO: checking for long double" >&5
11688 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
11689 if test "${ac_cv_type_long_double+set}" = set; then
11690 echo $ECHO_N "(cached) $ECHO_C" >&6
11692 cat >conftest.$ac_ext <<_ACEOF
11695 cat confdefs.h >>conftest.$ac_ext
11696 cat >>conftest.$ac_ext <<_ACEOF
11697 /* end confdefs.h. */
11698 $ac_includes_default
11699 typedef long double ac__type_new_;
11703 if ((ac__type_new_ *) 0)
11705 if (sizeof (ac__type_new_))
11711 rm -f conftest.$ac_objext
11712 if { (ac_try="$ac_compile"
11713 case "(($ac_try" in
11714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11715 *) ac_try_echo=$ac_try;;
11717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11718 (eval "$ac_compile") 2>conftest.er1
11720 grep -v '^
*+' conftest.er1 >conftest.err
11722 cat conftest.err >&5
11723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724 (exit $ac_status); } && {
11725 test -z "$ac_c_werror_flag" ||
11726 test ! -s conftest.err
11727 } && test -s conftest.$ac_objext; then
11728 ac_cv_type_long_double=yes
11730 echo "$as_me: failed program was:" >&5
11731 sed 's
/^
/|
/' conftest.$ac_ext >&5
11733 ac_cv_type_long_double=no
11736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11738 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
11739 echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
11741 # The cast to long int works around a bug in the HP C Compiler
11742 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11743 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11744 # This bug is HP SR number 8606223364.
11745 { echo "$as_me:$LINENO: checking size of long double" >&5
11746 echo $ECHO_N "checking size of long double... $ECHO_C" >&6; }
11747 if test "${ac_cv_sizeof_long_double+set}" = set; then
11748 echo $ECHO_N "(cached) $ECHO_C" >&6
11750 if test "$cross_compiling" = yes; then
11751 # Depending upon the size, compute the lo and hi bounds.
11752 cat >conftest.
$ac_ext <<_ACEOF
11755 cat confdefs.h
>>conftest.
$ac_ext
11756 cat >>conftest.
$ac_ext <<_ACEOF
11757 /* end confdefs.h. */
11758 $ac_includes_default
11759 typedef long double ac__type_sizeof_;
11763 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11770 rm -f conftest.
$ac_objext
11771 if { (ac_try
="$ac_compile"
11772 case "(($ac_try" in
11773 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11774 *) ac_try_echo=$ac_try;;
11776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11777 (eval "$ac_compile") 2>conftest.er1
11779 grep -v '^ *+' conftest.er1 >conftest.err
11781 cat conftest.err >&5
11782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783 (exit $ac_status); } && {
11784 test -z "$ac_c_werror_flag" ||
11785 test ! -s conftest.err
11786 } && test -s conftest.$ac_objext; then
11789 cat >conftest.$ac_ext <<_ACEOF
11792 cat confdefs.h >>conftest.$ac_ext
11793 cat >>conftest.$ac_ext <<_ACEOF
11794 /* end confdefs.h. */
11795 $ac_includes_default
11796 typedef long double ac__type_sizeof_;
11800 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11807 rm -f conftest.$ac_objext
11808 if { (ac_try="$ac_compile"
11809 case "(($ac_try" in
11810 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11811 *) ac_try_echo
=$ac_try;;
11813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11814 (eval "$ac_compile") 2>conftest.er1
11816 grep -v '^ *+' conftest.er1
>conftest.err
11818 cat conftest.err
>&5
11819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820 (exit $ac_status); } && {
11821 test -z "$ac_c_werror_flag" ||
11822 test ! -s conftest.err
11823 } && test -s conftest.
$ac_objext; then
11824 ac_hi
=$ac_mid; break
11826 echo "$as_me: failed program was:" >&5
11827 sed 's/^/| /' conftest.
$ac_ext >&5
11829 ac_lo
=`expr $ac_mid + 1`
11830 if test $ac_lo -le $ac_mid; then
11834 ac_mid
=`expr 2 '*' $ac_mid + 1`
11837 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11840 echo "$as_me: failed program was:" >&5
11841 sed 's/^/| /' conftest.
$ac_ext >&5
11843 cat >conftest.
$ac_ext <<_ACEOF
11846 cat confdefs.h
>>conftest.
$ac_ext
11847 cat >>conftest.
$ac_ext <<_ACEOF
11848 /* end confdefs.h. */
11849 $ac_includes_default
11850 typedef long double ac__type_sizeof_;
11854 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11861 rm -f conftest.
$ac_objext
11862 if { (ac_try
="$ac_compile"
11863 case "(($ac_try" in
11864 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11865 *) ac_try_echo=$ac_try;;
11867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11868 (eval "$ac_compile") 2>conftest.er1
11870 grep -v '^ *+' conftest.er1 >conftest.err
11872 cat conftest.err >&5
11873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874 (exit $ac_status); } && {
11875 test -z "$ac_c_werror_flag" ||
11876 test ! -s conftest.err
11877 } && test -s conftest.$ac_objext; then
11880 cat >conftest.$ac_ext <<_ACEOF
11883 cat confdefs.h >>conftest.$ac_ext
11884 cat >>conftest.$ac_ext <<_ACEOF
11885 /* end confdefs.h. */
11886 $ac_includes_default
11887 typedef long double ac__type_sizeof_;
11891 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11898 rm -f conftest.$ac_objext
11899 if { (ac_try="$ac_compile"
11900 case "(($ac_try" in
11901 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11902 *) ac_try_echo
=$ac_try;;
11904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11905 (eval "$ac_compile") 2>conftest.er1
11907 grep -v '^ *+' conftest.er1
>conftest.err
11909 cat conftest.err
>&5
11910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911 (exit $ac_status); } && {
11912 test -z "$ac_c_werror_flag" ||
11913 test ! -s conftest.err
11914 } && test -s conftest.
$ac_objext; then
11915 ac_lo
=$ac_mid; break
11917 echo "$as_me: failed program was:" >&5
11918 sed 's/^/| /' conftest.
$ac_ext >&5
11920 ac_hi
=`expr '(' $ac_mid ')' - 1`
11921 if test $ac_mid -le $ac_hi; then
11925 ac_mid
=`expr 2 '*' $ac_mid`
11928 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11931 echo "$as_me: failed program was:" >&5
11932 sed 's/^/| /' conftest.
$ac_ext >&5
11937 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11940 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11941 # Binary search between lo and hi bounds.
11942 while test "x$ac_lo" != "x$ac_hi"; do
11943 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11944 cat >conftest.
$ac_ext <<_ACEOF
11947 cat confdefs.h
>>conftest.
$ac_ext
11948 cat >>conftest.
$ac_ext <<_ACEOF
11949 /* end confdefs.h. */
11950 $ac_includes_default
11951 typedef long double ac__type_sizeof_;
11955 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11962 rm -f conftest.
$ac_objext
11963 if { (ac_try
="$ac_compile"
11964 case "(($ac_try" in
11965 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11966 *) ac_try_echo=$ac_try;;
11968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11969 (eval "$ac_compile") 2>conftest.er1
11971 grep -v '^ *+' conftest.er1 >conftest.err
11973 cat conftest.err >&5
11974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975 (exit $ac_status); } && {
11976 test -z "$ac_c_werror_flag" ||
11977 test ! -s conftest.err
11978 } && test -s conftest.$ac_objext; then
11981 echo "$as_me: failed program was:" >&5
11982 sed 's/^/| /' conftest.$ac_ext >&5
11984 ac_lo=`expr '(' $ac_mid ')' + 1`
11987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11990 ?*) ac_cv_sizeof_long_double=$ac_lo;;
11991 '') if test "$ac_cv_type_long_double" = yes; then
11992 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
11993 See \`config.log
' for more details." >&5
11994 echo "$as_me: error: cannot compute sizeof (long double)
11995 See \`config.log' for more details.
" >&2;}
11996 { (exit 77); exit 77; }; }
11998 ac_cv_sizeof_long_double=0
12002 cat >conftest.$ac_ext <<_ACEOF
12005 cat confdefs.h >>conftest.$ac_ext
12006 cat >>conftest.$ac_ext <<_ACEOF
12007 /* end confdefs.h. */
12008 $ac_includes_default
12009 typedef long double ac__type_sizeof_;
12010 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12011 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12013 #include <stdlib.h>
12018 FILE *f = fopen ("conftest.val
", "w
");
12021 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12023 long int i = longval ();
12024 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12026 fprintf (f, "%ld
\n", i);
12030 unsigned long int i = ulongval ();
12031 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12033 fprintf (f, "%lu
\n", i);
12035 return ferror (f) || fclose (f) != 0;
12041 rm -f conftest$ac_exeext
12042 if { (ac_try="$ac_link"
12043 case "(($ac_try" in
12044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12045 *) ac_try_echo=$ac_try;;
12047 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12048 (eval "$ac_link") 2>&5
12050 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12051 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12052 { (case "(($ac_try" in
12053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12054 *) ac_try_echo=$ac_try;;
12056 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12057 (eval "$ac_try") 2>&5
12059 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12060 (exit $ac_status); }; }; then
12061 ac_cv_sizeof_long_double=`cat conftest.val`
12063 echo "$as_me: program exited with status
$ac_status" >&5
12064 echo "$as_me: failed program was
:" >&5
12065 sed 's/^/| /' conftest.$ac_ext >&5
12067 ( exit $ac_status )
12068 if test "$ac_cv_type_long_double" = yes; then
12069 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long double
)
12070 See \
`config.log' for more details." >&5
12071 echo "$as_me: error: cannot compute sizeof (long double)
12072 See \`config.log
' for more details." >&2;}
12073 { (exit 77); exit 77; }; }
12075 ac_cv_sizeof_long_double=0
12078 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12082 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
12083 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; }
12087 cat >>confdefs.h <<_ACEOF
12088 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
12094 { echo "$as_me:$LINENO: checking for _Bool support" >&5
12095 echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; }
12097 cat >conftest.$ac_ext <<_ACEOF
12100 cat confdefs.h >>conftest.$ac_ext
12101 cat >>conftest.$ac_ext <<_ACEOF
12102 /* end confdefs.h. */
12107 _Bool x; x = (_Bool)0;
12112 rm -f conftest.$ac_objext
12113 if { (ac_try="$ac_compile"
12114 case "(($ac_try" in
12115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12116 *) ac_try_echo=$ac_try;;
12118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12119 (eval "$ac_compile") 2>conftest.er1
12121 grep -v '^
*+' conftest.er1 >conftest.err
12123 cat conftest.err >&5
12124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125 (exit $ac_status); } && {
12126 test -z "$ac_c_werror_flag" ||
12127 test ! -s conftest.err
12128 } && test -s conftest.$ac_objext; then
12131 cat >>confdefs.h <<\_ACEOF
12132 #define HAVE_C99_BOOL 1
12138 echo "$as_me: failed program was:" >&5
12139 sed 's
/^
/|
/' conftest.$ac_ext >&5
12144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12145 { echo "$as_me:$LINENO: result: $have_c99_bool" >&5
12146 echo "${ECHO_T}$have_c99_bool" >&6; }
12147 if test "$have_c99_bool" = yes ; then
12148 { echo "$as_me:$LINENO: checking for _Bool" >&5
12149 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
12150 if test "${ac_cv_type__Bool+set}" = set; then
12151 echo $ECHO_N "(cached) $ECHO_C" >&6
12153 cat >conftest.$ac_ext <<_ACEOF
12156 cat confdefs.h >>conftest.$ac_ext
12157 cat >>conftest.$ac_ext <<_ACEOF
12158 /* end confdefs.h. */
12159 $ac_includes_default
12160 typedef _Bool ac__type_new_;
12164 if ((ac__type_new_ *) 0)
12166 if (sizeof (ac__type_new_))
12172 rm -f conftest.$ac_objext
12173 if { (ac_try="$ac_compile"
12174 case "(($ac_try" in
12175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12176 *) ac_try_echo=$ac_try;;
12178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12179 (eval "$ac_compile") 2>conftest.er1
12181 grep -v '^
*+' conftest.er1 >conftest.err
12183 cat conftest.err >&5
12184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185 (exit $ac_status); } && {
12186 test -z "$ac_c_werror_flag" ||
12187 test ! -s conftest.err
12188 } && test -s conftest.$ac_objext; then
12189 ac_cv_type__Bool=yes
12191 echo "$as_me: failed program was:" >&5
12192 sed 's
/^
/|
/' conftest.$ac_ext >&5
12194 ac_cv_type__Bool=no
12197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12199 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
12200 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
12202 # The cast to long int works around a bug in the HP C Compiler
12203 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12204 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12205 # This bug is HP SR number 8606223364.
12206 { echo "$as_me:$LINENO: checking size of _Bool" >&5
12207 echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; }
12208 if test "${ac_cv_sizeof__Bool+set}" = set; then
12209 echo $ECHO_N "(cached) $ECHO_C" >&6
12211 if test "$cross_compiling" = yes; then
12212 # Depending upon the size, compute the lo and hi bounds.
12213 cat >conftest.
$ac_ext <<_ACEOF
12216 cat confdefs.h
>>conftest.
$ac_ext
12217 cat >>conftest.
$ac_ext <<_ACEOF
12218 /* end confdefs.h. */
12219 $ac_includes_default
12220 typedef _Bool ac__type_sizeof_;
12224 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12231 rm -f conftest.
$ac_objext
12232 if { (ac_try
="$ac_compile"
12233 case "(($ac_try" in
12234 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12235 *) ac_try_echo=$ac_try;;
12237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12238 (eval "$ac_compile") 2>conftest.er1
12240 grep -v '^ *+' conftest.er1 >conftest.err
12242 cat conftest.err >&5
12243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244 (exit $ac_status); } && {
12245 test -z "$ac_c_werror_flag" ||
12246 test ! -s conftest.err
12247 } && test -s conftest.$ac_objext; then
12250 cat >conftest.$ac_ext <<_ACEOF
12253 cat confdefs.h >>conftest.$ac_ext
12254 cat >>conftest.$ac_ext <<_ACEOF
12255 /* end confdefs.h. */
12256 $ac_includes_default
12257 typedef _Bool ac__type_sizeof_;
12261 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12268 rm -f conftest.$ac_objext
12269 if { (ac_try="$ac_compile"
12270 case "(($ac_try" in
12271 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12272 *) ac_try_echo
=$ac_try;;
12274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12275 (eval "$ac_compile") 2>conftest.er1
12277 grep -v '^ *+' conftest.er1
>conftest.err
12279 cat conftest.err
>&5
12280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281 (exit $ac_status); } && {
12282 test -z "$ac_c_werror_flag" ||
12283 test ! -s conftest.err
12284 } && test -s conftest.
$ac_objext; then
12285 ac_hi
=$ac_mid; break
12287 echo "$as_me: failed program was:" >&5
12288 sed 's/^/| /' conftest.
$ac_ext >&5
12290 ac_lo
=`expr $ac_mid + 1`
12291 if test $ac_lo -le $ac_mid; then
12295 ac_mid
=`expr 2 '*' $ac_mid + 1`
12298 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12301 echo "$as_me: failed program was:" >&5
12302 sed 's/^/| /' conftest.
$ac_ext >&5
12304 cat >conftest.
$ac_ext <<_ACEOF
12307 cat confdefs.h
>>conftest.
$ac_ext
12308 cat >>conftest.
$ac_ext <<_ACEOF
12309 /* end confdefs.h. */
12310 $ac_includes_default
12311 typedef _Bool ac__type_sizeof_;
12315 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12322 rm -f conftest.
$ac_objext
12323 if { (ac_try
="$ac_compile"
12324 case "(($ac_try" in
12325 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12326 *) ac_try_echo=$ac_try;;
12328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12329 (eval "$ac_compile") 2>conftest.er1
12331 grep -v '^ *+' conftest.er1 >conftest.err
12333 cat conftest.err >&5
12334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335 (exit $ac_status); } && {
12336 test -z "$ac_c_werror_flag" ||
12337 test ! -s conftest.err
12338 } && test -s conftest.$ac_objext; then
12341 cat >conftest.$ac_ext <<_ACEOF
12344 cat confdefs.h >>conftest.$ac_ext
12345 cat >>conftest.$ac_ext <<_ACEOF
12346 /* end confdefs.h. */
12347 $ac_includes_default
12348 typedef _Bool ac__type_sizeof_;
12352 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12359 rm -f conftest.$ac_objext
12360 if { (ac_try="$ac_compile"
12361 case "(($ac_try" in
12362 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12363 *) ac_try_echo
=$ac_try;;
12365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12366 (eval "$ac_compile") 2>conftest.er1
12368 grep -v '^ *+' conftest.er1
>conftest.err
12370 cat conftest.err
>&5
12371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372 (exit $ac_status); } && {
12373 test -z "$ac_c_werror_flag" ||
12374 test ! -s conftest.err
12375 } && test -s conftest.
$ac_objext; then
12376 ac_lo
=$ac_mid; break
12378 echo "$as_me: failed program was:" >&5
12379 sed 's/^/| /' conftest.
$ac_ext >&5
12381 ac_hi
=`expr '(' $ac_mid ')' - 1`
12382 if test $ac_mid -le $ac_hi; then
12386 ac_mid
=`expr 2 '*' $ac_mid`
12389 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12392 echo "$as_me: failed program was:" >&5
12393 sed 's/^/| /' conftest.
$ac_ext >&5
12398 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12401 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12402 # Binary search between lo and hi bounds.
12403 while test "x$ac_lo" != "x$ac_hi"; do
12404 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12405 cat >conftest.
$ac_ext <<_ACEOF
12408 cat confdefs.h
>>conftest.
$ac_ext
12409 cat >>conftest.
$ac_ext <<_ACEOF
12410 /* end confdefs.h. */
12411 $ac_includes_default
12412 typedef _Bool ac__type_sizeof_;
12416 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12423 rm -f conftest.
$ac_objext
12424 if { (ac_try
="$ac_compile"
12425 case "(($ac_try" in
12426 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12427 *) ac_try_echo=$ac_try;;
12429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12430 (eval "$ac_compile") 2>conftest.er1
12432 grep -v '^ *+' conftest.er1 >conftest.err
12434 cat conftest.err >&5
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); } && {
12437 test -z "$ac_c_werror_flag" ||
12438 test ! -s conftest.err
12439 } && test -s conftest.$ac_objext; then
12442 echo "$as_me: failed program was:" >&5
12443 sed 's/^/| /' conftest.$ac_ext >&5
12445 ac_lo=`expr '(' $ac_mid ')' + 1`
12448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12451 ?*) ac_cv_sizeof__Bool=$ac_lo;;
12452 '') if test "$ac_cv_type__Bool" = yes; then
12453 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12454 See \`config.log
' for more details." >&5
12455 echo "$as_me: error: cannot compute sizeof (_Bool)
12456 See \`config.log' for more details.
" >&2;}
12457 { (exit 77); exit 77; }; }
12459 ac_cv_sizeof__Bool=0
12463 cat >conftest.$ac_ext <<_ACEOF
12466 cat confdefs.h >>conftest.$ac_ext
12467 cat >>conftest.$ac_ext <<_ACEOF
12468 /* end confdefs.h. */
12469 $ac_includes_default
12470 typedef _Bool ac__type_sizeof_;
12471 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12472 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12474 #include <stdlib.h>
12479 FILE *f = fopen ("conftest.val
", "w
");
12482 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12484 long int i = longval ();
12485 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12487 fprintf (f, "%ld
\n", i);
12491 unsigned long int i = ulongval ();
12492 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12494 fprintf (f, "%lu
\n", i);
12496 return ferror (f) || fclose (f) != 0;
12502 rm -f conftest$ac_exeext
12503 if { (ac_try="$ac_link"
12504 case "(($ac_try" in
12505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12506 *) ac_try_echo=$ac_try;;
12508 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12509 (eval "$ac_link") 2>&5
12511 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12512 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12513 { (case "(($ac_try" in
12514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12515 *) ac_try_echo=$ac_try;;
12517 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12518 (eval "$ac_try") 2>&5
12520 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12521 (exit $ac_status); }; }; then
12522 ac_cv_sizeof__Bool=`cat conftest.val`
12524 echo "$as_me: program exited with status
$ac_status" >&5
12525 echo "$as_me: failed program was
:" >&5
12526 sed 's/^/| /' conftest.$ac_ext >&5
12528 ( exit $ac_status )
12529 if test "$ac_cv_type__Bool" = yes; then
12530 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(_Bool
)
12531 See \
`config.log' for more details." >&5
12532 echo "$as_me: error: cannot compute sizeof (_Bool)
12533 See \`config.log
' for more details." >&2;}
12534 { (exit 77); exit 77; }; }
12536 ac_cv_sizeof__Bool=0
12539 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12543 { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
12544 echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; }
12548 cat >>confdefs.h <<_ACEOF
12549 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
12555 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12556 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12557 if test "${ac_cv_type_uintptr_t+set}" = set; then
12558 echo $ECHO_N "(cached) $ECHO_C" >&6
12560 cat >conftest.$ac_ext <<_ACEOF
12563 cat confdefs.h >>conftest.$ac_ext
12564 cat >>conftest.$ac_ext <<_ACEOF
12565 /* end confdefs.h. */
12566 #ifdef HAVE_STDINT_H
12567 #include <stdint.h>
12570 typedef uintptr_t ac__type_new_;
12574 if ((ac__type_new_ *) 0)
12576 if (sizeof (ac__type_new_))
12582 rm -f conftest.$ac_objext
12583 if { (ac_try="$ac_compile"
12584 case "(($ac_try" in
12585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12586 *) ac_try_echo=$ac_try;;
12588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12589 (eval "$ac_compile") 2>conftest.er1
12591 grep -v '^
*+' conftest.er1 >conftest.err
12593 cat conftest.err >&5
12594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595 (exit $ac_status); } && {
12596 test -z "$ac_c_werror_flag" ||
12597 test ! -s conftest.err
12598 } && test -s conftest.$ac_objext; then
12599 ac_cv_type_uintptr_t=yes
12601 echo "$as_me: failed program was:" >&5
12602 sed 's
/^
/|
/' conftest.$ac_ext >&5
12604 ac_cv_type_uintptr_t=no
12607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12609 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12610 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12611 if test $ac_cv_type_uintptr_t = yes; then
12613 cat >>confdefs.h <<_ACEOF
12614 #define HAVE_UINTPTR_T 1
12617 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12618 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12619 if test "${ac_cv_type_uintptr_t+set}" = set; then
12620 echo $ECHO_N "(cached) $ECHO_C" >&6
12622 cat >conftest.$ac_ext <<_ACEOF
12625 cat confdefs.h >>conftest.$ac_ext
12626 cat >>conftest.$ac_ext <<_ACEOF
12627 /* end confdefs.h. */
12628 $ac_includes_default
12629 typedef uintptr_t ac__type_new_;
12633 if ((ac__type_new_ *) 0)
12635 if (sizeof (ac__type_new_))
12641 rm -f conftest.$ac_objext
12642 if { (ac_try="$ac_compile"
12643 case "(($ac_try" in
12644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12645 *) ac_try_echo=$ac_try;;
12647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12648 (eval "$ac_compile") 2>conftest.er1
12650 grep -v '^
*+' conftest.er1 >conftest.err
12652 cat conftest.err >&5
12653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654 (exit $ac_status); } && {
12655 test -z "$ac_c_werror_flag" ||
12656 test ! -s conftest.err
12657 } && test -s conftest.$ac_objext; then
12658 ac_cv_type_uintptr_t=yes
12660 echo "$as_me: failed program was:" >&5
12661 sed 's
/^
/|
/' conftest.$ac_ext >&5
12663 ac_cv_type_uintptr_t=no
12666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12668 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12669 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12671 # The cast to long int works around a bug in the HP C Compiler
12672 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12673 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12674 # This bug is HP SR number 8606223364.
12675 { echo "$as_me:$LINENO: checking size of uintptr_t" >&5
12676 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; }
12677 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
12678 echo $ECHO_N "(cached) $ECHO_C" >&6
12680 if test "$cross_compiling" = yes; then
12681 # Depending upon the size, compute the lo and hi bounds.
12682 cat >conftest.
$ac_ext <<_ACEOF
12685 cat confdefs.h
>>conftest.
$ac_ext
12686 cat >>conftest.
$ac_ext <<_ACEOF
12687 /* end confdefs.h. */
12688 $ac_includes_default
12689 typedef uintptr_t ac__type_sizeof_;
12693 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12700 rm -f conftest.
$ac_objext
12701 if { (ac_try
="$ac_compile"
12702 case "(($ac_try" in
12703 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12704 *) ac_try_echo=$ac_try;;
12706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12707 (eval "$ac_compile") 2>conftest.er1
12709 grep -v '^ *+' conftest.er1 >conftest.err
12711 cat conftest.err >&5
12712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713 (exit $ac_status); } && {
12714 test -z "$ac_c_werror_flag" ||
12715 test ! -s conftest.err
12716 } && test -s conftest.$ac_objext; then
12719 cat >conftest.$ac_ext <<_ACEOF
12722 cat confdefs.h >>conftest.$ac_ext
12723 cat >>conftest.$ac_ext <<_ACEOF
12724 /* end confdefs.h. */
12725 $ac_includes_default
12726 typedef uintptr_t ac__type_sizeof_;
12730 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12737 rm -f conftest.$ac_objext
12738 if { (ac_try="$ac_compile"
12739 case "(($ac_try" in
12740 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12741 *) ac_try_echo
=$ac_try;;
12743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12744 (eval "$ac_compile") 2>conftest.er1
12746 grep -v '^ *+' conftest.er1
>conftest.err
12748 cat conftest.err
>&5
12749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750 (exit $ac_status); } && {
12751 test -z "$ac_c_werror_flag" ||
12752 test ! -s conftest.err
12753 } && test -s conftest.
$ac_objext; then
12754 ac_hi
=$ac_mid; break
12756 echo "$as_me: failed program was:" >&5
12757 sed 's/^/| /' conftest.
$ac_ext >&5
12759 ac_lo
=`expr $ac_mid + 1`
12760 if test $ac_lo -le $ac_mid; then
12764 ac_mid
=`expr 2 '*' $ac_mid + 1`
12767 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12770 echo "$as_me: failed program was:" >&5
12771 sed 's/^/| /' conftest.
$ac_ext >&5
12773 cat >conftest.
$ac_ext <<_ACEOF
12776 cat confdefs.h
>>conftest.
$ac_ext
12777 cat >>conftest.
$ac_ext <<_ACEOF
12778 /* end confdefs.h. */
12779 $ac_includes_default
12780 typedef uintptr_t ac__type_sizeof_;
12784 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12791 rm -f conftest.
$ac_objext
12792 if { (ac_try
="$ac_compile"
12793 case "(($ac_try" in
12794 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12795 *) ac_try_echo=$ac_try;;
12797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12798 (eval "$ac_compile") 2>conftest.er1
12800 grep -v '^ *+' conftest.er1 >conftest.err
12802 cat conftest.err >&5
12803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12804 (exit $ac_status); } && {
12805 test -z "$ac_c_werror_flag" ||
12806 test ! -s conftest.err
12807 } && test -s conftest.$ac_objext; then
12810 cat >conftest.$ac_ext <<_ACEOF
12813 cat confdefs.h >>conftest.$ac_ext
12814 cat >>conftest.$ac_ext <<_ACEOF
12815 /* end confdefs.h. */
12816 $ac_includes_default
12817 typedef uintptr_t ac__type_sizeof_;
12821 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12828 rm -f conftest.$ac_objext
12829 if { (ac_try="$ac_compile"
12830 case "(($ac_try" in
12831 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12832 *) ac_try_echo
=$ac_try;;
12834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12835 (eval "$ac_compile") 2>conftest.er1
12837 grep -v '^ *+' conftest.er1
>conftest.err
12839 cat conftest.err
>&5
12840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841 (exit $ac_status); } && {
12842 test -z "$ac_c_werror_flag" ||
12843 test ! -s conftest.err
12844 } && test -s conftest.
$ac_objext; then
12845 ac_lo
=$ac_mid; break
12847 echo "$as_me: failed program was:" >&5
12848 sed 's/^/| /' conftest.
$ac_ext >&5
12850 ac_hi
=`expr '(' $ac_mid ')' - 1`
12851 if test $ac_mid -le $ac_hi; then
12855 ac_mid
=`expr 2 '*' $ac_mid`
12858 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12861 echo "$as_me: failed program was:" >&5
12862 sed 's/^/| /' conftest.
$ac_ext >&5
12867 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12870 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12871 # Binary search between lo and hi bounds.
12872 while test "x$ac_lo" != "x$ac_hi"; do
12873 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12874 cat >conftest.
$ac_ext <<_ACEOF
12877 cat confdefs.h
>>conftest.
$ac_ext
12878 cat >>conftest.
$ac_ext <<_ACEOF
12879 /* end confdefs.h. */
12880 $ac_includes_default
12881 typedef uintptr_t ac__type_sizeof_;
12885 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12892 rm -f conftest.
$ac_objext
12893 if { (ac_try
="$ac_compile"
12894 case "(($ac_try" in
12895 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12896 *) ac_try_echo=$ac_try;;
12898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12899 (eval "$ac_compile") 2>conftest.er1
12901 grep -v '^ *+' conftest.er1 >conftest.err
12903 cat conftest.err >&5
12904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905 (exit $ac_status); } && {
12906 test -z "$ac_c_werror_flag" ||
12907 test ! -s conftest.err
12908 } && test -s conftest.$ac_objext; then
12911 echo "$as_me: failed program was:" >&5
12912 sed 's/^/| /' conftest.$ac_ext >&5
12914 ac_lo=`expr '(' $ac_mid ')' + 1`
12917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12920 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
12921 '') if test "$ac_cv_type_uintptr_t" = yes; then
12922 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
12923 See \`config.log
' for more details." >&5
12924 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12925 See \`config.log' for more details.
" >&2;}
12926 { (exit 77); exit 77; }; }
12928 ac_cv_sizeof_uintptr_t=0
12932 cat >conftest.$ac_ext <<_ACEOF
12935 cat confdefs.h >>conftest.$ac_ext
12936 cat >>conftest.$ac_ext <<_ACEOF
12937 /* end confdefs.h. */
12938 $ac_includes_default
12939 typedef uintptr_t ac__type_sizeof_;
12940 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12941 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12943 #include <stdlib.h>
12948 FILE *f = fopen ("conftest.val
", "w
");
12951 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12953 long int i = longval ();
12954 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12956 fprintf (f, "%ld
\n", i);
12960 unsigned long int i = ulongval ();
12961 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12963 fprintf (f, "%lu
\n", i);
12965 return ferror (f) || fclose (f) != 0;
12971 rm -f conftest$ac_exeext
12972 if { (ac_try="$ac_link"
12973 case "(($ac_try" in
12974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12975 *) ac_try_echo=$ac_try;;
12977 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12978 (eval "$ac_link") 2>&5
12980 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12981 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12982 { (case "(($ac_try" in
12983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12984 *) ac_try_echo=$ac_try;;
12986 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12987 (eval "$ac_try") 2>&5
12989 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12990 (exit $ac_status); }; }; then
12991 ac_cv_sizeof_uintptr_t=`cat conftest.val`
12993 echo "$as_me: program exited with status
$ac_status" >&5
12994 echo "$as_me: failed program was
:" >&5
12995 sed 's/^/| /' conftest.$ac_ext >&5
12997 ( exit $ac_status )
12998 if test "$ac_cv_type_uintptr_t" = yes; then
12999 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(uintptr_t
)
13000 See \
`config.log' for more details." >&5
13001 echo "$as_me: error: cannot compute sizeof (uintptr_t)
13002 See \`config.log
' for more details." >&2;}
13003 { (exit 77); exit 77; }; }
13005 ac_cv_sizeof_uintptr_t=0
13008 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13012 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
13013 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; }
13017 cat >>confdefs.h <<_ACEOF
13018 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
13025 { echo "$as_me:$LINENO: checking for off_t" >&5
13026 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
13027 if test "${ac_cv_type_off_t+set}" = set; then
13028 echo $ECHO_N "(cached) $ECHO_C" >&6
13030 cat >conftest.$ac_ext <<_ACEOF
13033 cat confdefs.h >>conftest.$ac_ext
13034 cat >>conftest.$ac_ext <<_ACEOF
13035 /* end confdefs.h. */
13037 #ifdef HAVE_SYS_TYPES_H
13038 #include <sys/types.h>
13042 typedef off_t ac__type_new_;
13046 if ((ac__type_new_ *) 0)
13048 if (sizeof (ac__type_new_))
13054 rm -f conftest.$ac_objext
13055 if { (ac_try="$ac_compile"
13056 case "(($ac_try" in
13057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13058 *) ac_try_echo=$ac_try;;
13060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13061 (eval "$ac_compile") 2>conftest.er1
13063 grep -v '^
*+' conftest.er1 >conftest.err
13065 cat conftest.err >&5
13066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067 (exit $ac_status); } && {
13068 test -z "$ac_c_werror_flag" ||
13069 test ! -s conftest.err
13070 } && test -s conftest.$ac_objext; then
13071 ac_cv_type_off_t=yes
13073 echo "$as_me: failed program was:" >&5
13074 sed 's
/^
/|
/' conftest.$ac_ext >&5
13076 ac_cv_type_off_t=no
13079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13081 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13082 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
13084 # The cast to long int works around a bug in the HP C Compiler
13085 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13086 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13087 # This bug is HP SR number 8606223364.
13088 { echo "$as_me:$LINENO: checking size of off_t" >&5
13089 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
13090 if test "${ac_cv_sizeof_off_t+set}" = set; then
13091 echo $ECHO_N "(cached) $ECHO_C" >&6
13093 if test "$cross_compiling" = yes; then
13094 # Depending upon the size, compute the lo and hi bounds.
13095 cat >conftest.
$ac_ext <<_ACEOF
13098 cat confdefs.h
>>conftest.
$ac_ext
13099 cat >>conftest.
$ac_ext <<_ACEOF
13100 /* end confdefs.h. */
13102 #ifdef HAVE_SYS_TYPES_H
13103 #include <sys/types.h>
13107 typedef off_t ac__type_sizeof_;
13111 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13118 rm -f conftest.
$ac_objext
13119 if { (ac_try
="$ac_compile"
13120 case "(($ac_try" in
13121 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13122 *) ac_try_echo=$ac_try;;
13124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13125 (eval "$ac_compile") 2>conftest.er1
13127 grep -v '^ *+' conftest.er1 >conftest.err
13129 cat conftest.err >&5
13130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13131 (exit $ac_status); } && {
13132 test -z "$ac_c_werror_flag" ||
13133 test ! -s conftest.err
13134 } && test -s conftest.$ac_objext; then
13137 cat >conftest.$ac_ext <<_ACEOF
13140 cat confdefs.h >>conftest.$ac_ext
13141 cat >>conftest.$ac_ext <<_ACEOF
13142 /* end confdefs.h. */
13144 #ifdef HAVE_SYS_TYPES_H
13145 #include <sys/types.h>
13149 typedef off_t ac__type_sizeof_;
13153 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13160 rm -f conftest.$ac_objext
13161 if { (ac_try="$ac_compile"
13162 case "(($ac_try" in
13163 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13164 *) ac_try_echo
=$ac_try;;
13166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13167 (eval "$ac_compile") 2>conftest.er1
13169 grep -v '^ *+' conftest.er1
>conftest.err
13171 cat conftest.err
>&5
13172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13173 (exit $ac_status); } && {
13174 test -z "$ac_c_werror_flag" ||
13175 test ! -s conftest.err
13176 } && test -s conftest.
$ac_objext; then
13177 ac_hi
=$ac_mid; break
13179 echo "$as_me: failed program was:" >&5
13180 sed 's/^/| /' conftest.
$ac_ext >&5
13182 ac_lo
=`expr $ac_mid + 1`
13183 if test $ac_lo -le $ac_mid; then
13187 ac_mid
=`expr 2 '*' $ac_mid + 1`
13190 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13193 echo "$as_me: failed program was:" >&5
13194 sed 's/^/| /' conftest.
$ac_ext >&5
13196 cat >conftest.
$ac_ext <<_ACEOF
13199 cat confdefs.h
>>conftest.
$ac_ext
13200 cat >>conftest.
$ac_ext <<_ACEOF
13201 /* end confdefs.h. */
13203 #ifdef HAVE_SYS_TYPES_H
13204 #include <sys/types.h>
13208 typedef off_t ac__type_sizeof_;
13212 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13219 rm -f conftest.
$ac_objext
13220 if { (ac_try
="$ac_compile"
13221 case "(($ac_try" in
13222 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13223 *) ac_try_echo=$ac_try;;
13225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13226 (eval "$ac_compile") 2>conftest.er1
13228 grep -v '^ *+' conftest.er1 >conftest.err
13230 cat conftest.err >&5
13231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232 (exit $ac_status); } && {
13233 test -z "$ac_c_werror_flag" ||
13234 test ! -s conftest.err
13235 } && test -s conftest.$ac_objext; then
13238 cat >conftest.$ac_ext <<_ACEOF
13241 cat confdefs.h >>conftest.$ac_ext
13242 cat >>conftest.$ac_ext <<_ACEOF
13243 /* end confdefs.h. */
13245 #ifdef HAVE_SYS_TYPES_H
13246 #include <sys/types.h>
13250 typedef off_t ac__type_sizeof_;
13254 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13261 rm -f conftest.$ac_objext
13262 if { (ac_try="$ac_compile"
13263 case "(($ac_try" in
13264 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13265 *) ac_try_echo
=$ac_try;;
13267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13268 (eval "$ac_compile") 2>conftest.er1
13270 grep -v '^ *+' conftest.er1
>conftest.err
13272 cat conftest.err
>&5
13273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274 (exit $ac_status); } && {
13275 test -z "$ac_c_werror_flag" ||
13276 test ! -s conftest.err
13277 } && test -s conftest.
$ac_objext; then
13278 ac_lo
=$ac_mid; break
13280 echo "$as_me: failed program was:" >&5
13281 sed 's/^/| /' conftest.
$ac_ext >&5
13283 ac_hi
=`expr '(' $ac_mid ')' - 1`
13284 if test $ac_mid -le $ac_hi; then
13288 ac_mid
=`expr 2 '*' $ac_mid`
13291 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13294 echo "$as_me: failed program was:" >&5
13295 sed 's/^/| /' conftest.
$ac_ext >&5
13300 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13303 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13304 # Binary search between lo and hi bounds.
13305 while test "x$ac_lo" != "x$ac_hi"; do
13306 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13307 cat >conftest.
$ac_ext <<_ACEOF
13310 cat confdefs.h
>>conftest.
$ac_ext
13311 cat >>conftest.
$ac_ext <<_ACEOF
13312 /* end confdefs.h. */
13314 #ifdef HAVE_SYS_TYPES_H
13315 #include <sys/types.h>
13319 typedef off_t ac__type_sizeof_;
13323 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13330 rm -f conftest.
$ac_objext
13331 if { (ac_try
="$ac_compile"
13332 case "(($ac_try" in
13333 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13334 *) ac_try_echo=$ac_try;;
13336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13337 (eval "$ac_compile") 2>conftest.er1
13339 grep -v '^ *+' conftest.er1 >conftest.err
13341 cat conftest.err >&5
13342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343 (exit $ac_status); } && {
13344 test -z "$ac_c_werror_flag" ||
13345 test ! -s conftest.err
13346 } && test -s conftest.$ac_objext; then
13349 echo "$as_me: failed program was:" >&5
13350 sed 's/^/| /' conftest.$ac_ext >&5
13352 ac_lo=`expr '(' $ac_mid ')' + 1`
13355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13358 ?*) ac_cv_sizeof_off_t=$ac_lo;;
13359 '') if test "$ac_cv_type_off_t" = yes; then
13360 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
13361 See \`config.log
' for more details." >&5
13362 echo "$as_me: error: cannot compute sizeof (off_t)
13363 See \`config.log' for more details.
" >&2;}
13364 { (exit 77); exit 77; }; }
13366 ac_cv_sizeof_off_t=0
13370 cat >conftest.$ac_ext <<_ACEOF
13373 cat confdefs.h >>conftest.$ac_ext
13374 cat >>conftest.$ac_ext <<_ACEOF
13375 /* end confdefs.h. */
13377 #ifdef HAVE_SYS_TYPES_H
13378 #include <sys/types.h>
13382 typedef off_t ac__type_sizeof_;
13383 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13384 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13386 #include <stdlib.h>
13391 FILE *f = fopen ("conftest.val
", "w
");
13394 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13396 long int i = longval ();
13397 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13399 fprintf (f, "%ld
\n", i);
13403 unsigned long int i = ulongval ();
13404 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13406 fprintf (f, "%lu
\n", i);
13408 return ferror (f) || fclose (f) != 0;
13414 rm -f conftest$ac_exeext
13415 if { (ac_try="$ac_link"
13416 case "(($ac_try" in
13417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13418 *) ac_try_echo=$ac_try;;
13420 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13421 (eval "$ac_link") 2>&5
13423 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13424 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13425 { (case "(($ac_try" in
13426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13427 *) ac_try_echo=$ac_try;;
13429 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13430 (eval "$ac_try") 2>&5
13432 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13433 (exit $ac_status); }; }; then
13434 ac_cv_sizeof_off_t=`cat conftest.val`
13436 echo "$as_me: program exited with status
$ac_status" >&5
13437 echo "$as_me: failed program was
:" >&5
13438 sed 's/^/| /' conftest.$ac_ext >&5
13440 ( exit $ac_status )
13441 if test "$ac_cv_type_off_t" = yes; then
13442 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(off_t
)
13443 See \
`config.log' for more details." >&5
13444 echo "$as_me: error: cannot compute sizeof (off_t)
13445 See \`config.log
' for more details." >&2;}
13446 { (exit 77); exit 77; }; }
13448 ac_cv_sizeof_off_t=0
13451 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13455 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
13456 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
13460 cat >>confdefs.h <<_ACEOF
13461 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
13466 { echo "$as_me:$LINENO: checking whether to enable large file support" >&5
13467 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; }
13468 if test "$have_long_long" = yes -a \
13469 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
13470 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
13472 cat >>confdefs.h <<\_ACEOF
13473 #define HAVE_LARGEFILE_SUPPORT 1
13476 { echo "$as_me:$LINENO: result: yes" >&5
13477 echo "${ECHO_T}yes" >&6; }
13479 { echo "$as_me:$LINENO: result: no" >&5
13480 echo "${ECHO_T}no" >&6; }
13483 { echo "$as_me:$LINENO: checking for time_t" >&5
13484 echo $ECHO_N "checking for time_t... $ECHO_C" >&6; }
13485 if test "${ac_cv_type_time_t+set}" = set; then
13486 echo $ECHO_N "(cached) $ECHO_C" >&6
13488 cat >conftest.$ac_ext <<_ACEOF
13491 cat confdefs.h >>conftest.$ac_ext
13492 cat >>conftest.$ac_ext <<_ACEOF
13493 /* end confdefs.h. */
13495 #ifdef HAVE_SYS_TYPES_H
13496 #include <sys/types.h>
13503 typedef time_t ac__type_new_;
13507 if ((ac__type_new_ *) 0)
13509 if (sizeof (ac__type_new_))
13515 rm -f conftest.$ac_objext
13516 if { (ac_try="$ac_compile"
13517 case "(($ac_try" in
13518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13519 *) ac_try_echo=$ac_try;;
13521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13522 (eval "$ac_compile") 2>conftest.er1
13524 grep -v '^
*+' conftest.er1 >conftest.err
13526 cat conftest.err >&5
13527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528 (exit $ac_status); } && {
13529 test -z "$ac_c_werror_flag" ||
13530 test ! -s conftest.err
13531 } && test -s conftest.$ac_objext; then
13532 ac_cv_type_time_t=yes
13534 echo "$as_me: failed program was:" >&5
13535 sed 's
/^
/|
/' conftest.$ac_ext >&5
13537 ac_cv_type_time_t=no
13540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13542 { echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
13543 echo "${ECHO_T}$ac_cv_type_time_t" >&6; }
13545 # The cast to long int works around a bug in the HP C Compiler
13546 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13547 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13548 # This bug is HP SR number 8606223364.
13549 { echo "$as_me:$LINENO: checking size of time_t" >&5
13550 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
13551 if test "${ac_cv_sizeof_time_t+set}" = set; then
13552 echo $ECHO_N "(cached) $ECHO_C" >&6
13554 if test "$cross_compiling" = yes; then
13555 # Depending upon the size, compute the lo and hi bounds.
13556 cat >conftest.
$ac_ext <<_ACEOF
13559 cat confdefs.h
>>conftest.
$ac_ext
13560 cat >>conftest.
$ac_ext <<_ACEOF
13561 /* end confdefs.h. */
13563 #ifdef HAVE_SYS_TYPES_H
13564 #include <sys/types.h>
13571 typedef time_t ac__type_sizeof_;
13575 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13582 rm -f conftest.
$ac_objext
13583 if { (ac_try
="$ac_compile"
13584 case "(($ac_try" in
13585 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13586 *) ac_try_echo=$ac_try;;
13588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13589 (eval "$ac_compile") 2>conftest.er1
13591 grep -v '^ *+' conftest.er1 >conftest.err
13593 cat conftest.err >&5
13594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13595 (exit $ac_status); } && {
13596 test -z "$ac_c_werror_flag" ||
13597 test ! -s conftest.err
13598 } && test -s conftest.$ac_objext; then
13601 cat >conftest.$ac_ext <<_ACEOF
13604 cat confdefs.h >>conftest.$ac_ext
13605 cat >>conftest.$ac_ext <<_ACEOF
13606 /* end confdefs.h. */
13608 #ifdef HAVE_SYS_TYPES_H
13609 #include <sys/types.h>
13616 typedef time_t ac__type_sizeof_;
13620 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13627 rm -f conftest.$ac_objext
13628 if { (ac_try="$ac_compile"
13629 case "(($ac_try" in
13630 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13631 *) ac_try_echo
=$ac_try;;
13633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13634 (eval "$ac_compile") 2>conftest.er1
13636 grep -v '^ *+' conftest.er1
>conftest.err
13638 cat conftest.err
>&5
13639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640 (exit $ac_status); } && {
13641 test -z "$ac_c_werror_flag" ||
13642 test ! -s conftest.err
13643 } && test -s conftest.
$ac_objext; then
13644 ac_hi
=$ac_mid; break
13646 echo "$as_me: failed program was:" >&5
13647 sed 's/^/| /' conftest.
$ac_ext >&5
13649 ac_lo
=`expr $ac_mid + 1`
13650 if test $ac_lo -le $ac_mid; then
13654 ac_mid
=`expr 2 '*' $ac_mid + 1`
13657 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13660 echo "$as_me: failed program was:" >&5
13661 sed 's/^/| /' conftest.
$ac_ext >&5
13663 cat >conftest.
$ac_ext <<_ACEOF
13666 cat confdefs.h
>>conftest.
$ac_ext
13667 cat >>conftest.
$ac_ext <<_ACEOF
13668 /* end confdefs.h. */
13670 #ifdef HAVE_SYS_TYPES_H
13671 #include <sys/types.h>
13678 typedef time_t ac__type_sizeof_;
13682 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13689 rm -f conftest.
$ac_objext
13690 if { (ac_try
="$ac_compile"
13691 case "(($ac_try" in
13692 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13693 *) ac_try_echo=$ac_try;;
13695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13696 (eval "$ac_compile") 2>conftest.er1
13698 grep -v '^ *+' conftest.er1 >conftest.err
13700 cat conftest.err >&5
13701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702 (exit $ac_status); } && {
13703 test -z "$ac_c_werror_flag" ||
13704 test ! -s conftest.err
13705 } && test -s conftest.$ac_objext; then
13708 cat >conftest.$ac_ext <<_ACEOF
13711 cat confdefs.h >>conftest.$ac_ext
13712 cat >>conftest.$ac_ext <<_ACEOF
13713 /* end confdefs.h. */
13715 #ifdef HAVE_SYS_TYPES_H
13716 #include <sys/types.h>
13723 typedef time_t ac__type_sizeof_;
13727 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13734 rm -f conftest.$ac_objext
13735 if { (ac_try="$ac_compile"
13736 case "(($ac_try" in
13737 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13738 *) ac_try_echo
=$ac_try;;
13740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13741 (eval "$ac_compile") 2>conftest.er1
13743 grep -v '^ *+' conftest.er1
>conftest.err
13745 cat conftest.err
>&5
13746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13747 (exit $ac_status); } && {
13748 test -z "$ac_c_werror_flag" ||
13749 test ! -s conftest.err
13750 } && test -s conftest.
$ac_objext; then
13751 ac_lo
=$ac_mid; break
13753 echo "$as_me: failed program was:" >&5
13754 sed 's/^/| /' conftest.
$ac_ext >&5
13756 ac_hi
=`expr '(' $ac_mid ')' - 1`
13757 if test $ac_mid -le $ac_hi; then
13761 ac_mid
=`expr 2 '*' $ac_mid`
13764 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13767 echo "$as_me: failed program was:" >&5
13768 sed 's/^/| /' conftest.
$ac_ext >&5
13773 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13776 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13777 # Binary search between lo and hi bounds.
13778 while test "x$ac_lo" != "x$ac_hi"; do
13779 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13780 cat >conftest.
$ac_ext <<_ACEOF
13783 cat confdefs.h
>>conftest.
$ac_ext
13784 cat >>conftest.
$ac_ext <<_ACEOF
13785 /* end confdefs.h. */
13787 #ifdef HAVE_SYS_TYPES_H
13788 #include <sys/types.h>
13795 typedef time_t ac__type_sizeof_;
13799 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13806 rm -f conftest.
$ac_objext
13807 if { (ac_try
="$ac_compile"
13808 case "(($ac_try" in
13809 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13810 *) ac_try_echo=$ac_try;;
13812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13813 (eval "$ac_compile") 2>conftest.er1
13815 grep -v '^ *+' conftest.er1 >conftest.err
13817 cat conftest.err >&5
13818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13819 (exit $ac_status); } && {
13820 test -z "$ac_c_werror_flag" ||
13821 test ! -s conftest.err
13822 } && test -s conftest.$ac_objext; then
13825 echo "$as_me: failed program was:" >&5
13826 sed 's/^/| /' conftest.$ac_ext >&5
13828 ac_lo=`expr '(' $ac_mid ')' + 1`
13831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13834 ?*) ac_cv_sizeof_time_t=$ac_lo;;
13835 '') if test "$ac_cv_type_time_t" = yes; then
13836 { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
13837 See \`config.log
' for more details." >&5
13838 echo "$as_me: error: cannot compute sizeof (time_t)
13839 See \`config.log' for more details.
" >&2;}
13840 { (exit 77); exit 77; }; }
13842 ac_cv_sizeof_time_t=0
13846 cat >conftest.$ac_ext <<_ACEOF
13849 cat confdefs.h >>conftest.$ac_ext
13850 cat >>conftest.$ac_ext <<_ACEOF
13851 /* end confdefs.h. */
13853 #ifdef HAVE_SYS_TYPES_H
13854 #include <sys/types.h>
13861 typedef time_t ac__type_sizeof_;
13862 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13863 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13865 #include <stdlib.h>
13870 FILE *f = fopen ("conftest.val
", "w
");
13873 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13875 long int i = longval ();
13876 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13878 fprintf (f, "%ld
\n", i);
13882 unsigned long int i = ulongval ();
13883 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13885 fprintf (f, "%lu
\n", i);
13887 return ferror (f) || fclose (f) != 0;
13893 rm -f conftest$ac_exeext
13894 if { (ac_try="$ac_link"
13895 case "(($ac_try" in
13896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13897 *) ac_try_echo=$ac_try;;
13899 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13900 (eval "$ac_link") 2>&5
13902 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13903 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13904 { (case "(($ac_try" in
13905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13906 *) ac_try_echo=$ac_try;;
13908 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13909 (eval "$ac_try") 2>&5
13911 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13912 (exit $ac_status); }; }; then
13913 ac_cv_sizeof_time_t=`cat conftest.val`
13915 echo "$as_me: program exited with status
$ac_status" >&5
13916 echo "$as_me: failed program was
:" >&5
13917 sed 's/^/| /' conftest.$ac_ext >&5
13919 ( exit $ac_status )
13920 if test "$ac_cv_type_time_t" = yes; then
13921 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(time_t
)
13922 See \
`config.log' for more details." >&5
13923 echo "$as_me: error: cannot compute sizeof (time_t)
13924 See \`config.log
' for more details." >&2;}
13925 { (exit 77); exit 77; }; }
13927 ac_cv_sizeof_time_t=0
13930 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13934 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
13935 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
13939 cat >>confdefs.h <<_ACEOF
13940 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
13945 # if have pthread_t then define SIZEOF_PTHREAD_T
13947 if test "$ac_cv_kpthread" = "yes"
13948 then CC="$CC -Kpthread"
13949 elif test "$ac_cv_kthread" = "yes"
13950 then CC="$CC -Kthread"
13951 elif test "$ac_cv_pthread" = "yes"
13952 then CC="$CC -pthread"
13954 { echo "$as_me:$LINENO: checking for pthread_t" >&5
13955 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
13957 cat >conftest.$ac_ext <<_ACEOF
13960 cat confdefs.h >>conftest.$ac_ext
13961 cat >>conftest.$ac_ext <<_ACEOF
13962 /* end confdefs.h. */
13963 #include <pthread.h>
13967 pthread_t x; x = *(pthread_t*)0;
13972 rm -f conftest.$ac_objext
13973 if { (ac_try="$ac_compile"
13974 case "(($ac_try" in
13975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13976 *) ac_try_echo=$ac_try;;
13978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13979 (eval "$ac_compile") 2>conftest.er1
13981 grep -v '^
*+' conftest.er1 >conftest.err
13983 cat conftest.err >&5
13984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13985 (exit $ac_status); } && {
13986 test -z "$ac_c_werror_flag" ||
13987 test ! -s conftest.err
13988 } && test -s conftest.$ac_objext; then
13991 echo "$as_me: failed program was:" >&5
13992 sed 's
/^
/|
/' conftest.$ac_ext >&5
13997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13998 { echo "$as_me:$LINENO: result: $have_pthread_t" >&5
13999 echo "${ECHO_T}$have_pthread_t" >&6; }
14000 if test "$have_pthread_t" = yes ; then
14001 { echo "$as_me:$LINENO: checking for pthread_t" >&5
14002 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
14003 if test "${ac_cv_type_pthread_t+set}" = set; then
14004 echo $ECHO_N "(cached) $ECHO_C" >&6
14006 cat >conftest.$ac_ext <<_ACEOF
14009 cat confdefs.h >>conftest.$ac_ext
14010 cat >>conftest.$ac_ext <<_ACEOF
14011 /* end confdefs.h. */
14013 #ifdef HAVE_PTHREAD_H
14014 #include <pthread.h>
14018 typedef pthread_t ac__type_new_;
14022 if ((ac__type_new_ *) 0)
14024 if (sizeof (ac__type_new_))
14030 rm -f conftest.$ac_objext
14031 if { (ac_try="$ac_compile"
14032 case "(($ac_try" in
14033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14034 *) ac_try_echo=$ac_try;;
14036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14037 (eval "$ac_compile") 2>conftest.er1
14039 grep -v '^
*+' conftest.er1 >conftest.err
14041 cat conftest.err >&5
14042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043 (exit $ac_status); } && {
14044 test -z "$ac_c_werror_flag" ||
14045 test ! -s conftest.err
14046 } && test -s conftest.$ac_objext; then
14047 ac_cv_type_pthread_t=yes
14049 echo "$as_me: failed program was:" >&5
14050 sed 's
/^
/|
/' conftest.$ac_ext >&5
14052 ac_cv_type_pthread_t=no
14055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14057 { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_t" >&5
14058 echo "${ECHO_T}$ac_cv_type_pthread_t" >&6; }
14060 # The cast to long int works around a bug in the HP C Compiler
14061 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14062 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14063 # This bug is HP SR number 8606223364.
14064 { echo "$as_me:$LINENO: checking size of pthread_t" >&5
14065 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; }
14066 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
14067 echo $ECHO_N "(cached) $ECHO_C" >&6
14069 if test "$cross_compiling" = yes; then
14070 # Depending upon the size, compute the lo and hi bounds.
14071 cat >conftest.
$ac_ext <<_ACEOF
14074 cat confdefs.h
>>conftest.
$ac_ext
14075 cat >>conftest.
$ac_ext <<_ACEOF
14076 /* end confdefs.h. */
14078 #ifdef HAVE_PTHREAD_H
14079 #include <pthread.h>
14083 typedef pthread_t ac__type_sizeof_;
14087 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
14094 rm -f conftest.
$ac_objext
14095 if { (ac_try
="$ac_compile"
14096 case "(($ac_try" in
14097 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14098 *) ac_try_echo=$ac_try;;
14100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14101 (eval "$ac_compile") 2>conftest.er1
14103 grep -v '^ *+' conftest.er1 >conftest.err
14105 cat conftest.err >&5
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); } && {
14108 test -z "$ac_c_werror_flag" ||
14109 test ! -s conftest.err
14110 } && test -s conftest.$ac_objext; then
14113 cat >conftest.$ac_ext <<_ACEOF
14116 cat confdefs.h >>conftest.$ac_ext
14117 cat >>conftest.$ac_ext <<_ACEOF
14118 /* end confdefs.h. */
14120 #ifdef HAVE_PTHREAD_H
14121 #include <pthread.h>
14125 typedef pthread_t ac__type_sizeof_;
14129 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14136 rm -f conftest.$ac_objext
14137 if { (ac_try="$ac_compile"
14138 case "(($ac_try" in
14139 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14140 *) ac_try_echo
=$ac_try;;
14142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14143 (eval "$ac_compile") 2>conftest.er1
14145 grep -v '^ *+' conftest.er1
>conftest.err
14147 cat conftest.err
>&5
14148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149 (exit $ac_status); } && {
14150 test -z "$ac_c_werror_flag" ||
14151 test ! -s conftest.err
14152 } && test -s conftest.
$ac_objext; then
14153 ac_hi
=$ac_mid; break
14155 echo "$as_me: failed program was:" >&5
14156 sed 's/^/| /' conftest.
$ac_ext >&5
14158 ac_lo
=`expr $ac_mid + 1`
14159 if test $ac_lo -le $ac_mid; then
14163 ac_mid
=`expr 2 '*' $ac_mid + 1`
14166 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14169 echo "$as_me: failed program was:" >&5
14170 sed 's/^/| /' conftest.
$ac_ext >&5
14172 cat >conftest.
$ac_ext <<_ACEOF
14175 cat confdefs.h
>>conftest.
$ac_ext
14176 cat >>conftest.
$ac_ext <<_ACEOF
14177 /* end confdefs.h. */
14179 #ifdef HAVE_PTHREAD_H
14180 #include <pthread.h>
14184 typedef pthread_t ac__type_sizeof_;
14188 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
14195 rm -f conftest.
$ac_objext
14196 if { (ac_try
="$ac_compile"
14197 case "(($ac_try" in
14198 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14199 *) ac_try_echo=$ac_try;;
14201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14202 (eval "$ac_compile") 2>conftest.er1
14204 grep -v '^ *+' conftest.er1 >conftest.err
14206 cat conftest.err >&5
14207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208 (exit $ac_status); } && {
14209 test -z "$ac_c_werror_flag" ||
14210 test ! -s conftest.err
14211 } && test -s conftest.$ac_objext; then
14214 cat >conftest.$ac_ext <<_ACEOF
14217 cat confdefs.h >>conftest.$ac_ext
14218 cat >>conftest.$ac_ext <<_ACEOF
14219 /* end confdefs.h. */
14221 #ifdef HAVE_PTHREAD_H
14222 #include <pthread.h>
14226 typedef pthread_t ac__type_sizeof_;
14230 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
14237 rm -f conftest.$ac_objext
14238 if { (ac_try="$ac_compile"
14239 case "(($ac_try" in
14240 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14241 *) ac_try_echo
=$ac_try;;
14243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14244 (eval "$ac_compile") 2>conftest.er1
14246 grep -v '^ *+' conftest.er1
>conftest.err
14248 cat conftest.err
>&5
14249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250 (exit $ac_status); } && {
14251 test -z "$ac_c_werror_flag" ||
14252 test ! -s conftest.err
14253 } && test -s conftest.
$ac_objext; then
14254 ac_lo
=$ac_mid; break
14256 echo "$as_me: failed program was:" >&5
14257 sed 's/^/| /' conftest.
$ac_ext >&5
14259 ac_hi
=`expr '(' $ac_mid ')' - 1`
14260 if test $ac_mid -le $ac_hi; then
14264 ac_mid
=`expr 2 '*' $ac_mid`
14267 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14270 echo "$as_me: failed program was:" >&5
14271 sed 's/^/| /' conftest.
$ac_ext >&5
14276 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14279 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14280 # Binary search between lo and hi bounds.
14281 while test "x$ac_lo" != "x$ac_hi"; do
14282 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14283 cat >conftest.
$ac_ext <<_ACEOF
14286 cat confdefs.h
>>conftest.
$ac_ext
14287 cat >>conftest.
$ac_ext <<_ACEOF
14288 /* end confdefs.h. */
14290 #ifdef HAVE_PTHREAD_H
14291 #include <pthread.h>
14295 typedef pthread_t ac__type_sizeof_;
14299 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14306 rm -f conftest.
$ac_objext
14307 if { (ac_try
="$ac_compile"
14308 case "(($ac_try" in
14309 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14310 *) ac_try_echo=$ac_try;;
14312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14313 (eval "$ac_compile") 2>conftest.er1
14315 grep -v '^ *+' conftest.er1 >conftest.err
14317 cat conftest.err >&5
14318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319 (exit $ac_status); } && {
14320 test -z "$ac_c_werror_flag" ||
14321 test ! -s conftest.err
14322 } && test -s conftest.$ac_objext; then
14325 echo "$as_me: failed program was:" >&5
14326 sed 's/^/| /' conftest.$ac_ext >&5
14328 ac_lo=`expr '(' $ac_mid ')' + 1`
14331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14334 ?*) ac_cv_sizeof_pthread_t=$ac_lo;;
14335 '') if test "$ac_cv_type_pthread_t" = yes; then
14336 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pthread_t)
14337 See \`config.log
' for more details." >&5
14338 echo "$as_me: error: cannot compute sizeof (pthread_t)
14339 See \`config.log' for more details.
" >&2;}
14340 { (exit 77); exit 77; }; }
14342 ac_cv_sizeof_pthread_t=0
14346 cat >conftest.$ac_ext <<_ACEOF
14349 cat confdefs.h >>conftest.$ac_ext
14350 cat >>conftest.$ac_ext <<_ACEOF
14351 /* end confdefs.h. */
14353 #ifdef HAVE_PTHREAD_H
14354 #include <pthread.h>
14358 typedef pthread_t ac__type_sizeof_;
14359 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14360 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
14362 #include <stdlib.h>
14367 FILE *f = fopen ("conftest.val
", "w
");
14370 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
14372 long int i = longval ();
14373 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14375 fprintf (f, "%ld
\n", i);
14379 unsigned long int i = ulongval ();
14380 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14382 fprintf (f, "%lu
\n", i);
14384 return ferror (f) || fclose (f) != 0;
14390 rm -f conftest$ac_exeext
14391 if { (ac_try="$ac_link"
14392 case "(($ac_try" in
14393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14394 *) ac_try_echo=$ac_try;;
14396 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14397 (eval "$ac_link") 2>&5
14399 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14400 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14401 { (case "(($ac_try" in
14402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14403 *) ac_try_echo=$ac_try;;
14405 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14406 (eval "$ac_try") 2>&5
14408 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14409 (exit $ac_status); }; }; then
14410 ac_cv_sizeof_pthread_t=`cat conftest.val`
14412 echo "$as_me: program exited with status
$ac_status" >&5
14413 echo "$as_me: failed program was
:" >&5
14414 sed 's/^/| /' conftest.$ac_ext >&5
14416 ( exit $ac_status )
14417 if test "$ac_cv_type_pthread_t" = yes; then
14418 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(pthread_t
)
14419 See \
`config.log' for more details." >&5
14420 echo "$as_me: error: cannot compute sizeof (pthread_t)
14421 See \`config.log
' for more details." >&2;}
14422 { (exit 77); exit 77; }; }
14424 ac_cv_sizeof_pthread_t=0
14427 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14431 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
14432 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; }
14436 cat >>confdefs.h <<_ACEOF
14437 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
14444 { echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
14445 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6; }
14446 # Check whether --enable-toolbox-glue was given.
14447 if test "${enable_toolbox_glue+set}" = set; then
14448 enableval=$enable_toolbox_glue;
14452 if test -z "$enable_toolbox_glue"
14454 case $ac_sys_system/$ac_sys_release in
14456 enable_toolbox_glue="yes";;
14458 enable_toolbox_glue="no";;
14461 case "$enable_toolbox_glue" in
14463 extra_machdep_objs="Python/mactoolboxglue.o"
14464 extra_undefs="-u _PyMac_Error"
14466 cat >>confdefs.h <<\_ACEOF
14467 #define USE_TOOLBOX_OBJECT_GLUE 1
14472 extra_machdep_objs=""
14476 { echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
14477 echo "${ECHO_T}$enable_toolbox_glue" >&6; }
14481 case $ac_sys_system/$ac_sys_release in
14482 Darwin/[01567]\..*)
14483 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
14486 OTHER_LIBTOOL_OPT=""
14493 case $ac_sys_system/$ac_sys_release in
14494 Darwin/[01567]\..*)
14495 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
14496 if test "${enable_universalsdk}"; then
14499 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`"
14501 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $
(PYTHONFRAMEWORKINSTALLDIR
)/Versions
/$
(VERSION
)/$
(PYTHONFRAMEWORK
)'
14502 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $
(VERSION
) -current_version $
(VERSION
)';;
14504 gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3`
14505 if test ${gcc_version} '<' 4.0
14507 LIBTOOL_CRUFT="-lcc_dynamic"
14511 if test "$cross_compiling" = yes; then
14514 cat >conftest.$ac_ext <<_ACEOF
14517 cat confdefs.h >>conftest.$ac_ext
14518 cat >>conftest.$ac_ext <<_ACEOF
14519 /* end confdefs.h. */
14521 #include <unistd.h>
14522 int main(int argc, char*argv[])
14524 if (sizeof(long) == 4) {
14532 rm -f conftest$ac_exeext
14533 if { (ac_try="$ac_link"
14534 case "(($ac_try" in
14535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14536 *) ac_try_echo=$ac_try;;
14538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14539 (eval "$ac_link") 2>&5
14541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
14543 { (case "(($ac_try" in
14544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14545 *) ac_try_echo=$ac_try;;
14547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14548 (eval "$ac_try") 2>&5
14550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14551 (exit $ac_status); }; }; then
14554 echo "$as_me: program exited with status $ac_status" >&5
14555 echo "$as_me: failed program was:" >&5
14556 sed 's
/^
/|
/' conftest.$ac_ext >&5
14558 ( exit $ac_status )
14561 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14566 if test "${ac_osx_32bit}" = "yes"; then
14569 MACOSX_DEFAULT_ARCH="i386"
14572 MACOSX_DEFAULT_ARCH="ppc"
14575 { { echo "$as_me:$LINENO: error: Unexpected output of 'arch
' on OSX" >&5
14576 echo "$as_me: error: Unexpected output of 'arch
' on OSX" >&2;}
14577 { (exit 1); exit 1; }; }
14583 MACOSX_DEFAULT_ARCH="x86_64"
14586 MACOSX_DEFAULT_ARCH="ppc64"
14589 { { echo "$as_me:$LINENO: error: Unexpected output of 'arch
' on OSX" >&5
14590 echo "$as_me: error: Unexpected output of 'arch
' on OSX" >&2;}
14591 { (exit 1); exit 1; }; }
14595 #ARCH_RUN_32BIT="true"
14598 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}"
14599 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $
(PYTHONFRAMEWORKINSTALLDIR
)/Versions
/$
(VERSION
)/$
(PYTHONFRAMEWORK
)'
14600 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $
(VERSION
) -current_version $
(VERSION
)';;
14603 { echo "$as_me:$LINENO: checking for --enable-framework" >&5
14604 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; }
14605 if test "$enable_framework"
14607 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
14608 # -F. is needed to allow linking to the framework while
14609 # in the build location.
14611 cat >>confdefs.h <<\_ACEOF
14612 #define WITH_NEXT_FRAMEWORK 1
14615 { echo "$as_me:$LINENO: result: yes" >&5
14616 echo "${ECHO_T}yes" >&6; }
14617 if test $enable_shared = "yes"
14619 { { echo "$as_me:$LINENO: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead. See Mac/README." >&5
14620 echo "$as_me: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead. See Mac/README." >&2;}
14621 { (exit 1); exit 1; }; }
14624 { echo "$as_me:$LINENO: result: no" >&5
14625 echo "${ECHO_T}no" >&6; }
14628 { echo "$as_me:$LINENO: checking for dyld" >&5
14629 echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
14630 case $ac_sys_system/$ac_sys_release in
14633 cat >>confdefs.h <<\_ACEOF
14634 #define WITH_DYLD 1
14637 { echo "$as_me:$LINENO: result: always on for Darwin" >&5
14638 echo "${ECHO_T}always on for Darwin" >&6; }
14641 { echo "$as_me:$LINENO: result: no" >&5
14642 echo "${ECHO_T}no" >&6; }
14646 # Set info about shared libraries.
14652 # SO is the extension of shared libraries `(including the dot!)
14653 # -- usually .so, .sl on HP-UX, .dll on Cygwin
14654 { echo "$as_me:$LINENO: checking SO" >&5
14655 echo $ECHO_N "checking SO... $ECHO_C" >&6; }
14658 case $ac_sys_system in
14669 # this might also be a termcap variable, see #610332
14671 echo '====================================================================='
14673 echo '+ WARNING
: You have
set SO
in your environment.
+'
14674 echo '+ Do you really mean to change the extension
for shared libraries?
+'
14675 echo '+ Continuing
in 10 seconds to
let you to ponder.
+'
14677 echo '====================================================================='
14680 { echo "$as_me:$LINENO: result: $SO" >&5
14681 echo "${ECHO_T}$SO" >&6; }
14684 cat >>confdefs.h <<_ACEOF
14685 #define SHLIB_EXT "$SO"
14688 # LDSHARED is the ld *command* used to create shared library
14689 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
14690 # (Shared libraries in this instance are shared modules to be loaded into
14691 # Python, as opposed to building Python itself as a shared library.)
14692 { echo "$as_me:$LINENO: checking LDSHARED" >&5
14693 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
14694 if test -z "$LDSHARED"
14696 case $ac_sys_system/$ac_sys_release in
14698 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
14699 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
14702 BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
14703 LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
14705 IRIX/5*) LDSHARED="ld -shared";;
14706 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
14708 if test "$GCC" = "yes"
14709 then LDSHARED='$
(CC
) -shared'
14710 else LDSHARED='$
(CC
) -G';
14713 if test "$GCC" = "yes"
14714 then LDSHARED='$
(CC
) -shared'
14715 else LDSHARED='ld
-b';
14717 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
14719 LDSHARED='$
(CC
) $
(LDFLAGS
) -bundle'
14720 if test "$enable_framework" ; then
14721 # Link against the framework. All externals should be defined.
14722 BLDSHARED="$LDSHARED "'$
(PYTHONFRAMEWORKDIR
)/Versions
/$
(VERSION
)/$
(PYTHONFRAMEWORK
)'
14723 LDSHARED="$LDSHARED "'$
(PYTHONFRAMEWORKPREFIX
)/$
(PYTHONFRAMEWORKDIR
)/Versions
/$
(VERSION
)/$
(PYTHONFRAMEWORK
)'
14725 # No framework. Ignore undefined symbols, assuming they come from Python
14726 LDSHARED="$LDSHARED -undefined suppress"
14728 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
14729 LDSHARED='$
(CC
) $
(LDFLAGS
) -bundle'
14730 if test "$enable_framework" ; then
14731 # Link against the framework. All externals should be defined.
14732 BLDSHARED="$LDSHARED "'$
(PYTHONFRAMEWORKDIR
)/Versions
/$
(VERSION
)/$
(PYTHONFRAMEWORK
)'
14733 LDSHARED="$LDSHARED "'$
(PYTHONFRAMEWORKPREFIX
)/$
(PYTHONFRAMEWORKDIR
)/Versions
/$
(VERSION
)/$
(PYTHONFRAMEWORK
)'
14735 # No framework, use the Python app as bundle-loader
14736 BLDSHARED="$LDSHARED "'-bundle_loader $
(BUILDPYTHON
)'
14737 LDSHARED="$LDSHARED "'-bundle_loader $
(BINDIR
)/python$
(VERSION
)$
(EXE
)'
14740 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
14741 # This allows an extension to be used in any Python
14743 if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2
14745 if test "${enable_universalsdk}"; then
14746 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
14748 LDSHARED='$
(CC
) $
(LDFLAGS
) -bundle -undefined dynamic_lookup
'
14749 BLDSHARED="$LDSHARED"
14751 LDSHARED='$
(CC
) $
(LDFLAGS
) -bundle'
14752 if test "$enable_framework" ; then
14753 # Link against the framework. All externals should be defined.
14754 BLDSHARED="$LDSHARED "'$
(PYTHONFRAMEWORKDIR
)/Versions
/$
(VERSION
)/$
(PYTHONFRAMEWORK
)'
14755 LDSHARED="$LDSHARED "'$
(PYTHONFRAMEWORKPREFIX
)/$
(PYTHONFRAMEWORKDIR
)/Versions
/$
(VERSION
)/$
(PYTHONFRAMEWORK
)'
14757 # No framework, use the Python app as bundle-loader
14758 BLDSHARED="$LDSHARED "'-bundle_loader $
(BUILDPYTHON
)'
14759 LDSHARED="$LDSHARED "'-bundle_loader $
(BINDIR
)/python$
(VERSION
)$
(EXE
)'
14763 Linux*|GNU*|QNX*) LDSHARED='$
(CC
) -shared';;
14764 BSD/OS*/4*) LDSHARED="gcc -shared";;
14766 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
14768 LDSHARED="$CC -shared ${LDFLAGS}"
14770 LDSHARED="ld -Bshareable ${LDFLAGS}"
14773 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
14775 LDSHARED='$
(CC
) -shared $
(CCSHARED
) ${LDFLAGS}'
14778 [01].* | 2.[0-7] | 2.[0-7].*)
14779 LDSHARED="ld -Bshareable ${LDFLAGS}"
14782 LDSHARED='$
(CC
) -shared $
(CCSHARED
) ${LDFLAGS}'
14786 NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
14787 OpenUNIX*|UnixWare*)
14788 if test "$GCC" = "yes"
14789 then LDSHARED='$
(CC
) -shared'
14790 else LDSHARED='$
(CC
) -G'
14792 SCO_SV*) LDSHARED='$
(CC
) -Wl,-G,-Bexport';;
14793 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
14794 atheos*) LDSHARED="gcc -shared";;
14798 { echo "$as_me:$LINENO: result: $LDSHARED" >&5
14799 echo "${ECHO_T}$LDSHARED" >&6; }
14800 BLDSHARED=${BLDSHARED-$LDSHARED}
14801 # CCSHARED are the C *flags* used to create objects to go into a shared
14802 # library (module) -- this is only needed for a few systems
14803 { echo "$as_me:$LINENO: checking CCSHARED" >&5
14804 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
14805 if test -z "$CCSHARED"
14807 case $ac_sys_system/$ac_sys_release in
14808 SunOS*) if test "$GCC" = yes;
14809 then CCSHARED="-fPIC";
14810 elif test `uname -p` = sparc;
14811 then CCSHARED="-xcode=pic32";
14812 else CCSHARED="-Kpic";
14814 hp*|HP*) if test "$GCC" = yes;
14815 then CCSHARED="-fPIC";
14816 else CCSHARED="+z";
14818 Linux*|GNU*) CCSHARED="-fPIC";;
14819 BSD/OS*/4*) CCSHARED="-fpic";;
14820 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
14821 OpenUNIX*|UnixWare*)
14822 if test "$GCC" = "yes"
14823 then CCSHARED="-fPIC"
14824 else CCSHARED="-KPIC"
14827 if test "$GCC" = "yes"
14828 then CCSHARED="-fPIC"
14829 else CCSHARED="-Kpic -belf"
14831 IRIX*/6*) case $CC in
14832 *gcc*) CCSHARED="-shared";;
14835 atheos*) CCSHARED="-fPIC";;
14838 { echo "$as_me:$LINENO: result: $CCSHARED" >&5
14839 echo "${ECHO_T}$CCSHARED" >&6; }
14840 # LINKFORSHARED are the flags passed to the $(CC) command that links
14841 # the python executable -- this is only needed for a few systems
14842 { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
14843 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
14844 if test -z "$LINKFORSHARED"
14846 case $ac_sys_system/$ac_sys_release in
14847 AIX*) LINKFORSHARED='-Wl,-bE:Modules
/python.exp
-lld';;
14849 LINKFORSHARED="-Wl,-E -Wl,+s";;
14850 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
14851 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
14852 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
14853 # -u libsys_s pulls in all symbols in libsys
14855 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
14857 # not used by the core itself but which needs to be in the core so
14858 # that dynamically loaded extension modules have access to it.
14859 # -prebind is no longer used, because it actually seems to give a
14860 # slowdown in stead of a speedup, maybe due to the large number of
14861 # dynamic loads Python does.
14863 LINKFORSHARED="$extra_undefs"
14864 if test "$enable_framework"
14866 LINKFORSHARED="$LINKFORSHARED "'$
(PYTHONFRAMEWORKDIR
)/Versions
/$
(VERSION
)/$
(PYTHONFRAMEWORK
)'
14868 LINKFORSHARED="$LINKFORSHARED";;
14869 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
14870 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
14871 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
14872 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
14873 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
14875 LINKFORSHARED="-Wl,--export-dynamic"
14877 SunOS/5*) case $CC in
14879 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
14881 LINKFORSHARED="-Xlinker --export-dynamic"
14885 if test $enable_shared = "no"
14887 LINKFORSHARED='-Wl,--out-implib=$
(LDLIBRARY
)'
14890 # -Wl,-E causes the symbols to be added to the dynamic
14891 # symbol table so that they can be found when a module
14892 # is loaded. -N 2048K causes the stack size to be set
14893 # to 2048 kilobytes so that the stack doesn't overflow
14894 # when running test_compile.py.
14895 LINKFORSHARED
='-Wl,-E -N 2048K';;
14898 { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
14899 echo "${ECHO_T}$LINKFORSHARED" >&6; }
14903 { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
14904 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
14905 if test ! "$LIBRARY" = "$LDLIBRARY"
14907 case $ac_sys_system in
14909 # Cygwin needs CCSHARED when building extension DLLs
14910 # but not when building the interpreter DLL.
14911 CFLAGSFORSHARED
='';;
14913 CFLAGSFORSHARED
='$(CCSHARED)'
14916 { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
14917 echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
14919 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
14920 # library (with --enable-shared).
14921 # For platforms on which shared libraries are not allowed to have unresolved
14922 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
14923 # if it is not required, since it creates a dependency of the shared library
14924 # to LIBS. This, in turn, means that applications linking the shared libpython
14925 # don't need to link LIBS explicitly. The default should be only changed
14926 # on systems where this approach causes problems.
14928 { echo "$as_me:$LINENO: checking SHLIBS" >&5
14929 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
14930 case "$ac_sys_system" in
14934 { echo "$as_me:$LINENO: result: $SHLIBS" >&5
14935 echo "${ECHO_T}$SHLIBS" >&6; }
14938 # checks for libraries
14940 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14941 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
14942 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14943 echo $ECHO_N "(cached) $ECHO_C" >&6
14945 ac_check_lib_save_LIBS
=$LIBS
14947 cat >conftest.
$ac_ext <<_ACEOF
14950 cat confdefs.h
>>conftest.
$ac_ext
14951 cat >>conftest.
$ac_ext <<_ACEOF
14952 /* end confdefs.h. */
14954 /* Override any GCC internal prototype to avoid an error.
14955 Use char because int might match the return type of a GCC
14956 builtin and then its argument prototype would still apply. */
14969 rm -f conftest.
$ac_objext conftest
$ac_exeext
14970 if { (ac_try
="$ac_link"
14971 case "(($ac_try" in
14972 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14973 *) ac_try_echo=$ac_try;;
14975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14976 (eval "$ac_link") 2>conftest.er1
14978 grep -v '^ *+' conftest.er1 >conftest.err
14980 cat conftest.err >&5
14981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14982 (exit $ac_status); } && {
14983 test -z "$ac_c_werror_flag" ||
14984 test ! -s conftest.err
14985 } && test -s conftest$ac_exeext &&
14986 $as_test_x conftest$ac_exeext; then
14987 ac_cv_lib_dl_dlopen=yes
14989 echo "$as_me: failed program was:" >&5
14990 sed 's/^/| /' conftest.$ac_ext >&5
14992 ac_cv_lib_dl_dlopen=no
14995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14996 conftest$ac_exeext conftest.$ac_ext
14997 LIBS=$ac_check_lib_save_LIBS
14999 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15000 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
15001 if test $ac_cv_lib_dl_dlopen = yes; then
15002 cat >>confdefs.h <<_ACEOF
15003 #define HAVE_LIBDL 1
15009 # Dynamic linking for SunOS/Solaris and SYSV
15011 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15012 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
15013 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15014 echo $ECHO_N "(cached) $ECHO_C" >&6
15016 ac_check_lib_save_LIBS=$LIBS
15018 cat >conftest.$ac_ext <<_ACEOF
15021 cat confdefs.h >>conftest.$ac_ext
15022 cat >>conftest.$ac_ext <<_ACEOF
15023 /* end confdefs.h. */
15025 /* Override any GCC internal prototype to avoid an error.
15026 Use char because int might match the return type of a GCC
15027 builtin and then its argument prototype would still apply. */
15035 return shl_load ();
15040 rm -f conftest.$ac_objext conftest$ac_exeext
15041 if { (ac_try="$ac_link"
15042 case "(($ac_try" in
15043 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15044 *) ac_try_echo
=$ac_try;;
15046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15047 (eval "$ac_link") 2>conftest.er1
15049 grep -v '^ *+' conftest.er1
>conftest.err
15051 cat conftest.err
>&5
15052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053 (exit $ac_status); } && {
15054 test -z "$ac_c_werror_flag" ||
15055 test ! -s conftest.err
15056 } && test -s conftest
$ac_exeext &&
15057 $as_test_x conftest
$ac_exeext; then
15058 ac_cv_lib_dld_shl_load
=yes
15060 echo "$as_me: failed program was:" >&5
15061 sed 's/^/| /' conftest.
$ac_ext >&5
15063 ac_cv_lib_dld_shl_load
=no
15066 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15067 conftest
$ac_exeext conftest.
$ac_ext
15068 LIBS
=$ac_check_lib_save_LIBS
15070 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
15071 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
15072 if test $ac_cv_lib_dld_shl_load = yes; then
15073 cat >>confdefs.h
<<_ACEOF
15074 #define HAVE_LIBDLD 1
15080 # Dynamic linking for HP-UX
15082 # only check for sem_init if thread support is requested
15083 if test "$with_threads" = "yes" -o -z "$with_threads"; then
15084 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
15085 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
15086 if test "${ac_cv_search_sem_init+set}" = set; then
15087 echo $ECHO_N "(cached) $ECHO_C" >&6
15089 ac_func_search_save_LIBS
=$LIBS
15090 cat >conftest.
$ac_ext <<_ACEOF
15093 cat confdefs.h
>>conftest.
$ac_ext
15094 cat >>conftest.
$ac_ext <<_ACEOF
15095 /* end confdefs.h. */
15097 /* Override any GCC internal prototype to avoid an error.
15098 Use char because int might match the return type of a GCC
15099 builtin and then its argument prototype would still apply. */
15107 return sem_init ();
15112 for ac_lib
in '' pthread rt posix4
; do
15113 if test -z "$ac_lib"; then
15114 ac_res
="none required"
15117 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
15119 rm -f conftest.
$ac_objext conftest
$ac_exeext
15120 if { (ac_try
="$ac_link"
15121 case "(($ac_try" in
15122 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15123 *) ac_try_echo=$ac_try;;
15125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15126 (eval "$ac_link") 2>conftest.er1
15128 grep -v '^ *+' conftest.er1 >conftest.err
15130 cat conftest.err >&5
15131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15132 (exit $ac_status); } && {
15133 test -z "$ac_c_werror_flag" ||
15134 test ! -s conftest.err
15135 } && test -s conftest$ac_exeext &&
15136 $as_test_x conftest$ac_exeext; then
15137 ac_cv_search_sem_init=$ac_res
15139 echo "$as_me: failed program was:" >&5
15140 sed 's/^/| /' conftest.$ac_ext >&5
15145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15147 if test "${ac_cv_search_sem_init+set}" = set; then
15151 if test "${ac_cv_search_sem_init+set}" = set; then
15154 ac_cv_search_sem_init=no
15156 rm conftest.$ac_ext
15157 LIBS=$ac_func_search_save_LIBS
15159 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
15160 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
15161 ac_res=$ac_cv_search_sem_init
15162 if test "$ac_res" != no; then
15163 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15166 # 'Real Time' functions on Solaris
15167 # posix4 on Solaris 2.6
15168 # pthread (first!) on Linux
15171 # check if we need libintl for locale functions
15172 { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
15173 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
15174 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
15175 echo $ECHO_N "(cached) $ECHO_C" >&6
15177 ac_check_lib_save_LIBS=$LIBS
15178 LIBS="-lintl $LIBS"
15179 cat >conftest.$ac_ext <<_ACEOF
15182 cat confdefs.h >>conftest.$ac_ext
15183 cat >>conftest.$ac_ext <<_ACEOF
15184 /* end confdefs.h. */
15186 /* Override any GCC internal prototype to avoid an error.
15187 Use char because int might match the return type of a GCC
15188 builtin and then its argument prototype would still apply. */
15192 char textdomain ();
15196 return textdomain ();
15201 rm -f conftest.$ac_objext conftest$ac_exeext
15202 if { (ac_try="$ac_link"
15203 case "(($ac_try" in
15204 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15205 *) ac_try_echo
=$ac_try;;
15207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15208 (eval "$ac_link") 2>conftest.er1
15210 grep -v '^ *+' conftest.er1
>conftest.err
15212 cat conftest.err
>&5
15213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214 (exit $ac_status); } && {
15215 test -z "$ac_c_werror_flag" ||
15216 test ! -s conftest.err
15217 } && test -s conftest
$ac_exeext &&
15218 $as_test_x conftest
$ac_exeext; then
15219 ac_cv_lib_intl_textdomain
=yes
15221 echo "$as_me: failed program was:" >&5
15222 sed 's/^/| /' conftest.
$ac_ext >&5
15224 ac_cv_lib_intl_textdomain
=no
15227 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15228 conftest
$ac_exeext conftest.
$ac_ext
15229 LIBS
=$ac_check_lib_save_LIBS
15231 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
15232 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
15233 if test $ac_cv_lib_intl_textdomain = yes; then
15235 cat >>confdefs.h
<<\_ACEOF
15236 #define WITH_LIBINTL 1
15242 # checks for system dependent C++ extensions support
15243 case "$ac_sys_system" in
15244 AIX
*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
15245 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
15246 cat >conftest.
$ac_ext <<_ACEOF
15249 cat confdefs.h
>>conftest.
$ac_ext
15250 cat >>conftest.
$ac_ext <<_ACEOF
15251 /* end confdefs.h. */
15252 #include "/usr/lpp/xlC/include/load.h"
15256 loadAndInit("", 0, "")
15261 rm -f conftest.
$ac_objext conftest
$ac_exeext
15262 if { (ac_try
="$ac_link"
15263 case "(($ac_try" in
15264 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15265 *) ac_try_echo=$ac_try;;
15267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15268 (eval "$ac_link") 2>conftest.er1
15270 grep -v '^ *+' conftest.er1 >conftest.err
15272 cat conftest.err >&5
15273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274 (exit $ac_status); } && {
15275 test -z "$ac_c_werror_flag" ||
15276 test ! -s conftest.err
15277 } && test -s conftest$ac_exeext &&
15278 $as_test_x conftest$ac_exeext; then
15280 cat >>confdefs.h <<\_ACEOF
15281 #define AIX_GENUINE_CPLUSPLUS 1
15284 { echo "$as_me:$LINENO: result: yes" >&5
15285 echo "${ECHO_T}yes" >&6; }
15287 echo "$as_me: failed program was:" >&5
15288 sed 's/^/| /' conftest.$ac_ext >&5
15290 { echo "$as_me:$LINENO: result: no" >&5
15291 echo "${ECHO_T}no" >&6; }
15294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15295 conftest$ac_exeext conftest.$ac_ext;;
15299 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
15300 # BeOS' sockets are stashed in libnet.
15301 { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
15302 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
15303 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
15304 echo $ECHO_N "(cached) $ECHO_C" >&6
15306 ac_check_lib_save_LIBS=$LIBS
15308 cat >conftest.$ac_ext <<_ACEOF
15311 cat confdefs.h >>conftest.$ac_ext
15312 cat >>conftest.$ac_ext <<_ACEOF
15313 /* end confdefs.h. */
15315 /* Override any GCC internal prototype to avoid an error.
15316 Use char because int might match the return type of a GCC
15317 builtin and then its argument prototype would still apply. */
15330 rm -f conftest.$ac_objext conftest$ac_exeext
15331 if { (ac_try="$ac_link"
15332 case "(($ac_try" in
15333 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15334 *) ac_try_echo
=$ac_try;;
15336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15337 (eval "$ac_link") 2>conftest.er1
15339 grep -v '^ *+' conftest.er1
>conftest.err
15341 cat conftest.err
>&5
15342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343 (exit $ac_status); } && {
15344 test -z "$ac_c_werror_flag" ||
15345 test ! -s conftest.err
15346 } && test -s conftest
$ac_exeext &&
15347 $as_test_x conftest
$ac_exeext; then
15348 ac_cv_lib_nsl_t_open
=yes
15350 echo "$as_me: failed program was:" >&5
15351 sed 's/^/| /' conftest.
$ac_ext >&5
15353 ac_cv_lib_nsl_t_open
=no
15356 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15357 conftest
$ac_exeext conftest.
$ac_ext
15358 LIBS
=$ac_check_lib_save_LIBS
15360 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
15361 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
15362 if test $ac_cv_lib_nsl_t_open = yes; then
15366 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15367 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
15368 if test "${ac_cv_lib_socket_socket+set}" = set; then
15369 echo $ECHO_N "(cached) $ECHO_C" >&6
15371 ac_check_lib_save_LIBS
=$LIBS
15372 LIBS
="-lsocket $LIBS $LIBS"
15373 cat >conftest.
$ac_ext <<_ACEOF
15376 cat confdefs.h
>>conftest.
$ac_ext
15377 cat >>conftest.
$ac_ext <<_ACEOF
15378 /* end confdefs.h. */
15380 /* Override any GCC internal prototype to avoid an error.
15381 Use char because int might match the return type of a GCC
15382 builtin and then its argument prototype would still apply. */
15395 rm -f conftest.
$ac_objext conftest
$ac_exeext
15396 if { (ac_try
="$ac_link"
15397 case "(($ac_try" in
15398 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15399 *) ac_try_echo=$ac_try;;
15401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15402 (eval "$ac_link") 2>conftest.er1
15404 grep -v '^ *+' conftest.er1 >conftest.err
15406 cat conftest.err >&5
15407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15408 (exit $ac_status); } && {
15409 test -z "$ac_c_werror_flag" ||
15410 test ! -s conftest.err
15411 } && test -s conftest$ac_exeext &&
15412 $as_test_x conftest$ac_exeext; then
15413 ac_cv_lib_socket_socket=yes
15415 echo "$as_me: failed program was:" >&5
15416 sed 's/^/| /' conftest.$ac_ext >&5
15418 ac_cv_lib_socket_socket=no
15421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15422 conftest$ac_exeext conftest.$ac_ext
15423 LIBS=$ac_check_lib_save_LIBS
15425 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15426 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
15427 if test $ac_cv_lib_socket_socket = yes; then
15428 LIBS="-lsocket $LIBS"
15432 case "$ac_sys_system" in
15434 { echo "$as_me:$LINENO: checking for socket in -lnet" >&5
15435 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6; }
15436 if test "${ac_cv_lib_net_socket+set}" = set; then
15437 echo $ECHO_N "(cached) $ECHO_C" >&6
15439 ac_check_lib_save_LIBS=$LIBS
15440 LIBS="-lnet $LIBS $LIBS"
15441 cat >conftest.$ac_ext <<_ACEOF
15444 cat confdefs.h >>conftest.$ac_ext
15445 cat >>conftest.$ac_ext <<_ACEOF
15446 /* end confdefs.h. */
15448 /* Override any GCC internal prototype to avoid an error.
15449 Use char because int might match the return type of a GCC
15450 builtin and then its argument prototype would still apply. */
15463 rm -f conftest.$ac_objext conftest$ac_exeext
15464 if { (ac_try="$ac_link"
15465 case "(($ac_try" in
15466 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15467 *) ac_try_echo
=$ac_try;;
15469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15470 (eval "$ac_link") 2>conftest.er1
15472 grep -v '^ *+' conftest.er1
>conftest.err
15474 cat conftest.err
>&5
15475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15476 (exit $ac_status); } && {
15477 test -z "$ac_c_werror_flag" ||
15478 test ! -s conftest.err
15479 } && test -s conftest
$ac_exeext &&
15480 $as_test_x conftest
$ac_exeext; then
15481 ac_cv_lib_net_socket
=yes
15483 echo "$as_me: failed program was:" >&5
15484 sed 's/^/| /' conftest.
$ac_ext >&5
15486 ac_cv_lib_net_socket
=no
15489 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15490 conftest
$ac_exeext conftest.
$ac_ext
15491 LIBS
=$ac_check_lib_save_LIBS
15493 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
15494 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6; }
15495 if test $ac_cv_lib_net_socket = yes; then
15502 { echo "$as_me:$LINENO: checking for --with-libs" >&5
15503 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
15505 # Check whether --with-libs was given.
15506 if test "${with_libs+set}" = set; then
15507 withval
=$with_libs;
15508 { echo "$as_me:$LINENO: result: $withval" >&5
15509 echo "${ECHO_T}$withval" >&6; }
15510 LIBS
="$withval $LIBS"
15513 { echo "$as_me:$LINENO: result: no" >&5
15514 echo "${ECHO_T}no" >&6; }
15518 # Check for use of the system expat library
15519 { echo "$as_me:$LINENO: checking for --with-system-expat" >&5
15520 echo $ECHO_N "checking for --with-system-expat... $ECHO_C" >&6; }
15522 # Check whether --with-system_expat was given.
15523 if test "${with_system_expat+set}" = set; then
15524 withval
=$with_system_expat;
15528 { echo "$as_me:$LINENO: result: $with_system_expat" >&5
15529 echo "${ECHO_T}$with_system_expat" >&6; }
15531 # Check for use of the system libffi library
15532 { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
15533 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
15535 # Check whether --with-system_ffi was given.
15536 if test "${with_system_ffi+set}" = set; then
15537 withval
=$with_system_ffi;
15541 { echo "$as_me:$LINENO: result: $with_system_ffi" >&5
15542 echo "${ECHO_T}$with_system_ffi" >&6; }
15544 # Check for --with-dbmliborder
15545 { echo "$as_me:$LINENO: checking for --with-dbmliborder" >&5
15546 echo $ECHO_N "checking for --with-dbmliborder... $ECHO_C" >&6; }
15548 # Check whether --with-dbmliborder was given.
15549 if test "${with_dbmliborder+set}" = set; then
15550 withval
=$with_dbmliborder;
15551 if test x
$with_dbmliborder = xyes
15553 { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
15554 echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
15555 { (exit 1); exit 1; }; }
15557 for db
in `echo $with_dbmliborder | sed 's/:/ /g'`; do
15558 if test x
$db != xndbm
&& test x
$db != xgdbm
&& test x
$db != xbdb
15560 { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
15561 echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
15562 { (exit 1); exit 1; }; }
15568 { echo "$as_me:$LINENO: result: $with_dbmliborder" >&5
15569 echo "${ECHO_T}$with_dbmliborder" >&6; }
15571 # Determine if signalmodule should be used.
15574 { echo "$as_me:$LINENO: checking for --with-signal-module" >&5
15575 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; }
15577 # Check whether --with-signal-module was given.
15578 if test "${with_signal_module+set}" = set; then
15579 withval
=$with_signal_module;
15583 if test -z "$with_signal_module"
15584 then with_signal_module
="yes"
15586 { echo "$as_me:$LINENO: result: $with_signal_module" >&5
15587 echo "${ECHO_T}$with_signal_module" >&6; }
15589 if test "${with_signal_module}" = "yes"; then
15590 USE_SIGNAL_MODULE
=""
15593 USE_SIGNAL_MODULE
="#"
15594 SIGNAL_OBJS
="Parser/intrcheck.o Python/sigcheck.o"
15597 # This is used to generate Setup.config
15599 USE_THREAD_MODULE
=""
15601 { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
15602 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; }
15605 # Check whether --with-dec-threads was given.
15606 if test "${with_dec_threads+set}" = set; then
15607 withval
=$with_dec_threads;
15608 { echo "$as_me:$LINENO: result: $withval" >&5
15609 echo "${ECHO_T}$withval" >&6; }
15611 if test "${with_thread+set}" != set; then
15612 with_thread
="$withval";
15615 { echo "$as_me:$LINENO: result: no" >&5
15616 echo "${ECHO_T}no" >&6; }
15620 # Templates for things AC_DEFINEd more than once.
15621 # For a single AC_DEFINE, no template is needed.
15629 { echo "$as_me:$LINENO: checking for --with-threads" >&5
15630 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; }
15632 # Check whether --with-threads was given.
15633 if test "${with_threads+set}" = set; then
15634 withval
=$with_threads;
15638 # --with-thread is deprecated, but check for it anyway
15640 # Check whether --with-thread was given.
15641 if test "${with_thread+set}" = set; then
15642 withval
=$with_thread; with_threads
=$with_thread
15646 if test -z "$with_threads"
15647 then with_threads
="yes"
15649 { echo "$as_me:$LINENO: result: $with_threads" >&5
15650 echo "${ECHO_T}$with_threads" >&6; }
15653 if test "$with_threads" = "no"
15655 USE_THREAD_MODULE
="#"
15656 elif test "$ac_cv_pthread_is_default" = yes
15658 cat >>confdefs.h
<<\_ACEOF
15659 #define WITH_THREAD 1
15662 # Defining _REENTRANT on system with POSIX threads should not hurt.
15663 cat >>confdefs.h
<<\_ACEOF
15664 #define _REENTRANT 1
15668 THREADOBJ
="Python/thread.o"
15669 elif test "$ac_cv_kpthread" = "yes"
15672 if test "$ac_cv_cxx_thread" = "yes"; then
15673 CXX
="$CXX -Kpthread"
15675 cat >>confdefs.h
<<\_ACEOF
15676 #define WITH_THREAD 1
15680 THREADOBJ
="Python/thread.o"
15681 elif test "$ac_cv_kthread" = "yes"
15684 if test "$ac_cv_cxx_thread" = "yes"; then
15685 CXX
="$CXX -Kthread"
15687 cat >>confdefs.h
<<\_ACEOF
15688 #define WITH_THREAD 1
15692 THREADOBJ
="Python/thread.o"
15693 elif test "$ac_cv_pthread" = "yes"
15696 if test "$ac_cv_cxx_thread" = "yes"; then
15697 CXX
="$CXX -pthread"
15699 cat >>confdefs.h
<<\_ACEOF
15700 #define WITH_THREAD 1
15704 THREADOBJ
="Python/thread.o"
15706 if test ! -z "$with_threads" -a -d "$with_threads"
15707 then LDFLAGS
="$LDFLAGS -L$with_threads"
15709 if test ! -z "$withval" -a -d "$withval"
15710 then LDFLAGS
="$LDFLAGS -L$withval"
15713 # According to the POSIX spec, a pthreads implementation must
15714 # define _POSIX_THREADS in unistd.h. Some apparently don't
15715 # (e.g. gnu pth with pthread emulation)
15716 { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
15717 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; }
15718 cat >conftest.
$ac_ext <<_ACEOF
15721 cat confdefs.h
>>conftest.
$ac_ext
15722 cat >>conftest.
$ac_ext <<_ACEOF
15723 /* end confdefs.h. */
15725 #include <unistd.h>
15726 #ifdef _POSIX_THREADS
15731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15732 $EGREP "yes" >/dev
/null
2>&1; then
15733 unistd_defines_pthreads
=yes
15735 unistd_defines_pthreads
=no
15739 { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
15740 echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
15742 cat >>confdefs.h
<<\_ACEOF
15743 #define _REENTRANT 1
15746 if test "${ac_cv_header_cthreads_h+set}" = set; then
15747 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
15748 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
15749 if test "${ac_cv_header_cthreads_h+set}" = set; then
15750 echo $ECHO_N "(cached) $ECHO_C" >&6
15752 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
15753 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
15755 # Is the header compilable?
15756 { echo "$as_me:$LINENO: checking cthreads.h usability" >&5
15757 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; }
15758 cat >conftest.
$ac_ext <<_ACEOF
15761 cat confdefs.h
>>conftest.
$ac_ext
15762 cat >>conftest.
$ac_ext <<_ACEOF
15763 /* end confdefs.h. */
15764 $ac_includes_default
15765 #include <cthreads.h>
15767 rm -f conftest.
$ac_objext
15768 if { (ac_try
="$ac_compile"
15769 case "(($ac_try" in
15770 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15771 *) ac_try_echo=$ac_try;;
15773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15774 (eval "$ac_compile") 2>conftest.er1
15776 grep -v '^ *+' conftest.er1 >conftest.err
15778 cat conftest.err >&5
15779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15780 (exit $ac_status); } && {
15781 test -z "$ac_c_werror_flag" ||
15782 test ! -s conftest.err
15783 } && test -s conftest.$ac_objext; then
15784 ac_header_compiler=yes
15786 echo "$as_me: failed program was:" >&5
15787 sed 's/^/| /' conftest.$ac_ext >&5
15789 ac_header_compiler=no
15792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15793 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15794 echo "${ECHO_T}$ac_header_compiler" >&6; }
15796 # Is the header present?
15797 { echo "$as_me:$LINENO: checking cthreads.h presence" >&5
15798 echo $ECHO_N "checking cthreads.h presence... $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 <cthreads.h>
15807 if { (ac_try="$ac_cpp conftest.$ac_ext"
15808 case "(($ac_try" in
15809 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15810 *) ac_try_echo
=$ac_try;;
15812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15813 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15815 grep -v '^ *+' conftest.er1
>conftest.err
15817 cat conftest.err
>&5
15818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15819 (exit $ac_status); } >/dev
/null
&& {
15820 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15821 test ! -s conftest.err
15823 ac_header_preproc
=yes
15825 echo "$as_me: failed program was:" >&5
15826 sed 's/^/| /' conftest.
$ac_ext >&5
15828 ac_header_preproc
=no
15831 rm -f conftest.err conftest.
$ac_ext
15832 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15833 echo "${ECHO_T}$ac_header_preproc" >&6; }
15835 # So? What about this header?
15836 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15838 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
15839 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15840 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
15841 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
15842 ac_header_preproc
=yes
15845 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
15846 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
15847 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
15848 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
15849 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
15850 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
15851 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
15852 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
15853 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
15854 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
15855 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
15856 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
15858 ## -------------------------------------- ##
15859 ## Report this to http://bugs.python.org/ ##
15860 ## -------------------------------------- ##
15862 ) |
sed "s/^/$as_me: WARNING: /" >&2
15865 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
15866 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
15867 if test "${ac_cv_header_cthreads_h+set}" = set; then
15868 echo $ECHO_N "(cached) $ECHO_C" >&6
15870 ac_cv_header_cthreads_h
=$ac_header_preproc
15872 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
15873 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
15876 if test $ac_cv_header_cthreads_h = yes; then
15877 cat >>confdefs.h
<<\_ACEOF
15878 #define WITH_THREAD 1
15881 cat >>confdefs.h
<<\_ACEOF
15882 #define C_THREADS 1
15886 cat >>confdefs.h
<<\_ACEOF
15887 #define HURD_C_THREADS 1
15890 LIBS
="$LIBS -lthreads"
15891 THREADOBJ
="Python/thread.o"
15894 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
15895 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
15896 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
15897 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
15898 echo $ECHO_N "(cached) $ECHO_C" >&6
15900 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
15901 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
15903 # Is the header compilable?
15904 { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
15905 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; }
15906 cat >conftest.
$ac_ext <<_ACEOF
15909 cat confdefs.h
>>conftest.
$ac_ext
15910 cat >>conftest.
$ac_ext <<_ACEOF
15911 /* end confdefs.h. */
15912 $ac_includes_default
15913 #include <mach/cthreads.h>
15915 rm -f conftest.
$ac_objext
15916 if { (ac_try
="$ac_compile"
15917 case "(($ac_try" in
15918 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15919 *) ac_try_echo=$ac_try;;
15921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15922 (eval "$ac_compile") 2>conftest.er1
15924 grep -v '^ *+' conftest.er1 >conftest.err
15926 cat conftest.err >&5
15927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15928 (exit $ac_status); } && {
15929 test -z "$ac_c_werror_flag" ||
15930 test ! -s conftest.err
15931 } && test -s conftest.$ac_objext; then
15932 ac_header_compiler=yes
15934 echo "$as_me: failed program was:" >&5
15935 sed 's/^/| /' conftest.$ac_ext >&5
15937 ac_header_compiler=no
15940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15941 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15942 echo "${ECHO_T}$ac_header_compiler" >&6; }
15944 # Is the header present?
15945 { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
15946 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; }
15947 cat >conftest.$ac_ext <<_ACEOF
15950 cat confdefs.h >>conftest.$ac_ext
15951 cat >>conftest.$ac_ext <<_ACEOF
15952 /* end confdefs.h. */
15953 #include <mach/cthreads.h>
15955 if { (ac_try="$ac_cpp conftest.$ac_ext"
15956 case "(($ac_try" in
15957 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15958 *) ac_try_echo
=$ac_try;;
15960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15961 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15963 grep -v '^ *+' conftest.er1
>conftest.err
15965 cat conftest.err
>&5
15966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967 (exit $ac_status); } >/dev
/null
&& {
15968 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15969 test ! -s conftest.err
15971 ac_header_preproc
=yes
15973 echo "$as_me: failed program was:" >&5
15974 sed 's/^/| /' conftest.
$ac_ext >&5
15976 ac_header_preproc
=no
15979 rm -f conftest.err conftest.
$ac_ext
15980 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15981 echo "${ECHO_T}$ac_header_preproc" >&6; }
15983 # So? What about this header?
15984 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15986 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
15987 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15988 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
15989 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
15990 ac_header_preproc
=yes
15993 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
15994 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
15995 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
15996 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
15997 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
15998 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
15999 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
16000 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
16001 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
16002 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
16003 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
16004 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
16006 ## -------------------------------------- ##
16007 ## Report this to http://bugs.python.org/ ##
16008 ## -------------------------------------- ##
16010 ) |
sed "s/^/$as_me: WARNING: /" >&2
16013 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
16014 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
16015 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
16016 echo $ECHO_N "(cached) $ECHO_C" >&6
16018 ac_cv_header_mach_cthreads_h
=$ac_header_preproc
16020 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
16021 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
16024 if test $ac_cv_header_mach_cthreads_h = yes; then
16025 cat >>confdefs.h
<<\_ACEOF
16026 #define WITH_THREAD 1
16029 cat >>confdefs.h
<<\_ACEOF
16030 #define C_THREADS 1
16034 cat >>confdefs.h
<<\_ACEOF
16035 #define MACH_C_THREADS 1
16038 THREADOBJ
="Python/thread.o"
16041 { echo "$as_me:$LINENO: checking for --with-pth" >&5
16042 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; }
16044 # Check whether --with-pth was given.
16045 if test "${with_pth+set}" = set; then
16046 withval
=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5
16047 echo "${ECHO_T}$withval" >&6; }
16048 cat >>confdefs.h
<<\_ACEOF
16049 #define WITH_THREAD 1
16053 cat >>confdefs.h
<<\_ACEOF
16058 THREADOBJ
="Python/thread.o"
16060 { echo "$as_me:$LINENO: result: no" >&5
16061 echo "${ECHO_T}no" >&6; }
16063 # Just looking for pthread_create in libpthread is not enough:
16064 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
16065 # So we really have to include pthread.h, and then link.
16067 LIBS
="$LIBS -lpthread"
16068 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
16069 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
16070 cat >conftest.
$ac_ext <<_ACEOF
16073 cat confdefs.h
>>conftest.
$ac_ext
16074 cat >>conftest.
$ac_ext <<_ACEOF
16075 /* end confdefs.h. */
16076 #include <pthread.h>
16078 void * start_routine (void *arg) { exit (0); }
16083 pthread_create (NULL, NULL, start_routine, NULL)
16088 rm -f conftest.
$ac_objext conftest
$ac_exeext
16089 if { (ac_try
="$ac_link"
16090 case "(($ac_try" in
16091 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16092 *) ac_try_echo=$ac_try;;
16094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16095 (eval "$ac_link") 2>conftest.er1
16097 grep -v '^ *+' conftest.er1 >conftest.err
16099 cat conftest.err >&5
16100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16101 (exit $ac_status); } && {
16102 test -z "$ac_c_werror_flag" ||
16103 test ! -s conftest.err
16104 } && test -s conftest$ac_exeext &&
16105 $as_test_x conftest$ac_exeext; then
16107 { echo "$as_me:$LINENO: result: yes" >&5
16108 echo "${ECHO_T}yes" >&6; }
16109 cat >>confdefs.h <<\_ACEOF
16110 #define WITH_THREAD 1
16114 THREADOBJ="Python/thread.o"
16116 echo "$as_me: failed program was:" >&5
16117 sed 's/^/| /' conftest.$ac_ext >&5
16121 { echo "$as_me:$LINENO: checking for pthread_detach" >&5
16122 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; }
16123 if test "${ac_cv_func_pthread_detach+set}" = set; then
16124 echo $ECHO_N "(cached) $ECHO_C" >&6
16126 cat >conftest.$ac_ext <<_ACEOF
16129 cat confdefs.h >>conftest.$ac_ext
16130 cat >>conftest.$ac_ext <<_ACEOF
16131 /* end confdefs.h. */
16132 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
16133 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16134 #define pthread_detach innocuous_pthread_detach
16136 /* System header to define __stub macros and hopefully few prototypes,
16137 which can conflict with char pthread_detach (); below.
16138 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16139 <limits.h> exists even on freestanding compilers. */
16142 # include <limits.h>
16144 # include <assert.h>
16147 #undef pthread_detach
16149 /* Override any GCC internal prototype to avoid an error.
16150 Use char because int might match the return type of a GCC
16151 builtin and then its argument prototype would still apply. */
16155 char pthread_detach ();
16156 /* The GNU C library defines this for functions which it implements
16157 to always fail with ENOSYS. Some functions are actually named
16158 something starting with __ and the normal name is an alias. */
16159 #if defined __stub_pthread_detach || defined __stub___pthread_detach
16166 return pthread_detach ();
16171 rm -f conftest.$ac_objext conftest$ac_exeext
16172 if { (ac_try="$ac_link"
16173 case "(($ac_try" in
16174 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16175 *) ac_try_echo
=$ac_try;;
16177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16178 (eval "$ac_link") 2>conftest.er1
16180 grep -v '^ *+' conftest.er1
>conftest.err
16182 cat conftest.err
>&5
16183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184 (exit $ac_status); } && {
16185 test -z "$ac_c_werror_flag" ||
16186 test ! -s conftest.err
16187 } && test -s conftest
$ac_exeext &&
16188 $as_test_x conftest
$ac_exeext; then
16189 ac_cv_func_pthread_detach
=yes
16191 echo "$as_me: failed program was:" >&5
16192 sed 's/^/| /' conftest.
$ac_ext >&5
16194 ac_cv_func_pthread_detach
=no
16197 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16198 conftest
$ac_exeext conftest.
$ac_ext
16200 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
16201 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; }
16202 if test $ac_cv_func_pthread_detach = yes; then
16203 cat >>confdefs.h
<<\_ACEOF
16204 #define WITH_THREAD 1
16208 THREADOBJ
="Python/thread.o"
16211 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
16212 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
16213 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
16214 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
16215 echo $ECHO_N "(cached) $ECHO_C" >&6
16217 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
16218 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
16220 # Is the header compilable?
16221 { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
16222 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; }
16223 cat >conftest.
$ac_ext <<_ACEOF
16226 cat confdefs.h
>>conftest.
$ac_ext
16227 cat >>conftest.
$ac_ext <<_ACEOF
16228 /* end confdefs.h. */
16229 $ac_includes_default
16230 #include <atheos/threads.h>
16232 rm -f conftest.
$ac_objext
16233 if { (ac_try
="$ac_compile"
16234 case "(($ac_try" in
16235 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16236 *) ac_try_echo=$ac_try;;
16238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16239 (eval "$ac_compile") 2>conftest.er1
16241 grep -v '^ *+' conftest.er1 >conftest.err
16243 cat conftest.err >&5
16244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16245 (exit $ac_status); } && {
16246 test -z "$ac_c_werror_flag" ||
16247 test ! -s conftest.err
16248 } && test -s conftest.$ac_objext; then
16249 ac_header_compiler=yes
16251 echo "$as_me: failed program was:" >&5
16252 sed 's/^/| /' conftest.$ac_ext >&5
16254 ac_header_compiler=no
16257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16258 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16259 echo "${ECHO_T}$ac_header_compiler" >&6; }
16261 # Is the header present?
16262 { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
16263 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; }
16264 cat >conftest.$ac_ext <<_ACEOF
16267 cat confdefs.h >>conftest.$ac_ext
16268 cat >>conftest.$ac_ext <<_ACEOF
16269 /* end confdefs.h. */
16270 #include <atheos/threads.h>
16272 if { (ac_try="$ac_cpp conftest.$ac_ext"
16273 case "(($ac_try" in
16274 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16275 *) ac_try_echo
=$ac_try;;
16277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16278 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16280 grep -v '^ *+' conftest.er1
>conftest.err
16282 cat conftest.err
>&5
16283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16284 (exit $ac_status); } >/dev
/null
&& {
16285 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16286 test ! -s conftest.err
16288 ac_header_preproc
=yes
16290 echo "$as_me: failed program was:" >&5
16291 sed 's/^/| /' conftest.
$ac_ext >&5
16293 ac_header_preproc
=no
16296 rm -f conftest.err conftest.
$ac_ext
16297 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16298 echo "${ECHO_T}$ac_header_preproc" >&6; }
16300 # So? What about this header?
16301 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16303 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
16304 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16305 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
16306 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
16307 ac_header_preproc
=yes
16310 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
16311 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
16312 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
16313 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
16314 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
16315 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
16316 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
16317 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
16318 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
16319 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
16320 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
16321 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
16323 ## -------------------------------------- ##
16324 ## Report this to http://bugs.python.org/ ##
16325 ## -------------------------------------- ##
16327 ) |
sed "s/^/$as_me: WARNING: /" >&2
16330 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
16331 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
16332 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
16333 echo $ECHO_N "(cached) $ECHO_C" >&6
16335 ac_cv_header_atheos_threads_h
=$ac_header_preproc
16337 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
16338 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
16341 if test $ac_cv_header_atheos_threads_h = yes; then
16342 cat >>confdefs.h
<<\_ACEOF
16343 #define WITH_THREAD 1
16347 cat >>confdefs.h
<<\_ACEOF
16348 #define ATHEOS_THREADS 1
16351 THREADOBJ
="Python/thread.o"
16354 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
16355 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
16356 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
16357 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
16358 echo $ECHO_N "(cached) $ECHO_C" >&6
16360 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
16361 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
16363 # Is the header compilable?
16364 { echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
16365 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6; }
16366 cat >conftest.
$ac_ext <<_ACEOF
16369 cat confdefs.h
>>conftest.
$ac_ext
16370 cat >>conftest.
$ac_ext <<_ACEOF
16371 /* end confdefs.h. */
16372 $ac_includes_default
16373 #include <kernel/OS.h>
16375 rm -f conftest.
$ac_objext
16376 if { (ac_try
="$ac_compile"
16377 case "(($ac_try" in
16378 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16379 *) ac_try_echo=$ac_try;;
16381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16382 (eval "$ac_compile") 2>conftest.er1
16384 grep -v '^ *+' conftest.er1 >conftest.err
16386 cat conftest.err >&5
16387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388 (exit $ac_status); } && {
16389 test -z "$ac_c_werror_flag" ||
16390 test ! -s conftest.err
16391 } && test -s conftest.$ac_objext; then
16392 ac_header_compiler=yes
16394 echo "$as_me: failed program was:" >&5
16395 sed 's/^/| /' conftest.$ac_ext >&5
16397 ac_header_compiler=no
16400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16401 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16402 echo "${ECHO_T}$ac_header_compiler" >&6; }
16404 # Is the header present?
16405 { echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
16406 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6; }
16407 cat >conftest.$ac_ext <<_ACEOF
16410 cat confdefs.h >>conftest.$ac_ext
16411 cat >>conftest.$ac_ext <<_ACEOF
16412 /* end confdefs.h. */
16413 #include <kernel/OS.h>
16415 if { (ac_try="$ac_cpp conftest.$ac_ext"
16416 case "(($ac_try" in
16417 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16418 *) ac_try_echo
=$ac_try;;
16420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16423 grep -v '^ *+' conftest.er1
>conftest.err
16425 cat conftest.err
>&5
16426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16427 (exit $ac_status); } >/dev
/null
&& {
16428 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16429 test ! -s conftest.err
16431 ac_header_preproc
=yes
16433 echo "$as_me: failed program was:" >&5
16434 sed 's/^/| /' conftest.
$ac_ext >&5
16436 ac_header_preproc
=no
16439 rm -f conftest.err conftest.
$ac_ext
16440 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16441 echo "${ECHO_T}$ac_header_preproc" >&6; }
16443 # So? What about this header?
16444 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16446 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
16447 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16448 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
16449 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
16450 ac_header_preproc
=yes
16453 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
16454 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
16455 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
16456 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
16457 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
16458 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
16459 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
16460 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
16461 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
16462 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
16463 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
16464 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
16466 ## -------------------------------------- ##
16467 ## Report this to http://bugs.python.org/ ##
16468 ## -------------------------------------- ##
16470 ) |
sed "s/^/$as_me: WARNING: /" >&2
16473 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
16474 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
16475 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
16476 echo $ECHO_N "(cached) $ECHO_C" >&6
16478 ac_cv_header_kernel_OS_h
=$ac_header_preproc
16480 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
16481 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
16484 if test $ac_cv_header_kernel_OS_h = yes; then
16485 cat >>confdefs.h
<<\_ACEOF
16486 #define WITH_THREAD 1
16490 cat >>confdefs.h
<<\_ACEOF
16491 #define BEOS_THREADS 1
16494 THREADOBJ
="Python/thread.o"
16497 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
16498 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
16499 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
16500 echo $ECHO_N "(cached) $ECHO_C" >&6
16502 ac_check_lib_save_LIBS
=$LIBS
16503 LIBS
="-lpthreads $LIBS"
16504 cat >conftest.
$ac_ext <<_ACEOF
16507 cat confdefs.h
>>conftest.
$ac_ext
16508 cat >>conftest.
$ac_ext <<_ACEOF
16509 /* end confdefs.h. */
16511 /* Override any GCC internal prototype to avoid an error.
16512 Use char because int might match the return type of a GCC
16513 builtin and then its argument prototype would still apply. */
16517 char pthread_create ();
16521 return pthread_create ();
16526 rm -f conftest.
$ac_objext conftest
$ac_exeext
16527 if { (ac_try
="$ac_link"
16528 case "(($ac_try" in
16529 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16530 *) ac_try_echo=$ac_try;;
16532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16533 (eval "$ac_link") 2>conftest.er1
16535 grep -v '^ *+' conftest.er1 >conftest.err
16537 cat conftest.err >&5
16538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16539 (exit $ac_status); } && {
16540 test -z "$ac_c_werror_flag" ||
16541 test ! -s conftest.err
16542 } && test -s conftest$ac_exeext &&
16543 $as_test_x conftest$ac_exeext; then
16544 ac_cv_lib_pthreads_pthread_create=yes
16546 echo "$as_me: failed program was:" >&5
16547 sed 's/^/| /' conftest.$ac_ext >&5
16549 ac_cv_lib_pthreads_pthread_create=no
16552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16553 conftest$ac_exeext conftest.$ac_ext
16554 LIBS=$ac_check_lib_save_LIBS
16556 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
16557 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
16558 if test $ac_cv_lib_pthreads_pthread_create = yes; then
16559 cat >>confdefs.h <<\_ACEOF
16560 #define WITH_THREAD 1
16564 LIBS="$LIBS -lpthreads"
16565 THREADOBJ="Python/thread.o"
16568 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
16569 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
16570 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
16571 echo $ECHO_N "(cached) $ECHO_C" >&6
16573 ac_check_lib_save_LIBS=$LIBS
16575 cat >conftest.$ac_ext <<_ACEOF
16578 cat confdefs.h >>conftest.$ac_ext
16579 cat >>conftest.$ac_ext <<_ACEOF
16580 /* end confdefs.h. */
16582 /* Override any GCC internal prototype to avoid an error.
16583 Use char because int might match the return type of a GCC
16584 builtin and then its argument prototype would still apply. */
16588 char pthread_create ();
16592 return pthread_create ();
16597 rm -f conftest.$ac_objext conftest$ac_exeext
16598 if { (ac_try="$ac_link"
16599 case "(($ac_try" in
16600 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16601 *) ac_try_echo
=$ac_try;;
16603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16604 (eval "$ac_link") 2>conftest.er1
16606 grep -v '^ *+' conftest.er1
>conftest.err
16608 cat conftest.err
>&5
16609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16610 (exit $ac_status); } && {
16611 test -z "$ac_c_werror_flag" ||
16612 test ! -s conftest.err
16613 } && test -s conftest
$ac_exeext &&
16614 $as_test_x conftest
$ac_exeext; then
16615 ac_cv_lib_c_r_pthread_create
=yes
16617 echo "$as_me: failed program was:" >&5
16618 sed 's/^/| /' conftest.
$ac_ext >&5
16620 ac_cv_lib_c_r_pthread_create
=no
16623 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16624 conftest
$ac_exeext conftest.
$ac_ext
16625 LIBS
=$ac_check_lib_save_LIBS
16627 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
16628 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
16629 if test $ac_cv_lib_c_r_pthread_create = yes; then
16630 cat >>confdefs.h
<<\_ACEOF
16631 #define WITH_THREAD 1
16636 THREADOBJ
="Python/thread.o"
16639 { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
16640 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
16641 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
16642 echo $ECHO_N "(cached) $ECHO_C" >&6
16644 ac_check_lib_save_LIBS
=$LIBS
16645 LIBS
="-lpthread $LIBS"
16646 cat >conftest.
$ac_ext <<_ACEOF
16649 cat confdefs.h
>>conftest.
$ac_ext
16650 cat >>conftest.
$ac_ext <<_ACEOF
16651 /* end confdefs.h. */
16653 /* Override any GCC internal prototype to avoid an error.
16654 Use char because int might match the return type of a GCC
16655 builtin and then its argument prototype would still apply. */
16659 char __pthread_create_system ();
16663 return __pthread_create_system ();
16668 rm -f conftest.
$ac_objext conftest
$ac_exeext
16669 if { (ac_try
="$ac_link"
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_link") 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_exeext &&
16685 $as_test_x conftest$ac_exeext; then
16686 ac_cv_lib_pthread___pthread_create_system=yes
16688 echo "$as_me: failed program was:" >&5
16689 sed 's/^/| /' conftest.$ac_ext >&5
16691 ac_cv_lib_pthread___pthread_create_system=no
16694 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16695 conftest$ac_exeext conftest.$ac_ext
16696 LIBS=$ac_check_lib_save_LIBS
16698 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
16699 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
16700 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
16701 cat >>confdefs.h <<\_ACEOF
16702 #define WITH_THREAD 1
16706 LIBS="$LIBS -lpthread"
16707 THREADOBJ="Python/thread.o"
16710 { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
16711 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
16712 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
16713 echo $ECHO_N "(cached) $ECHO_C" >&6
16715 ac_check_lib_save_LIBS=$LIBS
16717 cat >conftest.$ac_ext <<_ACEOF
16720 cat confdefs.h >>conftest.$ac_ext
16721 cat >>conftest.$ac_ext <<_ACEOF
16722 /* end confdefs.h. */
16724 /* Override any GCC internal prototype to avoid an error.
16725 Use char because int might match the return type of a GCC
16726 builtin and then its argument prototype would still apply. */
16730 char pthread_create ();
16734 return pthread_create ();
16739 rm -f conftest.$ac_objext conftest$ac_exeext
16740 if { (ac_try="$ac_link"
16741 case "(($ac_try" in
16742 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16743 *) ac_try_echo
=$ac_try;;
16745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16746 (eval "$ac_link") 2>conftest.er1
16748 grep -v '^ *+' conftest.er1
>conftest.err
16750 cat conftest.err
>&5
16751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16752 (exit $ac_status); } && {
16753 test -z "$ac_c_werror_flag" ||
16754 test ! -s conftest.err
16755 } && test -s conftest
$ac_exeext &&
16756 $as_test_x conftest
$ac_exeext; then
16757 ac_cv_lib_cma_pthread_create
=yes
16759 echo "$as_me: failed program was:" >&5
16760 sed 's/^/| /' conftest.
$ac_ext >&5
16762 ac_cv_lib_cma_pthread_create
=no
16765 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16766 conftest
$ac_exeext conftest.
$ac_ext
16767 LIBS
=$ac_check_lib_save_LIBS
16769 { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
16770 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
16771 if test $ac_cv_lib_cma_pthread_create = yes; then
16772 cat >>confdefs.h
<<\_ACEOF
16773 #define WITH_THREAD 1
16778 THREADOBJ
="Python/thread.o"
16781 USE_THREAD_MODULE
="#"
16801 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16802 conftest
$ac_exeext conftest.
$ac_ext
16812 { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
16813 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
16814 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
16815 echo $ECHO_N "(cached) $ECHO_C" >&6
16817 ac_check_lib_save_LIBS
=$LIBS
16819 cat >conftest.
$ac_ext <<_ACEOF
16822 cat confdefs.h
>>conftest.
$ac_ext
16823 cat >>conftest.
$ac_ext <<_ACEOF
16824 /* end confdefs.h. */
16826 /* Override any GCC internal prototype to avoid an error.
16827 Use char because int might match the return type of a GCC
16828 builtin and then its argument prototype would still apply. */
16836 return usconfig ();
16841 rm -f conftest.
$ac_objext conftest
$ac_exeext
16842 if { (ac_try
="$ac_link"
16843 case "(($ac_try" in
16844 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16845 *) ac_try_echo=$ac_try;;
16847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16848 (eval "$ac_link") 2>conftest.er1
16850 grep -v '^ *+' conftest.er1 >conftest.err
16852 cat conftest.err >&5
16853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854 (exit $ac_status); } && {
16855 test -z "$ac_c_werror_flag" ||
16856 test ! -s conftest.err
16857 } && test -s conftest$ac_exeext &&
16858 $as_test_x conftest$ac_exeext; then
16859 ac_cv_lib_mpc_usconfig=yes
16861 echo "$as_me: failed program was:" >&5
16862 sed 's/^/| /' conftest.$ac_ext >&5
16864 ac_cv_lib_mpc_usconfig=no
16867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16868 conftest$ac_exeext conftest.$ac_ext
16869 LIBS=$ac_check_lib_save_LIBS
16871 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
16872 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
16873 if test $ac_cv_lib_mpc_usconfig = yes; then
16874 cat >>confdefs.h <<\_ACEOF
16875 #define WITH_THREAD 1
16879 THREADOBJ="Python/thread.o"
16880 USE_THREAD_MODULE=""
16884 if test "$posix_threads" != "yes"; then
16885 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
16886 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
16887 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
16888 echo $ECHO_N "(cached) $ECHO_C" >&6
16890 ac_check_lib_save_LIBS=$LIBS
16891 LIBS="-lthread $LIBS"
16892 cat >conftest.$ac_ext <<_ACEOF
16895 cat confdefs.h >>conftest.$ac_ext
16896 cat >>conftest.$ac_ext <<_ACEOF
16897 /* end confdefs.h. */
16899 /* Override any GCC internal prototype to avoid an error.
16900 Use char because int might match the return type of a GCC
16901 builtin and then its argument prototype would still apply. */
16905 char thr_create ();
16909 return thr_create ();
16914 rm -f conftest.$ac_objext conftest$ac_exeext
16915 if { (ac_try="$ac_link"
16916 case "(($ac_try" in
16917 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16918 *) ac_try_echo
=$ac_try;;
16920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16921 (eval "$ac_link") 2>conftest.er1
16923 grep -v '^ *+' conftest.er1
>conftest.err
16925 cat conftest.err
>&5
16926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927 (exit $ac_status); } && {
16928 test -z "$ac_c_werror_flag" ||
16929 test ! -s conftest.err
16930 } && test -s conftest
$ac_exeext &&
16931 $as_test_x conftest
$ac_exeext; then
16932 ac_cv_lib_thread_thr_create
=yes
16934 echo "$as_me: failed program was:" >&5
16935 sed 's/^/| /' conftest.
$ac_ext >&5
16937 ac_cv_lib_thread_thr_create
=no
16940 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16941 conftest
$ac_exeext conftest.
$ac_ext
16942 LIBS
=$ac_check_lib_save_LIBS
16944 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
16945 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
16946 if test $ac_cv_lib_thread_thr_create = yes; then
16947 cat >>confdefs.h
<<\_ACEOF
16948 #define WITH_THREAD 1
16951 LIBS
="$LIBS -lthread"
16952 THREADOBJ
="Python/thread.o"
16953 USE_THREAD_MODULE
=""
16958 if test "$USE_THREAD_MODULE" != "#"
16960 # If the above checks didn't disable threads, (at least) OSF1
16961 # needs this '-threads' argument during linking.
16962 case $ac_sys_system in
16963 OSF1
) LDLAST
=-threads;;
16968 if test "$posix_threads" = "yes"; then
16969 if test "$unistd_defines_pthreads" = "no"; then
16971 cat >>confdefs.h
<<\_ACEOF
16972 #define _POSIX_THREADS 1
16977 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
16978 case $ac_sys_system/$ac_sys_release in
16980 cat >>confdefs.h
<<\_ACEOF
16981 #define HAVE_PTHREAD_DESTRUCTOR 1
16986 cat >>confdefs.h
<<\_ACEOF
16987 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
16992 cat >>confdefs.h
<<\_ACEOF
16993 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
16999 { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
17000 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
17001 if test "${ac_cv_pthread_system_supported+set}" = set; then
17002 echo $ECHO_N "(cached) $ECHO_C" >&6
17004 if test "$cross_compiling" = yes; then
17005 ac_cv_pthread_system_supported
=no
17007 cat >conftest.
$ac_ext <<_ACEOF
17010 cat confdefs.h
>>conftest.
$ac_ext
17011 cat >>conftest.
$ac_ext <<_ACEOF
17012 /* end confdefs.h. */
17013 #include <pthread.h>
17014 void *foo(void *parm) {
17018 pthread_attr_t attr;
17020 if (pthread_attr_init(&attr)) exit(-1);
17021 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
17022 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
17026 rm -f conftest
$ac_exeext
17027 if { (ac_try
="$ac_link"
17028 case "(($ac_try" in
17029 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17030 *) ac_try_echo=$ac_try;;
17032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17033 (eval "$ac_link") 2>&5
17035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17036 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17037 { (case "(($ac_try" in
17038 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17039 *) ac_try_echo
=$ac_try;;
17041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17042 (eval "$ac_try") 2>&5
17044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17045 (exit $ac_status); }; }; then
17046 ac_cv_pthread_system_supported
=yes
17048 echo "$as_me: program exited with status $ac_status" >&5
17049 echo "$as_me: failed program was:" >&5
17050 sed 's/^/| /' conftest.
$ac_ext >&5
17052 ( exit $ac_status )
17053 ac_cv_pthread_system_supported
=no
17055 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17062 { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
17063 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
17064 if test "$ac_cv_pthread_system_supported" = "yes"; then
17066 cat >>confdefs.h
<<\_ACEOF
17067 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
17072 for ac_func
in pthread_sigmask
17074 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17075 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17076 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17077 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17078 echo $ECHO_N "(cached) $ECHO_C" >&6
17080 cat >conftest.
$ac_ext <<_ACEOF
17083 cat confdefs.h
>>conftest.
$ac_ext
17084 cat >>conftest.
$ac_ext <<_ACEOF
17085 /* end confdefs.h. */
17086 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17087 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17088 #define $ac_func innocuous_$ac_func
17090 /* System header to define __stub macros and hopefully few prototypes,
17091 which can conflict with char $ac_func (); below.
17092 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17093 <limits.h> exists even on freestanding compilers. */
17096 # include <limits.h>
17098 # include <assert.h>
17103 /* Override any GCC internal prototype to avoid an error.
17104 Use char because int might match the return type of a GCC
17105 builtin and then its argument prototype would still apply. */
17110 /* The GNU C library defines this for functions which it implements
17111 to always fail with ENOSYS. Some functions are actually named
17112 something starting with __ and the normal name is an alias. */
17113 #if defined __stub_$ac_func || defined __stub___$ac_func
17120 return $ac_func ();
17125 rm -f conftest.
$ac_objext conftest
$ac_exeext
17126 if { (ac_try
="$ac_link"
17127 case "(($ac_try" in
17128 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17129 *) ac_try_echo=$ac_try;;
17131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17132 (eval "$ac_link") 2>conftest.er1
17134 grep -v '^ *+' conftest.er1 >conftest.err
17136 cat conftest.err >&5
17137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17138 (exit $ac_status); } && {
17139 test -z "$ac_c_werror_flag" ||
17140 test ! -s conftest.err
17141 } && test -s conftest$ac_exeext &&
17142 $as_test_x conftest$ac_exeext; then
17143 eval "$as_ac_var=yes"
17145 echo "$as_me: failed program was:" >&5
17146 sed 's/^/| /' conftest.$ac_ext >&5
17148 eval "$as_ac_var=no"
17151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17152 conftest$ac_exeext conftest.$ac_ext
17154 ac_res=`eval echo '${'$as_ac_var'}'`
17155 { echo "$as_me:$LINENO: result: $ac_res" >&5
17156 echo "${ECHO_T}$ac_res" >&6; }
17157 if test `eval echo '${'$as_ac_var'}'` = yes; then
17158 cat >>confdefs.h <<_ACEOF
17159 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17161 case $ac_sys_system in
17164 cat >>confdefs.h <<\_ACEOF
17165 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
17176 # Check for enable-ipv6
17179 { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
17180 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
17181 # Check whether --enable-ipv6 was given.
17182 if test "${enable_ipv6+set}" = set; then
17183 enableval=$enable_ipv6; case "$enableval" in
17185 { echo "$as_me:$LINENO: result: no" >&5
17186 echo "${ECHO_T}no" >&6; }
17189 *) { echo "$as_me:$LINENO: result: yes" >&5
17190 echo "${ECHO_T}yes" >&6; }
17191 cat >>confdefs.h <<\_ACEOF
17192 #define ENABLE_IPV6 1
17200 if test "$cross_compiling" = yes; then
17201 { echo "$as_me:$LINENO: result: no" >&5
17202 echo "${ECHO_T}no" >&6; }
17206 cat >conftest.$ac_ext <<_ACEOF
17209 cat confdefs.h >>conftest.$ac_ext
17210 cat >>conftest.$ac_ext <<_ACEOF
17211 /* end confdefs.h. */
17212 /* AF_INET6 available check */
17213 #include <sys/types.h>
17214 #include <sys/socket.h>
17217 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
17224 rm -f conftest$ac_exeext
17225 if { (ac_try="$ac_link"
17226 case "(($ac_try" in
17227 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17228 *) ac_try_echo
=$ac_try;;
17230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17231 (eval "$ac_link") 2>&5
17233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17235 { (case "(($ac_try" in
17236 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17237 *) ac_try_echo=$ac_try;;
17239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17240 (eval "$ac_try") 2>&5
17242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17243 (exit $ac_status); }; }; then
17244 { echo "$as_me:$LINENO: result: yes" >&5
17245 echo "${ECHO_T}yes" >&6; }
17248 echo "$as_me: program exited with status $ac_status" >&5
17249 echo "$as_me: failed program was:" >&5
17250 sed 's/^/| /' conftest.$ac_ext >&5
17252 ( exit $ac_status )
17253 { echo "$as_me:$LINENO: result: no" >&5
17254 echo "${ECHO_T}no" >&6; }
17257 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17262 if test "$ipv6" = "yes"; then
17263 { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
17264 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; }
17265 cat >conftest.$ac_ext <<_ACEOF
17268 cat confdefs.h >>conftest.$ac_ext
17269 cat >>conftest.$ac_ext <<_ACEOF
17270 /* end confdefs.h. */
17271 #include <sys/types.h>
17272 #include <netinet/in.h>
17276 struct sockaddr_in6 x;
17282 rm -f conftest.$ac_objext
17283 if { (ac_try="$ac_compile"
17284 case "(($ac_try" in
17285 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17286 *) ac_try_echo
=$ac_try;;
17288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17289 (eval "$ac_compile") 2>conftest.er1
17291 grep -v '^ *+' conftest.er1
>conftest.err
17293 cat conftest.err
>&5
17294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17295 (exit $ac_status); } && {
17296 test -z "$ac_c_werror_flag" ||
17297 test ! -s conftest.err
17298 } && test -s conftest.
$ac_objext; then
17299 { echo "$as_me:$LINENO: result: yes" >&5
17300 echo "${ECHO_T}yes" >&6; }
17303 echo "$as_me: failed program was:" >&5
17304 sed 's/^/| /' conftest.
$ac_ext >&5
17306 { echo "$as_me:$LINENO: result: no" >&5
17307 echo "${ECHO_T}no" >&6; }
17311 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17314 if test "$ipv6" = "yes"; then
17315 cat >>confdefs.h
<<\_ACEOF
17316 #define ENABLE_IPV6 1
17328 if test "$ipv6" = "yes"; then
17329 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
17330 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
17331 for i
in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta
;
17335 cat >conftest.
$ac_ext <<_ACEOF
17338 cat confdefs.h
>>conftest.
$ac_ext
17339 cat >>conftest.
$ac_ext <<_ACEOF
17340 /* end confdefs.h. */
17342 #include <netinet/in.h>
17343 #ifdef IPV6_INRIA_VERSION
17347 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17348 $EGREP "yes" >/dev
/null
2>&1; then
17355 cat >conftest.
$ac_ext <<_ACEOF
17358 cat confdefs.h
>>conftest.
$ac_ext
17359 cat >>conftest.
$ac_ext <<_ACEOF
17360 /* end confdefs.h. */
17362 #include <netinet/in.h>
17367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17368 $EGREP "yes" >/dev
/null
2>&1; then
17371 ipv6libdir
=/usr
/local
/v
6/lib
17378 cat >conftest.
$ac_ext <<_ACEOF
17381 cat confdefs.h
>>conftest.
$ac_ext
17382 cat >>conftest.
$ac_ext <<_ACEOF
17383 /* end confdefs.h. */
17385 #include <features.h>
17386 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
17390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17391 $EGREP "yes" >/dev
/null
2>&1; then
17399 if test -d /usr
/inet6
; then
17402 ipv6libdir
=/usr
/inet
6/lib
17403 BASECFLAGS
="-I/usr/inet6/include $BASECFLAGS"
17407 if test -f /etc
/netconfig
; then
17408 if /usr
/xpg
4/bin
/grep -q tcp6
/etc
/netconfig
; then
17415 cat >conftest.
$ac_ext <<_ACEOF
17418 cat confdefs.h
>>conftest.
$ac_ext
17419 cat >>conftest.
$ac_ext <<_ACEOF
17420 /* end confdefs.h. */
17422 #include <sys/param.h>
17423 #ifdef _TOSHIBA_INET6
17427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17428 $EGREP "yes" >/dev
/null
2>&1; then
17431 ipv6libdir
=/usr
/local
/v
6/lib
17437 cat >conftest.
$ac_ext <<_ACEOF
17440 cat confdefs.h
>>conftest.
$ac_ext
17441 cat >>conftest.
$ac_ext <<_ACEOF
17442 /* end confdefs.h. */
17444 #include </usr/local/v6/include/sys/v6config.h>
17449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17450 $EGREP "yes" >/dev
/null
2>&1; then
17453 ipv6libdir
=/usr
/local
/v
6/lib
;
17454 BASECFLAGS
="-I/usr/local/v6/include $BASECFLAGS"
17460 cat >conftest.
$ac_ext <<_ACEOF
17463 cat confdefs.h
>>conftest.
$ac_ext
17464 cat >>conftest.
$ac_ext <<_ACEOF
17465 /* end confdefs.h. */
17467 #include <sys/param.h>
17468 #ifdef _ZETA_MINAMI_INET6
17472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17473 $EGREP "yes" >/dev
/null
2>&1; then
17476 ipv6libdir
=/usr
/local
/v
6/lib
17482 if test "$ipv6type" != "unknown"; then
17486 { echo "$as_me:$LINENO: result: $ipv6type" >&5
17487 echo "${ECHO_T}$ipv6type" >&6; }
17490 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
17491 if test -d $ipv6libdir -a -f $ipv6libdir/lib
$ipv6lib.a
; then
17492 LIBS
="-L$ipv6libdir -l$ipv6lib $LIBS"
17493 echo "using lib$ipv6lib"
17495 if test $ipv6trylibc = "yes"; then
17498 echo 'Fatal: no $ipv6lib library found. cannot continue.'
17499 echo "You need to fetch lib$ipv6lib.a from appropriate"
17500 echo 'ipv6 kit and compile beforehand.'
17506 { echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5
17507 echo $ECHO_N "checking for OSX 10.5 SDK or later... $ECHO_C" >&6; }
17508 cat >conftest.
$ac_ext <<_ACEOF
17511 cat confdefs.h
>>conftest.
$ac_ext
17512 cat >>conftest.
$ac_ext <<_ACEOF
17513 /* end confdefs.h. */
17514 #include <Carbon/Carbon.h>
17518 FSIORefNum fRef = 0
17523 rm -f conftest.
$ac_objext
17524 if { (ac_try
="$ac_compile"
17525 case "(($ac_try" in
17526 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17527 *) ac_try_echo=$ac_try;;
17529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17530 (eval "$ac_compile") 2>conftest.er1
17532 grep -v '^ *+' conftest.er1 >conftest.err
17534 cat conftest.err >&5
17535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17536 (exit $ac_status); } && {
17537 test -z "$ac_c_werror_flag" ||
17538 test ! -s conftest.err
17539 } && test -s conftest.$ac_objext; then
17541 cat >>confdefs.h <<\_ACEOF
17542 #define HAVE_OSX105_SDK 1
17545 { echo "$as_me:$LINENO: result: yes" >&5
17546 echo "${ECHO_T}yes" >&6; }
17548 echo "$as_me: failed program was:" >&5
17549 sed 's/^/| /' conftest.$ac_ext >&5
17551 { echo "$as_me:$LINENO: result: no" >&5
17552 echo "${ECHO_T}no" >&6; }
17556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17558 # Check for --with-doc-strings
17559 { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
17560 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
17562 # Check whether --with-doc-strings was given.
17563 if test "${with_doc_strings+set}" = set; then
17564 withval=$with_doc_strings;
17568 if test -z "$with_doc_strings"
17569 then with_doc_strings="yes"
17571 if test "$with_doc_strings" != "no"
17574 cat >>confdefs.h <<\_ACEOF
17575 #define WITH_DOC_STRINGS 1
17579 { echo "$as_me:$LINENO: result: $with_doc_strings" >&5
17580 echo "${ECHO_T}$with_doc_strings" >&6; }
17582 # Check for Python-specific malloc support
17583 { echo "$as_me:$LINENO: checking for --with-tsc" >&5
17584 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
17586 # Check whether --with-tsc was given.
17587 if test "${with_tsc+set}" = set; then
17589 if test "$withval" != no
17592 cat >>confdefs.h <<\_ACEOF
17596 { echo "$as_me:$LINENO: result: yes" >&5
17597 echo "${ECHO_T}yes" >&6; }
17598 else { echo "$as_me:$LINENO: result: no" >&5
17599 echo "${ECHO_T}no" >&6; }
17602 { echo "$as_me:$LINENO: result: no" >&5
17603 echo "${ECHO_T}no" >&6; }
17607 # Check for Python-specific malloc support
17608 { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
17609 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
17611 # Check whether --with-pymalloc was given.
17612 if test "${with_pymalloc+set}" = set; then
17613 withval=$with_pymalloc;
17617 if test -z "$with_pymalloc"
17618 then with_pymalloc="yes"
17620 if test "$with_pymalloc" != "no"
17623 cat >>confdefs.h <<\_ACEOF
17624 #define WITH_PYMALLOC 1
17628 { echo "$as_me:$LINENO: result: $with_pymalloc" >&5
17629 echo "${ECHO_T}$with_pymalloc" >&6; }
17631 # Check for Valgrind support
17632 { echo "$as_me:$LINENO: checking for --with-valgrind" >&5
17633 echo $ECHO_N "checking for --with-valgrind... $ECHO_C" >&6; }
17635 # Check whether --with-valgrind was given.
17636 if test "${with_valgrind+set}" = set; then
17637 withval=$with_valgrind;
17642 { echo "$as_me:$LINENO: result: $with_valgrind" >&5
17643 echo "${ECHO_T}$with_valgrind" >&6; }
17644 if test "$with_valgrind" != no; then
17645 if test "${ac_cv_header_valgrind_valgrind_h+set}" = set; then
17646 { echo "$as_me:$LINENO: checking for valgrind/valgrind.h" >&5
17647 echo $ECHO_N "checking for valgrind/valgrind.h... $ECHO_C" >&6; }
17648 if test "${ac_cv_header_valgrind_valgrind_h+set}" = set; then
17649 echo $ECHO_N "(cached) $ECHO_C" >&6
17651 { echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_valgrind_h" >&5
17652 echo "${ECHO_T}$ac_cv_header_valgrind_valgrind_h" >&6; }
17654 # Is the header compilable?
17655 { echo "$as_me:$LINENO: checking valgrind/valgrind.h usability" >&5
17656 echo $ECHO_N "checking valgrind/valgrind.h usability... $ECHO_C" >&6; }
17657 cat >conftest.$ac_ext <<_ACEOF
17660 cat confdefs.h >>conftest.$ac_ext
17661 cat >>conftest.$ac_ext <<_ACEOF
17662 /* end confdefs.h. */
17663 $ac_includes_default
17664 #include <valgrind/valgrind.h>
17666 rm -f conftest.$ac_objext
17667 if { (ac_try="$ac_compile"
17668 case "(($ac_try" in
17669 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17670 *) ac_try_echo
=$ac_try;;
17672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17673 (eval "$ac_compile") 2>conftest.er1
17675 grep -v '^ *+' conftest.er1
>conftest.err
17677 cat conftest.err
>&5
17678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17679 (exit $ac_status); } && {
17680 test -z "$ac_c_werror_flag" ||
17681 test ! -s conftest.err
17682 } && test -s conftest.
$ac_objext; then
17683 ac_header_compiler
=yes
17685 echo "$as_me: failed program was:" >&5
17686 sed 's/^/| /' conftest.
$ac_ext >&5
17688 ac_header_compiler
=no
17691 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17692 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17693 echo "${ECHO_T}$ac_header_compiler" >&6; }
17695 # Is the header present?
17696 { echo "$as_me:$LINENO: checking valgrind/valgrind.h presence" >&5
17697 echo $ECHO_N "checking valgrind/valgrind.h presence... $ECHO_C" >&6; }
17698 cat >conftest.
$ac_ext <<_ACEOF
17701 cat confdefs.h
>>conftest.
$ac_ext
17702 cat >>conftest.
$ac_ext <<_ACEOF
17703 /* end confdefs.h. */
17704 #include <valgrind/valgrind.h>
17706 if { (ac_try
="$ac_cpp conftest.$ac_ext"
17707 case "(($ac_try" in
17708 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17709 *) ac_try_echo=$ac_try;;
17711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17712 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17714 grep -v '^ *+' conftest.er1 >conftest.err
17716 cat conftest.err >&5
17717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17718 (exit $ac_status); } >/dev/null && {
17719 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17720 test ! -s conftest.err
17722 ac_header_preproc=yes
17724 echo "$as_me: failed program was:" >&5
17725 sed 's/^/| /' conftest.$ac_ext >&5
17727 ac_header_preproc=no
17730 rm -f conftest.err conftest.$ac_ext
17731 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17732 echo "${ECHO_T}$ac_header_preproc" >&6; }
17734 # So? What about this header?
17735 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17737 { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
17738 echo "$as_me: WARNING: valgrind/valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17739 { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: proceeding with the compiler's result" >&5
17740 echo "$as_me: WARNING: valgrind/valgrind.h: proceeding with the compiler's result" >&2;}
17741 ac_header_preproc=yes
17744 { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: present but cannot be compiled" >&5
17745 echo "$as_me: WARNING: valgrind/valgrind.h: present but cannot be compiled" >&2;}
17746 { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: check for missing prerequisite headers?" >&5
17747 echo "$as_me: WARNING: valgrind/valgrind.h: check for missing prerequisite headers?" >&2;}
17748 { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: see the Autoconf documentation" >&5
17749 echo "$as_me: WARNING: valgrind/valgrind.h: see the Autoconf documentation" >&2;}
17750 { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
17751 echo "$as_me: WARNING: valgrind/valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
17752 { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: proceeding with the preprocessor's result" >&5
17753 echo "$as_me: WARNING: valgrind/valgrind.h: proceeding with the preprocessor's result" >&2;}
17754 { echo "$as_me:$LINENO: WARNING: valgrind/valgrind.h: in the future, the compiler will take precedence" >&5
17755 echo "$as_me: WARNING: valgrind/valgrind.h: in the future, the compiler will take precedence" >&2;}
17757 ## -------------------------------------- ##
17758 ## Report this to http://bugs.python.org/ ##
17759 ## -------------------------------------- ##
17761 ) | sed "s/^/$as_me: WARNING: /" >&2
17764 { echo "$as_me:$LINENO: checking for valgrind/valgrind.h" >&5
17765 echo $ECHO_N "checking for valgrind/valgrind.h... $ECHO_C" >&6; }
17766 if test "${ac_cv_header_valgrind_valgrind_h+set}" = set; then
17767 echo $ECHO_N "(cached) $ECHO_C" >&6
17769 ac_cv_header_valgrind_valgrind_h=$ac_header_preproc
17771 { echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_valgrind_h" >&5
17772 echo "${ECHO_T}$ac_cv_header_valgrind_valgrind_h" >&6; }
17775 if test $ac_cv_header_valgrind_valgrind_h = yes; then
17777 cat >>confdefs.h <<\_ACEOF
17778 #define WITH_VALGRIND 1
17782 { { echo "$as_me:$LINENO: error: Valgrind support requested but headers not available" >&5
17783 echo "$as_me: error: Valgrind support requested but headers not available" >&2;}
17784 { (exit 1); exit 1; }; }
17791 # Check for --with-wctype-functions
17792 { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
17793 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
17795 # Check whether --with-wctype-functions was given.
17796 if test "${with_wctype_functions+set}" = set; then
17797 withval=$with_wctype_functions;
17798 if test "$withval" != no
17801 cat >>confdefs.h <<\_ACEOF
17802 #define WANT_WCTYPE_FUNCTIONS 1
17805 { echo "$as_me:$LINENO: result: yes" >&5
17806 echo "${ECHO_T}yes" >&6; }
17807 else { echo "$as_me:$LINENO: result: no" >&5
17808 echo "${ECHO_T}no" >&6; }
17811 { echo "$as_me:$LINENO: result: no" >&5
17812 echo "${ECHO_T}no" >&6; }
17816 # -I${DLINCLDIR} is added to the compile rule for importdl.o
17820 # the dlopen() function means we might want to use dynload_shlib.o. some
17821 # platforms, such as AIX, have dlopen(), but don't want to use it.
17823 for ac_func in dlopen
17825 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
17826 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17827 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17828 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17829 echo $ECHO_N "(cached) $ECHO_C" >&6
17831 cat >conftest.$ac_ext <<_ACEOF
17834 cat confdefs.h >>conftest.$ac_ext
17835 cat >>conftest.$ac_ext <<_ACEOF
17836 /* end confdefs.h. */
17837 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17838 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17839 #define $ac_func innocuous_$ac_func
17841 /* System header to define __stub macros and hopefully few prototypes,
17842 which can conflict with char $ac_func (); below.
17843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17844 <limits.h> exists even on freestanding compilers. */
17847 # include <limits.h>
17849 # include <assert.h>
17854 /* Override any GCC internal prototype to avoid an error.
17855 Use char because int might match the return type of a GCC
17856 builtin and then its argument prototype would still apply. */
17861 /* The GNU C library defines this for functions which it implements
17862 to always fail with ENOSYS. Some functions are actually named
17863 something starting with __ and the normal name is an alias. */
17864 #if defined __stub_$ac_func || defined __stub___$ac_func
17871 return $ac_func ();
17876 rm -f conftest.$ac_objext conftest$ac_exeext
17877 if { (ac_try="$ac_link"
17878 case "(($ac_try" in
17879 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17880 *) ac_try_echo
=$ac_try;;
17882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17883 (eval "$ac_link") 2>conftest.er1
17885 grep -v '^ *+' conftest.er1
>conftest.err
17887 cat conftest.err
>&5
17888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17889 (exit $ac_status); } && {
17890 test -z "$ac_c_werror_flag" ||
17891 test ! -s conftest.err
17892 } && test -s conftest
$ac_exeext &&
17893 $as_test_x conftest
$ac_exeext; then
17894 eval "$as_ac_var=yes"
17896 echo "$as_me: failed program was:" >&5
17897 sed 's/^/| /' conftest.
$ac_ext >&5
17899 eval "$as_ac_var=no"
17902 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17903 conftest
$ac_exeext conftest.
$ac_ext
17905 ac_res
=`eval echo '${'$as_ac_var'}'`
17906 { echo "$as_me:$LINENO: result: $ac_res" >&5
17907 echo "${ECHO_T}$ac_res" >&6; }
17908 if test `eval echo '${'$as_ac_var'}'` = yes; then
17909 cat >>confdefs.h
<<_ACEOF
17910 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17917 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
17918 # loading of modules.
17920 { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
17921 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
17922 if test -z "$DYNLOADFILE"
17924 case $ac_sys_system/$ac_sys_release in
17925 AIX
*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
17926 if test "$ac_cv_func_dlopen" = yes
17927 then DYNLOADFILE
="dynload_shlib.o"
17928 else DYNLOADFILE
="dynload_aix.o"
17931 BeOS
*) DYNLOADFILE
="dynload_beos.o";;
17932 hp
*|HP
*) DYNLOADFILE
="dynload_hpux.o";;
17933 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
17934 Darwin
/[0156]\..
*) DYNLOADFILE
="dynload_next.o";;
17935 atheos
*) DYNLOADFILE
="dynload_atheos.o";;
17937 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
17938 # out any dynamic loading
17939 if test "$ac_cv_func_dlopen" = yes
17940 then DYNLOADFILE
="dynload_shlib.o"
17941 else DYNLOADFILE
="dynload_stub.o"
17946 { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
17947 echo "${ECHO_T}$DYNLOADFILE" >&6; }
17948 if test "$DYNLOADFILE" != "dynload_stub.o"
17951 cat >>confdefs.h
<<\_ACEOF
17952 #define HAVE_DYNAMIC_LOADING 1
17957 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
17960 { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
17961 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
17962 if test -z "$MACHDEP_OBJS"
17964 MACHDEP_OBJS
=$extra_machdep_objs
17966 MACHDEP_OBJS
="$MACHDEP_OBJS $extra_machdep_objs"
17968 { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
17969 echo "${ECHO_T}MACHDEP_OBJS" >&6; }
17971 # checks for library functions
18071 for ac_func
in alarm setitimer getitimer bind_textdomain_codeset chown \
18072 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
18073 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
18074 getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \
18075 initgroups
kill killpg lchmod lchown lstat
mkfifo mknod mktime \
18076 mremap nice pathconf pause plock poll pthread_init \
18077 putenv readlink realpath \
18078 select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \
18080 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
18081 setlocale setregid setreuid setresuid setresgid \
18082 setsid setpgid setpgrp setuid setvbuf snprintf \
18083 sigaction siginterrupt sigrelse strftime \
18084 sysconf tcgetpgrp tcsetpgrp tempnam timegm
times tmpfile tmpnam tmpnam_r \
18085 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
18087 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18088 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18089 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18090 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18091 echo $ECHO_N "(cached) $ECHO_C" >&6
18093 cat >conftest.
$ac_ext <<_ACEOF
18096 cat confdefs.h
>>conftest.
$ac_ext
18097 cat >>conftest.
$ac_ext <<_ACEOF
18098 /* end confdefs.h. */
18099 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18100 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18101 #define $ac_func innocuous_$ac_func
18103 /* System header to define __stub macros and hopefully few prototypes,
18104 which can conflict with char $ac_func (); below.
18105 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18106 <limits.h> exists even on freestanding compilers. */
18109 # include <limits.h>
18111 # include <assert.h>
18116 /* Override any GCC internal prototype to avoid an error.
18117 Use char because int might match the return type of a GCC
18118 builtin and then its argument prototype would still apply. */
18123 /* The GNU C library defines this for functions which it implements
18124 to always fail with ENOSYS. Some functions are actually named
18125 something starting with __ and the normal name is an alias. */
18126 #if defined __stub_$ac_func || defined __stub___$ac_func
18133 return $ac_func ();
18138 rm -f conftest.
$ac_objext conftest
$ac_exeext
18139 if { (ac_try
="$ac_link"
18140 case "(($ac_try" in
18141 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18142 *) ac_try_echo=$ac_try;;
18144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18145 (eval "$ac_link") 2>conftest.er1
18147 grep -v '^ *+' conftest.er1 >conftest.err
18149 cat conftest.err >&5
18150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18151 (exit $ac_status); } && {
18152 test -z "$ac_c_werror_flag" ||
18153 test ! -s conftest.err
18154 } && test -s conftest$ac_exeext &&
18155 $as_test_x conftest$ac_exeext; then
18156 eval "$as_ac_var=yes"
18158 echo "$as_me: failed program was:" >&5
18159 sed 's/^/| /' conftest.$ac_ext >&5
18161 eval "$as_ac_var=no"
18164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18165 conftest$ac_exeext conftest.$ac_ext
18167 ac_res=`eval echo '${'$as_ac_var'}'`
18168 { echo "$as_me:$LINENO: result: $ac_res" >&5
18169 echo "${ECHO_T}$ac_res" >&6; }
18170 if test `eval echo '${'$as_ac_var'}'` = yes; then
18171 cat >>confdefs.h <<_ACEOF
18172 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18179 # For some functions, having a definition is not sufficient, since
18180 # we want to take their address.
18181 { echo "$as_me:$LINENO: checking for chroot" >&5
18182 echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
18183 cat >conftest.$ac_ext <<_ACEOF
18186 cat confdefs.h >>conftest.$ac_ext
18187 cat >>conftest.$ac_ext <<_ACEOF
18188 /* end confdefs.h. */
18189 #include <unistd.h>
18198 rm -f conftest.$ac_objext
18199 if { (ac_try="$ac_compile"
18200 case "(($ac_try" in
18201 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18202 *) ac_try_echo
=$ac_try;;
18204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18205 (eval "$ac_compile") 2>conftest.er1
18207 grep -v '^ *+' conftest.er1
>conftest.err
18209 cat conftest.err
>&5
18210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18211 (exit $ac_status); } && {
18212 test -z "$ac_c_werror_flag" ||
18213 test ! -s conftest.err
18214 } && test -s conftest.
$ac_objext; then
18216 cat >>confdefs.h
<<\_ACEOF
18217 #define HAVE_CHROOT 1
18220 { echo "$as_me:$LINENO: result: yes" >&5
18221 echo "${ECHO_T}yes" >&6; }
18223 echo "$as_me: failed program was:" >&5
18224 sed 's/^/| /' conftest.
$ac_ext >&5
18226 { echo "$as_me:$LINENO: result: no" >&5
18227 echo "${ECHO_T}no" >&6; }
18231 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18232 { echo "$as_me:$LINENO: checking for link" >&5
18233 echo $ECHO_N "checking for link... $ECHO_C" >&6; }
18234 cat >conftest.
$ac_ext <<_ACEOF
18237 cat confdefs.h
>>conftest.
$ac_ext
18238 cat >>conftest.
$ac_ext <<_ACEOF
18239 /* end confdefs.h. */
18240 #include <unistd.h>
18249 rm -f conftest.
$ac_objext
18250 if { (ac_try
="$ac_compile"
18251 case "(($ac_try" in
18252 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18253 *) ac_try_echo=$ac_try;;
18255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18256 (eval "$ac_compile") 2>conftest.er1
18258 grep -v '^ *+' conftest.er1 >conftest.err
18260 cat conftest.err >&5
18261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18262 (exit $ac_status); } && {
18263 test -z "$ac_c_werror_flag" ||
18264 test ! -s conftest.err
18265 } && test -s conftest.$ac_objext; then
18267 cat >>confdefs.h <<\_ACEOF
18268 #define HAVE_LINK 1
18271 { echo "$as_me:$LINENO: result: yes" >&5
18272 echo "${ECHO_T}yes" >&6; }
18274 echo "$as_me: failed program was:" >&5
18275 sed 's/^/| /' conftest.$ac_ext >&5
18277 { echo "$as_me:$LINENO: result: no" >&5
18278 echo "${ECHO_T}no" >&6; }
18282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18283 { echo "$as_me:$LINENO: checking for symlink" >&5
18284 echo $ECHO_N "checking for symlink... $ECHO_C" >&6; }
18285 cat >conftest.$ac_ext <<_ACEOF
18288 cat confdefs.h >>conftest.$ac_ext
18289 cat >>conftest.$ac_ext <<_ACEOF
18290 /* end confdefs.h. */
18291 #include <unistd.h>
18300 rm -f conftest.$ac_objext
18301 if { (ac_try="$ac_compile"
18302 case "(($ac_try" in
18303 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18304 *) ac_try_echo
=$ac_try;;
18306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18307 (eval "$ac_compile") 2>conftest.er1
18309 grep -v '^ *+' conftest.er1
>conftest.err
18311 cat conftest.err
>&5
18312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18313 (exit $ac_status); } && {
18314 test -z "$ac_c_werror_flag" ||
18315 test ! -s conftest.err
18316 } && test -s conftest.
$ac_objext; then
18318 cat >>confdefs.h
<<\_ACEOF
18319 #define HAVE_SYMLINK 1
18322 { echo "$as_me:$LINENO: result: yes" >&5
18323 echo "${ECHO_T}yes" >&6; }
18325 echo "$as_me: failed program was:" >&5
18326 sed 's/^/| /' conftest.
$ac_ext >&5
18328 { echo "$as_me:$LINENO: result: no" >&5
18329 echo "${ECHO_T}no" >&6; }
18333 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18334 { echo "$as_me:$LINENO: checking for fchdir" >&5
18335 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
18336 cat >conftest.
$ac_ext <<_ACEOF
18339 cat confdefs.h
>>conftest.
$ac_ext
18340 cat >>conftest.
$ac_ext <<_ACEOF
18341 /* end confdefs.h. */
18342 #include <unistd.h>
18351 rm -f conftest.
$ac_objext
18352 if { (ac_try
="$ac_compile"
18353 case "(($ac_try" in
18354 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18355 *) ac_try_echo=$ac_try;;
18357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18358 (eval "$ac_compile") 2>conftest.er1
18360 grep -v '^ *+' conftest.er1 >conftest.err
18362 cat conftest.err >&5
18363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18364 (exit $ac_status); } && {
18365 test -z "$ac_c_werror_flag" ||
18366 test ! -s conftest.err
18367 } && test -s conftest.$ac_objext; then
18369 cat >>confdefs.h <<\_ACEOF
18370 #define HAVE_FCHDIR 1
18373 { echo "$as_me:$LINENO: result: yes" >&5
18374 echo "${ECHO_T}yes" >&6; }
18376 echo "$as_me: failed program was:" >&5
18377 sed 's/^/| /' conftest.$ac_ext >&5
18379 { echo "$as_me:$LINENO: result: no" >&5
18380 echo "${ECHO_T}no" >&6; }
18384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18385 { echo "$as_me:$LINENO: checking for fsync" >&5
18386 echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
18387 cat >conftest.$ac_ext <<_ACEOF
18390 cat confdefs.h >>conftest.$ac_ext
18391 cat >>conftest.$ac_ext <<_ACEOF
18392 /* end confdefs.h. */
18393 #include <unistd.h>
18402 rm -f conftest.$ac_objext
18403 if { (ac_try="$ac_compile"
18404 case "(($ac_try" in
18405 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18406 *) ac_try_echo
=$ac_try;;
18408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18409 (eval "$ac_compile") 2>conftest.er1
18411 grep -v '^ *+' conftest.er1
>conftest.err
18413 cat conftest.err
>&5
18414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18415 (exit $ac_status); } && {
18416 test -z "$ac_c_werror_flag" ||
18417 test ! -s conftest.err
18418 } && test -s conftest.
$ac_objext; then
18420 cat >>confdefs.h
<<\_ACEOF
18421 #define HAVE_FSYNC 1
18424 { echo "$as_me:$LINENO: result: yes" >&5
18425 echo "${ECHO_T}yes" >&6; }
18427 echo "$as_me: failed program was:" >&5
18428 sed 's/^/| /' conftest.
$ac_ext >&5
18430 { echo "$as_me:$LINENO: result: no" >&5
18431 echo "${ECHO_T}no" >&6; }
18435 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18436 { echo "$as_me:$LINENO: checking for fdatasync" >&5
18437 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
18438 cat >conftest.
$ac_ext <<_ACEOF
18441 cat confdefs.h
>>conftest.
$ac_ext
18442 cat >>conftest.
$ac_ext <<_ACEOF
18443 /* end confdefs.h. */
18444 #include <unistd.h>
18453 rm -f conftest.
$ac_objext
18454 if { (ac_try
="$ac_compile"
18455 case "(($ac_try" in
18456 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18457 *) ac_try_echo=$ac_try;;
18459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18460 (eval "$ac_compile") 2>conftest.er1
18462 grep -v '^ *+' conftest.er1 >conftest.err
18464 cat conftest.err >&5
18465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466 (exit $ac_status); } && {
18467 test -z "$ac_c_werror_flag" ||
18468 test ! -s conftest.err
18469 } && test -s conftest.$ac_objext; then
18471 cat >>confdefs.h <<\_ACEOF
18472 #define HAVE_FDATASYNC 1
18475 { echo "$as_me:$LINENO: result: yes" >&5
18476 echo "${ECHO_T}yes" >&6; }
18478 echo "$as_me: failed program was:" >&5
18479 sed 's/^/| /' conftest.$ac_ext >&5
18481 { echo "$as_me:$LINENO: result: no" >&5
18482 echo "${ECHO_T}no" >&6; }
18486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18487 { echo "$as_me:$LINENO: checking for epoll" >&5
18488 echo $ECHO_N "checking for epoll... $ECHO_C" >&6; }
18489 cat >conftest.$ac_ext <<_ACEOF
18492 cat confdefs.h >>conftest.$ac_ext
18493 cat >>conftest.$ac_ext <<_ACEOF
18494 /* end confdefs.h. */
18495 #include <sys/epoll.h>
18499 void *x=epoll_create
18504 rm -f conftest.$ac_objext
18505 if { (ac_try="$ac_compile"
18506 case "(($ac_try" in
18507 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18508 *) ac_try_echo
=$ac_try;;
18510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18511 (eval "$ac_compile") 2>conftest.er1
18513 grep -v '^ *+' conftest.er1
>conftest.err
18515 cat conftest.err
>&5
18516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18517 (exit $ac_status); } && {
18518 test -z "$ac_c_werror_flag" ||
18519 test ! -s conftest.err
18520 } && test -s conftest.
$ac_objext; then
18522 cat >>confdefs.h
<<\_ACEOF
18523 #define HAVE_EPOLL 1
18526 { echo "$as_me:$LINENO: result: yes" >&5
18527 echo "${ECHO_T}yes" >&6; }
18529 echo "$as_me: failed program was:" >&5
18530 sed 's/^/| /' conftest.
$ac_ext >&5
18532 { echo "$as_me:$LINENO: result: no" >&5
18533 echo "${ECHO_T}no" >&6; }
18537 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18538 { echo "$as_me:$LINENO: checking for kqueue" >&5
18539 echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; }
18540 cat >conftest.
$ac_ext <<_ACEOF
18543 cat confdefs.h
>>conftest.
$ac_ext
18544 cat >>conftest.
$ac_ext <<_ACEOF
18545 /* end confdefs.h. */
18547 #include <sys/types.h>
18548 #include <sys/event.h>
18558 rm -f conftest.
$ac_objext
18559 if { (ac_try
="$ac_compile"
18560 case "(($ac_try" in
18561 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18562 *) ac_try_echo=$ac_try;;
18564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18565 (eval "$ac_compile") 2>conftest.er1
18567 grep -v '^ *+' conftest.er1 >conftest.err
18569 cat conftest.err >&5
18570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18571 (exit $ac_status); } && {
18572 test -z "$ac_c_werror_flag" ||
18573 test ! -s conftest.err
18574 } && test -s conftest.$ac_objext; then
18576 cat >>confdefs.h <<\_ACEOF
18577 #define HAVE_KQUEUE 1
18580 { echo "$as_me:$LINENO: result: yes" >&5
18581 echo "${ECHO_T}yes" >&6; }
18583 echo "$as_me: failed program was:" >&5
18584 sed 's/^/| /' conftest.$ac_ext >&5
18586 { echo "$as_me:$LINENO: result: no" >&5
18587 echo "${ECHO_T}no" >&6; }
18591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18592 # On some systems (eg. FreeBSD 5), we would find a definition of the
18593 # functions ctermid_r, setgroups in the library, but no prototype
18594 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
18595 # address to avoid compiler warnings and potential miscompilations
18596 # because of the missing prototypes.
18598 { echo "$as_me:$LINENO: checking for ctermid_r" >&5
18599 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; }
18600 cat >conftest.$ac_ext <<_ACEOF
18603 cat confdefs.h >>conftest.$ac_ext
18604 cat >>conftest.$ac_ext <<_ACEOF
18605 /* end confdefs.h. */
18607 #include "confdefs.h"
18613 void* p = ctermid_r
18618 rm -f conftest.$ac_objext
18619 if { (ac_try="$ac_compile"
18620 case "(($ac_try" in
18621 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18622 *) ac_try_echo
=$ac_try;;
18624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18625 (eval "$ac_compile") 2>conftest.er1
18627 grep -v '^ *+' conftest.er1
>conftest.err
18629 cat conftest.err
>&5
18630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18631 (exit $ac_status); } && {
18632 test -z "$ac_c_werror_flag" ||
18633 test ! -s conftest.err
18634 } && test -s conftest.
$ac_objext; then
18636 cat >>confdefs.h
<<\_ACEOF
18637 #define HAVE_CTERMID_R 1
18640 { echo "$as_me:$LINENO: result: yes" >&5
18641 echo "${ECHO_T}yes" >&6; }
18643 echo "$as_me: failed program was:" >&5
18644 sed 's/^/| /' conftest.
$ac_ext >&5
18646 { echo "$as_me:$LINENO: result: no" >&5
18647 echo "${ECHO_T}no" >&6; }
18651 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18653 { echo "$as_me:$LINENO: checking for flock" >&5
18654 echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
18655 cat >conftest.
$ac_ext <<_ACEOF
18658 cat confdefs.h
>>conftest.
$ac_ext
18659 cat >>conftest.
$ac_ext <<_ACEOF
18660 /* end confdefs.h. */
18662 #include "confdefs.h"
18663 #include <sys/file.h>
18673 rm -f conftest.
$ac_objext
18674 if { (ac_try
="$ac_compile"
18675 case "(($ac_try" in
18676 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18677 *) ac_try_echo=$ac_try;;
18679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18680 (eval "$ac_compile") 2>conftest.er1
18682 grep -v '^ *+' conftest.er1 >conftest.err
18684 cat conftest.err >&5
18685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18686 (exit $ac_status); } && {
18687 test -z "$ac_c_werror_flag" ||
18688 test ! -s conftest.err
18689 } && test -s conftest.$ac_objext; then
18691 cat >>confdefs.h <<\_ACEOF
18692 #define HAVE_FLOCK 1
18695 { echo "$as_me:$LINENO: result: yes" >&5
18696 echo "${ECHO_T}yes" >&6; }
18698 echo "$as_me: failed program was:" >&5
18699 sed 's/^/| /' conftest.$ac_ext >&5
18701 { echo "$as_me:$LINENO: result: no" >&5
18702 echo "${ECHO_T}no" >&6; }
18706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18708 { echo "$as_me:$LINENO: checking for getpagesize" >&5
18709 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
18710 cat >conftest.$ac_ext <<_ACEOF
18713 cat confdefs.h >>conftest.$ac_ext
18714 cat >>conftest.$ac_ext <<_ACEOF
18715 /* end confdefs.h. */
18717 #include "confdefs.h"
18718 #include <unistd.h>
18723 void* p = getpagesize
18728 rm -f conftest.$ac_objext
18729 if { (ac_try="$ac_compile"
18730 case "(($ac_try" in
18731 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18732 *) ac_try_echo
=$ac_try;;
18734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18735 (eval "$ac_compile") 2>conftest.er1
18737 grep -v '^ *+' conftest.er1
>conftest.err
18739 cat conftest.err
>&5
18740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18741 (exit $ac_status); } && {
18742 test -z "$ac_c_werror_flag" ||
18743 test ! -s conftest.err
18744 } && test -s conftest.
$ac_objext; then
18746 cat >>confdefs.h
<<\_ACEOF
18747 #define HAVE_GETPAGESIZE 1
18750 { echo "$as_me:$LINENO: result: yes" >&5
18751 echo "${ECHO_T}yes" >&6; }
18753 echo "$as_me: failed program was:" >&5
18754 sed 's/^/| /' conftest.
$ac_ext >&5
18756 { echo "$as_me:$LINENO: result: no" >&5
18757 echo "${ECHO_T}no" >&6; }
18761 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18763 for ac_prog
in true
18765 # Extract the first word of "$ac_prog", so it can be a program name with args.
18766 set dummy
$ac_prog; ac_word
=$2
18767 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18769 if test "${ac_cv_prog_TRUE+set}" = set; then
18770 echo $ECHO_N "(cached) $ECHO_C" >&6
18772 if test -n "$TRUE"; then
18773 ac_cv_prog_TRUE
="$TRUE" # Let the user override the test.
18775 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18776 for as_dir
in $PATH
18779 test -z "$as_dir" && as_dir
=.
18780 for ac_exec_ext
in '' $ac_executable_extensions; do
18781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18782 ac_cv_prog_TRUE
="$ac_prog"
18783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18792 TRUE
=$ac_cv_prog_TRUE
18793 if test -n "$TRUE"; then
18794 { echo "$as_me:$LINENO: result: $TRUE" >&5
18795 echo "${ECHO_T}$TRUE" >&6; }
18797 { echo "$as_me:$LINENO: result: no" >&5
18798 echo "${ECHO_T}no" >&6; }
18802 test -n "$TRUE" && break
18804 test -n "$TRUE" || TRUE
="/bin/true"
18807 { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
18808 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
18809 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
18810 echo $ECHO_N "(cached) $ECHO_C" >&6
18812 ac_check_lib_save_LIBS
=$LIBS
18814 cat >conftest.
$ac_ext <<_ACEOF
18817 cat confdefs.h
>>conftest.
$ac_ext
18818 cat >>conftest.
$ac_ext <<_ACEOF
18819 /* end confdefs.h. */
18821 /* Override any GCC internal prototype to avoid an error.
18822 Use char because int might match the return type of a GCC
18823 builtin and then its argument prototype would still apply. */
18831 return inet_aton ();
18836 rm -f conftest.
$ac_objext conftest
$ac_exeext
18837 if { (ac_try
="$ac_link"
18838 case "(($ac_try" in
18839 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18840 *) ac_try_echo=$ac_try;;
18842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18843 (eval "$ac_link") 2>conftest.er1
18845 grep -v '^ *+' conftest.er1 >conftest.err
18847 cat conftest.err >&5
18848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849 (exit $ac_status); } && {
18850 test -z "$ac_c_werror_flag" ||
18851 test ! -s conftest.err
18852 } && test -s conftest$ac_exeext &&
18853 $as_test_x conftest$ac_exeext; then
18854 ac_cv_lib_c_inet_aton=yes
18856 echo "$as_me: failed program was:" >&5
18857 sed 's/^/| /' conftest.$ac_ext >&5
18859 ac_cv_lib_c_inet_aton=no
18862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18863 conftest$ac_exeext conftest.$ac_ext
18864 LIBS=$ac_check_lib_save_LIBS
18866 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
18867 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
18868 if test $ac_cv_lib_c_inet_aton = yes; then
18872 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
18873 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
18874 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
18875 echo $ECHO_N "(cached) $ECHO_C" >&6
18877 ac_check_lib_save_LIBS=$LIBS
18878 LIBS="-lresolv $LIBS"
18879 cat >conftest.$ac_ext <<_ACEOF
18882 cat confdefs.h >>conftest.$ac_ext
18883 cat >>conftest.$ac_ext <<_ACEOF
18884 /* end confdefs.h. */
18886 /* Override any GCC internal prototype to avoid an error.
18887 Use char because int might match the return type of a GCC
18888 builtin and then its argument prototype would still apply. */
18896 return inet_aton ();
18901 rm -f conftest.$ac_objext conftest$ac_exeext
18902 if { (ac_try="$ac_link"
18903 case "(($ac_try" in
18904 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18905 *) ac_try_echo
=$ac_try;;
18907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18908 (eval "$ac_link") 2>conftest.er1
18910 grep -v '^ *+' conftest.er1
>conftest.err
18912 cat conftest.err
>&5
18913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18914 (exit $ac_status); } && {
18915 test -z "$ac_c_werror_flag" ||
18916 test ! -s conftest.err
18917 } && test -s conftest
$ac_exeext &&
18918 $as_test_x conftest
$ac_exeext; then
18919 ac_cv_lib_resolv_inet_aton
=yes
18921 echo "$as_me: failed program was:" >&5
18922 sed 's/^/| /' conftest.
$ac_ext >&5
18924 ac_cv_lib_resolv_inet_aton
=no
18927 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18928 conftest
$ac_exeext conftest.
$ac_ext
18929 LIBS
=$ac_check_lib_save_LIBS
18931 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
18932 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
18933 if test $ac_cv_lib_resolv_inet_aton = yes; then
18934 cat >>confdefs.h
<<_ACEOF
18935 #define HAVE_LIBRESOLV 1
18938 LIBS
="-lresolv $LIBS"
18946 # On Tru64, chflags seems to be present, but calling it will
18948 { echo "$as_me:$LINENO: checking for chflags" >&5
18949 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
18950 if test "${ac_cv_have_chflags+set}" = set; then
18951 echo $ECHO_N "(cached) $ECHO_C" >&6
18953 if test "$cross_compiling" = yes; then
18954 ac_cv_have_chflags
=cross
18956 cat >conftest.
$ac_ext <<_ACEOF
18959 cat confdefs.h
>>conftest.
$ac_ext
18960 cat >>conftest.
$ac_ext <<_ACEOF
18961 /* end confdefs.h. */
18963 #include <sys/stat.h>
18964 #include <unistd.h>
18965 int main(int argc, char*argv[])
18967 if(chflags(argv[0], 0) != 0)
18973 rm -f conftest
$ac_exeext
18974 if { (ac_try
="$ac_link"
18975 case "(($ac_try" in
18976 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18977 *) ac_try_echo=$ac_try;;
18979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18980 (eval "$ac_link") 2>&5
18982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18983 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18984 { (case "(($ac_try" in
18985 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18986 *) ac_try_echo
=$ac_try;;
18988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18989 (eval "$ac_try") 2>&5
18991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18992 (exit $ac_status); }; }; then
18993 ac_cv_have_chflags
=yes
18995 echo "$as_me: program exited with status $ac_status" >&5
18996 echo "$as_me: failed program was:" >&5
18997 sed 's/^/| /' conftest.
$ac_ext >&5
18999 ( exit $ac_status )
19000 ac_cv_have_chflags
=no
19002 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
19008 { echo "$as_me:$LINENO: result: $ac_cv_have_chflags" >&5
19009 echo "${ECHO_T}$ac_cv_have_chflags" >&6; }
19010 if test "$ac_cv_have_chflags" = cross
; then
19011 { echo "$as_me:$LINENO: checking for chflags" >&5
19012 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
19013 if test "${ac_cv_func_chflags+set}" = set; then
19014 echo $ECHO_N "(cached) $ECHO_C" >&6
19016 cat >conftest.
$ac_ext <<_ACEOF
19019 cat confdefs.h
>>conftest.
$ac_ext
19020 cat >>conftest.
$ac_ext <<_ACEOF
19021 /* end confdefs.h. */
19022 /* Define chflags to an innocuous variant, in case <limits.h> declares chflags.
19023 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19024 #define chflags innocuous_chflags
19026 /* System header to define __stub macros and hopefully few prototypes,
19027 which can conflict with char chflags (); below.
19028 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19029 <limits.h> exists even on freestanding compilers. */
19032 # include <limits.h>
19034 # include <assert.h>
19039 /* Override any GCC internal prototype to avoid an error.
19040 Use char because int might match the return type of a GCC
19041 builtin and then its argument prototype would still apply. */
19046 /* The GNU C library defines this for functions which it implements
19047 to always fail with ENOSYS. Some functions are actually named
19048 something starting with __ and the normal name is an alias. */
19049 #if defined __stub_chflags || defined __stub___chflags
19061 rm -f conftest.
$ac_objext conftest
$ac_exeext
19062 if { (ac_try
="$ac_link"
19063 case "(($ac_try" in
19064 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19065 *) ac_try_echo=$ac_try;;
19067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19068 (eval "$ac_link") 2>conftest.er1
19070 grep -v '^ *+' conftest.er1 >conftest.err
19072 cat conftest.err >&5
19073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19074 (exit $ac_status); } && {
19075 test -z "$ac_c_werror_flag" ||
19076 test ! -s conftest.err
19077 } && test -s conftest$ac_exeext &&
19078 $as_test_x conftest$ac_exeext; then
19079 ac_cv_func_chflags=yes
19081 echo "$as_me: failed program was:" >&5
19082 sed 's/^/| /' conftest.$ac_ext >&5
19084 ac_cv_func_chflags=no
19087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19088 conftest$ac_exeext conftest.$ac_ext
19090 { echo "$as_me:$LINENO: result: $ac_cv_func_chflags" >&5
19091 echo "${ECHO_T}$ac_cv_func_chflags" >&6; }
19092 if test $ac_cv_func_chflags = yes; then
19093 ac_cv_have_chflags="yes"
19095 ac_cv_have_chflags="no"
19099 if test "$ac_cv_have_chflags" = yes ; then
19101 cat >>confdefs.h <<\_ACEOF
19102 #define HAVE_CHFLAGS 1
19107 { echo "$as_me:$LINENO: checking for lchflags" >&5
19108 echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
19109 if test "${ac_cv_have_lchflags+set}" = set; then
19110 echo $ECHO_N "(cached) $ECHO_C" >&6
19112 if test "$cross_compiling" = yes; then
19113 ac_cv_have_lchflags=cross
19115 cat >conftest.$ac_ext <<_ACEOF
19118 cat confdefs.h >>conftest.$ac_ext
19119 cat >>conftest.$ac_ext <<_ACEOF
19120 /* end confdefs.h. */
19122 #include <sys/stat.h>
19123 #include <unistd.h>
19124 int main(int argc, char*argv[])
19126 if(lchflags(argv[0], 0) != 0)
19132 rm -f conftest$ac_exeext
19133 if { (ac_try="$ac_link"
19134 case "(($ac_try" in
19135 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19136 *) ac_try_echo
=$ac_try;;
19138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19139 (eval "$ac_link") 2>&5
19141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19142 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19143 { (case "(($ac_try" in
19144 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19145 *) ac_try_echo=$ac_try;;
19147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19148 (eval "$ac_try") 2>&5
19150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19151 (exit $ac_status); }; }; then
19152 ac_cv_have_lchflags=yes
19154 echo "$as_me: program exited with status $ac_status" >&5
19155 echo "$as_me: failed program was:" >&5
19156 sed 's/^/| /' conftest.$ac_ext >&5
19158 ( exit $ac_status )
19159 ac_cv_have_lchflags=no
19161 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19167 { echo "$as_me:$LINENO: result: $ac_cv_have_lchflags" >&5
19168 echo "${ECHO_T}$ac_cv_have_lchflags" >&6; }
19169 if test "$ac_cv_have_lchflags" = cross ; then
19170 { echo "$as_me:$LINENO: checking for lchflags" >&5
19171 echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
19172 if test "${ac_cv_func_lchflags+set}" = set; then
19173 echo $ECHO_N "(cached) $ECHO_C" >&6
19175 cat >conftest.$ac_ext <<_ACEOF
19178 cat confdefs.h >>conftest.$ac_ext
19179 cat >>conftest.$ac_ext <<_ACEOF
19180 /* end confdefs.h. */
19181 /* Define lchflags to an innocuous variant, in case <limits.h> declares lchflags.
19182 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19183 #define lchflags innocuous_lchflags
19185 /* System header to define __stub macros and hopefully few prototypes,
19186 which can conflict with char lchflags (); below.
19187 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19188 <limits.h> exists even on freestanding compilers. */
19191 # include <limits.h>
19193 # include <assert.h>
19198 /* Override any GCC internal prototype to avoid an error.
19199 Use char because int might match the return type of a GCC
19200 builtin and then its argument prototype would still apply. */
19205 /* The GNU C library defines this for functions which it implements
19206 to always fail with ENOSYS. Some functions are actually named
19207 something starting with __ and the normal name is an alias. */
19208 #if defined __stub_lchflags || defined __stub___lchflags
19215 return lchflags ();
19220 rm -f conftest.$ac_objext conftest$ac_exeext
19221 if { (ac_try="$ac_link"
19222 case "(($ac_try" in
19223 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19224 *) ac_try_echo
=$ac_try;;
19226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19227 (eval "$ac_link") 2>conftest.er1
19229 grep -v '^ *+' conftest.er1
>conftest.err
19231 cat conftest.err
>&5
19232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19233 (exit $ac_status); } && {
19234 test -z "$ac_c_werror_flag" ||
19235 test ! -s conftest.err
19236 } && test -s conftest
$ac_exeext &&
19237 $as_test_x conftest
$ac_exeext; then
19238 ac_cv_func_lchflags
=yes
19240 echo "$as_me: failed program was:" >&5
19241 sed 's/^/| /' conftest.
$ac_ext >&5
19243 ac_cv_func_lchflags
=no
19246 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19247 conftest
$ac_exeext conftest.
$ac_ext
19249 { echo "$as_me:$LINENO: result: $ac_cv_func_lchflags" >&5
19250 echo "${ECHO_T}$ac_cv_func_lchflags" >&6; }
19251 if test $ac_cv_func_lchflags = yes; then
19252 ac_cv_have_lchflags
="yes"
19254 ac_cv_have_lchflags
="no"
19258 if test "$ac_cv_have_lchflags" = yes ; then
19260 cat >>confdefs.h
<<\_ACEOF
19261 #define HAVE_LCHFLAGS 1
19266 case $ac_sys_system/$ac_sys_release in
19268 _CUR_CFLAGS
="${CFLAGS}"
19269 _CUR_LDFLAGS
="${LDFLAGS}"
19270 CFLAGS
="${CFLAGS} -Wl,-search_paths_first"
19271 LDFLAGS
="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
19275 { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
19276 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
19277 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
19278 echo $ECHO_N "(cached) $ECHO_C" >&6
19280 ac_check_lib_save_LIBS
=$LIBS
19282 cat >conftest.
$ac_ext <<_ACEOF
19285 cat confdefs.h
>>conftest.
$ac_ext
19286 cat >>conftest.
$ac_ext <<_ACEOF
19287 /* end confdefs.h. */
19289 /* Override any GCC internal prototype to avoid an error.
19290 Use char because int might match the return type of a GCC
19291 builtin and then its argument prototype would still apply. */
19295 char inflateCopy ();
19299 return inflateCopy ();
19304 rm -f conftest.
$ac_objext conftest
$ac_exeext
19305 if { (ac_try
="$ac_link"
19306 case "(($ac_try" in
19307 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19308 *) ac_try_echo=$ac_try;;
19310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19311 (eval "$ac_link") 2>conftest.er1
19313 grep -v '^ *+' conftest.er1 >conftest.err
19315 cat conftest.err >&5
19316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19317 (exit $ac_status); } && {
19318 test -z "$ac_c_werror_flag" ||
19319 test ! -s conftest.err
19320 } && test -s conftest$ac_exeext &&
19321 $as_test_x conftest$ac_exeext; then
19322 ac_cv_lib_z_inflateCopy=yes
19324 echo "$as_me: failed program was:" >&5
19325 sed 's/^/| /' conftest.$ac_ext >&5
19327 ac_cv_lib_z_inflateCopy=no
19330 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19331 conftest$ac_exeext conftest.$ac_ext
19332 LIBS=$ac_check_lib_save_LIBS
19334 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
19335 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
19336 if test $ac_cv_lib_z_inflateCopy = yes; then
19338 cat >>confdefs.h <<\_ACEOF
19339 #define HAVE_ZLIB_COPY 1
19345 case $ac_sys_system/$ac_sys_release in
19347 CFLAGS="${_CUR_CFLAGS}"
19348 LDFLAGS="${_CUR_LDFLAGS}"
19352 { echo "$as_me:$LINENO: checking for hstrerror" >&5
19353 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
19354 cat >conftest.$ac_ext <<_ACEOF
19357 cat confdefs.h >>conftest.$ac_ext
19358 cat >>conftest.$ac_ext <<_ACEOF
19359 /* end confdefs.h. */
19361 #include "confdefs.h"
19367 void* p = hstrerror; hstrerror(0)
19372 rm -f conftest.$ac_objext conftest$ac_exeext
19373 if { (ac_try="$ac_link"
19374 case "(($ac_try" in
19375 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19376 *) ac_try_echo
=$ac_try;;
19378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19379 (eval "$ac_link") 2>conftest.er1
19381 grep -v '^ *+' conftest.er1
>conftest.err
19383 cat conftest.err
>&5
19384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19385 (exit $ac_status); } && {
19386 test -z "$ac_c_werror_flag" ||
19387 test ! -s conftest.err
19388 } && test -s conftest
$ac_exeext &&
19389 $as_test_x conftest
$ac_exeext; then
19391 cat >>confdefs.h
<<\_ACEOF
19392 #define HAVE_HSTRERROR 1
19395 { echo "$as_me:$LINENO: result: yes" >&5
19396 echo "${ECHO_T}yes" >&6; }
19398 echo "$as_me: failed program was:" >&5
19399 sed 's/^/| /' conftest.
$ac_ext >&5
19401 { echo "$as_me:$LINENO: result: no" >&5
19402 echo "${ECHO_T}no" >&6; }
19406 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19407 conftest
$ac_exeext conftest.
$ac_ext
19409 { echo "$as_me:$LINENO: checking for inet_aton" >&5
19410 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
19411 cat >conftest.
$ac_ext <<_ACEOF
19414 cat confdefs.h
>>conftest.
$ac_ext
19415 cat >>conftest.
$ac_ext <<_ACEOF
19416 /* end confdefs.h. */
19418 #include "confdefs.h"
19419 #include <sys/types.h>
19420 #include <sys/socket.h>
19421 #include <netinet/in.h>
19422 #include <arpa/inet.h>
19427 void* p = inet_aton;inet_aton(0,0)
19432 rm -f conftest.
$ac_objext conftest
$ac_exeext
19433 if { (ac_try
="$ac_link"
19434 case "(($ac_try" in
19435 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19436 *) ac_try_echo=$ac_try;;
19438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19439 (eval "$ac_link") 2>conftest.er1
19441 grep -v '^ *+' conftest.er1 >conftest.err
19443 cat conftest.err >&5
19444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19445 (exit $ac_status); } && {
19446 test -z "$ac_c_werror_flag" ||
19447 test ! -s conftest.err
19448 } && test -s conftest$ac_exeext &&
19449 $as_test_x conftest$ac_exeext; then
19451 cat >>confdefs.h <<\_ACEOF
19452 #define HAVE_INET_ATON 1
19455 { echo "$as_me:$LINENO: result: yes" >&5
19456 echo "${ECHO_T}yes" >&6; }
19458 echo "$as_me: failed program was:" >&5
19459 sed 's/^/| /' conftest.$ac_ext >&5
19461 { echo "$as_me:$LINENO: result: no" >&5
19462 echo "${ECHO_T}no" >&6; }
19466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19467 conftest$ac_exeext conftest.$ac_ext
19469 { echo "$as_me:$LINENO: checking for inet_pton" >&5
19470 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
19471 cat >conftest.$ac_ext <<_ACEOF
19474 cat confdefs.h >>conftest.$ac_ext
19475 cat >>conftest.$ac_ext <<_ACEOF
19476 /* end confdefs.h. */
19478 #include "confdefs.h"
19479 #include <sys/types.h>
19480 #include <sys/socket.h>
19481 #include <netinet/in.h>
19482 #include <arpa/inet.h>
19487 void* p = inet_pton
19492 rm -f conftest.$ac_objext
19493 if { (ac_try="$ac_compile"
19494 case "(($ac_try" in
19495 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19496 *) ac_try_echo
=$ac_try;;
19498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19499 (eval "$ac_compile") 2>conftest.er1
19501 grep -v '^ *+' conftest.er1
>conftest.err
19503 cat conftest.err
>&5
19504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19505 (exit $ac_status); } && {
19506 test -z "$ac_c_werror_flag" ||
19507 test ! -s conftest.err
19508 } && test -s conftest.
$ac_objext; then
19510 cat >>confdefs.h
<<\_ACEOF
19511 #define HAVE_INET_PTON 1
19514 { echo "$as_me:$LINENO: result: yes" >&5
19515 echo "${ECHO_T}yes" >&6; }
19517 echo "$as_me: failed program was:" >&5
19518 sed 's/^/| /' conftest.
$ac_ext >&5
19520 { echo "$as_me:$LINENO: result: no" >&5
19521 echo "${ECHO_T}no" >&6; }
19525 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19527 # On some systems, setgroups is in unistd.h, on others, in grp.h
19528 { echo "$as_me:$LINENO: checking for setgroups" >&5
19529 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
19530 cat >conftest.
$ac_ext <<_ACEOF
19533 cat confdefs.h
>>conftest.
$ac_ext
19534 cat >>conftest.
$ac_ext <<_ACEOF
19535 /* end confdefs.h. */
19537 #include "confdefs.h"
19538 #include <unistd.h>
19546 void* p = setgroups
19551 rm -f conftest.
$ac_objext
19552 if { (ac_try
="$ac_compile"
19553 case "(($ac_try" in
19554 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19555 *) ac_try_echo=$ac_try;;
19557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19558 (eval "$ac_compile") 2>conftest.er1
19560 grep -v '^ *+' conftest.er1 >conftest.err
19562 cat conftest.err >&5
19563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19564 (exit $ac_status); } && {
19565 test -z "$ac_c_werror_flag" ||
19566 test ! -s conftest.err
19567 } && test -s conftest.$ac_objext; then
19569 cat >>confdefs.h <<\_ACEOF
19570 #define HAVE_SETGROUPS 1
19573 { echo "$as_me:$LINENO: result: yes" >&5
19574 echo "${ECHO_T}yes" >&6; }
19576 echo "$as_me: failed program was:" >&5
19577 sed 's/^/| /' conftest.$ac_ext >&5
19579 { echo "$as_me:$LINENO: result: no" >&5
19580 echo "${ECHO_T}no" >&6; }
19584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19586 # check for openpty and forkpty
19589 for ac_func in openpty
19591 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
19592 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19593 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19594 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19595 echo $ECHO_N "(cached) $ECHO_C" >&6
19597 cat >conftest.$ac_ext <<_ACEOF
19600 cat confdefs.h >>conftest.$ac_ext
19601 cat >>conftest.$ac_ext <<_ACEOF
19602 /* end confdefs.h. */
19603 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19604 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19605 #define $ac_func innocuous_$ac_func
19607 /* System header to define __stub macros and hopefully few prototypes,
19608 which can conflict with char $ac_func (); below.
19609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19610 <limits.h> exists even on freestanding compilers. */
19613 # include <limits.h>
19615 # include <assert.h>
19620 /* Override any GCC internal prototype to avoid an error.
19621 Use char because int might match the return type of a GCC
19622 builtin and then its argument prototype would still apply. */
19627 /* The GNU C library defines this for functions which it implements
19628 to always fail with ENOSYS. Some functions are actually named
19629 something starting with __ and the normal name is an alias. */
19630 #if defined __stub_$ac_func || defined __stub___$ac_func
19637 return $ac_func ();
19642 rm -f conftest.$ac_objext conftest$ac_exeext
19643 if { (ac_try="$ac_link"
19644 case "(($ac_try" in
19645 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19646 *) ac_try_echo
=$ac_try;;
19648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19649 (eval "$ac_link") 2>conftest.er1
19651 grep -v '^ *+' conftest.er1
>conftest.err
19653 cat conftest.err
>&5
19654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655 (exit $ac_status); } && {
19656 test -z "$ac_c_werror_flag" ||
19657 test ! -s conftest.err
19658 } && test -s conftest
$ac_exeext &&
19659 $as_test_x conftest
$ac_exeext; then
19660 eval "$as_ac_var=yes"
19662 echo "$as_me: failed program was:" >&5
19663 sed 's/^/| /' conftest.
$ac_ext >&5
19665 eval "$as_ac_var=no"
19668 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19669 conftest
$ac_exeext conftest.
$ac_ext
19671 ac_res
=`eval echo '${'$as_ac_var'}'`
19672 { echo "$as_me:$LINENO: result: $ac_res" >&5
19673 echo "${ECHO_T}$ac_res" >&6; }
19674 if test `eval echo '${'$as_ac_var'}'` = yes; then
19675 cat >>confdefs.h
<<_ACEOF
19676 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19680 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
19681 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
19682 if test "${ac_cv_lib_util_openpty+set}" = set; then
19683 echo $ECHO_N "(cached) $ECHO_C" >&6
19685 ac_check_lib_save_LIBS
=$LIBS
19686 LIBS
="-lutil $LIBS"
19687 cat >conftest.
$ac_ext <<_ACEOF
19690 cat confdefs.h
>>conftest.
$ac_ext
19691 cat >>conftest.
$ac_ext <<_ACEOF
19692 /* end confdefs.h. */
19694 /* Override any GCC internal prototype to avoid an error.
19695 Use char because int might match the return type of a GCC
19696 builtin and then its argument prototype would still apply. */
19709 rm -f conftest.
$ac_objext conftest
$ac_exeext
19710 if { (ac_try
="$ac_link"
19711 case "(($ac_try" in
19712 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19713 *) ac_try_echo=$ac_try;;
19715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19716 (eval "$ac_link") 2>conftest.er1
19718 grep -v '^ *+' conftest.er1 >conftest.err
19720 cat conftest.err >&5
19721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722 (exit $ac_status); } && {
19723 test -z "$ac_c_werror_flag" ||
19724 test ! -s conftest.err
19725 } && test -s conftest$ac_exeext &&
19726 $as_test_x conftest$ac_exeext; then
19727 ac_cv_lib_util_openpty=yes
19729 echo "$as_me: failed program was:" >&5
19730 sed 's/^/| /' conftest.$ac_ext >&5
19732 ac_cv_lib_util_openpty=no
19735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19736 conftest$ac_exeext conftest.$ac_ext
19737 LIBS=$ac_check_lib_save_LIBS
19739 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
19740 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
19741 if test $ac_cv_lib_util_openpty = yes; then
19742 cat >>confdefs.h <<\_ACEOF
19743 #define HAVE_OPENPTY 1
19745 LIBS="$LIBS -lutil"
19747 { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
19748 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
19749 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
19750 echo $ECHO_N "(cached) $ECHO_C" >&6
19752 ac_check_lib_save_LIBS=$LIBS
19754 cat >conftest.$ac_ext <<_ACEOF
19757 cat confdefs.h >>conftest.$ac_ext
19758 cat >>conftest.$ac_ext <<_ACEOF
19759 /* end confdefs.h. */
19761 /* Override any GCC internal prototype to avoid an error.
19762 Use char because int might match the return type of a GCC
19763 builtin and then its argument prototype would still apply. */
19776 rm -f conftest.$ac_objext conftest$ac_exeext
19777 if { (ac_try="$ac_link"
19778 case "(($ac_try" in
19779 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19780 *) ac_try_echo
=$ac_try;;
19782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19783 (eval "$ac_link") 2>conftest.er1
19785 grep -v '^ *+' conftest.er1
>conftest.err
19787 cat conftest.err
>&5
19788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789 (exit $ac_status); } && {
19790 test -z "$ac_c_werror_flag" ||
19791 test ! -s conftest.err
19792 } && test -s conftest
$ac_exeext &&
19793 $as_test_x conftest
$ac_exeext; then
19794 ac_cv_lib_bsd_openpty
=yes
19796 echo "$as_me: failed program was:" >&5
19797 sed 's/^/| /' conftest.
$ac_ext >&5
19799 ac_cv_lib_bsd_openpty
=no
19802 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19803 conftest
$ac_exeext conftest.
$ac_ext
19804 LIBS
=$ac_check_lib_save_LIBS
19806 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
19807 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
19808 if test $ac_cv_lib_bsd_openpty = yes; then
19809 cat >>confdefs.h
<<\_ACEOF
19810 #define HAVE_OPENPTY 1
19823 for ac_func
in forkpty
19825 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19826 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19827 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19828 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19829 echo $ECHO_N "(cached) $ECHO_C" >&6
19831 cat >conftest.
$ac_ext <<_ACEOF
19834 cat confdefs.h
>>conftest.
$ac_ext
19835 cat >>conftest.
$ac_ext <<_ACEOF
19836 /* end confdefs.h. */
19837 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19838 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19839 #define $ac_func innocuous_$ac_func
19841 /* System header to define __stub macros and hopefully few prototypes,
19842 which can conflict with char $ac_func (); below.
19843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19844 <limits.h> exists even on freestanding compilers. */
19847 # include <limits.h>
19849 # include <assert.h>
19854 /* Override any GCC internal prototype to avoid an error.
19855 Use char because int might match the return type of a GCC
19856 builtin and then its argument prototype would still apply. */
19861 /* The GNU C library defines this for functions which it implements
19862 to always fail with ENOSYS. Some functions are actually named
19863 something starting with __ and the normal name is an alias. */
19864 #if defined __stub_$ac_func || defined __stub___$ac_func
19871 return $ac_func ();
19876 rm -f conftest.
$ac_objext conftest
$ac_exeext
19877 if { (ac_try
="$ac_link"
19878 case "(($ac_try" in
19879 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19880 *) ac_try_echo=$ac_try;;
19882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19883 (eval "$ac_link") 2>conftest.er1
19885 grep -v '^ *+' conftest.er1 >conftest.err
19887 cat conftest.err >&5
19888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19889 (exit $ac_status); } && {
19890 test -z "$ac_c_werror_flag" ||
19891 test ! -s conftest.err
19892 } && test -s conftest$ac_exeext &&
19893 $as_test_x conftest$ac_exeext; then
19894 eval "$as_ac_var=yes"
19896 echo "$as_me: failed program was:" >&5
19897 sed 's/^/| /' conftest.$ac_ext >&5
19899 eval "$as_ac_var=no"
19902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19903 conftest$ac_exeext conftest.$ac_ext
19905 ac_res=`eval echo '${'$as_ac_var'}'`
19906 { echo "$as_me:$LINENO: result: $ac_res" >&5
19907 echo "${ECHO_T}$ac_res" >&6; }
19908 if test `eval echo '${'$as_ac_var'}'` = yes; then
19909 cat >>confdefs.h <<_ACEOF
19910 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
19914 { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
19915 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
19916 if test "${ac_cv_lib_util_forkpty+set}" = set; then
19917 echo $ECHO_N "(cached) $ECHO_C" >&6
19919 ac_check_lib_save_LIBS=$LIBS
19920 LIBS="-lutil $LIBS"
19921 cat >conftest.$ac_ext <<_ACEOF
19924 cat confdefs.h >>conftest.$ac_ext
19925 cat >>conftest.$ac_ext <<_ACEOF
19926 /* end confdefs.h. */
19928 /* Override any GCC internal prototype to avoid an error.
19929 Use char because int might match the return type of a GCC
19930 builtin and then its argument prototype would still apply. */
19943 rm -f conftest.$ac_objext conftest$ac_exeext
19944 if { (ac_try="$ac_link"
19945 case "(($ac_try" in
19946 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19947 *) ac_try_echo
=$ac_try;;
19949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19950 (eval "$ac_link") 2>conftest.er1
19952 grep -v '^ *+' conftest.er1
>conftest.err
19954 cat conftest.err
>&5
19955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956 (exit $ac_status); } && {
19957 test -z "$ac_c_werror_flag" ||
19958 test ! -s conftest.err
19959 } && test -s conftest
$ac_exeext &&
19960 $as_test_x conftest
$ac_exeext; then
19961 ac_cv_lib_util_forkpty
=yes
19963 echo "$as_me: failed program was:" >&5
19964 sed 's/^/| /' conftest.
$ac_ext >&5
19966 ac_cv_lib_util_forkpty
=no
19969 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19970 conftest
$ac_exeext conftest.
$ac_ext
19971 LIBS
=$ac_check_lib_save_LIBS
19973 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
19974 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
19975 if test $ac_cv_lib_util_forkpty = yes; then
19976 cat >>confdefs.h
<<\_ACEOF
19977 #define HAVE_FORKPTY 1
19979 LIBS
="$LIBS -lutil"
19981 { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
19982 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
19983 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
19984 echo $ECHO_N "(cached) $ECHO_C" >&6
19986 ac_check_lib_save_LIBS
=$LIBS
19988 cat >conftest.
$ac_ext <<_ACEOF
19991 cat confdefs.h
>>conftest.
$ac_ext
19992 cat >>conftest.
$ac_ext <<_ACEOF
19993 /* end confdefs.h. */
19995 /* Override any GCC internal prototype to avoid an error.
19996 Use char because int might match the return type of a GCC
19997 builtin and then its argument prototype would still apply. */
20010 rm -f conftest.
$ac_objext conftest
$ac_exeext
20011 if { (ac_try
="$ac_link"
20012 case "(($ac_try" in
20013 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20014 *) ac_try_echo=$ac_try;;
20016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20017 (eval "$ac_link") 2>conftest.er1
20019 grep -v '^ *+' conftest.er1 >conftest.err
20021 cat conftest.err >&5
20022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20023 (exit $ac_status); } && {
20024 test -z "$ac_c_werror_flag" ||
20025 test ! -s conftest.err
20026 } && test -s conftest$ac_exeext &&
20027 $as_test_x conftest$ac_exeext; then
20028 ac_cv_lib_bsd_forkpty=yes
20030 echo "$as_me: failed program was:" >&5
20031 sed 's/^/| /' conftest.$ac_ext >&5
20033 ac_cv_lib_bsd_forkpty=no
20036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20037 conftest$ac_exeext conftest.$ac_ext
20038 LIBS=$ac_check_lib_save_LIBS
20040 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
20041 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
20042 if test $ac_cv_lib_bsd_forkpty = yes; then
20043 cat >>confdefs.h <<\_ACEOF
20044 #define HAVE_FORKPTY 1
20059 for ac_func in memmove
20061 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
20062 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20063 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20064 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20065 echo $ECHO_N "(cached) $ECHO_C" >&6
20067 cat >conftest.$ac_ext <<_ACEOF
20070 cat confdefs.h >>conftest.$ac_ext
20071 cat >>conftest.$ac_ext <<_ACEOF
20072 /* end confdefs.h. */
20073 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20075 #define $ac_func innocuous_$ac_func
20077 /* System header to define __stub macros and hopefully few prototypes,
20078 which can conflict with char $ac_func (); below.
20079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20080 <limits.h> exists even on freestanding compilers. */
20083 # include <limits.h>
20085 # include <assert.h>
20090 /* Override any GCC internal prototype to avoid an error.
20091 Use char because int might match the return type of a GCC
20092 builtin and then its argument prototype would still apply. */
20097 /* The GNU C library defines this for functions which it implements
20098 to always fail with ENOSYS. Some functions are actually named
20099 something starting with __ and the normal name is an alias. */
20100 #if defined __stub_$ac_func || defined __stub___$ac_func
20107 return $ac_func ();
20112 rm -f conftest.$ac_objext conftest$ac_exeext
20113 if { (ac_try="$ac_link"
20114 case "(($ac_try" in
20115 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20116 *) ac_try_echo
=$ac_try;;
20118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20119 (eval "$ac_link") 2>conftest.er1
20121 grep -v '^ *+' conftest.er1
>conftest.err
20123 cat conftest.err
>&5
20124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20125 (exit $ac_status); } && {
20126 test -z "$ac_c_werror_flag" ||
20127 test ! -s conftest.err
20128 } && test -s conftest
$ac_exeext &&
20129 $as_test_x conftest
$ac_exeext; then
20130 eval "$as_ac_var=yes"
20132 echo "$as_me: failed program was:" >&5
20133 sed 's/^/| /' conftest.
$ac_ext >&5
20135 eval "$as_ac_var=no"
20138 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20139 conftest
$ac_exeext conftest.
$ac_ext
20141 ac_res
=`eval echo '${'$as_ac_var'}'`
20142 { echo "$as_me:$LINENO: result: $ac_res" >&5
20143 echo "${ECHO_T}$ac_res" >&6; }
20144 if test `eval echo '${'$as_ac_var'}'` = yes; then
20145 cat >>confdefs.h
<<_ACEOF
20146 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20153 # check for long file support functions
20160 for ac_func
in fseek64 fseeko fstatvfs ftell64 ftello statvfs
20162 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20163 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20164 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20165 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20166 echo $ECHO_N "(cached) $ECHO_C" >&6
20168 cat >conftest.
$ac_ext <<_ACEOF
20171 cat confdefs.h
>>conftest.
$ac_ext
20172 cat >>conftest.
$ac_ext <<_ACEOF
20173 /* end confdefs.h. */
20174 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20175 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20176 #define $ac_func innocuous_$ac_func
20178 /* System header to define __stub macros and hopefully few prototypes,
20179 which can conflict with char $ac_func (); below.
20180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20181 <limits.h> exists even on freestanding compilers. */
20184 # include <limits.h>
20186 # include <assert.h>
20191 /* Override any GCC internal prototype to avoid an error.
20192 Use char because int might match the return type of a GCC
20193 builtin and then its argument prototype would still apply. */
20198 /* The GNU C library defines this for functions which it implements
20199 to always fail with ENOSYS. Some functions are actually named
20200 something starting with __ and the normal name is an alias. */
20201 #if defined __stub_$ac_func || defined __stub___$ac_func
20208 return $ac_func ();
20213 rm -f conftest.
$ac_objext conftest
$ac_exeext
20214 if { (ac_try
="$ac_link"
20215 case "(($ac_try" in
20216 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20217 *) ac_try_echo=$ac_try;;
20219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20220 (eval "$ac_link") 2>conftest.er1
20222 grep -v '^ *+' conftest.er1 >conftest.err
20224 cat conftest.err >&5
20225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20226 (exit $ac_status); } && {
20227 test -z "$ac_c_werror_flag" ||
20228 test ! -s conftest.err
20229 } && test -s conftest$ac_exeext &&
20230 $as_test_x conftest$ac_exeext; then
20231 eval "$as_ac_var=yes"
20233 echo "$as_me: failed program was:" >&5
20234 sed 's/^/| /' conftest.$ac_ext >&5
20236 eval "$as_ac_var=no"
20239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20240 conftest$ac_exeext conftest.$ac_ext
20242 ac_res=`eval echo '${'$as_ac_var'}'`
20243 { echo "$as_me:$LINENO: result: $ac_res" >&5
20244 echo "${ECHO_T}$ac_res" >&6; }
20245 if test `eval echo '${'$as_ac_var'}'` = yes; then
20246 cat >>confdefs.h <<_ACEOF
20247 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
20257 for ac_func in dup2 getcwd strdup
20259 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
20260 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20261 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20262 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20263 echo $ECHO_N "(cached) $ECHO_C" >&6
20265 cat >conftest.$ac_ext <<_ACEOF
20268 cat confdefs.h >>conftest.$ac_ext
20269 cat >>conftest.$ac_ext <<_ACEOF
20270 /* end confdefs.h. */
20271 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20272 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20273 #define $ac_func innocuous_$ac_func
20275 /* System header to define __stub macros and hopefully few prototypes,
20276 which can conflict with char $ac_func (); below.
20277 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20278 <limits.h> exists even on freestanding compilers. */
20281 # include <limits.h>
20283 # include <assert.h>
20288 /* Override any GCC internal prototype to avoid an error.
20289 Use char because int might match the return type of a GCC
20290 builtin and then its argument prototype would still apply. */
20295 /* The GNU C library defines this for functions which it implements
20296 to always fail with ENOSYS. Some functions are actually named
20297 something starting with __ and the normal name is an alias. */
20298 #if defined __stub_$ac_func || defined __stub___$ac_func
20305 return $ac_func ();
20310 rm -f conftest.$ac_objext conftest$ac_exeext
20311 if { (ac_try="$ac_link"
20312 case "(($ac_try" in
20313 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20314 *) ac_try_echo
=$ac_try;;
20316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20317 (eval "$ac_link") 2>conftest.er1
20319 grep -v '^ *+' conftest.er1
>conftest.err
20321 cat conftest.err
>&5
20322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20323 (exit $ac_status); } && {
20324 test -z "$ac_c_werror_flag" ||
20325 test ! -s conftest.err
20326 } && test -s conftest
$ac_exeext &&
20327 $as_test_x conftest
$ac_exeext; then
20328 eval "$as_ac_var=yes"
20330 echo "$as_me: failed program was:" >&5
20331 sed 's/^/| /' conftest.
$ac_ext >&5
20333 eval "$as_ac_var=no"
20336 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20337 conftest
$ac_exeext conftest.
$ac_ext
20339 ac_res
=`eval echo '${'$as_ac_var'}'`
20340 { echo "$as_me:$LINENO: result: $ac_res" >&5
20341 echo "${ECHO_T}$ac_res" >&6; }
20342 if test `eval echo '${'$as_ac_var'}'` = yes; then
20343 cat >>confdefs.h
<<_ACEOF
20344 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20348 case " $LIBOBJS " in
20349 *" $ac_func.$ac_objext "* ) ;;
20350 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
20359 for ac_func
in getpgrp
20361 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20362 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20363 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20364 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20365 echo $ECHO_N "(cached) $ECHO_C" >&6
20367 cat >conftest.
$ac_ext <<_ACEOF
20370 cat confdefs.h
>>conftest.
$ac_ext
20371 cat >>conftest.
$ac_ext <<_ACEOF
20372 /* end confdefs.h. */
20373 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20374 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20375 #define $ac_func innocuous_$ac_func
20377 /* System header to define __stub macros and hopefully few prototypes,
20378 which can conflict with char $ac_func (); below.
20379 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20380 <limits.h> exists even on freestanding compilers. */
20383 # include <limits.h>
20385 # include <assert.h>
20390 /* Override any GCC internal prototype to avoid an error.
20391 Use char because int might match the return type of a GCC
20392 builtin and then its argument prototype would still apply. */
20397 /* The GNU C library defines this for functions which it implements
20398 to always fail with ENOSYS. Some functions are actually named
20399 something starting with __ and the normal name is an alias. */
20400 #if defined __stub_$ac_func || defined __stub___$ac_func
20407 return $ac_func ();
20412 rm -f conftest.
$ac_objext conftest
$ac_exeext
20413 if { (ac_try
="$ac_link"
20414 case "(($ac_try" in
20415 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20416 *) ac_try_echo=$ac_try;;
20418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20419 (eval "$ac_link") 2>conftest.er1
20421 grep -v '^ *+' conftest.er1 >conftest.err
20423 cat conftest.err >&5
20424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20425 (exit $ac_status); } && {
20426 test -z "$ac_c_werror_flag" ||
20427 test ! -s conftest.err
20428 } && test -s conftest$ac_exeext &&
20429 $as_test_x conftest$ac_exeext; then
20430 eval "$as_ac_var=yes"
20432 echo "$as_me: failed program was:" >&5
20433 sed 's/^/| /' conftest.$ac_ext >&5
20435 eval "$as_ac_var=no"
20438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20439 conftest$ac_exeext conftest.$ac_ext
20441 ac_res=`eval echo '${'$as_ac_var'}'`
20442 { echo "$as_me:$LINENO: result: $ac_res" >&5
20443 echo "${ECHO_T}$ac_res" >&6; }
20444 if test `eval echo '${'$as_ac_var'}'` = yes; then
20445 cat >>confdefs.h <<_ACEOF
20446 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
20448 cat >conftest.$ac_ext <<_ACEOF
20451 cat confdefs.h >>conftest.$ac_ext
20452 cat >>conftest.$ac_ext <<_ACEOF
20453 /* end confdefs.h. */
20454 #include <unistd.h>
20463 rm -f conftest.$ac_objext
20464 if { (ac_try="$ac_compile"
20465 case "(($ac_try" in
20466 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20467 *) ac_try_echo
=$ac_try;;
20469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20470 (eval "$ac_compile") 2>conftest.er1
20472 grep -v '^ *+' conftest.er1
>conftest.err
20474 cat conftest.err
>&5
20475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20476 (exit $ac_status); } && {
20477 test -z "$ac_c_werror_flag" ||
20478 test ! -s conftest.err
20479 } && test -s conftest.
$ac_objext; then
20481 cat >>confdefs.h
<<\_ACEOF
20482 #define GETPGRP_HAVE_ARG 1
20487 echo "$as_me: failed program was:" >&5
20488 sed 's/^/| /' conftest.
$ac_ext >&5
20493 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20499 for ac_func
in setpgrp
20501 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20502 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20503 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20504 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20505 echo $ECHO_N "(cached) $ECHO_C" >&6
20507 cat >conftest.
$ac_ext <<_ACEOF
20510 cat confdefs.h
>>conftest.
$ac_ext
20511 cat >>conftest.
$ac_ext <<_ACEOF
20512 /* end confdefs.h. */
20513 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20514 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20515 #define $ac_func innocuous_$ac_func
20517 /* System header to define __stub macros and hopefully few prototypes,
20518 which can conflict with char $ac_func (); below.
20519 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20520 <limits.h> exists even on freestanding compilers. */
20523 # include <limits.h>
20525 # include <assert.h>
20530 /* Override any GCC internal prototype to avoid an error.
20531 Use char because int might match the return type of a GCC
20532 builtin and then its argument prototype would still apply. */
20537 /* The GNU C library defines this for functions which it implements
20538 to always fail with ENOSYS. Some functions are actually named
20539 something starting with __ and the normal name is an alias. */
20540 #if defined __stub_$ac_func || defined __stub___$ac_func
20547 return $ac_func ();
20552 rm -f conftest.
$ac_objext conftest
$ac_exeext
20553 if { (ac_try
="$ac_link"
20554 case "(($ac_try" in
20555 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20556 *) ac_try_echo=$ac_try;;
20558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20559 (eval "$ac_link") 2>conftest.er1
20561 grep -v '^ *+' conftest.er1 >conftest.err
20563 cat conftest.err >&5
20564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20565 (exit $ac_status); } && {
20566 test -z "$ac_c_werror_flag" ||
20567 test ! -s conftest.err
20568 } && test -s conftest$ac_exeext &&
20569 $as_test_x conftest$ac_exeext; then
20570 eval "$as_ac_var=yes"
20572 echo "$as_me: failed program was:" >&5
20573 sed 's/^/| /' conftest.$ac_ext >&5
20575 eval "$as_ac_var=no"
20578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20579 conftest$ac_exeext conftest.$ac_ext
20581 ac_res=`eval echo '${'$as_ac_var'}'`
20582 { echo "$as_me:$LINENO: result: $ac_res" >&5
20583 echo "${ECHO_T}$ac_res" >&6; }
20584 if test `eval echo '${'$as_ac_var'}'` = yes; then
20585 cat >>confdefs.h <<_ACEOF
20586 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
20588 cat >conftest.$ac_ext <<_ACEOF
20591 cat confdefs.h >>conftest.$ac_ext
20592 cat >>conftest.$ac_ext <<_ACEOF
20593 /* end confdefs.h. */
20594 #include <unistd.h>
20603 rm -f conftest.$ac_objext
20604 if { (ac_try="$ac_compile"
20605 case "(($ac_try" in
20606 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20607 *) ac_try_echo
=$ac_try;;
20609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20610 (eval "$ac_compile") 2>conftest.er1
20612 grep -v '^ *+' conftest.er1
>conftest.err
20614 cat conftest.err
>&5
20615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20616 (exit $ac_status); } && {
20617 test -z "$ac_c_werror_flag" ||
20618 test ! -s conftest.err
20619 } && test -s conftest.
$ac_objext; then
20621 cat >>confdefs.h
<<\_ACEOF
20622 #define SETPGRP_HAVE_ARG 1
20627 echo "$as_me: failed program was:" >&5
20628 sed 's/^/| /' conftest.
$ac_ext >&5
20633 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20639 for ac_func
in gettimeofday
20641 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20642 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20644 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20645 echo $ECHO_N "(cached) $ECHO_C" >&6
20647 cat >conftest.
$ac_ext <<_ACEOF
20650 cat confdefs.h
>>conftest.
$ac_ext
20651 cat >>conftest.
$ac_ext <<_ACEOF
20652 /* end confdefs.h. */
20653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20655 #define $ac_func innocuous_$ac_func
20657 /* System header to define __stub macros and hopefully few prototypes,
20658 which can conflict with char $ac_func (); below.
20659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20660 <limits.h> exists even on freestanding compilers. */
20663 # include <limits.h>
20665 # include <assert.h>
20670 /* Override any GCC internal prototype to avoid an error.
20671 Use char because int might match the return type of a GCC
20672 builtin and then its argument prototype would still apply. */
20677 /* The GNU C library defines this for functions which it implements
20678 to always fail with ENOSYS. Some functions are actually named
20679 something starting with __ and the normal name is an alias. */
20680 #if defined __stub_$ac_func || defined __stub___$ac_func
20687 return $ac_func ();
20692 rm -f conftest.
$ac_objext conftest
$ac_exeext
20693 if { (ac_try
="$ac_link"
20694 case "(($ac_try" in
20695 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20696 *) ac_try_echo=$ac_try;;
20698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20699 (eval "$ac_link") 2>conftest.er1
20701 grep -v '^ *+' conftest.er1 >conftest.err
20703 cat conftest.err >&5
20704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20705 (exit $ac_status); } && {
20706 test -z "$ac_c_werror_flag" ||
20707 test ! -s conftest.err
20708 } && test -s conftest$ac_exeext &&
20709 $as_test_x conftest$ac_exeext; then
20710 eval "$as_ac_var=yes"
20712 echo "$as_me: failed program was:" >&5
20713 sed 's/^/| /' conftest.$ac_ext >&5
20715 eval "$as_ac_var=no"
20718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20719 conftest$ac_exeext conftest.$ac_ext
20721 ac_res=`eval echo '${'$as_ac_var'}'`
20722 { echo "$as_me:$LINENO: result: $ac_res" >&5
20723 echo "${ECHO_T}$ac_res" >&6; }
20724 if test `eval echo '${'$as_ac_var'}'` = yes; then
20725 cat >>confdefs.h <<_ACEOF
20726 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
20728 cat >conftest.$ac_ext <<_ACEOF
20731 cat confdefs.h >>conftest.$ac_ext
20732 cat >>conftest.$ac_ext <<_ACEOF
20733 /* end confdefs.h. */
20734 #include <sys/time.h>
20738 gettimeofday((struct timeval*)0,(struct timezone*)0);
20743 rm -f conftest.$ac_objext
20744 if { (ac_try="$ac_compile"
20745 case "(($ac_try" in
20746 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20747 *) ac_try_echo
=$ac_try;;
20749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20750 (eval "$ac_compile") 2>conftest.er1
20752 grep -v '^ *+' conftest.er1
>conftest.err
20754 cat conftest.err
>&5
20755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20756 (exit $ac_status); } && {
20757 test -z "$ac_c_werror_flag" ||
20758 test ! -s conftest.err
20759 } && test -s conftest.
$ac_objext; then
20762 echo "$as_me: failed program was:" >&5
20763 sed 's/^/| /' conftest.
$ac_ext >&5
20766 cat >>confdefs.h
<<\_ACEOF
20767 #define GETTIMEOFDAY_NO_TZ 1
20773 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20779 { echo "$as_me:$LINENO: checking for major" >&5
20780 echo $ECHO_N "checking for major... $ECHO_C" >&6; }
20781 cat >conftest.
$ac_ext <<_ACEOF
20784 cat confdefs.h
>>conftest.
$ac_ext
20785 cat >>conftest.
$ac_ext <<_ACEOF
20786 /* end confdefs.h. */
20788 #if defined(MAJOR_IN_MKDEV)
20789 #include <sys/mkdev.h>
20790 #elif defined(MAJOR_IN_SYSMACROS)
20791 #include <sys/sysmacros.h>
20793 #include <sys/types.h>
20800 makedev(major(0),minor(0));
20806 rm -f conftest.
$ac_objext conftest
$ac_exeext
20807 if { (ac_try
="$ac_link"
20808 case "(($ac_try" in
20809 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20810 *) ac_try_echo=$ac_try;;
20812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20813 (eval "$ac_link") 2>conftest.er1
20815 grep -v '^ *+' conftest.er1 >conftest.err
20817 cat conftest.err >&5
20818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20819 (exit $ac_status); } && {
20820 test -z "$ac_c_werror_flag" ||
20821 test ! -s conftest.err
20822 } && test -s conftest$ac_exeext &&
20823 $as_test_x conftest$ac_exeext; then
20826 cat >>confdefs.h <<\_ACEOF
20827 #define HAVE_DEVICE_MACROS 1
20830 { echo "$as_me:$LINENO: result: yes" >&5
20831 echo "${ECHO_T}yes" >&6; }
20834 echo "$as_me: failed program was:" >&5
20835 sed 's/^/| /' conftest.$ac_ext >&5
20838 { echo "$as_me:$LINENO: result: no" >&5
20839 echo "${ECHO_T}no" >&6; }
20843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20844 conftest$ac_exeext conftest.$ac_ext
20846 # On OSF/1 V5.1, getaddrinfo is available, but a define
20847 # for [no]getaddrinfo in netdb.h.
20848 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
20849 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
20850 cat >conftest.$ac_ext <<_ACEOF
20853 cat confdefs.h >>conftest.$ac_ext
20854 cat >>conftest.$ac_ext <<_ACEOF
20855 /* end confdefs.h. */
20857 #include <sys/types.h>
20858 #include <sys/socket.h>
20865 getaddrinfo(NULL, NULL, NULL, NULL);
20870 rm -f conftest.$ac_objext conftest$ac_exeext
20871 if { (ac_try="$ac_link"
20872 case "(($ac_try" in
20873 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20874 *) ac_try_echo
=$ac_try;;
20876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20877 (eval "$ac_link") 2>conftest.er1
20879 grep -v '^ *+' conftest.er1
>conftest.err
20881 cat conftest.err
>&5
20882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20883 (exit $ac_status); } && {
20884 test -z "$ac_c_werror_flag" ||
20885 test ! -s conftest.err
20886 } && test -s conftest
$ac_exeext &&
20887 $as_test_x conftest
$ac_exeext; then
20888 have_getaddrinfo
=yes
20890 echo "$as_me: failed program was:" >&5
20891 sed 's/^/| /' conftest.
$ac_ext >&5
20893 have_getaddrinfo
=no
20896 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20897 conftest
$ac_exeext conftest.
$ac_ext
20898 { echo "$as_me:$LINENO: result: $have_getaddrinfo" >&5
20899 echo "${ECHO_T}$have_getaddrinfo" >&6; }
20900 if test $have_getaddrinfo = yes
20902 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
20903 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
20904 if test "${ac_cv_buggy_getaddrinfo+set}" = set; then
20905 echo $ECHO_N "(cached) $ECHO_C" >&6
20907 if test "$cross_compiling" = yes; then
20908 ac_cv_buggy_getaddrinfo
=yes
20910 cat >conftest.
$ac_ext <<_ACEOF
20913 cat confdefs.h
>>conftest.
$ac_ext
20914 cat >>conftest.
$ac_ext <<_ACEOF
20915 /* end confdefs.h. */
20917 #include <sys/types.h>
20919 #include <string.h>
20920 #include <sys/socket.h>
20921 #include <netinet/in.h>
20925 int passive, gaierr, inet4 = 0, inet6 = 0;
20926 struct addrinfo hints, *ai, *aitop;
20927 char straddr[INET6_ADDRSTRLEN], strport[16];
20929 for (passive = 0; passive <= 1; passive++) {
20930 memset(&hints, 0, sizeof(hints));
20931 hints.ai_family = AF_UNSPEC;
20932 hints.ai_flags = passive ? AI_PASSIVE : 0;
20933 hints.ai_socktype = SOCK_STREAM;
20934 hints.ai_protocol = IPPROTO_TCP;
20935 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
20936 (void)gai_strerror(gaierr);
20939 for (ai = aitop; ai; ai = ai->ai_next) {
20940 if (ai->ai_addr == NULL ||
20941 ai->ai_addrlen == 0 ||
20942 getnameinfo(ai->ai_addr, ai->ai_addrlen,
20943 straddr, sizeof(straddr), strport, sizeof(strport),
20944 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
20947 switch (ai->ai_family) {
20949 if (strcmp(strport, "54321") != 0) {
20953 if (strcmp(straddr, "0.0.0.0") != 0) {
20957 if (strcmp(straddr, "127.0.0.1") != 0) {
20964 if (strcmp(strport, "54321") != 0) {
20968 if (strcmp(straddr, "::") != 0) {
20972 if (strcmp(straddr, "::1") != 0) {
20982 /* another family support? */
20988 if (!(inet4 == 0 || inet4 == 2))
20990 if (!(inet6 == 0 || inet6 == 2))
20994 freeaddrinfo(aitop);
20999 freeaddrinfo(aitop);
21004 rm -f conftest
$ac_exeext
21005 if { (ac_try
="$ac_link"
21006 case "(($ac_try" in
21007 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21008 *) ac_try_echo=$ac_try;;
21010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21011 (eval "$ac_link") 2>&5
21013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21014 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21015 { (case "(($ac_try" in
21016 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21017 *) ac_try_echo
=$ac_try;;
21019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21020 (eval "$ac_try") 2>&5
21022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21023 (exit $ac_status); }; }; then
21024 ac_cv_buggy_getaddrinfo
=no
21026 echo "$as_me: program exited with status $ac_status" >&5
21027 echo "$as_me: failed program was:" >&5
21028 sed 's/^/| /' conftest.
$ac_ext >&5
21030 ( exit $ac_status )
21031 ac_cv_buggy_getaddrinfo
=yes
21033 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21041 if test $have_getaddrinfo = no
-o $ac_cv_buggy_getaddrinfo = yes
21043 if test $ipv6 = yes
21045 echo 'Fatal: You must get working getaddrinfo() function.'
21046 echo ' or you can specify "--disable-ipv6"'.
21051 cat >>confdefs.h
<<\_ACEOF
21052 #define HAVE_GETADDRINFO 1
21057 for ac_func
in getnameinfo
21059 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21060 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21061 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21062 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21063 echo $ECHO_N "(cached) $ECHO_C" >&6
21065 cat >conftest.
$ac_ext <<_ACEOF
21068 cat confdefs.h
>>conftest.
$ac_ext
21069 cat >>conftest.
$ac_ext <<_ACEOF
21070 /* end confdefs.h. */
21071 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21072 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21073 #define $ac_func innocuous_$ac_func
21075 /* System header to define __stub macros and hopefully few prototypes,
21076 which can conflict with char $ac_func (); below.
21077 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21078 <limits.h> exists even on freestanding compilers. */
21081 # include <limits.h>
21083 # include <assert.h>
21088 /* Override any GCC internal prototype to avoid an error.
21089 Use char because int might match the return type of a GCC
21090 builtin and then its argument prototype would still apply. */
21095 /* The GNU C library defines this for functions which it implements
21096 to always fail with ENOSYS. Some functions are actually named
21097 something starting with __ and the normal name is an alias. */
21098 #if defined __stub_$ac_func || defined __stub___$ac_func
21105 return $ac_func ();
21110 rm -f conftest.
$ac_objext conftest
$ac_exeext
21111 if { (ac_try
="$ac_link"
21112 case "(($ac_try" in
21113 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21114 *) ac_try_echo=$ac_try;;
21116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21117 (eval "$ac_link") 2>conftest.er1
21119 grep -v '^ *+' conftest.er1 >conftest.err
21121 cat conftest.err >&5
21122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21123 (exit $ac_status); } && {
21124 test -z "$ac_c_werror_flag" ||
21125 test ! -s conftest.err
21126 } && test -s conftest$ac_exeext &&
21127 $as_test_x conftest$ac_exeext; then
21128 eval "$as_ac_var=yes"
21130 echo "$as_me: failed program was:" >&5
21131 sed 's/^/| /' conftest.$ac_ext >&5
21133 eval "$as_ac_var=no"
21136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21137 conftest$ac_exeext conftest.$ac_ext
21139 ac_res=`eval echo '${'$as_ac_var'}'`
21140 { echo "$as_me:$LINENO: result: $ac_res" >&5
21141 echo "${ECHO_T}$ac_res" >&6; }
21142 if test `eval echo '${'$as_ac_var'}'` = yes; then
21143 cat >>confdefs.h <<_ACEOF
21144 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
21151 # checks for structures
21152 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21153 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21154 if test "${ac_cv_header_time+set}" = set; then
21155 echo $ECHO_N "(cached) $ECHO_C" >&6
21157 cat >conftest.$ac_ext <<_ACEOF
21160 cat confdefs.h >>conftest.$ac_ext
21161 cat >>conftest.$ac_ext <<_ACEOF
21162 /* end confdefs.h. */
21163 #include <sys/types.h>
21164 #include <sys/time.h>
21170 if ((struct tm *) 0)
21176 rm -f conftest.$ac_objext
21177 if { (ac_try="$ac_compile"
21178 case "(($ac_try" in
21179 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21180 *) ac_try_echo
=$ac_try;;
21182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21183 (eval "$ac_compile") 2>conftest.er1
21185 grep -v '^ *+' conftest.er1
>conftest.err
21187 cat conftest.err
>&5
21188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21189 (exit $ac_status); } && {
21190 test -z "$ac_c_werror_flag" ||
21191 test ! -s conftest.err
21192 } && test -s conftest.
$ac_objext; then
21193 ac_cv_header_time
=yes
21195 echo "$as_me: failed program was:" >&5
21196 sed 's/^/| /' conftest.
$ac_ext >&5
21198 ac_cv_header_time
=no
21201 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21203 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21204 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21205 if test $ac_cv_header_time = yes; then
21207 cat >>confdefs.h
<<\_ACEOF
21208 #define TIME_WITH_SYS_TIME 1
21213 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21214 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
21215 if test "${ac_cv_struct_tm+set}" = set; then
21216 echo $ECHO_N "(cached) $ECHO_C" >&6
21218 cat >conftest.
$ac_ext <<_ACEOF
21221 cat confdefs.h
>>conftest.
$ac_ext
21222 cat >>conftest.
$ac_ext <<_ACEOF
21223 /* end confdefs.h. */
21224 #include <sys/types.h>
21231 int *p = &tm.tm_sec;
21237 rm -f conftest.
$ac_objext
21238 if { (ac_try
="$ac_compile"
21239 case "(($ac_try" in
21240 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21241 *) ac_try_echo=$ac_try;;
21243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21244 (eval "$ac_compile") 2>conftest.er1
21246 grep -v '^ *+' conftest.er1 >conftest.err
21248 cat conftest.err >&5
21249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21250 (exit $ac_status); } && {
21251 test -z "$ac_c_werror_flag" ||
21252 test ! -s conftest.err
21253 } && test -s conftest.$ac_objext; then
21254 ac_cv_struct_tm=time.h
21256 echo "$as_me: failed program was:" >&5
21257 sed 's/^/| /' conftest.$ac_ext >&5
21259 ac_cv_struct_tm=sys/time.h
21262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21264 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21265 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
21266 if test $ac_cv_struct_tm = sys/time.h; then
21268 cat >>confdefs.h <<\_ACEOF
21269 #define TM_IN_SYS_TIME 1
21274 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21275 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
21276 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21277 echo $ECHO_N "(cached) $ECHO_C" >&6
21279 cat >conftest.$ac_ext <<_ACEOF
21282 cat confdefs.h >>conftest.$ac_ext
21283 cat >>conftest.$ac_ext <<_ACEOF
21284 /* end confdefs.h. */
21285 #include <sys/types.h>
21286 #include <$ac_cv_struct_tm>
21292 static struct tm ac_aggr;
21293 if (ac_aggr.tm_zone)
21299 rm -f conftest.$ac_objext
21300 if { (ac_try="$ac_compile"
21301 case "(($ac_try" in
21302 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21303 *) ac_try_echo
=$ac_try;;
21305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21306 (eval "$ac_compile") 2>conftest.er1
21308 grep -v '^ *+' conftest.er1
>conftest.err
21310 cat conftest.err
>&5
21311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21312 (exit $ac_status); } && {
21313 test -z "$ac_c_werror_flag" ||
21314 test ! -s conftest.err
21315 } && test -s conftest.
$ac_objext; then
21316 ac_cv_member_struct_tm_tm_zone
=yes
21318 echo "$as_me: failed program was:" >&5
21319 sed 's/^/| /' conftest.
$ac_ext >&5
21321 cat >conftest.
$ac_ext <<_ACEOF
21324 cat confdefs.h
>>conftest.
$ac_ext
21325 cat >>conftest.
$ac_ext <<_ACEOF
21326 /* end confdefs.h. */
21327 #include <sys/types.h>
21328 #include <$ac_cv_struct_tm>
21334 static struct tm ac_aggr;
21335 if (sizeof ac_aggr.tm_zone)
21341 rm -f conftest.
$ac_objext
21342 if { (ac_try
="$ac_compile"
21343 case "(($ac_try" in
21344 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21345 *) ac_try_echo=$ac_try;;
21347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21348 (eval "$ac_compile") 2>conftest.er1
21350 grep -v '^ *+' conftest.er1 >conftest.err
21352 cat conftest.err >&5
21353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21354 (exit $ac_status); } && {
21355 test -z "$ac_c_werror_flag" ||
21356 test ! -s conftest.err
21357 } && test -s conftest.$ac_objext; then
21358 ac_cv_member_struct_tm_tm_zone=yes
21360 echo "$as_me: failed program was:" >&5
21361 sed 's/^/| /' conftest.$ac_ext >&5
21363 ac_cv_member_struct_tm_tm_zone=no
21366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21371 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21372 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
21373 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21375 cat >>confdefs.h <<_ACEOF
21376 #define HAVE_STRUCT_TM_TM_ZONE 1
21382 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21384 cat >>confdefs.h <<\_ACEOF
21385 #define HAVE_TM_ZONE 1
21389 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
21390 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
21391 if test "${ac_cv_have_decl_tzname+set}" = set; then
21392 echo $ECHO_N "(cached) $ECHO_C" >&6
21394 cat >conftest.$ac_ext <<_ACEOF
21397 cat confdefs.h >>conftest.$ac_ext
21398 cat >>conftest.$ac_ext <<_ACEOF
21399 /* end confdefs.h. */
21413 rm -f conftest.$ac_objext
21414 if { (ac_try="$ac_compile"
21415 case "(($ac_try" in
21416 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21417 *) ac_try_echo
=$ac_try;;
21419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21420 (eval "$ac_compile") 2>conftest.er1
21422 grep -v '^ *+' conftest.er1
>conftest.err
21424 cat conftest.err
>&5
21425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21426 (exit $ac_status); } && {
21427 test -z "$ac_c_werror_flag" ||
21428 test ! -s conftest.err
21429 } && test -s conftest.
$ac_objext; then
21430 ac_cv_have_decl_tzname
=yes
21432 echo "$as_me: failed program was:" >&5
21433 sed 's/^/| /' conftest.
$ac_ext >&5
21435 ac_cv_have_decl_tzname
=no
21438 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21440 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
21441 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
21442 if test $ac_cv_have_decl_tzname = yes; then
21444 cat >>confdefs.h
<<_ACEOF
21445 #define HAVE_DECL_TZNAME 1
21450 cat >>confdefs.h
<<_ACEOF
21451 #define HAVE_DECL_TZNAME 0
21458 { echo "$as_me:$LINENO: checking for tzname" >&5
21459 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
21460 if test "${ac_cv_var_tzname+set}" = set; then
21461 echo $ECHO_N "(cached) $ECHO_C" >&6
21463 cat >conftest.
$ac_ext <<_ACEOF
21466 cat confdefs.h
>>conftest.
$ac_ext
21467 cat >>conftest.
$ac_ext <<_ACEOF
21468 /* end confdefs.h. */
21470 #if !HAVE_DECL_TZNAME
21471 extern char *tzname[];
21477 return tzname[0][0];
21482 rm -f conftest.
$ac_objext conftest
$ac_exeext
21483 if { (ac_try
="$ac_link"
21484 case "(($ac_try" in
21485 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21486 *) ac_try_echo=$ac_try;;
21488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21489 (eval "$ac_link") 2>conftest.er1
21491 grep -v '^ *+' conftest.er1 >conftest.err
21493 cat conftest.err >&5
21494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21495 (exit $ac_status); } && {
21496 test -z "$ac_c_werror_flag" ||
21497 test ! -s conftest.err
21498 } && test -s conftest$ac_exeext &&
21499 $as_test_x conftest$ac_exeext; then
21500 ac_cv_var_tzname=yes
21502 echo "$as_me: failed program was:" >&5
21503 sed 's/^/| /' conftest.$ac_ext >&5
21505 ac_cv_var_tzname=no
21508 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21509 conftest$ac_exeext conftest.$ac_ext
21511 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21512 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
21513 if test $ac_cv_var_tzname = yes; then
21515 cat >>confdefs.h <<\_ACEOF
21516 #define HAVE_TZNAME 1
21522 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
21523 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
21524 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
21525 echo $ECHO_N "(cached) $ECHO_C" >&6
21527 cat >conftest.$ac_ext <<_ACEOF
21530 cat confdefs.h >>conftest.$ac_ext
21531 cat >>conftest.$ac_ext <<_ACEOF
21532 /* end confdefs.h. */
21533 $ac_includes_default
21537 static struct stat ac_aggr;
21538 if (ac_aggr.st_rdev)
21544 rm -f conftest.$ac_objext
21545 if { (ac_try="$ac_compile"
21546 case "(($ac_try" in
21547 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21548 *) ac_try_echo
=$ac_try;;
21550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21551 (eval "$ac_compile") 2>conftest.er1
21553 grep -v '^ *+' conftest.er1
>conftest.err
21555 cat conftest.err
>&5
21556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21557 (exit $ac_status); } && {
21558 test -z "$ac_c_werror_flag" ||
21559 test ! -s conftest.err
21560 } && test -s conftest.
$ac_objext; then
21561 ac_cv_member_struct_stat_st_rdev
=yes
21563 echo "$as_me: failed program was:" >&5
21564 sed 's/^/| /' conftest.
$ac_ext >&5
21566 cat >conftest.
$ac_ext <<_ACEOF
21569 cat confdefs.h
>>conftest.
$ac_ext
21570 cat >>conftest.
$ac_ext <<_ACEOF
21571 /* end confdefs.h. */
21572 $ac_includes_default
21576 static struct stat ac_aggr;
21577 if (sizeof ac_aggr.st_rdev)
21583 rm -f conftest.
$ac_objext
21584 if { (ac_try
="$ac_compile"
21585 case "(($ac_try" in
21586 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21587 *) ac_try_echo=$ac_try;;
21589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21590 (eval "$ac_compile") 2>conftest.er1
21592 grep -v '^ *+' conftest.er1 >conftest.err
21594 cat conftest.err >&5
21595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21596 (exit $ac_status); } && {
21597 test -z "$ac_c_werror_flag" ||
21598 test ! -s conftest.err
21599 } && test -s conftest.$ac_objext; then
21600 ac_cv_member_struct_stat_st_rdev=yes
21602 echo "$as_me: failed program was:" >&5
21603 sed 's/^/| /' conftest.$ac_ext >&5
21605 ac_cv_member_struct_stat_st_rdev=no
21608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21613 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
21614 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
21615 if test $ac_cv_member_struct_stat_st_rdev = yes; then
21617 cat >>confdefs.h <<_ACEOF
21618 #define HAVE_STRUCT_STAT_ST_RDEV 1
21624 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
21625 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
21626 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
21627 echo $ECHO_N "(cached) $ECHO_C" >&6
21629 cat >conftest.$ac_ext <<_ACEOF
21632 cat confdefs.h >>conftest.$ac_ext
21633 cat >>conftest.$ac_ext <<_ACEOF
21634 /* end confdefs.h. */
21635 $ac_includes_default
21639 static struct stat ac_aggr;
21640 if (ac_aggr.st_blksize)
21646 rm -f conftest.$ac_objext
21647 if { (ac_try="$ac_compile"
21648 case "(($ac_try" in
21649 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21650 *) ac_try_echo
=$ac_try;;
21652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21653 (eval "$ac_compile") 2>conftest.er1
21655 grep -v '^ *+' conftest.er1
>conftest.err
21657 cat conftest.err
>&5
21658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21659 (exit $ac_status); } && {
21660 test -z "$ac_c_werror_flag" ||
21661 test ! -s conftest.err
21662 } && test -s conftest.
$ac_objext; then
21663 ac_cv_member_struct_stat_st_blksize
=yes
21665 echo "$as_me: failed program was:" >&5
21666 sed 's/^/| /' conftest.
$ac_ext >&5
21668 cat >conftest.
$ac_ext <<_ACEOF
21671 cat confdefs.h
>>conftest.
$ac_ext
21672 cat >>conftest.
$ac_ext <<_ACEOF
21673 /* end confdefs.h. */
21674 $ac_includes_default
21678 static struct stat ac_aggr;
21679 if (sizeof ac_aggr.st_blksize)
21685 rm -f conftest.
$ac_objext
21686 if { (ac_try
="$ac_compile"
21687 case "(($ac_try" in
21688 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21689 *) ac_try_echo=$ac_try;;
21691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21692 (eval "$ac_compile") 2>conftest.er1
21694 grep -v '^ *+' conftest.er1 >conftest.err
21696 cat conftest.err >&5
21697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21698 (exit $ac_status); } && {
21699 test -z "$ac_c_werror_flag" ||
21700 test ! -s conftest.err
21701 } && test -s conftest.$ac_objext; then
21702 ac_cv_member_struct_stat_st_blksize=yes
21704 echo "$as_me: failed program was:" >&5
21705 sed 's/^/| /' conftest.$ac_ext >&5
21707 ac_cv_member_struct_stat_st_blksize=no
21710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21715 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
21716 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
21717 if test $ac_cv_member_struct_stat_st_blksize = yes; then
21719 cat >>confdefs.h <<_ACEOF
21720 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
21726 { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
21727 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
21728 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
21729 echo $ECHO_N "(cached) $ECHO_C" >&6
21731 cat >conftest.$ac_ext <<_ACEOF
21734 cat confdefs.h >>conftest.$ac_ext
21735 cat >>conftest.$ac_ext <<_ACEOF
21736 /* end confdefs.h. */
21737 $ac_includes_default
21741 static struct stat ac_aggr;
21742 if (ac_aggr.st_flags)
21748 rm -f conftest.$ac_objext
21749 if { (ac_try="$ac_compile"
21750 case "(($ac_try" in
21751 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21752 *) ac_try_echo
=$ac_try;;
21754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21755 (eval "$ac_compile") 2>conftest.er1
21757 grep -v '^ *+' conftest.er1
>conftest.err
21759 cat conftest.err
>&5
21760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21761 (exit $ac_status); } && {
21762 test -z "$ac_c_werror_flag" ||
21763 test ! -s conftest.err
21764 } && test -s conftest.
$ac_objext; then
21765 ac_cv_member_struct_stat_st_flags
=yes
21767 echo "$as_me: failed program was:" >&5
21768 sed 's/^/| /' conftest.
$ac_ext >&5
21770 cat >conftest.
$ac_ext <<_ACEOF
21773 cat confdefs.h
>>conftest.
$ac_ext
21774 cat >>conftest.
$ac_ext <<_ACEOF
21775 /* end confdefs.h. */
21776 $ac_includes_default
21780 static struct stat ac_aggr;
21781 if (sizeof ac_aggr.st_flags)
21787 rm -f conftest.
$ac_objext
21788 if { (ac_try
="$ac_compile"
21789 case "(($ac_try" in
21790 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21791 *) ac_try_echo=$ac_try;;
21793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21794 (eval "$ac_compile") 2>conftest.er1
21796 grep -v '^ *+' conftest.er1 >conftest.err
21798 cat conftest.err >&5
21799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21800 (exit $ac_status); } && {
21801 test -z "$ac_c_werror_flag" ||
21802 test ! -s conftest.err
21803 } && test -s conftest.$ac_objext; then
21804 ac_cv_member_struct_stat_st_flags=yes
21806 echo "$as_me: failed program was:" >&5
21807 sed 's/^/| /' conftest.$ac_ext >&5
21809 ac_cv_member_struct_stat_st_flags=no
21812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21817 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
21818 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
21819 if test $ac_cv_member_struct_stat_st_flags = yes; then
21821 cat >>confdefs.h <<_ACEOF
21822 #define HAVE_STRUCT_STAT_ST_FLAGS 1
21828 { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
21829 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
21830 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
21831 echo $ECHO_N "(cached) $ECHO_C" >&6
21833 cat >conftest.$ac_ext <<_ACEOF
21836 cat confdefs.h >>conftest.$ac_ext
21837 cat >>conftest.$ac_ext <<_ACEOF
21838 /* end confdefs.h. */
21839 $ac_includes_default
21843 static struct stat ac_aggr;
21844 if (ac_aggr.st_gen)
21850 rm -f conftest.$ac_objext
21851 if { (ac_try="$ac_compile"
21852 case "(($ac_try" in
21853 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21854 *) ac_try_echo
=$ac_try;;
21856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21857 (eval "$ac_compile") 2>conftest.er1
21859 grep -v '^ *+' conftest.er1
>conftest.err
21861 cat conftest.err
>&5
21862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21863 (exit $ac_status); } && {
21864 test -z "$ac_c_werror_flag" ||
21865 test ! -s conftest.err
21866 } && test -s conftest.
$ac_objext; then
21867 ac_cv_member_struct_stat_st_gen
=yes
21869 echo "$as_me: failed program was:" >&5
21870 sed 's/^/| /' conftest.
$ac_ext >&5
21872 cat >conftest.
$ac_ext <<_ACEOF
21875 cat confdefs.h
>>conftest.
$ac_ext
21876 cat >>conftest.
$ac_ext <<_ACEOF
21877 /* end confdefs.h. */
21878 $ac_includes_default
21882 static struct stat ac_aggr;
21883 if (sizeof ac_aggr.st_gen)
21889 rm -f conftest.
$ac_objext
21890 if { (ac_try
="$ac_compile"
21891 case "(($ac_try" in
21892 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21893 *) ac_try_echo=$ac_try;;
21895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21896 (eval "$ac_compile") 2>conftest.er1
21898 grep -v '^ *+' conftest.er1 >conftest.err
21900 cat conftest.err >&5
21901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21902 (exit $ac_status); } && {
21903 test -z "$ac_c_werror_flag" ||
21904 test ! -s conftest.err
21905 } && test -s conftest.$ac_objext; then
21906 ac_cv_member_struct_stat_st_gen=yes
21908 echo "$as_me: failed program was:" >&5
21909 sed 's/^/| /' conftest.$ac_ext >&5
21911 ac_cv_member_struct_stat_st_gen=no
21914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21919 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
21920 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
21921 if test $ac_cv_member_struct_stat_st_gen = yes; then
21923 cat >>confdefs.h <<_ACEOF
21924 #define HAVE_STRUCT_STAT_ST_GEN 1
21930 { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
21931 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
21932 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
21933 echo $ECHO_N "(cached) $ECHO_C" >&6
21935 cat >conftest.$ac_ext <<_ACEOF
21938 cat confdefs.h >>conftest.$ac_ext
21939 cat >>conftest.$ac_ext <<_ACEOF
21940 /* end confdefs.h. */
21941 $ac_includes_default
21945 static struct stat ac_aggr;
21946 if (ac_aggr.st_birthtime)
21952 rm -f conftest.$ac_objext
21953 if { (ac_try="$ac_compile"
21954 case "(($ac_try" in
21955 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21956 *) ac_try_echo
=$ac_try;;
21958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21959 (eval "$ac_compile") 2>conftest.er1
21961 grep -v '^ *+' conftest.er1
>conftest.err
21963 cat conftest.err
>&5
21964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21965 (exit $ac_status); } && {
21966 test -z "$ac_c_werror_flag" ||
21967 test ! -s conftest.err
21968 } && test -s conftest.
$ac_objext; then
21969 ac_cv_member_struct_stat_st_birthtime
=yes
21971 echo "$as_me: failed program was:" >&5
21972 sed 's/^/| /' conftest.
$ac_ext >&5
21974 cat >conftest.
$ac_ext <<_ACEOF
21977 cat confdefs.h
>>conftest.
$ac_ext
21978 cat >>conftest.
$ac_ext <<_ACEOF
21979 /* end confdefs.h. */
21980 $ac_includes_default
21984 static struct stat ac_aggr;
21985 if (sizeof ac_aggr.st_birthtime)
21991 rm -f conftest.
$ac_objext
21992 if { (ac_try
="$ac_compile"
21993 case "(($ac_try" in
21994 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21995 *) ac_try_echo=$ac_try;;
21997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21998 (eval "$ac_compile") 2>conftest.er1
22000 grep -v '^ *+' conftest.er1 >conftest.err
22002 cat conftest.err >&5
22003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22004 (exit $ac_status); } && {
22005 test -z "$ac_c_werror_flag" ||
22006 test ! -s conftest.err
22007 } && test -s conftest.$ac_objext; then
22008 ac_cv_member_struct_stat_st_birthtime=yes
22010 echo "$as_me: failed program was:" >&5
22011 sed 's/^/| /' conftest.$ac_ext >&5
22013 ac_cv_member_struct_stat_st_birthtime=no
22016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22021 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
22022 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
22023 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
22025 cat >>confdefs.h <<_ACEOF
22026 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
22032 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
22033 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
22034 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
22035 echo $ECHO_N "(cached) $ECHO_C" >&6
22037 cat >conftest.$ac_ext <<_ACEOF
22040 cat confdefs.h >>conftest.$ac_ext
22041 cat >>conftest.$ac_ext <<_ACEOF
22042 /* end confdefs.h. */
22043 $ac_includes_default
22047 static struct stat ac_aggr;
22048 if (ac_aggr.st_blocks)
22054 rm -f conftest.$ac_objext
22055 if { (ac_try="$ac_compile"
22056 case "(($ac_try" in
22057 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22058 *) ac_try_echo
=$ac_try;;
22060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22061 (eval "$ac_compile") 2>conftest.er1
22063 grep -v '^ *+' conftest.er1
>conftest.err
22065 cat conftest.err
>&5
22066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22067 (exit $ac_status); } && {
22068 test -z "$ac_c_werror_flag" ||
22069 test ! -s conftest.err
22070 } && test -s conftest.
$ac_objext; then
22071 ac_cv_member_struct_stat_st_blocks
=yes
22073 echo "$as_me: failed program was:" >&5
22074 sed 's/^/| /' conftest.
$ac_ext >&5
22076 cat >conftest.
$ac_ext <<_ACEOF
22079 cat confdefs.h
>>conftest.
$ac_ext
22080 cat >>conftest.
$ac_ext <<_ACEOF
22081 /* end confdefs.h. */
22082 $ac_includes_default
22086 static struct stat ac_aggr;
22087 if (sizeof ac_aggr.st_blocks)
22093 rm -f conftest.
$ac_objext
22094 if { (ac_try
="$ac_compile"
22095 case "(($ac_try" in
22096 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22097 *) ac_try_echo=$ac_try;;
22099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22100 (eval "$ac_compile") 2>conftest.er1
22102 grep -v '^ *+' conftest.er1 >conftest.err
22104 cat conftest.err >&5
22105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22106 (exit $ac_status); } && {
22107 test -z "$ac_c_werror_flag" ||
22108 test ! -s conftest.err
22109 } && test -s conftest.$ac_objext; then
22110 ac_cv_member_struct_stat_st_blocks=yes
22112 echo "$as_me: failed program was:" >&5
22113 sed 's/^/| /' conftest.$ac_ext >&5
22115 ac_cv_member_struct_stat_st_blocks=no
22118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22123 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
22124 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
22125 if test $ac_cv_member_struct_stat_st_blocks = yes; then
22127 cat >>confdefs.h <<_ACEOF
22128 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
22132 cat >>confdefs.h <<\_ACEOF
22133 #define HAVE_ST_BLOCKS 1
22137 case " $LIBOBJS " in
22138 *" fileblocks.$ac_objext "* ) ;;
22139 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
22147 { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
22148 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
22149 if test "${ac_cv_header_time_altzone+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. */
22167 rm -f conftest.$ac_objext
22168 if { (ac_try="$ac_compile"
22169 case "(($ac_try" in
22170 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22171 *) ac_try_echo
=$ac_try;;
22173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22174 (eval "$ac_compile") 2>conftest.er1
22176 grep -v '^ *+' conftest.er1
>conftest.err
22178 cat conftest.err
>&5
22179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22180 (exit $ac_status); } && {
22181 test -z "$ac_c_werror_flag" ||
22182 test ! -s conftest.err
22183 } && test -s conftest.
$ac_objext; then
22184 ac_cv_header_time_altzone
=yes
22186 echo "$as_me: failed program was:" >&5
22187 sed 's/^/| /' conftest.
$ac_ext >&5
22189 ac_cv_header_time_altzone
=no
22192 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22195 { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
22196 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
22197 if test $ac_cv_header_time_altzone = yes; then
22199 cat >>confdefs.h
<<\_ACEOF
22200 #define HAVE_ALTZONE 1
22206 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
22207 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
22208 cat >conftest.
$ac_ext <<_ACEOF
22211 cat confdefs.h
>>conftest.
$ac_ext
22212 cat >>conftest.
$ac_ext <<_ACEOF
22213 /* end confdefs.h. */
22215 #include <sys/types.h>
22216 #include <sys/select.h>
22217 #include <sys/time.h>
22227 rm -f conftest.
$ac_objext
22228 if { (ac_try
="$ac_compile"
22229 case "(($ac_try" in
22230 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22231 *) ac_try_echo=$ac_try;;
22233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22234 (eval "$ac_compile") 2>conftest.er1
22236 grep -v '^ *+' conftest.er1 >conftest.err
22238 cat conftest.err >&5
22239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22240 (exit $ac_status); } && {
22241 test -z "$ac_c_werror_flag" ||
22242 test ! -s conftest.err
22243 } && test -s conftest.$ac_objext; then
22246 cat >>confdefs.h <<\_ACEOF
22247 #define SYS_SELECT_WITH_SYS_TIME 1
22253 echo "$as_me: failed program was:" >&5
22254 sed 's/^/| /' conftest.$ac_ext >&5
22259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22260 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
22261 echo "${ECHO_T}$was_it_defined" >&6; }
22263 { echo "$as_me:$LINENO: checking for addrinfo" >&5
22264 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
22265 if test "${ac_cv_struct_addrinfo+set}" = set; then
22266 echo $ECHO_N "(cached) $ECHO_C" >&6
22268 cat >conftest.$ac_ext <<_ACEOF
22271 cat confdefs.h >>conftest.$ac_ext
22272 cat >>conftest.$ac_ext <<_ACEOF
22273 /* end confdefs.h. */
22275 # include <netdb.h>
22284 rm -f conftest.$ac_objext
22285 if { (ac_try="$ac_compile"
22286 case "(($ac_try" in
22287 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22288 *) ac_try_echo
=$ac_try;;
22290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22291 (eval "$ac_compile") 2>conftest.er1
22293 grep -v '^ *+' conftest.er1
>conftest.err
22295 cat conftest.err
>&5
22296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22297 (exit $ac_status); } && {
22298 test -z "$ac_c_werror_flag" ||
22299 test ! -s conftest.err
22300 } && test -s conftest.
$ac_objext; then
22301 ac_cv_struct_addrinfo
=yes
22303 echo "$as_me: failed program was:" >&5
22304 sed 's/^/| /' conftest.
$ac_ext >&5
22306 ac_cv_struct_addrinfo
=no
22309 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22312 { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
22313 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
22314 if test $ac_cv_struct_addrinfo = yes; then
22316 cat >>confdefs.h
<<\_ACEOF
22317 #define HAVE_ADDRINFO 1
22322 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
22323 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
22324 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
22325 echo $ECHO_N "(cached) $ECHO_C" >&6
22327 cat >conftest.
$ac_ext <<_ACEOF
22330 cat confdefs.h
>>conftest.
$ac_ext
22331 cat >>conftest.
$ac_ext <<_ACEOF
22332 /* end confdefs.h. */
22334 # include <sys/types.h>
22335 # include <sys/socket.h>
22339 struct sockaddr_storage s
22344 rm -f conftest.
$ac_objext
22345 if { (ac_try
="$ac_compile"
22346 case "(($ac_try" in
22347 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22348 *) ac_try_echo=$ac_try;;
22350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22351 (eval "$ac_compile") 2>conftest.er1
22353 grep -v '^ *+' conftest.er1 >conftest.err
22355 cat conftest.err >&5
22356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22357 (exit $ac_status); } && {
22358 test -z "$ac_c_werror_flag" ||
22359 test ! -s conftest.err
22360 } && test -s conftest.$ac_objext; then
22361 ac_cv_struct_sockaddr_storage=yes
22363 echo "$as_me: failed program was:" >&5
22364 sed 's/^/| /' conftest.$ac_ext >&5
22366 ac_cv_struct_sockaddr_storage=no
22369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22372 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
22373 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
22374 if test $ac_cv_struct_sockaddr_storage = yes; then
22376 cat >>confdefs.h <<\_ACEOF
22377 #define HAVE_SOCKADDR_STORAGE 1
22382 # checks for compiler characteristics
22385 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
22386 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
22387 if test "${ac_cv_c_char_unsigned+set}" = set; then
22388 echo $ECHO_N "(cached) $ECHO_C" >&6
22390 cat >conftest.$ac_ext <<_ACEOF
22393 cat confdefs.h >>conftest.$ac_ext
22394 cat >>conftest.$ac_ext <<_ACEOF
22395 /* end confdefs.h. */
22396 $ac_includes_default
22400 static int test_array [1 - 2 * !(((char) -1) < 0)];
22407 rm -f conftest.$ac_objext
22408 if { (ac_try="$ac_compile"
22409 case "(($ac_try" in
22410 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22411 *) ac_try_echo
=$ac_try;;
22413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22414 (eval "$ac_compile") 2>conftest.er1
22416 grep -v '^ *+' conftest.er1
>conftest.err
22418 cat conftest.err
>&5
22419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22420 (exit $ac_status); } && {
22421 test -z "$ac_c_werror_flag" ||
22422 test ! -s conftest.err
22423 } && test -s conftest.
$ac_objext; then
22424 ac_cv_c_char_unsigned
=no
22426 echo "$as_me: failed program was:" >&5
22427 sed 's/^/| /' conftest.
$ac_ext >&5
22429 ac_cv_c_char_unsigned
=yes
22432 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22434 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
22435 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
22436 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
22437 cat >>confdefs.h
<<\_ACEOF
22438 #define __CHAR_UNSIGNED__ 1
22443 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22444 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
22445 if test "${ac_cv_c_const+set}" = set; then
22446 echo $ECHO_N "(cached) $ECHO_C" >&6
22448 cat >conftest.
$ac_ext <<_ACEOF
22451 cat confdefs.h
>>conftest.
$ac_ext
22452 cat >>conftest.
$ac_ext <<_ACEOF
22453 /* end confdefs.h. */
22458 /* FIXME: Include the comments suggested by Paul. */
22459 #ifndef __cplusplus
22460 /* Ultrix mips cc rejects this. */
22461 typedef int charset[2];
22463 /* SunOS 4.1.1 cc rejects this. */
22464 char const *const *pcpcc;
22466 /* NEC SVR4.0.2 mips cc rejects this. */
22467 struct point {int x, y;};
22468 static struct point const zero = {0,0};
22469 /* AIX XL C 1.02.0.0 rejects this.
22470 It does not let you subtract one const X* pointer from another in
22471 an arm of an if-expression whose if-part is not a constant
22473 const char *g = "string";
22474 pcpcc = &g + (g ? g-g : 0);
22475 /* HPUX 7.0 cc rejects these. */
22477 ppc = (char**) pcpcc;
22478 pcpcc = (char const *const *) ppc;
22479 { /* SCO 3.2v4 cc rejects this. */
22481 char const *s = 0 ? (char *) 0 : (char const *) 0;
22486 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22487 int x[] = {25, 17};
22488 const int *foo = &x[0];
22491 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22492 typedef const int *iptr;
22496 { /* AIX XL C 1.02.0.0 rejects this saying
22497 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22498 struct s { int j; const int *ap[3]; };
22499 struct s *b; b->j = 5;
22501 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22502 const int foo = 10;
22503 if (!foo) return 0;
22505 return !cs[0] && !zero.x;
22512 rm -f conftest.
$ac_objext
22513 if { (ac_try
="$ac_compile"
22514 case "(($ac_try" in
22515 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22516 *) ac_try_echo=$ac_try;;
22518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22519 (eval "$ac_compile") 2>conftest.er1
22521 grep -v '^ *+' conftest.er1 >conftest.err
22523 cat conftest.err >&5
22524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22525 (exit $ac_status); } && {
22526 test -z "$ac_c_werror_flag" ||
22527 test ! -s conftest.err
22528 } && test -s conftest.$ac_objext; then
22531 echo "$as_me: failed program was:" >&5
22532 sed 's/^/| /' conftest.$ac_ext >&5
22537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22539 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22540 echo "${ECHO_T}$ac_cv_c_const" >&6; }
22541 if test $ac_cv_c_const = no; then
22543 cat >>confdefs.h <<\_ACEOF
22551 { echo "$as_me:$LINENO: checking for working volatile" >&5
22552 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
22553 cat >conftest.$ac_ext <<_ACEOF
22556 cat confdefs.h >>conftest.$ac_ext
22557 cat >>conftest.$ac_ext <<_ACEOF
22558 /* end confdefs.h. */
22563 volatile int x; x = 0;
22568 rm -f conftest.$ac_objext
22569 if { (ac_try="$ac_compile"
22570 case "(($ac_try" in
22571 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22572 *) ac_try_echo
=$ac_try;;
22574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22575 (eval "$ac_compile") 2>conftest.er1
22577 grep -v '^ *+' conftest.er1
>conftest.err
22579 cat conftest.err
>&5
22580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22581 (exit $ac_status); } && {
22582 test -z "$ac_c_werror_flag" ||
22583 test ! -s conftest.err
22584 } && test -s conftest.
$ac_objext; then
22587 echo "$as_me: failed program was:" >&5
22588 sed 's/^/| /' conftest.
$ac_ext >&5
22591 cat >>confdefs.h
<<\_ACEOF
22598 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22599 { echo "$as_me:$LINENO: result: $works" >&5
22600 echo "${ECHO_T}$works" >&6; }
22603 { echo "$as_me:$LINENO: checking for working signed char" >&5
22604 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
22605 cat >conftest.
$ac_ext <<_ACEOF
22608 cat confdefs.h
>>conftest.
$ac_ext
22609 cat >>conftest.
$ac_ext <<_ACEOF
22610 /* end confdefs.h. */
22620 rm -f conftest.
$ac_objext
22621 if { (ac_try
="$ac_compile"
22622 case "(($ac_try" in
22623 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22624 *) ac_try_echo=$ac_try;;
22626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22627 (eval "$ac_compile") 2>conftest.er1
22629 grep -v '^ *+' conftest.er1 >conftest.err
22631 cat conftest.err >&5
22632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22633 (exit $ac_status); } && {
22634 test -z "$ac_c_werror_flag" ||
22635 test ! -s conftest.err
22636 } && test -s conftest.$ac_objext; then
22639 echo "$as_me: failed program was:" >&5
22640 sed 's/^/| /' conftest.$ac_ext >&5
22643 cat >>confdefs.h <<\_ACEOF
22650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22651 { echo "$as_me:$LINENO: result: $works" >&5
22652 echo "${ECHO_T}$works" >&6; }
22655 { echo "$as_me:$LINENO: checking for prototypes" >&5
22656 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
22657 cat >conftest.$ac_ext <<_ACEOF
22660 cat confdefs.h >>conftest.$ac_ext
22661 cat >>conftest.$ac_ext <<_ACEOF
22662 /* end confdefs.h. */
22663 int foo(int x) { return 0; }
22672 rm -f conftest.$ac_objext
22673 if { (ac_try="$ac_compile"
22674 case "(($ac_try" in
22675 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22676 *) ac_try_echo
=$ac_try;;
22678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22679 (eval "$ac_compile") 2>conftest.er1
22681 grep -v '^ *+' conftest.er1
>conftest.err
22683 cat conftest.err
>&5
22684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22685 (exit $ac_status); } && {
22686 test -z "$ac_c_werror_flag" ||
22687 test ! -s conftest.err
22688 } && test -s conftest.
$ac_objext; then
22691 cat >>confdefs.h
<<\_ACEOF
22692 #define HAVE_PROTOTYPES 1
22695 have_prototypes
=yes
22698 echo "$as_me: failed program was:" >&5
22699 sed 's/^/| /' conftest.
$ac_ext >&5
22704 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22705 { echo "$as_me:$LINENO: result: $have_prototypes" >&5
22706 echo "${ECHO_T}$have_prototypes" >&6; }
22709 { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
22710 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
22711 cat >conftest.
$ac_ext <<_ACEOF
22714 cat confdefs.h
>>conftest.
$ac_ext
22715 cat >>conftest.
$ac_ext <<_ACEOF
22716 /* end confdefs.h. */
22718 #include <stdarg.h>
22719 int foo(int x, ...) {
22723 va_arg(va, char *);
22724 va_arg(va, double);
22731 return foo(10, "", 3.14);
22736 rm -f conftest.
$ac_objext
22737 if { (ac_try
="$ac_compile"
22738 case "(($ac_try" in
22739 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22740 *) ac_try_echo=$ac_try;;
22742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22743 (eval "$ac_compile") 2>conftest.er1
22745 grep -v '^ *+' conftest.er1 >conftest.err
22747 cat conftest.err >&5
22748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22749 (exit $ac_status); } && {
22750 test -z "$ac_c_werror_flag" ||
22751 test ! -s conftest.err
22752 } && test -s conftest.$ac_objext; then
22755 cat >>confdefs.h <<\_ACEOF
22756 #define HAVE_STDARG_PROTOTYPES 1
22762 echo "$as_me: failed program was:" >&5
22763 sed 's/^/| /' conftest.$ac_ext >&5
22768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22769 { echo "$as_me:$LINENO: result: $works" >&5
22770 echo "${ECHO_T}$works" >&6; }
22772 # check for socketpair
22773 { echo "$as_me:$LINENO: checking for socketpair" >&5
22774 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
22775 cat >conftest.$ac_ext <<_ACEOF
22778 cat confdefs.h >>conftest.$ac_ext
22779 cat >>conftest.$ac_ext <<_ACEOF
22780 /* end confdefs.h. */
22782 #include <sys/types.h>
22783 #include <sys/socket.h>
22793 rm -f conftest.$ac_objext
22794 if { (ac_try="$ac_compile"
22795 case "(($ac_try" in
22796 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22797 *) ac_try_echo
=$ac_try;;
22799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22800 (eval "$ac_compile") 2>conftest.er1
22802 grep -v '^ *+' conftest.er1
>conftest.err
22804 cat conftest.err
>&5
22805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22806 (exit $ac_status); } && {
22807 test -z "$ac_c_werror_flag" ||
22808 test ! -s conftest.err
22809 } && test -s conftest.
$ac_objext; then
22811 cat >>confdefs.h
<<\_ACEOF
22812 #define HAVE_SOCKETPAIR 1
22815 { echo "$as_me:$LINENO: result: yes" >&5
22816 echo "${ECHO_T}yes" >&6; }
22818 echo "$as_me: failed program was:" >&5
22819 sed 's/^/| /' conftest.
$ac_ext >&5
22821 { echo "$as_me:$LINENO: result: no" >&5
22822 echo "${ECHO_T}no" >&6; }
22826 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22828 # check if sockaddr has sa_len member
22829 { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
22830 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; }
22831 cat >conftest.
$ac_ext <<_ACEOF
22834 cat confdefs.h
>>conftest.
$ac_ext
22835 cat >>conftest.
$ac_ext <<_ACEOF
22836 /* end confdefs.h. */
22837 #include <sys/types.h>
22838 #include <sys/socket.h>
22848 rm -f conftest.
$ac_objext
22849 if { (ac_try
="$ac_compile"
22850 case "(($ac_try" in
22851 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22852 *) ac_try_echo=$ac_try;;
22854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22855 (eval "$ac_compile") 2>conftest.er1
22857 grep -v '^ *+' conftest.er1 >conftest.err
22859 cat conftest.err >&5
22860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22861 (exit $ac_status); } && {
22862 test -z "$ac_c_werror_flag" ||
22863 test ! -s conftest.err
22864 } && test -s conftest.$ac_objext; then
22865 { echo "$as_me:$LINENO: result: yes" >&5
22866 echo "${ECHO_T}yes" >&6; }
22868 cat >>confdefs.h <<\_ACEOF
22869 #define HAVE_SOCKADDR_SA_LEN 1
22873 echo "$as_me: failed program was:" >&5
22874 sed 's/^/| /' conftest.$ac_ext >&5
22876 { echo "$as_me:$LINENO: result: no" >&5
22877 echo "${ECHO_T}no" >&6; }
22880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22882 va_list_is_array=no
22883 { echo "$as_me:$LINENO: checking whether va_list is an array" >&5
22884 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
22885 cat >conftest.$ac_ext <<_ACEOF
22888 cat confdefs.h >>conftest.$ac_ext
22889 cat >>conftest.$ac_ext <<_ACEOF
22890 /* end confdefs.h. */
22892 #ifdef HAVE_STDARG_PROTOTYPES
22893 #include <stdarg.h>
22895 #include <varargs.h>
22901 va_list list1, list2; list1 = list2;
22906 rm -f conftest.$ac_objext
22907 if { (ac_try="$ac_compile"
22908 case "(($ac_try" in
22909 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22910 *) ac_try_echo
=$ac_try;;
22912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22913 (eval "$ac_compile") 2>conftest.er1
22915 grep -v '^ *+' conftest.er1
>conftest.err
22917 cat conftest.err
>&5
22918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22919 (exit $ac_status); } && {
22920 test -z "$ac_c_werror_flag" ||
22921 test ! -s conftest.err
22922 } && test -s conftest.
$ac_objext; then
22925 echo "$as_me: failed program was:" >&5
22926 sed 's/^/| /' conftest.
$ac_ext >&5
22930 cat >>confdefs.h
<<\_ACEOF
22931 #define VA_LIST_IS_ARRAY 1
22934 va_list_is_array
=yes
22938 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22939 { echo "$as_me:$LINENO: result: $va_list_is_array" >&5
22940 echo "${ECHO_T}$va_list_is_array" >&6; }
22942 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
22946 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
22947 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
22948 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
22949 echo $ECHO_N "(cached) $ECHO_C" >&6
22951 cat >conftest.
$ac_ext <<_ACEOF
22954 cat confdefs.h
>>conftest.
$ac_ext
22955 cat >>conftest.
$ac_ext <<_ACEOF
22956 /* end confdefs.h. */
22957 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
22958 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22959 #define gethostbyname_r innocuous_gethostbyname_r
22961 /* System header to define __stub macros and hopefully few prototypes,
22962 which can conflict with char gethostbyname_r (); below.
22963 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22964 <limits.h> exists even on freestanding compilers. */
22967 # include <limits.h>
22969 # include <assert.h>
22972 #undef gethostbyname_r
22974 /* Override any GCC internal prototype to avoid an error.
22975 Use char because int might match the return type of a GCC
22976 builtin and then its argument prototype would still apply. */
22980 char gethostbyname_r ();
22981 /* The GNU C library defines this for functions which it implements
22982 to always fail with ENOSYS. Some functions are actually named
22983 something starting with __ and the normal name is an alias. */
22984 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
22991 return gethostbyname_r ();
22996 rm -f conftest.
$ac_objext conftest
$ac_exeext
22997 if { (ac_try
="$ac_link"
22998 case "(($ac_try" in
22999 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23000 *) ac_try_echo=$ac_try;;
23002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23003 (eval "$ac_link") 2>conftest.er1
23005 grep -v '^ *+' conftest.er1 >conftest.err
23007 cat conftest.err >&5
23008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23009 (exit $ac_status); } && {
23010 test -z "$ac_c_werror_flag" ||
23011 test ! -s conftest.err
23012 } && test -s conftest$ac_exeext &&
23013 $as_test_x conftest$ac_exeext; then
23014 ac_cv_func_gethostbyname_r=yes
23016 echo "$as_me: failed program was:" >&5
23017 sed 's/^/| /' conftest.$ac_ext >&5
23019 ac_cv_func_gethostbyname_r=no
23022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23023 conftest$ac_exeext conftest.$ac_ext
23025 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
23026 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
23027 if test $ac_cv_func_gethostbyname_r = yes; then
23029 cat >>confdefs.h <<\_ACEOF
23030 #define HAVE_GETHOSTBYNAME_R 1
23033 { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
23034 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
23036 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
23037 cat >conftest.$ac_ext <<_ACEOF
23040 cat confdefs.h >>conftest.$ac_ext
23041 cat >>conftest.$ac_ext <<_ACEOF
23042 /* end confdefs.h. */
23044 # include <netdb.h>
23051 struct hostent *he, *res;
23056 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
23062 rm -f conftest.$ac_objext
23063 if { (ac_try="$ac_compile"
23064 case "(($ac_try" in
23065 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23066 *) ac_try_echo
=$ac_try;;
23068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23069 (eval "$ac_compile") 2>conftest.er1
23071 grep -v '^ *+' conftest.er1
>conftest.err
23073 cat conftest.err
>&5
23074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23075 (exit $ac_status); } && {
23076 test -z "$ac_c_werror_flag" ||
23077 test ! -s conftest.err
23078 } && test -s conftest.
$ac_objext; then
23080 cat >>confdefs.h
<<\_ACEOF
23081 #define HAVE_GETHOSTBYNAME_R 1
23085 cat >>confdefs.h
<<\_ACEOF
23086 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
23089 { echo "$as_me:$LINENO: result: yes" >&5
23090 echo "${ECHO_T}yes" >&6; }
23093 echo "$as_me: failed program was:" >&5
23094 sed 's/^/| /' conftest.
$ac_ext >&5
23097 { echo "$as_me:$LINENO: result: no" >&5
23098 echo "${ECHO_T}no" >&6; }
23099 { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
23100 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
23101 cat >conftest.
$ac_ext <<_ACEOF
23104 cat confdefs.h
>>conftest.
$ac_ext
23105 cat >>conftest.
$ac_ext <<_ACEOF
23106 /* end confdefs.h. */
23108 # include <netdb.h>
23115 struct hostent *he;
23120 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
23126 rm -f conftest.
$ac_objext
23127 if { (ac_try
="$ac_compile"
23128 case "(($ac_try" in
23129 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23130 *) ac_try_echo=$ac_try;;
23132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23133 (eval "$ac_compile") 2>conftest.er1
23135 grep -v '^ *+' conftest.er1 >conftest.err
23137 cat conftest.err >&5
23138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23139 (exit $ac_status); } && {
23140 test -z "$ac_c_werror_flag" ||
23141 test ! -s conftest.err
23142 } && test -s conftest.$ac_objext; then
23144 cat >>confdefs.h <<\_ACEOF
23145 #define HAVE_GETHOSTBYNAME_R 1
23149 cat >>confdefs.h <<\_ACEOF
23150 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
23153 { echo "$as_me:$LINENO: result: yes" >&5
23154 echo "${ECHO_T}yes" >&6; }
23157 echo "$as_me: failed program was:" >&5
23158 sed 's/^/| /' conftest.$ac_ext >&5
23161 { echo "$as_me:$LINENO: result: no" >&5
23162 echo "${ECHO_T}no" >&6; }
23163 { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
23164 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
23165 cat >conftest.$ac_ext <<_ACEOF
23168 cat confdefs.h >>conftest.$ac_ext
23169 cat >>conftest.$ac_ext <<_ACEOF
23170 /* end confdefs.h. */
23172 # include <netdb.h>
23179 struct hostent *he;
23180 struct hostent_data data;
23182 (void) gethostbyname_r(name, he, &data);
23188 rm -f conftest.$ac_objext
23189 if { (ac_try="$ac_compile"
23190 case "(($ac_try" in
23191 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23192 *) ac_try_echo
=$ac_try;;
23194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23195 (eval "$ac_compile") 2>conftest.er1
23197 grep -v '^ *+' conftest.er1
>conftest.err
23199 cat conftest.err
>&5
23200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23201 (exit $ac_status); } && {
23202 test -z "$ac_c_werror_flag" ||
23203 test ! -s conftest.err
23204 } && test -s conftest.
$ac_objext; then
23206 cat >>confdefs.h
<<\_ACEOF
23207 #define HAVE_GETHOSTBYNAME_R 1
23211 cat >>confdefs.h
<<\_ACEOF
23212 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
23215 { echo "$as_me:$LINENO: result: yes" >&5
23216 echo "${ECHO_T}yes" >&6; }
23219 echo "$as_me: failed program was:" >&5
23220 sed 's/^/| /' conftest.
$ac_ext >&5
23223 { echo "$as_me:$LINENO: result: no" >&5
23224 echo "${ECHO_T}no" >&6; }
23228 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23232 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23236 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23242 for ac_func
in gethostbyname
23244 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23245 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23246 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23247 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23248 echo $ECHO_N "(cached) $ECHO_C" >&6
23250 cat >conftest.
$ac_ext <<_ACEOF
23253 cat confdefs.h
>>conftest.
$ac_ext
23254 cat >>conftest.
$ac_ext <<_ACEOF
23255 /* end confdefs.h. */
23256 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23258 #define $ac_func innocuous_$ac_func
23260 /* System header to define __stub macros and hopefully few prototypes,
23261 which can conflict with char $ac_func (); below.
23262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23263 <limits.h> exists even on freestanding compilers. */
23266 # include <limits.h>
23268 # include <assert.h>
23273 /* Override any GCC internal prototype to avoid an error.
23274 Use char because int might match the return type of a GCC
23275 builtin and then its argument prototype would still apply. */
23280 /* The GNU C library defines this for functions which it implements
23281 to always fail with ENOSYS. Some functions are actually named
23282 something starting with __ and the normal name is an alias. */
23283 #if defined __stub_$ac_func || defined __stub___$ac_func
23290 return $ac_func ();
23295 rm -f conftest.
$ac_objext conftest
$ac_exeext
23296 if { (ac_try
="$ac_link"
23297 case "(($ac_try" in
23298 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23299 *) ac_try_echo=$ac_try;;
23301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23302 (eval "$ac_link") 2>conftest.er1
23304 grep -v '^ *+' conftest.er1 >conftest.err
23306 cat conftest.err >&5
23307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23308 (exit $ac_status); } && {
23309 test -z "$ac_c_werror_flag" ||
23310 test ! -s conftest.err
23311 } && test -s conftest$ac_exeext &&
23312 $as_test_x conftest$ac_exeext; then
23313 eval "$as_ac_var=yes"
23315 echo "$as_me: failed program was:" >&5
23316 sed 's/^/| /' conftest.$ac_ext >&5
23318 eval "$as_ac_var=no"
23321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23322 conftest$ac_exeext conftest.$ac_ext
23324 ac_res=`eval echo '${'$as_ac_var'}'`
23325 { echo "$as_me:$LINENO: result: $ac_res" >&5
23326 echo "${ECHO_T}$ac_res" >&6; }
23327 if test `eval echo '${'$as_ac_var'}'` = yes; then
23328 cat >>confdefs.h <<_ACEOF
23329 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
23344 # checks for system services
23347 # Linux requires this for correct f.p. operations
23348 { echo "$as_me:$LINENO: checking for __fpu_control" >&5
23349 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
23350 if test "${ac_cv_func___fpu_control+set}" = set; then
23351 echo $ECHO_N "(cached) $ECHO_C" >&6
23353 cat >conftest.$ac_ext <<_ACEOF
23356 cat confdefs.h >>conftest.$ac_ext
23357 cat >>conftest.$ac_ext <<_ACEOF
23358 /* end confdefs.h. */
23359 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
23360 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23361 #define __fpu_control innocuous___fpu_control
23363 /* System header to define __stub macros and hopefully few prototypes,
23364 which can conflict with char __fpu_control (); below.
23365 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23366 <limits.h> exists even on freestanding compilers. */
23369 # include <limits.h>
23371 # include <assert.h>
23374 #undef __fpu_control
23376 /* Override any GCC internal prototype to avoid an error.
23377 Use char because int might match the return type of a GCC
23378 builtin and then its argument prototype would still apply. */
23382 char __fpu_control ();
23383 /* The GNU C library defines this for functions which it implements
23384 to always fail with ENOSYS. Some functions are actually named
23385 something starting with __ and the normal name is an alias. */
23386 #if defined __stub___fpu_control || defined __stub_____fpu_control
23393 return __fpu_control ();
23398 rm -f conftest.$ac_objext conftest$ac_exeext
23399 if { (ac_try="$ac_link"
23400 case "(($ac_try" in
23401 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23402 *) ac_try_echo
=$ac_try;;
23404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23405 (eval "$ac_link") 2>conftest.er1
23407 grep -v '^ *+' conftest.er1
>conftest.err
23409 cat conftest.err
>&5
23410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23411 (exit $ac_status); } && {
23412 test -z "$ac_c_werror_flag" ||
23413 test ! -s conftest.err
23414 } && test -s conftest
$ac_exeext &&
23415 $as_test_x conftest
$ac_exeext; then
23416 ac_cv_func___fpu_control
=yes
23418 echo "$as_me: failed program was:" >&5
23419 sed 's/^/| /' conftest.
$ac_ext >&5
23421 ac_cv_func___fpu_control
=no
23424 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23425 conftest
$ac_exeext conftest.
$ac_ext
23427 { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
23428 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
23429 if test $ac_cv_func___fpu_control = yes; then
23433 { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
23434 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
23435 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
23436 echo $ECHO_N "(cached) $ECHO_C" >&6
23438 ac_check_lib_save_LIBS
=$LIBS
23439 LIBS
="-lieee $LIBS"
23440 cat >conftest.
$ac_ext <<_ACEOF
23443 cat confdefs.h
>>conftest.
$ac_ext
23444 cat >>conftest.
$ac_ext <<_ACEOF
23445 /* end confdefs.h. */
23447 /* Override any GCC internal prototype to avoid an error.
23448 Use char because int might match the return type of a GCC
23449 builtin and then its argument prototype would still apply. */
23453 char __fpu_control ();
23457 return __fpu_control ();
23462 rm -f conftest.
$ac_objext conftest
$ac_exeext
23463 if { (ac_try
="$ac_link"
23464 case "(($ac_try" in
23465 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23466 *) ac_try_echo=$ac_try;;
23468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23469 (eval "$ac_link") 2>conftest.er1
23471 grep -v '^ *+' conftest.er1 >conftest.err
23473 cat conftest.err >&5
23474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23475 (exit $ac_status); } && {
23476 test -z "$ac_c_werror_flag" ||
23477 test ! -s conftest.err
23478 } && test -s conftest$ac_exeext &&
23479 $as_test_x conftest$ac_exeext; then
23480 ac_cv_lib_ieee___fpu_control=yes
23482 echo "$as_me: failed program was:" >&5
23483 sed 's/^/| /' conftest.$ac_ext >&5
23485 ac_cv_lib_ieee___fpu_control=no
23488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23489 conftest$ac_exeext conftest.$ac_ext
23490 LIBS=$ac_check_lib_save_LIBS
23492 { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
23493 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
23494 if test $ac_cv_lib_ieee___fpu_control = yes; then
23495 cat >>confdefs.h <<_ACEOF
23496 #define HAVE_LIBIEEE 1
23499 LIBS="-lieee $LIBS"
23507 # Check for --with-fpectl
23508 { echo "$as_me:$LINENO: checking for --with-fpectl" >&5
23509 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
23511 # Check whether --with-fpectl was given.
23512 if test "${with_fpectl+set}" = set; then
23513 withval=$with_fpectl;
23514 if test "$withval" != no
23517 cat >>confdefs.h <<\_ACEOF
23518 #define WANT_SIGFPE_HANDLER 1
23521 { echo "$as_me:$LINENO: result: yes" >&5
23522 echo "${ECHO_T}yes" >&6; }
23523 else { echo "$as_me:$LINENO: result: no" >&5
23524 echo "${ECHO_T}no" >&6; }
23527 { echo "$as_me:$LINENO: result: no" >&5
23528 echo "${ECHO_T}no" >&6; }
23532 # check for --with-libm=...
23534 case $ac_sys_system in
23539 { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
23540 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
23542 # Check whether --with-libm was given.
23543 if test "${with_libm+set}" = set; then
23544 withval=$with_libm;
23545 if test "$withval" = no
23547 { echo "$as_me:$LINENO: result: force LIBM empty" >&5
23548 echo "${ECHO_T}force LIBM empty" >&6; }
23549 elif test "$withval" != yes
23551 { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
23552 echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
23553 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
23554 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
23555 { (exit 1); exit 1; }; }
23558 { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
23559 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
23563 # check for --with-libc=...
23565 { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
23566 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
23568 # Check whether --with-libc was given.
23569 if test "${with_libc+set}" = set; then
23570 withval=$with_libc;
23571 if test "$withval" = no
23573 { echo "$as_me:$LINENO: result: force LIBC empty" >&5
23574 echo "${ECHO_T}force LIBC empty" >&6; }
23575 elif test "$withval" != yes
23577 { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
23578 echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
23579 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
23580 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
23581 { (exit 1); exit 1; }; }
23584 { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
23585 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
23589 # **************************************************
23590 # * Check for various properties of floating point *
23591 # **************************************************
23593 { echo "$as_me:$LINENO: checking whether C doubles are little-endian IEEE 754 binary64" >&5
23594 echo $ECHO_N "checking whether C doubles are little-endian IEEE 754 binary64... $ECHO_C" >&6; }
23595 if test "${ac_cv_little_endian_double+set}" = set; then
23596 echo $ECHO_N "(cached) $ECHO_C" >&6
23599 if test "$cross_compiling" = yes; then
23600 ac_cv_little_endian_double=no
23602 cat >conftest.$ac_ext <<_ACEOF
23605 cat confdefs.h >>conftest.$ac_ext
23606 cat >>conftest.$ac_ext <<_ACEOF
23607 /* end confdefs.h. */
23609 #include <string.h>
23611 double x = 9006104071832581.0;
23612 if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0)
23619 rm -f conftest$ac_exeext
23620 if { (ac_try="$ac_link"
23621 case "(($ac_try" in
23622 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23623 *) ac_try_echo
=$ac_try;;
23625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23626 (eval "$ac_link") 2>&5
23628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23629 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23630 { (case "(($ac_try" in
23631 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23632 *) ac_try_echo=$ac_try;;
23634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23635 (eval "$ac_try") 2>&5
23637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23638 (exit $ac_status); }; }; then
23639 ac_cv_little_endian_double=yes
23641 echo "$as_me: program exited with status $ac_status" >&5
23642 echo "$as_me: failed program was:" >&5
23643 sed 's/^/| /' conftest.$ac_ext >&5
23645 ( exit $ac_status )
23646 ac_cv_little_endian_double=no
23648 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23654 { echo "$as_me:$LINENO: result: $ac_cv_little_endian_double" >&5
23655 echo "${ECHO_T}$ac_cv_little_endian_double" >&6; }
23656 if test "$ac_cv_little_endian_double" = yes
23659 cat >>confdefs.h <<\_ACEOF
23660 #define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1
23665 { echo "$as_me:$LINENO: checking whether C doubles are big-endian IEEE 754 binary64" >&5
23666 echo $ECHO_N "checking whether C doubles are big-endian IEEE 754 binary64... $ECHO_C" >&6; }
23667 if test "${ac_cv_big_endian_double+set}" = set; then
23668 echo $ECHO_N "(cached) $ECHO_C" >&6
23671 if test "$cross_compiling" = yes; then
23672 ac_cv_big_endian_double=no
23674 cat >conftest.$ac_ext <<_ACEOF
23677 cat confdefs.h >>conftest.$ac_ext
23678 cat >>conftest.$ac_ext <<_ACEOF
23679 /* end confdefs.h. */
23681 #include <string.h>
23683 double x = 9006104071832581.0;
23684 if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0)
23691 rm -f conftest$ac_exeext
23692 if { (ac_try="$ac_link"
23693 case "(($ac_try" in
23694 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23695 *) ac_try_echo
=$ac_try;;
23697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23698 (eval "$ac_link") 2>&5
23700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23701 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23702 { (case "(($ac_try" in
23703 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23704 *) ac_try_echo=$ac_try;;
23706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23707 (eval "$ac_try") 2>&5
23709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23710 (exit $ac_status); }; }; then
23711 ac_cv_big_endian_double=yes
23713 echo "$as_me: program exited with status $ac_status" >&5
23714 echo "$as_me: failed program was:" >&5
23715 sed 's/^/| /' conftest.$ac_ext >&5
23717 ( exit $ac_status )
23718 ac_cv_big_endian_double=no
23720 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23726 { echo "$as_me:$LINENO: result: $ac_cv_big_endian_double" >&5
23727 echo "${ECHO_T}$ac_cv_big_endian_double" >&6; }
23728 if test "$ac_cv_big_endian_double" = yes
23731 cat >>confdefs.h <<\_ACEOF
23732 #define DOUBLE_IS_BIG_ENDIAN_IEEE754 1
23737 # Some ARM platforms use a mixed-endian representation for doubles.
23738 # While Python doesn't currently have full support for these platforms
23739 # (see e.g., issue 1762561), we can at least make sure that float <-> string
23740 # conversions work.
23741 { echo "$as_me:$LINENO: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5
23742 echo $ECHO_N "checking whether C doubles are ARM mixed-endian IEEE 754 binary64... $ECHO_C" >&6; }
23743 if test "${ac_cv_mixed_endian_double+set}" = set; then
23744 echo $ECHO_N "(cached) $ECHO_C" >&6
23747 if test "$cross_compiling" = yes; then
23748 ac_cv_mixed_endian_double=no
23750 cat >conftest.$ac_ext <<_ACEOF
23753 cat confdefs.h >>conftest.$ac_ext
23754 cat >>conftest.$ac_ext <<_ACEOF
23755 /* end confdefs.h. */
23757 #include <string.h>
23759 double x = 9006104071832581.0;
23760 if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0)
23767 rm -f conftest$ac_exeext
23768 if { (ac_try="$ac_link"
23769 case "(($ac_try" in
23770 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23771 *) ac_try_echo
=$ac_try;;
23773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23774 (eval "$ac_link") 2>&5
23776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23777 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23778 { (case "(($ac_try" in
23779 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23780 *) ac_try_echo=$ac_try;;
23782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23783 (eval "$ac_try") 2>&5
23785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23786 (exit $ac_status); }; }; then
23787 ac_cv_mixed_endian_double=yes
23789 echo "$as_me: program exited with status $ac_status" >&5
23790 echo "$as_me: failed program was:" >&5
23791 sed 's/^/| /' conftest.$ac_ext >&5
23793 ( exit $ac_status )
23794 ac_cv_mixed_endian_double=no
23796 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23802 { echo "$as_me:$LINENO: result: $ac_cv_mixed_endian_double" >&5
23803 echo "${ECHO_T}$ac_cv_mixed_endian_double" >&6; }
23804 if test "$ac_cv_mixed_endian_double" = yes
23807 cat >>confdefs.h <<\_ACEOF
23808 #define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1
23813 # The short float repr introduced in Python 3.1 requires the
23814 # correctly-rounded string <-> double conversion functions from
23815 # Python/dtoa.c, which in turn require that the FPU uses 53-bit
23816 # rounding; this is a problem on x86, where the x87 FPU has a default
23817 # rounding precision of 64 bits. For gcc/x86, we can fix this by
23818 # using inline assembler to get and set the x87 FPU control word.
23820 # This inline assembler syntax may also work for suncc and icc,
23821 # so we try it on all platforms.
23823 { echo "$as_me:$LINENO: checking whether we can use gcc inline assembler to get and set x87 control word" >&5
23824 echo $ECHO_N "checking whether we can use gcc inline assembler to get and set x87 control word... $ECHO_C" >&6; }
23825 cat >conftest.$ac_ext <<_ACEOF
23828 cat confdefs.h >>conftest.$ac_ext
23829 cat >>conftest.$ac_ext <<_ACEOF
23830 /* end confdefs.h. */
23837 __asm__ __volatile__ ("fnstcw %0" : "=m" (cw));
23838 __asm__ __volatile__ ("fldcw %0" : : "m" (cw));
23844 rm -f conftest.$ac_objext
23845 if { (ac_try="$ac_compile"
23846 case "(($ac_try" in
23847 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23848 *) ac_try_echo
=$ac_try;;
23850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23851 (eval "$ac_compile") 2>conftest.er1
23853 grep -v '^ *+' conftest.er1
>conftest.err
23855 cat conftest.err
>&5
23856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23857 (exit $ac_status); } && {
23858 test -z "$ac_c_werror_flag" ||
23859 test ! -s conftest.err
23860 } && test -s conftest.
$ac_objext; then
23861 have_gcc_asm_for_x87
=yes
23863 echo "$as_me: failed program was:" >&5
23864 sed 's/^/| /' conftest.
$ac_ext >&5
23866 have_gcc_asm_for_x87
=no
23869 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23870 { echo "$as_me:$LINENO: result: $have_gcc_asm_for_x87" >&5
23871 echo "${ECHO_T}$have_gcc_asm_for_x87" >&6; }
23872 if test "$have_gcc_asm_for_x87" = yes
23875 cat >>confdefs.h
<<\_ACEOF
23876 #define HAVE_GCC_ASM_FOR_X87 1
23881 # Detect whether system arithmetic is subject to x87-style double
23882 # rounding issues. The result of this test has little meaning on non
23883 # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding
23884 # mode is round-to-nearest and double rounding issues are present, and
23885 # 0 otherwise. See http://bugs.python.org/issue2937 for more info.
23886 { echo "$as_me:$LINENO: checking for x87-style double rounding" >&5
23887 echo $ECHO_N "checking for x87-style double rounding... $ECHO_C" >&6; }
23888 # $BASECFLAGS may affect the result
23890 CC
="$CC $BASECFLAGS"
23891 if test "$cross_compiling" = yes; then
23892 ac_cv_x87_double_rounding
=no
23894 cat >conftest.
$ac_ext <<_ACEOF
23897 cat confdefs.h
>>conftest.
$ac_ext
23898 cat >>conftest.
$ac_ext <<_ACEOF
23899 /* end confdefs.h. */
23901 #include <stdlib.h>
23904 volatile double x, y, z;
23905 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
23906 x = 0.99999999999999989; /* 1-2**-53 */
23910 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
23916 /* both tests show evidence of double rounding */
23921 rm -f conftest
$ac_exeext
23922 if { (ac_try
="$ac_link"
23923 case "(($ac_try" in
23924 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23925 *) ac_try_echo=$ac_try;;
23927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23928 (eval "$ac_link") 2>&5
23930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23931 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23932 { (case "(($ac_try" in
23933 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23934 *) ac_try_echo
=$ac_try;;
23936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23937 (eval "$ac_try") 2>&5
23939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23940 (exit $ac_status); }; }; then
23941 ac_cv_x87_double_rounding
=no
23943 echo "$as_me: program exited with status $ac_status" >&5
23944 echo "$as_me: failed program was:" >&5
23945 sed 's/^/| /' conftest.
$ac_ext >&5
23947 ( exit $ac_status )
23948 ac_cv_x87_double_rounding
=yes
23950 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
23955 { echo "$as_me:$LINENO: result: $ac_cv_x87_double_rounding" >&5
23956 echo "${ECHO_T}$ac_cv_x87_double_rounding" >&6; }
23957 if test "$ac_cv_x87_double_rounding" = yes
23960 cat >>confdefs.h
<<\_ACEOF
23961 #define X87_DOUBLE_ROUNDING 1
23966 # ************************************
23967 # * Check for mathematical functions *
23968 # ************************************
23973 # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
23974 # -0. on some architectures.
23975 { echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5
23976 echo $ECHO_N "checking whether tanh preserves the sign of zero... $ECHO_C" >&6; }
23977 if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then
23978 echo $ECHO_N "(cached) $ECHO_C" >&6
23981 if test "$cross_compiling" = yes; then
23982 ac_cv_tanh_preserves_zero_sign
=no
23984 cat >conftest.
$ac_ext <<_ACEOF
23987 cat confdefs.h
>>conftest.
$ac_ext
23988 cat >>conftest.
$ac_ext <<_ACEOF
23989 /* end confdefs.h. */
23992 #include <stdlib.h>
23994 /* return 0 if either negative zeros don't exist
23995 on this platform or if negative zeros exist
23996 and tanh(-0.) == -0. */
23997 if (atan2(0., -1.) == atan2(-0., -1.) ||
23998 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
24003 rm -f conftest
$ac_exeext
24004 if { (ac_try
="$ac_link"
24005 case "(($ac_try" in
24006 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24007 *) ac_try_echo=$ac_try;;
24009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24010 (eval "$ac_link") 2>&5
24012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24013 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24014 { (case "(($ac_try" in
24015 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24016 *) ac_try_echo
=$ac_try;;
24018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24019 (eval "$ac_try") 2>&5
24021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24022 (exit $ac_status); }; }; then
24023 ac_cv_tanh_preserves_zero_sign
=yes
24025 echo "$as_me: program exited with status $ac_status" >&5
24026 echo "$as_me: failed program was:" >&5
24027 sed 's/^/| /' conftest.
$ac_ext >&5
24029 ( exit $ac_status )
24030 ac_cv_tanh_preserves_zero_sign
=no
24032 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
24038 { echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5
24039 echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; }
24040 if test "$ac_cv_tanh_preserves_zero_sign" = yes
24043 cat >>confdefs.h
<<\_ACEOF
24044 #define TANH_PRESERVES_ZERO_SIGN 1
24058 for ac_func
in acosh asinh atanh copysign erf erfc expm1 finite gamma
24060 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24061 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24062 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24063 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24064 echo $ECHO_N "(cached) $ECHO_C" >&6
24066 cat >conftest.
$ac_ext <<_ACEOF
24069 cat confdefs.h
>>conftest.
$ac_ext
24070 cat >>conftest.
$ac_ext <<_ACEOF
24071 /* end confdefs.h. */
24072 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24073 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24074 #define $ac_func innocuous_$ac_func
24076 /* System header to define __stub macros and hopefully few prototypes,
24077 which can conflict with char $ac_func (); below.
24078 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24079 <limits.h> exists even on freestanding compilers. */
24082 # include <limits.h>
24084 # include <assert.h>
24089 /* Override any GCC internal prototype to avoid an error.
24090 Use char because int might match the return type of a GCC
24091 builtin and then its argument prototype would still apply. */
24096 /* The GNU C library defines this for functions which it implements
24097 to always fail with ENOSYS. Some functions are actually named
24098 something starting with __ and the normal name is an alias. */
24099 #if defined __stub_$ac_func || defined __stub___$ac_func
24106 return $ac_func ();
24111 rm -f conftest.
$ac_objext conftest
$ac_exeext
24112 if { (ac_try
="$ac_link"
24113 case "(($ac_try" in
24114 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24115 *) ac_try_echo=$ac_try;;
24117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24118 (eval "$ac_link") 2>conftest.er1
24120 grep -v '^ *+' conftest.er1 >conftest.err
24122 cat conftest.err >&5
24123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24124 (exit $ac_status); } && {
24125 test -z "$ac_c_werror_flag" ||
24126 test ! -s conftest.err
24127 } && test -s conftest$ac_exeext &&
24128 $as_test_x conftest$ac_exeext; then
24129 eval "$as_ac_var=yes"
24131 echo "$as_me: failed program was:" >&5
24132 sed 's/^/| /' conftest.$ac_ext >&5
24134 eval "$as_ac_var=no"
24137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24138 conftest$ac_exeext conftest.$ac_ext
24140 ac_res=`eval echo '${'$as_ac_var'}'`
24141 { echo "$as_me:$LINENO: result: $ac_res" >&5
24142 echo "${ECHO_T}$ac_res" >&6; }
24143 if test `eval echo '${'$as_ac_var'}'` = yes; then
24144 cat >>confdefs.h <<_ACEOF
24145 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
24156 for ac_func in hypot lgamma log1p round tgamma
24158 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
24159 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24160 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24161 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24162 echo $ECHO_N "(cached) $ECHO_C" >&6
24164 cat >conftest.$ac_ext <<_ACEOF
24167 cat confdefs.h >>conftest.$ac_ext
24168 cat >>conftest.$ac_ext <<_ACEOF
24169 /* end confdefs.h. */
24170 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24171 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24172 #define $ac_func innocuous_$ac_func
24174 /* System header to define __stub macros and hopefully few prototypes,
24175 which can conflict with char $ac_func (); below.
24176 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24177 <limits.h> exists even on freestanding compilers. */
24180 # include <limits.h>
24182 # include <assert.h>
24187 /* Override any GCC internal prototype to avoid an error.
24188 Use char because int might match the return type of a GCC
24189 builtin and then its argument prototype would still apply. */
24194 /* The GNU C library defines this for functions which it implements
24195 to always fail with ENOSYS. Some functions are actually named
24196 something starting with __ and the normal name is an alias. */
24197 #if defined __stub_$ac_func || defined __stub___$ac_func
24204 return $ac_func ();
24209 rm -f conftest.$ac_objext conftest$ac_exeext
24210 if { (ac_try="$ac_link"
24211 case "(($ac_try" in
24212 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24213 *) ac_try_echo
=$ac_try;;
24215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24216 (eval "$ac_link") 2>conftest.er1
24218 grep -v '^ *+' conftest.er1
>conftest.err
24220 cat conftest.err
>&5
24221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24222 (exit $ac_status); } && {
24223 test -z "$ac_c_werror_flag" ||
24224 test ! -s conftest.err
24225 } && test -s conftest
$ac_exeext &&
24226 $as_test_x conftest
$ac_exeext; then
24227 eval "$as_ac_var=yes"
24229 echo "$as_me: failed program was:" >&5
24230 sed 's/^/| /' conftest.
$ac_ext >&5
24232 eval "$as_ac_var=no"
24235 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24236 conftest
$ac_exeext conftest.
$ac_ext
24238 ac_res
=`eval echo '${'$as_ac_var'}'`
24239 { echo "$as_me:$LINENO: result: $ac_res" >&5
24240 echo "${ECHO_T}$ac_res" >&6; }
24241 if test `eval echo '${'$as_ac_var'}'` = yes; then
24242 cat >>confdefs.h
<<_ACEOF
24243 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24249 { echo "$as_me:$LINENO: checking whether isinf is declared" >&5
24250 echo $ECHO_N "checking whether isinf is declared... $ECHO_C" >&6; }
24251 if test "${ac_cv_have_decl_isinf+set}" = set; then
24252 echo $ECHO_N "(cached) $ECHO_C" >&6
24254 cat >conftest.
$ac_ext <<_ACEOF
24257 cat confdefs.h
>>conftest.
$ac_ext
24258 cat >>conftest.
$ac_ext <<_ACEOF
24259 /* end confdefs.h. */
24273 rm -f conftest.
$ac_objext
24274 if { (ac_try
="$ac_compile"
24275 case "(($ac_try" in
24276 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24277 *) ac_try_echo=$ac_try;;
24279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24280 (eval "$ac_compile") 2>conftest.er1
24282 grep -v '^ *+' conftest.er1 >conftest.err
24284 cat conftest.err >&5
24285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24286 (exit $ac_status); } && {
24287 test -z "$ac_c_werror_flag" ||
24288 test ! -s conftest.err
24289 } && test -s conftest.$ac_objext; then
24290 ac_cv_have_decl_isinf=yes
24292 echo "$as_me: failed program was:" >&5
24293 sed 's/^/| /' conftest.$ac_ext >&5
24295 ac_cv_have_decl_isinf=no
24298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24300 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isinf" >&5
24301 echo "${ECHO_T}$ac_cv_have_decl_isinf" >&6; }
24302 if test $ac_cv_have_decl_isinf = yes; then
24304 cat >>confdefs.h <<_ACEOF
24305 #define HAVE_DECL_ISINF 1
24310 cat >>confdefs.h <<_ACEOF
24311 #define HAVE_DECL_ISINF 0
24316 { echo "$as_me:$LINENO: checking whether isnan is declared" >&5
24317 echo $ECHO_N "checking whether isnan is declared... $ECHO_C" >&6; }
24318 if test "${ac_cv_have_decl_isnan+set}" = set; then
24319 echo $ECHO_N "(cached) $ECHO_C" >&6
24321 cat >conftest.$ac_ext <<_ACEOF
24324 cat confdefs.h >>conftest.$ac_ext
24325 cat >>conftest.$ac_ext <<_ACEOF
24326 /* end confdefs.h. */
24340 rm -f conftest.$ac_objext
24341 if { (ac_try="$ac_compile"
24342 case "(($ac_try" in
24343 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24344 *) ac_try_echo
=$ac_try;;
24346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24347 (eval "$ac_compile") 2>conftest.er1
24349 grep -v '^ *+' conftest.er1
>conftest.err
24351 cat conftest.err
>&5
24352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24353 (exit $ac_status); } && {
24354 test -z "$ac_c_werror_flag" ||
24355 test ! -s conftest.err
24356 } && test -s conftest.
$ac_objext; then
24357 ac_cv_have_decl_isnan
=yes
24359 echo "$as_me: failed program was:" >&5
24360 sed 's/^/| /' conftest.
$ac_ext >&5
24362 ac_cv_have_decl_isnan
=no
24365 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24367 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isnan" >&5
24368 echo "${ECHO_T}$ac_cv_have_decl_isnan" >&6; }
24369 if test $ac_cv_have_decl_isnan = yes; then
24371 cat >>confdefs.h
<<_ACEOF
24372 #define HAVE_DECL_ISNAN 1
24377 cat >>confdefs.h
<<_ACEOF
24378 #define HAVE_DECL_ISNAN 0
24383 { echo "$as_me:$LINENO: checking whether isfinite is declared" >&5
24384 echo $ECHO_N "checking whether isfinite is declared... $ECHO_C" >&6; }
24385 if test "${ac_cv_have_decl_isfinite+set}" = set; then
24386 echo $ECHO_N "(cached) $ECHO_C" >&6
24388 cat >conftest.
$ac_ext <<_ACEOF
24391 cat confdefs.h
>>conftest.
$ac_ext
24392 cat >>conftest.
$ac_ext <<_ACEOF
24393 /* end confdefs.h. */
24407 rm -f conftest.
$ac_objext
24408 if { (ac_try
="$ac_compile"
24409 case "(($ac_try" in
24410 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24411 *) ac_try_echo=$ac_try;;
24413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24414 (eval "$ac_compile") 2>conftest.er1
24416 grep -v '^ *+' conftest.er1 >conftest.err
24418 cat conftest.err >&5
24419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24420 (exit $ac_status); } && {
24421 test -z "$ac_c_werror_flag" ||
24422 test ! -s conftest.err
24423 } && test -s conftest.$ac_objext; then
24424 ac_cv_have_decl_isfinite=yes
24426 echo "$as_me: failed program was:" >&5
24427 sed 's/^/| /' conftest.$ac_ext >&5
24429 ac_cv_have_decl_isfinite=no
24432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24434 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isfinite" >&5
24435 echo "${ECHO_T}$ac_cv_have_decl_isfinite" >&6; }
24436 if test $ac_cv_have_decl_isfinite = yes; then
24438 cat >>confdefs.h <<_ACEOF
24439 #define HAVE_DECL_ISFINITE 1
24444 cat >>confdefs.h <<_ACEOF
24445 #define HAVE_DECL_ISFINITE 0
24455 # For multiprocessing module, check that sem_open
24456 # actually works. For FreeBSD versions <= 7.2,
24457 # the kernel module that provides POSIX semaphores
24458 # isn't loaded by default, so an attempt to call
24459 # sem_open results in a 'Signal 12' error.
24460 { echo "$as_me:$LINENO: checking whether POSIX semaphores are enabled" >&5
24461 echo $ECHO_N "checking whether POSIX semaphores are enabled... $ECHO_C" >&6; }
24462 if test "${ac_cv_posix_semaphores_enabled+set}" = set; then
24463 echo $ECHO_N "(cached) $ECHO_C" >&6
24465 if test "$cross_compiling" = yes; then
24466 ac_cv_posix_semaphores_enabled=yes
24468 cat >conftest.$ac_ext <<_ACEOF
24471 cat confdefs.h >>conftest.$ac_ext
24472 cat >>conftest.$ac_ext <<_ACEOF
24473 /* end confdefs.h. */
24475 #include <unistd.h>
24478 #include <semaphore.h>
24479 #include <sys/stat.h>
24482 sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
24483 if (a == SEM_FAILED) {
24484 perror("sem_open");
24488 sem_unlink("/autoconf");
24493 rm -f conftest$ac_exeext
24494 if { (ac_try="$ac_link"
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_link") 2>&5
24502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24503 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24504 { (case "(($ac_try" in
24505 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24506 *) ac_try_echo=$ac_try;;
24508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24509 (eval "$ac_try") 2>&5
24511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24512 (exit $ac_status); }; }; then
24513 ac_cv_posix_semaphores_enabled=yes
24515 echo "$as_me: program exited with status $ac_status" >&5
24516 echo "$as_me: failed program was:" >&5
24517 sed 's/^/| /' conftest.$ac_ext >&5
24519 ( exit $ac_status )
24520 ac_cv_posix_semaphores_enabled=no
24522 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24529 { echo "$as_me:$LINENO: result: $ac_cv_posix_semaphores_enabled" >&5
24530 echo "${ECHO_T}$ac_cv_posix_semaphores_enabled" >&6; }
24531 if test $ac_cv_posix_semaphores_enabled = no
24534 cat >>confdefs.h <<\_ACEOF
24535 #define POSIX_SEMAPHORES_NOT_ENABLED 1
24540 # Multiprocessing check for broken sem_getvalue
24541 { echo "$as_me:$LINENO: checking for broken sem_getvalue" >&5
24542 echo $ECHO_N "checking for broken sem_getvalue... $ECHO_C" >&6; }
24543 if test "${ac_cv_broken_sem_getvalue+set}" = set; then
24544 echo $ECHO_N "(cached) $ECHO_C" >&6
24546 if test "$cross_compiling" = yes; then
24547 ac_cv_broken_sem_getvalue=yes
24549 cat >conftest.$ac_ext <<_ACEOF
24552 cat confdefs.h >>conftest.$ac_ext
24553 cat >>conftest.$ac_ext <<_ACEOF
24554 /* end confdefs.h. */
24556 #include <unistd.h>
24559 #include <semaphore.h>
24560 #include <sys/stat.h>
24563 sem_t *a = sem_open("/autocftw", O_CREAT, S_IRUSR|S_IWUSR, 0);
24567 perror("sem_open");
24571 res = sem_getvalue(a, &count);
24573 sem_unlink("/autocftw");
24574 return res==-1 ? 1 : 0;
24578 rm -f conftest$ac_exeext
24579 if { (ac_try="$ac_link"
24580 case "(($ac_try" in
24581 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24582 *) ac_try_echo
=$ac_try;;
24584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24585 (eval "$ac_link") 2>&5
24587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24588 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24589 { (case "(($ac_try" in
24590 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24591 *) ac_try_echo=$ac_try;;
24593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24594 (eval "$ac_try") 2>&5
24596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24597 (exit $ac_status); }; }; then
24598 ac_cv_broken_sem_getvalue=no
24600 echo "$as_me: program exited with status $ac_status" >&5
24601 echo "$as_me: failed program was:" >&5
24602 sed 's/^/| /' conftest.$ac_ext >&5
24604 ( exit $ac_status )
24605 ac_cv_broken_sem_getvalue=yes
24607 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24614 { echo "$as_me:$LINENO: result: $ac_cv_broken_sem_getvalue" >&5
24615 echo "${ECHO_T}$ac_cv_broken_sem_getvalue" >&6; }
24616 if test $ac_cv_broken_sem_getvalue = yes
24619 cat >>confdefs.h <<\_ACEOF
24620 #define HAVE_BROKEN_SEM_GETVALUE 1
24625 # determine what size digit to use for Python's longs
24626 { echo "$as_me:$LINENO: checking digit size for Python's longs" >&5
24627 echo $ECHO_N "checking digit size for Python's longs... $ECHO_C" >&6; }
24628 # Check whether --enable-big-digits was given.
24629 if test "${enable_big_digits+set}" = set; then
24630 enableval=$enable_big_digits; case $enable_big_digits in
24632 enable_big_digits=30 ;;
24634 enable_big_digits=15 ;;
24638 { { echo "$as_me:$LINENO: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&5
24639 echo "$as_me: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&2;}
24640 { (exit 1); exit 1; }; } ;;
24642 { echo "$as_me:$LINENO: result: $enable_big_digits" >&5
24643 echo "${ECHO_T}$enable_big_digits" >&6; }
24645 cat >>confdefs.h <<_ACEOF
24646 #define PYLONG_BITS_IN_DIGIT $enable_big_digits
24651 { echo "$as_me:$LINENO: result: no value specified" >&5
24652 echo "${ECHO_T}no value specified" >&6; }
24656 # check for wchar.h
24657 if test "${ac_cv_header_wchar_h+set}" = set; then
24658 { echo "$as_me:$LINENO: checking for wchar.h" >&5
24659 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
24660 if test "${ac_cv_header_wchar_h+set}" = set; then
24661 echo $ECHO_N "(cached) $ECHO_C" >&6
24663 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
24664 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
24666 # Is the header compilable?
24667 { echo "$as_me:$LINENO: checking wchar.h usability" >&5
24668 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; }
24669 cat >conftest.$ac_ext <<_ACEOF
24672 cat confdefs.h >>conftest.$ac_ext
24673 cat >>conftest.$ac_ext <<_ACEOF
24674 /* end confdefs.h. */
24675 $ac_includes_default
24678 rm -f conftest.$ac_objext
24679 if { (ac_try="$ac_compile"
24680 case "(($ac_try" in
24681 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24682 *) ac_try_echo
=$ac_try;;
24684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24685 (eval "$ac_compile") 2>conftest.er1
24687 grep -v '^ *+' conftest.er1
>conftest.err
24689 cat conftest.err
>&5
24690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24691 (exit $ac_status); } && {
24692 test -z "$ac_c_werror_flag" ||
24693 test ! -s conftest.err
24694 } && test -s conftest.
$ac_objext; then
24695 ac_header_compiler
=yes
24697 echo "$as_me: failed program was:" >&5
24698 sed 's/^/| /' conftest.
$ac_ext >&5
24700 ac_header_compiler
=no
24703 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24704 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24705 echo "${ECHO_T}$ac_header_compiler" >&6; }
24707 # Is the header present?
24708 { echo "$as_me:$LINENO: checking wchar.h presence" >&5
24709 echo $ECHO_N "checking wchar.h presence... $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. */
24718 if { (ac_try
="$ac_cpp conftest.$ac_ext"
24719 case "(($ac_try" in
24720 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24721 *) ac_try_echo=$ac_try;;
24723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24724 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24726 grep -v '^ *+' conftest.er1 >conftest.err
24728 cat conftest.err >&5
24729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24730 (exit $ac_status); } >/dev/null && {
24731 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24732 test ! -s conftest.err
24734 ac_header_preproc=yes
24736 echo "$as_me: failed program was:" >&5
24737 sed 's/^/| /' conftest.$ac_ext >&5
24739 ac_header_preproc=no
24742 rm -f conftest.err conftest.$ac_ext
24743 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24744 echo "${ECHO_T}$ac_header_preproc" >&6; }
24746 # So? What about this header?
24747 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24749 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
24750 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24751 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
24752 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
24753 ac_header_preproc=yes
24756 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
24757 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
24758 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
24759 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
24760 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
24761 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
24762 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
24763 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
24764 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
24765 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
24766 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
24767 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
24769 ## -------------------------------------- ##
24770 ## Report this to http://bugs.python.org/ ##
24771 ## -------------------------------------- ##
24773 ) | sed "s/^/$as_me: WARNING: /" >&2
24776 { echo "$as_me:$LINENO: checking for wchar.h" >&5
24777 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
24778 if test "${ac_cv_header_wchar_h+set}" = set; then
24779 echo $ECHO_N "(cached) $ECHO_C" >&6
24781 ac_cv_header_wchar_h=$ac_header_preproc
24783 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
24784 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
24787 if test $ac_cv_header_wchar_h = yes; then
24790 cat >>confdefs.h <<\_ACEOF
24791 #define HAVE_WCHAR_H 1
24803 # determine wchar_t size
24804 if test "$wchar_h" = yes
24806 { echo "$as_me:$LINENO: checking for wchar_t" >&5
24807 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
24808 if test "${ac_cv_type_wchar_t+set}" = set; then
24809 echo $ECHO_N "(cached) $ECHO_C" >&6
24811 cat >conftest.$ac_ext <<_ACEOF
24814 cat confdefs.h >>conftest.$ac_ext
24815 cat >>conftest.$ac_ext <<_ACEOF
24816 /* end confdefs.h. */
24819 typedef wchar_t ac__type_new_;
24823 if ((ac__type_new_ *) 0)
24825 if (sizeof (ac__type_new_))
24831 rm -f conftest.$ac_objext
24832 if { (ac_try="$ac_compile"
24833 case "(($ac_try" in
24834 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24835 *) ac_try_echo
=$ac_try;;
24837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24838 (eval "$ac_compile") 2>conftest.er1
24840 grep -v '^ *+' conftest.er1
>conftest.err
24842 cat conftest.err
>&5
24843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24844 (exit $ac_status); } && {
24845 test -z "$ac_c_werror_flag" ||
24846 test ! -s conftest.err
24847 } && test -s conftest.
$ac_objext; then
24848 ac_cv_type_wchar_t
=yes
24850 echo "$as_me: failed program was:" >&5
24851 sed 's/^/| /' conftest.
$ac_ext >&5
24853 ac_cv_type_wchar_t
=no
24856 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24858 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
24859 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
24861 # The cast to long int works around a bug in the HP C Compiler
24862 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24863 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24864 # This bug is HP SR number 8606223364.
24865 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
24866 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
24867 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
24868 echo $ECHO_N "(cached) $ECHO_C" >&6
24870 if test "$cross_compiling" = yes; then
24871 # Depending upon the size, compute the lo and hi bounds.
24872 cat >conftest.
$ac_ext <<_ACEOF
24875 cat confdefs.h
>>conftest.
$ac_ext
24876 cat >>conftest.
$ac_ext <<_ACEOF
24877 /* end confdefs.h. */
24880 typedef wchar_t ac__type_sizeof_;
24884 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24891 rm -f conftest.
$ac_objext
24892 if { (ac_try
="$ac_compile"
24893 case "(($ac_try" in
24894 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24895 *) ac_try_echo=$ac_try;;
24897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24898 (eval "$ac_compile") 2>conftest.er1
24900 grep -v '^ *+' conftest.er1 >conftest.err
24902 cat conftest.err >&5
24903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24904 (exit $ac_status); } && {
24905 test -z "$ac_c_werror_flag" ||
24906 test ! -s conftest.err
24907 } && test -s conftest.$ac_objext; then
24910 cat >conftest.$ac_ext <<_ACEOF
24913 cat confdefs.h >>conftest.$ac_ext
24914 cat >>conftest.$ac_ext <<_ACEOF
24915 /* end confdefs.h. */
24918 typedef wchar_t ac__type_sizeof_;
24922 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24929 rm -f conftest.$ac_objext
24930 if { (ac_try="$ac_compile"
24931 case "(($ac_try" in
24932 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24933 *) ac_try_echo
=$ac_try;;
24935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24936 (eval "$ac_compile") 2>conftest.er1
24938 grep -v '^ *+' conftest.er1
>conftest.err
24940 cat conftest.err
>&5
24941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24942 (exit $ac_status); } && {
24943 test -z "$ac_c_werror_flag" ||
24944 test ! -s conftest.err
24945 } && test -s conftest.
$ac_objext; then
24946 ac_hi
=$ac_mid; break
24948 echo "$as_me: failed program was:" >&5
24949 sed 's/^/| /' conftest.
$ac_ext >&5
24951 ac_lo
=`expr $ac_mid + 1`
24952 if test $ac_lo -le $ac_mid; then
24956 ac_mid
=`expr 2 '*' $ac_mid + 1`
24959 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24962 echo "$as_me: failed program was:" >&5
24963 sed 's/^/| /' conftest.
$ac_ext >&5
24965 cat >conftest.
$ac_ext <<_ACEOF
24968 cat confdefs.h
>>conftest.
$ac_ext
24969 cat >>conftest.
$ac_ext <<_ACEOF
24970 /* end confdefs.h. */
24973 typedef wchar_t ac__type_sizeof_;
24977 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24984 rm -f conftest.
$ac_objext
24985 if { (ac_try
="$ac_compile"
24986 case "(($ac_try" in
24987 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24988 *) ac_try_echo=$ac_try;;
24990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24991 (eval "$ac_compile") 2>conftest.er1
24993 grep -v '^ *+' conftest.er1 >conftest.err
24995 cat conftest.err >&5
24996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24997 (exit $ac_status); } && {
24998 test -z "$ac_c_werror_flag" ||
24999 test ! -s conftest.err
25000 } && test -s conftest.$ac_objext; then
25003 cat >conftest.$ac_ext <<_ACEOF
25006 cat confdefs.h >>conftest.$ac_ext
25007 cat >>conftest.$ac_ext <<_ACEOF
25008 /* end confdefs.h. */
25011 typedef wchar_t ac__type_sizeof_;
25015 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25022 rm -f conftest.$ac_objext
25023 if { (ac_try="$ac_compile"
25024 case "(($ac_try" in
25025 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25026 *) ac_try_echo
=$ac_try;;
25028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25029 (eval "$ac_compile") 2>conftest.er1
25031 grep -v '^ *+' conftest.er1
>conftest.err
25033 cat conftest.err
>&5
25034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25035 (exit $ac_status); } && {
25036 test -z "$ac_c_werror_flag" ||
25037 test ! -s conftest.err
25038 } && test -s conftest.
$ac_objext; then
25039 ac_lo
=$ac_mid; break
25041 echo "$as_me: failed program was:" >&5
25042 sed 's/^/| /' conftest.
$ac_ext >&5
25044 ac_hi
=`expr '(' $ac_mid ')' - 1`
25045 if test $ac_mid -le $ac_hi; then
25049 ac_mid
=`expr 2 '*' $ac_mid`
25052 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25055 echo "$as_me: failed program was:" >&5
25056 sed 's/^/| /' conftest.
$ac_ext >&5
25061 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25064 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25065 # Binary search between lo and hi bounds.
25066 while test "x$ac_lo" != "x$ac_hi"; do
25067 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25068 cat >conftest.
$ac_ext <<_ACEOF
25071 cat confdefs.h
>>conftest.
$ac_ext
25072 cat >>conftest.
$ac_ext <<_ACEOF
25073 /* end confdefs.h. */
25076 typedef wchar_t ac__type_sizeof_;
25080 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25087 rm -f conftest.
$ac_objext
25088 if { (ac_try
="$ac_compile"
25089 case "(($ac_try" in
25090 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25091 *) ac_try_echo=$ac_try;;
25093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25094 (eval "$ac_compile") 2>conftest.er1
25096 grep -v '^ *+' conftest.er1 >conftest.err
25098 cat conftest.err >&5
25099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25100 (exit $ac_status); } && {
25101 test -z "$ac_c_werror_flag" ||
25102 test ! -s conftest.err
25103 } && test -s conftest.$ac_objext; then
25106 echo "$as_me: failed program was:" >&5
25107 sed 's/^/| /' conftest.$ac_ext >&5
25109 ac_lo=`expr '(' $ac_mid ')' + 1`
25112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25115 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
25116 '') if test "$ac_cv_type_wchar_t" = yes; then
25117 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
25118 See \`config.log
' for more details." >&5
25119 echo "$as_me: error: cannot compute sizeof (wchar_t)
25120 See \`config.log' for more details.
" >&2;}
25121 { (exit 77); exit 77; }; }
25123 ac_cv_sizeof_wchar_t=0
25127 cat >conftest.$ac_ext <<_ACEOF
25130 cat confdefs.h >>conftest.$ac_ext
25131 cat >>conftest.$ac_ext <<_ACEOF
25132 /* end confdefs.h. */
25135 typedef wchar_t ac__type_sizeof_;
25136 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25137 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25139 #include <stdlib.h>
25144 FILE *f = fopen ("conftest.val
", "w
");
25147 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25149 long int i = longval ();
25150 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25152 fprintf (f, "%ld
\n", i);
25156 unsigned long int i = ulongval ();
25157 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25159 fprintf (f, "%lu
\n", i);
25161 return ferror (f) || fclose (f) != 0;
25167 rm -f conftest$ac_exeext
25168 if { (ac_try="$ac_link"
25169 case "(($ac_try" in
25170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25171 *) ac_try_echo=$ac_try;;
25173 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25174 (eval "$ac_link") 2>&5
25176 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25177 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25178 { (case "(($ac_try" in
25179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25180 *) ac_try_echo=$ac_try;;
25182 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25183 (eval "$ac_try") 2>&5
25185 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25186 (exit $ac_status); }; }; then
25187 ac_cv_sizeof_wchar_t=`cat conftest.val`
25189 echo "$as_me: program exited with status
$ac_status" >&5
25190 echo "$as_me: failed program was
:" >&5
25191 sed 's/^/| /' conftest.$ac_ext >&5
25193 ( exit $ac_status )
25194 if test "$ac_cv_type_wchar_t" = yes; then
25195 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(wchar_t
)
25196 See \
`config.log' for more details." >&5
25197 echo "$as_me: error: cannot compute sizeof (wchar_t)
25198 See \`config.log
' for more details." >&2;}
25199 { (exit 77); exit 77; }; }
25201 ac_cv_sizeof_wchar_t=0
25204 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25208 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
25209 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
25213 cat >>confdefs.h <<_ACEOF
25214 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
25220 { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
25221 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6; }
25223 cat >conftest.$ac_ext <<_ACEOF
25226 cat confdefs.h >>conftest.$ac_ext
25227 cat >>conftest.$ac_ext <<_ACEOF
25228 /* end confdefs.h. */
25231 #if TCL_UTF_MAX != 6
25232 # error "NOT UCS4_TCL"
25242 rm -f conftest.$ac_objext
25243 if { (ac_try="$ac_compile"
25244 case "(($ac_try" in
25245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25246 *) ac_try_echo=$ac_try;;
25248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25249 (eval "$ac_compile") 2>conftest.er1
25251 grep -v '^
*+' conftest.er1 >conftest.err
25253 cat conftest.err >&5
25254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25255 (exit $ac_status); } && {
25256 test -z "$ac_c_werror_flag" ||
25257 test ! -s conftest.err
25258 } && test -s conftest.$ac_objext; then
25261 cat >>confdefs.h <<\_ACEOF
25262 #define HAVE_UCS4_TCL 1
25268 echo "$as_me: failed program was:" >&5
25269 sed 's
/^
/|
/' conftest.$ac_ext >&5
25274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25275 { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
25276 echo "${ECHO_T}$have_ucs4_tcl" >&6; }
25278 # check whether wchar_t is signed or not
25279 if test "$wchar_h" = yes
25281 # check whether wchar_t is signed or not
25282 { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
25283 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6; }
25284 if test "${ac_cv_wchar_t_signed+set}" = set; then
25285 echo $ECHO_N "(cached) $ECHO_C" >&6
25288 if test "$cross_compiling" = yes; then
25289 ac_cv_wchar_t_signed=yes
25291 cat >conftest.$ac_ext <<_ACEOF
25294 cat confdefs.h >>conftest.$ac_ext
25295 cat >>conftest.$ac_ext <<_ACEOF
25296 /* end confdefs.h. */
25301 /* Success: exit code 0 */
25302 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
25306 rm -f conftest$ac_exeext
25307 if { (ac_try="$ac_link"
25308 case "(($ac_try" in
25309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25310 *) ac_try_echo=$ac_try;;
25312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25313 (eval "$ac_link") 2>&5
25315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25316 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
25317 { (case "(($ac_try" in
25318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25319 *) ac_try_echo=$ac_try;;
25321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25322 (eval "$ac_try") 2>&5
25324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25325 (exit $ac_status); }; }; then
25326 ac_cv_wchar_t_signed=yes
25328 echo "$as_me: program exited with status $ac_status" >&5
25329 echo "$as_me: failed program was:" >&5
25330 sed 's
/^
/|
/' conftest.$ac_ext >&5
25332 ( exit $ac_status )
25333 ac_cv_wchar_t_signed=no
25335 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25341 { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
25342 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
25345 { echo "$as_me:$LINENO: checking what type to use for unicode" >&5
25346 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6; }
25347 # Check whether --enable-unicode was given.
25348 if test "${enable_unicode+set}" = set; then
25349 enableval=$enable_unicode;
25355 if test $enable_unicode = yes
25357 # Without any arguments, Py_UNICODE defaults to two-byte mode
25358 case "$have_ucs4_tcl" in
25359 yes) enable_unicode="ucs4"
25361 *) enable_unicode="ucs2"
25368 case "$enable_unicode" in
25369 ucs2) unicode_size="2"
25370 cat >>confdefs.h <<\_ACEOF
25371 #define Py_UNICODE_SIZE 2
25375 ucs4) unicode_size="4"
25376 cat >>confdefs.h <<\_ACEOF
25377 #define Py_UNICODE_SIZE 4
25387 if test "$enable_unicode" = "no"
25390 { echo "$as_me:$LINENO: result: not used" >&5
25391 echo "${ECHO_T}not used" >&6; }
25393 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
25395 cat >>confdefs.h <<\_ACEOF
25396 #define Py_USING_UNICODE 1
25400 # wchar_t is only usable if it maps to an unsigned type
25401 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
25402 -a "$ac_cv_wchar_t_signed" = "no"
25404 PY_UNICODE_TYPE="wchar_t"
25406 cat >>confdefs.h <<\_ACEOF
25407 #define HAVE_USABLE_WCHAR_T 1
25410 cat >>confdefs.h <<\_ACEOF
25411 #define PY_UNICODE_TYPE wchar_t
25414 elif test "$ac_cv_sizeof_short" = "$unicode_size"
25416 PY_UNICODE_TYPE="unsigned short"
25417 cat >>confdefs.h <<\_ACEOF
25418 #define PY_UNICODE_TYPE unsigned short
25421 elif test "$ac_cv_sizeof_long" = "$unicode_size"
25423 PY_UNICODE_TYPE="unsigned long"
25424 cat >>confdefs.h <<\_ACEOF
25425 #define PY_UNICODE_TYPE unsigned long
25429 PY_UNICODE_TYPE="no type found"
25431 { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
25432 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
25435 # check for endianness
25436 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
25437 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
25438 if test "${ac_cv_c_bigendian+set}" = set; then
25439 echo $ECHO_N "(cached) $ECHO_C" >&6
25441 # See if sys/param.h defines the BYTE_ORDER macro.
25442 cat >conftest.$ac_ext <<_ACEOF
25445 cat confdefs.h >>conftest.$ac_ext
25446 cat >>conftest.$ac_ext <<_ACEOF
25447 /* end confdefs.h. */
25448 #include <sys/types.h>
25449 #include <sys/param.h>
25454 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
25455 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
25456 bogus endian macros
25463 rm -f conftest.$ac_objext
25464 if { (ac_try="$ac_compile"
25465 case "(($ac_try" in
25466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25467 *) ac_try_echo=$ac_try;;
25469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25470 (eval "$ac_compile") 2>conftest.er1
25472 grep -v '^
*+' conftest.er1 >conftest.err
25474 cat conftest.err >&5
25475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25476 (exit $ac_status); } && {
25477 test -z "$ac_c_werror_flag" ||
25478 test ! -s conftest.err
25479 } && test -s conftest.$ac_objext; then
25480 # It does; now see whether it defined to BIG_ENDIAN or not.
25481 cat >conftest.$ac_ext <<_ACEOF
25484 cat confdefs.h >>conftest.$ac_ext
25485 cat >>conftest.$ac_ext <<_ACEOF
25486 /* end confdefs.h. */
25487 #include <sys/types.h>
25488 #include <sys/param.h>
25493 #if BYTE_ORDER != BIG_ENDIAN
25501 rm -f conftest.$ac_objext
25502 if { (ac_try="$ac_compile"
25503 case "(($ac_try" in
25504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25505 *) ac_try_echo=$ac_try;;
25507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25508 (eval "$ac_compile") 2>conftest.er1
25510 grep -v '^
*+' conftest.er1 >conftest.err
25512 cat conftest.err >&5
25513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25514 (exit $ac_status); } && {
25515 test -z "$ac_c_werror_flag" ||
25516 test ! -s conftest.err
25517 } && test -s conftest.$ac_objext; then
25518 ac_cv_c_bigendian=yes
25520 echo "$as_me: failed program was:" >&5
25521 sed 's
/^
/|
/' conftest.$ac_ext >&5
25523 ac_cv_c_bigendian=no
25526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25528 echo "$as_me: failed program was:" >&5
25529 sed 's
/^
/|
/' conftest.$ac_ext >&5
25531 # It does not; compile a test program.
25532 if test "$cross_compiling" = yes; then
25533 # try to guess the endianness by grepping values into an object file
25534 ac_cv_c_bigendian=unknown
25535 cat >conftest.$ac_ext <<_ACEOF
25538 cat confdefs.h >>conftest.$ac_ext
25539 cat >>conftest.$ac_ext <<_ACEOF
25540 /* end confdefs.h. */
25541 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
25542 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
25543 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
25544 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
25545 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
25546 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
25550 _ascii (); _ebcdic ();
25555 rm -f conftest.$ac_objext
25556 if { (ac_try="$ac_compile"
25557 case "(($ac_try" in
25558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25559 *) ac_try_echo=$ac_try;;
25561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25562 (eval "$ac_compile") 2>conftest.er1
25564 grep -v '^
*+' conftest.er1 >conftest.err
25566 cat conftest.err >&5
25567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25568 (exit $ac_status); } && {
25569 test -z "$ac_c_werror_flag" ||
25570 test ! -s conftest.err
25571 } && test -s conftest.$ac_objext; then
25572 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
25573 ac_cv_c_bigendian=yes
25575 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
25576 if test "$ac_cv_c_bigendian" = unknown; then
25577 ac_cv_c_bigendian=no
25579 # finding both strings is unlikely to happen, but who knows?
25580 ac_cv_c_bigendian=unknown
25584 echo "$as_me: failed program was:" >&5
25585 sed 's
/^
/|
/' conftest.$ac_ext >&5
25590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25592 cat >conftest.$ac_ext <<_ACEOF
25595 cat confdefs.h >>conftest.$ac_ext
25596 cat >>conftest.$ac_ext <<_ACEOF
25597 /* end confdefs.h. */
25598 $ac_includes_default
25603 /* Are we little or big endian? From Harbison&Steele. */
25607 char c[sizeof (long int)];
25610 return u.c[sizeof (long int) - 1] == 1;
25616 rm -f conftest$ac_exeext
25617 if { (ac_try="$ac_link"
25618 case "(($ac_try" in
25619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25620 *) ac_try_echo=$ac_try;;
25622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25623 (eval "$ac_link") 2>&5
25625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25626 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
25627 { (case "(($ac_try" in
25628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25629 *) ac_try_echo=$ac_try;;
25631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25632 (eval "$ac_try") 2>&5
25634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25635 (exit $ac_status); }; }; then
25636 ac_cv_c_bigendian=no
25638 echo "$as_me: program exited with status $ac_status" >&5
25639 echo "$as_me: failed program was:" >&5
25640 sed 's
/^
/|
/' conftest.$ac_ext >&5
25642 ( exit $ac_status )
25643 ac_cv_c_bigendian=yes
25645 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25653 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
25654 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
25655 case $ac_cv_c_bigendian in
25658 cat >>confdefs.h <<\_ACEOF
25659 #define WORDS_BIGENDIAN 1
25665 { { echo "$as_me:$LINENO: error: unknown endianness
25666 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
25667 echo "$as_me: error: unknown endianness
25668 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
25669 { (exit 1); exit 1; }; } ;;
25673 # Check whether right shifting a negative integer extends the sign bit
25674 # or fills with zeros (like the Cray J90, according to Tim Peters).
25675 { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
25676 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6; }
25677 if test "${ac_cv_rshift_extends_sign+set}" = set; then
25678 echo $ECHO_N "(cached) $ECHO_C" >&6
25681 if test "$cross_compiling" = yes; then
25682 ac_cv_rshift_extends_sign=yes
25684 cat >conftest.$ac_ext <<_ACEOF
25687 cat confdefs.h >>conftest.$ac_ext
25688 cat >>conftest.$ac_ext <<_ACEOF
25689 /* end confdefs.h. */
25693 exit(((-1)>>3 == -1) ? 0 : 1);
25697 rm -f conftest$ac_exeext
25698 if { (ac_try="$ac_link"
25699 case "(($ac_try" in
25700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25701 *) ac_try_echo=$ac_try;;
25703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25704 (eval "$ac_link") 2>&5
25706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25707 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
25708 { (case "(($ac_try" in
25709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25710 *) ac_try_echo=$ac_try;;
25712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25713 (eval "$ac_try") 2>&5
25715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25716 (exit $ac_status); }; }; then
25717 ac_cv_rshift_extends_sign=yes
25719 echo "$as_me: program exited with status $ac_status" >&5
25720 echo "$as_me: failed program was:" >&5
25721 sed 's
/^
/|
/' conftest.$ac_ext >&5
25723 ( exit $ac_status )
25724 ac_cv_rshift_extends_sign=no
25726 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25732 { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
25733 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
25734 if test "$ac_cv_rshift_extends_sign" = no
25737 cat >>confdefs.h <<\_ACEOF
25738 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
25743 # check for getc_unlocked and related locking functions
25744 { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
25745 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6; }
25746 if test "${ac_cv_have_getc_unlocked+set}" = set; then
25747 echo $ECHO_N "(cached) $ECHO_C" >&6
25750 cat >conftest.$ac_ext <<_ACEOF
25753 cat confdefs.h >>conftest.$ac_ext
25754 cat >>conftest.$ac_ext <<_ACEOF
25755 /* end confdefs.h. */
25761 FILE *f = fopen("/dev/null", "r");
25770 rm -f conftest.$ac_objext conftest$ac_exeext
25771 if { (ac_try="$ac_link"
25772 case "(($ac_try" in
25773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25774 *) ac_try_echo=$ac_try;;
25776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25777 (eval "$ac_link") 2>conftest.er1
25779 grep -v '^
*+' conftest.er1 >conftest.err
25781 cat conftest.err >&5
25782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25783 (exit $ac_status); } && {
25784 test -z "$ac_c_werror_flag" ||
25785 test ! -s conftest.err
25786 } && test -s conftest$ac_exeext &&
25787 $as_test_x conftest$ac_exeext; then
25788 ac_cv_have_getc_unlocked=yes
25790 echo "$as_me: failed program was:" >&5
25791 sed 's
/^
/|
/' conftest.$ac_ext >&5
25793 ac_cv_have_getc_unlocked=no
25796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25797 conftest$ac_exeext conftest.$ac_ext
25800 { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
25801 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
25802 if test "$ac_cv_have_getc_unlocked" = yes
25805 cat >>confdefs.h <<\_ACEOF
25806 #define HAVE_GETC_UNLOCKED 1
25811 # check where readline lives
25812 # save the value of LIBS so we don't actually link Python with readline
25813 LIBS_no_readline
=$LIBS
25815 # On some systems we need to link readline to a termcap compatible
25816 # library. NOTE: Keep the precedence of listed libraries synchronised
25818 py_cv_lib_readline
=no
25819 { echo "$as_me:$LINENO: checking how to link readline libs" >&5
25820 echo $ECHO_N "checking how to link readline libs... $ECHO_C" >&6; }
25821 for py_libtermcap
in "" ncursesw ncurses curses termcap
; do
25822 if test -z "$py_libtermcap"; then
25823 READLINE_LIBS
="-lreadline"
25825 READLINE_LIBS
="-lreadline -l$py_libtermcap"
25827 LIBS
="$READLINE_LIBS $LIBS_no_readline"
25828 cat >conftest.
$ac_ext <<_ACEOF
25831 cat confdefs.h
>>conftest.
$ac_ext
25832 cat >>conftest.
$ac_ext <<_ACEOF
25833 /* end confdefs.h. */
25835 /* Override any GCC internal prototype to avoid an error.
25836 Use char because int might match the return type of a GCC
25837 builtin and then its argument prototype would still apply. */
25845 return readline ();
25850 rm -f conftest.
$ac_objext conftest
$ac_exeext
25851 if { (ac_try
="$ac_link"
25852 case "(($ac_try" in
25853 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25854 *) ac_try_echo=$ac_try;;
25856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25857 (eval "$ac_link") 2>conftest.er1
25859 grep -v '^ *+' conftest.er1 >conftest.err
25861 cat conftest.err >&5
25862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25863 (exit $ac_status); } && {
25864 test -z "$ac_c_werror_flag" ||
25865 test ! -s conftest.err
25866 } && test -s conftest$ac_exeext &&
25867 $as_test_x conftest$ac_exeext; then
25868 py_cv_lib_readline=yes
25870 echo "$as_me: failed program was:" >&5
25871 sed 's/^/| /' conftest.$ac_ext >&5
25876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25877 conftest$ac_exeext conftest.$ac_ext
25878 if test $py_cv_lib_readline = yes; then
25882 # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts
25883 #AC_SUBST([READLINE_LIBS])
25884 if test $py_cv_lib_readline = no; then
25885 { echo "$as_me:$LINENO: result: none" >&5
25886 echo "${ECHO_T}none" >&6; }
25888 { echo "$as_me:$LINENO: result: $READLINE_LIBS" >&5
25889 echo "${ECHO_T}$READLINE_LIBS" >&6; }
25891 cat >>confdefs.h <<\_ACEOF
25892 #define HAVE_LIBREADLINE 1
25897 # check for readline 2.1
25898 { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
25899 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6; }
25900 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
25901 echo $ECHO_N "(cached) $ECHO_C" >&6
25903 ac_check_lib_save_LIBS=$LIBS
25904 LIBS="-lreadline $READLINE_LIBS $LIBS"
25905 cat >conftest.$ac_ext <<_ACEOF
25908 cat confdefs.h >>conftest.$ac_ext
25909 cat >>conftest.$ac_ext <<_ACEOF
25910 /* end confdefs.h. */
25912 /* Override any GCC internal prototype to avoid an error.
25913 Use char because int might match the return type of a GCC
25914 builtin and then its argument prototype would still apply. */
25918 char rl_callback_handler_install ();
25922 return rl_callback_handler_install ();
25927 rm -f conftest.$ac_objext conftest$ac_exeext
25928 if { (ac_try="$ac_link"
25929 case "(($ac_try" in
25930 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25931 *) ac_try_echo
=$ac_try;;
25933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25934 (eval "$ac_link") 2>conftest.er1
25936 grep -v '^ *+' conftest.er1
>conftest.err
25938 cat conftest.err
>&5
25939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25940 (exit $ac_status); } && {
25941 test -z "$ac_c_werror_flag" ||
25942 test ! -s conftest.err
25943 } && test -s conftest
$ac_exeext &&
25944 $as_test_x conftest
$ac_exeext; then
25945 ac_cv_lib_readline_rl_callback_handler_install
=yes
25947 echo "$as_me: failed program was:" >&5
25948 sed 's/^/| /' conftest.
$ac_ext >&5
25950 ac_cv_lib_readline_rl_callback_handler_install
=no
25953 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
25954 conftest
$ac_exeext conftest.
$ac_ext
25955 LIBS
=$ac_check_lib_save_LIBS
25957 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
25958 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
25959 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
25961 cat >>confdefs.h
<<\_ACEOF
25962 #define HAVE_RL_CALLBACK 1
25968 # check for readline 2.2
25969 cat >conftest.
$ac_ext <<_ACEOF
25972 cat confdefs.h
>>conftest.
$ac_ext
25973 cat >>conftest.
$ac_ext <<_ACEOF
25974 /* end confdefs.h. */
25975 #include <readline/readline.h>
25977 if { (ac_try
="$ac_cpp conftest.$ac_ext"
25978 case "(($ac_try" in
25979 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25980 *) ac_try_echo=$ac_try;;
25982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25983 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25985 grep -v '^ *+' conftest.er1 >conftest.err
25987 cat conftest.err >&5
25988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25989 (exit $ac_status); } >/dev/null && {
25990 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25991 test ! -s conftest.err
25995 echo "$as_me: failed program was:" >&5
25996 sed 's/^/| /' conftest.$ac_ext >&5
26001 rm -f conftest.err conftest.$ac_ext
26002 if test $have_readline = yes
26004 cat >conftest.$ac_ext <<_ACEOF
26007 cat confdefs.h >>conftest.$ac_ext
26008 cat >>conftest.$ac_ext <<_ACEOF
26009 /* end confdefs.h. */
26010 #include <readline/readline.h>
26013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26014 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
26016 cat >>confdefs.h <<\_ACEOF
26017 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
26023 cat >conftest.$ac_ext <<_ACEOF
26026 cat confdefs.h >>conftest.$ac_ext
26027 cat >>conftest.$ac_ext <<_ACEOF
26028 /* end confdefs.h. */
26029 #include <readline/readline.h>
26032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26033 $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then
26035 cat >>confdefs.h <<\_ACEOF
26036 #define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1
26044 # check for readline 4.0
26045 { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
26046 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6; }
26047 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
26048 echo $ECHO_N "(cached) $ECHO_C" >&6
26050 ac_check_lib_save_LIBS=$LIBS
26051 LIBS="-lreadline $READLINE_LIBS $LIBS"
26052 cat >conftest.$ac_ext <<_ACEOF
26055 cat confdefs.h >>conftest.$ac_ext
26056 cat >>conftest.$ac_ext <<_ACEOF
26057 /* end confdefs.h. */
26059 /* Override any GCC internal prototype to avoid an error.
26060 Use char because int might match the return type of a GCC
26061 builtin and then its argument prototype would still apply. */
26065 char rl_pre_input_hook ();
26069 return rl_pre_input_hook ();
26074 rm -f conftest.$ac_objext conftest$ac_exeext
26075 if { (ac_try="$ac_link"
26076 case "(($ac_try" in
26077 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26078 *) ac_try_echo
=$ac_try;;
26080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26081 (eval "$ac_link") 2>conftest.er1
26083 grep -v '^ *+' conftest.er1
>conftest.err
26085 cat conftest.err
>&5
26086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26087 (exit $ac_status); } && {
26088 test -z "$ac_c_werror_flag" ||
26089 test ! -s conftest.err
26090 } && test -s conftest
$ac_exeext &&
26091 $as_test_x conftest
$ac_exeext; then
26092 ac_cv_lib_readline_rl_pre_input_hook
=yes
26094 echo "$as_me: failed program was:" >&5
26095 sed 's/^/| /' conftest.
$ac_ext >&5
26097 ac_cv_lib_readline_rl_pre_input_hook
=no
26100 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
26101 conftest
$ac_exeext conftest.
$ac_ext
26102 LIBS
=$ac_check_lib_save_LIBS
26104 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
26105 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
26106 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
26108 cat >>confdefs.h
<<\_ACEOF
26109 #define HAVE_RL_PRE_INPUT_HOOK 1
26116 { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5
26117 echo $ECHO_N "checking for rl_completion_display_matches_hook in -lreadline... $ECHO_C" >&6; }
26118 if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
26119 echo $ECHO_N "(cached) $ECHO_C" >&6
26121 ac_check_lib_save_LIBS
=$LIBS
26122 LIBS
="-lreadline $READLINE_LIBS $LIBS"
26123 cat >conftest.
$ac_ext <<_ACEOF
26126 cat confdefs.h
>>conftest.
$ac_ext
26127 cat >>conftest.
$ac_ext <<_ACEOF
26128 /* end confdefs.h. */
26130 /* Override any GCC internal prototype to avoid an error.
26131 Use char because int might match the return type of a GCC
26132 builtin and then its argument prototype would still apply. */
26136 char rl_completion_display_matches_hook ();
26140 return rl_completion_display_matches_hook ();
26145 rm -f conftest.
$ac_objext conftest
$ac_exeext
26146 if { (ac_try
="$ac_link"
26147 case "(($ac_try" in
26148 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26149 *) ac_try_echo=$ac_try;;
26151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26152 (eval "$ac_link") 2>conftest.er1
26154 grep -v '^ *+' conftest.er1 >conftest.err
26156 cat conftest.err >&5
26157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26158 (exit $ac_status); } && {
26159 test -z "$ac_c_werror_flag" ||
26160 test ! -s conftest.err
26161 } && test -s conftest$ac_exeext &&
26162 $as_test_x conftest$ac_exeext; then
26163 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
26165 echo "$as_me: failed program was:" >&5
26166 sed 's/^/| /' conftest.$ac_ext >&5
26168 ac_cv_lib_readline_rl_completion_display_matches_hook=no
26171 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26172 conftest$ac_exeext conftest.$ac_ext
26173 LIBS=$ac_check_lib_save_LIBS
26175 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
26176 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
26177 if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then
26179 cat >>confdefs.h <<\_ACEOF
26180 #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
26186 # check for readline 4.2
26187 { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
26188 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; }
26189 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
26190 echo $ECHO_N "(cached) $ECHO_C" >&6
26192 ac_check_lib_save_LIBS=$LIBS
26193 LIBS="-lreadline $READLINE_LIBS $LIBS"
26194 cat >conftest.$ac_ext <<_ACEOF
26197 cat confdefs.h >>conftest.$ac_ext
26198 cat >>conftest.$ac_ext <<_ACEOF
26199 /* end confdefs.h. */
26201 /* Override any GCC internal prototype to avoid an error.
26202 Use char because int might match the return type of a GCC
26203 builtin and then its argument prototype would still apply. */
26207 char rl_completion_matches ();
26211 return rl_completion_matches ();
26216 rm -f conftest.$ac_objext conftest$ac_exeext
26217 if { (ac_try="$ac_link"
26218 case "(($ac_try" in
26219 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26220 *) ac_try_echo
=$ac_try;;
26222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26223 (eval "$ac_link") 2>conftest.er1
26225 grep -v '^ *+' conftest.er1
>conftest.err
26227 cat conftest.err
>&5
26228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26229 (exit $ac_status); } && {
26230 test -z "$ac_c_werror_flag" ||
26231 test ! -s conftest.err
26232 } && test -s conftest
$ac_exeext &&
26233 $as_test_x conftest
$ac_exeext; then
26234 ac_cv_lib_readline_rl_completion_matches
=yes
26236 echo "$as_me: failed program was:" >&5
26237 sed 's/^/| /' conftest.
$ac_ext >&5
26239 ac_cv_lib_readline_rl_completion_matches
=no
26242 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
26243 conftest
$ac_exeext conftest.
$ac_ext
26244 LIBS
=$ac_check_lib_save_LIBS
26246 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
26247 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
26248 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
26250 cat >>confdefs.h
<<\_ACEOF
26251 #define HAVE_RL_COMPLETION_MATCHES 1
26257 # also in readline 4.2
26258 cat >conftest.
$ac_ext <<_ACEOF
26261 cat confdefs.h
>>conftest.
$ac_ext
26262 cat >>conftest.
$ac_ext <<_ACEOF
26263 /* end confdefs.h. */
26264 #include <readline/readline.h>
26266 if { (ac_try
="$ac_cpp conftest.$ac_ext"
26267 case "(($ac_try" in
26268 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26269 *) ac_try_echo=$ac_try;;
26271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26272 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26274 grep -v '^ *+' conftest.er1 >conftest.err
26276 cat conftest.err >&5
26277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26278 (exit $ac_status); } >/dev/null && {
26279 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26280 test ! -s conftest.err
26284 echo "$as_me: failed program was:" >&5
26285 sed 's/^/| /' conftest.$ac_ext >&5
26290 rm -f conftest.err conftest.$ac_ext
26291 if test $have_readline = yes
26293 cat >conftest.$ac_ext <<_ACEOF
26296 cat confdefs.h >>conftest.$ac_ext
26297 cat >>conftest.$ac_ext <<_ACEOF
26298 /* end confdefs.h. */
26299 #include <readline/readline.h>
26302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26303 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
26305 cat >>confdefs.h <<\_ACEOF
26306 #define HAVE_RL_CATCH_SIGNAL 1
26314 # End of readline checks: restore LIBS
26315 LIBS=$LIBS_no_readline
26317 { echo "$as_me:$LINENO: checking for broken nice()" >&5
26318 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; }
26319 if test "${ac_cv_broken_nice+set}" = set; then
26320 echo $ECHO_N "(cached) $ECHO_C" >&6
26323 if test "$cross_compiling" = yes; then
26324 ac_cv_broken_nice=no
26326 cat >conftest.$ac_ext <<_ACEOF
26329 cat confdefs.h >>conftest.$ac_ext
26330 cat >>conftest.$ac_ext <<_ACEOF
26331 /* end confdefs.h. */
26335 int val1 = nice(1);
26336 if (val1 != -1 && val1 == nice(2))
26342 rm -f conftest$ac_exeext
26343 if { (ac_try="$ac_link"
26344 case "(($ac_try" in
26345 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26346 *) ac_try_echo
=$ac_try;;
26348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26349 (eval "$ac_link") 2>&5
26351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26352 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
26353 { (case "(($ac_try" in
26354 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26355 *) ac_try_echo=$ac_try;;
26357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26358 (eval "$ac_try") 2>&5
26360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26361 (exit $ac_status); }; }; then
26362 ac_cv_broken_nice=yes
26364 echo "$as_me: program exited with status $ac_status" >&5
26365 echo "$as_me: failed program was:" >&5
26366 sed 's/^/| /' conftest.$ac_ext >&5
26368 ( exit $ac_status )
26369 ac_cv_broken_nice=no
26371 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26377 { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
26378 echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
26379 if test "$ac_cv_broken_nice" = yes
26382 cat >>confdefs.h <<\_ACEOF
26383 #define HAVE_BROKEN_NICE 1
26388 { echo "$as_me:$LINENO: checking for broken poll()" >&5
26389 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; }
26390 if test "${ac_cv_broken_poll+set}" = set; then
26391 echo $ECHO_N "(cached) $ECHO_C" >&6
26393 if test "$cross_compiling" = yes; then
26394 ac_cv_broken_poll=no
26396 cat >conftest.$ac_ext <<_ACEOF
26399 cat confdefs.h >>conftest.$ac_ext
26400 cat >>conftest.$ac_ext <<_ACEOF
26401 /* end confdefs.h. */
26407 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
26412 poll_test = poll(&poll_struct, 1, 0);
26415 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
26422 rm -f conftest$ac_exeext
26423 if { (ac_try="$ac_link"
26424 case "(($ac_try" in
26425 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26426 *) ac_try_echo
=$ac_try;;
26428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26429 (eval "$ac_link") 2>&5
26431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26432 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
26433 { (case "(($ac_try" in
26434 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26435 *) ac_try_echo=$ac_try;;
26437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26438 (eval "$ac_try") 2>&5
26440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26441 (exit $ac_status); }; }; then
26442 ac_cv_broken_poll=yes
26444 echo "$as_me: program exited with status $ac_status" >&5
26445 echo "$as_me: failed program was:" >&5
26446 sed 's/^/| /' conftest.$ac_ext >&5
26448 ( exit $ac_status )
26449 ac_cv_broken_poll=no
26451 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26457 { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
26458 echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
26459 if test "$ac_cv_broken_poll" = yes
26462 cat >>confdefs.h <<\_ACEOF
26463 #define HAVE_BROKEN_POLL 1
26468 # Before we can test tzset, we need to check if struct tm has a tm_zone
26469 # (which is not required by ISO C or UNIX spec) and/or if we support
26471 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
26472 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
26473 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
26474 echo $ECHO_N "(cached) $ECHO_C" >&6
26476 cat >conftest.$ac_ext <<_ACEOF
26479 cat confdefs.h >>conftest.$ac_ext
26480 cat >>conftest.$ac_ext <<_ACEOF
26481 /* end confdefs.h. */
26482 #include <sys/types.h>
26483 #include <$ac_cv_struct_tm>
26489 static struct tm ac_aggr;
26490 if (ac_aggr.tm_zone)
26496 rm -f conftest.$ac_objext
26497 if { (ac_try="$ac_compile"
26498 case "(($ac_try" in
26499 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26500 *) ac_try_echo
=$ac_try;;
26502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26503 (eval "$ac_compile") 2>conftest.er1
26505 grep -v '^ *+' conftest.er1
>conftest.err
26507 cat conftest.err
>&5
26508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26509 (exit $ac_status); } && {
26510 test -z "$ac_c_werror_flag" ||
26511 test ! -s conftest.err
26512 } && test -s conftest.
$ac_objext; then
26513 ac_cv_member_struct_tm_tm_zone
=yes
26515 echo "$as_me: failed program was:" >&5
26516 sed 's/^/| /' conftest.
$ac_ext >&5
26518 cat >conftest.
$ac_ext <<_ACEOF
26521 cat confdefs.h
>>conftest.
$ac_ext
26522 cat >>conftest.
$ac_ext <<_ACEOF
26523 /* end confdefs.h. */
26524 #include <sys/types.h>
26525 #include <$ac_cv_struct_tm>
26531 static struct tm ac_aggr;
26532 if (sizeof ac_aggr.tm_zone)
26538 rm -f conftest.
$ac_objext
26539 if { (ac_try
="$ac_compile"
26540 case "(($ac_try" in
26541 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26542 *) ac_try_echo=$ac_try;;
26544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26545 (eval "$ac_compile") 2>conftest.er1
26547 grep -v '^ *+' conftest.er1 >conftest.err
26549 cat conftest.err >&5
26550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26551 (exit $ac_status); } && {
26552 test -z "$ac_c_werror_flag" ||
26553 test ! -s conftest.err
26554 } && test -s conftest.$ac_objext; then
26555 ac_cv_member_struct_tm_tm_zone=yes
26557 echo "$as_me: failed program was:" >&5
26558 sed 's/^/| /' conftest.$ac_ext >&5
26560 ac_cv_member_struct_tm_tm_zone=no
26563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26568 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
26569 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
26570 if test $ac_cv_member_struct_tm_tm_zone = yes; then
26572 cat >>confdefs.h <<_ACEOF
26573 #define HAVE_STRUCT_TM_TM_ZONE 1
26579 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
26581 cat >>confdefs.h <<\_ACEOF
26582 #define HAVE_TM_ZONE 1
26586 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
26587 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
26588 if test "${ac_cv_have_decl_tzname+set}" = set; then
26589 echo $ECHO_N "(cached) $ECHO_C" >&6
26591 cat >conftest.$ac_ext <<_ACEOF
26594 cat confdefs.h >>conftest.$ac_ext
26595 cat >>conftest.$ac_ext <<_ACEOF
26596 /* end confdefs.h. */
26610 rm -f conftest.$ac_objext
26611 if { (ac_try="$ac_compile"
26612 case "(($ac_try" in
26613 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26614 *) ac_try_echo
=$ac_try;;
26616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26617 (eval "$ac_compile") 2>conftest.er1
26619 grep -v '^ *+' conftest.er1
>conftest.err
26621 cat conftest.err
>&5
26622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26623 (exit $ac_status); } && {
26624 test -z "$ac_c_werror_flag" ||
26625 test ! -s conftest.err
26626 } && test -s conftest.
$ac_objext; then
26627 ac_cv_have_decl_tzname
=yes
26629 echo "$as_me: failed program was:" >&5
26630 sed 's/^/| /' conftest.
$ac_ext >&5
26632 ac_cv_have_decl_tzname
=no
26635 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26637 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
26638 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
26639 if test $ac_cv_have_decl_tzname = yes; then
26641 cat >>confdefs.h
<<_ACEOF
26642 #define HAVE_DECL_TZNAME 1
26647 cat >>confdefs.h
<<_ACEOF
26648 #define HAVE_DECL_TZNAME 0
26655 { echo "$as_me:$LINENO: checking for tzname" >&5
26656 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
26657 if test "${ac_cv_var_tzname+set}" = set; then
26658 echo $ECHO_N "(cached) $ECHO_C" >&6
26660 cat >conftest.
$ac_ext <<_ACEOF
26663 cat confdefs.h
>>conftest.
$ac_ext
26664 cat >>conftest.
$ac_ext <<_ACEOF
26665 /* end confdefs.h. */
26667 #if !HAVE_DECL_TZNAME
26668 extern char *tzname[];
26674 return tzname[0][0];
26679 rm -f conftest.
$ac_objext conftest
$ac_exeext
26680 if { (ac_try
="$ac_link"
26681 case "(($ac_try" in
26682 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26683 *) ac_try_echo=$ac_try;;
26685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26686 (eval "$ac_link") 2>conftest.er1
26688 grep -v '^ *+' conftest.er1 >conftest.err
26690 cat conftest.err >&5
26691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26692 (exit $ac_status); } && {
26693 test -z "$ac_c_werror_flag" ||
26694 test ! -s conftest.err
26695 } && test -s conftest$ac_exeext &&
26696 $as_test_x conftest$ac_exeext; then
26697 ac_cv_var_tzname=yes
26699 echo "$as_me: failed program was:" >&5
26700 sed 's/^/| /' conftest.$ac_ext >&5
26702 ac_cv_var_tzname=no
26705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26706 conftest$ac_exeext conftest.$ac_ext
26708 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
26709 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
26710 if test $ac_cv_var_tzname = yes; then
26712 cat >>confdefs.h <<\_ACEOF
26713 #define HAVE_TZNAME 1
26720 # check tzset(3) exists and works like we expect it to
26721 { echo "$as_me:$LINENO: checking for working tzset()" >&5
26722 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; }
26723 if test "${ac_cv_working_tzset+set}" = set; then
26724 echo $ECHO_N "(cached) $ECHO_C" >&6
26727 if test "$cross_compiling" = yes; then
26728 ac_cv_working_tzset=no
26730 cat >conftest.$ac_ext <<_ACEOF
26733 cat confdefs.h >>conftest.$ac_ext
26734 cat >>conftest.$ac_ext <<_ACEOF
26735 /* end confdefs.h. */
26737 #include <stdlib.h>
26739 #include <string.h>
26742 extern char *tzname[];
26747 /* Note that we need to ensure that not only does tzset(3)
26748 do 'something' with localtime, but it works as documented
26749 in the library reference and as expected by the test suite.
26750 This includes making sure that tzname is set properly if
26751 tm->tm_zone does not exist since it is the alternative way
26752 of getting timezone info.
26754 Red Hat 6.2 doesn't understand the southern hemisphere
26755 after New Year's Day.
26758 time_t groundhogday = 1044144000; /* GMT-based */
26759 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
26761 putenv("TZ=UTC+0");
26763 if (localtime(&groundhogday)->tm_hour != 0)
26766 /* For UTC, tzname[1] is sometimes "", sometimes " " */
26767 if (strcmp(tzname[0], "UTC") ||
26768 (tzname[1][0] != 0 && tzname[1][0] != ' '))
26772 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
26774 if (localtime(&groundhogday)->tm_hour != 19)
26777 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
26781 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
26783 if (localtime(&groundhogday)->tm_hour != 11)
26786 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
26790 #if HAVE_STRUCT_TM_TM_ZONE
26791 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
26793 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
26801 rm -f conftest$ac_exeext
26802 if { (ac_try="$ac_link"
26803 case "(($ac_try" in
26804 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26805 *) ac_try_echo
=$ac_try;;
26807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26808 (eval "$ac_link") 2>&5
26810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26811 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
26812 { (case "(($ac_try" in
26813 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26814 *) ac_try_echo=$ac_try;;
26816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26817 (eval "$ac_try") 2>&5
26819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26820 (exit $ac_status); }; }; then
26821 ac_cv_working_tzset=yes
26823 echo "$as_me: program exited with status $ac_status" >&5
26824 echo "$as_me: failed program was:" >&5
26825 sed 's/^/| /' conftest.$ac_ext >&5
26827 ( exit $ac_status )
26828 ac_cv_working_tzset=no
26830 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26836 { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
26837 echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
26838 if test "$ac_cv_working_tzset" = yes
26841 cat >>confdefs.h <<\_ACEOF
26842 #define HAVE_WORKING_TZSET 1
26847 # Look for subsecond timestamps in struct stat
26848 { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
26849 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6; }
26850 if test "${ac_cv_stat_tv_nsec+set}" = set; then
26851 echo $ECHO_N "(cached) $ECHO_C" >&6
26853 cat >conftest.$ac_ext <<_ACEOF
26856 cat confdefs.h >>conftest.$ac_ext
26857 cat >>conftest.$ac_ext <<_ACEOF
26858 /* end confdefs.h. */
26859 #include <sys/stat.h>
26865 st.st_mtim.tv_nsec = 1;
26871 rm -f conftest.$ac_objext
26872 if { (ac_try="$ac_compile"
26873 case "(($ac_try" in
26874 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26875 *) ac_try_echo
=$ac_try;;
26877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26878 (eval "$ac_compile") 2>conftest.er1
26880 grep -v '^ *+' conftest.er1
>conftest.err
26882 cat conftest.err
>&5
26883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26884 (exit $ac_status); } && {
26885 test -z "$ac_c_werror_flag" ||
26886 test ! -s conftest.err
26887 } && test -s conftest.
$ac_objext; then
26888 ac_cv_stat_tv_nsec
=yes
26890 echo "$as_me: failed program was:" >&5
26891 sed 's/^/| /' conftest.
$ac_ext >&5
26893 ac_cv_stat_tv_nsec
=no
26896 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26899 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
26900 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
26901 if test "$ac_cv_stat_tv_nsec" = yes
26904 cat >>confdefs.h
<<\_ACEOF
26905 #define HAVE_STAT_TV_NSEC 1
26910 # Look for BSD style subsecond timestamps in struct stat
26911 { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
26912 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6; }
26913 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
26914 echo $ECHO_N "(cached) $ECHO_C" >&6
26916 cat >conftest.
$ac_ext <<_ACEOF
26919 cat confdefs.h
>>conftest.
$ac_ext
26920 cat >>conftest.
$ac_ext <<_ACEOF
26921 /* end confdefs.h. */
26922 #include <sys/stat.h>
26928 st.st_mtimespec.tv_nsec = 1;
26934 rm -f conftest.
$ac_objext
26935 if { (ac_try
="$ac_compile"
26936 case "(($ac_try" in
26937 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26938 *) ac_try_echo=$ac_try;;
26940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26941 (eval "$ac_compile") 2>conftest.er1
26943 grep -v '^ *+' conftest.er1 >conftest.err
26945 cat conftest.err >&5
26946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26947 (exit $ac_status); } && {
26948 test -z "$ac_c_werror_flag" ||
26949 test ! -s conftest.err
26950 } && test -s conftest.$ac_objext; then
26951 ac_cv_stat_tv_nsec2=yes
26953 echo "$as_me: failed program was:" >&5
26954 sed 's/^/| /' conftest.$ac_ext >&5
26956 ac_cv_stat_tv_nsec2=no
26959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26962 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
26963 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
26964 if test "$ac_cv_stat_tv_nsec2" = yes
26967 cat >>confdefs.h <<\_ACEOF
26968 #define HAVE_STAT_TV_NSEC2 1
26973 # On HP/UX 11.0, mvwdelch is a block with a return statement
26974 { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
26975 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6; }
26976 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
26977 echo $ECHO_N "(cached) $ECHO_C" >&6
26979 cat >conftest.$ac_ext <<_ACEOF
26982 cat confdefs.h >>conftest.$ac_ext
26983 cat >>conftest.$ac_ext <<_ACEOF
26984 /* end confdefs.h. */
26985 #include <curses.h>
26991 rtn = mvwdelch(0,0,0);
26997 rm -f conftest.$ac_objext
26998 if { (ac_try="$ac_compile"
26999 case "(($ac_try" in
27000 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27001 *) ac_try_echo
=$ac_try;;
27003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27004 (eval "$ac_compile") 2>conftest.er1
27006 grep -v '^ *+' conftest.er1
>conftest.err
27008 cat conftest.err
>&5
27009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27010 (exit $ac_status); } && {
27011 test -z "$ac_c_werror_flag" ||
27012 test ! -s conftest.err
27013 } && test -s conftest.
$ac_objext; then
27014 ac_cv_mvwdelch_is_expression
=yes
27016 echo "$as_me: failed program was:" >&5
27017 sed 's/^/| /' conftest.
$ac_ext >&5
27019 ac_cv_mvwdelch_is_expression
=no
27022 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27025 { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
27026 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
27028 if test "$ac_cv_mvwdelch_is_expression" = yes
27031 cat >>confdefs.h
<<\_ACEOF
27032 #define MVWDELCH_IS_EXPRESSION 1
27037 { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
27038 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6; }
27039 if test "${ac_cv_window_has_flags+set}" = set; then
27040 echo $ECHO_N "(cached) $ECHO_C" >&6
27042 cat >conftest.
$ac_ext <<_ACEOF
27045 cat confdefs.h
>>conftest.
$ac_ext
27046 cat >>conftest.
$ac_ext <<_ACEOF
27047 /* end confdefs.h. */
27048 #include <curses.h>
27060 rm -f conftest.
$ac_objext
27061 if { (ac_try
="$ac_compile"
27062 case "(($ac_try" in
27063 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27064 *) ac_try_echo=$ac_try;;
27066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27067 (eval "$ac_compile") 2>conftest.er1
27069 grep -v '^ *+' conftest.er1 >conftest.err
27071 cat conftest.err >&5
27072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27073 (exit $ac_status); } && {
27074 test -z "$ac_c_werror_flag" ||
27075 test ! -s conftest.err
27076 } && test -s conftest.$ac_objext; then
27077 ac_cv_window_has_flags=yes
27079 echo "$as_me: failed program was:" >&5
27080 sed 's/^/| /' conftest.$ac_ext >&5
27082 ac_cv_window_has_flags=no
27085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27088 { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
27089 echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
27092 if test "$ac_cv_window_has_flags" = yes
27095 cat >>confdefs.h <<\_ACEOF
27096 #define WINDOW_HAS_FLAGS 1
27101 { echo "$as_me:$LINENO: checking for is_term_resized" >&5
27102 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; }
27103 cat >conftest.$ac_ext <<_ACEOF
27106 cat confdefs.h >>conftest.$ac_ext
27107 cat >>conftest.$ac_ext <<_ACEOF
27108 /* end confdefs.h. */
27109 #include <curses.h>
27113 void *x=is_term_resized
27118 rm -f conftest.$ac_objext
27119 if { (ac_try="$ac_compile"
27120 case "(($ac_try" in
27121 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27122 *) ac_try_echo
=$ac_try;;
27124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27125 (eval "$ac_compile") 2>conftest.er1
27127 grep -v '^ *+' conftest.er1
>conftest.err
27129 cat conftest.err
>&5
27130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27131 (exit $ac_status); } && {
27132 test -z "$ac_c_werror_flag" ||
27133 test ! -s conftest.err
27134 } && test -s conftest.
$ac_objext; then
27136 cat >>confdefs.h
<<\_ACEOF
27137 #define HAVE_CURSES_IS_TERM_RESIZED 1
27140 { echo "$as_me:$LINENO: result: yes" >&5
27141 echo "${ECHO_T}yes" >&6; }
27143 echo "$as_me: failed program was:" >&5
27144 sed 's/^/| /' conftest.
$ac_ext >&5
27146 { echo "$as_me:$LINENO: result: no" >&5
27147 echo "${ECHO_T}no" >&6; }
27151 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27153 { echo "$as_me:$LINENO: checking for resize_term" >&5
27154 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; }
27155 cat >conftest.
$ac_ext <<_ACEOF
27158 cat confdefs.h
>>conftest.
$ac_ext
27159 cat >>conftest.
$ac_ext <<_ACEOF
27160 /* end confdefs.h. */
27161 #include <curses.h>
27165 void *x=resize_term
27170 rm -f conftest.
$ac_objext
27171 if { (ac_try
="$ac_compile"
27172 case "(($ac_try" in
27173 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27174 *) ac_try_echo=$ac_try;;
27176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27177 (eval "$ac_compile") 2>conftest.er1
27179 grep -v '^ *+' conftest.er1 >conftest.err
27181 cat conftest.err >&5
27182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27183 (exit $ac_status); } && {
27184 test -z "$ac_c_werror_flag" ||
27185 test ! -s conftest.err
27186 } && test -s conftest.$ac_objext; then
27188 cat >>confdefs.h <<\_ACEOF
27189 #define HAVE_CURSES_RESIZE_TERM 1
27192 { echo "$as_me:$LINENO: result: yes" >&5
27193 echo "${ECHO_T}yes" >&6; }
27195 echo "$as_me: failed program was:" >&5
27196 sed 's/^/| /' conftest.$ac_ext >&5
27198 { echo "$as_me:$LINENO: result: no" >&5
27199 echo "${ECHO_T}no" >&6; }
27203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27205 { echo "$as_me:$LINENO: checking for resizeterm" >&5
27206 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; }
27207 cat >conftest.$ac_ext <<_ACEOF
27210 cat confdefs.h >>conftest.$ac_ext
27211 cat >>conftest.$ac_ext <<_ACEOF
27212 /* end confdefs.h. */
27213 #include <curses.h>
27222 rm -f conftest.$ac_objext
27223 if { (ac_try="$ac_compile"
27224 case "(($ac_try" in
27225 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27226 *) ac_try_echo
=$ac_try;;
27228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27229 (eval "$ac_compile") 2>conftest.er1
27231 grep -v '^ *+' conftest.er1
>conftest.err
27233 cat conftest.err
>&5
27234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27235 (exit $ac_status); } && {
27236 test -z "$ac_c_werror_flag" ||
27237 test ! -s conftest.err
27238 } && test -s conftest.
$ac_objext; then
27240 cat >>confdefs.h
<<\_ACEOF
27241 #define HAVE_CURSES_RESIZETERM 1
27244 { echo "$as_me:$LINENO: result: yes" >&5
27245 echo "${ECHO_T}yes" >&6; }
27247 echo "$as_me: failed program was:" >&5
27248 sed 's/^/| /' conftest.
$ac_ext >&5
27250 { echo "$as_me:$LINENO: result: no" >&5
27251 echo "${ECHO_T}no" >&6; }
27255 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27257 { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
27258 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; }
27260 if test -r /dev
/ptmx
27262 { echo "$as_me:$LINENO: result: yes" >&5
27263 echo "${ECHO_T}yes" >&6; }
27265 cat >>confdefs.h
<<\_ACEOF
27266 #define HAVE_DEV_PTMX 1
27270 { echo "$as_me:$LINENO: result: no" >&5
27271 echo "${ECHO_T}no" >&6; }
27274 { echo "$as_me:$LINENO: checking for /dev/ptc" >&5
27275 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
27277 if test -r /dev
/ptc
27279 { echo "$as_me:$LINENO: result: yes" >&5
27280 echo "${ECHO_T}yes" >&6; }
27282 cat >>confdefs.h
<<\_ACEOF
27283 #define HAVE_DEV_PTC 1
27287 { echo "$as_me:$LINENO: result: no" >&5
27288 echo "${ECHO_T}no" >&6; }
27291 if test "$have_long_long" = yes
27293 { echo "$as_me:$LINENO: checking for %lld and %llu printf() format support" >&5
27294 echo $ECHO_N "checking for %lld and %llu printf() format support... $ECHO_C" >&6; }
27295 if test "${ac_cv_have_long_long_format+set}" = set; then
27296 echo $ECHO_N "(cached) $ECHO_C" >&6
27298 if test "$cross_compiling" = yes; then
27299 ac_cv_have_long_long_format
=no
27301 cat >conftest.
$ac_ext <<_ACEOF
27304 cat confdefs.h
>>conftest.
$ac_ext
27305 cat >>conftest.
$ac_ext <<_ACEOF
27306 /* end confdefs.h. */
27309 #include <stddef.h>
27310 #include <string.h>
27312 #ifdef HAVE_SYS_TYPES_H
27313 #include <sys/types.h>
27320 if (sprintf(buffer, "%lld", (long long)123) < 0)
27322 if (strcmp(buffer, "123"))
27325 if (sprintf(buffer, "%lld", (long long)-123) < 0)
27327 if (strcmp(buffer, "-123"))
27330 if (sprintf(buffer, "%llu", (unsigned long long)123) < 0)
27332 if (strcmp(buffer, "123"))
27339 rm -f conftest
$ac_exeext
27340 if { (ac_try
="$ac_link"
27341 case "(($ac_try" in
27342 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27343 *) ac_try_echo=$ac_try;;
27345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27346 (eval "$ac_link") 2>&5
27348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27349 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27350 { (case "(($ac_try" in
27351 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27352 *) ac_try_echo
=$ac_try;;
27354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27355 (eval "$ac_try") 2>&5
27357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27358 (exit $ac_status); }; }; then
27359 ac_cv_have_long_long_format
=yes
27361 echo "$as_me: program exited with status $ac_status" >&5
27362 echo "$as_me: failed program was:" >&5
27363 sed 's/^/| /' conftest.
$ac_ext >&5
27365 ( exit $ac_status )
27366 ac_cv_have_long_long_format
=no
27368 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
27375 { echo "$as_me:$LINENO: result: $ac_cv_have_long_long_format" >&5
27376 echo "${ECHO_T}$ac_cv_have_long_long_format" >&6; }
27379 if test "$ac_cv_have_long_long_format" = yes
27382 cat >>confdefs.h
<<\_ACEOF
27383 #define PY_FORMAT_LONG_LONG "ll"
27388 if test $ac_sys_system = Darwin
27390 LIBS
="$LIBS -framework CoreFoundation"
27394 { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
27395 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; }
27396 if test "${ac_cv_have_size_t_format+set}" = set; then
27397 echo $ECHO_N "(cached) $ECHO_C" >&6
27399 if test "$cross_compiling" = yes; then
27400 ac_cv_have_size_t_format
="cross -- assuming yes"
27403 cat >conftest.
$ac_ext <<_ACEOF
27406 cat confdefs.h
>>conftest.
$ac_ext
27407 cat >>conftest.
$ac_ext <<_ACEOF
27408 /* end confdefs.h. */
27411 #include <stddef.h>
27412 #include <string.h>
27414 #ifdef HAVE_SYS_TYPES_H
27415 #include <sys/types.h>
27418 #ifdef HAVE_SSIZE_T
27419 typedef ssize_t Py_ssize_t;
27420 #elif SIZEOF_VOID_P == SIZEOF_LONG
27421 typedef long Py_ssize_t;
27423 typedef int Py_ssize_t;
27430 if(sprintf(buffer, "%zd", (size_t)123) < 0)
27433 if (strcmp(buffer, "123"))
27436 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
27439 if (strcmp(buffer, "-123"))
27446 rm -f conftest
$ac_exeext
27447 if { (ac_try
="$ac_link"
27448 case "(($ac_try" in
27449 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27450 *) ac_try_echo=$ac_try;;
27452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27453 (eval "$ac_link") 2>&5
27455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27456 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27457 { (case "(($ac_try" in
27458 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27459 *) ac_try_echo
=$ac_try;;
27461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27462 (eval "$ac_try") 2>&5
27464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27465 (exit $ac_status); }; }; then
27466 ac_cv_have_size_t_format
=yes
27468 echo "$as_me: program exited with status $ac_status" >&5
27469 echo "$as_me: failed program was:" >&5
27470 sed 's/^/| /' conftest.
$ac_ext >&5
27472 ( exit $ac_status )
27473 ac_cv_have_size_t_format
=no
27475 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
27480 { echo "$as_me:$LINENO: result: $ac_cv_have_size_t_format" >&5
27481 echo "${ECHO_T}$ac_cv_have_size_t_format" >&6; }
27482 if test "$ac_cv_have_size_t_format" != no
; then
27484 cat >>confdefs.h
<<\_ACEOF
27485 #define PY_FORMAT_SIZE_T "z"
27490 { echo "$as_me:$LINENO: checking for socklen_t" >&5
27491 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
27492 if test "${ac_cv_type_socklen_t+set}" = set; then
27493 echo $ECHO_N "(cached) $ECHO_C" >&6
27495 cat >conftest.
$ac_ext <<_ACEOF
27498 cat confdefs.h
>>conftest.
$ac_ext
27499 cat >>conftest.
$ac_ext <<_ACEOF
27500 /* end confdefs.h. */
27502 #ifdef HAVE_SYS_TYPES_H
27503 #include <sys/types.h>
27505 #ifdef HAVE_SYS_SOCKET_H
27506 #include <sys/socket.h>
27510 typedef socklen_t ac__type_new_;
27514 if ((ac__type_new_ *) 0)
27516 if (sizeof (ac__type_new_))
27522 rm -f conftest.
$ac_objext
27523 if { (ac_try
="$ac_compile"
27524 case "(($ac_try" in
27525 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27526 *) ac_try_echo=$ac_try;;
27528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27529 (eval "$ac_compile") 2>conftest.er1
27531 grep -v '^ *+' conftest.er1 >conftest.err
27533 cat conftest.err >&5
27534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27535 (exit $ac_status); } && {
27536 test -z "$ac_c_werror_flag" ||
27537 test ! -s conftest.err
27538 } && test -s conftest.$ac_objext; then
27539 ac_cv_type_socklen_t=yes
27541 echo "$as_me: failed program was:" >&5
27542 sed 's/^/| /' conftest.$ac_ext >&5
27544 ac_cv_type_socklen_t=no
27547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27549 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
27550 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
27551 if test $ac_cv_type_socklen_t = yes; then
27555 cat >>confdefs.h <<\_ACEOF
27556 #define socklen_t int
27564 for h in `(cd $srcdir;echo Python
/thread_
*.h
)`
27566 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
27570 SRCDIRS="Parser Grammar Objects Python Modules Mac"
27571 { echo "$as_me:$LINENO: checking for build directories" >&5
27572 echo $ECHO_N "checking for build directories... $ECHO_C" >&6; }
27573 for dir in $SRCDIRS; do
27574 if test ! -d $dir; then
27578 { echo "$as_me:$LINENO: result: done" >&5
27579 echo "${ECHO_T}done" >&6; }
27581 # generate output files
27582 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config Misc/python.pc"
27584 cat >confcache <<\_ACEOF
27585 # This file is a shell script that caches the results of configure
27586 # tests run on this system so they can be shared between configure
27587 # scripts and configure runs, see configure's option --config-cache.
27588 # It is not useful on other systems. If it contains results you don't
27589 # want to keep, you may remove or edit it.
27591 # config.status only pays attention to the cache file if you give it
27592 # the --recheck option to rerun configure.
27594 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
27595 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27596 # following values.
27600 # The following way of writing the cache mishandles newlines in values,
27601 # but we know of no workaround that is simple, portable, and efficient.
27602 # So, we kill variables containing newlines.
27603 # Ultrix sh set writes to stderr and can't be redirected directly,
27604 # and sets the high bit in the cache file unless we assign to the vars.
27606 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27607 eval ac_val
=\$
$ac_var
27611 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
27612 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
27615 _ | IFS | as_nl
) ;; #(
27616 *) $as_unset $ac_var ;;
27622 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27623 *${as_nl}ac_space
=\
*)
27624 # `set' does not quote correctly, so add quotes (double-quote
27625 # substitution turns \\\\ into \\, and sed turns \\ into \).
27628 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27631 # `set' quotes correctly as required by POSIX, so do not add quotes.
27632 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27641 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27643 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27645 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
27646 if test -w "$cache_file"; then
27647 test "x$cache_file" != "x/dev/null" &&
27648 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
27649 echo "$as_me: updating cache $cache_file" >&6;}
27650 cat confcache
>$cache_file
27652 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27653 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27658 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
27659 # Let make expand exec_prefix.
27660 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
27662 DEFS
=-DHAVE_CONFIG_H
27666 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
27667 # 1. Remove the extension, and $U if already installed.
27668 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
27669 ac_i
=`echo "$ac_i" | sed "$ac_script"`
27670 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27671 # will be set to the directory where LIBOBJS objects are built.
27672 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27673 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
27675 LIBOBJS
=$ac_libobjs
27677 LTLIBOBJS
=$ac_ltlibobjs
27681 : ${CONFIG_STATUS=./config.status}
27682 ac_clean_files_save
=$ac_clean_files
27683 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
27684 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27685 echo "$as_me: creating $CONFIG_STATUS" >&6;}
27686 cat >$CONFIG_STATUS <<_ACEOF
27688 # Generated by $as_me.
27689 # Run this file to recreate the current configuration.
27690 # Compiler output produced by configure, useful for debugging
27691 # configure, is in config.log if it exists.
27694 ac_cs_recheck=false
27696 SHELL=\${CONFIG_SHELL-$SHELL}
27699 cat >>$CONFIG_STATUS <<\_ACEOF
27700 ## --------------------- ##
27701 ## M4sh Initialization. ##
27702 ## --------------------- ##
27704 # Be more Bourne compatible
27705 DUALCASE
=1; export DUALCASE
# for MKS sh
27706 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
27709 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
27710 # is contrary to our usage. Disable this feature.
27711 alias -g '${1+"$@"}'='"$@"'
27712 setopt NO_GLOB_SUBST
27714 case `(set -o) 2>/dev/null` in
27715 *posix
*) set -o posix
;;
27724 # Avoid depending upon Character Ranges.
27725 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
27726 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27727 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
27728 as_cr_digits
='0123456789'
27729 as_cr_alnum
=$as_cr_Letters$as_cr_digits
27731 # The user is always right.
27732 if test "${PATH_SEPARATOR+set}" != set; then
27733 echo "#! /bin/sh" >conf$$.sh
27734 echo "exit 0" >>conf$$.sh
27736 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
27744 # Support unset when possible.
27745 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
27753 # We need space, tab and new line, in precisely that order. Quoting is
27754 # there to prevent editors from complaining about space-tab.
27755 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27756 # splitting by setting IFS to empty value.)
27761 # Find who we are. Look in the path if we contain no directory separator.
27763 *[\\/]* ) as_myself
=$0 ;;
27764 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
27765 for as_dir
in $PATH
27768 test -z "$as_dir" && as_dir
=.
27769 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
27775 # We did not find ourselves, most probably we were run as `sh COMMAND'
27776 # in which case we are not to be found in the path.
27777 if test "x$as_myself" = x
; then
27780 if test ! -f "$as_myself"; then
27781 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27782 { (exit 1); exit 1; }
27785 # Work around bugs in pre-3.0 UWIN ksh.
27786 for as_var
in ENV MAIL MAILPATH
27787 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
27795 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
27796 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
27797 LC_TELEPHONE LC_TIME
27799 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
27800 eval $as_var=C
; export $as_var
27802 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
27806 # Required to use basename.
27807 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27808 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27814 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27815 as_basename
=basename
27821 # Name of the executable.
27822 as_me
=`$as_basename -- "$0" ||
27823 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27824 X"$0" : 'X\(//\)$' \| \
27825 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27827 sed '/^.*\/\([^/][^/]*\)\/*$/{
27846 as_lineno_1
=$LINENO
27847 as_lineno_2
=$LINENO
27848 test "x$as_lineno_1" != "x$as_lineno_2" &&
27849 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
27851 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27852 # uniformly replaced by the line number. The first 'sed' inserts a
27853 # line-number line after each line using $LINENO; the second 'sed'
27854 # does the real work. The second script uses 'N' to pair each
27855 # line-number line with the line containing $LINENO, and appends
27856 # trailing '-' during substitution so that $LINENO is not a special
27857 # case at line end.
27858 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27859 # scripts with optimization help from Paolo Bonzini. Blame Lee
27860 # E. McMahon (1931-1989) for sed's syntax. :-)
27872 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27875 ' >$as_me.lineno
&&
27876 chmod +x
"$as_me.lineno" ||
27877 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27878 { (exit 1); exit 1; }; }
27880 # Don't try to exec as it changes $[0], causing all sort of problems
27881 # (the dirname of $[0] is not the place where we might find the
27882 # original and so on. Autoconf is especially sensitive to this).
27883 .
"./$as_me.lineno"
27884 # Exit status is that of the last command.
27889 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
27895 ECHO_C
= ECHO_N
= ECHO_T
=
27896 case `echo -n x` in
27898 case `echo 'x\c'` in
27899 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
27906 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27907 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27913 rm -f conf$$ conf$$.exe conf$$.
file
27914 if test -d conf$$.dir
; then
27915 rm -f conf$$.dir
/conf$$.
file
27921 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
27923 # ... but there are two gotchas:
27924 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27925 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27926 # In both cases, we have to default to `cp -p'.
27927 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
27929 elif ln conf$$.
file conf$$
2>/dev
/null
; then
27934 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
27935 rmdir conf$$.dir
2>/dev
/null
27937 if mkdir
-p .
2>/dev
/null
; then
27940 test -d .
/-p && rmdir .
/-p
27944 if test -x / >/dev
/null
2>&1; then
27945 as_test_x
='test -x'
27947 if ls -dL / >/dev
/null
2>&1; then
27954 if test -d "$1"; then
27960 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27961 ???[sx]*):;;*)false;;esac;fi
27965 as_executable_p
=$as_test_x
27967 # Sed expression to map a string onto a valid CPP name.
27968 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27970 # Sed expression to map a string onto a valid variable name.
27971 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27976 # Save the log message, to keep $[0] and so on meaningful, and to
27977 # report actual input values of CONFIG_FILES etc. instead of their
27978 # values after options handling.
27980 This file was extended by python $as_me 2.7, which was
27981 generated by GNU Autoconf 2.61. Invocation command line was
27983 CONFIG_FILES = $CONFIG_FILES
27984 CONFIG_HEADERS = $CONFIG_HEADERS
27985 CONFIG_LINKS = $CONFIG_LINKS
27986 CONFIG_COMMANDS = $CONFIG_COMMANDS
27989 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27994 cat >>$CONFIG_STATUS <<_ACEOF
27995 # Files that config.status was made for.
27996 config_files="$ac_config_files"
27997 config_headers="$ac_config_headers"
28001 cat >>$CONFIG_STATUS <<\_ACEOF
28003 \`$as_me' instantiates files from templates according to the
28004 current configuration.
28006 Usage: $0 [OPTIONS] [FILE]...
28008 -h, --help print this help, then exit
28009 -V, --version print version number and configuration settings, then exit
28010 -q, --quiet do not print progress messages
28011 -d, --debug don't remove temporary files
28012 --recheck update $as_me by reconfiguring in the same conditions
28013 --file=FILE[:TEMPLATE]
28014 instantiate the configuration file FILE
28015 --header=FILE[:TEMPLATE]
28016 instantiate the configuration header FILE
28018 Configuration files:
28021 Configuration headers:
28024 Report bugs to <bug-autoconf@gnu.org>."
28027 cat >>$CONFIG_STATUS <<_ACEOF
28029 python config.status 2.7
28030 configured by $0, generated by GNU Autoconf 2.61,
28031 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28033 Copyright (C) 2006 Free Software Foundation, Inc.
28034 This config.status script is free software; the Free Software Foundation
28035 gives unlimited permission to copy, distribute and modify it."
28042 cat >>$CONFIG_STATUS <<\_ACEOF
28043 # If no file are specified by the user, then we need to provide default
28044 # value. By we need to know if files were specified by the user.
28050 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
28051 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
28062 # Handling of the options.
28063 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
28065 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
28066 echo "$ac_cs_version"; exit ;;
28067 --debug |
--debu |
--deb |
--de |
--d |
-d )
28069 --file |
--fil |
--fi |
--f )
28071 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
28072 ac_need_defaults
=false
;;
28073 --header |
--heade |
--head |
--hea )
28075 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
28076 ac_need_defaults
=false
;;
28078 # Conflict between --help and --header
28079 { echo "$as_me: error: ambiguous option: $1
28080 Try \`$0 --help' for more information." >&2
28081 { (exit 1); exit 1; }; };;
28082 --help |
--hel |
-h )
28083 echo "$ac_cs_usage"; exit ;;
28084 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
28085 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
28088 # This is an error.
28089 -*) { echo "$as_me: error: unrecognized option: $1
28090 Try \`$0 --help' for more information." >&2
28091 { (exit 1); exit 1; }; } ;;
28093 *) ac_config_targets
="$ac_config_targets $1"
28094 ac_need_defaults
=false
;;
28100 ac_configure_extra_args
=
28102 if $ac_cs_silent; then
28104 ac_configure_extra_args
="$ac_configure_extra_args --silent"
28108 cat >>$CONFIG_STATUS <<_ACEOF
28109 if \$ac_cs_recheck; then
28110 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
28111 CONFIG_SHELL=$SHELL
28112 export CONFIG_SHELL
28113 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28117 cat >>$CONFIG_STATUS <<\_ACEOF
28121 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28122 ## Running $as_me. ##
28128 cat >>$CONFIG_STATUS <<_ACEOF
28131 cat >>$CONFIG_STATUS <<\_ACEOF
28133 # Handling of arguments.
28134 for ac_config_target
in $ac_config_targets
28136 case $ac_config_target in
28137 "pyconfig.h") CONFIG_HEADERS
="$CONFIG_HEADERS pyconfig.h" ;;
28138 "Mac/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/Makefile" ;;
28139 "Mac/PythonLauncher/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
28140 "Mac/IDLE/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/IDLE/Makefile" ;;
28141 "Mac/Resources/framework/Info.plist") CONFIG_FILES
="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
28142 "Mac/Resources/app/Info.plist") CONFIG_FILES
="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
28143 "Makefile.pre") CONFIG_FILES
="$CONFIG_FILES Makefile.pre" ;;
28144 "Modules/Setup.config") CONFIG_FILES
="$CONFIG_FILES Modules/Setup.config" ;;
28145 "Misc/python.pc") CONFIG_FILES
="$CONFIG_FILES Misc/python.pc" ;;
28147 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
28148 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
28149 { (exit 1); exit 1; }; };;
28154 # If the user did not use the arguments to specify the items to instantiate,
28155 # then the envvar interface is used. Set only those that are not.
28156 # We use the long form for the default assignment because of an extremely
28157 # bizarre bug on SunOS 4.1.3.
28158 if $ac_need_defaults; then
28159 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
28160 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
28163 # Have a temporary directory for convenience. Make it in the build tree
28164 # simply because there is no reason against having it here, and in addition,
28165 # creating and moving files from /tmp can sometimes cause problems.
28166 # Hook for its removal unless debugging.
28167 # Note that there is a small window in which the directory will not be cleaned:
28168 # after its creation but before its name has been assigned to `$tmp'.
28172 trap 'exit_status=$?
28173 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28175 trap '{ (exit 1); exit 1; }' 1 2 13 15
28177 # Create a (secure) tmp directory for tmp files.
28180 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28181 test -n "$tmp" && test -d "$tmp"
28184 tmp
=.
/conf$$
-$RANDOM
28185 (umask 077 && mkdir
"$tmp")
28188 echo "$me: cannot create a temporary directory in ." >&2
28189 { (exit 1); exit 1; }
28193 # Set up the sed scripts for CONFIG_FILES section.
28196 # No need to generate the scripts if there are no CONFIG_FILES.
28197 # This happens for instance when ./config.status config.h
28198 if test -n "$CONFIG_FILES"; then
28205 for ac_last_try
in false false false false false
:; do
28206 cat >conf$
$subs.
sed <<_ACEOF
28207 SHELL!$SHELL$ac_delim
28208 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
28209 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
28210 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
28211 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
28212 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
28213 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
28214 exec_prefix!$exec_prefix$ac_delim
28215 prefix!$prefix$ac_delim
28216 program_transform_name!$program_transform_name$ac_delim
28217 bindir!$bindir$ac_delim
28218 sbindir!$sbindir$ac_delim
28219 libexecdir!$libexecdir$ac_delim
28220 datarootdir!$datarootdir$ac_delim
28221 datadir!$datadir$ac_delim
28222 sysconfdir!$sysconfdir$ac_delim
28223 sharedstatedir!$sharedstatedir$ac_delim
28224 localstatedir!$localstatedir$ac_delim
28225 includedir!$includedir$ac_delim
28226 oldincludedir!$oldincludedir$ac_delim
28227 docdir!$docdir$ac_delim
28228 infodir!$infodir$ac_delim
28229 htmldir!$htmldir$ac_delim
28230 dvidir!$dvidir$ac_delim
28231 pdfdir!$pdfdir$ac_delim
28232 psdir!$psdir$ac_delim
28233 libdir!$libdir$ac_delim
28234 localedir!$localedir$ac_delim
28235 mandir!$mandir$ac_delim
28236 DEFS!$DEFS$ac_delim
28237 ECHO_C!$ECHO_C$ac_delim
28238 ECHO_N!$ECHO_N$ac_delim
28239 ECHO_T!$ECHO_T$ac_delim
28240 LIBS!$LIBS$ac_delim
28241 build_alias!$build_alias$ac_delim
28242 host_alias!$host_alias$ac_delim
28243 target_alias!$target_alias$ac_delim
28244 VERSION!$VERSION$ac_delim
28245 SOVERSION!$SOVERSION$ac_delim
28246 CONFIG_ARGS!$CONFIG_ARGS$ac_delim
28247 UNIVERSALSDK!$UNIVERSALSDK$ac_delim
28248 ARCH_RUN_32BIT!$ARCH_RUN_32BIT$ac_delim
28249 LIPO_32BIT_FLAGS!$LIPO_32BIT_FLAGS$ac_delim
28250 PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
28251 PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim
28252 PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
28253 PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
28254 PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
28255 FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
28256 FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
28257 FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
28258 FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
28259 FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
28260 MACHDEP!$MACHDEP$ac_delim
28261 SGI_ABI!$SGI_ABI$ac_delim
28262 EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim
28263 EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim
28264 CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
28265 EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
28267 CFLAGS!$CFLAGS$ac_delim
28268 LDFLAGS!$LDFLAGS$ac_delim
28269 CPPFLAGS!$CPPFLAGS$ac_delim
28270 ac_ct_CC!$ac_ct_CC$ac_delim
28271 EXEEXT!$EXEEXT$ac_delim
28272 OBJEXT!$OBJEXT$ac_delim
28274 MAINCC!$MAINCC$ac_delim
28276 GREP!$GREP$ac_delim
28277 EGREP!$EGREP$ac_delim
28278 BUILDEXEEXT!$BUILDEXEEXT$ac_delim
28279 LIBRARY!$LIBRARY$ac_delim
28280 LDLIBRARY!$LDLIBRARY$ac_delim
28281 DLLLIBRARY!$DLLLIBRARY$ac_delim
28282 BLDLIBRARY!$BLDLIBRARY$ac_delim
28283 LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
28284 INSTSONAME!$INSTSONAME$ac_delim
28285 RUNSHARED!$RUNSHARED$ac_delim
28286 LINKCC!$LINKCC$ac_delim
28287 GNULD!$GNULD$ac_delim
28288 RANLIB!$RANLIB$ac_delim
28290 ARFLAGS!$ARFLAGS$ac_delim
28291 SVNVERSION!$SVNVERSION$ac_delim
28292 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
28293 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
28294 INSTALL_DATA!$INSTALL_DATA$ac_delim
28297 BASECFLAGS!$BASECFLAGS$ac_delim
28298 UNIVERSAL_ARCH_FLAGS!$UNIVERSAL_ARCH_FLAGS$ac_delim
28299 OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
28300 LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
28302 LDSHARED!$LDSHARED$ac_delim
28303 BLDSHARED!$BLDSHARED$ac_delim
28306 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
28308 elif $ac_last_try; then
28309 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28310 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28311 { (exit 1); exit 1; }; }
28313 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
28317 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
28318 if test -n "$ac_eof"; then
28319 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
28320 ac_eof
=`expr $ac_eof + 1`
28323 cat >>$CONFIG_STATUS <<_ACEOF
28324 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
28325 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28328 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
28329 s/^/s,@/; s/!/@,|#_!!_#|/
28332 s/'"$ac_delim"'$/,g/; t
28334 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
28335 ' >>$CONFIG_STATUS <conf$
$subs.
sed
28336 rm -f conf$
$subs.
sed
28337 cat >>$CONFIG_STATUS <<_ACEOF
28343 for ac_last_try
in false false false false false
:; do
28344 cat >conf$
$subs.
sed <<_ACEOF
28345 CCSHARED!$CCSHARED$ac_delim
28346 LINKFORSHARED!$LINKFORSHARED$ac_delim
28347 CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
28348 SHLIBS!$SHLIBS$ac_delim
28349 USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
28350 SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
28351 USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
28352 LDLAST!$LDLAST$ac_delim
28353 THREADOBJ!$THREADOBJ$ac_delim
28354 DLINCLDIR!$DLINCLDIR$ac_delim
28355 DYNLOADFILE!$DYNLOADFILE$ac_delim
28356 MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
28357 TRUE!$TRUE$ac_delim
28358 LIBOBJS!$LIBOBJS$ac_delim
28359 HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
28360 HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
28361 HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
28362 HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
28363 HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
28364 LIBM!$LIBM$ac_delim
28365 LIBC!$LIBC$ac_delim
28366 UNICODE_OBJS!$UNICODE_OBJS$ac_delim
28367 THREADHEADERS!$THREADHEADERS$ac_delim
28368 SRCDIRS!$SRCDIRS$ac_delim
28369 LTLIBOBJS!$LTLIBOBJS$ac_delim
28372 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 25; then
28374 elif $ac_last_try; then
28375 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28376 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28377 { (exit 1); exit 1; }; }
28379 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
28383 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
28384 if test -n "$ac_eof"; then
28385 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
28386 ac_eof
=`expr $ac_eof + 1`
28389 cat >>$CONFIG_STATUS <<_ACEOF
28390 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
28391 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
28394 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
28395 s/^/s,@/; s/!/@,|#_!!_#|/
28398 s/'"$ac_delim"'$/,g/; t
28400 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
28401 ' >>$CONFIG_STATUS <conf$
$subs.
sed
28402 rm -f conf$
$subs.
sed
28403 cat >>$CONFIG_STATUS <<_ACEOF
28410 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28411 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28412 # trailing colons and then remove the whole line if VPATH becomes empty
28413 # (actually we leave an empty line to preserve line numbers).
28414 if test "x$srcdir" = x.
; then
28415 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
28416 s/:*\$(srcdir):*/:/
28417 s/:*\${srcdir}:*/:/
28419 s/^\([^=]*=[ ]*\):*/\1/
28425 cat >>$CONFIG_STATUS <<\_ACEOF
28426 fi # test -n "$CONFIG_FILES"
28429 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
28432 :[FHLC
]) ac_mode
=$ac_tag; continue;;
28434 case $ac_mode$ac_tag in
28436 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
28437 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
28438 { (exit 1); exit 1; }; };;
28439 :[FH
]-) ac_tag
=-:-;;
28440 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
28457 -) ac_f
="$tmp/stdin";;
28458 *) # Look for the file first in the build tree, then in the source tree
28459 # (if the path is not absolute). The absolute path cannot be DOS-style,
28460 # because $ac_f cannot contain `:'.
28464 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
28466 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
28467 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
28468 { (exit 1); exit 1; }; };;
28470 ac_file_inputs
="$ac_file_inputs $ac_f"
28473 # Let's still pretend it is `configure' which instantiates (i.e., don't
28474 # use $as_me), people would be surprised to read:
28475 # /* config.h. Generated by config.status. */
28476 configure_input
="Generated from "`IFS=:
28477 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
28478 if test x
"$ac_file" != x-
; then
28479 configure_input
="$ac_file. $configure_input"
28480 { echo "$as_me:$LINENO: creating $ac_file" >&5
28481 echo "$as_me: creating $ac_file" >&6;}
28485 *:-:* |
*:-) cat >"$tmp/stdin";;
28490 ac_dir
=`$as_dirname -- "$ac_file" ||
28491 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28492 X"$ac_file" : 'X\(//\)[^/]' \| \
28493 X"$ac_file" : 'X\(//\)$' \| \
28494 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28496 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28500 /^X\(\/\/\)[^/].*/{
28515 -*) as_dir
=.
/$as_dir;;
28517 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
28521 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
28522 *) as_qdir
=$as_dir;;
28524 as_dirs
="'$as_qdir' $as_dirs"
28525 as_dir
=`$as_dirname -- "$as_dir" ||
28526 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28527 X"$as_dir" : 'X\(//\)[^/]' \| \
28528 X"$as_dir" : 'X\(//\)$' \| \
28529 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28531 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28535 /^X\(\/\/\)[^/].*/{
28548 test -d "$as_dir" && break
28550 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
28551 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
28552 echo "$as_me: error: cannot create directory $as_dir" >&2;}
28553 { (exit 1); exit 1; }; }; }
28557 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28559 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28560 # A ".." for each directory in $ac_dir_suffix.
28561 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
28562 case $ac_top_builddir_sub in
28563 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28564 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
28567 ac_abs_top_builddir
=$ac_pwd
28568 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
28569 # for backward compatibility:
28570 ac_top_builddir
=$ac_top_build_prefix
28573 .
) # We are building in place.
28575 ac_top_srcdir
=$ac_top_builddir_sub
28576 ac_abs_top_srcdir
=$ac_pwd ;;
28577 [\\/]* | ?
:[\\/]* ) # Absolute name.
28578 ac_srcdir
=$srcdir$ac_dir_suffix;
28579 ac_top_srcdir
=$srcdir
28580 ac_abs_top_srcdir
=$srcdir ;;
28581 *) # Relative name.
28582 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
28583 ac_top_srcdir
=$ac_top_build_prefix$srcdir
28584 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
28586 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
28596 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
28597 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
28601 cat >>$CONFIG_STATUS <<\_ACEOF
28602 # If the template does not know about datarootdir, expand it.
28603 # FIXME: This hack should be removed a few years after 2.60.
28604 ac_datarootdir_hack
=; ac_datarootdir_seen
=
28606 case `sed -n '/datarootdir/ {
28615 ' $ac_file_inputs` in
28616 *datarootdir
*) ac_datarootdir_seen
=yes;;
28617 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
28618 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28619 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28621 cat >>$CONFIG_STATUS <<_ACEOF
28622 ac_datarootdir_hack='
28623 s&@datadir@&$datadir&g
28624 s&@docdir@&$docdir&g
28625 s&@infodir@&$infodir&g
28626 s&@localedir@&$localedir&g
28627 s&@mandir@&$mandir&g
28628 s&\\\${datarootdir}&$datarootdir&g' ;;
28632 # Neutralize VPATH when `$srcdir' = `.'.
28633 # Shell code in configure.ac might set extrasub.
28634 # FIXME: do we really want to maintain this feature?
28635 cat >>$CONFIG_STATUS <<_ACEOF
28639 cat >>$CONFIG_STATUS <<\_ACEOF
28641 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
28642 s
&@configure_input@
&$configure_input&;t t
28643 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
28644 s
&@srcdir@
&$ac_srcdir&;t t
28645 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
28646 s
&@top_srcdir@
&$ac_top_srcdir&;t t
28647 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
28648 s
&@builddir@
&$ac_builddir&;t t
28649 s
&@abs_builddir@
&$ac_abs_builddir&;t t
28650 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
28651 s
&@INSTALL@
&$ac_INSTALL&;t t
28652 $ac_datarootdir_hack
28653 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
28655 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28656 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
28657 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
28658 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
28659 which seems to be undefined. Please make sure it is defined." >&5
28660 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
28661 which seems to be undefined. Please make sure it is defined." >&2;}
28665 -) cat "$tmp/out"; rm -f "$tmp/out";;
28666 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
28675 # Transform confdefs.h into a sed script `conftest.defines', that
28676 # substitutes the proper values into config.h.in to produce config.h.
28677 rm -f conftest.defines conftest.
tail
28678 # First, append a space to every undef/define line, to ease matching.
28679 echo 's/$/ /' >conftest.defines
28680 # Then, protect against being on the right side of a sed subst, or in
28681 # an unquoted here document, in config.status. If some macros were
28682 # called several times there might be several #defines for the same
28683 # symbol, which is useless. But do not sort them, since the last
28684 # AC_DEFINE must be honored.
28685 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
28686 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
28687 # NAME is the cpp macro being defined, VALUE is the value it is being given.
28688 # PARAMS is the parameter list in the macro definition--in most cases, it's
28689 # just an empty string.
28690 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
28691 ac_dB
='\\)[ (].*,\\1define\\2'
28699 s/^[ ]*#[ ]*define[ ][ ]*//
28704 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
28705 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
28706 ' >>conftest.defines
28708 # Remove the space that was appended to ease matching.
28709 # Then replace #undef with comments. This is necessary, for
28710 # example, in the case of _POSIX_SOURCE, which is predefined and required
28711 # on some systems where configure will not decide to define it.
28712 # (The regexp can be short, since the line contains either #define or #undef.)
28714 s,^[ #]*u.*,/* & */,' >>conftest.defines
28716 # Break up conftest.defines:
28717 ac_max_sed_lines
=50
28719 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
28720 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
28721 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
28723 ac_in
='$ac_file_inputs'
28724 ac_out
='"$tmp/out1"'
28725 ac_nxt
='"$tmp/out2"'
28729 # Write a here document:
28730 cat >>$CONFIG_STATUS <<_ACEOF
28731 # First, check the format of the line:
28732 cat >"\$tmp/defines.sed" <<\\CEOF
28733 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
28734 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
28738 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
28740 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
28741 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
28742 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
28743 grep . conftest.
tail >/dev
/null ||
break
28744 rm -f conftest.defines
28745 mv conftest.
tail conftest.defines
28747 rm -f conftest.defines conftest.
tail
28749 echo "ac_result=$ac_in" >>$CONFIG_STATUS
28750 cat >>$CONFIG_STATUS <<\_ACEOF
28751 if test x
"$ac_file" != x-
; then
28752 echo "/* $configure_input */" >"$tmp/config.h"
28753 cat "$ac_result" >>"$tmp/config.h"
28754 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
28755 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28756 echo "$as_me: $ac_file is unchanged" >&6;}
28759 mv "$tmp/config.h" $ac_file
28762 echo "/* $configure_input */"
28774 { (exit 0); exit 0; }
28776 chmod +x
$CONFIG_STATUS
28777 ac_clean_files
=$ac_clean_files_save
28780 # configure is writing to config.log, and then calls config.status.
28781 # config.status does its own redirection, appending to config.log.
28782 # Unfortunately, on DOS this fails, as config.log is still kept open
28783 # by configure, so config.status won't be able to write to it; its
28784 # output is simply discarded. So we exec the FD to /dev/null,
28785 # effectively closing config.log, so it can be properly (re)opened and
28786 # appended to by config.status. When coming back to configure, we
28787 # need to make the FD available again.
28788 if test "$no_create" != yes; then
28790 ac_config_status_args
=
28791 test "$silent" = yes &&
28792 ac_config_status_args
="$ac_config_status_args --quiet"
28794 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
28796 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28797 # would make configure fail if this is the last instruction.
28798 $ac_cs_success ||
{ (exit 1); exit 1; }
28802 echo "creating Modules/Setup"
28803 if test ! -f Modules
/Setup
28805 cp $srcdir/Modules
/Setup.dist Modules
/Setup
28808 echo "creating Modules/Setup.local"
28809 if test ! -f Modules
/Setup.
local
28811 echo "# Edit this file for local setup changes" >Modules
/Setup.
local
28814 echo "creating Makefile"
28815 $SHELL $srcdir/Modules
/makesetup
-c $srcdir/Modules
/config.c.
in \
28816 -s Modules Modules
/Setup.config \
28817 Modules
/Setup.
local Modules
/Setup
28819 case $ac_sys_system in
28821 { echo "$as_me:$LINENO: WARNING:
28823 Support for BeOS is deprecated as of Python 2.6.
28824 See PEP 11 for the gory details.
28826 echo "$as_me: WARNING:
28828 Support for BeOS is deprecated as of Python 2.6.
28829 See PEP 11 for the gory details.
28835 mv config.c Modules