2 # From configure.in Revision: 75131 .
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
662 PYTHONFRAMEWORKIDENTIFIER
664 PYTHONFRAMEWORKPREFIX
665 PYTHONFRAMEWORKINSTALLDIR
666 FRAMEWORKINSTALLFIRST
668 FRAMEWORKALTINSTALLFIRST
669 FRAMEWORKALTINSTALLLAST
670 FRAMEWORKUNIXTOOLSPREFIX
675 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
676 EXPORT_MACOSX_DEPLOYMENT_TARGET
729 HAVE_GETHOSTBYNAME_R_6_ARG
730 HAVE_GETHOSTBYNAME_R_5_ARG
731 HAVE_GETHOSTBYNAME_R_3_ARG
741 ac_precious_vars
='build_alias
752 # Initialize some variables set by options.
754 ac_init_version
=false
755 # The variables have the same names as the options, with
756 # dashes changed to underlines.
764 program_transform_name
=s
,x
,x
,
772 # Installation directory options.
773 # These are left unexpanded so users can "make install exec_prefix=/foo"
774 # and all the variables that are supposed to be based on exec_prefix
775 # by default will actually change.
776 # Use braces instead of parens because sh, perl, etc. also accept them.
777 # (The list follows the same order as the GNU Coding Standards.)
778 bindir
='${exec_prefix}/bin'
779 sbindir
='${exec_prefix}/sbin'
780 libexecdir
='${exec_prefix}/libexec'
781 datarootdir
='${prefix}/share'
782 datadir
='${datarootdir}'
783 sysconfdir
='${prefix}/etc'
784 sharedstatedir
='${prefix}/com'
785 localstatedir
='${prefix}/var'
786 includedir
='${prefix}/include'
787 oldincludedir
='/usr/include'
788 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
789 infodir
='${datarootdir}/info'
794 libdir
='${exec_prefix}/lib'
795 localedir
='${datarootdir}/locale'
796 mandir
='${datarootdir}/man'
802 # If the previous option needs an argument, assign it.
803 if test -n "$ac_prev"; then
804 eval $ac_prev=\
$ac_option
810 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
814 # Accept the important Cygnus configure options, so we can diagnose typos.
816 case $ac_dashdash$ac_option in
820 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
822 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
825 -build |
--build |
--buil |
--bui |
--bu)
826 ac_prev
=build_alias
;;
827 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
828 build_alias
=$ac_optarg ;;
830 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
831 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
832 ac_prev
=cache_file
;;
833 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
834 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
835 cache_file
=$ac_optarg ;;
838 cache_file
=config.cache
;;
840 -datadir |
--datadir |
--datadi |
--datad)
842 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
843 datadir
=$ac_optarg ;;
845 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
846 |
--dataroo |
--dataro |
--datar)
847 ac_prev
=datarootdir
;;
848 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
849 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
850 datarootdir
=$ac_optarg ;;
852 -disable-* |
--disable-*)
853 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
854 # Reject names that are not valid shell variable names.
855 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
856 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
857 { (exit 1); exit 1; }; }
858 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
859 eval enable_
$ac_feature=no
;;
861 -docdir |
--docdir |
--docdi |
--doc |
--do)
863 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
866 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
868 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
871 -enable-* |
--enable-*)
872 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
873 # Reject names that are not valid shell variable names.
874 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
875 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
876 { (exit 1); exit 1; }; }
877 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
878 eval enable_
$ac_feature=\
$ac_optarg ;;
880 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
881 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
882 |
--exec |
--exe |
--ex)
883 ac_prev
=exec_prefix
;;
884 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
885 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
886 |
--exec=* |
--exe=* |
--ex=*)
887 exec_prefix
=$ac_optarg ;;
889 -gas |
--gas |
--ga |
--g)
890 # Obsolete; use --with-gas.
893 -help |
--help |
--hel |
--he |
-h)
895 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
896 ac_init_help
=recursive
;;
897 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
898 ac_init_help
=short
;;
900 -host |
--host |
--hos |
--ho)
901 ac_prev
=host_alias
;;
902 -host=* |
--host=* |
--hos=* |
--ho=*)
903 host_alias
=$ac_optarg ;;
905 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
907 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
909 htmldir
=$ac_optarg ;;
911 -includedir |
--includedir |
--includedi |
--included |
--include \
912 |
--includ |
--inclu |
--incl |
--inc)
913 ac_prev
=includedir
;;
914 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
915 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
916 includedir
=$ac_optarg ;;
918 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
920 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
921 infodir
=$ac_optarg ;;
923 -libdir |
--libdir |
--libdi |
--libd)
925 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
928 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
929 |
--libexe |
--libex |
--libe)
930 ac_prev
=libexecdir
;;
931 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
932 |
--libexe=* |
--libex=* |
--libe=*)
933 libexecdir
=$ac_optarg ;;
935 -localedir |
--localedir |
--localedi |
--localed |
--locale)
937 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
938 localedir
=$ac_optarg ;;
940 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
941 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
942 ac_prev
=localstatedir
;;
943 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
944 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
945 localstatedir
=$ac_optarg ;;
947 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
949 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
953 # Obsolete; use --without-fp.
956 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
957 |
--no-cr |
--no-c |
-n)
960 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
961 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
964 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
965 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
966 |
--oldin |
--oldi |
--old |
--ol |
--o)
967 ac_prev
=oldincludedir
;;
968 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
969 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
970 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
971 oldincludedir
=$ac_optarg ;;
973 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
975 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
978 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
979 |
--program-pre |
--program-pr |
--program-p)
980 ac_prev
=program_prefix
;;
981 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
982 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
983 program_prefix
=$ac_optarg ;;
985 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
986 |
--program-suf |
--program-su |
--program-s)
987 ac_prev
=program_suffix
;;
988 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
989 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
990 program_suffix
=$ac_optarg ;;
992 -program-transform-name |
--program-transform-name \
993 |
--program-transform-nam |
--program-transform-na \
994 |
--program-transform-n |
--program-transform- \
995 |
--program-transform |
--program-transfor \
996 |
--program-transfo |
--program-transf \
997 |
--program-trans |
--program-tran \
998 |
--progr-tra |
--program-tr |
--program-t)
999 ac_prev
=program_transform_name
;;
1000 -program-transform-name=* |
--program-transform-name=* \
1001 |
--program-transform-nam=* |
--program-transform-na=* \
1002 |
--program-transform-n=* |
--program-transform-=* \
1003 |
--program-transform=* |
--program-transfor=* \
1004 |
--program-transfo=* |
--program-transf=* \
1005 |
--program-trans=* |
--program-tran=* \
1006 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1007 program_transform_name
=$ac_optarg ;;
1009 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1011 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1012 pdfdir
=$ac_optarg ;;
1014 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1016 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1019 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1020 |
-silent |
--silent |
--silen |
--sile |
--sil)
1023 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1025 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1027 sbindir
=$ac_optarg ;;
1029 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1030 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1031 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1033 ac_prev
=sharedstatedir
;;
1034 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1035 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1036 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1038 sharedstatedir
=$ac_optarg ;;
1040 -site |
--site |
--sit)
1042 -site=* |
--site=* |
--sit=*)
1045 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1047 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1048 srcdir
=$ac_optarg ;;
1050 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1051 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1052 ac_prev
=sysconfdir
;;
1053 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1054 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1055 sysconfdir
=$ac_optarg ;;
1057 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1058 ac_prev
=target_alias
;;
1059 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1060 target_alias
=$ac_optarg ;;
1062 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1065 -version |
--version |
--versio |
--versi |
--vers |
-V)
1066 ac_init_version
=: ;;
1069 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1070 # Reject names that are not valid shell variable names.
1071 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1072 { echo "$as_me: error: invalid package name: $ac_package" >&2
1073 { (exit 1); exit 1; }; }
1074 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1075 eval with_
$ac_package=\
$ac_optarg ;;
1077 -without-* |
--without-*)
1078 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1079 # Reject names that are not valid shell variable names.
1080 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1081 { echo "$as_me: error: invalid package name: $ac_package" >&2
1082 { (exit 1); exit 1; }; }
1083 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1084 eval with_
$ac_package=no
;;
1087 # Obsolete; use --with-x.
1090 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1091 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1092 ac_prev
=x_includes
;;
1093 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1094 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1095 x_includes
=$ac_optarg ;;
1097 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1098 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1099 ac_prev
=x_libraries
;;
1100 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1101 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1102 x_libraries
=$ac_optarg ;;
1104 -*) { echo "$as_me: error: unrecognized option: $ac_option
1105 Try \`$0 --help' for more information." >&2
1106 { (exit 1); exit 1; }; }
1110 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1111 # Reject names that are not valid shell variable names.
1112 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1113 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1114 { (exit 1); exit 1; }; }
1115 eval $ac_envvar=\
$ac_optarg
1116 export $ac_envvar ;;
1119 # FIXME: should be removed in autoconf 3.0.
1120 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1121 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1122 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1123 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1129 if test -n "$ac_prev"; then
1130 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1131 { echo "$as_me: error: missing argument to $ac_option" >&2
1132 { (exit 1); exit 1; }; }
1135 # Be sure to have absolute directory names.
1136 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1137 datadir sysconfdir sharedstatedir localstatedir includedir \
1138 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1139 libdir localedir mandir
1141 eval ac_val
=\$
$ac_var
1143 [\\/$
]* | ?
:[\\/]* ) continue;;
1144 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1146 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1147 { (exit 1); exit 1; }; }
1150 # There might be people who depend on the old broken behavior: `$host'
1151 # used to hold the argument of --host etc.
1152 # FIXME: To remove some day.
1155 target
=$target_alias
1157 # FIXME: To remove some day.
1158 if test "x$host_alias" != x
; then
1159 if test "x$build_alias" = x
; then
1160 cross_compiling
=maybe
1161 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1162 If a cross compiler is detected then cross compile mode will be used." >&2
1163 elif test "x$build_alias" != "x$host_alias"; then
1169 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1171 test "$silent" = yes && exec 6>/dev
/null
1174 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1175 ac_ls_di
=`ls -di .` &&
1176 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1177 { echo "$as_me: error: Working directory cannot be determined" >&2
1178 { (exit 1); exit 1; }; }
1179 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1180 { echo "$as_me: error: pwd does not report name of working directory" >&2
1181 { (exit 1); exit 1; }; }
1184 # Find the source files, if location was not specified.
1185 if test -z "$srcdir"; then
1186 ac_srcdir_defaulted
=yes
1187 # Try the directory containing this script, then the parent directory.
1188 ac_confdir
=`$as_dirname -- "$0" ||
1189 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1190 X"$0" : 'X\(//\)[^/]' \| \
1191 X"$0" : 'X\(//\)$' \| \
1192 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1212 if test ! -r "$srcdir/$ac_unique_file"; then
1216 ac_srcdir_defaulted
=no
1218 if test ! -r "$srcdir/$ac_unique_file"; then
1219 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1220 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1221 { (exit 1); exit 1; }; }
1223 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1225 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1226 { (exit 1); exit 1; }; }
1228 # When building in place, set srcdir=.
1229 if test "$ac_abs_confdir" = "$ac_pwd"; then
1232 # Remove unnecessary trailing slashes from srcdir.
1233 # Double slashes in file names in object file debugging info
1234 # mess up M-x gdb in Emacs.
1236 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1238 for ac_var
in $ac_precious_vars; do
1239 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1240 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1241 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1242 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1246 # Report the --help message.
1248 if test "$ac_init_help" = "long"; then
1249 # Omit some internal or obsolete options to make the list less imposing.
1250 # This message is too long to be a string in the A/UX 3.1 sh.
1252 \`configure' configures python 2.7 to adapt to many kinds of systems.
1254 Usage: $0 [OPTION]... [VAR=VALUE]...
1256 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1257 VAR=VALUE. See below for descriptions of some of the useful variables.
1259 Defaults for the options are specified in brackets.
1262 -h, --help display this help and exit
1263 --help=short display options specific to this package
1264 --help=recursive display the short help of all the included packages
1265 -V, --version display version information and exit
1266 -q, --quiet, --silent do not print \`checking...' messages
1267 --cache-file=FILE cache test results in FILE [disabled]
1268 -C, --config-cache alias for \`--cache-file=config.cache'
1269 -n, --no-create do not create output files
1270 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1272 Installation directories:
1273 --prefix=PREFIX install architecture-independent files in PREFIX
1274 [$ac_default_prefix]
1275 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1278 By default, \`make install' will install all the files in
1279 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1280 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1281 for instance \`--prefix=\$HOME'.
1283 For better control, use the options below.
1285 Fine tuning of the installation directories:
1286 --bindir=DIR user executables [EPREFIX/bin]
1287 --sbindir=DIR system admin executables [EPREFIX/sbin]
1288 --libexecdir=DIR program executables [EPREFIX/libexec]
1289 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1290 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1291 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1292 --libdir=DIR object code libraries [EPREFIX/lib]
1293 --includedir=DIR C header files [PREFIX/include]
1294 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1295 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1296 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1297 --infodir=DIR info documentation [DATAROOTDIR/info]
1298 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1299 --mandir=DIR man documentation [DATAROOTDIR/man]
1300 --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1301 --htmldir=DIR html documentation [DOCDIR]
1302 --dvidir=DIR dvi documentation [DOCDIR]
1303 --pdfdir=DIR pdf documentation [DOCDIR]
1304 --psdir=DIR ps documentation [DOCDIR]
1311 if test -n "$ac_init_help"; then
1312 case $ac_init_help in
1313 short | recursive
) echo "Configuration of python 2.7:";;
1318 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1319 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1320 --enable-universalsdk[=SDKDIR
]
1321 Build against Mac OS X
10.4u SDK
(ppc
/i386
)
1322 --enable-framework[=INSTALLDIR
]
1323 Build
(MacOSX|Darwin
) framework
1324 --enable-shared disable
/enable building shared python library
1325 --enable-profiling enable C-level code profiling
1326 --enable-toolbox-glue disable
/enable MacOSX glue code
for extensions
1327 --enable-ipv6 Enable ipv6
(with ipv4
) support
1328 --disable-ipv6 Disable ipv6 support
1329 --enable-big-digits[=BITS
]
1330 use big digits
for Python longs
[BITS
=30]
1331 --enable-unicode[=ucs
[24]]
1332 Enable Unicode
strings (default is
yes)
1335 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1336 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1337 --with-universal-archs=ARCH
1338 select architectures
for universal build
("32-bit",
1339 "64-bit", "3-way", "intel" or
"all")
1340 --with-framework-name=FRAMEWORK
1341 specify an alternate name of the framework built
1342 with
--enable-framework
1343 --without-gcc never use gcc
1344 --with-cxx-main=<compiler
>
1345 compile main
() and link python executable with C
++
1347 --with-suffix=.exe
set executable suffix
1348 --with-pydebug build with Py_DEBUG defined
1349 --with-libs='lib1 ...' link against additional libs
1350 --with-system-ffi build _ctypes module using an installed ffi library
1351 --with-dbmliborder=db1
:db2
:...
1352 order to check db backends
for dbm. Valid value is a
1353 colon separated string with the backend names
1354 `ndbm', `gdbm
' and `bdb'.
1355 --with-signal-module disable
/enable signal module
1356 --with-dec-threads use DEC Alpha
/OSF1 thread-safe libraries
1357 --with(out
)-threads[=DIRECTORY
]
1358 disable
/enable thread support
1359 --with(out
)-thread[=DIRECTORY
]
1360 deprecated
; use
--with(out
)-threads
1361 --with-pth use GNU pth threading libraries
1362 --with(out
)-doc-strings disable
/enable documentation
strings
1363 --with(out
)-tsc enable
/disable timestamp counter profile
1364 --with(out
)-pymalloc disable
/enable specialized mallocs
1365 --with-wctype-functions use wctype.h functions
1366 --with-fpectl enable SIGFPE catching
1367 --with-libm=STRING math library
1368 --with-libc=STRING C library
1370 Some influential environment variables
:
1371 CC C compiler
command
1372 CFLAGS C compiler flags
1373 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1374 nonstandard directory
<lib dir
>
1375 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1376 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1377 you have headers
in a nonstandard directory
<include dir
>
1380 Use these variables to override the choices made by
`configure' or to help
1381 it to find libraries and programs with nonstandard names/locations.
1383 Report bugs to <http://bugs.python.org/>.
1388 if test "$ac_init_help" = "recursive"; then
1389 # If there are subdirs, report their specific --help.
1390 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1391 test -d "$ac_dir" || continue
1395 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1397 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1398 # A ".." for each directory in $ac_dir_suffix.
1399 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1400 case $ac_top_builddir_sub in
1401 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1402 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1405 ac_abs_top_builddir=$ac_pwd
1406 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1407 # for backward compatibility:
1408 ac_top_builddir=$ac_top_build_prefix
1411 .) # We are building in place.
1413 ac_top_srcdir=$ac_top_builddir_sub
1414 ac_abs_top_srcdir=$ac_pwd ;;
1415 [\\/]* | ?:[\\/]* ) # Absolute name.
1416 ac_srcdir=$srcdir$ac_dir_suffix;
1417 ac_top_srcdir=$srcdir
1418 ac_abs_top_srcdir=$srcdir ;;
1420 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1421 ac_top_srcdir=$ac_top_build_prefix$srcdir
1422 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1424 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1426 cd "$ac_dir" || { ac_status=$?; continue; }
1427 # Check for guested configure.
1428 if test -f "$ac_srcdir/configure.gnu"; then
1430 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1431 elif test -f "$ac_srcdir/configure"; then
1433 $SHELL "$ac_srcdir/configure" --help=recursive
1435 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1437 cd "$ac_pwd" || { ac_status=$?; break; }
1441 test -n "$ac_init_help" && exit $ac_status
1442 if $ac_init_version; then
1444 python configure 2.7
1445 generated by GNU Autoconf 2.61
1447 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1448 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1449 This configure script is free software; the Free Software Foundation
1450 gives unlimited permission to copy, distribute and modify it.
1454 cat >config.log <<_ACEOF
1455 This file contains any messages produced by compilers while
1456 running configure, to aid debugging if configure makes a mistake.
1458 It was created by python $as_me 2.7, which was
1459 generated by GNU Autoconf 2.61. Invocation command line was
1471 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1472 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1473 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1474 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1475 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1477 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1478 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1480 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1481 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1482 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1483 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1484 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1485 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1486 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1494 test -z "$as_dir" && as_dir=.
1495 echo "PATH: $as_dir"
1511 # Keep a trace of the command line.
1512 # Strip out --no-create and --no-recursion so they do not pile up.
1513 # Strip out --silent because we don't want to record it for future runs.
1514 # Also quote any args containing shell meta-characters.
1515 # Make two passes to allow for proper duplicate-argument suppression.
1519 ac_must_keep_next=false
1525 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1526 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1527 | -silent | --silent | --silen | --sile | --sil)
1530 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1533 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1535 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1536 if test $ac_must_keep_next = true; then
1537 ac_must_keep_next=false # Got value, back to normal.
1540 *=* | --config-cache | -C | -disable-* | --disable-* \
1541 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1542 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1543 | -with-* | --with-* | -without-* | --without-* | --x)
1544 case "$ac_configure_args0 " in
1545 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1548 -* ) ac_must_keep_next=true ;;
1551 ac_configure_args="$ac_configure_args '$ac_arg'"
1556 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1557 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1559 # When interrupted or exit'd, cleanup temporary files, and complete
1560 # config.log. We remove comments because anyway the quotes in there
1561 # would cause problems or look ugly.
1562 # WARNING: Use '\'' to represent an apostrophe within the trap.
1563 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1564 trap 'exit_status=$?
1565 # Save into config.log some information that might help in debugging.
1570 ## ---------------- ##
1571 ## Cache variables. ##
1572 ## ---------------- ##
1575 # The following way of writing the cache mishandles newlines in values,
1577 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1578 eval ac_val=\$$ac_var
1582 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1583 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1586 _ | IFS | as_nl) ;; #(
1587 *) $as_unset $ac_var ;;
1592 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1593 *${as_nl}ac_space=\ *)
1595 "s/'\''/'\''\\\\'\'''\''/g;
1596 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1599 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1607 ## ----------------- ##
1608 ## Output variables. ##
1609 ## ----------------- ##
1612 for ac_var in $ac_subst_vars
1614 eval ac_val=\$$ac_var
1616 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1618 echo "$ac_var='\''$ac_val'\''"
1622 if test -n "$ac_subst_files"; then
1624 ## ------------------- ##
1625 ## File substitutions. ##
1626 ## ------------------- ##
1629 for ac_var in $ac_subst_files
1631 eval ac_val=\$$ac_var
1633 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1635 echo "$ac_var='\''$ac_val'\''"
1640 if test -s confdefs.h; then
1650 test "$ac_signal" != 0 &&
1651 echo "$as_me: caught signal $ac_signal"
1652 echo "$as_me: exit $exit_status"
1654 rm -f core *.core core.conftest.* &&
1655 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1658 for ac_signal in 1 2 13 15; do
1659 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1663 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1664 rm -f -r conftest* confdefs.h
1666 # Predefined preprocessor variables.
1668 cat >>confdefs.h <<_ACEOF
1669 #define PACKAGE_NAME "$PACKAGE_NAME"
1673 cat >>confdefs.h <<_ACEOF
1674 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1678 cat >>confdefs.h <<_ACEOF
1679 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1683 cat >>confdefs.h <<_ACEOF
1684 #define PACKAGE_STRING "$PACKAGE_STRING"
1688 cat >>confdefs.h <<_ACEOF
1689 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1693 # Let the site file select an alternate cache file if it wants to.
1694 # Prefer explicitly selected file to automatically selected ones.
1695 if test -n "$CONFIG_SITE"; then
1696 set x "$CONFIG_SITE"
1697 elif test "x$prefix" != xNONE; then
1698 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1700 set x "$ac_default_prefix/share/config.site" \
1701 "$ac_default_prefix/etc/config.site"
1706 if test -r "$ac_site_file"; then
1707 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1708 echo "$as_me: loading site script $ac_site_file" >&6;}
1709 sed 's/^/| /' "$ac_site_file" >&5
1714 if test -r "$cache_file"; then
1715 # Some versions of bash will fail to source /dev/null (special
1716 # files actually), so we avoid doing that.
1717 if test -f "$cache_file"; then
1718 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1719 echo "$as_me: loading cache $cache_file" >&6;}
1721 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1722 *) . "./$cache_file";;
1726 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1727 echo "$as_me: creating cache $cache_file" >&6;}
1731 # Check that the precious variables saved in the cache have kept the same
1733 ac_cache_corrupted=false
1734 for ac_var in $ac_precious_vars; do
1735 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1736 eval ac_new_set=\$ac_env_${ac_var}_set
1737 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1738 eval ac_new_val=\$ac_env_${ac_var}_value
1739 case $ac_old_set,$ac_new_set in
1741 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1742 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1743 ac_cache_corrupted=: ;;
1745 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1746 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1747 ac_cache_corrupted=: ;;
1750 if test "x$ac_old_val" != "x$ac_new_val"; then
1751 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1752 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1753 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1754 echo "$as_me: former value
: $ac_old_val" >&2;}
1755 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1756 echo "$as_me: current value
: $ac_new_val" >&2;}
1757 ac_cache_corrupted=:
1760 # Pass precious variables to config.status.
1761 if test "$ac_new_set" = set; then
1763 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1764 *) ac_arg=$ac_var=$ac_new_val ;;
1766 case " $ac_configure_args " in
1767 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1768 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1772 if $ac_cache_corrupted; then
1773 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1774 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1775 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1776 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1777 { (exit 1); exit 1; }; }
1805 ac_cpp='$CPP $CPPFLAGS'
1806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1812 ac_config_headers="$ac_config_headers pyconfig.h"
1816 if test "$prefix" != "/"; then
1817 prefix=`echo "$prefix" |
sed -e 's/\/$//g'`
1825 # We don't use PACKAGE_ variables, and they cause conflicts
1826 # with other autoconf-based packages that include Python.h
1827 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1829 mv confdefs.h.new confdefs.h
1837 # The later defininition of _XOPEN_SOURCE disables certain features
1838 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1840 cat >>confdefs.h <<\_ACEOF
1841 #define _GNU_SOURCE 1
1845 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1846 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1849 cat >>confdefs.h <<\_ACEOF
1850 #define _NETBSD_SOURCE 1
1854 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1855 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1858 cat >>confdefs.h <<\_ACEOF
1859 #define __BSD_VISIBLE 1
1863 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1864 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1866 cat >>confdefs.h <<\_ACEOF
1867 #define _BSD_TYPES 1
1871 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1872 # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
1875 cat >>confdefs.h <<\_ACEOF
1876 #define _DARWIN_C_SOURCE 1
1881 define_xopen_source=yes
1883 # Arguments passed to configure.
1885 CONFIG_ARGS="$ac_configure_args"
1887 # Check whether --enable-universalsdk was given.
1888 if test "${enable_universalsdk+set}" = set; then
1889 enableval=$enable_universalsdk;
1892 enableval=/Developer/SDKs/MacOSX10.4u.sdk
1898 enable_universalsdk=
1901 UNIVERSALSDK=$enableval
1908 enable_universalsdk=
1916 UNIVERSAL_ARCHS="32-bit"
1917 { echo "$as_me:$LINENO: checking for --with-universal-archs" >&5
1918 echo $ECHO_N "checking for --with-universal-archs... $ECHO_C" >&6; }
1920 # Check whether --with-universal-archs was given.
1921 if test "${with_universal_archs+set}" = set; then
1922 withval=$with_universal_archs;
1923 { echo "$as_me:$LINENO: result: $withval" >&5
1924 echo "${ECHO_T}$withval" >&6; }
1925 UNIVERSAL_ARCHS="$withval"
1926 if test "${enable_universalsdk}" ; then
1929 { { echo "$as_me:$LINENO: error: --with-universal-archs without --enable-universalsdk. See Mac/README" >&5
1930 echo "$as_me: error: --with-universal-archs without --enable-universalsdk. See Mac/README" >&2;}
1931 { (exit 1); exit 1; }; }
1936 { echo "$as_me:$LINENO: result: 32-bit" >&5
1937 echo "${ECHO_T}32-bit" >&6; }
1945 # Check whether --with-framework-name was given.
1946 if test "${with_framework_name+set}" = set; then
1947 withval=$with_framework_name;
1948 if test "${enable_framework}"; then
1951 { { echo "$as_me:$LINENO: error: --with-framework-name without --enable-framework. See Mac/README" >&5
1952 echo "$as_me: error: --with-framework-name without --enable-framework. See Mac/README" >&2;}
1953 { (exit 1); exit 1; }; }
1955 PYTHONFRAMEWORK=${withval}
1956 PYTHONFRAMEWORKDIR=${withval}.framework
1957 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval |
tr 'A-Z' 'a-z'`
1961 PYTHONFRAMEWORK=Python
1962 PYTHONFRAMEWORKDIR=Python.framework
1963 PYTHONFRAMEWORKIDENTIFIER=org.python.python
1967 # Check whether --enable-framework was given.
1968 if test "${enable_framework+set}" = set; then
1969 enableval=$enable_framework;
1972 enableval=/Library/Frameworks
1977 PYTHONFRAMEWORKDIR=no-framework
1978 PYTHONFRAMEWORKPREFIX=
1979 PYTHONFRAMEWORKINSTALLDIR=
1980 FRAMEWORKINSTALLFIRST=
1981 FRAMEWORKINSTALLLAST=
1982 FRAMEWORKALTINSTALLFIRST=
1983 FRAMEWORKALTINSTALLLAST=
1984 if test "x${prefix}" = "xNONE"; then
1985 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1987 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1992 PYTHONFRAMEWORKPREFIX=$enableval
1993 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1994 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
1995 FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall"
1996 if test "$UNIVERSAL_ARCHS" = "all"
1998 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkinstallunixtools4way"
1999 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps4way frameworkaltinstallunixtools4way"
2001 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
2002 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
2005 if test "x${prefix}" = "xNONE" ; then
2006 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2008 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2010 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
2012 # Add files for Mac specific code to the list of output
2014 ac_config_files="$ac_config_files Mac/Makefile"
2016 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
2018 ac_config_files="$ac_config_files Mac/IDLE/Makefile"
2020 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist"
2022 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist"
2029 PYTHONFRAMEWORKDIR=no-framework
2030 PYTHONFRAMEWORKPREFIX=
2031 PYTHONFRAMEWORKINSTALLDIR=
2032 FRAMEWORKINSTALLFIRST=
2033 FRAMEWORKINSTALLLAST=
2034 FRAMEWORKALTINSTALLFIRST=
2035 FRAMEWORKALTINSTALLLAST=
2036 if test "x${prefix}" = "xNONE" ; then
2037 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
2039 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
2043 if test "$UNIVERSAL_ARCHS" = "all"
2045 FRAMEWORKINSTALLLAST=update4wayuniversal
2046 FRAMEWORKALTINSTALLLAST=update4wayuniversal
2063 ## AC_HELP_STRING(--with-dyld,
2064 ## Use (OpenStep|Rhapsody) dynamic linker))
2066 # Set name for machine-dependent library files
2068 { echo "$as_me:$LINENO: checking MACHDEP" >&5
2069 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; }
2070 if test -z "$MACHDEP"
2072 ac_sys_system=`uname
-s`
2073 if test "$ac_sys_system" = "AIX" \
2074 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
2075 ac_sys_release=`uname
-v`
2077 ac_sys_release=`uname
-r`
2079 ac_md_system=`echo $ac_sys_system |
2080 tr -d '/ ' |
tr '[A-Z]' '[a-z]'`
2081 ac_md_release=`echo $ac_sys_release |
2082 tr -d '/ ' |
sed 's/^[A-Z]\.//' |
sed 's/\..*//'`
2083 MACHDEP="$ac_md_system$ac_md_release"
2086 cygwin*) MACHDEP="cygwin";;
2087 darwin*) MACHDEP="darwin";;
2088 atheos*) MACHDEP="atheos";;
2089 irix646) MACHDEP="irix6";;
2090 '') MACHDEP="unknown";;
2094 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
2095 # disable features if it is defined, without any means to access these
2096 # features as extensions. For these systems, we skip the definition of
2097 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
2098 # some feature, make sure there is no alternative way to access this
2099 # feature. Also, when using wildcards, make sure you have verified the
2100 # need for not defining _XOPEN_SOURCE on all systems matching the
2101 # wildcard, and that the wildcard does not include future systems
2102 # (which may remove their limitations).
2103 case $ac_sys_system/$ac_sys_release in
2104 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
2105 # even though select is a POSIX function. Reported by J. Ribbens.
2106 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
2107 OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123])
2108 define_xopen_source=no
2109 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2110 # also defined. This can be overridden by defining _BSD_SOURCE
2111 # As this has a different meaning on Linux, only define it on OpenBSD
2113 cat >>confdefs.h <<\_ACEOF
2114 #define _BSD_SOURCE 1
2118 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
2119 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
2121 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
2122 define_xopen_source=no;;
2123 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
2124 # of union __?sigval. Reported by Stuart Bishop.
2126 define_xopen_source=no;;
2127 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
2128 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
2129 # Reconfirmed for 7.1.4 by Martin v. Loewis.
2130 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
2131 define_xopen_source=no;;
2132 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
2133 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
2135 define_xopen_source=no;;
2136 # On FreeBSD 4, the math functions C89 does not cover are never defined
2137 # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them.
2139 define_xopen_source=no;;
2140 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
2141 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
2142 # identifies itself as Darwin/7.*
2143 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2144 # disables platform specific features beyond repair.
2145 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2146 # has no effect, don't bother defining them
2148 define_xopen_source=no;;
2149 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
2150 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
2151 # or has another value. By not (re)defining it, the defaults come in place.
2153 define_xopen_source=no;;
2155 if test `uname
-r` -eq 1; then
2156 define_xopen_source=no
2159 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
2160 # defining NI_NUMERICHOST.
2162 define_xopen_source=no
2167 if test $define_xopen_source = yes
2169 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
2170 # defined precisely as g++ defines it
2171 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
2173 case $ac_sys_system/$ac_sys_release in
2174 SunOS/5.8|SunOS/5.9|SunOS/5.10)
2176 cat >>confdefs.h <<\_ACEOF
2177 #define _XOPEN_SOURCE 500
2183 cat >>confdefs.h <<\_ACEOF
2184 #define _XOPEN_SOURCE 600
2190 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
2191 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
2192 # several APIs are not declared. Since this is also needed in some
2193 # cases for HP-UX, we define it globally.
2194 # except for Solaris 10, where it must not be defined,
2195 # as it implies XPG4.2
2196 case $ac_sys_system/$ac_sys_release in
2201 cat >>confdefs.h <<\_ACEOF
2202 #define _XOPEN_SOURCE_EXTENDED 1
2209 cat >>confdefs.h <<\_ACEOF
2210 #define _POSIX_C_SOURCE 200112L
2217 # SGI compilers allow the specification of the both the ABI and the
2218 # ISA on the command line. Depending on the values of these switches,
2219 # different and often incompatable code will be generated.
2221 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
2222 # thus supply support for various ABI/ISA combinations. The MACHDEP
2223 # variable is also adjusted.
2226 if test ! -z "$SGI_ABI"
2229 LDFLAGS="$SGI_ABI $LDFLAGS"
2230 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" |
sed 's/ *//g'`
2232 { echo "$as_me:$LINENO: result: $MACHDEP" >&5
2233 echo "${ECHO_T}$MACHDEP" >&6; }
2235 # And add extra plat-mac for darwin
2238 { echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
2239 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6; }
2240 if test -z "$EXTRAPLATDIR"
2244 EXTRAPLATDIR="\$(PLATMACDIRS)"
2245 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
2253 { echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
2254 echo "${ECHO_T}$EXTRAPLATDIR" >&6; }
2256 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
2257 # it may influence the way we can build extensions, so distutils
2261 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
2262 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
2264 { echo "$as_me:$LINENO: checking machine type as reported by uname -m" >&5
2265 echo $ECHO_N "checking machine type as reported by uname -m... $ECHO_C" >&6; }
2266 ac_sys_machine=`uname
-m`
2267 { echo "$as_me:$LINENO: result: $ac_sys_machine" >&5
2268 echo "${ECHO_T}$ac_sys_machine" >&6; }
2270 # checks for alternative programs
2272 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
2273 # for debug/optimization stuff. BASECFLAGS is for flags that are required
2274 # just to get things to compile and link. Users are free to override OPT
2275 # when running configure or make. The build should not break if they do.
2276 # BASECFLAGS should generally not be messed with, however.
2278 # XXX shouldn't some/most/all of this code be merged with the stuff later
2279 # on that fiddles with OPT and BASECFLAGS?
2280 { echo "$as_me:$LINENO: checking for --without-gcc" >&5
2281 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; }
2283 # Check whether --with-gcc was given.
2284 if test "${with_gcc+set}" = set; then
2292 without_gcc=$withval;;
2296 case $ac_sys_system in
2300 case $BE_HOST_CPU in
2304 BASECFLAGS="$BASECFLAGS -export pragma"
2306 LDFLAGS="$LDFLAGS -nodup"
2314 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
2315 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
2316 { (exit 1); exit 1; }; }
2319 AR="\$(srcdir)/Modules/ar_beos"
2326 { echo "$as_me:$LINENO: result: $without_gcc" >&5
2327 echo "${ECHO_T}$without_gcc" >&6; }
2329 # If the user switches compilers, we can't believe the cache
2330 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
2332 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
2333 (it is also a good idea to do 'make clean' before compiling)" >&5
2334 echo "$as_me: error: cached CC is different -- throw away $cache_file
2335 (it is also a good idea to do 'make clean' before compiling)" >&2;}
2336 { (exit 1); exit 1; }; }
2340 ac_cpp='$CPP $CPPFLAGS'
2341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2344 if test -n "$ac_tool_prefix"; then
2345 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2346 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2347 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2349 if test "${ac_cv_prog_CC+set}" = set; then
2350 echo $ECHO_N "(cached) $ECHO_C" >&6
2352 if test -n "$CC"; then
2353 ac_cv_prog_CC="$CC" # Let the user override the test.
2355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2359 test -z "$as_dir" && as_dir=.
2360 for ac_exec_ext in '' $ac_executable_extensions; do
2361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2362 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2373 if test -n "$CC"; then
2374 { echo "$as_me:$LINENO: result: $CC" >&5
2375 echo "${ECHO_T}$CC" >&6; }
2377 { echo "$as_me:$LINENO: result: no" >&5
2378 echo "${ECHO_T}no" >&6; }
2383 if test -z "$ac_cv_prog_CC"; then
2385 # Extract the first word of "gcc", so it can be a program name with args.
2386 set dummy gcc; ac_word=$2
2387 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2389 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2390 echo $ECHO_N "(cached) $ECHO_C" >&6
2392 if test -n "$ac_ct_CC"; then
2393 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2399 test -z "$as_dir" && as_dir=.
2400 for ac_exec_ext in '' $ac_executable_extensions; do
2401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2402 ac_cv_prog_ac_ct_CC="gcc"
2403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2412 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2413 if test -n "$ac_ct_CC"; then
2414 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2415 echo "${ECHO_T}$ac_ct_CC" >&6; }
2417 { echo "$as_me:$LINENO: result: no" >&5
2418 echo "${ECHO_T}no" >&6; }
2421 if test "x$ac_ct_CC" = x; then
2424 case $cross_compiling:$ac_tool_warned in
2426 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2427 whose name does not start with the host triplet. If you think this
2428 configuration is useful to you, please write to autoconf@gnu.org." >&5
2429 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2430 whose name does not start with the host triplet. If you think this
2431 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2432 ac_tool_warned=yes ;;
2440 if test -z "$CC"; then
2441 if test -n "$ac_tool_prefix"; then
2442 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2443 set dummy ${ac_tool_prefix}cc; ac_word=$2
2444 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2446 if test "${ac_cv_prog_CC+set}" = set; then
2447 echo $ECHO_N "(cached) $ECHO_C" >&6
2449 if test -n "$CC"; then
2450 ac_cv_prog_CC="$CC" # Let the user override the test.
2452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2456 test -z "$as_dir" && as_dir=.
2457 for ac_exec_ext in '' $ac_executable_extensions; do
2458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2459 ac_cv_prog_CC="${ac_tool_prefix}cc"
2460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2470 if test -n "$CC"; then
2471 { echo "$as_me:$LINENO: result: $CC" >&5
2472 echo "${ECHO_T}$CC" >&6; }
2474 { echo "$as_me:$LINENO: result: no" >&5
2475 echo "${ECHO_T}no" >&6; }
2481 if test -z "$CC"; then
2482 # Extract the first word of "cc", so it can be a program name with args.
2483 set dummy cc; ac_word=$2
2484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2486 if test "${ac_cv_prog_CC+set}" = set; then
2487 echo $ECHO_N "(cached) $ECHO_C" >&6
2489 if test -n "$CC"; then
2490 ac_cv_prog_CC="$CC" # Let the user override the test.
2493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2497 test -z "$as_dir" && as_dir=.
2498 for ac_exec_ext in '' $ac_executable_extensions; do
2499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2500 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2501 ac_prog_rejected=yes
2505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2512 if test $ac_prog_rejected = yes; then
2513 # We found a bogon in the path, so make sure we never use it.
2514 set dummy $ac_cv_prog_CC
2516 if test $# != 0; then
2517 # We chose a different compiler from the bogus one.
2518 # However, it has the same basename, so the bogon will be chosen
2519 # first if we set CC to just the basename; use the full file name.
2521 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2527 if test -n "$CC"; then
2528 { echo "$as_me:$LINENO: result: $CC" >&5
2529 echo "${ECHO_T}$CC" >&6; }
2531 { echo "$as_me:$LINENO: result: no" >&5
2532 echo "${ECHO_T}no" >&6; }
2537 if test -z "$CC"; then
2538 if test -n "$ac_tool_prefix"; then
2539 for ac_prog in cl.exe
2541 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2542 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2543 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2545 if test "${ac_cv_prog_CC+set}" = set; then
2546 echo $ECHO_N "(cached) $ECHO_C" >&6
2548 if test -n "$CC"; then
2549 ac_cv_prog_CC="$CC" # Let the user override the test.
2551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2555 test -z "$as_dir" && as_dir=.
2556 for ac_exec_ext in '' $ac_executable_extensions; do
2557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2558 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2569 if test -n "$CC"; then
2570 { echo "$as_me:$LINENO: result: $CC" >&5
2571 echo "${ECHO_T}$CC" >&6; }
2573 { echo "$as_me:$LINENO: result: no" >&5
2574 echo "${ECHO_T}no" >&6; }
2578 test -n "$CC" && break
2581 if test -z "$CC"; then
2583 for ac_prog in cl.exe
2585 # Extract the first word of "$ac_prog", so it can be a program name with args.
2586 set dummy $ac_prog; ac_word=$2
2587 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2589 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2590 echo $ECHO_N "(cached) $ECHO_C" >&6
2592 if test -n "$ac_ct_CC"; then
2593 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599 test -z "$as_dir" && as_dir=.
2600 for ac_exec_ext in '' $ac_executable_extensions; do
2601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2602 ac_cv_prog_ac_ct_CC="$ac_prog"
2603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2612 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2613 if test -n "$ac_ct_CC"; then
2614 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2615 echo "${ECHO_T}$ac_ct_CC" >&6; }
2617 { echo "$as_me:$LINENO: result: no" >&5
2618 echo "${ECHO_T}no" >&6; }
2622 test -n "$ac_ct_CC" && break
2625 if test "x$ac_ct_CC" = x; then
2628 case $cross_compiling:$ac_tool_warned in
2630 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2631 whose name does not start with the host triplet. If you think this
2632 configuration is useful to you, please write to autoconf@gnu.org." >&5
2633 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2634 whose name does not start with the host triplet. If you think this
2635 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2636 ac_tool_warned=yes ;;
2645 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2646 See \`config.log
' for more details." >&5
2647 echo "$as_me: error: no acceptable C compiler found in \$PATH
2648 See \`config.log' for more details.
" >&2;}
2649 { (exit 1); exit 1; }; }
2651 # Provide some information about the compiler.
2652 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2653 ac_compiler=`set X $ac_compile; echo $2`
2654 { (ac_try="$ac_compiler --version >&5"
2656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2657 *) ac_try_echo=$ac_try;;
2659 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2660 (eval "$ac_compiler --version >&5") 2>&5
2662 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2663 (exit $ac_status); }
2664 { (ac_try="$ac_compiler -v >&5"
2666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2667 *) ac_try_echo=$ac_try;;
2669 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2670 (eval "$ac_compiler -v >&5") 2>&5
2672 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2673 (exit $ac_status); }
2674 { (ac_try="$ac_compiler -V >&5"
2676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2677 *) ac_try_echo=$ac_try;;
2679 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2680 (eval "$ac_compiler -V >&5") 2>&5
2682 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2683 (exit $ac_status); }
2685 cat >conftest.$ac_ext <<_ACEOF
2688 cat confdefs.h >>conftest.$ac_ext
2689 cat >>conftest.$ac_ext <<_ACEOF
2690 /* end confdefs.h. */
2700 ac_clean_files_save=$ac_clean_files
2701 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2702 # Try to create an executable without -o first, disregard a.out.
2703 # It will help us diagnose broken compilers, and finding out an intuition
2705 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2706 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2707 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2709 # List of possible output files, starting from the most likely.
2710 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2711 # only as a last resort. b.out is created by i960 compilers.
2712 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2714 # The IRIX 6 linker writes into existing files which may not be
2715 # executable, retaining their permissions. Remove them first so a
2716 # subsequent execution test works.
2718 for ac_file in $ac_files
2721 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2722 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2727 if { (ac_try="$ac_link_default"
2729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2730 *) ac_try_echo=$ac_try;;
2732 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2733 (eval "$ac_link_default") 2>&5
2735 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2736 (exit $ac_status); }; then
2737 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2738 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2739 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2740 # so that the user can short-circuit this test for compilers unknown to
2742 for ac_file in $ac_files ''
2744 test -f "$ac_file" || continue
2746 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2749 # We found the default executable, but exeext='' is most
2753 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2755 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2757 # We set ac_cv_exeext here because the later test for it is not
2758 # safe: cross compilers may not add the suffix if given an `-o'
2759 # argument, so we may need to know it at that point already.
2760 # Even if this section looks crufty: it has the advantage of
2767 test "$ac_cv_exeext" = no && ac_cv_exeext=
2773 { echo "$as_me:$LINENO: result
: $ac_file" >&5
2774 echo "${ECHO_T}$ac_file" >&6; }
2775 if test -z "$ac_file"; then
2776 echo "$as_me: failed program was
:" >&5
2777 sed 's/^/| /' conftest.$ac_ext >&5
2779 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2780 See \
`config.log' for more details." >&5
2781 echo "$as_me: error: C compiler cannot create executables
2782 See \`config.log
' for more details." >&2;}
2783 { (exit 77); exit 77; }; }
2786 ac_exeext=$ac_cv_exeext
2788 # Check that the compiler produces executables we can run. If not, either
2789 # the compiler is broken, or we cross compile.
2790 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2791 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2792 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2793 # If not cross compiling, check that we can run a simple program.
2794 if test "$cross_compiling" != yes; then
2795 if { ac_try='.
/$ac_file'
2796 { (case "(($ac_try" in
2797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2798 *) ac_try_echo=$ac_try;;
2800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2801 (eval "$ac_try") 2>&5
2803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804 (exit $ac_status); }; }; then
2807 if test "$cross_compiling" = maybe; then
2810 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2811 If you meant to cross compile, use \`--host'.
2812 See \
`config.log' for more details." >&5
2813 echo "$as_me: error: cannot run C compiled programs.
2814 If you meant to cross compile, use \`--host'.
2815 See \`config.log' for more details.
" >&2;}
2816 { (exit 1); exit 1; }; }
2820 { echo "$as_me:$LINENO: result
: yes" >&5
2821 echo "${ECHO_T}yes" >&6; }
2823 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2824 ac_clean_files=$ac_clean_files_save
2825 # Check that the compiler produces executables we can run. If not, either
2826 # the compiler is broken, or we cross compile.
2827 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2828 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2829 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2830 echo "${ECHO_T}$cross_compiling" >&6; }
2832 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2833 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2834 if { (ac_try="$ac_link"
2836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2837 *) ac_try_echo=$ac_try;;
2839 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2840 (eval "$ac_link") 2>&5
2842 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2843 (exit $ac_status); }; then
2844 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2845 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2846 # work properly (i.e., refer to `conftest.exe'), while it won't with
2848 for ac_file in conftest.exe conftest conftest.*; do
2849 test -f "$ac_file" || continue
2851 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2852 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2858 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2859 See \
`config.log' for more details." >&5
2860 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2861 See \`config.log
' for more details." >&2;}
2862 { (exit 1); exit 1; }; }
2865 rm -f conftest$ac_cv_exeext
2866 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2867 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2869 rm -f conftest.$ac_ext
2870 EXEEXT=$ac_cv_exeext
2872 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2873 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2874 if test "${ac_cv_objext+set}" = set; then
2875 echo $ECHO_N "(cached) $ECHO_C" >&6
2877 cat >conftest.$ac_ext <<_ACEOF
2880 cat confdefs.h >>conftest.$ac_ext
2881 cat >>conftest.$ac_ext <<_ACEOF
2882 /* end confdefs.h. */
2892 rm -f conftest.o conftest.obj
2893 if { (ac_try="$ac_compile"
2895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2896 *) ac_try_echo=$ac_try;;
2898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2899 (eval "$ac_compile") 2>&5
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); }; then
2903 for ac_file in conftest.o conftest.obj conftest.*; do
2904 test -f "$ac_file" || continue;
2906 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2907 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2912 echo "$as_me: failed program was:" >&5
2913 sed 's
/^
/|
/' conftest.$ac_ext >&5
2915 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2916 See \`config.log' for more details.
" >&5
2917 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
2918 See \
`config.log' for more details." >&2;}
2919 { (exit 1); exit 1; }; }
2922 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2924 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2925 echo "${ECHO_T}$ac_cv_objext" >&6; }
2926 OBJEXT=$ac_cv_objext
2928 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2929 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2930 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2931 echo $ECHO_N "(cached) $ECHO_C" >&6
2933 cat >conftest.$ac_ext <<_ACEOF
2936 cat confdefs.h >>conftest.$ac_ext
2937 cat >>conftest.$ac_ext <<_ACEOF
2938 /* end confdefs.h. */
2951 rm -f conftest.$ac_objext
2952 if { (ac_try="$ac_compile"
2954 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2955 *) ac_try_echo
=$ac_try;;
2957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2958 (eval "$ac_compile") 2>conftest.er1
2960 grep -v '^ *+' conftest.er1
>conftest.err
2962 cat conftest.err
>&5
2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964 (exit $ac_status); } && {
2965 test -z "$ac_c_werror_flag" ||
2966 test ! -s conftest.err
2967 } && test -s conftest.
$ac_objext; then
2970 echo "$as_me: failed program was:" >&5
2971 sed 's/^/| /' conftest.
$ac_ext >&5
2976 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2977 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2980 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2981 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2982 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2983 ac_test_CFLAGS
=${CFLAGS+set}
2984 ac_save_CFLAGS
=$CFLAGS
2985 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2986 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2987 if test "${ac_cv_prog_cc_g+set}" = set; then
2988 echo $ECHO_N "(cached) $ECHO_C" >&6
2990 ac_save_c_werror_flag
=$ac_c_werror_flag
2991 ac_c_werror_flag
=yes
2994 cat >conftest.
$ac_ext <<_ACEOF
2997 cat confdefs.h
>>conftest.
$ac_ext
2998 cat >>conftest.
$ac_ext <<_ACEOF
2999 /* end confdefs.h. */
3009 rm -f conftest.
$ac_objext
3010 if { (ac_try
="$ac_compile"
3012 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3013 *) ac_try_echo=$ac_try;;
3015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3016 (eval "$ac_compile") 2>conftest.er1
3018 grep -v '^ *+' conftest.er1 >conftest.err
3020 cat conftest.err >&5
3021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022 (exit $ac_status); } && {
3023 test -z "$ac_c_werror_flag" ||
3024 test ! -s conftest.err
3025 } && test -s conftest.$ac_objext; then
3028 echo "$as_me: failed program was:" >&5
3029 sed 's/^/| /' conftest.$ac_ext >&5
3032 cat >conftest.$ac_ext <<_ACEOF
3035 cat confdefs.h >>conftest.$ac_ext
3036 cat >>conftest.$ac_ext <<_ACEOF
3037 /* end confdefs.h. */
3047 rm -f conftest.$ac_objext
3048 if { (ac_try="$ac_compile"
3050 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3051 *) ac_try_echo
=$ac_try;;
3053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3054 (eval "$ac_compile") 2>conftest.er1
3056 grep -v '^ *+' conftest.er1
>conftest.err
3058 cat conftest.err
>&5
3059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060 (exit $ac_status); } && {
3061 test -z "$ac_c_werror_flag" ||
3062 test ! -s conftest.err
3063 } && test -s conftest.
$ac_objext; then
3066 echo "$as_me: failed program was:" >&5
3067 sed 's/^/| /' conftest.
$ac_ext >&5
3069 ac_c_werror_flag
=$ac_save_c_werror_flag
3071 cat >conftest.
$ac_ext <<_ACEOF
3074 cat confdefs.h
>>conftest.
$ac_ext
3075 cat >>conftest.
$ac_ext <<_ACEOF
3076 /* end confdefs.h. */
3086 rm -f conftest.
$ac_objext
3087 if { (ac_try
="$ac_compile"
3089 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3090 *) ac_try_echo=$ac_try;;
3092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3093 (eval "$ac_compile") 2>conftest.er1
3095 grep -v '^ *+' conftest.er1 >conftest.err
3097 cat conftest.err >&5
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); } && {
3100 test -z "$ac_c_werror_flag" ||
3101 test ! -s conftest.err
3102 } && test -s conftest.$ac_objext; then
3105 echo "$as_me: failed program was:" >&5
3106 sed 's/^/| /' conftest.$ac_ext >&5
3111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3118 ac_c_werror_flag=$ac_save_c_werror_flag
3120 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3121 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3122 if test "$ac_test_CFLAGS" = set; then
3123 CFLAGS=$ac_save_CFLAGS
3124 elif test $ac_cv_prog_cc_g = yes; then
3125 if test "$GCC" = yes; then
3131 if test "$GCC" = yes; then
3137 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3138 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3139 if test "${ac_cv_prog_cc_c89+set}" = set; then
3140 echo $ECHO_N "(cached) $ECHO_C" >&6
3142 ac_cv_prog_cc_c89=no
3144 cat >conftest.$ac_ext <<_ACEOF
3147 cat confdefs.h >>conftest.$ac_ext
3148 cat >>conftest.$ac_ext <<_ACEOF
3149 /* end confdefs.h. */
3152 #include <sys/types.h>
3153 #include <sys/stat.h>
3154 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3155 struct buf { int x; };
3156 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3157 static char *e (p, i)
3163 static char *f (char * (*g) (char **, int), char **p, ...)
3168 s = g (p, va_arg (v,int));
3173 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3174 function prototypes and stuff, but not '\xHH' hex character constants.
3175 These don't provoke an error unfortunately, instead are silently treated
3176 as 'x'. The following induces an error, until -std is added to get
3177 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3178 array size at least. It's necessary to write '\x00'==0 to get something
3179 that's true only with -std. */
3180 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3182 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3183 inside strings and character constants. */
3185 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3187 int test (int i, double x);
3188 struct s1 {int (*f) (int a);};
3189 struct s2 {int (*f) (double a);};
3190 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3196 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3201 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3202 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3204 CC="$ac_save_CC $ac_arg"
3205 rm -f conftest.$ac_objext
3206 if { (ac_try="$ac_compile"
3208 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3209 *) ac_try_echo
=$ac_try;;
3211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3212 (eval "$ac_compile") 2>conftest.er1
3214 grep -v '^ *+' conftest.er1
>conftest.err
3216 cat conftest.err
>&5
3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 (exit $ac_status); } && {
3219 test -z "$ac_c_werror_flag" ||
3220 test ! -s conftest.err
3221 } && test -s conftest.
$ac_objext; then
3222 ac_cv_prog_cc_c89
=$ac_arg
3224 echo "$as_me: failed program was:" >&5
3225 sed 's/^/| /' conftest.
$ac_ext >&5
3230 rm -f core conftest.err conftest.
$ac_objext
3231 test "x$ac_cv_prog_cc_c89" != "xno" && break
3233 rm -f conftest.
$ac_ext
3238 case "x$ac_cv_prog_cc_c89" in
3240 { echo "$as_me:$LINENO: result: none needed" >&5
3241 echo "${ECHO_T}none needed" >&6; } ;;
3243 { echo "$as_me:$LINENO: result: unsupported" >&5
3244 echo "${ECHO_T}unsupported" >&6; } ;;
3246 CC
="$CC $ac_cv_prog_cc_c89"
3247 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3248 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3253 ac_cpp
='$CPP $CPPFLAGS'
3254 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3255 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3256 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3261 { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
3262 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; }
3264 # Check whether --with-cxx_main was given.
3265 if test "${with_cxx_main+set}" = set; then
3266 withval
=$with_cxx_main;
3269 no
) with_cxx_main
=no
3271 yes) with_cxx_main
=yes
3273 *) with_cxx_main
=yes
3287 { echo "$as_me:$LINENO: result: $with_cxx_main" >&5
3288 echo "${ECHO_T}$with_cxx_main" >&6; }
3294 gcc
) # Extract the first word of "g++", so it can be a program name with args.
3295 set dummy g
++; ac_word
=$2
3296 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3298 if test "${ac_cv_path_CXX+set}" = set; then
3299 echo $ECHO_N "(cached) $ECHO_C" >&6
3303 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
3306 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3307 for as_dir
in notfound
3310 test -z "$as_dir" && as_dir
=.
3311 for ac_exec_ext
in '' $ac_executable_extensions; do
3312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3313 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
3314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3321 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="g++"
3326 if test -n "$CXX"; then
3327 { echo "$as_me:$LINENO: result: $CXX" >&5
3328 echo "${ECHO_T}$CXX" >&6; }
3330 { echo "$as_me:$LINENO: result: no" >&5
3331 echo "${ECHO_T}no" >&6; }
3335 cc
) # Extract the first word of "c++", so it can be a program name with args.
3336 set dummy c
++; ac_word
=$2
3337 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3339 if test "${ac_cv_path_CXX+set}" = set; then
3340 echo $ECHO_N "(cached) $ECHO_C" >&6
3344 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
3347 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3348 for as_dir
in notfound
3351 test -z "$as_dir" && as_dir
=.
3352 for ac_exec_ext
in '' $ac_executable_extensions; do
3353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3354 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
3355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3362 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="c++"
3367 if test -n "$CXX"; then
3368 { echo "$as_me:$LINENO: result: $CXX" >&5
3369 echo "${ECHO_T}$CXX" >&6; }
3371 { echo "$as_me:$LINENO: result: no" >&5
3372 echo "${ECHO_T}no" >&6; }
3377 if test "$CXX" = "notfound"
3384 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
3386 # Extract the first word of "$ac_prog", so it can be a program name with args.
3387 set dummy
$ac_prog; ac_word
=$2
3388 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3390 if test "${ac_cv_prog_CXX+set}" = set; then
3391 echo $ECHO_N "(cached) $ECHO_C" >&6
3393 if test -n "$CXX"; then
3394 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
3396 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3400 test -z "$as_dir" && as_dir
=.
3401 for ac_exec_ext
in '' $ac_executable_extensions; do
3402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3403 ac_cv_prog_CXX
="$ac_prog"
3404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3414 if test -n "$CXX"; then
3415 { echo "$as_me:$LINENO: result: $CXX" >&5
3416 echo "${ECHO_T}$CXX" >&6; }
3418 { echo "$as_me:$LINENO: result: no" >&5
3419 echo "${ECHO_T}no" >&6; }
3423 test -n "$CXX" && break
3425 test -n "$CXX" || CXX
="notfound"
3427 if test "$CXX" = "notfound"
3432 if test "$preset_cxx" != "$CXX"
3434 { echo "$as_me:$LINENO: WARNING:
3436 By default, distutils will build C++ extension modules with \"$CXX\".
3437 If this is not intended, then set CXX on the configure command line.
3439 echo "$as_me: WARNING:
3441 By default, distutils will build C++ extension modules with \"$CXX\".
3442 If this is not intended, then set CXX on the configure command line.
3447 # checks for UNIX variants that set C preprocessor variables
3450 ac_cpp
='$CPP $CPPFLAGS'
3451 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3452 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3453 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3454 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3455 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3456 # On Suns, sometimes $CPP names a directory.
3457 if test -n "$CPP" && test -d "$CPP"; then
3460 if test -z "$CPP"; then
3461 if test "${ac_cv_prog_CPP+set}" = set; then
3462 echo $ECHO_N "(cached) $ECHO_C" >&6
3464 # Double quotes because CPP needs to be expanded
3465 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3468 for ac_c_preproc_warn_flag
in '' yes
3470 # Use a header file that comes with gcc, so configuring glibc
3471 # with a fresh cross-compiler works.
3472 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3473 # <limits.h> exists even on freestanding compilers.
3474 # On the NeXT, cc -E runs the code through the compiler's parser,
3475 # not just through cpp. "Syntax error" is here to catch this case.
3476 cat >conftest.
$ac_ext <<_ACEOF
3479 cat confdefs.h
>>conftest.
$ac_ext
3480 cat >>conftest.
$ac_ext <<_ACEOF
3481 /* end confdefs.h. */
3483 # include <limits.h>
3485 # include <assert.h>
3489 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3491 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3492 *) ac_try_echo=$ac_try;;
3494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3495 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3497 grep -v '^ *+' conftest.er1 >conftest.err
3499 cat conftest.err >&5
3500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501 (exit $ac_status); } >/dev/null && {
3502 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3503 test ! -s conftest.err
3507 echo "$as_me: failed program was:" >&5
3508 sed 's/^/| /' conftest.$ac_ext >&5
3510 # Broken: fails on valid input.
3514 rm -f conftest.err conftest.$ac_ext
3516 # OK, works on sane cases. Now check whether nonexistent headers
3517 # can be detected and how.
3518 cat >conftest.$ac_ext <<_ACEOF
3521 cat confdefs.h >>conftest.$ac_ext
3522 cat >>conftest.$ac_ext <<_ACEOF
3523 /* end confdefs.h. */
3524 #include <ac_nonexistent.h>
3526 if { (ac_try="$ac_cpp conftest.$ac_ext"
3528 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3529 *) ac_try_echo
=$ac_try;;
3531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3532 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3534 grep -v '^ *+' conftest.er1
>conftest.err
3536 cat conftest.err
>&5
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); } >/dev
/null
&& {
3539 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3540 test ! -s conftest.err
3542 # Broken: success on invalid input.
3545 echo "$as_me: failed program was:" >&5
3546 sed 's/^/| /' conftest.
$ac_ext >&5
3548 # Passes both tests.
3553 rm -f conftest.err conftest.
$ac_ext
3556 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3557 rm -f conftest.err conftest.
$ac_ext
3558 if $ac_preproc_ok; then
3570 { echo "$as_me:$LINENO: result: $CPP" >&5
3571 echo "${ECHO_T}$CPP" >&6; }
3573 for ac_c_preproc_warn_flag
in '' yes
3575 # Use a header file that comes with gcc, so configuring glibc
3576 # with a fresh cross-compiler works.
3577 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3578 # <limits.h> exists even on freestanding compilers.
3579 # On the NeXT, cc -E runs the code through the compiler's parser,
3580 # not just through cpp. "Syntax error" is here to catch this case.
3581 cat >conftest.
$ac_ext <<_ACEOF
3584 cat confdefs.h
>>conftest.
$ac_ext
3585 cat >>conftest.
$ac_ext <<_ACEOF
3586 /* end confdefs.h. */
3588 # include <limits.h>
3590 # include <assert.h>
3594 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3596 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3597 *) ac_try_echo=$ac_try;;
3599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3600 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3602 grep -v '^ *+' conftest.er1 >conftest.err
3604 cat conftest.err >&5
3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); } >/dev/null && {
3607 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3608 test ! -s conftest.err
3612 echo "$as_me: failed program was:" >&5
3613 sed 's/^/| /' conftest.$ac_ext >&5
3615 # Broken: fails on valid input.
3619 rm -f conftest.err conftest.$ac_ext
3621 # OK, works on sane cases. Now check whether nonexistent headers
3622 # can be detected and how.
3623 cat >conftest.$ac_ext <<_ACEOF
3626 cat confdefs.h >>conftest.$ac_ext
3627 cat >>conftest.$ac_ext <<_ACEOF
3628 /* end confdefs.h. */
3629 #include <ac_nonexistent.h>
3631 if { (ac_try="$ac_cpp conftest.$ac_ext"
3633 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3634 *) ac_try_echo
=$ac_try;;
3636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3637 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3639 grep -v '^ *+' conftest.er1
>conftest.err
3641 cat conftest.err
>&5
3642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643 (exit $ac_status); } >/dev
/null
&& {
3644 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3645 test ! -s conftest.err
3647 # Broken: success on invalid input.
3650 echo "$as_me: failed program was:" >&5
3651 sed 's/^/| /' conftest.
$ac_ext >&5
3653 # Passes both tests.
3658 rm -f conftest.err conftest.
$ac_ext
3661 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3662 rm -f conftest.err conftest.
$ac_ext
3663 if $ac_preproc_ok; then
3666 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3667 See \`config.log' for more details." >&5
3668 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3669 See \`config.log' for more details." >&2;}
3670 { (exit 1); exit 1; }; }
3674 ac_cpp
='$CPP $CPPFLAGS'
3675 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3676 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3677 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3680 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3681 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3682 if test "${ac_cv_path_GREP+set}" = set; then
3683 echo $ECHO_N "(cached) $ECHO_C" >&6
3685 # Extract the first word of "grep ggrep" to use in msg output
3686 if test -z "$GREP"; then
3687 set dummy
grep ggrep
; ac_prog_name
=$2
3688 if test "${ac_cv_path_GREP+set}" = set; then
3689 echo $ECHO_N "(cached) $ECHO_C" >&6
3691 ac_path_GREP_found
=false
3692 # Loop through the user's path and test for each of PROGNAME-LIST
3693 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3694 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3697 test -z "$as_dir" && as_dir
=.
3698 for ac_prog
in grep ggrep
; do
3699 for ac_exec_ext
in '' $ac_executable_extensions; do
3700 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3701 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3702 # Check for GNU ac_path_GREP and select it if it is found.
3703 # Check for GNU $ac_path_GREP
3704 case `"$ac_path_GREP" --version 2>&1` in
3706 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3709 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3712 cat "conftest.in" "conftest.in" >"conftest.tmp"
3713 mv "conftest.tmp" "conftest.in"
3714 cp "conftest.in" "conftest.nl"
3715 echo 'GREP' >> "conftest.nl"
3716 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3717 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3718 ac_count
=`expr $ac_count + 1`
3719 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3720 # Best one so far, save it but keep looking for a better one
3721 ac_cv_path_GREP
="$ac_path_GREP"
3722 ac_path_GREP_max
=$ac_count
3724 # 10*(2^10) chars as input seems more than enough
3725 test $ac_count -gt 10 && break
3727 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3731 $ac_path_GREP_found && break 3
3741 GREP
="$ac_cv_path_GREP"
3742 if test -z "$GREP"; then
3743 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3744 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3745 { (exit 1); exit 1; }; }
3749 ac_cv_path_GREP
=$GREP
3754 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3755 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3756 GREP
="$ac_cv_path_GREP"
3759 { echo "$as_me:$LINENO: checking for egrep" >&5
3760 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3761 if test "${ac_cv_path_EGREP+set}" = set; then
3762 echo $ECHO_N "(cached) $ECHO_C" >&6
3764 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3765 then ac_cv_path_EGREP
="$GREP -E"
3767 # Extract the first word of "egrep" to use in msg output
3768 if test -z "$EGREP"; then
3769 set dummy
egrep; ac_prog_name
=$2
3770 if test "${ac_cv_path_EGREP+set}" = set; then
3771 echo $ECHO_N "(cached) $ECHO_C" >&6
3773 ac_path_EGREP_found
=false
3774 # Loop through the user's path and test for each of PROGNAME-LIST
3775 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3776 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3779 test -z "$as_dir" && as_dir
=.
3780 for ac_prog
in egrep; do
3781 for ac_exec_ext
in '' $ac_executable_extensions; do
3782 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3783 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3784 # Check for GNU ac_path_EGREP and select it if it is found.
3785 # Check for GNU $ac_path_EGREP
3786 case `"$ac_path_EGREP" --version 2>&1` in
3788 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3791 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3794 cat "conftest.in" "conftest.in" >"conftest.tmp"
3795 mv "conftest.tmp" "conftest.in"
3796 cp "conftest.in" "conftest.nl"
3797 echo 'EGREP' >> "conftest.nl"
3798 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3799 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3800 ac_count
=`expr $ac_count + 1`
3801 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3802 # Best one so far, save it but keep looking for a better one
3803 ac_cv_path_EGREP
="$ac_path_EGREP"
3804 ac_path_EGREP_max
=$ac_count
3806 # 10*(2^10) chars as input seems more than enough
3807 test $ac_count -gt 10 && break
3809 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3813 $ac_path_EGREP_found && break 3
3823 EGREP
="$ac_cv_path_EGREP"
3824 if test -z "$EGREP"; then
3825 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3826 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3827 { (exit 1); exit 1; }; }
3831 ac_cv_path_EGREP
=$EGREP
3837 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3838 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3839 EGREP
="$ac_cv_path_EGREP"
3843 { echo "$as_me:$LINENO: checking for AIX" >&5
3844 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3845 cat >conftest.
$ac_ext <<_ACEOF
3848 cat confdefs.h
>>conftest.
$ac_ext
3849 cat >>conftest.
$ac_ext <<_ACEOF
3850 /* end confdefs.h. */
3856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3857 $EGREP "yes" >/dev
/null
2>&1; then
3858 { echo "$as_me:$LINENO: result: yes" >&5
3859 echo "${ECHO_T}yes" >&6; }
3860 cat >>confdefs.h
<<\_ACEOF
3861 #define _ALL_SOURCE 1
3865 { echo "$as_me:$LINENO: result: no" >&5
3866 echo "${ECHO_T}no" >&6; }
3872 # Check for unsupported systems
3873 case $ac_sys_system/$ac_sys_release in
3875 echo This system \
($ac_sys_system/$ac_sys_release\
) is no longer supported.
3876 echo See README
for details.
3881 { echo "$as_me:$LINENO: checking for --with-suffix" >&5
3882 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; }
3884 # Check whether --with-suffix was given.
3885 if test "${with_suffix+set}" = set; then
3886 withval
=$with_suffix;
3890 *) EXEEXT
=$withval;;
3894 { echo "$as_me:$LINENO: result: $EXEEXT" >&5
3895 echo "${ECHO_T}$EXEEXT" >&6; }
3897 # Test whether we're running on a non-case-sensitive system, in which
3898 # case we give a warning if no ext is given
3900 { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3901 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; }
3902 if test ! -d CaseSensitiveTestDir
; then
3903 mkdir CaseSensitiveTestDir
3906 if test -d casesensitivetestdir
3908 { echo "$as_me:$LINENO: result: yes" >&5
3909 echo "${ECHO_T}yes" >&6; }
3912 { echo "$as_me:$LINENO: result: no" >&5
3913 echo "${ECHO_T}no" >&6; }
3916 rmdir CaseSensitiveTestDir
3921 gcc
) CC
="$CC -D_HAVE_BSDI";;
3925 case $ac_sys_system in
3928 cc|
*/cc
) CC
="$CC -Ae";;
3931 # Some functions have a prototype only with that define, e.g. confstr
3933 cat >>confdefs.h
<<\_ACEOF
3934 #define __EXTENSIONS__ 1
3942 { echo "$as_me:$LINENO: checking LIBRARY" >&5
3943 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; }
3944 if test -z "$LIBRARY"
3946 LIBRARY
='libpython$(VERSION).a'
3948 { echo "$as_me:$LINENO: result: $LIBRARY" >&5
3949 echo "${ECHO_T}$LIBRARY" >&6; }
3951 # LDLIBRARY is the name of the library to link against (as opposed to the
3952 # name of the library into which to insert object files). BLDLIBRARY is also
3953 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3954 # is blank as the main program is not linked directly against LDLIBRARY.
3955 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3956 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3957 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3958 # DLLLIBRARY is the shared (i.e., DLL) library.
3960 # RUNSHARED is used to run shared python without installed libraries
3962 # INSTSONAME is the name of the shared library that will be use to install
3963 # on the system - some systems like version suffix, others don't
3970 LDLIBRARY
="$LIBRARY"
3971 BLDLIBRARY
='$(LDLIBRARY)'
3972 INSTSONAME
='$(LDLIBRARY)'
3977 # LINKCC is the command that links the python executable -- default is $(CC).
3978 # If CXX is set, and if it is needed to link a main function that was
3979 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3980 # python might then depend on the C++ runtime
3981 # This is altered for AIX in order to build the export list before
3984 { echo "$as_me:$LINENO: checking LINKCC" >&5
3985 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; }
3986 if test -z "$LINKCC"
3988 LINKCC
='$(PURIFY) $(MAINCC)'
3989 case $ac_sys_system in
3992 if test $ac_sys_release -ge 5 -o \
3993 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3996 LINKCC
="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3998 # qcc must be used because the other compilers do not
4003 { echo "$as_me:$LINENO: result: $LINKCC" >&5
4004 echo "${ECHO_T}$LINKCC" >&6; }
4006 # GNULD is set to "yes" if the GNU linker is used. If this goes wrong
4007 # make sure we default having it set to "no": this is used by
4008 # distutils.unixccompiler to know if it should add --enable-new-dtags
4009 # to linker command lines, and failing to detect GNU ld simply results
4010 # in the same bahaviour as before.
4012 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4013 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4015 if test "$GCC" = yes; then
4016 ac_prog
=`$CC -print-prog-name=ld`
4018 case `"$ac_prog" -V 2>&1 < /dev/null` in
4024 { echo "$as_me:$LINENO: result: $GNULD" >&5
4025 echo "${ECHO_T}$GNULD" >&6; }
4027 { echo "$as_me:$LINENO: checking for --enable-shared" >&5
4028 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; }
4029 # Check whether --enable-shared was given.
4030 if test "${enable_shared+set}" = set; then
4031 enableval
=$enable_shared;
4035 if test -z "$enable_shared"
4037 case $ac_sys_system in
4039 enable_shared
="yes";;
4041 enable_shared
="no";;
4044 { echo "$as_me:$LINENO: result: $enable_shared" >&5
4045 echo "${ECHO_T}$enable_shared" >&6; }
4047 { echo "$as_me:$LINENO: checking for --enable-profiling" >&5
4048 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; }
4049 # Check whether --enable-profiling was given.
4050 if test "${enable_profiling+set}" = set; then
4051 enableval
=$enable_profiling; ac_save_cc
="$CC"
4053 if test "$cross_compiling" = yes; then
4054 ac_enable_profiling
="no"
4056 cat >conftest.
$ac_ext <<_ACEOF
4059 cat confdefs.h
>>conftest.
$ac_ext
4060 cat >>conftest.
$ac_ext <<_ACEOF
4061 /* end confdefs.h. */
4062 int main() { return 0; }
4064 rm -f conftest
$ac_exeext
4065 if { (ac_try
="$ac_link"
4067 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4068 *) ac_try_echo=$ac_try;;
4070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4071 (eval "$ac_link") 2>&5
4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4075 { (case "(($ac_try" in
4076 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4077 *) ac_try_echo
=$ac_try;;
4079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4080 (eval "$ac_try") 2>&5
4082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083 (exit $ac_status); }; }; then
4084 ac_enable_profiling
="yes"
4086 echo "$as_me: program exited with status $ac_status" >&5
4087 echo "$as_me: failed program was:" >&5
4088 sed 's/^/| /' conftest.
$ac_ext >&5
4091 ac_enable_profiling
="no"
4093 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4100 { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
4101 echo "${ECHO_T}$ac_enable_profiling" >&6; }
4103 case "$ac_enable_profiling" in
4105 BASECFLAGS
="-pg $BASECFLAGS"
4106 LDFLAGS
="-pg $LDFLAGS"
4110 { echo "$as_me:$LINENO: checking LDLIBRARY" >&5
4111 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; }
4113 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
4114 # library that we build, but we do not want to link against it (we
4115 # will find it with a -framework option). For this reason there is an
4116 # extra variable BLDLIBRARY against which Python and the extension
4117 # modules are linked, BLDLIBRARY. This is normally the same as
4118 # LDLIBRARY, but empty for MacOSX framework builds.
4119 if test "$enable_framework"
4121 LDLIBRARY
='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
4122 RUNSHARED
=DYLD_FRAMEWORK_PATH
="`pwd`:$DYLD_FRAMEWORK_PATH"
4125 BLDLIBRARY
='$(LDLIBRARY)'
4128 # Other platforms follow
4129 if test $enable_shared = "yes"; then
4131 cat >>confdefs.h
<<\_ACEOF
4132 #define Py_ENABLE_SHARED 1
4135 case $ac_sys_system in
4137 LDLIBRARY
='libpython$(VERSION).so'
4140 LDLIBRARY
='libpython$(VERSION).dll.a'
4141 DLLLIBRARY
='libpython$(VERSION).dll'
4144 LDLIBRARY
='libpython$(VERSION).so'
4145 BLDLIBRARY
='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
4146 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4147 INSTSONAME
="$LDLIBRARY".
$SOVERSION
4149 Linux
*|GNU
*|NetBSD
*|FreeBSD
*|DragonFly
*)
4150 LDLIBRARY
='libpython$(VERSION).so'
4151 BLDLIBRARY
='-L. -lpython$(VERSION)'
4152 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4153 case $ac_sys_system in
4155 SOVERSION
=`echo $SOVERSION|cut -d "." -f 1`
4158 INSTSONAME
="$LDLIBRARY".
$SOVERSION
4163 LDLIBRARY
='libpython$(VERSION).so'
4166 LDLIBRARY
='libpython$(VERSION).sl'
4169 BLDLIBRARY
='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
4170 RUNSHARED
=SHLIB_PATH
=`pwd`:${SHLIB_PATH}
4173 LDLIBRARY
='libpython$(VERSION).so'
4174 BLDLIBRARY
='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
4175 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4178 LDLIBRARY
='libpython$(VERSION).so'
4179 BLDLIBRARY
='-L. -lpython$(VERSION)'
4180 RUNSHARED
=DLL_PATH
=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
4183 LDLIBRARY
='libpython$(VERSION).dylib'
4184 BLDLIBRARY
='-L. -lpython$(VERSION)'
4185 RUNSHARED
='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}'
4189 else # shared is disabled
4190 case $ac_sys_system in
4192 BLDLIBRARY
='$(LIBRARY)'
4193 LDLIBRARY
='libpython$(VERSION).dll.a'
4198 { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
4199 echo "${ECHO_T}$LDLIBRARY" >&6; }
4201 if test -n "$ac_tool_prefix"; then
4202 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4203 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4206 if test "${ac_cv_prog_RANLIB+set}" = set; then
4207 echo $ECHO_N "(cached) $ECHO_C" >&6
4209 if test -n "$RANLIB"; then
4210 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4212 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4216 test -z "$as_dir" && as_dir
=.
4217 for ac_exec_ext
in '' $ac_executable_extensions; do
4218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4219 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4229 RANLIB
=$ac_cv_prog_RANLIB
4230 if test -n "$RANLIB"; then
4231 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4232 echo "${ECHO_T}$RANLIB" >&6; }
4234 { echo "$as_me:$LINENO: result: no" >&5
4235 echo "${ECHO_T}no" >&6; }
4240 if test -z "$ac_cv_prog_RANLIB"; then
4241 ac_ct_RANLIB
=$RANLIB
4242 # Extract the first word of "ranlib", so it can be a program name with args.
4243 set dummy ranlib
; ac_word
=$2
4244 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4246 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4247 echo $ECHO_N "(cached) $ECHO_C" >&6
4249 if test -n "$ac_ct_RANLIB"; then
4250 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4252 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4256 test -z "$as_dir" && as_dir
=.
4257 for ac_exec_ext
in '' $ac_executable_extensions; do
4258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4259 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4269 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4270 if test -n "$ac_ct_RANLIB"; then
4271 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4272 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4274 { echo "$as_me:$LINENO: result: no" >&5
4275 echo "${ECHO_T}no" >&6; }
4278 if test "x$ac_ct_RANLIB" = x
; then
4281 case $cross_compiling:$ac_tool_warned in
4283 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4284 whose name does not start with the host triplet. If you think this
4285 configuration is useful to you, please write to autoconf@gnu.org." >&5
4286 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4287 whose name does not start with the host triplet. If you think this
4288 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4289 ac_tool_warned
=yes ;;
4291 RANLIB
=$ac_ct_RANLIB
4294 RANLIB
="$ac_cv_prog_RANLIB"
4298 for ac_prog
in ar aal
4300 # Extract the first word of "$ac_prog", so it can be a program name with args.
4301 set dummy
$ac_prog; ac_word
=$2
4302 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4304 if test "${ac_cv_prog_AR+set}" = set; then
4305 echo $ECHO_N "(cached) $ECHO_C" >&6
4307 if test -n "$AR"; then
4308 ac_cv_prog_AR
="$AR" # Let the user override the test.
4310 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4314 test -z "$as_dir" && as_dir
=.
4315 for ac_exec_ext
in '' $ac_executable_extensions; do
4316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4317 ac_cv_prog_AR
="$ac_prog"
4318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4328 if test -n "$AR"; then
4329 { echo "$as_me:$LINENO: result: $AR" >&5
4330 echo "${ECHO_T}$AR" >&6; }
4332 { echo "$as_me:$LINENO: result: no" >&5
4333 echo "${ECHO_T}no" >&6; }
4337 test -n "$AR" && break
4339 test -n "$AR" || AR
="ar"
4342 # tweak ARFLAGS only if the user didn't set it on the command line
4344 if test -z "$ARFLAGS"
4350 # Extract the first word of "svnversion", so it can be a program name with args.
4351 set dummy svnversion
; ac_word
=$2
4352 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4354 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
4355 echo $ECHO_N "(cached) $ECHO_C" >&6
4357 if test -n "$SVNVERSION"; then
4358 ac_cv_prog_SVNVERSION
="$SVNVERSION" # Let the user override the test.
4360 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4364 test -z "$as_dir" && as_dir
=.
4365 for ac_exec_ext
in '' $ac_executable_extensions; do
4366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4367 ac_cv_prog_SVNVERSION
="found"
4368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4375 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION
="not-found"
4378 SVNVERSION
=$ac_cv_prog_SVNVERSION
4379 if test -n "$SVNVERSION"; then
4380 { echo "$as_me:$LINENO: result: $SVNVERSION" >&5
4381 echo "${ECHO_T}$SVNVERSION" >&6; }
4383 { echo "$as_me:$LINENO: result: no" >&5
4384 echo "${ECHO_T}no" >&6; }
4388 if test $SVNVERSION = found
4390 SVNVERSION
="svnversion \$(srcdir)"
4392 SVNVERSION
="echo Unversioned directory"
4397 # install -d does not work on BSDI or HP-UX
4398 if test -z "$INSTALL"
4400 INSTALL
="${srcdir}/install-sh -c"
4404 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4405 if test -f "$ac_dir/install-sh"; then
4407 ac_install_sh
="$ac_aux_dir/install-sh -c"
4409 elif test -f "$ac_dir/install.sh"; then
4411 ac_install_sh
="$ac_aux_dir/install.sh -c"
4413 elif test -f "$ac_dir/shtool"; then
4415 ac_install_sh
="$ac_aux_dir/shtool install -c"
4419 if test -z "$ac_aux_dir"; then
4420 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4421 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4422 { (exit 1); exit 1; }; }
4425 # These three variables are undocumented and unsupported,
4426 # and are intended to be withdrawn in a future Autoconf release.
4427 # They can cause serious problems if a builder's source tree is in a directory
4428 # whose full name contains unusual characters.
4429 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4430 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4431 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4434 # Find a good install program. We prefer a C program (faster),
4435 # so one script is as good as another. But avoid the broken or
4436 # incompatible versions:
4437 # SysV /etc/install, /usr/sbin/install
4438 # SunOS /usr/etc/install
4439 # IRIX /sbin/install
4441 # AmigaOS /C/install, which installs bootblocks on floppy discs
4442 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4443 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4444 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4445 # OS/2's system install, which has a completely different semantic
4446 # ./install, which can be erroneously created by make from ./install.sh.
4447 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4448 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4449 if test -z "$INSTALL"; then
4450 if test "${ac_cv_path_install+set}" = set; then
4451 echo $ECHO_N "(cached) $ECHO_C" >&6
4453 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4457 test -z "$as_dir" && as_dir
=.
4458 # Account for people who put trailing slashes in PATH elements.
4460 .
/ | .
// |
/cC
/* | \
4461 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4462 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4465 # OSF1 and SCO ODT 3.0 have their own names for install.
4466 # Don't use installbsd from OSF since it installs stuff as root
4468 for ac_prog
in ginstall scoinst
install; do
4469 for ac_exec_ext
in '' $ac_executable_extensions; do
4470 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4471 if test $ac_prog = install &&
4472 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4473 # AIX install. It has an incompatible calling convention.
4475 elif test $ac_prog = install &&
4476 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4477 # program-specific install script used by HP pwplus--don't use.
4480 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4493 if test "${ac_cv_path_install+set}" = set; then
4494 INSTALL
=$ac_cv_path_install
4496 # As a last resort, use the slow shell script. Don't cache a
4497 # value for INSTALL within a source directory, because that will
4498 # break other packages using the cache if that directory is
4499 # removed, or if the value is a relative name.
4500 INSTALL
=$ac_install_sh
4503 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4504 echo "${ECHO_T}$INSTALL" >&6; }
4506 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4507 # It thinks the first close brace ends the variable substitution.
4508 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4510 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4512 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4515 # Not every filesystem supports hard links
4517 if test -z "$LN" ; then
4518 case $ac_sys_system in
4520 CYGWIN
*) LN
="ln -s";;
4521 atheos
*) LN
="ln -s";;
4526 # Check for --with-pydebug
4527 { echo "$as_me:$LINENO: checking for --with-pydebug" >&5
4528 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; }
4530 # Check whether --with-pydebug was given.
4531 if test "${with_pydebug+set}" = set; then
4532 withval
=$with_pydebug;
4533 if test "$withval" != no
4536 cat >>confdefs.h
<<\_ACEOF
4540 { echo "$as_me:$LINENO: result: yes" >&5
4541 echo "${ECHO_T}yes" >&6; };
4543 else { echo "$as_me:$LINENO: result: no" >&5
4544 echo "${ECHO_T}no" >&6; }; Py_DEBUG
='false'
4547 { echo "$as_me:$LINENO: result: no" >&5
4548 echo "${ECHO_T}no" >&6; }
4552 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
4553 # merged with this chunk of code?
4555 # Optimizer/debugger flags
4556 # ------------------------
4557 # (The following bit of code is complicated enough - please keep things
4558 # indented properly. Just pretend you're editing Python code. ;-)
4560 # There are two parallel sets of case statements below, one that checks to
4561 # see if OPT was set and one that does BASECFLAGS setting based upon
4562 # compiler and platform. BASECFLAGS tweaks need to be made even if the
4565 # tweak OPT based on compiler and platform, only if the user didn't set
4566 # it on the command line
4572 if test "$CC" != 'g++' ; then
4573 STRICT_PROTO
="-Wstrict-prototypes"
4575 # For gcc 4.x we need to use -fwrapv so lets check if its supported
4576 if "$CC" -v --help 2>/dev
/null |
grep -- -fwrapv > /dev
/null
; then
4579 case $ac_cv_prog_cc_g in
4581 if test "$Py_DEBUG" = 'true' ; then
4582 # Optimization messes up debuggers, so turn it off for
4584 OPT
="-g -Wall $STRICT_PROTO"
4586 OPT
="-g $WRAP -O3 -Wall $STRICT_PROTO"
4590 OPT
="-O3 -Wall $STRICT_PROTO"
4593 case $ac_sys_system in
4594 SCO_SV
*) OPT
="$OPT -m486 -DSCO5"
4607 # The -arch flags for universal builds on OSX
4608 UNIVERSAL_ARCH_FLAGS
=
4611 # tweak BASECFLAGS based on compiler and platform
4614 # Python violates C99 rules, by casting between incompatible
4615 # pointer types. GCC may generate bad code as a result of that,
4616 # so use -fno-strict-aliasing if supported.
4617 { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
4618 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; }
4620 CC
="$CC -fno-strict-aliasing"
4621 if test "${ac_cv_no_strict_aliasing_ok+set}" = set; then
4622 echo $ECHO_N "(cached) $ECHO_C" >&6
4624 if test "$cross_compiling" = yes; then
4625 ac_cv_no_strict_aliasing_ok
=no
4627 cat >conftest.
$ac_ext <<_ACEOF
4630 cat confdefs.h
>>conftest.
$ac_ext
4631 cat >>conftest.
$ac_ext <<_ACEOF
4632 /* end confdefs.h. */
4633 int main() { return 0; }
4635 rm -f conftest
$ac_exeext
4636 if { (ac_try
="$ac_link"
4638 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4639 *) ac_try_echo=$ac_try;;
4641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4642 (eval "$ac_link") 2>&5
4644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4646 { (case "(($ac_try" in
4647 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4648 *) ac_try_echo
=$ac_try;;
4650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4651 (eval "$ac_try") 2>&5
4653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654 (exit $ac_status); }; }; then
4655 ac_cv_no_strict_aliasing_ok
=yes
4657 echo "$as_me: program exited with status $ac_status" >&5
4658 echo "$as_me: failed program was:" >&5
4659 sed 's/^/| /' conftest.
$ac_ext >&5
4662 ac_cv_no_strict_aliasing_ok
=no
4664 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4671 { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
4672 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; }
4673 if test $ac_cv_no_strict_aliasing_ok = yes
4675 BASECFLAGS
="$BASECFLAGS -fno-strict-aliasing"
4678 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
4679 # support. Without this, treatment of subnormals doesn't follow
4681 case $ac_sys_machine in
4683 BASECFLAGS
="$BASECFLAGS -mieee"
4687 case $ac_sys_system in
4689 BASECFLAGS
="$BASECFLAGS -m486 -DSCO5"
4691 # is there any other compiler on Darwin besides gcc?
4693 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
4694 # used to be here, but non-Apple gcc doesn't accept them.
4697 if test "${enable_universalsdk}"; then
4698 UNIVERSAL_ARCH_FLAGS
=""
4699 if test "$UNIVERSAL_ARCHS" = "32-bit" ; then
4700 UNIVERSAL_ARCH_FLAGS
="-arch ppc -arch i386"
4703 elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then
4704 UNIVERSAL_ARCH_FLAGS
="-arch ppc64 -arch x86_64"
4705 ARCH_RUN_32BIT
="true"
4707 elif test "$UNIVERSAL_ARCHS" = "all" ; then
4708 UNIVERSAL_ARCH_FLAGS
="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
4709 ARCH_RUN_32BIT
="arch -i386 -ppc"
4711 elif test "$UNIVERSAL_ARCHS" = "intel" ; then
4712 UNIVERSAL_ARCH_FLAGS
="-arch i386 -arch x86_64"
4713 ARCH_RUN_32BIT
="arch -i386"
4715 elif test "$UNIVERSAL_ARCHS" = "3-way" ; then
4716 UNIVERSAL_ARCH_FLAGS
="-arch i386 -arch ppc -arch x86_64"
4717 ARCH_RUN_32BIT
="arch -i386 -ppc"
4720 { { echo "$as_me:$LINENO: error: proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" >&5
4721 echo "$as_me: error: proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" >&2;}
4722 { (exit 1); exit 1; }; }
4727 BASECFLAGS
="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
4728 tgt
=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4729 if test "${UNIVERSALSDK}" != "/" -a "${tgt}" '>' '10.4' ; then
4730 CFLAGS
="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
4734 # Calculate the right deployment target for this build.
4736 cur_target
=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
4737 if test ${cur_target} '>' 10.2; then
4739 if test ${enable_universalsdk}; then
4740 if test "${UNIVERSAL_ARCHS}" = "all"; then
4741 # Ensure that the default platform for a
4742 # 4-way universal build is OSX 10.5,
4743 # that's the first OS release where
4744 # 4-way builds make sense.
4747 elif test "${UNIVERSAL_ARCHS}" = "3-way"; then
4750 elif test "${UNIVERSAL_ARCHS}" = "intel"; then
4753 elif test "${UNIVERSAL_ARCHS}" = "64-bit"; then
4757 if test `arch` = "i386"; then
4758 # On Intel macs default to a deployment
4759 # target of 10.4, that's the first OSX
4760 # release with Intel support.
4765 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
4767 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
4768 # environment with a value that is the same as what we'll use
4769 # in the Makefile to ensure that we'll get the same compiler
4770 # environment during configure and build time.
4771 MACOSX_DEPLOYMENT_TARGET
="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
4772 export MACOSX_DEPLOYMENT_TARGET
4773 EXPORT_MACOSX_DEPLOYMENT_TARGET
=''
4777 BASECFLAGS
="$BASECFLAGS -mieee"
4783 case $ac_sys_system in
4784 OpenUNIX
*|UnixWare
*)
4785 BASECFLAGS
="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
4788 BASECFLAGS
="$BASECFLAGS -ieee -std"
4791 BASECFLAGS
="$BASECFLAGS -belf -Ki486 -DSCO5"
4797 if test "$Py_DEBUG" = 'true'; then
4803 if test "$ac_arch_flags"
4805 BASECFLAGS
="$BASECFLAGS $ac_arch_flags"
4808 # disable check for icc since it seems to pass, but generates a warning
4811 ac_cv_opt_olimit_ok
=no
4814 { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
4815 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; }
4816 if test "${ac_cv_opt_olimit_ok+set}" = set; then
4817 echo $ECHO_N "(cached) $ECHO_C" >&6
4820 CC
="$CC -OPT:Olimit=0"
4821 if test "$cross_compiling" = yes; then
4822 ac_cv_opt_olimit_ok
=no
4824 cat >conftest.
$ac_ext <<_ACEOF
4827 cat confdefs.h
>>conftest.
$ac_ext
4828 cat >>conftest.
$ac_ext <<_ACEOF
4829 /* end confdefs.h. */
4830 int main() { return 0; }
4832 rm -f conftest
$ac_exeext
4833 if { (ac_try
="$ac_link"
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_link") 2>&5
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4843 { (case "(($ac_try" in
4844 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4845 *) ac_try_echo
=$ac_try;;
4847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4848 (eval "$ac_try") 2>&5
4850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851 (exit $ac_status); }; }; then
4852 ac_cv_opt_olimit_ok
=yes
4854 echo "$as_me: program exited with status $ac_status" >&5
4855 echo "$as_me: failed program was:" >&5
4856 sed 's/^/| /' conftest.
$ac_ext >&5
4859 ac_cv_opt_olimit_ok
=no
4861 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4868 { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
4869 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; }
4870 if test $ac_cv_opt_olimit_ok = yes; then
4871 case $ac_sys_system in
4872 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
4873 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
4878 BASECFLAGS
="$BASECFLAGS -OPT:Olimit=0"
4882 { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
4883 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; }
4884 if test "${ac_cv_olimit_ok+set}" = set; then
4885 echo $ECHO_N "(cached) $ECHO_C" >&6
4888 CC
="$CC -Olimit 1500"
4889 if test "$cross_compiling" = yes; then
4892 cat >conftest.
$ac_ext <<_ACEOF
4895 cat confdefs.h
>>conftest.
$ac_ext
4896 cat >>conftest.
$ac_ext <<_ACEOF
4897 /* end confdefs.h. */
4898 int main() { return 0; }
4900 rm -f conftest
$ac_exeext
4901 if { (ac_try
="$ac_link"
4903 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4904 *) ac_try_echo=$ac_try;;
4906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4907 (eval "$ac_link") 2>&5
4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4911 { (case "(($ac_try" in
4912 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4913 *) ac_try_echo
=$ac_try;;
4915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4916 (eval "$ac_try") 2>&5
4918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919 (exit $ac_status); }; }; then
4922 echo "$as_me: program exited with status $ac_status" >&5
4923 echo "$as_me: failed program was:" >&5
4924 sed 's/^/| /' conftest.
$ac_ext >&5
4929 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4936 { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4937 echo "${ECHO_T}$ac_cv_olimit_ok" >&6; }
4938 if test $ac_cv_olimit_ok = yes; then
4939 BASECFLAGS
="$BASECFLAGS -Olimit 1500"
4943 # Check whether GCC supports PyArg_ParseTuple format
4944 if test "$GCC" = "yes"
4946 { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
4947 echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; }
4949 CFLAGS
="$CFLAGS -Werror"
4950 cat >conftest.
$ac_ext <<_ACEOF
4953 cat confdefs.h
>>conftest.
$ac_ext
4954 cat >>conftest.
$ac_ext <<_ACEOF
4955 /* end confdefs.h. */
4957 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
4967 rm -f conftest.
$ac_objext
4968 if { (ac_try
="$ac_compile"
4970 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4971 *) ac_try_echo=$ac_try;;
4973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4974 (eval "$ac_compile") 2>conftest.er1
4976 grep -v '^ *+' conftest.er1 >conftest.err
4978 cat conftest.err >&5
4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980 (exit $ac_status); } && {
4981 test -z "$ac_c_werror_flag" ||
4982 test ! -s conftest.err
4983 } && test -s conftest.$ac_objext; then
4985 cat >>confdefs.h <<\_ACEOF
4986 #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
4989 { echo "$as_me:$LINENO: result: yes" >&5
4990 echo "${ECHO_T}yes" >&6; }
4992 echo "$as_me: failed program was:" >&5
4993 sed 's/^/| /' conftest.$ac_ext >&5
4995 { echo "$as_me:$LINENO: result: no" >&5
4996 echo "${ECHO_T}no" >&6; }
5000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5004 # On some compilers, pthreads are available without further options
5005 # (e.g. MacOS X). On some of these systems, the compiler will not
5006 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
5007 # So we have to see first whether pthreads are available without
5008 # options before we can check whether -Kpthread improves anything.
5009 { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
5010 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; }
5011 if test "${ac_cv_pthread_is_default+set}" = set; then
5012 echo $ECHO_N "(cached) $ECHO_C" >&6
5014 if test "$cross_compiling" = yes; then
5015 ac_cv_pthread_is_default=no
5017 cat >conftest.$ac_ext <<_ACEOF
5020 cat confdefs.h >>conftest.$ac_ext
5021 cat >>conftest.$ac_ext <<_ACEOF
5022 /* end confdefs.h. */
5024 #include <pthread.h>
5026 void* routine(void* p){return NULL;}
5030 if(pthread_create(&p,NULL,routine,NULL)!=0)
5032 (void)pthread_detach(p);
5037 rm -f conftest$ac_exeext
5038 if { (ac_try="$ac_link"
5040 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5041 *) ac_try_echo
=$ac_try;;
5043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5044 (eval "$ac_link") 2>&5
5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5048 { (case "(($ac_try" in
5049 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5050 *) ac_try_echo=$ac_try;;
5052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5053 (eval "$ac_try") 2>&5
5055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056 (exit $ac_status); }; }; then
5058 ac_cv_pthread_is_default=yes
5063 echo "$as_me: program exited with status $ac_status" >&5
5064 echo "$as_me: failed program was:" >&5
5065 sed 's/^/| /' conftest.$ac_ext >&5
5068 ac_cv_pthread_is_default=no
5070 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5077 { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
5078 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; }
5081 if test $ac_cv_pthread_is_default = yes
5085 # -Kpthread, if available, provides the right #defines
5086 # and linker options to make pthread_create available
5087 # Some compilers won't report that they do not support -Kpthread,
5088 # so we need to run a program to see whether it really made the
5089 # function available.
5090 { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
5091 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; }
5092 if test "${ac_cv_kpthread+set}" = set; then
5093 echo $ECHO_N "(cached) $ECHO_C" >&6
5097 if test "$cross_compiling" = yes; then
5100 cat >conftest.$ac_ext <<_ACEOF
5103 cat confdefs.h >>conftest.$ac_ext
5104 cat >>conftest.$ac_ext <<_ACEOF
5105 /* end confdefs.h. */
5107 #include <pthread.h>
5109 void* routine(void* p){return NULL;}
5113 if(pthread_create(&p,NULL,routine,NULL)!=0)
5115 (void)pthread_detach(p);
5120 rm -f conftest$ac_exeext
5121 if { (ac_try="$ac_link"
5123 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5124 *) ac_try_echo
=$ac_try;;
5126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5127 (eval "$ac_link") 2>&5
5129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5131 { (case "(($ac_try" in
5132 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5133 *) ac_try_echo=$ac_try;;
5135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5136 (eval "$ac_try") 2>&5
5138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139 (exit $ac_status); }; }; then
5142 echo "$as_me: program exited with status $ac_status" >&5
5143 echo "$as_me: failed program was:" >&5
5144 sed 's/^/| /' conftest.$ac_ext >&5
5149 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5156 { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
5157 echo "${ECHO_T}$ac_cv_kpthread" >&6; }
5160 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
5162 # -Kthread, if available, provides the right #defines
5163 # and linker options to make pthread_create available
5164 # Some compilers won't report that they do not support -Kthread,
5165 # so we need to run a program to see whether it really made the
5166 # function available.
5167 { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
5168 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; }
5169 if test "${ac_cv_kthread+set}" = set; then
5170 echo $ECHO_N "(cached) $ECHO_C" >&6
5174 if test "$cross_compiling" = yes; then
5177 cat >conftest.$ac_ext <<_ACEOF
5180 cat confdefs.h >>conftest.$ac_ext
5181 cat >>conftest.$ac_ext <<_ACEOF
5182 /* end confdefs.h. */
5184 #include <pthread.h>
5186 void* routine(void* p){return NULL;}
5190 if(pthread_create(&p,NULL,routine,NULL)!=0)
5192 (void)pthread_detach(p);
5197 rm -f conftest$ac_exeext
5198 if { (ac_try="$ac_link"
5200 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5201 *) ac_try_echo
=$ac_try;;
5203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5204 (eval "$ac_link") 2>&5
5206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5208 { (case "(($ac_try" in
5209 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5210 *) ac_try_echo=$ac_try;;
5212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5213 (eval "$ac_try") 2>&5
5215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216 (exit $ac_status); }; }; then
5219 echo "$as_me: program exited with status $ac_status" >&5
5220 echo "$as_me: failed program was:" >&5
5221 sed 's/^/| /' conftest.$ac_ext >&5
5226 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5233 { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
5234 echo "${ECHO_T}$ac_cv_kthread" >&6; }
5237 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
5239 # -pthread, if available, provides the right #defines
5240 # and linker options to make pthread_create available
5241 # Some compilers won't report that they do not support -pthread,
5242 # so we need to run a program to see whether it really made the
5243 # function available.
5244 { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
5245 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; }
5246 if test "${ac_cv_thread+set}" = set; then
5247 echo $ECHO_N "(cached) $ECHO_C" >&6
5251 if test "$cross_compiling" = yes; then
5254 cat >conftest.$ac_ext <<_ACEOF
5257 cat confdefs.h >>conftest.$ac_ext
5258 cat >>conftest.$ac_ext <<_ACEOF
5259 /* end confdefs.h. */
5261 #include <pthread.h>
5263 void* routine(void* p){return NULL;}
5267 if(pthread_create(&p,NULL,routine,NULL)!=0)
5269 (void)pthread_detach(p);
5274 rm -f conftest$ac_exeext
5275 if { (ac_try="$ac_link"
5277 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5278 *) ac_try_echo
=$ac_try;;
5280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5281 (eval "$ac_link") 2>&5
5283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5285 { (case "(($ac_try" in
5286 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5287 *) ac_try_echo=$ac_try;;
5289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5290 (eval "$ac_try") 2>&5
5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293 (exit $ac_status); }; }; then
5296 echo "$as_me: program exited with status $ac_status" >&5
5297 echo "$as_me: failed program was:" >&5
5298 sed 's/^/| /' conftest.$ac_ext >&5
5303 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5310 { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
5311 echo "${ECHO_T}$ac_cv_pthread" >&6; }
5314 # If we have set a CC compiler flag for thread support then
5315 # check if it works for CXX, too.
5319 { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
5320 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; }
5323 if test "$ac_cv_kpthread" = "yes"
5325 CXX="$CXX -Kpthread"
5326 ac_cv_cxx_thread=yes
5327 elif test "$ac_cv_kthread" = "yes"
5330 ac_cv_cxx_thread=yes
5331 elif test "$ac_cv_pthread" = "yes"
5334 ac_cv_cxx_thread=yes
5337 if test $ac_cv_cxx_thread = yes
5339 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
5340 $CXX -c conftest.$ac_ext 2>&5
5341 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
5342 && test -s conftest$ac_exeext && ./conftest$ac_exeext
5344 ac_cv_cxx_thread=yes
5350 { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
5351 echo "${ECHO_T}$ac_cv_cxx_thread" >&6; }
5356 # checks for header files
5357 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5358 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5359 if test "${ac_cv_header_stdc+set}" = set; then
5360 echo $ECHO_N "(cached) $ECHO_C" >&6
5362 cat >conftest.$ac_ext <<_ACEOF
5365 cat confdefs.h >>conftest.$ac_ext
5366 cat >>conftest.$ac_ext <<_ACEOF
5367 /* end confdefs.h. */
5381 rm -f conftest.$ac_objext
5382 if { (ac_try="$ac_compile"
5384 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5385 *) ac_try_echo
=$ac_try;;
5387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5388 (eval "$ac_compile") 2>conftest.er1
5390 grep -v '^ *+' conftest.er1
>conftest.err
5392 cat conftest.err
>&5
5393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394 (exit $ac_status); } && {
5395 test -z "$ac_c_werror_flag" ||
5396 test ! -s conftest.err
5397 } && test -s conftest.
$ac_objext; then
5398 ac_cv_header_stdc
=yes
5400 echo "$as_me: failed program was:" >&5
5401 sed 's/^/| /' conftest.
$ac_ext >&5
5403 ac_cv_header_stdc
=no
5406 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5408 if test $ac_cv_header_stdc = yes; then
5409 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5410 cat >conftest.
$ac_ext <<_ACEOF
5413 cat confdefs.h
>>conftest.
$ac_ext
5414 cat >>conftest.
$ac_ext <<_ACEOF
5415 /* end confdefs.h. */
5419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5420 $EGREP "memchr" >/dev
/null
2>&1; then
5423 ac_cv_header_stdc
=no
5429 if test $ac_cv_header_stdc = yes; then
5430 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5431 cat >conftest.
$ac_ext <<_ACEOF
5434 cat confdefs.h
>>conftest.
$ac_ext
5435 cat >>conftest.
$ac_ext <<_ACEOF
5436 /* end confdefs.h. */
5440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5441 $EGREP "free" >/dev
/null
2>&1; then
5444 ac_cv_header_stdc
=no
5450 if test $ac_cv_header_stdc = yes; then
5451 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5452 if test "$cross_compiling" = yes; then
5455 cat >conftest.
$ac_ext <<_ACEOF
5458 cat confdefs.h
>>conftest.
$ac_ext
5459 cat >>conftest.
$ac_ext <<_ACEOF
5460 /* end confdefs.h. */
5463 #if ((' ' & 0x0FF) == 0x020)
5464 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5465 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5467 # define ISLOWER(c) \
5468 (('a' <= (c) && (c) <= 'i') \
5469 || ('j' <= (c) && (c) <= 'r') \
5470 || ('s' <= (c) && (c) <= 'z'))
5471 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5474 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5479 for (i = 0; i < 256; i++)
5480 if (XOR (islower (i), ISLOWER (i))
5481 || toupper (i) != TOUPPER (i))
5486 rm -f conftest
$ac_exeext
5487 if { (ac_try
="$ac_link"
5489 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5490 *) ac_try_echo=$ac_try;;
5492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5493 (eval "$ac_link") 2>&5
5495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5497 { (case "(($ac_try" in
5498 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5499 *) ac_try_echo
=$ac_try;;
5501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5502 (eval "$ac_try") 2>&5
5504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505 (exit $ac_status); }; }; then
5508 echo "$as_me: program exited with status $ac_status" >&5
5509 echo "$as_me: failed program was:" >&5
5510 sed 's/^/| /' conftest.
$ac_ext >&5
5513 ac_cv_header_stdc
=no
5515 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5521 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5522 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5523 if test $ac_cv_header_stdc = yes; then
5525 cat >>confdefs.h
<<\_ACEOF
5526 #define STDC_HEADERS 1
5531 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5541 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5542 inttypes.h stdint.h unistd.h
5544 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5545 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5547 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5548 echo $ECHO_N "(cached) $ECHO_C" >&6
5550 cat >conftest.
$ac_ext <<_ACEOF
5553 cat confdefs.h
>>conftest.
$ac_ext
5554 cat >>conftest.
$ac_ext <<_ACEOF
5555 /* end confdefs.h. */
5556 $ac_includes_default
5558 #include <$ac_header>
5560 rm -f conftest.
$ac_objext
5561 if { (ac_try
="$ac_compile"
5563 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5564 *) ac_try_echo=$ac_try;;
5566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5567 (eval "$ac_compile") 2>conftest.er1
5569 grep -v '^ *+' conftest.er1 >conftest.err
5571 cat conftest.err >&5
5572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573 (exit $ac_status); } && {
5574 test -z "$ac_c_werror_flag" ||
5575 test ! -s conftest.err
5576 } && test -s conftest.$ac_objext; then
5577 eval "$as_ac_Header=yes"
5579 echo "$as_me: failed program was:" >&5
5580 sed 's/^/| /' conftest.$ac_ext >&5
5582 eval "$as_ac_Header=no"
5585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5587 ac_res=`eval echo '${'$as_ac_Header'}'`
5588 { echo "$as_me:$LINENO: result: $ac_res" >&5
5589 echo "${ECHO_T}$ac_res" >&6; }
5590 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5591 cat >>confdefs.h <<_ACEOF
5592 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5654 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
5656 ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
5657 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
5659 sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
5660 sys/lock.h sys/mkdev.h sys/modem.h \
5661 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
5662 sys/termio.h sys/time.h \
5663 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
5664 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
5665 bluetooth/bluetooth.h linux/tipc.h
5667 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5669 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5670 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5671 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5672 echo $ECHO_N "(cached) $ECHO_C" >&6
5674 ac_res=`eval echo '${'$as_ac_Header'}'`
5675 { echo "$as_me:$LINENO: result: $ac_res" >&5
5676 echo "${ECHO_T}$ac_res" >&6; }
5678 # Is the header compilable?
5679 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5680 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5681 cat >conftest.$ac_ext <<_ACEOF
5684 cat confdefs.h >>conftest.$ac_ext
5685 cat >>conftest.$ac_ext <<_ACEOF
5686 /* end confdefs.h. */
5687 $ac_includes_default
5688 #include <$ac_header>
5690 rm -f conftest.$ac_objext
5691 if { (ac_try="$ac_compile"
5693 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5694 *) ac_try_echo
=$ac_try;;
5696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5697 (eval "$ac_compile") 2>conftest.er1
5699 grep -v '^ *+' conftest.er1
>conftest.err
5701 cat conftest.err
>&5
5702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703 (exit $ac_status); } && {
5704 test -z "$ac_c_werror_flag" ||
5705 test ! -s conftest.err
5706 } && test -s conftest.
$ac_objext; then
5707 ac_header_compiler
=yes
5709 echo "$as_me: failed program was:" >&5
5710 sed 's/^/| /' conftest.
$ac_ext >&5
5712 ac_header_compiler
=no
5715 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5716 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5717 echo "${ECHO_T}$ac_header_compiler" >&6; }
5719 # Is the header present?
5720 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5721 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5722 cat >conftest.
$ac_ext <<_ACEOF
5725 cat confdefs.h
>>conftest.
$ac_ext
5726 cat >>conftest.
$ac_ext <<_ACEOF
5727 /* end confdefs.h. */
5728 #include <$ac_header>
5730 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5732 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5733 *) ac_try_echo=$ac_try;;
5735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5736 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5738 grep -v '^ *+' conftest.er1 >conftest.err
5740 cat conftest.err >&5
5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); } >/dev/null && {
5743 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5744 test ! -s conftest.err
5746 ac_header_preproc=yes
5748 echo "$as_me: failed program was:" >&5
5749 sed 's/^/| /' conftest.$ac_ext >&5
5751 ac_header_preproc=no
5754 rm -f conftest.err conftest.$ac_ext
5755 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5756 echo "${ECHO_T}$ac_header_preproc" >&6; }
5758 # So? What about this header?
5759 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5761 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5762 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5763 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5764 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5765 ac_header_preproc=yes
5768 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5769 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5770 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5771 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5772 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5773 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5774 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5775 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5776 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5777 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5778 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5779 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5781 ## -------------------------------------- ##
5782 ## Report this to http://bugs.python.org/ ##
5783 ## -------------------------------------- ##
5785 ) | sed "s/^/$as_me: WARNING: /" >&2
5788 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5789 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5791 echo $ECHO_N "(cached) $ECHO_C" >&6
5793 eval "$as_ac_Header=\$ac_header_preproc"
5795 ac_res=`eval echo '${'$as_ac_Header'}'`
5796 { echo "$as_me:$LINENO: result: $ac_res" >&5
5797 echo "${ECHO_T}$ac_res" >&6; }
5800 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5801 cat >>confdefs.h <<_ACEOF
5802 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5815 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5816 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" |
$as_tr_sh`
5817 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5818 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5819 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5820 echo $ECHO_N "(cached) $ECHO_C" >&6
5822 cat >conftest.$ac_ext <<_ACEOF
5825 cat confdefs.h >>conftest.$ac_ext
5826 cat >>conftest.$ac_ext <<_ACEOF
5827 /* end confdefs.h. */
5828 #include <sys/types.h>
5840 rm -f conftest.$ac_objext
5841 if { (ac_try="$ac_compile"
5843 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5844 *) ac_try_echo
=$ac_try;;
5846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5847 (eval "$ac_compile") 2>conftest.er1
5849 grep -v '^ *+' conftest.er1
>conftest.err
5851 cat conftest.err
>&5
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); } && {
5854 test -z "$ac_c_werror_flag" ||
5855 test ! -s conftest.err
5856 } && test -s conftest.
$ac_objext; then
5857 eval "$as_ac_Header=yes"
5859 echo "$as_me: failed program was:" >&5
5860 sed 's/^/| /' conftest.
$ac_ext >&5
5862 eval "$as_ac_Header=no"
5865 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5867 ac_res
=`eval echo '${'$as_ac_Header'}'`
5868 { echo "$as_me:$LINENO: result: $ac_res" >&5
5869 echo "${ECHO_T}$ac_res" >&6; }
5870 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5871 cat >>confdefs.h
<<_ACEOF
5872 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5875 ac_header_dirent
=$ac_hdr; break
5879 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5880 if test $ac_header_dirent = dirent.h
; then
5881 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5882 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5883 if test "${ac_cv_search_opendir+set}" = set; then
5884 echo $ECHO_N "(cached) $ECHO_C" >&6
5886 ac_func_search_save_LIBS
=$LIBS
5887 cat >conftest.
$ac_ext <<_ACEOF
5890 cat confdefs.h
>>conftest.
$ac_ext
5891 cat >>conftest.
$ac_ext <<_ACEOF
5892 /* end confdefs.h. */
5894 /* Override any GCC internal prototype to avoid an error.
5895 Use char because int might match the return type of a GCC
5896 builtin and then its argument prototype would still apply. */
5909 for ac_lib
in '' dir
; do
5910 if test -z "$ac_lib"; then
5911 ac_res
="none required"
5914 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5916 rm -f conftest.
$ac_objext conftest
$ac_exeext
5917 if { (ac_try
="$ac_link"
5919 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5920 *) ac_try_echo=$ac_try;;
5922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5923 (eval "$ac_link") 2>conftest.er1
5925 grep -v '^ *+' conftest.er1 >conftest.err
5927 cat conftest.err >&5
5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); } && {
5930 test -z "$ac_c_werror_flag" ||
5931 test ! -s conftest.err
5932 } && test -s conftest$ac_exeext &&
5933 $as_test_x conftest$ac_exeext; then
5934 ac_cv_search_opendir=$ac_res
5936 echo "$as_me: failed program was:" >&5
5937 sed 's/^/| /' conftest.$ac_ext >&5
5942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5944 if test "${ac_cv_search_opendir+set}" = set; then
5948 if test "${ac_cv_search_opendir+set}" = set; then
5951 ac_cv_search_opendir=no
5954 LIBS=$ac_func_search_save_LIBS
5956 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5957 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5958 ac_res=$ac_cv_search_opendir
5959 if test "$ac_res" != no; then
5960 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5965 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5966 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5967 if test "${ac_cv_search_opendir+set}" = set; then
5968 echo $ECHO_N "(cached) $ECHO_C" >&6
5970 ac_func_search_save_LIBS=$LIBS
5971 cat >conftest.$ac_ext <<_ACEOF
5974 cat confdefs.h >>conftest.$ac_ext
5975 cat >>conftest.$ac_ext <<_ACEOF
5976 /* end confdefs.h. */
5978 /* Override any GCC internal prototype to avoid an error.
5979 Use char because int might match the return type of a GCC
5980 builtin and then its argument prototype would still apply. */
5993 for ac_lib in '' x; do
5994 if test -z "$ac_lib"; then
5995 ac_res="none required"
5998 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6000 rm -f conftest.$ac_objext conftest$ac_exeext
6001 if { (ac_try="$ac_link"
6003 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6004 *) ac_try_echo
=$ac_try;;
6006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6007 (eval "$ac_link") 2>conftest.er1
6009 grep -v '^ *+' conftest.er1
>conftest.err
6011 cat conftest.err
>&5
6012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013 (exit $ac_status); } && {
6014 test -z "$ac_c_werror_flag" ||
6015 test ! -s conftest.err
6016 } && test -s conftest
$ac_exeext &&
6017 $as_test_x conftest
$ac_exeext; then
6018 ac_cv_search_opendir
=$ac_res
6020 echo "$as_me: failed program was:" >&5
6021 sed 's/^/| /' conftest.
$ac_ext >&5
6026 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6028 if test "${ac_cv_search_opendir+set}" = set; then
6032 if test "${ac_cv_search_opendir+set}" = set; then
6035 ac_cv_search_opendir
=no
6038 LIBS
=$ac_func_search_save_LIBS
6040 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6041 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
6042 ac_res
=$ac_cv_search_opendir
6043 if test "$ac_res" != no
; then
6044 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6050 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
6051 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
6052 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
6053 echo $ECHO_N "(cached) $ECHO_C" >&6
6055 cat >conftest.
$ac_ext <<_ACEOF
6058 cat confdefs.h
>>conftest.
$ac_ext
6059 cat >>conftest.
$ac_ext <<_ACEOF
6060 /* end confdefs.h. */
6061 #include <sys/types.h>
6065 return makedev(0, 0);
6070 rm -f conftest.
$ac_objext conftest
$ac_exeext
6071 if { (ac_try
="$ac_link"
6073 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6074 *) ac_try_echo=$ac_try;;
6076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6077 (eval "$ac_link") 2>conftest.er1
6079 grep -v '^ *+' conftest.er1 >conftest.err
6081 cat conftest.err >&5
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); } && {
6084 test -z "$ac_c_werror_flag" ||
6085 test ! -s conftest.err
6086 } && test -s conftest$ac_exeext &&
6087 $as_test_x conftest$ac_exeext; then
6088 ac_cv_header_sys_types_h_makedev=yes
6090 echo "$as_me: failed program was:" >&5
6091 sed 's/^/| /' conftest.$ac_ext >&5
6093 ac_cv_header_sys_types_h_makedev=no
6096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6097 conftest$ac_exeext conftest.$ac_ext
6100 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
6101 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
6103 if test $ac_cv_header_sys_types_h_makedev = no; then
6104 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6105 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6106 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6107 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6108 echo $ECHO_N "(cached) $ECHO_C" >&6
6110 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6111 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6113 # Is the header compilable?
6114 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
6115 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
6116 cat >conftest.$ac_ext <<_ACEOF
6119 cat confdefs.h >>conftest.$ac_ext
6120 cat >>conftest.$ac_ext <<_ACEOF
6121 /* end confdefs.h. */
6122 $ac_includes_default
6123 #include <sys/mkdev.h>
6125 rm -f conftest.$ac_objext
6126 if { (ac_try="$ac_compile"
6128 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6129 *) ac_try_echo
=$ac_try;;
6131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6132 (eval "$ac_compile") 2>conftest.er1
6134 grep -v '^ *+' conftest.er1
>conftest.err
6136 cat conftest.err
>&5
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); } && {
6139 test -z "$ac_c_werror_flag" ||
6140 test ! -s conftest.err
6141 } && test -s conftest.
$ac_objext; then
6142 ac_header_compiler
=yes
6144 echo "$as_me: failed program was:" >&5
6145 sed 's/^/| /' conftest.
$ac_ext >&5
6147 ac_header_compiler
=no
6150 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6151 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6152 echo "${ECHO_T}$ac_header_compiler" >&6; }
6154 # Is the header present?
6155 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
6156 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
6157 cat >conftest.
$ac_ext <<_ACEOF
6160 cat confdefs.h
>>conftest.
$ac_ext
6161 cat >>conftest.
$ac_ext <<_ACEOF
6162 /* end confdefs.h. */
6163 #include <sys/mkdev.h>
6165 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6167 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6168 *) ac_try_echo=$ac_try;;
6170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6171 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6173 grep -v '^ *+' conftest.er1 >conftest.err
6175 cat conftest.err >&5
6176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177 (exit $ac_status); } >/dev/null && {
6178 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6179 test ! -s conftest.err
6181 ac_header_preproc=yes
6183 echo "$as_me: failed program was:" >&5
6184 sed 's/^/| /' conftest.$ac_ext >&5
6186 ac_header_preproc=no
6189 rm -f conftest.err conftest.$ac_ext
6190 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6191 echo "${ECHO_T}$ac_header_preproc" >&6; }
6193 # So? What about this header?
6194 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6196 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6197 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6198 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
6199 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
6200 ac_header_preproc=yes
6203 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6204 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6205 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6206 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6207 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
6208 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
6209 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
6210 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
6211 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6212 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6213 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
6214 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
6216 ## -------------------------------------- ##
6217 ## Report this to http://bugs.python.org/ ##
6218 ## -------------------------------------- ##
6220 ) | sed "s/^/$as_me: WARNING: /" >&2
6223 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6224 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
6225 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6226 echo $ECHO_N "(cached) $ECHO_C" >&6
6228 ac_cv_header_sys_mkdev_h=$ac_header_preproc
6230 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6231 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6234 if test $ac_cv_header_sys_mkdev_h = yes; then
6236 cat >>confdefs.h <<\_ACEOF
6237 #define MAJOR_IN_MKDEV 1
6244 if test $ac_cv_header_sys_mkdev_h = no; then
6245 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6246 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6247 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6248 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6249 echo $ECHO_N "(cached) $ECHO_C" >&6
6251 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6252 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6254 # Is the header compilable?
6255 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6256 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
6257 cat >conftest.$ac_ext <<_ACEOF
6260 cat confdefs.h >>conftest.$ac_ext
6261 cat >>conftest.$ac_ext <<_ACEOF
6262 /* end confdefs.h. */
6263 $ac_includes_default
6264 #include <sys/sysmacros.h>
6266 rm -f conftest.$ac_objext
6267 if { (ac_try="$ac_compile"
6269 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6270 *) ac_try_echo
=$ac_try;;
6272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6273 (eval "$ac_compile") 2>conftest.er1
6275 grep -v '^ *+' conftest.er1
>conftest.err
6277 cat conftest.err
>&5
6278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 (exit $ac_status); } && {
6280 test -z "$ac_c_werror_flag" ||
6281 test ! -s conftest.err
6282 } && test -s conftest.
$ac_objext; then
6283 ac_header_compiler
=yes
6285 echo "$as_me: failed program was:" >&5
6286 sed 's/^/| /' conftest.
$ac_ext >&5
6288 ac_header_compiler
=no
6291 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6292 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6293 echo "${ECHO_T}$ac_header_compiler" >&6; }
6295 # Is the header present?
6296 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6297 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
6298 cat >conftest.
$ac_ext <<_ACEOF
6301 cat confdefs.h
>>conftest.
$ac_ext
6302 cat >>conftest.
$ac_ext <<_ACEOF
6303 /* end confdefs.h. */
6304 #include <sys/sysmacros.h>
6306 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6308 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6309 *) ac_try_echo=$ac_try;;
6311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6312 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6314 grep -v '^ *+' conftest.er1 >conftest.err
6316 cat conftest.err >&5
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); } >/dev/null && {
6319 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6320 test ! -s conftest.err
6322 ac_header_preproc=yes
6324 echo "$as_me: failed program was:" >&5
6325 sed 's/^/| /' conftest.$ac_ext >&5
6327 ac_header_preproc=no
6330 rm -f conftest.err conftest.$ac_ext
6331 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6332 echo "${ECHO_T}$ac_header_preproc" >&6; }
6334 # So? What about this header?
6335 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6337 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6338 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6339 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6340 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
6341 ac_header_preproc=yes
6344 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6345 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6346 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6347 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6348 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6349 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6350 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
6351 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
6352 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6353 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
6354 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6355 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
6357 ## -------------------------------------- ##
6358 ## Report this to http://bugs.python.org/ ##
6359 ## -------------------------------------- ##
6361 ) | sed "s/^/$as_me: WARNING: /" >&2
6364 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6365 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6366 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6367 echo $ECHO_N "(cached) $ECHO_C" >&6
6369 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
6371 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6372 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6375 if test $ac_cv_header_sys_sysmacros_h = yes; then
6377 cat >>confdefs.h <<\_ACEOF
6378 #define MAJOR_IN_SYSMACROS 1
6388 # On Solaris, term.h requires curses.h
6390 for ac_header in term.h
6392 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6393 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6395 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6396 echo $ECHO_N "(cached) $ECHO_C" >&6
6398 cat >conftest.$ac_ext <<_ACEOF
6401 cat confdefs.h >>conftest.$ac_ext
6402 cat >>conftest.$ac_ext <<_ACEOF
6403 /* end confdefs.h. */
6405 #ifdef HAVE_CURSES_H
6410 #include <$ac_header>
6412 rm -f conftest.$ac_objext
6413 if { (ac_try="$ac_compile"
6415 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6416 *) ac_try_echo
=$ac_try;;
6418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6419 (eval "$ac_compile") 2>conftest.er1
6421 grep -v '^ *+' conftest.er1
>conftest.err
6423 cat conftest.err
>&5
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); } && {
6426 test -z "$ac_c_werror_flag" ||
6427 test ! -s conftest.err
6428 } && test -s conftest.
$ac_objext; then
6429 eval "$as_ac_Header=yes"
6431 echo "$as_me: failed program was:" >&5
6432 sed 's/^/| /' conftest.
$ac_ext >&5
6434 eval "$as_ac_Header=no"
6437 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6439 ac_res
=`eval echo '${'$as_ac_Header'}'`
6440 { echo "$as_me:$LINENO: result: $ac_res" >&5
6441 echo "${ECHO_T}$ac_res" >&6; }
6442 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6443 cat >>confdefs.h
<<_ACEOF
6444 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6452 # On Linux, netlink.h requires asm/types.h
6454 for ac_header
in linux
/netlink.h
6456 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6457 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6459 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6460 echo $ECHO_N "(cached) $ECHO_C" >&6
6462 cat >conftest.
$ac_ext <<_ACEOF
6465 cat confdefs.h
>>conftest.
$ac_ext
6466 cat >>conftest.
$ac_ext <<_ACEOF
6467 /* end confdefs.h. */
6469 #ifdef HAVE_ASM_TYPES_H
6470 #include <asm/types.h>
6472 #ifdef HAVE_SYS_SOCKET_H
6473 #include <sys/socket.h>
6477 #include <$ac_header>
6479 rm -f conftest.
$ac_objext
6480 if { (ac_try
="$ac_compile"
6482 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6483 *) ac_try_echo=$ac_try;;
6485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6486 (eval "$ac_compile") 2>conftest.er1
6488 grep -v '^ *+' conftest.er1 >conftest.err
6490 cat conftest.err >&5
6491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492 (exit $ac_status); } && {
6493 test -z "$ac_c_werror_flag" ||
6494 test ! -s conftest.err
6495 } && test -s conftest.$ac_objext; then
6496 eval "$as_ac_Header=yes"
6498 echo "$as_me: failed program was:" >&5
6499 sed 's/^/| /' conftest.$ac_ext >&5
6501 eval "$as_ac_Header=no"
6504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6506 ac_res=`eval echo '${'$as_ac_Header'}'`
6507 { echo "$as_me:$LINENO: result: $ac_res" >&5
6508 echo "${ECHO_T}$ac_res" >&6; }
6509 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6510 cat >>confdefs.h <<_ACEOF
6511 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6519 # checks for typedefs
6521 { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
6522 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6; }
6523 cat >conftest.$ac_ext <<_ACEOF
6526 cat confdefs.h >>conftest.$ac_ext
6527 cat >>conftest.$ac_ext <<_ACEOF
6528 /* end confdefs.h. */
6532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6533 $EGREP "clock_t" >/dev/null 2>&1; then
6538 cat >>confdefs.h <<\_ACEOF
6539 #define clock_t long
6546 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
6547 echo "${ECHO_T}$was_it_defined" >&6; }
6549 # Check whether using makedev requires defining _OSF_SOURCE
6550 { echo "$as_me:$LINENO: checking for makedev" >&5
6551 echo $ECHO_N "checking for makedev... $ECHO_C" >&6; }
6552 cat >conftest.$ac_ext <<_ACEOF
6555 cat confdefs.h >>conftest.$ac_ext
6556 cat >>conftest.$ac_ext <<_ACEOF
6557 /* end confdefs.h. */
6558 #include <sys/types.h>
6567 rm -f conftest.$ac_objext conftest$ac_exeext
6568 if { (ac_try="$ac_link"
6570 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6571 *) ac_try_echo
=$ac_try;;
6573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6574 (eval "$ac_link") 2>conftest.er1
6576 grep -v '^ *+' conftest.er1
>conftest.err
6578 cat conftest.err
>&5
6579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580 (exit $ac_status); } && {
6581 test -z "$ac_c_werror_flag" ||
6582 test ! -s conftest.err
6583 } && test -s conftest
$ac_exeext &&
6584 $as_test_x conftest
$ac_exeext; then
6585 ac_cv_has_makedev
=yes
6587 echo "$as_me: failed program was:" >&5
6588 sed 's/^/| /' conftest.
$ac_ext >&5
6590 ac_cv_has_makedev
=no
6593 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6594 conftest
$ac_exeext conftest.
$ac_ext
6595 if test "$ac_cv_has_makedev" = "no"; then
6596 # we didn't link, try if _OSF_SOURCE will allow us to link
6597 cat >conftest.
$ac_ext <<_ACEOF
6600 cat confdefs.h
>>conftest.
$ac_ext
6601 cat >>conftest.
$ac_ext <<_ACEOF
6602 /* end confdefs.h. */
6604 #define _OSF_SOURCE 1
6605 #include <sys/types.h>
6615 rm -f conftest.
$ac_objext conftest
$ac_exeext
6616 if { (ac_try
="$ac_link"
6618 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6619 *) ac_try_echo=$ac_try;;
6621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6622 (eval "$ac_link") 2>conftest.er1
6624 grep -v '^ *+' conftest.er1 >conftest.err
6626 cat conftest.err >&5
6627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628 (exit $ac_status); } && {
6629 test -z "$ac_c_werror_flag" ||
6630 test ! -s conftest.err
6631 } && test -s conftest$ac_exeext &&
6632 $as_test_x conftest$ac_exeext; then
6633 ac_cv_has_makedev=yes
6635 echo "$as_me: failed program was:" >&5
6636 sed 's/^/| /' conftest.$ac_ext >&5
6638 ac_cv_has_makedev=no
6641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6642 conftest$ac_exeext conftest.$ac_ext
6643 if test "$ac_cv_has_makedev" = "yes"; then
6645 cat >>confdefs.h <<\_ACEOF
6646 #define _OSF_SOURCE 1
6651 { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
6652 echo "${ECHO_T}$ac_cv_has_makedev" >&6; }
6653 if test "$ac_cv_has_makedev" = "yes"; then
6655 cat >>confdefs.h <<\_ACEOF
6656 #define HAVE_MAKEDEV 1
6661 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
6662 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
6663 # defined, but the compiler does not support pragma redefine_extname,
6664 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
6665 # structures (such as rlimit64) without declaring them. As a
6666 # work-around, disable LFS on such configurations
6669 { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
6670 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; }
6671 cat >conftest.$ac_ext <<_ACEOF
6674 cat confdefs.h >>conftest.$ac_ext
6675 cat >>conftest.$ac_ext <<_ACEOF
6676 /* end confdefs.h. */
6678 #define _LARGEFILE_SOURCE 1
6679 #define _FILE_OFFSET_BITS 64
6680 #include <sys/resource.h>
6690 rm -f conftest.$ac_objext
6691 if { (ac_try="$ac_compile"
6693 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6694 *) ac_try_echo
=$ac_try;;
6696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6697 (eval "$ac_compile") 2>conftest.er1
6699 grep -v '^ *+' conftest.er1
>conftest.err
6701 cat conftest.err
>&5
6702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703 (exit $ac_status); } && {
6704 test -z "$ac_c_werror_flag" ||
6705 test ! -s conftest.err
6706 } && test -s conftest.
$ac_objext; then
6709 echo "$as_me: failed program was:" >&5
6710 sed 's/^/| /' conftest.
$ac_ext >&5
6715 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6716 { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
6717 echo "${ECHO_T}$sol_lfs_bug" >&6; }
6718 if test "$sol_lfs_bug" = "yes"; then
6722 if test "$use_lfs" = "yes"; then
6723 # Two defines needed to enable largefile support on various platforms
6724 # These may affect some typedefs
6726 cat >>confdefs.h
<<\_ACEOF
6727 #define _LARGEFILE_SOURCE 1
6731 cat >>confdefs.h
<<\_ACEOF
6732 #define _FILE_OFFSET_BITS 64
6737 # Add some code to confdefs.h so that the test for off_t works on SCO
6738 cat >> confdefs.h
<<\EOF
6744 # Type availability checks
6745 { echo "$as_me:$LINENO: checking for mode_t" >&5
6746 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
6747 if test "${ac_cv_type_mode_t+set}" = set; then
6748 echo $ECHO_N "(cached) $ECHO_C" >&6
6750 cat >conftest.
$ac_ext <<_ACEOF
6753 cat confdefs.h
>>conftest.
$ac_ext
6754 cat >>conftest.
$ac_ext <<_ACEOF
6755 /* end confdefs.h. */
6756 $ac_includes_default
6757 typedef mode_t ac__type_new_;
6761 if ((ac__type_new_ *) 0)
6763 if (sizeof (ac__type_new_))
6769 rm -f conftest.
$ac_objext
6770 if { (ac_try
="$ac_compile"
6772 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6773 *) ac_try_echo=$ac_try;;
6775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6776 (eval "$ac_compile") 2>conftest.er1
6778 grep -v '^ *+' conftest.er1 >conftest.err
6780 cat conftest.err >&5
6781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782 (exit $ac_status); } && {
6783 test -z "$ac_c_werror_flag" ||
6784 test ! -s conftest.err
6785 } && test -s conftest.$ac_objext; then
6786 ac_cv_type_mode_t=yes
6788 echo "$as_me: failed program was:" >&5
6789 sed 's/^/| /' conftest.$ac_ext >&5
6791 ac_cv_type_mode_t=no
6794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6796 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6797 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
6798 if test $ac_cv_type_mode_t = yes; then
6802 cat >>confdefs.h <<_ACEOF
6808 { echo "$as_me:$LINENO: checking for off_t" >&5
6809 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6810 if test "${ac_cv_type_off_t+set}" = set; then
6811 echo $ECHO_N "(cached) $ECHO_C" >&6
6813 cat >conftest.$ac_ext <<_ACEOF
6816 cat confdefs.h >>conftest.$ac_ext
6817 cat >>conftest.$ac_ext <<_ACEOF
6818 /* end confdefs.h. */
6819 $ac_includes_default
6820 typedef off_t ac__type_new_;
6824 if ((ac__type_new_ *) 0)
6826 if (sizeof (ac__type_new_))
6832 rm -f conftest.$ac_objext
6833 if { (ac_try="$ac_compile"
6835 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6836 *) ac_try_echo
=$ac_try;;
6838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6839 (eval "$ac_compile") 2>conftest.er1
6841 grep -v '^ *+' conftest.er1
>conftest.err
6843 cat conftest.err
>&5
6844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845 (exit $ac_status); } && {
6846 test -z "$ac_c_werror_flag" ||
6847 test ! -s conftest.err
6848 } && test -s conftest.
$ac_objext; then
6849 ac_cv_type_off_t
=yes
6851 echo "$as_me: failed program was:" >&5
6852 sed 's/^/| /' conftest.
$ac_ext >&5
6857 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6859 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6860 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6861 if test $ac_cv_type_off_t = yes; then
6865 cat >>confdefs.h
<<_ACEOF
6866 #define off_t long int
6871 { echo "$as_me:$LINENO: checking for pid_t" >&5
6872 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
6873 if test "${ac_cv_type_pid_t+set}" = set; then
6874 echo $ECHO_N "(cached) $ECHO_C" >&6
6876 cat >conftest.
$ac_ext <<_ACEOF
6879 cat confdefs.h
>>conftest.
$ac_ext
6880 cat >>conftest.
$ac_ext <<_ACEOF
6881 /* end confdefs.h. */
6882 $ac_includes_default
6883 typedef pid_t ac__type_new_;
6887 if ((ac__type_new_ *) 0)
6889 if (sizeof (ac__type_new_))
6895 rm -f conftest.
$ac_objext
6896 if { (ac_try
="$ac_compile"
6898 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6899 *) ac_try_echo=$ac_try;;
6901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6902 (eval "$ac_compile") 2>conftest.er1
6904 grep -v '^ *+' conftest.er1 >conftest.err
6906 cat conftest.err >&5
6907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908 (exit $ac_status); } && {
6909 test -z "$ac_c_werror_flag" ||
6910 test ! -s conftest.err
6911 } && test -s conftest.$ac_objext; then
6912 ac_cv_type_pid_t=yes
6914 echo "$as_me: failed program was:" >&5
6915 sed 's/^/| /' conftest.$ac_ext >&5
6920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6922 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6923 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
6924 if test $ac_cv_type_pid_t = yes; then
6928 cat >>confdefs.h <<_ACEOF
6934 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6935 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6936 if test "${ac_cv_type_signal+set}" = set; then
6937 echo $ECHO_N "(cached) $ECHO_C" >&6
6939 cat >conftest.$ac_ext <<_ACEOF
6942 cat confdefs.h >>conftest.$ac_ext
6943 cat >>conftest.$ac_ext <<_ACEOF
6944 /* end confdefs.h. */
6945 #include <sys/types.h>
6951 return *(signal (0, 0)) (0) == 1;
6956 rm -f conftest.$ac_objext
6957 if { (ac_try="$ac_compile"
6959 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6960 *) ac_try_echo
=$ac_try;;
6962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6963 (eval "$ac_compile") 2>conftest.er1
6965 grep -v '^ *+' conftest.er1
>conftest.err
6967 cat conftest.err
>&5
6968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969 (exit $ac_status); } && {
6970 test -z "$ac_c_werror_flag" ||
6971 test ! -s conftest.err
6972 } && test -s conftest.
$ac_objext; then
6973 ac_cv_type_signal
=int
6975 echo "$as_me: failed program was:" >&5
6976 sed 's/^/| /' conftest.
$ac_ext >&5
6978 ac_cv_type_signal
=void
6981 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6983 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6984 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6986 cat >>confdefs.h
<<_ACEOF
6987 #define RETSIGTYPE $ac_cv_type_signal
6991 { echo "$as_me:$LINENO: checking for size_t" >&5
6992 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6993 if test "${ac_cv_type_size_t+set}" = set; then
6994 echo $ECHO_N "(cached) $ECHO_C" >&6
6996 cat >conftest.
$ac_ext <<_ACEOF
6999 cat confdefs.h
>>conftest.
$ac_ext
7000 cat >>conftest.
$ac_ext <<_ACEOF
7001 /* end confdefs.h. */
7002 $ac_includes_default
7003 typedef size_t ac__type_new_;
7007 if ((ac__type_new_ *) 0)
7009 if (sizeof (ac__type_new_))
7015 rm -f conftest.
$ac_objext
7016 if { (ac_try
="$ac_compile"
7018 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7019 *) ac_try_echo=$ac_try;;
7021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7022 (eval "$ac_compile") 2>conftest.er1
7024 grep -v '^ *+' conftest.er1 >conftest.err
7026 cat conftest.err >&5
7027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028 (exit $ac_status); } && {
7029 test -z "$ac_c_werror_flag" ||
7030 test ! -s conftest.err
7031 } && test -s conftest.$ac_objext; then
7032 ac_cv_type_size_t=yes
7034 echo "$as_me: failed program was:" >&5
7035 sed 's/^/| /' conftest.$ac_ext >&5
7037 ac_cv_type_size_t=no
7040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7042 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7043 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
7044 if test $ac_cv_type_size_t = yes; then
7048 cat >>confdefs.h <<_ACEOF
7049 #define size_t unsigned int
7054 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7055 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
7056 if test "${ac_cv_type_uid_t+set}" = set; then
7057 echo $ECHO_N "(cached) $ECHO_C" >&6
7059 cat >conftest.$ac_ext <<_ACEOF
7062 cat confdefs.h >>conftest.$ac_ext
7063 cat >>conftest.$ac_ext <<_ACEOF
7064 /* end confdefs.h. */
7065 #include <sys/types.h>
7068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7069 $EGREP "uid_t" >/dev/null 2>&1; then
7070 ac_cv_type_uid_t=yes
7077 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7078 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7079 if test $ac_cv_type_uid_t = no; then
7081 cat >>confdefs.h <<\_ACEOF
7086 cat >>confdefs.h <<\_ACEOF
7093 { echo "$as_me:$LINENO: checking for uint32_t" >&5
7094 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
7095 if test "${ac_cv_c_uint32_t+set}" = set; then
7096 echo $ECHO_N "(cached) $ECHO_C" >&6
7099 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
7100 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7101 cat >conftest.$ac_ext <<_ACEOF
7104 cat confdefs.h >>conftest.$ac_ext
7105 cat >>conftest.$ac_ext <<_ACEOF
7106 /* end confdefs.h. */
7107 $ac_includes_default
7111 static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
7118 rm -f conftest.$ac_objext
7119 if { (ac_try="$ac_compile"
7121 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7122 *) ac_try_echo
=$ac_try;;
7124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7125 (eval "$ac_compile") 2>conftest.er1
7127 grep -v '^ *+' conftest.er1
>conftest.err
7129 cat conftest.err
>&5
7130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131 (exit $ac_status); } && {
7132 test -z "$ac_c_werror_flag" ||
7133 test ! -s conftest.err
7134 } && test -s conftest.
$ac_objext; then
7136 uint32_t
) ac_cv_c_uint32_t
=yes ;;
7137 *) ac_cv_c_uint32_t
=$ac_type ;;
7141 echo "$as_me: failed program was:" >&5
7142 sed 's/^/| /' conftest.
$ac_ext >&5
7147 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7148 test "$ac_cv_c_uint32_t" != no
&& break
7151 { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
7152 echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
7153 case $ac_cv_c_uint32_t in #(
7157 cat >>confdefs.h
<<\_ACEOF
7162 cat >>confdefs.h
<<_ACEOF
7163 #define uint32_t $ac_cv_c_uint32_t
7169 { echo "$as_me:$LINENO: checking for uint64_t" >&5
7170 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
7171 if test "${ac_cv_c_uint64_t+set}" = set; then
7172 echo $ECHO_N "(cached) $ECHO_C" >&6
7175 for ac_type
in 'uint64_t' 'unsigned int' 'unsigned long int' \
7176 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7177 cat >conftest.
$ac_ext <<_ACEOF
7180 cat confdefs.h
>>conftest.
$ac_ext
7181 cat >>conftest.
$ac_ext <<_ACEOF
7182 /* end confdefs.h. */
7183 $ac_includes_default
7187 static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
7194 rm -f conftest.
$ac_objext
7195 if { (ac_try
="$ac_compile"
7197 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7198 *) ac_try_echo=$ac_try;;
7200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7201 (eval "$ac_compile") 2>conftest.er1
7203 grep -v '^ *+' conftest.er1 >conftest.err
7205 cat conftest.err >&5
7206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207 (exit $ac_status); } && {
7208 test -z "$ac_c_werror_flag" ||
7209 test ! -s conftest.err
7210 } && test -s conftest.$ac_objext; then
7212 uint64_t) ac_cv_c_uint64_t=yes ;;
7213 *) ac_cv_c_uint64_t=$ac_type ;;
7217 echo "$as_me: failed program was:" >&5
7218 sed 's/^/| /' conftest.$ac_ext >&5
7223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7224 test "$ac_cv_c_uint64_t" != no && break
7227 { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
7228 echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
7229 case $ac_cv_c_uint64_t in #(
7233 cat >>confdefs.h <<\_ACEOF
7238 cat >>confdefs.h <<_ACEOF
7239 #define uint64_t $ac_cv_c_uint64_t
7245 { echo "$as_me:$LINENO: checking for int32_t" >&5
7246 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
7247 if test "${ac_cv_c_int32_t+set}" = set; then
7248 echo $ECHO_N "(cached) $ECHO_C" >&6
7251 for ac_type in 'int32_t' 'int' 'long int' \
7252 'long long int' 'short int' 'signed char'; do
7253 cat >conftest.$ac_ext <<_ACEOF
7256 cat confdefs.h >>conftest.$ac_ext
7257 cat >>conftest.$ac_ext <<_ACEOF
7258 /* end confdefs.h. */
7259 $ac_includes_default
7263 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
7270 rm -f conftest.$ac_objext
7271 if { (ac_try="$ac_compile"
7273 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7274 *) ac_try_echo
=$ac_try;;
7276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7277 (eval "$ac_compile") 2>conftest.er1
7279 grep -v '^ *+' conftest.er1
>conftest.err
7281 cat conftest.err
>&5
7282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283 (exit $ac_status); } && {
7284 test -z "$ac_c_werror_flag" ||
7285 test ! -s conftest.err
7286 } && test -s conftest.
$ac_objext; then
7287 cat >conftest.
$ac_ext <<_ACEOF
7290 cat confdefs.h
>>conftest.
$ac_ext
7291 cat >>conftest.
$ac_ext <<_ACEOF
7292 /* end confdefs.h. */
7293 $ac_includes_default
7297 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
7298 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
7305 rm -f conftest.
$ac_objext
7306 if { (ac_try
="$ac_compile"
7308 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7309 *) ac_try_echo=$ac_try;;
7311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7312 (eval "$ac_compile") 2>conftest.er1
7314 grep -v '^ *+' conftest.er1 >conftest.err
7316 cat conftest.err >&5
7317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7318 (exit $ac_status); } && {
7319 test -z "$ac_c_werror_flag" ||
7320 test ! -s conftest.err
7321 } && test -s conftest.$ac_objext; then
7324 echo "$as_me: failed program was:" >&5
7325 sed 's/^/| /' conftest.$ac_ext >&5
7328 int32_t) ac_cv_c_int32_t=yes ;;
7329 *) ac_cv_c_int32_t=$ac_type ;;
7334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7336 echo "$as_me: failed program was:" >&5
7337 sed 's/^/| /' conftest.$ac_ext >&5
7342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7343 test "$ac_cv_c_int32_t" != no && break
7346 { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
7347 echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
7348 case $ac_cv_c_int32_t in #(
7352 cat >>confdefs.h <<_ACEOF
7353 #define int32_t $ac_cv_c_int32_t
7359 { echo "$as_me:$LINENO: checking for int64_t" >&5
7360 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
7361 if test "${ac_cv_c_int64_t+set}" = set; then
7362 echo $ECHO_N "(cached) $ECHO_C" >&6
7365 for ac_type in 'int64_t' 'int' 'long int' \
7366 'long long int' 'short int' 'signed char'; do
7367 cat >conftest.$ac_ext <<_ACEOF
7370 cat confdefs.h >>conftest.$ac_ext
7371 cat >>conftest.$ac_ext <<_ACEOF
7372 /* end confdefs.h. */
7373 $ac_includes_default
7377 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
7384 rm -f conftest.$ac_objext
7385 if { (ac_try="$ac_compile"
7387 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7388 *) ac_try_echo
=$ac_try;;
7390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7391 (eval "$ac_compile") 2>conftest.er1
7393 grep -v '^ *+' conftest.er1
>conftest.err
7395 cat conftest.err
>&5
7396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7397 (exit $ac_status); } && {
7398 test -z "$ac_c_werror_flag" ||
7399 test ! -s conftest.err
7400 } && test -s conftest.
$ac_objext; then
7401 cat >conftest.
$ac_ext <<_ACEOF
7404 cat confdefs.h
>>conftest.
$ac_ext
7405 cat >>conftest.
$ac_ext <<_ACEOF
7406 /* end confdefs.h. */
7407 $ac_includes_default
7411 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
7412 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
7419 rm -f conftest.
$ac_objext
7420 if { (ac_try
="$ac_compile"
7422 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7423 *) ac_try_echo=$ac_try;;
7425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7426 (eval "$ac_compile") 2>conftest.er1
7428 grep -v '^ *+' conftest.er1 >conftest.err
7430 cat conftest.err >&5
7431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7432 (exit $ac_status); } && {
7433 test -z "$ac_c_werror_flag" ||
7434 test ! -s conftest.err
7435 } && test -s conftest.$ac_objext; then
7438 echo "$as_me: failed program was:" >&5
7439 sed 's/^/| /' conftest.$ac_ext >&5
7442 int64_t) ac_cv_c_int64_t=yes ;;
7443 *) ac_cv_c_int64_t=$ac_type ;;
7448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7450 echo "$as_me: failed program was:" >&5
7451 sed 's/^/| /' conftest.$ac_ext >&5
7456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7457 test "$ac_cv_c_int64_t" != no && break
7460 { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
7461 echo "${ECHO_T}$ac_cv_c_int64_t" >&6; }
7462 case $ac_cv_c_int64_t in #(
7466 cat >>confdefs.h <<_ACEOF
7467 #define int64_t $ac_cv_c_int64_t
7472 { echo "$as_me:$LINENO: checking for ssize_t" >&5
7473 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
7474 if test "${ac_cv_type_ssize_t+set}" = set; then
7475 echo $ECHO_N "(cached) $ECHO_C" >&6
7477 cat >conftest.$ac_ext <<_ACEOF
7480 cat confdefs.h >>conftest.$ac_ext
7481 cat >>conftest.$ac_ext <<_ACEOF
7482 /* end confdefs.h. */
7483 $ac_includes_default
7484 typedef ssize_t ac__type_new_;
7488 if ((ac__type_new_ *) 0)
7490 if (sizeof (ac__type_new_))
7496 rm -f conftest.$ac_objext
7497 if { (ac_try="$ac_compile"
7499 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7500 *) ac_try_echo
=$ac_try;;
7502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7503 (eval "$ac_compile") 2>conftest.er1
7505 grep -v '^ *+' conftest.er1
>conftest.err
7507 cat conftest.err
>&5
7508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509 (exit $ac_status); } && {
7510 test -z "$ac_c_werror_flag" ||
7511 test ! -s conftest.err
7512 } && test -s conftest.
$ac_objext; then
7513 ac_cv_type_ssize_t
=yes
7515 echo "$as_me: failed program was:" >&5
7516 sed 's/^/| /' conftest.
$ac_ext >&5
7518 ac_cv_type_ssize_t
=no
7521 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7523 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7524 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
7525 if test $ac_cv_type_ssize_t = yes; then
7527 cat >>confdefs.h
<<\_ACEOF
7528 #define HAVE_SSIZE_T 1
7534 # Sizes of various common basic types
7535 # ANSI C requires sizeof(char) == 1, so no need to check it
7536 { echo "$as_me:$LINENO: checking for int" >&5
7537 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
7538 if test "${ac_cv_type_int+set}" = set; then
7539 echo $ECHO_N "(cached) $ECHO_C" >&6
7541 cat >conftest.
$ac_ext <<_ACEOF
7544 cat confdefs.h
>>conftest.
$ac_ext
7545 cat >>conftest.
$ac_ext <<_ACEOF
7546 /* end confdefs.h. */
7547 $ac_includes_default
7548 typedef int ac__type_new_;
7552 if ((ac__type_new_ *) 0)
7554 if (sizeof (ac__type_new_))
7560 rm -f conftest.
$ac_objext
7561 if { (ac_try
="$ac_compile"
7563 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7564 *) ac_try_echo=$ac_try;;
7566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7567 (eval "$ac_compile") 2>conftest.er1
7569 grep -v '^ *+' conftest.er1 >conftest.err
7571 cat conftest.err >&5
7572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7573 (exit $ac_status); } && {
7574 test -z "$ac_c_werror_flag" ||
7575 test ! -s conftest.err
7576 } && test -s conftest.$ac_objext; then
7579 echo "$as_me: failed program was:" >&5
7580 sed 's/^/| /' conftest.$ac_ext >&5
7585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7587 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7588 echo "${ECHO_T}$ac_cv_type_int" >&6; }
7590 # The cast to long int works around a bug in the HP C Compiler
7591 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7592 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
7593 # This bug is HP SR number 8606223364.
7594 { echo "$as_me:$LINENO: checking size of int" >&5
7595 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
7596 if test "${ac_cv_sizeof_int+set}" = set; then
7597 echo $ECHO_N "(cached) $ECHO_C" >&6
7599 if test "$cross_compiling" = yes; then
7600 # Depending upon the size, compute the lo and hi bounds.
7601 cat >conftest.$ac_ext <<_ACEOF
7604 cat confdefs.h >>conftest.$ac_ext
7605 cat >>conftest.$ac_ext <<_ACEOF
7606 /* end confdefs.h. */
7607 $ac_includes_default
7608 typedef int ac__type_sizeof_;
7612 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7619 rm -f conftest.$ac_objext
7620 if { (ac_try="$ac_compile"
7622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7623 *) ac_try_echo=$ac_try;;
7625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7626 (eval "$ac_compile") 2>conftest.er1
7628 grep -v '^
*+' conftest.er1 >conftest.err
7630 cat conftest.err >&5
7631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632 (exit $ac_status); } && {
7633 test -z "$ac_c_werror_flag" ||
7634 test ! -s conftest.err
7635 } && test -s conftest.$ac_objext; then
7638 cat >conftest.$ac_ext <<_ACEOF
7641 cat confdefs.h >>conftest.$ac_ext
7642 cat >>conftest.$ac_ext <<_ACEOF
7643 /* end confdefs.h. */
7644 $ac_includes_default
7645 typedef int ac__type_sizeof_;
7649 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7656 rm -f conftest.$ac_objext
7657 if { (ac_try="$ac_compile"
7659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7660 *) ac_try_echo=$ac_try;;
7662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7663 (eval "$ac_compile") 2>conftest.er1
7665 grep -v '^
*+' conftest.er1 >conftest.err
7667 cat conftest.err >&5
7668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); } && {
7670 test -z "$ac_c_werror_flag" ||
7671 test ! -s conftest.err
7672 } && test -s conftest.$ac_objext; then
7673 ac_hi=$ac_mid; break
7675 echo "$as_me: failed program was:" >&5
7676 sed 's
/^
/|
/' conftest.$ac_ext >&5
7678 ac_lo=`expr $ac_mid + 1`
7679 if test $ac_lo -le $ac_mid; then
7683 ac_mid=`expr 2 '*' $ac_mid + 1`
7686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7689 echo "$as_me: failed program was:" >&5
7690 sed 's
/^
/|
/' conftest.$ac_ext >&5
7692 cat >conftest.$ac_ext <<_ACEOF
7695 cat confdefs.h >>conftest.$ac_ext
7696 cat >>conftest.$ac_ext <<_ACEOF
7697 /* end confdefs.h. */
7698 $ac_includes_default
7699 typedef int ac__type_sizeof_;
7703 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7710 rm -f conftest.$ac_objext
7711 if { (ac_try="$ac_compile"
7713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7714 *) ac_try_echo=$ac_try;;
7716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7717 (eval "$ac_compile") 2>conftest.er1
7719 grep -v '^
*+' conftest.er1 >conftest.err
7721 cat conftest.err >&5
7722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723 (exit $ac_status); } && {
7724 test -z "$ac_c_werror_flag" ||
7725 test ! -s conftest.err
7726 } && test -s conftest.$ac_objext; then
7729 cat >conftest.$ac_ext <<_ACEOF
7732 cat confdefs.h >>conftest.$ac_ext
7733 cat >>conftest.$ac_ext <<_ACEOF
7734 /* end confdefs.h. */
7735 $ac_includes_default
7736 typedef int ac__type_sizeof_;
7740 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7747 rm -f conftest.$ac_objext
7748 if { (ac_try="$ac_compile"
7750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7751 *) ac_try_echo=$ac_try;;
7753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7754 (eval "$ac_compile") 2>conftest.er1
7756 grep -v '^
*+' conftest.er1 >conftest.err
7758 cat conftest.err >&5
7759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760 (exit $ac_status); } && {
7761 test -z "$ac_c_werror_flag" ||
7762 test ! -s conftest.err
7763 } && test -s conftest.$ac_objext; then
7764 ac_lo=$ac_mid; break
7766 echo "$as_me: failed program was:" >&5
7767 sed 's
/^
/|
/' conftest.$ac_ext >&5
7769 ac_hi=`expr '(' $ac_mid ')' - 1`
7770 if test $ac_mid -le $ac_hi; then
7774 ac_mid=`expr 2 '*' $ac_mid`
7777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7780 echo "$as_me: failed program was:" >&5
7781 sed 's
/^
/|
/' conftest.$ac_ext >&5
7786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7790 # Binary search between lo and hi bounds.
7791 while test "x$ac_lo" != "x$ac_hi"; do
7792 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7793 cat >conftest.$ac_ext <<_ACEOF
7796 cat confdefs.h >>conftest.$ac_ext
7797 cat >>conftest.$ac_ext <<_ACEOF
7798 /* end confdefs.h. */
7799 $ac_includes_default
7800 typedef int ac__type_sizeof_;
7804 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7811 rm -f conftest.$ac_objext
7812 if { (ac_try="$ac_compile"
7814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7815 *) ac_try_echo=$ac_try;;
7817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7818 (eval "$ac_compile") 2>conftest.er1
7820 grep -v '^
*+' conftest.er1 >conftest.err
7822 cat conftest.err >&5
7823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824 (exit $ac_status); } && {
7825 test -z "$ac_c_werror_flag" ||
7826 test ! -s conftest.err
7827 } && test -s conftest.$ac_objext; then
7830 echo "$as_me: failed program was:" >&5
7831 sed 's
/^
/|
/' conftest.$ac_ext >&5
7833 ac_lo=`expr '(' $ac_mid ')' + 1`
7836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7839 ?*) ac_cv_sizeof_int=$ac_lo;;
7840 '') if test "$ac_cv_type_int" = yes; then
7841 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7842 See \`config.log' for more details.
" >&5
7843 echo "$as_me: error
: cannot compute sizeof
(int
)
7844 See \
`config.log' for more details." >&2;}
7845 { (exit 77); exit 77; }; }
7851 cat >conftest.$ac_ext <<_ACEOF
7854 cat confdefs.h >>conftest.$ac_ext
7855 cat >>conftest.$ac_ext <<_ACEOF
7856 /* end confdefs.h. */
7857 $ac_includes_default
7858 typedef int ac__type_sizeof_;
7859 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7860 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7867 FILE *f = fopen ("conftest.val", "w");
7870 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7872 long int i = longval ();
7873 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7875 fprintf (f, "%ld\n", i);
7879 unsigned long int i = ulongval ();
7880 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7882 fprintf (f, "%lu\n", i);
7884 return ferror (f) || fclose (f) != 0;
7890 rm -f conftest$ac_exeext
7891 if { (ac_try="$ac_link"
7893 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7894 *) ac_try_echo
=$ac_try;;
7896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7897 (eval "$ac_link") 2>&5
7899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7901 { (case "(($ac_try" in
7902 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7903 *) ac_try_echo=$ac_try;;
7905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7906 (eval "$ac_try") 2>&5
7908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909 (exit $ac_status); }; }; then
7910 ac_cv_sizeof_int=`cat conftest.val
`
7912 echo "$as_me: program exited with status $ac_status" >&5
7913 echo "$as_me: failed program was:" >&5
7914 sed 's/^/| /' conftest.$ac_ext >&5
7917 if test "$ac_cv_type_int" = yes; then
7918 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7919 See \`config.log
' for more details." >&5
7920 echo "$as_me: error: cannot compute sizeof (int)
7921 See \`config.log' for more details.
" >&2;}
7922 { (exit 77); exit 77; }; }
7927 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7931 { echo "$as_me:$LINENO: result
: $ac_cv_sizeof_int" >&5
7932 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7936 cat >>confdefs.h <<_ACEOF
7937 #define SIZEOF_INT $ac_cv_sizeof_int
7941 { echo "$as_me:$LINENO: checking
for long
" >&5
7942 echo $ECHO_N "checking
for long...
$ECHO_C" >&6; }
7943 if test "${ac_cv_type_long+set}" = set; then
7944 echo $ECHO_N "(cached
) $ECHO_C" >&6
7946 cat >conftest.$ac_ext <<_ACEOF
7949 cat confdefs.h >>conftest.$ac_ext
7950 cat >>conftest.$ac_ext <<_ACEOF
7951 /* end confdefs.h. */
7952 $ac_includes_default
7953 typedef long ac__type_new_;
7957 if ((ac__type_new_ *) 0)
7959 if (sizeof (ac__type_new_))
7965 rm -f conftest.$ac_objext
7966 if { (ac_try="$ac_compile"
7968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7969 *) ac_try_echo=$ac_try;;
7971 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7972 (eval "$ac_compile") 2>conftest.er1
7974 grep -v '^ *+' conftest.er1 >conftest.err
7976 cat conftest.err >&5
7977 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7978 (exit $ac_status); } && {
7979 test -z "$ac_c_werror_flag" ||
7980 test ! -s conftest.err
7981 } && test -s conftest.$ac_objext; then
7984 echo "$as_me: failed program was
:" >&5
7985 sed 's/^/| /' conftest.$ac_ext >&5
7990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7992 { echo "$as_me:$LINENO: result
: $ac_cv_type_long" >&5
7993 echo "${ECHO_T}$ac_cv_type_long" >&6; }
7995 # The cast to long int works around a bug in the HP C Compiler
7996 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7997 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7998 # This bug is HP SR number 8606223364.
7999 { echo "$as_me:$LINENO: checking size of long
" >&5
8000 echo $ECHO_N "checking size of long...
$ECHO_C" >&6; }
8001 if test "${ac_cv_sizeof_long+set}" = set; then
8002 echo $ECHO_N "(cached
) $ECHO_C" >&6
8004 if test "$cross_compiling" = yes; then
8005 # Depending upon the size, compute the lo and hi bounds.
8006 cat >conftest.$ac_ext <<_ACEOF
8009 cat confdefs.h >>conftest.$ac_ext
8010 cat >>conftest.$ac_ext <<_ACEOF
8011 /* end confdefs.h. */
8012 $ac_includes_default
8013 typedef long ac__type_sizeof_;
8017 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8024 rm -f conftest.$ac_objext
8025 if { (ac_try="$ac_compile"
8027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8028 *) ac_try_echo=$ac_try;;
8030 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8031 (eval "$ac_compile") 2>conftest.er1
8033 grep -v '^ *+' conftest.er1 >conftest.err
8035 cat conftest.err >&5
8036 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8037 (exit $ac_status); } && {
8038 test -z "$ac_c_werror_flag" ||
8039 test ! -s conftest.err
8040 } && test -s conftest.$ac_objext; then
8043 cat >conftest.$ac_ext <<_ACEOF
8046 cat confdefs.h >>conftest.$ac_ext
8047 cat >>conftest.$ac_ext <<_ACEOF
8048 /* end confdefs.h. */
8049 $ac_includes_default
8050 typedef long ac__type_sizeof_;
8054 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8061 rm -f conftest.$ac_objext
8062 if { (ac_try="$ac_compile"
8064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8065 *) ac_try_echo=$ac_try;;
8067 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8068 (eval "$ac_compile") 2>conftest.er1
8070 grep -v '^ *+' conftest.er1 >conftest.err
8072 cat conftest.err >&5
8073 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8074 (exit $ac_status); } && {
8075 test -z "$ac_c_werror_flag" ||
8076 test ! -s conftest.err
8077 } && test -s conftest.$ac_objext; then
8078 ac_hi=$ac_mid; break
8080 echo "$as_me: failed program was
:" >&5
8081 sed 's/^/| /' conftest.$ac_ext >&5
8083 ac_lo=`expr $ac_mid + 1`
8084 if test $ac_lo -le $ac_mid; then
8088 ac_mid=`expr 2 '*' $ac_mid + 1`
8091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8094 echo "$as_me: failed program was
:" >&5
8095 sed 's/^/| /' conftest.$ac_ext >&5
8097 cat >conftest.$ac_ext <<_ACEOF
8100 cat confdefs.h >>conftest.$ac_ext
8101 cat >>conftest.$ac_ext <<_ACEOF
8102 /* end confdefs.h. */
8103 $ac_includes_default
8104 typedef long ac__type_sizeof_;
8108 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8115 rm -f conftest.$ac_objext
8116 if { (ac_try="$ac_compile"
8118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8119 *) ac_try_echo=$ac_try;;
8121 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8122 (eval "$ac_compile") 2>conftest.er1
8124 grep -v '^ *+' conftest.er1 >conftest.err
8126 cat conftest.err >&5
8127 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8128 (exit $ac_status); } && {
8129 test -z "$ac_c_werror_flag" ||
8130 test ! -s conftest.err
8131 } && test -s conftest.$ac_objext; then
8134 cat >conftest.$ac_ext <<_ACEOF
8137 cat confdefs.h >>conftest.$ac_ext
8138 cat >>conftest.$ac_ext <<_ACEOF
8139 /* end confdefs.h. */
8140 $ac_includes_default
8141 typedef long ac__type_sizeof_;
8145 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8152 rm -f conftest.$ac_objext
8153 if { (ac_try="$ac_compile"
8155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8156 *) ac_try_echo=$ac_try;;
8158 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8159 (eval "$ac_compile") 2>conftest.er1
8161 grep -v '^ *+' conftest.er1 >conftest.err
8163 cat conftest.err >&5
8164 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8165 (exit $ac_status); } && {
8166 test -z "$ac_c_werror_flag" ||
8167 test ! -s conftest.err
8168 } && test -s conftest.$ac_objext; then
8169 ac_lo=$ac_mid; break
8171 echo "$as_me: failed program was
:" >&5
8172 sed 's/^/| /' conftest.$ac_ext >&5
8174 ac_hi=`expr '(' $ac_mid ')' - 1`
8175 if test $ac_mid -le $ac_hi; then
8179 ac_mid=`expr 2 '*' $ac_mid`
8182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8185 echo "$as_me: failed program was
:" >&5
8186 sed 's/^/| /' conftest.$ac_ext >&5
8191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8195 # Binary search between lo and hi bounds.
8196 while test "x
$ac_lo" != "x
$ac_hi"; do
8197 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8198 cat >conftest.$ac_ext <<_ACEOF
8201 cat confdefs.h >>conftest.$ac_ext
8202 cat >>conftest.$ac_ext <<_ACEOF
8203 /* end confdefs.h. */
8204 $ac_includes_default
8205 typedef long ac__type_sizeof_;
8209 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8216 rm -f conftest.$ac_objext
8217 if { (ac_try="$ac_compile"
8219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8220 *) ac_try_echo=$ac_try;;
8222 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8223 (eval "$ac_compile") 2>conftest.er1
8225 grep -v '^ *+' conftest.er1 >conftest.err
8227 cat conftest.err >&5
8228 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8229 (exit $ac_status); } && {
8230 test -z "$ac_c_werror_flag" ||
8231 test ! -s conftest.err
8232 } && test -s conftest.$ac_objext; then
8235 echo "$as_me: failed program was
:" >&5
8236 sed 's/^/| /' conftest.$ac_ext >&5
8238 ac_lo=`expr '(' $ac_mid ')' + 1`
8241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8244 ?*) ac_cv_sizeof_long=$ac_lo;;
8245 '') if test "$ac_cv_type_long" = yes; then
8246 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long
)
8247 See \
`config.log' for more details." >&5
8248 echo "$as_me: error: cannot compute sizeof (long)
8249 See \`config.log
' for more details." >&2;}
8250 { (exit 77); exit 77; }; }
8256 cat >conftest.$ac_ext <<_ACEOF
8259 cat confdefs.h >>conftest.$ac_ext
8260 cat >>conftest.$ac_ext <<_ACEOF
8261 /* end confdefs.h. */
8262 $ac_includes_default
8263 typedef long ac__type_sizeof_;
8264 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8265 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8272 FILE *f = fopen ("conftest.val", "w");
8275 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8277 long int i = longval ();
8278 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8280 fprintf (f, "%ld\n", i);
8284 unsigned long int i = ulongval ();
8285 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8287 fprintf (f, "%lu\n", i);
8289 return ferror (f) || fclose (f) != 0;
8295 rm -f conftest$ac_exeext
8296 if { (ac_try="$ac_link"
8298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8299 *) ac_try_echo=$ac_try;;
8301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8302 (eval "$ac_link") 2>&5
8304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
8306 { (case "(($ac_try" in
8307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8308 *) ac_try_echo=$ac_try;;
8310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8311 (eval "$ac_try") 2>&5
8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314 (exit $ac_status); }; }; then
8315 ac_cv_sizeof_long=`cat conftest.val`
8317 echo "$as_me: program exited with status $ac_status" >&5
8318 echo "$as_me: failed program was:" >&5
8319 sed 's
/^
/|
/' conftest.$ac_ext >&5
8322 if test "$ac_cv_type_long" = yes; then
8323 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8324 See \`config.log' for more details.
" >&5
8325 echo "$as_me: error
: cannot compute sizeof
(long
)
8326 See \
`config.log' for more details." >&2;}
8327 { (exit 77); exit 77; }; }
8332 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8336 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8337 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
8341 cat >>confdefs.h <<_ACEOF
8342 #define SIZEOF_LONG $ac_cv_sizeof_long
8346 { echo "$as_me:$LINENO: checking for void *" >&5
8347 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
8348 if test "${ac_cv_type_void_p+set}" = set; then
8349 echo $ECHO_N "(cached) $ECHO_C" >&6
8351 cat >conftest.$ac_ext <<_ACEOF
8354 cat confdefs.h >>conftest.$ac_ext
8355 cat >>conftest.$ac_ext <<_ACEOF
8356 /* end confdefs.h. */
8357 $ac_includes_default
8358 typedef void * ac__type_new_;
8362 if ((ac__type_new_ *) 0)
8364 if (sizeof (ac__type_new_))
8370 rm -f conftest.$ac_objext
8371 if { (ac_try="$ac_compile"
8373 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8374 *) ac_try_echo
=$ac_try;;
8376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8377 (eval "$ac_compile") 2>conftest.er1
8379 grep -v '^ *+' conftest.er1
>conftest.err
8381 cat conftest.err
>&5
8382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383 (exit $ac_status); } && {
8384 test -z "$ac_c_werror_flag" ||
8385 test ! -s conftest.err
8386 } && test -s conftest.
$ac_objext; then
8387 ac_cv_type_void_p
=yes
8389 echo "$as_me: failed program was:" >&5
8390 sed 's/^/| /' conftest.
$ac_ext >&5
8392 ac_cv_type_void_p
=no
8395 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8397 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
8398 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
8400 # The cast to long int works around a bug in the HP C Compiler
8401 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8402 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8403 # This bug is HP SR number 8606223364.
8404 { echo "$as_me:$LINENO: checking size of void *" >&5
8405 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
8406 if test "${ac_cv_sizeof_void_p+set}" = set; then
8407 echo $ECHO_N "(cached) $ECHO_C" >&6
8409 if test "$cross_compiling" = yes; then
8410 # Depending upon the size, compute the lo and hi bounds.
8411 cat >conftest.
$ac_ext <<_ACEOF
8414 cat confdefs.h
>>conftest.
$ac_ext
8415 cat >>conftest.
$ac_ext <<_ACEOF
8416 /* end confdefs.h. */
8417 $ac_includes_default
8418 typedef void * ac__type_sizeof_;
8422 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8429 rm -f conftest.
$ac_objext
8430 if { (ac_try
="$ac_compile"
8432 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8433 *) ac_try_echo=$ac_try;;
8435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8436 (eval "$ac_compile") 2>conftest.er1
8438 grep -v '^ *+' conftest.er1 >conftest.err
8440 cat conftest.err >&5
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442 (exit $ac_status); } && {
8443 test -z "$ac_c_werror_flag" ||
8444 test ! -s conftest.err
8445 } && test -s conftest.$ac_objext; then
8448 cat >conftest.$ac_ext <<_ACEOF
8451 cat confdefs.h >>conftest.$ac_ext
8452 cat >>conftest.$ac_ext <<_ACEOF
8453 /* end confdefs.h. */
8454 $ac_includes_default
8455 typedef void * ac__type_sizeof_;
8459 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8466 rm -f conftest.$ac_objext
8467 if { (ac_try="$ac_compile"
8469 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8470 *) ac_try_echo
=$ac_try;;
8472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8473 (eval "$ac_compile") 2>conftest.er1
8475 grep -v '^ *+' conftest.er1
>conftest.err
8477 cat conftest.err
>&5
8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479 (exit $ac_status); } && {
8480 test -z "$ac_c_werror_flag" ||
8481 test ! -s conftest.err
8482 } && test -s conftest.
$ac_objext; then
8483 ac_hi
=$ac_mid; break
8485 echo "$as_me: failed program was:" >&5
8486 sed 's/^/| /' conftest.
$ac_ext >&5
8488 ac_lo
=`expr $ac_mid + 1`
8489 if test $ac_lo -le $ac_mid; then
8493 ac_mid
=`expr 2 '*' $ac_mid + 1`
8496 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8499 echo "$as_me: failed program was:" >&5
8500 sed 's/^/| /' conftest.
$ac_ext >&5
8502 cat >conftest.
$ac_ext <<_ACEOF
8505 cat confdefs.h
>>conftest.
$ac_ext
8506 cat >>conftest.
$ac_ext <<_ACEOF
8507 /* end confdefs.h. */
8508 $ac_includes_default
8509 typedef void * ac__type_sizeof_;
8513 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8520 rm -f conftest.
$ac_objext
8521 if { (ac_try
="$ac_compile"
8523 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8524 *) ac_try_echo=$ac_try;;
8526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8527 (eval "$ac_compile") 2>conftest.er1
8529 grep -v '^ *+' conftest.er1 >conftest.err
8531 cat conftest.err >&5
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); } && {
8534 test -z "$ac_c_werror_flag" ||
8535 test ! -s conftest.err
8536 } && test -s conftest.$ac_objext; then
8539 cat >conftest.$ac_ext <<_ACEOF
8542 cat confdefs.h >>conftest.$ac_ext
8543 cat >>conftest.$ac_ext <<_ACEOF
8544 /* end confdefs.h. */
8545 $ac_includes_default
8546 typedef void * ac__type_sizeof_;
8550 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8557 rm -f conftest.$ac_objext
8558 if { (ac_try="$ac_compile"
8560 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8561 *) ac_try_echo
=$ac_try;;
8563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8564 (eval "$ac_compile") 2>conftest.er1
8566 grep -v '^ *+' conftest.er1
>conftest.err
8568 cat conftest.err
>&5
8569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8570 (exit $ac_status); } && {
8571 test -z "$ac_c_werror_flag" ||
8572 test ! -s conftest.err
8573 } && test -s conftest.
$ac_objext; then
8574 ac_lo
=$ac_mid; break
8576 echo "$as_me: failed program was:" >&5
8577 sed 's/^/| /' conftest.
$ac_ext >&5
8579 ac_hi
=`expr '(' $ac_mid ')' - 1`
8580 if test $ac_mid -le $ac_hi; then
8584 ac_mid
=`expr 2 '*' $ac_mid`
8587 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8590 echo "$as_me: failed program was:" >&5
8591 sed 's/^/| /' conftest.
$ac_ext >&5
8596 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8599 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8600 # Binary search between lo and hi bounds.
8601 while test "x$ac_lo" != "x$ac_hi"; do
8602 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8603 cat >conftest.
$ac_ext <<_ACEOF
8606 cat confdefs.h
>>conftest.
$ac_ext
8607 cat >>conftest.
$ac_ext <<_ACEOF
8608 /* end confdefs.h. */
8609 $ac_includes_default
8610 typedef void * ac__type_sizeof_;
8614 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8621 rm -f conftest.
$ac_objext
8622 if { (ac_try
="$ac_compile"
8624 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8625 *) ac_try_echo=$ac_try;;
8627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8628 (eval "$ac_compile") 2>conftest.er1
8630 grep -v '^ *+' conftest.er1 >conftest.err
8632 cat conftest.err >&5
8633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634 (exit $ac_status); } && {
8635 test -z "$ac_c_werror_flag" ||
8636 test ! -s conftest.err
8637 } && test -s conftest.$ac_objext; then
8640 echo "$as_me: failed program was:" >&5
8641 sed 's/^/| /' conftest.$ac_ext >&5
8643 ac_lo=`expr '(' $ac_mid ')' + 1`
8646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8649 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8650 '') if test "$ac_cv_type_void_p" = yes; then
8651 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8652 See \`config.log
' for more details." >&5
8653 echo "$as_me: error: cannot compute sizeof (void *)
8654 See \`config.log' for more details.
" >&2;}
8655 { (exit 77); exit 77; }; }
8657 ac_cv_sizeof_void_p=0
8661 cat >conftest.$ac_ext <<_ACEOF
8664 cat confdefs.h >>conftest.$ac_ext
8665 cat >>conftest.$ac_ext <<_ACEOF
8666 /* end confdefs.h. */
8667 $ac_includes_default
8668 typedef void * ac__type_sizeof_;
8669 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8670 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8677 FILE *f = fopen ("conftest.val
", "w
");
8680 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8682 long int i = longval ();
8683 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8685 fprintf (f, "%ld
\n", i);
8689 unsigned long int i = ulongval ();
8690 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8692 fprintf (f, "%lu
\n", i);
8694 return ferror (f) || fclose (f) != 0;
8700 rm -f conftest$ac_exeext
8701 if { (ac_try="$ac_link"
8703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8704 *) ac_try_echo=$ac_try;;
8706 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8707 (eval "$ac_link") 2>&5
8709 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8710 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8711 { (case "(($ac_try" in
8712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8713 *) ac_try_echo=$ac_try;;
8715 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8716 (eval "$ac_try") 2>&5
8718 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8719 (exit $ac_status); }; }; then
8720 ac_cv_sizeof_void_p=`cat conftest.val`
8722 echo "$as_me: program exited with status
$ac_status" >&5
8723 echo "$as_me: failed program was
:" >&5
8724 sed 's/^/| /' conftest.$ac_ext >&5
8727 if test "$ac_cv_type_void_p" = yes; then
8728 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(void
*)
8729 See \
`config.log' for more details." >&5
8730 echo "$as_me: error: cannot compute sizeof (void *)
8731 See \`config.log
' for more details." >&2;}
8732 { (exit 77); exit 77; }; }
8734 ac_cv_sizeof_void_p=0
8737 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8741 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8742 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8746 cat >>confdefs.h <<_ACEOF
8747 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8751 { echo "$as_me:$LINENO: checking for short" >&5
8752 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
8753 if test "${ac_cv_type_short+set}" = set; then
8754 echo $ECHO_N "(cached) $ECHO_C" >&6
8756 cat >conftest.$ac_ext <<_ACEOF
8759 cat confdefs.h >>conftest.$ac_ext
8760 cat >>conftest.$ac_ext <<_ACEOF
8761 /* end confdefs.h. */
8762 $ac_includes_default
8763 typedef short ac__type_new_;
8767 if ((ac__type_new_ *) 0)
8769 if (sizeof (ac__type_new_))
8775 rm -f conftest.$ac_objext
8776 if { (ac_try="$ac_compile"
8778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8779 *) ac_try_echo=$ac_try;;
8781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8782 (eval "$ac_compile") 2>conftest.er1
8784 grep -v '^
*+' conftest.er1 >conftest.err
8786 cat conftest.err >&5
8787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8788 (exit $ac_status); } && {
8789 test -z "$ac_c_werror_flag" ||
8790 test ! -s conftest.err
8791 } && test -s conftest.$ac_objext; then
8792 ac_cv_type_short=yes
8794 echo "$as_me: failed program was:" >&5
8795 sed 's
/^
/|
/' conftest.$ac_ext >&5
8800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8802 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8803 echo "${ECHO_T}$ac_cv_type_short" >&6; }
8805 # The cast to long int works around a bug in the HP C Compiler
8806 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8807 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8808 # This bug is HP SR number 8606223364.
8809 { echo "$as_me:$LINENO: checking size of short" >&5
8810 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8811 if test "${ac_cv_sizeof_short+set}" = set; then
8812 echo $ECHO_N "(cached) $ECHO_C" >&6
8814 if test "$cross_compiling" = yes; then
8815 # Depending upon the size, compute the lo and hi bounds.
8816 cat >conftest.
$ac_ext <<_ACEOF
8819 cat confdefs.h
>>conftest.
$ac_ext
8820 cat >>conftest.
$ac_ext <<_ACEOF
8821 /* end confdefs.h. */
8822 $ac_includes_default
8823 typedef short ac__type_sizeof_;
8827 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8834 rm -f conftest.
$ac_objext
8835 if { (ac_try
="$ac_compile"
8837 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8838 *) ac_try_echo=$ac_try;;
8840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8841 (eval "$ac_compile") 2>conftest.er1
8843 grep -v '^ *+' conftest.er1 >conftest.err
8845 cat conftest.err >&5
8846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847 (exit $ac_status); } && {
8848 test -z "$ac_c_werror_flag" ||
8849 test ! -s conftest.err
8850 } && test -s conftest.$ac_objext; then
8853 cat >conftest.$ac_ext <<_ACEOF
8856 cat confdefs.h >>conftest.$ac_ext
8857 cat >>conftest.$ac_ext <<_ACEOF
8858 /* end confdefs.h. */
8859 $ac_includes_default
8860 typedef short ac__type_sizeof_;
8864 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8871 rm -f conftest.$ac_objext
8872 if { (ac_try="$ac_compile"
8874 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8875 *) ac_try_echo
=$ac_try;;
8877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8878 (eval "$ac_compile") 2>conftest.er1
8880 grep -v '^ *+' conftest.er1
>conftest.err
8882 cat conftest.err
>&5
8883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8884 (exit $ac_status); } && {
8885 test -z "$ac_c_werror_flag" ||
8886 test ! -s conftest.err
8887 } && test -s conftest.
$ac_objext; then
8888 ac_hi
=$ac_mid; break
8890 echo "$as_me: failed program was:" >&5
8891 sed 's/^/| /' conftest.
$ac_ext >&5
8893 ac_lo
=`expr $ac_mid + 1`
8894 if test $ac_lo -le $ac_mid; then
8898 ac_mid
=`expr 2 '*' $ac_mid + 1`
8901 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8904 echo "$as_me: failed program was:" >&5
8905 sed 's/^/| /' conftest.
$ac_ext >&5
8907 cat >conftest.
$ac_ext <<_ACEOF
8910 cat confdefs.h
>>conftest.
$ac_ext
8911 cat >>conftest.
$ac_ext <<_ACEOF
8912 /* end confdefs.h. */
8913 $ac_includes_default
8914 typedef short ac__type_sizeof_;
8918 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8925 rm -f conftest.
$ac_objext
8926 if { (ac_try
="$ac_compile"
8928 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8929 *) ac_try_echo=$ac_try;;
8931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8932 (eval "$ac_compile") 2>conftest.er1
8934 grep -v '^ *+' conftest.er1 >conftest.err
8936 cat conftest.err >&5
8937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8938 (exit $ac_status); } && {
8939 test -z "$ac_c_werror_flag" ||
8940 test ! -s conftest.err
8941 } && test -s conftest.$ac_objext; then
8944 cat >conftest.$ac_ext <<_ACEOF
8947 cat confdefs.h >>conftest.$ac_ext
8948 cat >>conftest.$ac_ext <<_ACEOF
8949 /* end confdefs.h. */
8950 $ac_includes_default
8951 typedef short ac__type_sizeof_;
8955 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8962 rm -f conftest.$ac_objext
8963 if { (ac_try="$ac_compile"
8965 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8966 *) ac_try_echo
=$ac_try;;
8968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8969 (eval "$ac_compile") 2>conftest.er1
8971 grep -v '^ *+' conftest.er1
>conftest.err
8973 cat conftest.err
>&5
8974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975 (exit $ac_status); } && {
8976 test -z "$ac_c_werror_flag" ||
8977 test ! -s conftest.err
8978 } && test -s conftest.
$ac_objext; then
8979 ac_lo
=$ac_mid; break
8981 echo "$as_me: failed program was:" >&5
8982 sed 's/^/| /' conftest.
$ac_ext >&5
8984 ac_hi
=`expr '(' $ac_mid ')' - 1`
8985 if test $ac_mid -le $ac_hi; then
8989 ac_mid
=`expr 2 '*' $ac_mid`
8992 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8995 echo "$as_me: failed program was:" >&5
8996 sed 's/^/| /' conftest.
$ac_ext >&5
9001 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9004 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9005 # Binary search between lo and hi bounds.
9006 while test "x$ac_lo" != "x$ac_hi"; do
9007 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9008 cat >conftest.
$ac_ext <<_ACEOF
9011 cat confdefs.h
>>conftest.
$ac_ext
9012 cat >>conftest.
$ac_ext <<_ACEOF
9013 /* end confdefs.h. */
9014 $ac_includes_default
9015 typedef short ac__type_sizeof_;
9019 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9026 rm -f conftest.
$ac_objext
9027 if { (ac_try
="$ac_compile"
9029 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9030 *) ac_try_echo=$ac_try;;
9032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9033 (eval "$ac_compile") 2>conftest.er1
9035 grep -v '^ *+' conftest.er1 >conftest.err
9037 cat conftest.err >&5
9038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039 (exit $ac_status); } && {
9040 test -z "$ac_c_werror_flag" ||
9041 test ! -s conftest.err
9042 } && test -s conftest.$ac_objext; then
9045 echo "$as_me: failed program was:" >&5
9046 sed 's/^/| /' conftest.$ac_ext >&5
9048 ac_lo=`expr '(' $ac_mid ')' + 1`
9051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9054 ?*) ac_cv_sizeof_short=$ac_lo;;
9055 '') if test "$ac_cv_type_short" = yes; then
9056 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
9057 See \`config.log
' for more details." >&5
9058 echo "$as_me: error: cannot compute sizeof (short)
9059 See \`config.log' for more details.
" >&2;}
9060 { (exit 77); exit 77; }; }
9062 ac_cv_sizeof_short=0
9066 cat >conftest.$ac_ext <<_ACEOF
9069 cat confdefs.h >>conftest.$ac_ext
9070 cat >>conftest.$ac_ext <<_ACEOF
9071 /* end confdefs.h. */
9072 $ac_includes_default
9073 typedef short ac__type_sizeof_;
9074 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9075 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9082 FILE *f = fopen ("conftest.val
", "w
");
9085 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9087 long int i = longval ();
9088 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9090 fprintf (f, "%ld
\n", i);
9094 unsigned long int i = ulongval ();
9095 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9097 fprintf (f, "%lu
\n", i);
9099 return ferror (f) || fclose (f) != 0;
9105 rm -f conftest$ac_exeext
9106 if { (ac_try="$ac_link"
9108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9109 *) ac_try_echo=$ac_try;;
9111 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9112 (eval "$ac_link") 2>&5
9114 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9115 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9116 { (case "(($ac_try" in
9117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9118 *) ac_try_echo=$ac_try;;
9120 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9121 (eval "$ac_try") 2>&5
9123 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9124 (exit $ac_status); }; }; then
9125 ac_cv_sizeof_short=`cat conftest.val`
9127 echo "$as_me: program exited with status
$ac_status" >&5
9128 echo "$as_me: failed program was
:" >&5
9129 sed 's/^/| /' conftest.$ac_ext >&5
9132 if test "$ac_cv_type_short" = yes; then
9133 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(short
)
9134 See \
`config.log' for more details." >&5
9135 echo "$as_me: error: cannot compute sizeof (short)
9136 See \`config.log
' for more details." >&2;}
9137 { (exit 77); exit 77; }; }
9139 ac_cv_sizeof_short=0
9142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9146 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
9147 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
9151 cat >>confdefs.h <<_ACEOF
9152 #define SIZEOF_SHORT $ac_cv_sizeof_short
9156 { echo "$as_me:$LINENO: checking for float" >&5
9157 echo $ECHO_N "checking for float... $ECHO_C" >&6; }
9158 if test "${ac_cv_type_float+set}" = set; then
9159 echo $ECHO_N "(cached) $ECHO_C" >&6
9161 cat >conftest.$ac_ext <<_ACEOF
9164 cat confdefs.h >>conftest.$ac_ext
9165 cat >>conftest.$ac_ext <<_ACEOF
9166 /* end confdefs.h. */
9167 $ac_includes_default
9168 typedef float ac__type_new_;
9172 if ((ac__type_new_ *) 0)
9174 if (sizeof (ac__type_new_))
9180 rm -f conftest.$ac_objext
9181 if { (ac_try="$ac_compile"
9183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9184 *) ac_try_echo=$ac_try;;
9186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9187 (eval "$ac_compile") 2>conftest.er1
9189 grep -v '^
*+' conftest.er1 >conftest.err
9191 cat conftest.err >&5
9192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193 (exit $ac_status); } && {
9194 test -z "$ac_c_werror_flag" ||
9195 test ! -s conftest.err
9196 } && test -s conftest.$ac_objext; then
9197 ac_cv_type_float=yes
9199 echo "$as_me: failed program was:" >&5
9200 sed 's
/^
/|
/' conftest.$ac_ext >&5
9205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9207 { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
9208 echo "${ECHO_T}$ac_cv_type_float" >&6; }
9210 # The cast to long int works around a bug in the HP C Compiler
9211 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9212 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9213 # This bug is HP SR number 8606223364.
9214 { echo "$as_me:$LINENO: checking size of float" >&5
9215 echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
9216 if test "${ac_cv_sizeof_float+set}" = set; then
9217 echo $ECHO_N "(cached) $ECHO_C" >&6
9219 if test "$cross_compiling" = yes; then
9220 # Depending upon the size, compute the lo and hi bounds.
9221 cat >conftest.
$ac_ext <<_ACEOF
9224 cat confdefs.h
>>conftest.
$ac_ext
9225 cat >>conftest.
$ac_ext <<_ACEOF
9226 /* end confdefs.h. */
9227 $ac_includes_default
9228 typedef float ac__type_sizeof_;
9232 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9239 rm -f conftest.
$ac_objext
9240 if { (ac_try
="$ac_compile"
9242 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9243 *) ac_try_echo=$ac_try;;
9245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9246 (eval "$ac_compile") 2>conftest.er1
9248 grep -v '^ *+' conftest.er1 >conftest.err
9250 cat conftest.err >&5
9251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9252 (exit $ac_status); } && {
9253 test -z "$ac_c_werror_flag" ||
9254 test ! -s conftest.err
9255 } && test -s conftest.$ac_objext; then
9258 cat >conftest.$ac_ext <<_ACEOF
9261 cat confdefs.h >>conftest.$ac_ext
9262 cat >>conftest.$ac_ext <<_ACEOF
9263 /* end confdefs.h. */
9264 $ac_includes_default
9265 typedef float ac__type_sizeof_;
9269 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9276 rm -f conftest.$ac_objext
9277 if { (ac_try="$ac_compile"
9279 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9280 *) ac_try_echo
=$ac_try;;
9282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9283 (eval "$ac_compile") 2>conftest.er1
9285 grep -v '^ *+' conftest.er1
>conftest.err
9287 cat conftest.err
>&5
9288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289 (exit $ac_status); } && {
9290 test -z "$ac_c_werror_flag" ||
9291 test ! -s conftest.err
9292 } && test -s conftest.
$ac_objext; then
9293 ac_hi
=$ac_mid; break
9295 echo "$as_me: failed program was:" >&5
9296 sed 's/^/| /' conftest.
$ac_ext >&5
9298 ac_lo
=`expr $ac_mid + 1`
9299 if test $ac_lo -le $ac_mid; then
9303 ac_mid
=`expr 2 '*' $ac_mid + 1`
9306 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9309 echo "$as_me: failed program was:" >&5
9310 sed 's/^/| /' conftest.
$ac_ext >&5
9312 cat >conftest.
$ac_ext <<_ACEOF
9315 cat confdefs.h
>>conftest.
$ac_ext
9316 cat >>conftest.
$ac_ext <<_ACEOF
9317 /* end confdefs.h. */
9318 $ac_includes_default
9319 typedef float ac__type_sizeof_;
9323 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9330 rm -f conftest.
$ac_objext
9331 if { (ac_try
="$ac_compile"
9333 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9334 *) ac_try_echo=$ac_try;;
9336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9337 (eval "$ac_compile") 2>conftest.er1
9339 grep -v '^ *+' conftest.er1 >conftest.err
9341 cat conftest.err >&5
9342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9343 (exit $ac_status); } && {
9344 test -z "$ac_c_werror_flag" ||
9345 test ! -s conftest.err
9346 } && test -s conftest.$ac_objext; then
9349 cat >conftest.$ac_ext <<_ACEOF
9352 cat confdefs.h >>conftest.$ac_ext
9353 cat >>conftest.$ac_ext <<_ACEOF
9354 /* end confdefs.h. */
9355 $ac_includes_default
9356 typedef float ac__type_sizeof_;
9360 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9367 rm -f conftest.$ac_objext
9368 if { (ac_try="$ac_compile"
9370 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9371 *) ac_try_echo
=$ac_try;;
9373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9374 (eval "$ac_compile") 2>conftest.er1
9376 grep -v '^ *+' conftest.er1
>conftest.err
9378 cat conftest.err
>&5
9379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380 (exit $ac_status); } && {
9381 test -z "$ac_c_werror_flag" ||
9382 test ! -s conftest.err
9383 } && test -s conftest.
$ac_objext; then
9384 ac_lo
=$ac_mid; break
9386 echo "$as_me: failed program was:" >&5
9387 sed 's/^/| /' conftest.
$ac_ext >&5
9389 ac_hi
=`expr '(' $ac_mid ')' - 1`
9390 if test $ac_mid -le $ac_hi; then
9394 ac_mid
=`expr 2 '*' $ac_mid`
9397 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9400 echo "$as_me: failed program was:" >&5
9401 sed 's/^/| /' conftest.
$ac_ext >&5
9406 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9409 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9410 # Binary search between lo and hi bounds.
9411 while test "x$ac_lo" != "x$ac_hi"; do
9412 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9413 cat >conftest.
$ac_ext <<_ACEOF
9416 cat confdefs.h
>>conftest.
$ac_ext
9417 cat >>conftest.
$ac_ext <<_ACEOF
9418 /* end confdefs.h. */
9419 $ac_includes_default
9420 typedef float ac__type_sizeof_;
9424 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9431 rm -f conftest.
$ac_objext
9432 if { (ac_try
="$ac_compile"
9434 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9435 *) ac_try_echo=$ac_try;;
9437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9438 (eval "$ac_compile") 2>conftest.er1
9440 grep -v '^ *+' conftest.er1 >conftest.err
9442 cat conftest.err >&5
9443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444 (exit $ac_status); } && {
9445 test -z "$ac_c_werror_flag" ||
9446 test ! -s conftest.err
9447 } && test -s conftest.$ac_objext; then
9450 echo "$as_me: failed program was:" >&5
9451 sed 's/^/| /' conftest.$ac_ext >&5
9453 ac_lo=`expr '(' $ac_mid ')' + 1`
9456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9459 ?*) ac_cv_sizeof_float=$ac_lo;;
9460 '') if test "$ac_cv_type_float" = yes; then
9461 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
9462 See \`config.log
' for more details." >&5
9463 echo "$as_me: error: cannot compute sizeof (float)
9464 See \`config.log' for more details.
" >&2;}
9465 { (exit 77); exit 77; }; }
9467 ac_cv_sizeof_float=0
9471 cat >conftest.$ac_ext <<_ACEOF
9474 cat confdefs.h >>conftest.$ac_ext
9475 cat >>conftest.$ac_ext <<_ACEOF
9476 /* end confdefs.h. */
9477 $ac_includes_default
9478 typedef float ac__type_sizeof_;
9479 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9480 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9487 FILE *f = fopen ("conftest.val
", "w
");
9490 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9492 long int i = longval ();
9493 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9495 fprintf (f, "%ld
\n", i);
9499 unsigned long int i = ulongval ();
9500 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9502 fprintf (f, "%lu
\n", i);
9504 return ferror (f) || fclose (f) != 0;
9510 rm -f conftest$ac_exeext
9511 if { (ac_try="$ac_link"
9513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9514 *) ac_try_echo=$ac_try;;
9516 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9517 (eval "$ac_link") 2>&5
9519 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9520 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9521 { (case "(($ac_try" in
9522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9523 *) ac_try_echo=$ac_try;;
9525 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9526 (eval "$ac_try") 2>&5
9528 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9529 (exit $ac_status); }; }; then
9530 ac_cv_sizeof_float=`cat conftest.val`
9532 echo "$as_me: program exited with status
$ac_status" >&5
9533 echo "$as_me: failed program was
:" >&5
9534 sed 's/^/| /' conftest.$ac_ext >&5
9537 if test "$ac_cv_type_float" = yes; then
9538 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(float
)
9539 See \
`config.log' for more details." >&5
9540 echo "$as_me: error: cannot compute sizeof (float)
9541 See \`config.log
' for more details." >&2;}
9542 { (exit 77); exit 77; }; }
9544 ac_cv_sizeof_float=0
9547 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9551 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
9552 echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
9556 cat >>confdefs.h <<_ACEOF
9557 #define SIZEOF_FLOAT $ac_cv_sizeof_float
9561 { echo "$as_me:$LINENO: checking for double" >&5
9562 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
9563 if test "${ac_cv_type_double+set}" = set; then
9564 echo $ECHO_N "(cached) $ECHO_C" >&6
9566 cat >conftest.$ac_ext <<_ACEOF
9569 cat confdefs.h >>conftest.$ac_ext
9570 cat >>conftest.$ac_ext <<_ACEOF
9571 /* end confdefs.h. */
9572 $ac_includes_default
9573 typedef double ac__type_new_;
9577 if ((ac__type_new_ *) 0)
9579 if (sizeof (ac__type_new_))
9585 rm -f conftest.$ac_objext
9586 if { (ac_try="$ac_compile"
9588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9589 *) ac_try_echo=$ac_try;;
9591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9592 (eval "$ac_compile") 2>conftest.er1
9594 grep -v '^
*+' conftest.er1 >conftest.err
9596 cat conftest.err >&5
9597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9598 (exit $ac_status); } && {
9599 test -z "$ac_c_werror_flag" ||
9600 test ! -s conftest.err
9601 } && test -s conftest.$ac_objext; then
9602 ac_cv_type_double=yes
9604 echo "$as_me: failed program was:" >&5
9605 sed 's
/^
/|
/' conftest.$ac_ext >&5
9607 ac_cv_type_double=no
9610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9612 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
9613 echo "${ECHO_T}$ac_cv_type_double" >&6; }
9615 # The cast to long int works around a bug in the HP C Compiler
9616 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9617 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9618 # This bug is HP SR number 8606223364.
9619 { echo "$as_me:$LINENO: checking size of double" >&5
9620 echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
9621 if test "${ac_cv_sizeof_double+set}" = set; then
9622 echo $ECHO_N "(cached) $ECHO_C" >&6
9624 if test "$cross_compiling" = yes; then
9625 # Depending upon the size, compute the lo and hi bounds.
9626 cat >conftest.
$ac_ext <<_ACEOF
9629 cat confdefs.h
>>conftest.
$ac_ext
9630 cat >>conftest.
$ac_ext <<_ACEOF
9631 /* end confdefs.h. */
9632 $ac_includes_default
9633 typedef double ac__type_sizeof_;
9637 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9644 rm -f conftest.
$ac_objext
9645 if { (ac_try
="$ac_compile"
9647 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9648 *) ac_try_echo=$ac_try;;
9650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9651 (eval "$ac_compile") 2>conftest.er1
9653 grep -v '^ *+' conftest.er1 >conftest.err
9655 cat conftest.err >&5
9656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657 (exit $ac_status); } && {
9658 test -z "$ac_c_werror_flag" ||
9659 test ! -s conftest.err
9660 } && test -s conftest.$ac_objext; then
9663 cat >conftest.$ac_ext <<_ACEOF
9666 cat confdefs.h >>conftest.$ac_ext
9667 cat >>conftest.$ac_ext <<_ACEOF
9668 /* end confdefs.h. */
9669 $ac_includes_default
9670 typedef double ac__type_sizeof_;
9674 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9681 rm -f conftest.$ac_objext
9682 if { (ac_try="$ac_compile"
9684 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9685 *) ac_try_echo
=$ac_try;;
9687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9688 (eval "$ac_compile") 2>conftest.er1
9690 grep -v '^ *+' conftest.er1
>conftest.err
9692 cat conftest.err
>&5
9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694 (exit $ac_status); } && {
9695 test -z "$ac_c_werror_flag" ||
9696 test ! -s conftest.err
9697 } && test -s conftest.
$ac_objext; then
9698 ac_hi
=$ac_mid; break
9700 echo "$as_me: failed program was:" >&5
9701 sed 's/^/| /' conftest.
$ac_ext >&5
9703 ac_lo
=`expr $ac_mid + 1`
9704 if test $ac_lo -le $ac_mid; then
9708 ac_mid
=`expr 2 '*' $ac_mid + 1`
9711 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9714 echo "$as_me: failed program was:" >&5
9715 sed 's/^/| /' conftest.
$ac_ext >&5
9717 cat >conftest.
$ac_ext <<_ACEOF
9720 cat confdefs.h
>>conftest.
$ac_ext
9721 cat >>conftest.
$ac_ext <<_ACEOF
9722 /* end confdefs.h. */
9723 $ac_includes_default
9724 typedef double ac__type_sizeof_;
9728 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9735 rm -f conftest.
$ac_objext
9736 if { (ac_try
="$ac_compile"
9738 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9739 *) ac_try_echo=$ac_try;;
9741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9742 (eval "$ac_compile") 2>conftest.er1
9744 grep -v '^ *+' conftest.er1 >conftest.err
9746 cat conftest.err >&5
9747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748 (exit $ac_status); } && {
9749 test -z "$ac_c_werror_flag" ||
9750 test ! -s conftest.err
9751 } && test -s conftest.$ac_objext; then
9754 cat >conftest.$ac_ext <<_ACEOF
9757 cat confdefs.h >>conftest.$ac_ext
9758 cat >>conftest.$ac_ext <<_ACEOF
9759 /* end confdefs.h. */
9760 $ac_includes_default
9761 typedef double ac__type_sizeof_;
9765 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9772 rm -f conftest.$ac_objext
9773 if { (ac_try="$ac_compile"
9775 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9776 *) ac_try_echo
=$ac_try;;
9778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9779 (eval "$ac_compile") 2>conftest.er1
9781 grep -v '^ *+' conftest.er1
>conftest.err
9783 cat conftest.err
>&5
9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785 (exit $ac_status); } && {
9786 test -z "$ac_c_werror_flag" ||
9787 test ! -s conftest.err
9788 } && test -s conftest.
$ac_objext; then
9789 ac_lo
=$ac_mid; break
9791 echo "$as_me: failed program was:" >&5
9792 sed 's/^/| /' conftest.
$ac_ext >&5
9794 ac_hi
=`expr '(' $ac_mid ')' - 1`
9795 if test $ac_mid -le $ac_hi; then
9799 ac_mid
=`expr 2 '*' $ac_mid`
9802 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9805 echo "$as_me: failed program was:" >&5
9806 sed 's/^/| /' conftest.
$ac_ext >&5
9811 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9814 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9815 # Binary search between lo and hi bounds.
9816 while test "x$ac_lo" != "x$ac_hi"; do
9817 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9818 cat >conftest.
$ac_ext <<_ACEOF
9821 cat confdefs.h
>>conftest.
$ac_ext
9822 cat >>conftest.
$ac_ext <<_ACEOF
9823 /* end confdefs.h. */
9824 $ac_includes_default
9825 typedef double ac__type_sizeof_;
9829 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9836 rm -f conftest.
$ac_objext
9837 if { (ac_try
="$ac_compile"
9839 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9840 *) ac_try_echo=$ac_try;;
9842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9843 (eval "$ac_compile") 2>conftest.er1
9845 grep -v '^ *+' conftest.er1 >conftest.err
9847 cat conftest.err >&5
9848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 (exit $ac_status); } && {
9850 test -z "$ac_c_werror_flag" ||
9851 test ! -s conftest.err
9852 } && test -s conftest.$ac_objext; then
9855 echo "$as_me: failed program was:" >&5
9856 sed 's/^/| /' conftest.$ac_ext >&5
9858 ac_lo=`expr '(' $ac_mid ')' + 1`
9861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9864 ?*) ac_cv_sizeof_double=$ac_lo;;
9865 '') if test "$ac_cv_type_double" = yes; then
9866 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9867 See \`config.log
' for more details." >&5
9868 echo "$as_me: error: cannot compute sizeof (double)
9869 See \`config.log' for more details.
" >&2;}
9870 { (exit 77); exit 77; }; }
9872 ac_cv_sizeof_double=0
9876 cat >conftest.$ac_ext <<_ACEOF
9879 cat confdefs.h >>conftest.$ac_ext
9880 cat >>conftest.$ac_ext <<_ACEOF
9881 /* end confdefs.h. */
9882 $ac_includes_default
9883 typedef double ac__type_sizeof_;
9884 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9885 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9892 FILE *f = fopen ("conftest.val
", "w
");
9895 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9897 long int i = longval ();
9898 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9900 fprintf (f, "%ld
\n", i);
9904 unsigned long int i = ulongval ();
9905 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9907 fprintf (f, "%lu
\n", i);
9909 return ferror (f) || fclose (f) != 0;
9915 rm -f conftest$ac_exeext
9916 if { (ac_try="$ac_link"
9918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9919 *) ac_try_echo=$ac_try;;
9921 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9922 (eval "$ac_link") 2>&5
9924 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9925 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9926 { (case "(($ac_try" in
9927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9928 *) ac_try_echo=$ac_try;;
9930 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9931 (eval "$ac_try") 2>&5
9933 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9934 (exit $ac_status); }; }; then
9935 ac_cv_sizeof_double=`cat conftest.val`
9937 echo "$as_me: program exited with status
$ac_status" >&5
9938 echo "$as_me: failed program was
:" >&5
9939 sed 's/^/| /' conftest.$ac_ext >&5
9942 if test "$ac_cv_type_double" = yes; then
9943 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(double
)
9944 See \
`config.log' for more details." >&5
9945 echo "$as_me: error: cannot compute sizeof (double)
9946 See \`config.log
' for more details." >&2;}
9947 { (exit 77); exit 77; }; }
9949 ac_cv_sizeof_double=0
9952 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9956 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
9957 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
9961 cat >>confdefs.h <<_ACEOF
9962 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
9966 { echo "$as_me:$LINENO: checking for fpos_t" >&5
9967 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; }
9968 if test "${ac_cv_type_fpos_t+set}" = set; then
9969 echo $ECHO_N "(cached) $ECHO_C" >&6
9971 cat >conftest.$ac_ext <<_ACEOF
9974 cat confdefs.h >>conftest.$ac_ext
9975 cat >>conftest.$ac_ext <<_ACEOF
9976 /* end confdefs.h. */
9977 $ac_includes_default
9978 typedef fpos_t ac__type_new_;
9982 if ((ac__type_new_ *) 0)
9984 if (sizeof (ac__type_new_))
9990 rm -f conftest.$ac_objext
9991 if { (ac_try="$ac_compile"
9993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9994 *) ac_try_echo=$ac_try;;
9996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9997 (eval "$ac_compile") 2>conftest.er1
9999 grep -v '^
*+' conftest.er1 >conftest.err
10001 cat conftest.err >&5
10002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003 (exit $ac_status); } && {
10004 test -z "$ac_c_werror_flag" ||
10005 test ! -s conftest.err
10006 } && test -s conftest.$ac_objext; then
10007 ac_cv_type_fpos_t=yes
10009 echo "$as_me: failed program was:" >&5
10010 sed 's
/^
/|
/' conftest.$ac_ext >&5
10012 ac_cv_type_fpos_t=no
10015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10017 { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
10018 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; }
10020 # The cast to long int works around a bug in the HP C Compiler
10021 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10022 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10023 # This bug is HP SR number 8606223364.
10024 { echo "$as_me:$LINENO: checking size of fpos_t" >&5
10025 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; }
10026 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
10027 echo $ECHO_N "(cached) $ECHO_C" >&6
10029 if test "$cross_compiling" = yes; then
10030 # Depending upon the size, compute the lo and hi bounds.
10031 cat >conftest.
$ac_ext <<_ACEOF
10034 cat confdefs.h
>>conftest.
$ac_ext
10035 cat >>conftest.
$ac_ext <<_ACEOF
10036 /* end confdefs.h. */
10037 $ac_includes_default
10038 typedef fpos_t ac__type_sizeof_;
10042 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10049 rm -f conftest.
$ac_objext
10050 if { (ac_try
="$ac_compile"
10051 case "(($ac_try" in
10052 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10053 *) ac_try_echo=$ac_try;;
10055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10056 (eval "$ac_compile") 2>conftest.er1
10058 grep -v '^ *+' conftest.er1 >conftest.err
10060 cat conftest.err >&5
10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062 (exit $ac_status); } && {
10063 test -z "$ac_c_werror_flag" ||
10064 test ! -s conftest.err
10065 } && test -s conftest.$ac_objext; then
10068 cat >conftest.$ac_ext <<_ACEOF
10071 cat confdefs.h >>conftest.$ac_ext
10072 cat >>conftest.$ac_ext <<_ACEOF
10073 /* end confdefs.h. */
10074 $ac_includes_default
10075 typedef fpos_t ac__type_sizeof_;
10079 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10086 rm -f conftest.$ac_objext
10087 if { (ac_try="$ac_compile"
10088 case "(($ac_try" in
10089 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10090 *) ac_try_echo
=$ac_try;;
10092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10093 (eval "$ac_compile") 2>conftest.er1
10095 grep -v '^ *+' conftest.er1
>conftest.err
10097 cat conftest.err
>&5
10098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099 (exit $ac_status); } && {
10100 test -z "$ac_c_werror_flag" ||
10101 test ! -s conftest.err
10102 } && test -s conftest.
$ac_objext; then
10103 ac_hi
=$ac_mid; break
10105 echo "$as_me: failed program was:" >&5
10106 sed 's/^/| /' conftest.
$ac_ext >&5
10108 ac_lo
=`expr $ac_mid + 1`
10109 if test $ac_lo -le $ac_mid; then
10113 ac_mid
=`expr 2 '*' $ac_mid + 1`
10116 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10119 echo "$as_me: failed program was:" >&5
10120 sed 's/^/| /' conftest.
$ac_ext >&5
10122 cat >conftest.
$ac_ext <<_ACEOF
10125 cat confdefs.h
>>conftest.
$ac_ext
10126 cat >>conftest.
$ac_ext <<_ACEOF
10127 /* end confdefs.h. */
10128 $ac_includes_default
10129 typedef fpos_t ac__type_sizeof_;
10133 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10140 rm -f conftest.
$ac_objext
10141 if { (ac_try
="$ac_compile"
10142 case "(($ac_try" in
10143 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10144 *) ac_try_echo=$ac_try;;
10146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10147 (eval "$ac_compile") 2>conftest.er1
10149 grep -v '^ *+' conftest.er1 >conftest.err
10151 cat conftest.err >&5
10152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153 (exit $ac_status); } && {
10154 test -z "$ac_c_werror_flag" ||
10155 test ! -s conftest.err
10156 } && test -s conftest.$ac_objext; then
10159 cat >conftest.$ac_ext <<_ACEOF
10162 cat confdefs.h >>conftest.$ac_ext
10163 cat >>conftest.$ac_ext <<_ACEOF
10164 /* end confdefs.h. */
10165 $ac_includes_default
10166 typedef fpos_t ac__type_sizeof_;
10170 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10177 rm -f conftest.$ac_objext
10178 if { (ac_try="$ac_compile"
10179 case "(($ac_try" in
10180 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10181 *) ac_try_echo
=$ac_try;;
10183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10184 (eval "$ac_compile") 2>conftest.er1
10186 grep -v '^ *+' conftest.er1
>conftest.err
10188 cat conftest.err
>&5
10189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190 (exit $ac_status); } && {
10191 test -z "$ac_c_werror_flag" ||
10192 test ! -s conftest.err
10193 } && test -s conftest.
$ac_objext; then
10194 ac_lo
=$ac_mid; break
10196 echo "$as_me: failed program was:" >&5
10197 sed 's/^/| /' conftest.
$ac_ext >&5
10199 ac_hi
=`expr '(' $ac_mid ')' - 1`
10200 if test $ac_mid -le $ac_hi; then
10204 ac_mid
=`expr 2 '*' $ac_mid`
10207 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10210 echo "$as_me: failed program was:" >&5
10211 sed 's/^/| /' conftest.
$ac_ext >&5
10216 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10219 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10220 # Binary search between lo and hi bounds.
10221 while test "x$ac_lo" != "x$ac_hi"; do
10222 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10223 cat >conftest.
$ac_ext <<_ACEOF
10226 cat confdefs.h
>>conftest.
$ac_ext
10227 cat >>conftest.
$ac_ext <<_ACEOF
10228 /* end confdefs.h. */
10229 $ac_includes_default
10230 typedef fpos_t ac__type_sizeof_;
10234 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10241 rm -f conftest.
$ac_objext
10242 if { (ac_try
="$ac_compile"
10243 case "(($ac_try" in
10244 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10245 *) ac_try_echo=$ac_try;;
10247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10248 (eval "$ac_compile") 2>conftest.er1
10250 grep -v '^ *+' conftest.er1 >conftest.err
10252 cat conftest.err >&5
10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); } && {
10255 test -z "$ac_c_werror_flag" ||
10256 test ! -s conftest.err
10257 } && test -s conftest.$ac_objext; then
10260 echo "$as_me: failed program was:" >&5
10261 sed 's/^/| /' conftest.$ac_ext >&5
10263 ac_lo=`expr '(' $ac_mid ')' + 1`
10266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10269 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
10270 '') if test "$ac_cv_type_fpos_t" = yes; then
10271 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
10272 See \`config.log
' for more details." >&5
10273 echo "$as_me: error: cannot compute sizeof (fpos_t)
10274 See \`config.log' for more details.
" >&2;}
10275 { (exit 77); exit 77; }; }
10277 ac_cv_sizeof_fpos_t=0
10281 cat >conftest.$ac_ext <<_ACEOF
10284 cat confdefs.h >>conftest.$ac_ext
10285 cat >>conftest.$ac_ext <<_ACEOF
10286 /* end confdefs.h. */
10287 $ac_includes_default
10288 typedef fpos_t ac__type_sizeof_;
10289 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10290 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10292 #include <stdlib.h>
10297 FILE *f = fopen ("conftest.val
", "w
");
10300 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10302 long int i = longval ();
10303 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10305 fprintf (f, "%ld
\n", i);
10309 unsigned long int i = ulongval ();
10310 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10312 fprintf (f, "%lu
\n", i);
10314 return ferror (f) || fclose (f) != 0;
10320 rm -f conftest$ac_exeext
10321 if { (ac_try="$ac_link"
10322 case "(($ac_try" in
10323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10324 *) ac_try_echo=$ac_try;;
10326 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10327 (eval "$ac_link") 2>&5
10329 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10330 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10331 { (case "(($ac_try" in
10332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10333 *) ac_try_echo=$ac_try;;
10335 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10336 (eval "$ac_try") 2>&5
10338 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10339 (exit $ac_status); }; }; then
10340 ac_cv_sizeof_fpos_t=`cat conftest.val`
10342 echo "$as_me: program exited with status
$ac_status" >&5
10343 echo "$as_me: failed program was
:" >&5
10344 sed 's/^/| /' conftest.$ac_ext >&5
10346 ( exit $ac_status )
10347 if test "$ac_cv_type_fpos_t" = yes; then
10348 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(fpos_t
)
10349 See \
`config.log' for more details." >&5
10350 echo "$as_me: error: cannot compute sizeof (fpos_t)
10351 See \`config.log
' for more details." >&2;}
10352 { (exit 77); exit 77; }; }
10354 ac_cv_sizeof_fpos_t=0
10357 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10361 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
10362 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; }
10366 cat >>confdefs.h <<_ACEOF
10367 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
10371 { echo "$as_me:$LINENO: checking for size_t" >&5
10372 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
10373 if test "${ac_cv_type_size_t+set}" = set; then
10374 echo $ECHO_N "(cached) $ECHO_C" >&6
10376 cat >conftest.$ac_ext <<_ACEOF
10379 cat confdefs.h >>conftest.$ac_ext
10380 cat >>conftest.$ac_ext <<_ACEOF
10381 /* end confdefs.h. */
10382 $ac_includes_default
10383 typedef size_t ac__type_new_;
10387 if ((ac__type_new_ *) 0)
10389 if (sizeof (ac__type_new_))
10395 rm -f conftest.$ac_objext
10396 if { (ac_try="$ac_compile"
10397 case "(($ac_try" in
10398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10399 *) ac_try_echo=$ac_try;;
10401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10402 (eval "$ac_compile") 2>conftest.er1
10404 grep -v '^
*+' conftest.er1 >conftest.err
10406 cat conftest.err >&5
10407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408 (exit $ac_status); } && {
10409 test -z "$ac_c_werror_flag" ||
10410 test ! -s conftest.err
10411 } && test -s conftest.$ac_objext; then
10412 ac_cv_type_size_t=yes
10414 echo "$as_me: failed program was:" >&5
10415 sed 's
/^
/|
/' conftest.$ac_ext >&5
10417 ac_cv_type_size_t=no
10420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10422 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10423 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
10425 # The cast to long int works around a bug in the HP C Compiler
10426 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10427 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10428 # This bug is HP SR number 8606223364.
10429 { echo "$as_me:$LINENO: checking size of size_t" >&5
10430 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
10431 if test "${ac_cv_sizeof_size_t+set}" = set; then
10432 echo $ECHO_N "(cached) $ECHO_C" >&6
10434 if test "$cross_compiling" = yes; then
10435 # Depending upon the size, compute the lo and hi bounds.
10436 cat >conftest.
$ac_ext <<_ACEOF
10439 cat confdefs.h
>>conftest.
$ac_ext
10440 cat >>conftest.
$ac_ext <<_ACEOF
10441 /* end confdefs.h. */
10442 $ac_includes_default
10443 typedef size_t ac__type_sizeof_;
10447 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10454 rm -f conftest.
$ac_objext
10455 if { (ac_try
="$ac_compile"
10456 case "(($ac_try" in
10457 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10458 *) ac_try_echo=$ac_try;;
10460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10461 (eval "$ac_compile") 2>conftest.er1
10463 grep -v '^ *+' conftest.er1 >conftest.err
10465 cat conftest.err >&5
10466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467 (exit $ac_status); } && {
10468 test -z "$ac_c_werror_flag" ||
10469 test ! -s conftest.err
10470 } && test -s conftest.$ac_objext; then
10473 cat >conftest.$ac_ext <<_ACEOF
10476 cat confdefs.h >>conftest.$ac_ext
10477 cat >>conftest.$ac_ext <<_ACEOF
10478 /* end confdefs.h. */
10479 $ac_includes_default
10480 typedef size_t ac__type_sizeof_;
10484 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10491 rm -f conftest.$ac_objext
10492 if { (ac_try="$ac_compile"
10493 case "(($ac_try" in
10494 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10495 *) ac_try_echo
=$ac_try;;
10497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10498 (eval "$ac_compile") 2>conftest.er1
10500 grep -v '^ *+' conftest.er1
>conftest.err
10502 cat conftest.err
>&5
10503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504 (exit $ac_status); } && {
10505 test -z "$ac_c_werror_flag" ||
10506 test ! -s conftest.err
10507 } && test -s conftest.
$ac_objext; then
10508 ac_hi
=$ac_mid; break
10510 echo "$as_me: failed program was:" >&5
10511 sed 's/^/| /' conftest.
$ac_ext >&5
10513 ac_lo
=`expr $ac_mid + 1`
10514 if test $ac_lo -le $ac_mid; then
10518 ac_mid
=`expr 2 '*' $ac_mid + 1`
10521 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10524 echo "$as_me: failed program was:" >&5
10525 sed 's/^/| /' conftest.
$ac_ext >&5
10527 cat >conftest.
$ac_ext <<_ACEOF
10530 cat confdefs.h
>>conftest.
$ac_ext
10531 cat >>conftest.
$ac_ext <<_ACEOF
10532 /* end confdefs.h. */
10533 $ac_includes_default
10534 typedef size_t ac__type_sizeof_;
10538 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10545 rm -f conftest.
$ac_objext
10546 if { (ac_try
="$ac_compile"
10547 case "(($ac_try" in
10548 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10549 *) ac_try_echo=$ac_try;;
10551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10552 (eval "$ac_compile") 2>conftest.er1
10554 grep -v '^ *+' conftest.er1 >conftest.err
10556 cat conftest.err >&5
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); } && {
10559 test -z "$ac_c_werror_flag" ||
10560 test ! -s conftest.err
10561 } && test -s conftest.$ac_objext; then
10564 cat >conftest.$ac_ext <<_ACEOF
10567 cat confdefs.h >>conftest.$ac_ext
10568 cat >>conftest.$ac_ext <<_ACEOF
10569 /* end confdefs.h. */
10570 $ac_includes_default
10571 typedef size_t ac__type_sizeof_;
10575 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10582 rm -f conftest.$ac_objext
10583 if { (ac_try="$ac_compile"
10584 case "(($ac_try" in
10585 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10586 *) ac_try_echo
=$ac_try;;
10588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10589 (eval "$ac_compile") 2>conftest.er1
10591 grep -v '^ *+' conftest.er1
>conftest.err
10593 cat conftest.err
>&5
10594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595 (exit $ac_status); } && {
10596 test -z "$ac_c_werror_flag" ||
10597 test ! -s conftest.err
10598 } && test -s conftest.
$ac_objext; then
10599 ac_lo
=$ac_mid; break
10601 echo "$as_me: failed program was:" >&5
10602 sed 's/^/| /' conftest.
$ac_ext >&5
10604 ac_hi
=`expr '(' $ac_mid ')' - 1`
10605 if test $ac_mid -le $ac_hi; then
10609 ac_mid
=`expr 2 '*' $ac_mid`
10612 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10615 echo "$as_me: failed program was:" >&5
10616 sed 's/^/| /' conftest.
$ac_ext >&5
10621 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10624 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10625 # Binary search between lo and hi bounds.
10626 while test "x$ac_lo" != "x$ac_hi"; do
10627 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10628 cat >conftest.
$ac_ext <<_ACEOF
10631 cat confdefs.h
>>conftest.
$ac_ext
10632 cat >>conftest.
$ac_ext <<_ACEOF
10633 /* end confdefs.h. */
10634 $ac_includes_default
10635 typedef size_t ac__type_sizeof_;
10639 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10646 rm -f conftest.
$ac_objext
10647 if { (ac_try
="$ac_compile"
10648 case "(($ac_try" in
10649 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10650 *) ac_try_echo=$ac_try;;
10652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10653 (eval "$ac_compile") 2>conftest.er1
10655 grep -v '^ *+' conftest.er1 >conftest.err
10657 cat conftest.err >&5
10658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10659 (exit $ac_status); } && {
10660 test -z "$ac_c_werror_flag" ||
10661 test ! -s conftest.err
10662 } && test -s conftest.$ac_objext; then
10665 echo "$as_me: failed program was:" >&5
10666 sed 's/^/| /' conftest.$ac_ext >&5
10668 ac_lo=`expr '(' $ac_mid ')' + 1`
10671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10674 ?*) ac_cv_sizeof_size_t=$ac_lo;;
10675 '') if test "$ac_cv_type_size_t" = yes; then
10676 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10677 See \`config.log
' for more details." >&5
10678 echo "$as_me: error: cannot compute sizeof (size_t)
10679 See \`config.log' for more details.
" >&2;}
10680 { (exit 77); exit 77; }; }
10682 ac_cv_sizeof_size_t=0
10686 cat >conftest.$ac_ext <<_ACEOF
10689 cat confdefs.h >>conftest.$ac_ext
10690 cat >>conftest.$ac_ext <<_ACEOF
10691 /* end confdefs.h. */
10692 $ac_includes_default
10693 typedef size_t ac__type_sizeof_;
10694 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10695 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10697 #include <stdlib.h>
10702 FILE *f = fopen ("conftest.val
", "w
");
10705 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10707 long int i = longval ();
10708 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10710 fprintf (f, "%ld
\n", i);
10714 unsigned long int i = ulongval ();
10715 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10717 fprintf (f, "%lu
\n", i);
10719 return ferror (f) || fclose (f) != 0;
10725 rm -f conftest$ac_exeext
10726 if { (ac_try="$ac_link"
10727 case "(($ac_try" in
10728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10729 *) ac_try_echo=$ac_try;;
10731 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10732 (eval "$ac_link") 2>&5
10734 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10735 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10736 { (case "(($ac_try" in
10737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10738 *) ac_try_echo=$ac_try;;
10740 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10741 (eval "$ac_try") 2>&5
10743 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10744 (exit $ac_status); }; }; then
10745 ac_cv_sizeof_size_t=`cat conftest.val`
10747 echo "$as_me: program exited with status
$ac_status" >&5
10748 echo "$as_me: failed program was
:" >&5
10749 sed 's/^/| /' conftest.$ac_ext >&5
10751 ( exit $ac_status )
10752 if test "$ac_cv_type_size_t" = yes; then
10753 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(size_t
)
10754 See \
`config.log' for more details." >&5
10755 echo "$as_me: error: cannot compute sizeof (size_t)
10756 See \`config.log
' for more details." >&2;}
10757 { (exit 77); exit 77; }; }
10759 ac_cv_sizeof_size_t=0
10762 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10766 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10767 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
10771 cat >>confdefs.h <<_ACEOF
10772 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10776 { echo "$as_me:$LINENO: checking for pid_t" >&5
10777 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10778 if test "${ac_cv_type_pid_t+set}" = set; then
10779 echo $ECHO_N "(cached) $ECHO_C" >&6
10781 cat >conftest.$ac_ext <<_ACEOF
10784 cat confdefs.h >>conftest.$ac_ext
10785 cat >>conftest.$ac_ext <<_ACEOF
10786 /* end confdefs.h. */
10787 $ac_includes_default
10788 typedef pid_t ac__type_new_;
10792 if ((ac__type_new_ *) 0)
10794 if (sizeof (ac__type_new_))
10800 rm -f conftest.$ac_objext
10801 if { (ac_try="$ac_compile"
10802 case "(($ac_try" in
10803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10804 *) ac_try_echo=$ac_try;;
10806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10807 (eval "$ac_compile") 2>conftest.er1
10809 grep -v '^
*+' conftest.er1 >conftest.err
10811 cat conftest.err >&5
10812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813 (exit $ac_status); } && {
10814 test -z "$ac_c_werror_flag" ||
10815 test ! -s conftest.err
10816 } && test -s conftest.$ac_objext; then
10817 ac_cv_type_pid_t=yes
10819 echo "$as_me: failed program was:" >&5
10820 sed 's
/^
/|
/' conftest.$ac_ext >&5
10822 ac_cv_type_pid_t=no
10825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10827 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10828 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10830 # The cast to long int works around a bug in the HP C Compiler
10831 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10832 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10833 # This bug is HP SR number 8606223364.
10834 { echo "$as_me:$LINENO: checking size of pid_t" >&5
10835 echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; }
10836 if test "${ac_cv_sizeof_pid_t+set}" = set; then
10837 echo $ECHO_N "(cached) $ECHO_C" >&6
10839 if test "$cross_compiling" = yes; then
10840 # Depending upon the size, compute the lo and hi bounds.
10841 cat >conftest.
$ac_ext <<_ACEOF
10844 cat confdefs.h
>>conftest.
$ac_ext
10845 cat >>conftest.
$ac_ext <<_ACEOF
10846 /* end confdefs.h. */
10847 $ac_includes_default
10848 typedef pid_t ac__type_sizeof_;
10852 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10859 rm -f conftest.
$ac_objext
10860 if { (ac_try
="$ac_compile"
10861 case "(($ac_try" in
10862 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10863 *) ac_try_echo=$ac_try;;
10865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10866 (eval "$ac_compile") 2>conftest.er1
10868 grep -v '^ *+' conftest.er1 >conftest.err
10870 cat conftest.err >&5
10871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872 (exit $ac_status); } && {
10873 test -z "$ac_c_werror_flag" ||
10874 test ! -s conftest.err
10875 } && test -s conftest.$ac_objext; then
10878 cat >conftest.$ac_ext <<_ACEOF
10881 cat confdefs.h >>conftest.$ac_ext
10882 cat >>conftest.$ac_ext <<_ACEOF
10883 /* end confdefs.h. */
10884 $ac_includes_default
10885 typedef pid_t ac__type_sizeof_;
10889 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10896 rm -f conftest.$ac_objext
10897 if { (ac_try="$ac_compile"
10898 case "(($ac_try" in
10899 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10900 *) ac_try_echo
=$ac_try;;
10902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10903 (eval "$ac_compile") 2>conftest.er1
10905 grep -v '^ *+' conftest.er1
>conftest.err
10907 cat conftest.err
>&5
10908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10909 (exit $ac_status); } && {
10910 test -z "$ac_c_werror_flag" ||
10911 test ! -s conftest.err
10912 } && test -s conftest.
$ac_objext; then
10913 ac_hi
=$ac_mid; break
10915 echo "$as_me: failed program was:" >&5
10916 sed 's/^/| /' conftest.
$ac_ext >&5
10918 ac_lo
=`expr $ac_mid + 1`
10919 if test $ac_lo -le $ac_mid; then
10923 ac_mid
=`expr 2 '*' $ac_mid + 1`
10926 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10929 echo "$as_me: failed program was:" >&5
10930 sed 's/^/| /' conftest.
$ac_ext >&5
10932 cat >conftest.
$ac_ext <<_ACEOF
10935 cat confdefs.h
>>conftest.
$ac_ext
10936 cat >>conftest.
$ac_ext <<_ACEOF
10937 /* end confdefs.h. */
10938 $ac_includes_default
10939 typedef pid_t ac__type_sizeof_;
10943 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10950 rm -f conftest.
$ac_objext
10951 if { (ac_try
="$ac_compile"
10952 case "(($ac_try" in
10953 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10954 *) ac_try_echo=$ac_try;;
10956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10957 (eval "$ac_compile") 2>conftest.er1
10959 grep -v '^ *+' conftest.er1 >conftest.err
10961 cat conftest.err >&5
10962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963 (exit $ac_status); } && {
10964 test -z "$ac_c_werror_flag" ||
10965 test ! -s conftest.err
10966 } && test -s conftest.$ac_objext; then
10969 cat >conftest.$ac_ext <<_ACEOF
10972 cat confdefs.h >>conftest.$ac_ext
10973 cat >>conftest.$ac_ext <<_ACEOF
10974 /* end confdefs.h. */
10975 $ac_includes_default
10976 typedef pid_t ac__type_sizeof_;
10980 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10987 rm -f conftest.$ac_objext
10988 if { (ac_try="$ac_compile"
10989 case "(($ac_try" in
10990 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10991 *) ac_try_echo
=$ac_try;;
10993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10994 (eval "$ac_compile") 2>conftest.er1
10996 grep -v '^ *+' conftest.er1
>conftest.err
10998 cat conftest.err
>&5
10999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000 (exit $ac_status); } && {
11001 test -z "$ac_c_werror_flag" ||
11002 test ! -s conftest.err
11003 } && test -s conftest.
$ac_objext; then
11004 ac_lo
=$ac_mid; break
11006 echo "$as_me: failed program was:" >&5
11007 sed 's/^/| /' conftest.
$ac_ext >&5
11009 ac_hi
=`expr '(' $ac_mid ')' - 1`
11010 if test $ac_mid -le $ac_hi; then
11014 ac_mid
=`expr 2 '*' $ac_mid`
11017 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11020 echo "$as_me: failed program was:" >&5
11021 sed 's/^/| /' conftest.
$ac_ext >&5
11026 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11029 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11030 # Binary search between lo and hi bounds.
11031 while test "x$ac_lo" != "x$ac_hi"; do
11032 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11033 cat >conftest.
$ac_ext <<_ACEOF
11036 cat confdefs.h
>>conftest.
$ac_ext
11037 cat >>conftest.
$ac_ext <<_ACEOF
11038 /* end confdefs.h. */
11039 $ac_includes_default
11040 typedef pid_t ac__type_sizeof_;
11044 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11051 rm -f conftest.
$ac_objext
11052 if { (ac_try
="$ac_compile"
11053 case "(($ac_try" in
11054 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11055 *) ac_try_echo=$ac_try;;
11057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11058 (eval "$ac_compile") 2>conftest.er1
11060 grep -v '^ *+' conftest.er1 >conftest.err
11062 cat conftest.err >&5
11063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064 (exit $ac_status); } && {
11065 test -z "$ac_c_werror_flag" ||
11066 test ! -s conftest.err
11067 } && test -s conftest.$ac_objext; then
11070 echo "$as_me: failed program was:" >&5
11071 sed 's/^/| /' conftest.$ac_ext >&5
11073 ac_lo=`expr '(' $ac_mid ')' + 1`
11076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11079 ?*) ac_cv_sizeof_pid_t=$ac_lo;;
11080 '') if test "$ac_cv_type_pid_t" = yes; then
11081 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
11082 See \`config.log
' for more details." >&5
11083 echo "$as_me: error: cannot compute sizeof (pid_t)
11084 See \`config.log' for more details.
" >&2;}
11085 { (exit 77); exit 77; }; }
11087 ac_cv_sizeof_pid_t=0
11091 cat >conftest.$ac_ext <<_ACEOF
11094 cat confdefs.h >>conftest.$ac_ext
11095 cat >>conftest.$ac_ext <<_ACEOF
11096 /* end confdefs.h. */
11097 $ac_includes_default
11098 typedef pid_t ac__type_sizeof_;
11099 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11100 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11102 #include <stdlib.h>
11107 FILE *f = fopen ("conftest.val
", "w
");
11110 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11112 long int i = longval ();
11113 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11115 fprintf (f, "%ld
\n", i);
11119 unsigned long int i = ulongval ();
11120 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11122 fprintf (f, "%lu
\n", i);
11124 return ferror (f) || fclose (f) != 0;
11130 rm -f conftest$ac_exeext
11131 if { (ac_try="$ac_link"
11132 case "(($ac_try" in
11133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11134 *) ac_try_echo=$ac_try;;
11136 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11137 (eval "$ac_link") 2>&5
11139 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11140 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11141 { (case "(($ac_try" in
11142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11143 *) ac_try_echo=$ac_try;;
11145 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11146 (eval "$ac_try") 2>&5
11148 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11149 (exit $ac_status); }; }; then
11150 ac_cv_sizeof_pid_t=`cat conftest.val`
11152 echo "$as_me: program exited with status
$ac_status" >&5
11153 echo "$as_me: failed program was
:" >&5
11154 sed 's/^/| /' conftest.$ac_ext >&5
11156 ( exit $ac_status )
11157 if test "$ac_cv_type_pid_t" = yes; then
11158 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(pid_t
)
11159 See \
`config.log' for more details." >&5
11160 echo "$as_me: error: cannot compute sizeof (pid_t)
11161 See \`config.log
' for more details." >&2;}
11162 { (exit 77); exit 77; }; }
11164 ac_cv_sizeof_pid_t=0
11167 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11171 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
11172 echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; }
11176 cat >>confdefs.h <<_ACEOF
11177 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
11182 { echo "$as_me:$LINENO: checking for long long support" >&5
11183 echo $ECHO_N "checking for long long support... $ECHO_C" >&6; }
11185 cat >conftest.$ac_ext <<_ACEOF
11188 cat confdefs.h >>conftest.$ac_ext
11189 cat >>conftest.$ac_ext <<_ACEOF
11190 /* end confdefs.h. */
11195 long long x; x = (long long)0;
11200 rm -f conftest.$ac_objext
11201 if { (ac_try="$ac_compile"
11202 case "(($ac_try" in
11203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11204 *) ac_try_echo=$ac_try;;
11206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11207 (eval "$ac_compile") 2>conftest.er1
11209 grep -v '^
*+' conftest.er1 >conftest.err
11211 cat conftest.err >&5
11212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11213 (exit $ac_status); } && {
11214 test -z "$ac_c_werror_flag" ||
11215 test ! -s conftest.err
11216 } && test -s conftest.$ac_objext; then
11219 cat >>confdefs.h <<\_ACEOF
11220 #define HAVE_LONG_LONG 1
11226 echo "$as_me: failed program was:" >&5
11227 sed 's
/^
/|
/' conftest.$ac_ext >&5
11232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11233 { echo "$as_me:$LINENO: result: $have_long_long" >&5
11234 echo "${ECHO_T}$have_long_long" >&6; }
11235 if test "$have_long_long" = yes ; then
11236 { echo "$as_me:$LINENO: checking for long long" >&5
11237 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
11238 if test "${ac_cv_type_long_long+set}" = set; then
11239 echo $ECHO_N "(cached) $ECHO_C" >&6
11241 cat >conftest.$ac_ext <<_ACEOF
11244 cat confdefs.h >>conftest.$ac_ext
11245 cat >>conftest.$ac_ext <<_ACEOF
11246 /* end confdefs.h. */
11247 $ac_includes_default
11248 typedef long long ac__type_new_;
11252 if ((ac__type_new_ *) 0)
11254 if (sizeof (ac__type_new_))
11260 rm -f conftest.$ac_objext
11261 if { (ac_try="$ac_compile"
11262 case "(($ac_try" in
11263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11264 *) ac_try_echo=$ac_try;;
11266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11267 (eval "$ac_compile") 2>conftest.er1
11269 grep -v '^
*+' conftest.er1 >conftest.err
11271 cat conftest.err >&5
11272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273 (exit $ac_status); } && {
11274 test -z "$ac_c_werror_flag" ||
11275 test ! -s conftest.err
11276 } && test -s conftest.$ac_objext; then
11277 ac_cv_type_long_long=yes
11279 echo "$as_me: failed program was:" >&5
11280 sed 's
/^
/|
/' conftest.$ac_ext >&5
11282 ac_cv_type_long_long=no
11285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11287 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11288 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
11290 # The cast to long int works around a bug in the HP C Compiler
11291 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11292 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11293 # This bug is HP SR number 8606223364.
11294 { echo "$as_me:$LINENO: checking size of long long" >&5
11295 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
11296 if test "${ac_cv_sizeof_long_long+set}" = set; then
11297 echo $ECHO_N "(cached) $ECHO_C" >&6
11299 if test "$cross_compiling" = yes; then
11300 # Depending upon the size, compute the lo and hi bounds.
11301 cat >conftest.
$ac_ext <<_ACEOF
11304 cat confdefs.h
>>conftest.
$ac_ext
11305 cat >>conftest.
$ac_ext <<_ACEOF
11306 /* end confdefs.h. */
11307 $ac_includes_default
11308 typedef long long ac__type_sizeof_;
11312 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11319 rm -f conftest.
$ac_objext
11320 if { (ac_try
="$ac_compile"
11321 case "(($ac_try" in
11322 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11323 *) ac_try_echo=$ac_try;;
11325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11326 (eval "$ac_compile") 2>conftest.er1
11328 grep -v '^ *+' conftest.er1 >conftest.err
11330 cat conftest.err >&5
11331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332 (exit $ac_status); } && {
11333 test -z "$ac_c_werror_flag" ||
11334 test ! -s conftest.err
11335 } && test -s conftest.$ac_objext; then
11338 cat >conftest.$ac_ext <<_ACEOF
11341 cat confdefs.h >>conftest.$ac_ext
11342 cat >>conftest.$ac_ext <<_ACEOF
11343 /* end confdefs.h. */
11344 $ac_includes_default
11345 typedef long long ac__type_sizeof_;
11349 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11356 rm -f conftest.$ac_objext
11357 if { (ac_try="$ac_compile"
11358 case "(($ac_try" in
11359 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11360 *) ac_try_echo
=$ac_try;;
11362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11363 (eval "$ac_compile") 2>conftest.er1
11365 grep -v '^ *+' conftest.er1
>conftest.err
11367 cat conftest.err
>&5
11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); } && {
11370 test -z "$ac_c_werror_flag" ||
11371 test ! -s conftest.err
11372 } && test -s conftest.
$ac_objext; then
11373 ac_hi
=$ac_mid; break
11375 echo "$as_me: failed program was:" >&5
11376 sed 's/^/| /' conftest.
$ac_ext >&5
11378 ac_lo
=`expr $ac_mid + 1`
11379 if test $ac_lo -le $ac_mid; then
11383 ac_mid
=`expr 2 '*' $ac_mid + 1`
11386 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11389 echo "$as_me: failed program was:" >&5
11390 sed 's/^/| /' conftest.
$ac_ext >&5
11392 cat >conftest.
$ac_ext <<_ACEOF
11395 cat confdefs.h
>>conftest.
$ac_ext
11396 cat >>conftest.
$ac_ext <<_ACEOF
11397 /* end confdefs.h. */
11398 $ac_includes_default
11399 typedef long long ac__type_sizeof_;
11403 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11410 rm -f conftest.
$ac_objext
11411 if { (ac_try
="$ac_compile"
11412 case "(($ac_try" in
11413 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11414 *) ac_try_echo=$ac_try;;
11416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11417 (eval "$ac_compile") 2>conftest.er1
11419 grep -v '^ *+' conftest.er1 >conftest.err
11421 cat conftest.err >&5
11422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423 (exit $ac_status); } && {
11424 test -z "$ac_c_werror_flag" ||
11425 test ! -s conftest.err
11426 } && test -s conftest.$ac_objext; then
11429 cat >conftest.$ac_ext <<_ACEOF
11432 cat confdefs.h >>conftest.$ac_ext
11433 cat >>conftest.$ac_ext <<_ACEOF
11434 /* end confdefs.h. */
11435 $ac_includes_default
11436 typedef long long ac__type_sizeof_;
11440 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11447 rm -f conftest.$ac_objext
11448 if { (ac_try="$ac_compile"
11449 case "(($ac_try" in
11450 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11451 *) ac_try_echo
=$ac_try;;
11453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11454 (eval "$ac_compile") 2>conftest.er1
11456 grep -v '^ *+' conftest.er1
>conftest.err
11458 cat conftest.err
>&5
11459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11460 (exit $ac_status); } && {
11461 test -z "$ac_c_werror_flag" ||
11462 test ! -s conftest.err
11463 } && test -s conftest.
$ac_objext; then
11464 ac_lo
=$ac_mid; break
11466 echo "$as_me: failed program was:" >&5
11467 sed 's/^/| /' conftest.
$ac_ext >&5
11469 ac_hi
=`expr '(' $ac_mid ')' - 1`
11470 if test $ac_mid -le $ac_hi; then
11474 ac_mid
=`expr 2 '*' $ac_mid`
11477 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11480 echo "$as_me: failed program was:" >&5
11481 sed 's/^/| /' conftest.
$ac_ext >&5
11486 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11489 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11490 # Binary search between lo and hi bounds.
11491 while test "x$ac_lo" != "x$ac_hi"; do
11492 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11493 cat >conftest.
$ac_ext <<_ACEOF
11496 cat confdefs.h
>>conftest.
$ac_ext
11497 cat >>conftest.
$ac_ext <<_ACEOF
11498 /* end confdefs.h. */
11499 $ac_includes_default
11500 typedef long long ac__type_sizeof_;
11504 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11511 rm -f conftest.
$ac_objext
11512 if { (ac_try
="$ac_compile"
11513 case "(($ac_try" in
11514 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11515 *) ac_try_echo=$ac_try;;
11517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11518 (eval "$ac_compile") 2>conftest.er1
11520 grep -v '^ *+' conftest.er1 >conftest.err
11522 cat conftest.err >&5
11523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11524 (exit $ac_status); } && {
11525 test -z "$ac_c_werror_flag" ||
11526 test ! -s conftest.err
11527 } && test -s conftest.$ac_objext; then
11530 echo "$as_me: failed program was:" >&5
11531 sed 's/^/| /' conftest.$ac_ext >&5
11533 ac_lo=`expr '(' $ac_mid ')' + 1`
11536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11539 ?*) ac_cv_sizeof_long_long=$ac_lo;;
11540 '') if test "$ac_cv_type_long_long" = yes; then
11541 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11542 See \`config.log
' for more details." >&5
11543 echo "$as_me: error: cannot compute sizeof (long long)
11544 See \`config.log' for more details.
" >&2;}
11545 { (exit 77); exit 77; }; }
11547 ac_cv_sizeof_long_long=0
11551 cat >conftest.$ac_ext <<_ACEOF
11554 cat confdefs.h >>conftest.$ac_ext
11555 cat >>conftest.$ac_ext <<_ACEOF
11556 /* end confdefs.h. */
11557 $ac_includes_default
11558 typedef long long ac__type_sizeof_;
11559 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11560 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11562 #include <stdlib.h>
11567 FILE *f = fopen ("conftest.val
", "w
");
11570 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11572 long int i = longval ();
11573 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11575 fprintf (f, "%ld
\n", i);
11579 unsigned long int i = ulongval ();
11580 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11582 fprintf (f, "%lu
\n", i);
11584 return ferror (f) || fclose (f) != 0;
11590 rm -f conftest$ac_exeext
11591 if { (ac_try="$ac_link"
11592 case "(($ac_try" in
11593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11594 *) ac_try_echo=$ac_try;;
11596 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11597 (eval "$ac_link") 2>&5
11599 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11600 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11601 { (case "(($ac_try" in
11602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11603 *) ac_try_echo=$ac_try;;
11605 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11606 (eval "$ac_try") 2>&5
11608 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11609 (exit $ac_status); }; }; then
11610 ac_cv_sizeof_long_long=`cat conftest.val`
11612 echo "$as_me: program exited with status
$ac_status" >&5
11613 echo "$as_me: failed program was
:" >&5
11614 sed 's/^/| /' conftest.$ac_ext >&5
11616 ( exit $ac_status )
11617 if test "$ac_cv_type_long_long" = yes; then
11618 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long long
)
11619 See \
`config.log' for more details." >&5
11620 echo "$as_me: error: cannot compute sizeof (long long)
11621 See \`config.log
' for more details." >&2;}
11622 { (exit 77); exit 77; }; }
11624 ac_cv_sizeof_long_long=0
11627 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11631 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11632 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
11636 cat >>confdefs.h <<_ACEOF
11637 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11643 { echo "$as_me:$LINENO: checking for long double support" >&5
11644 echo $ECHO_N "checking for long double support... $ECHO_C" >&6; }
11645 have_long_double=no
11646 cat >conftest.$ac_ext <<_ACEOF
11649 cat confdefs.h >>conftest.$ac_ext
11650 cat >>conftest.$ac_ext <<_ACEOF
11651 /* end confdefs.h. */
11656 long double x; x = (long double)0.;
11661 rm -f conftest.$ac_objext
11662 if { (ac_try="$ac_compile"
11663 case "(($ac_try" in
11664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11665 *) ac_try_echo=$ac_try;;
11667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11668 (eval "$ac_compile") 2>conftest.er1
11670 grep -v '^
*+' conftest.er1 >conftest.err
11672 cat conftest.err >&5
11673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674 (exit $ac_status); } && {
11675 test -z "$ac_c_werror_flag" ||
11676 test ! -s conftest.err
11677 } && test -s conftest.$ac_objext; then
11680 cat >>confdefs.h <<\_ACEOF
11681 #define HAVE_LONG_DOUBLE 1
11684 have_long_double=yes
11687 echo "$as_me: failed program was:" >&5
11688 sed 's
/^
/|
/' conftest.$ac_ext >&5
11693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11694 { echo "$as_me:$LINENO: result: $have_long_double" >&5
11695 echo "${ECHO_T}$have_long_double" >&6; }
11696 if test "$have_long_double" = yes ; then
11697 { echo "$as_me:$LINENO: checking for long double" >&5
11698 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
11699 if test "${ac_cv_type_long_double+set}" = set; then
11700 echo $ECHO_N "(cached) $ECHO_C" >&6
11702 cat >conftest.$ac_ext <<_ACEOF
11705 cat confdefs.h >>conftest.$ac_ext
11706 cat >>conftest.$ac_ext <<_ACEOF
11707 /* end confdefs.h. */
11708 $ac_includes_default
11709 typedef long double ac__type_new_;
11713 if ((ac__type_new_ *) 0)
11715 if (sizeof (ac__type_new_))
11721 rm -f conftest.$ac_objext
11722 if { (ac_try="$ac_compile"
11723 case "(($ac_try" in
11724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11725 *) ac_try_echo=$ac_try;;
11727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11728 (eval "$ac_compile") 2>conftest.er1
11730 grep -v '^
*+' conftest.er1 >conftest.err
11732 cat conftest.err >&5
11733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734 (exit $ac_status); } && {
11735 test -z "$ac_c_werror_flag" ||
11736 test ! -s conftest.err
11737 } && test -s conftest.$ac_objext; then
11738 ac_cv_type_long_double=yes
11740 echo "$as_me: failed program was:" >&5
11741 sed 's
/^
/|
/' conftest.$ac_ext >&5
11743 ac_cv_type_long_double=no
11746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11748 { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
11749 echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
11751 # The cast to long int works around a bug in the HP C Compiler
11752 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11753 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11754 # This bug is HP SR number 8606223364.
11755 { echo "$as_me:$LINENO: checking size of long double" >&5
11756 echo $ECHO_N "checking size of long double... $ECHO_C" >&6; }
11757 if test "${ac_cv_sizeof_long_double+set}" = set; then
11758 echo $ECHO_N "(cached) $ECHO_C" >&6
11760 if test "$cross_compiling" = yes; then
11761 # Depending upon the size, compute the lo and hi bounds.
11762 cat >conftest.
$ac_ext <<_ACEOF
11765 cat confdefs.h
>>conftest.
$ac_ext
11766 cat >>conftest.
$ac_ext <<_ACEOF
11767 /* end confdefs.h. */
11768 $ac_includes_default
11769 typedef long double ac__type_sizeof_;
11773 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11780 rm -f conftest.
$ac_objext
11781 if { (ac_try
="$ac_compile"
11782 case "(($ac_try" in
11783 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11784 *) ac_try_echo=$ac_try;;
11786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11787 (eval "$ac_compile") 2>conftest.er1
11789 grep -v '^ *+' conftest.er1 >conftest.err
11791 cat conftest.err >&5
11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); } && {
11794 test -z "$ac_c_werror_flag" ||
11795 test ! -s conftest.err
11796 } && test -s conftest.$ac_objext; then
11799 cat >conftest.$ac_ext <<_ACEOF
11802 cat confdefs.h >>conftest.$ac_ext
11803 cat >>conftest.$ac_ext <<_ACEOF
11804 /* end confdefs.h. */
11805 $ac_includes_default
11806 typedef long double ac__type_sizeof_;
11810 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11817 rm -f conftest.$ac_objext
11818 if { (ac_try="$ac_compile"
11819 case "(($ac_try" in
11820 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11821 *) ac_try_echo
=$ac_try;;
11823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11824 (eval "$ac_compile") 2>conftest.er1
11826 grep -v '^ *+' conftest.er1
>conftest.err
11828 cat conftest.err
>&5
11829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830 (exit $ac_status); } && {
11831 test -z "$ac_c_werror_flag" ||
11832 test ! -s conftest.err
11833 } && test -s conftest.
$ac_objext; then
11834 ac_hi
=$ac_mid; break
11836 echo "$as_me: failed program was:" >&5
11837 sed 's/^/| /' conftest.
$ac_ext >&5
11839 ac_lo
=`expr $ac_mid + 1`
11840 if test $ac_lo -le $ac_mid; then
11844 ac_mid
=`expr 2 '*' $ac_mid + 1`
11847 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11850 echo "$as_me: failed program was:" >&5
11851 sed 's/^/| /' conftest.
$ac_ext >&5
11853 cat >conftest.
$ac_ext <<_ACEOF
11856 cat confdefs.h
>>conftest.
$ac_ext
11857 cat >>conftest.
$ac_ext <<_ACEOF
11858 /* end confdefs.h. */
11859 $ac_includes_default
11860 typedef long double ac__type_sizeof_;
11864 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11871 rm -f conftest.
$ac_objext
11872 if { (ac_try
="$ac_compile"
11873 case "(($ac_try" in
11874 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11875 *) ac_try_echo=$ac_try;;
11877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11878 (eval "$ac_compile") 2>conftest.er1
11880 grep -v '^ *+' conftest.er1 >conftest.err
11882 cat conftest.err >&5
11883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884 (exit $ac_status); } && {
11885 test -z "$ac_c_werror_flag" ||
11886 test ! -s conftest.err
11887 } && test -s conftest.$ac_objext; then
11890 cat >conftest.$ac_ext <<_ACEOF
11893 cat confdefs.h >>conftest.$ac_ext
11894 cat >>conftest.$ac_ext <<_ACEOF
11895 /* end confdefs.h. */
11896 $ac_includes_default
11897 typedef long double ac__type_sizeof_;
11901 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11908 rm -f conftest.$ac_objext
11909 if { (ac_try="$ac_compile"
11910 case "(($ac_try" in
11911 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11912 *) ac_try_echo
=$ac_try;;
11914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11915 (eval "$ac_compile") 2>conftest.er1
11917 grep -v '^ *+' conftest.er1
>conftest.err
11919 cat conftest.err
>&5
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); } && {
11922 test -z "$ac_c_werror_flag" ||
11923 test ! -s conftest.err
11924 } && test -s conftest.
$ac_objext; then
11925 ac_lo
=$ac_mid; break
11927 echo "$as_me: failed program was:" >&5
11928 sed 's/^/| /' conftest.
$ac_ext >&5
11930 ac_hi
=`expr '(' $ac_mid ')' - 1`
11931 if test $ac_mid -le $ac_hi; then
11935 ac_mid
=`expr 2 '*' $ac_mid`
11938 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11941 echo "$as_me: failed program was:" >&5
11942 sed 's/^/| /' conftest.
$ac_ext >&5
11947 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11950 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11951 # Binary search between lo and hi bounds.
11952 while test "x$ac_lo" != "x$ac_hi"; do
11953 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11954 cat >conftest.
$ac_ext <<_ACEOF
11957 cat confdefs.h
>>conftest.
$ac_ext
11958 cat >>conftest.
$ac_ext <<_ACEOF
11959 /* end confdefs.h. */
11960 $ac_includes_default
11961 typedef long double ac__type_sizeof_;
11965 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11972 rm -f conftest.
$ac_objext
11973 if { (ac_try
="$ac_compile"
11974 case "(($ac_try" in
11975 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11976 *) ac_try_echo=$ac_try;;
11978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11979 (eval "$ac_compile") 2>conftest.er1
11981 grep -v '^ *+' conftest.er1 >conftest.err
11983 cat conftest.err >&5
11984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985 (exit $ac_status); } && {
11986 test -z "$ac_c_werror_flag" ||
11987 test ! -s conftest.err
11988 } && test -s conftest.$ac_objext; then
11991 echo "$as_me: failed program was:" >&5
11992 sed 's/^/| /' conftest.$ac_ext >&5
11994 ac_lo=`expr '(' $ac_mid ')' + 1`
11997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12000 ?*) ac_cv_sizeof_long_double=$ac_lo;;
12001 '') if test "$ac_cv_type_long_double" = yes; then
12002 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
12003 See \`config.log
' for more details." >&5
12004 echo "$as_me: error: cannot compute sizeof (long double)
12005 See \`config.log' for more details.
" >&2;}
12006 { (exit 77); exit 77; }; }
12008 ac_cv_sizeof_long_double=0
12012 cat >conftest.$ac_ext <<_ACEOF
12015 cat confdefs.h >>conftest.$ac_ext
12016 cat >>conftest.$ac_ext <<_ACEOF
12017 /* end confdefs.h. */
12018 $ac_includes_default
12019 typedef long double ac__type_sizeof_;
12020 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12021 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12023 #include <stdlib.h>
12028 FILE *f = fopen ("conftest.val
", "w
");
12031 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12033 long int i = longval ();
12034 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12036 fprintf (f, "%ld
\n", i);
12040 unsigned long int i = ulongval ();
12041 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12043 fprintf (f, "%lu
\n", i);
12045 return ferror (f) || fclose (f) != 0;
12051 rm -f conftest$ac_exeext
12052 if { (ac_try="$ac_link"
12053 case "(($ac_try" in
12054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12055 *) ac_try_echo=$ac_try;;
12057 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12058 (eval "$ac_link") 2>&5
12060 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12061 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12062 { (case "(($ac_try" in
12063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12064 *) ac_try_echo=$ac_try;;
12066 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12067 (eval "$ac_try") 2>&5
12069 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12070 (exit $ac_status); }; }; then
12071 ac_cv_sizeof_long_double=`cat conftest.val`
12073 echo "$as_me: program exited with status
$ac_status" >&5
12074 echo "$as_me: failed program was
:" >&5
12075 sed 's/^/| /' conftest.$ac_ext >&5
12077 ( exit $ac_status )
12078 if test "$ac_cv_type_long_double" = yes; then
12079 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long double
)
12080 See \
`config.log' for more details." >&5
12081 echo "$as_me: error: cannot compute sizeof (long double)
12082 See \`config.log
' for more details." >&2;}
12083 { (exit 77); exit 77; }; }
12085 ac_cv_sizeof_long_double=0
12088 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12092 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
12093 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; }
12097 cat >>confdefs.h <<_ACEOF
12098 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
12104 { echo "$as_me:$LINENO: checking for _Bool support" >&5
12105 echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; }
12107 cat >conftest.$ac_ext <<_ACEOF
12110 cat confdefs.h >>conftest.$ac_ext
12111 cat >>conftest.$ac_ext <<_ACEOF
12112 /* end confdefs.h. */
12117 _Bool x; x = (_Bool)0;
12122 rm -f conftest.$ac_objext
12123 if { (ac_try="$ac_compile"
12124 case "(($ac_try" in
12125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12126 *) ac_try_echo=$ac_try;;
12128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12129 (eval "$ac_compile") 2>conftest.er1
12131 grep -v '^
*+' conftest.er1 >conftest.err
12133 cat conftest.err >&5
12134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135 (exit $ac_status); } && {
12136 test -z "$ac_c_werror_flag" ||
12137 test ! -s conftest.err
12138 } && test -s conftest.$ac_objext; then
12141 cat >>confdefs.h <<\_ACEOF
12142 #define HAVE_C99_BOOL 1
12148 echo "$as_me: failed program was:" >&5
12149 sed 's
/^
/|
/' conftest.$ac_ext >&5
12154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12155 { echo "$as_me:$LINENO: result: $have_c99_bool" >&5
12156 echo "${ECHO_T}$have_c99_bool" >&6; }
12157 if test "$have_c99_bool" = yes ; then
12158 { echo "$as_me:$LINENO: checking for _Bool" >&5
12159 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
12160 if test "${ac_cv_type__Bool+set}" = set; then
12161 echo $ECHO_N "(cached) $ECHO_C" >&6
12163 cat >conftest.$ac_ext <<_ACEOF
12166 cat confdefs.h >>conftest.$ac_ext
12167 cat >>conftest.$ac_ext <<_ACEOF
12168 /* end confdefs.h. */
12169 $ac_includes_default
12170 typedef _Bool ac__type_new_;
12174 if ((ac__type_new_ *) 0)
12176 if (sizeof (ac__type_new_))
12182 rm -f conftest.$ac_objext
12183 if { (ac_try="$ac_compile"
12184 case "(($ac_try" in
12185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12186 *) ac_try_echo=$ac_try;;
12188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12189 (eval "$ac_compile") 2>conftest.er1
12191 grep -v '^
*+' conftest.er1 >conftest.err
12193 cat conftest.err >&5
12194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195 (exit $ac_status); } && {
12196 test -z "$ac_c_werror_flag" ||
12197 test ! -s conftest.err
12198 } && test -s conftest.$ac_objext; then
12199 ac_cv_type__Bool=yes
12201 echo "$as_me: failed program was:" >&5
12202 sed 's
/^
/|
/' conftest.$ac_ext >&5
12204 ac_cv_type__Bool=no
12207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12209 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
12210 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
12212 # The cast to long int works around a bug in the HP C Compiler
12213 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12214 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12215 # This bug is HP SR number 8606223364.
12216 { echo "$as_me:$LINENO: checking size of _Bool" >&5
12217 echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; }
12218 if test "${ac_cv_sizeof__Bool+set}" = set; then
12219 echo $ECHO_N "(cached) $ECHO_C" >&6
12221 if test "$cross_compiling" = yes; then
12222 # Depending upon the size, compute the lo and hi bounds.
12223 cat >conftest.
$ac_ext <<_ACEOF
12226 cat confdefs.h
>>conftest.
$ac_ext
12227 cat >>conftest.
$ac_ext <<_ACEOF
12228 /* end confdefs.h. */
12229 $ac_includes_default
12230 typedef _Bool ac__type_sizeof_;
12234 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12241 rm -f conftest.
$ac_objext
12242 if { (ac_try
="$ac_compile"
12243 case "(($ac_try" in
12244 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12245 *) ac_try_echo=$ac_try;;
12247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12248 (eval "$ac_compile") 2>conftest.er1
12250 grep -v '^ *+' conftest.er1 >conftest.err
12252 cat conftest.err >&5
12253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254 (exit $ac_status); } && {
12255 test -z "$ac_c_werror_flag" ||
12256 test ! -s conftest.err
12257 } && test -s conftest.$ac_objext; then
12260 cat >conftest.$ac_ext <<_ACEOF
12263 cat confdefs.h >>conftest.$ac_ext
12264 cat >>conftest.$ac_ext <<_ACEOF
12265 /* end confdefs.h. */
12266 $ac_includes_default
12267 typedef _Bool ac__type_sizeof_;
12271 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12278 rm -f conftest.$ac_objext
12279 if { (ac_try="$ac_compile"
12280 case "(($ac_try" in
12281 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12282 *) ac_try_echo
=$ac_try;;
12284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12285 (eval "$ac_compile") 2>conftest.er1
12287 grep -v '^ *+' conftest.er1
>conftest.err
12289 cat conftest.err
>&5
12290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291 (exit $ac_status); } && {
12292 test -z "$ac_c_werror_flag" ||
12293 test ! -s conftest.err
12294 } && test -s conftest.
$ac_objext; then
12295 ac_hi
=$ac_mid; break
12297 echo "$as_me: failed program was:" >&5
12298 sed 's/^/| /' conftest.
$ac_ext >&5
12300 ac_lo
=`expr $ac_mid + 1`
12301 if test $ac_lo -le $ac_mid; then
12305 ac_mid
=`expr 2 '*' $ac_mid + 1`
12308 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12311 echo "$as_me: failed program was:" >&5
12312 sed 's/^/| /' conftest.
$ac_ext >&5
12314 cat >conftest.
$ac_ext <<_ACEOF
12317 cat confdefs.h
>>conftest.
$ac_ext
12318 cat >>conftest.
$ac_ext <<_ACEOF
12319 /* end confdefs.h. */
12320 $ac_includes_default
12321 typedef _Bool ac__type_sizeof_;
12325 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12332 rm -f conftest.
$ac_objext
12333 if { (ac_try
="$ac_compile"
12334 case "(($ac_try" in
12335 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12336 *) ac_try_echo=$ac_try;;
12338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12339 (eval "$ac_compile") 2>conftest.er1
12341 grep -v '^ *+' conftest.er1 >conftest.err
12343 cat conftest.err >&5
12344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345 (exit $ac_status); } && {
12346 test -z "$ac_c_werror_flag" ||
12347 test ! -s conftest.err
12348 } && test -s conftest.$ac_objext; then
12351 cat >conftest.$ac_ext <<_ACEOF
12354 cat confdefs.h >>conftest.$ac_ext
12355 cat >>conftest.$ac_ext <<_ACEOF
12356 /* end confdefs.h. */
12357 $ac_includes_default
12358 typedef _Bool ac__type_sizeof_;
12362 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12369 rm -f conftest.$ac_objext
12370 if { (ac_try="$ac_compile"
12371 case "(($ac_try" in
12372 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12373 *) ac_try_echo
=$ac_try;;
12375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12376 (eval "$ac_compile") 2>conftest.er1
12378 grep -v '^ *+' conftest.er1
>conftest.err
12380 cat conftest.err
>&5
12381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382 (exit $ac_status); } && {
12383 test -z "$ac_c_werror_flag" ||
12384 test ! -s conftest.err
12385 } && test -s conftest.
$ac_objext; then
12386 ac_lo
=$ac_mid; break
12388 echo "$as_me: failed program was:" >&5
12389 sed 's/^/| /' conftest.
$ac_ext >&5
12391 ac_hi
=`expr '(' $ac_mid ')' - 1`
12392 if test $ac_mid -le $ac_hi; then
12396 ac_mid
=`expr 2 '*' $ac_mid`
12399 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12402 echo "$as_me: failed program was:" >&5
12403 sed 's/^/| /' conftest.
$ac_ext >&5
12408 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12411 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12412 # Binary search between lo and hi bounds.
12413 while test "x$ac_lo" != "x$ac_hi"; do
12414 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12415 cat >conftest.
$ac_ext <<_ACEOF
12418 cat confdefs.h
>>conftest.
$ac_ext
12419 cat >>conftest.
$ac_ext <<_ACEOF
12420 /* end confdefs.h. */
12421 $ac_includes_default
12422 typedef _Bool ac__type_sizeof_;
12426 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12433 rm -f conftest.
$ac_objext
12434 if { (ac_try
="$ac_compile"
12435 case "(($ac_try" in
12436 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12437 *) ac_try_echo=$ac_try;;
12439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12440 (eval "$ac_compile") 2>conftest.er1
12442 grep -v '^ *+' conftest.er1 >conftest.err
12444 cat conftest.err >&5
12445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446 (exit $ac_status); } && {
12447 test -z "$ac_c_werror_flag" ||
12448 test ! -s conftest.err
12449 } && test -s conftest.$ac_objext; then
12452 echo "$as_me: failed program was:" >&5
12453 sed 's/^/| /' conftest.$ac_ext >&5
12455 ac_lo=`expr '(' $ac_mid ')' + 1`
12458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12461 ?*) ac_cv_sizeof__Bool=$ac_lo;;
12462 '') if test "$ac_cv_type__Bool" = yes; then
12463 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
12464 See \`config.log
' for more details." >&5
12465 echo "$as_me: error: cannot compute sizeof (_Bool)
12466 See \`config.log' for more details.
" >&2;}
12467 { (exit 77); exit 77; }; }
12469 ac_cv_sizeof__Bool=0
12473 cat >conftest.$ac_ext <<_ACEOF
12476 cat confdefs.h >>conftest.$ac_ext
12477 cat >>conftest.$ac_ext <<_ACEOF
12478 /* end confdefs.h. */
12479 $ac_includes_default
12480 typedef _Bool ac__type_sizeof_;
12481 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12482 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12484 #include <stdlib.h>
12489 FILE *f = fopen ("conftest.val
", "w
");
12492 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12494 long int i = longval ();
12495 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12497 fprintf (f, "%ld
\n", i);
12501 unsigned long int i = ulongval ();
12502 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12504 fprintf (f, "%lu
\n", i);
12506 return ferror (f) || fclose (f) != 0;
12512 rm -f conftest$ac_exeext
12513 if { (ac_try="$ac_link"
12514 case "(($ac_try" in
12515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12516 *) ac_try_echo=$ac_try;;
12518 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12519 (eval "$ac_link") 2>&5
12521 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12522 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12523 { (case "(($ac_try" in
12524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12525 *) ac_try_echo=$ac_try;;
12527 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12528 (eval "$ac_try") 2>&5
12530 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12531 (exit $ac_status); }; }; then
12532 ac_cv_sizeof__Bool=`cat conftest.val`
12534 echo "$as_me: program exited with status
$ac_status" >&5
12535 echo "$as_me: failed program was
:" >&5
12536 sed 's/^/| /' conftest.$ac_ext >&5
12538 ( exit $ac_status )
12539 if test "$ac_cv_type__Bool" = yes; then
12540 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(_Bool
)
12541 See \
`config.log' for more details." >&5
12542 echo "$as_me: error: cannot compute sizeof (_Bool)
12543 See \`config.log
' for more details." >&2;}
12544 { (exit 77); exit 77; }; }
12546 ac_cv_sizeof__Bool=0
12549 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12553 { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
12554 echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; }
12558 cat >>confdefs.h <<_ACEOF
12559 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
12565 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12566 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12567 if test "${ac_cv_type_uintptr_t+set}" = set; then
12568 echo $ECHO_N "(cached) $ECHO_C" >&6
12570 cat >conftest.$ac_ext <<_ACEOF
12573 cat confdefs.h >>conftest.$ac_ext
12574 cat >>conftest.$ac_ext <<_ACEOF
12575 /* end confdefs.h. */
12576 #ifdef HAVE_STDINT_H
12577 #include <stdint.h>
12580 typedef uintptr_t ac__type_new_;
12584 if ((ac__type_new_ *) 0)
12586 if (sizeof (ac__type_new_))
12592 rm -f conftest.$ac_objext
12593 if { (ac_try="$ac_compile"
12594 case "(($ac_try" in
12595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12596 *) ac_try_echo=$ac_try;;
12598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12599 (eval "$ac_compile") 2>conftest.er1
12601 grep -v '^
*+' conftest.er1 >conftest.err
12603 cat conftest.err >&5
12604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605 (exit $ac_status); } && {
12606 test -z "$ac_c_werror_flag" ||
12607 test ! -s conftest.err
12608 } && test -s conftest.$ac_objext; then
12609 ac_cv_type_uintptr_t=yes
12611 echo "$as_me: failed program was:" >&5
12612 sed 's
/^
/|
/' conftest.$ac_ext >&5
12614 ac_cv_type_uintptr_t=no
12617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12619 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12620 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12621 if test $ac_cv_type_uintptr_t = yes; then
12623 cat >>confdefs.h <<_ACEOF
12624 #define HAVE_UINTPTR_T 1
12627 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
12628 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
12629 if test "${ac_cv_type_uintptr_t+set}" = set; then
12630 echo $ECHO_N "(cached) $ECHO_C" >&6
12632 cat >conftest.$ac_ext <<_ACEOF
12635 cat confdefs.h >>conftest.$ac_ext
12636 cat >>conftest.$ac_ext <<_ACEOF
12637 /* end confdefs.h. */
12638 $ac_includes_default
12639 typedef uintptr_t ac__type_new_;
12643 if ((ac__type_new_ *) 0)
12645 if (sizeof (ac__type_new_))
12651 rm -f conftest.$ac_objext
12652 if { (ac_try="$ac_compile"
12653 case "(($ac_try" in
12654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12655 *) ac_try_echo=$ac_try;;
12657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12658 (eval "$ac_compile") 2>conftest.er1
12660 grep -v '^
*+' conftest.er1 >conftest.err
12662 cat conftest.err >&5
12663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664 (exit $ac_status); } && {
12665 test -z "$ac_c_werror_flag" ||
12666 test ! -s conftest.err
12667 } && test -s conftest.$ac_objext; then
12668 ac_cv_type_uintptr_t=yes
12670 echo "$as_me: failed program was:" >&5
12671 sed 's
/^
/|
/' conftest.$ac_ext >&5
12673 ac_cv_type_uintptr_t=no
12676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12678 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12679 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
12681 # The cast to long int works around a bug in the HP C Compiler
12682 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12683 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12684 # This bug is HP SR number 8606223364.
12685 { echo "$as_me:$LINENO: checking size of uintptr_t" >&5
12686 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; }
12687 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
12688 echo $ECHO_N "(cached) $ECHO_C" >&6
12690 if test "$cross_compiling" = yes; then
12691 # Depending upon the size, compute the lo and hi bounds.
12692 cat >conftest.
$ac_ext <<_ACEOF
12695 cat confdefs.h
>>conftest.
$ac_ext
12696 cat >>conftest.
$ac_ext <<_ACEOF
12697 /* end confdefs.h. */
12698 $ac_includes_default
12699 typedef uintptr_t ac__type_sizeof_;
12703 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12710 rm -f conftest.
$ac_objext
12711 if { (ac_try
="$ac_compile"
12712 case "(($ac_try" in
12713 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12714 *) ac_try_echo=$ac_try;;
12716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12717 (eval "$ac_compile") 2>conftest.er1
12719 grep -v '^ *+' conftest.er1 >conftest.err
12721 cat conftest.err >&5
12722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723 (exit $ac_status); } && {
12724 test -z "$ac_c_werror_flag" ||
12725 test ! -s conftest.err
12726 } && test -s conftest.$ac_objext; then
12729 cat >conftest.$ac_ext <<_ACEOF
12732 cat confdefs.h >>conftest.$ac_ext
12733 cat >>conftest.$ac_ext <<_ACEOF
12734 /* end confdefs.h. */
12735 $ac_includes_default
12736 typedef uintptr_t ac__type_sizeof_;
12740 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12747 rm -f conftest.$ac_objext
12748 if { (ac_try="$ac_compile"
12749 case "(($ac_try" in
12750 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12751 *) ac_try_echo
=$ac_try;;
12753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12754 (eval "$ac_compile") 2>conftest.er1
12756 grep -v '^ *+' conftest.er1
>conftest.err
12758 cat conftest.err
>&5
12759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 (exit $ac_status); } && {
12761 test -z "$ac_c_werror_flag" ||
12762 test ! -s conftest.err
12763 } && test -s conftest.
$ac_objext; then
12764 ac_hi
=$ac_mid; break
12766 echo "$as_me: failed program was:" >&5
12767 sed 's/^/| /' conftest.
$ac_ext >&5
12769 ac_lo
=`expr $ac_mid + 1`
12770 if test $ac_lo -le $ac_mid; then
12774 ac_mid
=`expr 2 '*' $ac_mid + 1`
12777 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12780 echo "$as_me: failed program was:" >&5
12781 sed 's/^/| /' conftest.
$ac_ext >&5
12783 cat >conftest.
$ac_ext <<_ACEOF
12786 cat confdefs.h
>>conftest.
$ac_ext
12787 cat >>conftest.
$ac_ext <<_ACEOF
12788 /* end confdefs.h. */
12789 $ac_includes_default
12790 typedef uintptr_t ac__type_sizeof_;
12794 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12801 rm -f conftest.
$ac_objext
12802 if { (ac_try
="$ac_compile"
12803 case "(($ac_try" in
12804 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12805 *) ac_try_echo=$ac_try;;
12807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12808 (eval "$ac_compile") 2>conftest.er1
12810 grep -v '^ *+' conftest.er1 >conftest.err
12812 cat conftest.err >&5
12813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814 (exit $ac_status); } && {
12815 test -z "$ac_c_werror_flag" ||
12816 test ! -s conftest.err
12817 } && test -s conftest.$ac_objext; then
12820 cat >conftest.$ac_ext <<_ACEOF
12823 cat confdefs.h >>conftest.$ac_ext
12824 cat >>conftest.$ac_ext <<_ACEOF
12825 /* end confdefs.h. */
12826 $ac_includes_default
12827 typedef uintptr_t ac__type_sizeof_;
12831 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12838 rm -f conftest.$ac_objext
12839 if { (ac_try="$ac_compile"
12840 case "(($ac_try" in
12841 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12842 *) ac_try_echo
=$ac_try;;
12844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12845 (eval "$ac_compile") 2>conftest.er1
12847 grep -v '^ *+' conftest.er1
>conftest.err
12849 cat conftest.err
>&5
12850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851 (exit $ac_status); } && {
12852 test -z "$ac_c_werror_flag" ||
12853 test ! -s conftest.err
12854 } && test -s conftest.
$ac_objext; then
12855 ac_lo
=$ac_mid; break
12857 echo "$as_me: failed program was:" >&5
12858 sed 's/^/| /' conftest.
$ac_ext >&5
12860 ac_hi
=`expr '(' $ac_mid ')' - 1`
12861 if test $ac_mid -le $ac_hi; then
12865 ac_mid
=`expr 2 '*' $ac_mid`
12868 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12871 echo "$as_me: failed program was:" >&5
12872 sed 's/^/| /' conftest.
$ac_ext >&5
12877 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12880 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12881 # Binary search between lo and hi bounds.
12882 while test "x$ac_lo" != "x$ac_hi"; do
12883 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12884 cat >conftest.
$ac_ext <<_ACEOF
12887 cat confdefs.h
>>conftest.
$ac_ext
12888 cat >>conftest.
$ac_ext <<_ACEOF
12889 /* end confdefs.h. */
12890 $ac_includes_default
12891 typedef uintptr_t ac__type_sizeof_;
12895 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12902 rm -f conftest.
$ac_objext
12903 if { (ac_try
="$ac_compile"
12904 case "(($ac_try" in
12905 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12906 *) ac_try_echo=$ac_try;;
12908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12909 (eval "$ac_compile") 2>conftest.er1
12911 grep -v '^ *+' conftest.er1 >conftest.err
12913 cat conftest.err >&5
12914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915 (exit $ac_status); } && {
12916 test -z "$ac_c_werror_flag" ||
12917 test ! -s conftest.err
12918 } && test -s conftest.$ac_objext; then
12921 echo "$as_me: failed program was:" >&5
12922 sed 's/^/| /' conftest.$ac_ext >&5
12924 ac_lo=`expr '(' $ac_mid ')' + 1`
12927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12930 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
12931 '') if test "$ac_cv_type_uintptr_t" = yes; then
12932 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
12933 See \`config.log
' for more details." >&5
12934 echo "$as_me: error: cannot compute sizeof (uintptr_t)
12935 See \`config.log' for more details.
" >&2;}
12936 { (exit 77); exit 77; }; }
12938 ac_cv_sizeof_uintptr_t=0
12942 cat >conftest.$ac_ext <<_ACEOF
12945 cat confdefs.h >>conftest.$ac_ext
12946 cat >>conftest.$ac_ext <<_ACEOF
12947 /* end confdefs.h. */
12948 $ac_includes_default
12949 typedef uintptr_t ac__type_sizeof_;
12950 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12951 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12953 #include <stdlib.h>
12958 FILE *f = fopen ("conftest.val
", "w
");
12961 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12963 long int i = longval ();
12964 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12966 fprintf (f, "%ld
\n", i);
12970 unsigned long int i = ulongval ();
12971 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12973 fprintf (f, "%lu
\n", i);
12975 return ferror (f) || fclose (f) != 0;
12981 rm -f conftest$ac_exeext
12982 if { (ac_try="$ac_link"
12983 case "(($ac_try" in
12984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12985 *) ac_try_echo=$ac_try;;
12987 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12988 (eval "$ac_link") 2>&5
12990 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12991 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12992 { (case "(($ac_try" in
12993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12994 *) ac_try_echo=$ac_try;;
12996 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12997 (eval "$ac_try") 2>&5
12999 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13000 (exit $ac_status); }; }; then
13001 ac_cv_sizeof_uintptr_t=`cat conftest.val`
13003 echo "$as_me: program exited with status
$ac_status" >&5
13004 echo "$as_me: failed program was
:" >&5
13005 sed 's/^/| /' conftest.$ac_ext >&5
13007 ( exit $ac_status )
13008 if test "$ac_cv_type_uintptr_t" = yes; then
13009 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(uintptr_t
)
13010 See \
`config.log' for more details." >&5
13011 echo "$as_me: error: cannot compute sizeof (uintptr_t)
13012 See \`config.log
' for more details." >&2;}
13013 { (exit 77); exit 77; }; }
13015 ac_cv_sizeof_uintptr_t=0
13018 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13022 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
13023 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; }
13027 cat >>confdefs.h <<_ACEOF
13028 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
13035 { echo "$as_me:$LINENO: checking for off_t" >&5
13036 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
13037 if test "${ac_cv_type_off_t+set}" = set; then
13038 echo $ECHO_N "(cached) $ECHO_C" >&6
13040 cat >conftest.$ac_ext <<_ACEOF
13043 cat confdefs.h >>conftest.$ac_ext
13044 cat >>conftest.$ac_ext <<_ACEOF
13045 /* end confdefs.h. */
13047 #ifdef HAVE_SYS_TYPES_H
13048 #include <sys/types.h>
13052 typedef off_t ac__type_new_;
13056 if ((ac__type_new_ *) 0)
13058 if (sizeof (ac__type_new_))
13064 rm -f conftest.$ac_objext
13065 if { (ac_try="$ac_compile"
13066 case "(($ac_try" in
13067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13068 *) ac_try_echo=$ac_try;;
13070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13071 (eval "$ac_compile") 2>conftest.er1
13073 grep -v '^
*+' conftest.er1 >conftest.err
13075 cat conftest.err >&5
13076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077 (exit $ac_status); } && {
13078 test -z "$ac_c_werror_flag" ||
13079 test ! -s conftest.err
13080 } && test -s conftest.$ac_objext; then
13081 ac_cv_type_off_t=yes
13083 echo "$as_me: failed program was:" >&5
13084 sed 's
/^
/|
/' conftest.$ac_ext >&5
13086 ac_cv_type_off_t=no
13089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13091 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13092 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
13094 # The cast to long int works around a bug in the HP C Compiler
13095 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13096 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13097 # This bug is HP SR number 8606223364.
13098 { echo "$as_me:$LINENO: checking size of off_t" >&5
13099 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
13100 if test "${ac_cv_sizeof_off_t+set}" = set; then
13101 echo $ECHO_N "(cached) $ECHO_C" >&6
13103 if test "$cross_compiling" = yes; then
13104 # Depending upon the size, compute the lo and hi bounds.
13105 cat >conftest.
$ac_ext <<_ACEOF
13108 cat confdefs.h
>>conftest.
$ac_ext
13109 cat >>conftest.
$ac_ext <<_ACEOF
13110 /* end confdefs.h. */
13112 #ifdef HAVE_SYS_TYPES_H
13113 #include <sys/types.h>
13117 typedef off_t ac__type_sizeof_;
13121 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13128 rm -f conftest.
$ac_objext
13129 if { (ac_try
="$ac_compile"
13130 case "(($ac_try" in
13131 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13132 *) ac_try_echo=$ac_try;;
13134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13135 (eval "$ac_compile") 2>conftest.er1
13137 grep -v '^ *+' conftest.er1 >conftest.err
13139 cat conftest.err >&5
13140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141 (exit $ac_status); } && {
13142 test -z "$ac_c_werror_flag" ||
13143 test ! -s conftest.err
13144 } && test -s conftest.$ac_objext; then
13147 cat >conftest.$ac_ext <<_ACEOF
13150 cat confdefs.h >>conftest.$ac_ext
13151 cat >>conftest.$ac_ext <<_ACEOF
13152 /* end confdefs.h. */
13154 #ifdef HAVE_SYS_TYPES_H
13155 #include <sys/types.h>
13159 typedef off_t ac__type_sizeof_;
13163 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13170 rm -f conftest.$ac_objext
13171 if { (ac_try="$ac_compile"
13172 case "(($ac_try" in
13173 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13174 *) ac_try_echo
=$ac_try;;
13176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13177 (eval "$ac_compile") 2>conftest.er1
13179 grep -v '^ *+' conftest.er1
>conftest.err
13181 cat conftest.err
>&5
13182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); } && {
13184 test -z "$ac_c_werror_flag" ||
13185 test ! -s conftest.err
13186 } && test -s conftest.
$ac_objext; then
13187 ac_hi
=$ac_mid; break
13189 echo "$as_me: failed program was:" >&5
13190 sed 's/^/| /' conftest.
$ac_ext >&5
13192 ac_lo
=`expr $ac_mid + 1`
13193 if test $ac_lo -le $ac_mid; then
13197 ac_mid
=`expr 2 '*' $ac_mid + 1`
13200 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13203 echo "$as_me: failed program was:" >&5
13204 sed 's/^/| /' conftest.
$ac_ext >&5
13206 cat >conftest.
$ac_ext <<_ACEOF
13209 cat confdefs.h
>>conftest.
$ac_ext
13210 cat >>conftest.
$ac_ext <<_ACEOF
13211 /* end confdefs.h. */
13213 #ifdef HAVE_SYS_TYPES_H
13214 #include <sys/types.h>
13218 typedef off_t ac__type_sizeof_;
13222 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13229 rm -f conftest.
$ac_objext
13230 if { (ac_try
="$ac_compile"
13231 case "(($ac_try" in
13232 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13233 *) ac_try_echo=$ac_try;;
13235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13236 (eval "$ac_compile") 2>conftest.er1
13238 grep -v '^ *+' conftest.er1 >conftest.err
13240 cat conftest.err >&5
13241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242 (exit $ac_status); } && {
13243 test -z "$ac_c_werror_flag" ||
13244 test ! -s conftest.err
13245 } && test -s conftest.$ac_objext; then
13248 cat >conftest.$ac_ext <<_ACEOF
13251 cat confdefs.h >>conftest.$ac_ext
13252 cat >>conftest.$ac_ext <<_ACEOF
13253 /* end confdefs.h. */
13255 #ifdef HAVE_SYS_TYPES_H
13256 #include <sys/types.h>
13260 typedef off_t ac__type_sizeof_;
13264 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13271 rm -f conftest.$ac_objext
13272 if { (ac_try="$ac_compile"
13273 case "(($ac_try" in
13274 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13275 *) ac_try_echo
=$ac_try;;
13277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13278 (eval "$ac_compile") 2>conftest.er1
13280 grep -v '^ *+' conftest.er1
>conftest.err
13282 cat conftest.err
>&5
13283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13284 (exit $ac_status); } && {
13285 test -z "$ac_c_werror_flag" ||
13286 test ! -s conftest.err
13287 } && test -s conftest.
$ac_objext; then
13288 ac_lo
=$ac_mid; break
13290 echo "$as_me: failed program was:" >&5
13291 sed 's/^/| /' conftest.
$ac_ext >&5
13293 ac_hi
=`expr '(' $ac_mid ')' - 1`
13294 if test $ac_mid -le $ac_hi; then
13298 ac_mid
=`expr 2 '*' $ac_mid`
13301 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13304 echo "$as_me: failed program was:" >&5
13305 sed 's/^/| /' conftest.
$ac_ext >&5
13310 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13313 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13314 # Binary search between lo and hi bounds.
13315 while test "x$ac_lo" != "x$ac_hi"; do
13316 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13317 cat >conftest.
$ac_ext <<_ACEOF
13320 cat confdefs.h
>>conftest.
$ac_ext
13321 cat >>conftest.
$ac_ext <<_ACEOF
13322 /* end confdefs.h. */
13324 #ifdef HAVE_SYS_TYPES_H
13325 #include <sys/types.h>
13329 typedef off_t ac__type_sizeof_;
13333 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13340 rm -f conftest.
$ac_objext
13341 if { (ac_try
="$ac_compile"
13342 case "(($ac_try" in
13343 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13344 *) ac_try_echo=$ac_try;;
13346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13347 (eval "$ac_compile") 2>conftest.er1
13349 grep -v '^ *+' conftest.er1 >conftest.err
13351 cat conftest.err >&5
13352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353 (exit $ac_status); } && {
13354 test -z "$ac_c_werror_flag" ||
13355 test ! -s conftest.err
13356 } && test -s conftest.$ac_objext; then
13359 echo "$as_me: failed program was:" >&5
13360 sed 's/^/| /' conftest.$ac_ext >&5
13362 ac_lo=`expr '(' $ac_mid ')' + 1`
13365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13368 ?*) ac_cv_sizeof_off_t=$ac_lo;;
13369 '') if test "$ac_cv_type_off_t" = yes; then
13370 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
13371 See \`config.log
' for more details." >&5
13372 echo "$as_me: error: cannot compute sizeof (off_t)
13373 See \`config.log' for more details.
" >&2;}
13374 { (exit 77); exit 77; }; }
13376 ac_cv_sizeof_off_t=0
13380 cat >conftest.$ac_ext <<_ACEOF
13383 cat confdefs.h >>conftest.$ac_ext
13384 cat >>conftest.$ac_ext <<_ACEOF
13385 /* end confdefs.h. */
13387 #ifdef HAVE_SYS_TYPES_H
13388 #include <sys/types.h>
13392 typedef off_t ac__type_sizeof_;
13393 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13394 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13396 #include <stdlib.h>
13401 FILE *f = fopen ("conftest.val
", "w
");
13404 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13406 long int i = longval ();
13407 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13409 fprintf (f, "%ld
\n", i);
13413 unsigned long int i = ulongval ();
13414 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13416 fprintf (f, "%lu
\n", i);
13418 return ferror (f) || fclose (f) != 0;
13424 rm -f conftest$ac_exeext
13425 if { (ac_try="$ac_link"
13426 case "(($ac_try" in
13427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13428 *) ac_try_echo=$ac_try;;
13430 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13431 (eval "$ac_link") 2>&5
13433 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13434 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13435 { (case "(($ac_try" in
13436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13437 *) ac_try_echo=$ac_try;;
13439 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13440 (eval "$ac_try") 2>&5
13442 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13443 (exit $ac_status); }; }; then
13444 ac_cv_sizeof_off_t=`cat conftest.val`
13446 echo "$as_me: program exited with status
$ac_status" >&5
13447 echo "$as_me: failed program was
:" >&5
13448 sed 's/^/| /' conftest.$ac_ext >&5
13450 ( exit $ac_status )
13451 if test "$ac_cv_type_off_t" = yes; then
13452 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(off_t
)
13453 See \
`config.log' for more details." >&5
13454 echo "$as_me: error: cannot compute sizeof (off_t)
13455 See \`config.log
' for more details." >&2;}
13456 { (exit 77); exit 77; }; }
13458 ac_cv_sizeof_off_t=0
13461 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13465 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
13466 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
13470 cat >>confdefs.h <<_ACEOF
13471 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
13476 { echo "$as_me:$LINENO: checking whether to enable large file support" >&5
13477 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; }
13478 if test "$have_long_long" = yes -a \
13479 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
13480 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
13482 cat >>confdefs.h <<\_ACEOF
13483 #define HAVE_LARGEFILE_SUPPORT 1
13486 { echo "$as_me:$LINENO: result: yes" >&5
13487 echo "${ECHO_T}yes" >&6; }
13489 { echo "$as_me:$LINENO: result: no" >&5
13490 echo "${ECHO_T}no" >&6; }
13493 { echo "$as_me:$LINENO: checking for time_t" >&5
13494 echo $ECHO_N "checking for time_t... $ECHO_C" >&6; }
13495 if test "${ac_cv_type_time_t+set}" = set; then
13496 echo $ECHO_N "(cached) $ECHO_C" >&6
13498 cat >conftest.$ac_ext <<_ACEOF
13501 cat confdefs.h >>conftest.$ac_ext
13502 cat >>conftest.$ac_ext <<_ACEOF
13503 /* end confdefs.h. */
13505 #ifdef HAVE_SYS_TYPES_H
13506 #include <sys/types.h>
13513 typedef time_t ac__type_new_;
13517 if ((ac__type_new_ *) 0)
13519 if (sizeof (ac__type_new_))
13525 rm -f conftest.$ac_objext
13526 if { (ac_try="$ac_compile"
13527 case "(($ac_try" in
13528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13529 *) ac_try_echo=$ac_try;;
13531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13532 (eval "$ac_compile") 2>conftest.er1
13534 grep -v '^
*+' conftest.er1 >conftest.err
13536 cat conftest.err >&5
13537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13538 (exit $ac_status); } && {
13539 test -z "$ac_c_werror_flag" ||
13540 test ! -s conftest.err
13541 } && test -s conftest.$ac_objext; then
13542 ac_cv_type_time_t=yes
13544 echo "$as_me: failed program was:" >&5
13545 sed 's
/^
/|
/' conftest.$ac_ext >&5
13547 ac_cv_type_time_t=no
13550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13552 { echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
13553 echo "${ECHO_T}$ac_cv_type_time_t" >&6; }
13555 # The cast to long int works around a bug in the HP C Compiler
13556 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13557 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13558 # This bug is HP SR number 8606223364.
13559 { echo "$as_me:$LINENO: checking size of time_t" >&5
13560 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
13561 if test "${ac_cv_sizeof_time_t+set}" = set; then
13562 echo $ECHO_N "(cached) $ECHO_C" >&6
13564 if test "$cross_compiling" = yes; then
13565 # Depending upon the size, compute the lo and hi bounds.
13566 cat >conftest.
$ac_ext <<_ACEOF
13569 cat confdefs.h
>>conftest.
$ac_ext
13570 cat >>conftest.
$ac_ext <<_ACEOF
13571 /* end confdefs.h. */
13573 #ifdef HAVE_SYS_TYPES_H
13574 #include <sys/types.h>
13581 typedef time_t ac__type_sizeof_;
13585 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13592 rm -f conftest.
$ac_objext
13593 if { (ac_try
="$ac_compile"
13594 case "(($ac_try" in
13595 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13596 *) ac_try_echo=$ac_try;;
13598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13599 (eval "$ac_compile") 2>conftest.er1
13601 grep -v '^ *+' conftest.er1 >conftest.err
13603 cat conftest.err >&5
13604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13605 (exit $ac_status); } && {
13606 test -z "$ac_c_werror_flag" ||
13607 test ! -s conftest.err
13608 } && test -s conftest.$ac_objext; then
13611 cat >conftest.$ac_ext <<_ACEOF
13614 cat confdefs.h >>conftest.$ac_ext
13615 cat >>conftest.$ac_ext <<_ACEOF
13616 /* end confdefs.h. */
13618 #ifdef HAVE_SYS_TYPES_H
13619 #include <sys/types.h>
13626 typedef time_t ac__type_sizeof_;
13630 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13637 rm -f conftest.$ac_objext
13638 if { (ac_try="$ac_compile"
13639 case "(($ac_try" in
13640 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13641 *) ac_try_echo
=$ac_try;;
13643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13644 (eval "$ac_compile") 2>conftest.er1
13646 grep -v '^ *+' conftest.er1
>conftest.err
13648 cat conftest.err
>&5
13649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650 (exit $ac_status); } && {
13651 test -z "$ac_c_werror_flag" ||
13652 test ! -s conftest.err
13653 } && test -s conftest.
$ac_objext; then
13654 ac_hi
=$ac_mid; break
13656 echo "$as_me: failed program was:" >&5
13657 sed 's/^/| /' conftest.
$ac_ext >&5
13659 ac_lo
=`expr $ac_mid + 1`
13660 if test $ac_lo -le $ac_mid; then
13664 ac_mid
=`expr 2 '*' $ac_mid + 1`
13667 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13670 echo "$as_me: failed program was:" >&5
13671 sed 's/^/| /' conftest.
$ac_ext >&5
13673 cat >conftest.
$ac_ext <<_ACEOF
13676 cat confdefs.h
>>conftest.
$ac_ext
13677 cat >>conftest.
$ac_ext <<_ACEOF
13678 /* end confdefs.h. */
13680 #ifdef HAVE_SYS_TYPES_H
13681 #include <sys/types.h>
13688 typedef time_t ac__type_sizeof_;
13692 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13699 rm -f conftest.
$ac_objext
13700 if { (ac_try
="$ac_compile"
13701 case "(($ac_try" in
13702 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13703 *) ac_try_echo=$ac_try;;
13705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13706 (eval "$ac_compile") 2>conftest.er1
13708 grep -v '^ *+' conftest.er1 >conftest.err
13710 cat conftest.err >&5
13711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712 (exit $ac_status); } && {
13713 test -z "$ac_c_werror_flag" ||
13714 test ! -s conftest.err
13715 } && test -s conftest.$ac_objext; then
13718 cat >conftest.$ac_ext <<_ACEOF
13721 cat confdefs.h >>conftest.$ac_ext
13722 cat >>conftest.$ac_ext <<_ACEOF
13723 /* end confdefs.h. */
13725 #ifdef HAVE_SYS_TYPES_H
13726 #include <sys/types.h>
13733 typedef time_t ac__type_sizeof_;
13737 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13744 rm -f conftest.$ac_objext
13745 if { (ac_try="$ac_compile"
13746 case "(($ac_try" in
13747 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13748 *) ac_try_echo
=$ac_try;;
13750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13751 (eval "$ac_compile") 2>conftest.er1
13753 grep -v '^ *+' conftest.er1
>conftest.err
13755 cat conftest.err
>&5
13756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757 (exit $ac_status); } && {
13758 test -z "$ac_c_werror_flag" ||
13759 test ! -s conftest.err
13760 } && test -s conftest.
$ac_objext; then
13761 ac_lo
=$ac_mid; break
13763 echo "$as_me: failed program was:" >&5
13764 sed 's/^/| /' conftest.
$ac_ext >&5
13766 ac_hi
=`expr '(' $ac_mid ')' - 1`
13767 if test $ac_mid -le $ac_hi; then
13771 ac_mid
=`expr 2 '*' $ac_mid`
13774 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13777 echo "$as_me: failed program was:" >&5
13778 sed 's/^/| /' conftest.
$ac_ext >&5
13783 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13786 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13787 # Binary search between lo and hi bounds.
13788 while test "x$ac_lo" != "x$ac_hi"; do
13789 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13790 cat >conftest.
$ac_ext <<_ACEOF
13793 cat confdefs.h
>>conftest.
$ac_ext
13794 cat >>conftest.
$ac_ext <<_ACEOF
13795 /* end confdefs.h. */
13797 #ifdef HAVE_SYS_TYPES_H
13798 #include <sys/types.h>
13805 typedef time_t ac__type_sizeof_;
13809 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13816 rm -f conftest.
$ac_objext
13817 if { (ac_try
="$ac_compile"
13818 case "(($ac_try" in
13819 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13820 *) ac_try_echo=$ac_try;;
13822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13823 (eval "$ac_compile") 2>conftest.er1
13825 grep -v '^ *+' conftest.er1 >conftest.err
13827 cat conftest.err >&5
13828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13829 (exit $ac_status); } && {
13830 test -z "$ac_c_werror_flag" ||
13831 test ! -s conftest.err
13832 } && test -s conftest.$ac_objext; then
13835 echo "$as_me: failed program was:" >&5
13836 sed 's/^/| /' conftest.$ac_ext >&5
13838 ac_lo=`expr '(' $ac_mid ')' + 1`
13841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13844 ?*) ac_cv_sizeof_time_t=$ac_lo;;
13845 '') if test "$ac_cv_type_time_t" = yes; then
13846 { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
13847 See \`config.log
' for more details." >&5
13848 echo "$as_me: error: cannot compute sizeof (time_t)
13849 See \`config.log' for more details.
" >&2;}
13850 { (exit 77); exit 77; }; }
13852 ac_cv_sizeof_time_t=0
13856 cat >conftest.$ac_ext <<_ACEOF
13859 cat confdefs.h >>conftest.$ac_ext
13860 cat >>conftest.$ac_ext <<_ACEOF
13861 /* end confdefs.h. */
13863 #ifdef HAVE_SYS_TYPES_H
13864 #include <sys/types.h>
13871 typedef time_t ac__type_sizeof_;
13872 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13873 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13875 #include <stdlib.h>
13880 FILE *f = fopen ("conftest.val
", "w
");
13883 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13885 long int i = longval ();
13886 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13888 fprintf (f, "%ld
\n", i);
13892 unsigned long int i = ulongval ();
13893 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13895 fprintf (f, "%lu
\n", i);
13897 return ferror (f) || fclose (f) != 0;
13903 rm -f conftest$ac_exeext
13904 if { (ac_try="$ac_link"
13905 case "(($ac_try" in
13906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13907 *) ac_try_echo=$ac_try;;
13909 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13910 (eval "$ac_link") 2>&5
13912 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13913 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13914 { (case "(($ac_try" in
13915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13916 *) ac_try_echo=$ac_try;;
13918 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13919 (eval "$ac_try") 2>&5
13921 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13922 (exit $ac_status); }; }; then
13923 ac_cv_sizeof_time_t=`cat conftest.val`
13925 echo "$as_me: program exited with status
$ac_status" >&5
13926 echo "$as_me: failed program was
:" >&5
13927 sed 's/^/| /' conftest.$ac_ext >&5
13929 ( exit $ac_status )
13930 if test "$ac_cv_type_time_t" = yes; then
13931 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(time_t
)
13932 See \
`config.log' for more details." >&5
13933 echo "$as_me: error: cannot compute sizeof (time_t)
13934 See \`config.log
' for more details." >&2;}
13935 { (exit 77); exit 77; }; }
13937 ac_cv_sizeof_time_t=0
13940 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13944 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
13945 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
13949 cat >>confdefs.h <<_ACEOF
13950 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
13955 # if have pthread_t then define SIZEOF_PTHREAD_T
13957 if test "$ac_cv_kpthread" = "yes"
13958 then CC="$CC -Kpthread"
13959 elif test "$ac_cv_kthread" = "yes"
13960 then CC="$CC -Kthread"
13961 elif test "$ac_cv_pthread" = "yes"
13962 then CC="$CC -pthread"
13964 { echo "$as_me:$LINENO: checking for pthread_t" >&5
13965 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
13967 cat >conftest.$ac_ext <<_ACEOF
13970 cat confdefs.h >>conftest.$ac_ext
13971 cat >>conftest.$ac_ext <<_ACEOF
13972 /* end confdefs.h. */
13973 #include <pthread.h>
13977 pthread_t x; x = *(pthread_t*)0;
13982 rm -f conftest.$ac_objext
13983 if { (ac_try="$ac_compile"
13984 case "(($ac_try" in
13985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13986 *) ac_try_echo=$ac_try;;
13988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13989 (eval "$ac_compile") 2>conftest.er1
13991 grep -v '^
*+' conftest.er1 >conftest.err
13993 cat conftest.err >&5
13994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13995 (exit $ac_status); } && {
13996 test -z "$ac_c_werror_flag" ||
13997 test ! -s conftest.err
13998 } && test -s conftest.$ac_objext; then
14001 echo "$as_me: failed program was:" >&5
14002 sed 's
/^
/|
/' conftest.$ac_ext >&5
14007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14008 { echo "$as_me:$LINENO: result: $have_pthread_t" >&5
14009 echo "${ECHO_T}$have_pthread_t" >&6; }
14010 if test "$have_pthread_t" = yes ; then
14011 { echo "$as_me:$LINENO: checking for pthread_t" >&5
14012 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
14013 if test "${ac_cv_type_pthread_t+set}" = set; then
14014 echo $ECHO_N "(cached) $ECHO_C" >&6
14016 cat >conftest.$ac_ext <<_ACEOF
14019 cat confdefs.h >>conftest.$ac_ext
14020 cat >>conftest.$ac_ext <<_ACEOF
14021 /* end confdefs.h. */
14023 #ifdef HAVE_PTHREAD_H
14024 #include <pthread.h>
14028 typedef pthread_t ac__type_new_;
14032 if ((ac__type_new_ *) 0)
14034 if (sizeof (ac__type_new_))
14040 rm -f conftest.$ac_objext
14041 if { (ac_try="$ac_compile"
14042 case "(($ac_try" in
14043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14044 *) ac_try_echo=$ac_try;;
14046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14047 (eval "$ac_compile") 2>conftest.er1
14049 grep -v '^
*+' conftest.er1 >conftest.err
14051 cat conftest.err >&5
14052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053 (exit $ac_status); } && {
14054 test -z "$ac_c_werror_flag" ||
14055 test ! -s conftest.err
14056 } && test -s conftest.$ac_objext; then
14057 ac_cv_type_pthread_t=yes
14059 echo "$as_me: failed program was:" >&5
14060 sed 's
/^
/|
/' conftest.$ac_ext >&5
14062 ac_cv_type_pthread_t=no
14065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14067 { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_t" >&5
14068 echo "${ECHO_T}$ac_cv_type_pthread_t" >&6; }
14070 # The cast to long int works around a bug in the HP C Compiler
14071 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14072 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14073 # This bug is HP SR number 8606223364.
14074 { echo "$as_me:$LINENO: checking size of pthread_t" >&5
14075 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; }
14076 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
14077 echo $ECHO_N "(cached) $ECHO_C" >&6
14079 if test "$cross_compiling" = yes; then
14080 # Depending upon the size, compute the lo and hi bounds.
14081 cat >conftest.
$ac_ext <<_ACEOF
14084 cat confdefs.h
>>conftest.
$ac_ext
14085 cat >>conftest.
$ac_ext <<_ACEOF
14086 /* end confdefs.h. */
14088 #ifdef HAVE_PTHREAD_H
14089 #include <pthread.h>
14093 typedef pthread_t ac__type_sizeof_;
14097 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
14104 rm -f conftest.
$ac_objext
14105 if { (ac_try
="$ac_compile"
14106 case "(($ac_try" in
14107 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14108 *) ac_try_echo=$ac_try;;
14110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14111 (eval "$ac_compile") 2>conftest.er1
14113 grep -v '^ *+' conftest.er1 >conftest.err
14115 cat conftest.err >&5
14116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14117 (exit $ac_status); } && {
14118 test -z "$ac_c_werror_flag" ||
14119 test ! -s conftest.err
14120 } && test -s conftest.$ac_objext; then
14123 cat >conftest.$ac_ext <<_ACEOF
14126 cat confdefs.h >>conftest.$ac_ext
14127 cat >>conftest.$ac_ext <<_ACEOF
14128 /* end confdefs.h. */
14130 #ifdef HAVE_PTHREAD_H
14131 #include <pthread.h>
14135 typedef pthread_t ac__type_sizeof_;
14139 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14146 rm -f conftest.$ac_objext
14147 if { (ac_try="$ac_compile"
14148 case "(($ac_try" in
14149 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14150 *) ac_try_echo
=$ac_try;;
14152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14153 (eval "$ac_compile") 2>conftest.er1
14155 grep -v '^ *+' conftest.er1
>conftest.err
14157 cat conftest.err
>&5
14158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14159 (exit $ac_status); } && {
14160 test -z "$ac_c_werror_flag" ||
14161 test ! -s conftest.err
14162 } && test -s conftest.
$ac_objext; then
14163 ac_hi
=$ac_mid; break
14165 echo "$as_me: failed program was:" >&5
14166 sed 's/^/| /' conftest.
$ac_ext >&5
14168 ac_lo
=`expr $ac_mid + 1`
14169 if test $ac_lo -le $ac_mid; then
14173 ac_mid
=`expr 2 '*' $ac_mid + 1`
14176 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14179 echo "$as_me: failed program was:" >&5
14180 sed 's/^/| /' conftest.
$ac_ext >&5
14182 cat >conftest.
$ac_ext <<_ACEOF
14185 cat confdefs.h
>>conftest.
$ac_ext
14186 cat >>conftest.
$ac_ext <<_ACEOF
14187 /* end confdefs.h. */
14189 #ifdef HAVE_PTHREAD_H
14190 #include <pthread.h>
14194 typedef pthread_t ac__type_sizeof_;
14198 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
14205 rm -f conftest.
$ac_objext
14206 if { (ac_try
="$ac_compile"
14207 case "(($ac_try" in
14208 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14209 *) ac_try_echo=$ac_try;;
14211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14212 (eval "$ac_compile") 2>conftest.er1
14214 grep -v '^ *+' conftest.er1 >conftest.err
14216 cat conftest.err >&5
14217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218 (exit $ac_status); } && {
14219 test -z "$ac_c_werror_flag" ||
14220 test ! -s conftest.err
14221 } && test -s conftest.$ac_objext; then
14224 cat >conftest.$ac_ext <<_ACEOF
14227 cat confdefs.h >>conftest.$ac_ext
14228 cat >>conftest.$ac_ext <<_ACEOF
14229 /* end confdefs.h. */
14231 #ifdef HAVE_PTHREAD_H
14232 #include <pthread.h>
14236 typedef pthread_t ac__type_sizeof_;
14240 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
14247 rm -f conftest.$ac_objext
14248 if { (ac_try="$ac_compile"
14249 case "(($ac_try" in
14250 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14251 *) ac_try_echo
=$ac_try;;
14253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14254 (eval "$ac_compile") 2>conftest.er1
14256 grep -v '^ *+' conftest.er1
>conftest.err
14258 cat conftest.err
>&5
14259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260 (exit $ac_status); } && {
14261 test -z "$ac_c_werror_flag" ||
14262 test ! -s conftest.err
14263 } && test -s conftest.
$ac_objext; then
14264 ac_lo
=$ac_mid; break
14266 echo "$as_me: failed program was:" >&5
14267 sed 's/^/| /' conftest.
$ac_ext >&5
14269 ac_hi
=`expr '(' $ac_mid ')' - 1`
14270 if test $ac_mid -le $ac_hi; then
14274 ac_mid
=`expr 2 '*' $ac_mid`
14277 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14280 echo "$as_me: failed program was:" >&5
14281 sed 's/^/| /' conftest.
$ac_ext >&5
14286 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14289 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14290 # Binary search between lo and hi bounds.
14291 while test "x$ac_lo" != "x$ac_hi"; do
14292 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14293 cat >conftest.
$ac_ext <<_ACEOF
14296 cat confdefs.h
>>conftest.
$ac_ext
14297 cat >>conftest.
$ac_ext <<_ACEOF
14298 /* end confdefs.h. */
14300 #ifdef HAVE_PTHREAD_H
14301 #include <pthread.h>
14305 typedef pthread_t ac__type_sizeof_;
14309 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14316 rm -f conftest.
$ac_objext
14317 if { (ac_try
="$ac_compile"
14318 case "(($ac_try" in
14319 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14320 *) ac_try_echo=$ac_try;;
14322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14323 (eval "$ac_compile") 2>conftest.er1
14325 grep -v '^ *+' conftest.er1 >conftest.err
14327 cat conftest.err >&5
14328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329 (exit $ac_status); } && {
14330 test -z "$ac_c_werror_flag" ||
14331 test ! -s conftest.err
14332 } && test -s conftest.$ac_objext; then
14335 echo "$as_me: failed program was:" >&5
14336 sed 's/^/| /' conftest.$ac_ext >&5
14338 ac_lo=`expr '(' $ac_mid ')' + 1`
14341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14344 ?*) ac_cv_sizeof_pthread_t=$ac_lo;;
14345 '') if test "$ac_cv_type_pthread_t" = yes; then
14346 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pthread_t)
14347 See \`config.log
' for more details." >&5
14348 echo "$as_me: error: cannot compute sizeof (pthread_t)
14349 See \`config.log' for more details.
" >&2;}
14350 { (exit 77); exit 77; }; }
14352 ac_cv_sizeof_pthread_t=0
14356 cat >conftest.$ac_ext <<_ACEOF
14359 cat confdefs.h >>conftest.$ac_ext
14360 cat >>conftest.$ac_ext <<_ACEOF
14361 /* end confdefs.h. */
14363 #ifdef HAVE_PTHREAD_H
14364 #include <pthread.h>
14368 typedef pthread_t ac__type_sizeof_;
14369 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14370 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
14372 #include <stdlib.h>
14377 FILE *f = fopen ("conftest.val
", "w
");
14380 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
14382 long int i = longval ();
14383 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14385 fprintf (f, "%ld
\n", i);
14389 unsigned long int i = ulongval ();
14390 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14392 fprintf (f, "%lu
\n", i);
14394 return ferror (f) || fclose (f) != 0;
14400 rm -f conftest$ac_exeext
14401 if { (ac_try="$ac_link"
14402 case "(($ac_try" in
14403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14404 *) ac_try_echo=$ac_try;;
14406 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14407 (eval "$ac_link") 2>&5
14409 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14410 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14411 { (case "(($ac_try" in
14412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14413 *) ac_try_echo=$ac_try;;
14415 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14416 (eval "$ac_try") 2>&5
14418 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14419 (exit $ac_status); }; }; then
14420 ac_cv_sizeof_pthread_t=`cat conftest.val`
14422 echo "$as_me: program exited with status
$ac_status" >&5
14423 echo "$as_me: failed program was
:" >&5
14424 sed 's/^/| /' conftest.$ac_ext >&5
14426 ( exit $ac_status )
14427 if test "$ac_cv_type_pthread_t" = yes; then
14428 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(pthread_t
)
14429 See \
`config.log' for more details." >&5
14430 echo "$as_me: error: cannot compute sizeof (pthread_t)
14431 See \`config.log
' for more details." >&2;}
14432 { (exit 77); exit 77; }; }
14434 ac_cv_sizeof_pthread_t=0
14437 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14441 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
14442 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; }
14446 cat >>confdefs.h <<_ACEOF
14447 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
14454 { echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
14455 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6; }
14456 # Check whether --enable-toolbox-glue was given.
14457 if test "${enable_toolbox_glue+set}" = set; then
14458 enableval=$enable_toolbox_glue;
14462 if test -z "$enable_toolbox_glue"
14464 case $ac_sys_system/$ac_sys_release in
14466 enable_toolbox_glue="yes";;
14468 enable_toolbox_glue="no";;
14471 case "$enable_toolbox_glue" in
14473 extra_machdep_objs="Python/mactoolboxglue.o"
14474 extra_undefs="-u _PyMac_Error"
14476 cat >>confdefs.h <<\_ACEOF
14477 #define USE_TOOLBOX_OBJECT_GLUE 1
14482 extra_machdep_objs=""
14486 { echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
14487 echo "${ECHO_T}$enable_toolbox_glue" >&6; }
14491 case $ac_sys_system/$ac_sys_release in
14492 Darwin/[01567]\..*)
14493 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
14496 OTHER_LIBTOOL_OPT=""
14503 case $ac_sys_system/$ac_sys_release in
14504 Darwin/[01567]\..*)
14505 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
14506 if test "${enable_universalsdk}"; then
14509 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch`"
14511 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $
(PYTHONFRAMEWORKINSTALLDIR
)/Versions
/$
(VERSION
)/$
(PYTHONFRAMEWORK
)'
14512 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $
(VERSION
) -current_version $
(VERSION
)';;
14514 gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3`
14515 if test ${gcc_version} '<' 4.0
14517 LIBTOOL_CRUFT="-lcc_dynamic"
14521 if test "$cross_compiling" = yes; then
14524 cat >conftest.$ac_ext <<_ACEOF
14527 cat confdefs.h >>conftest.$ac_ext
14528 cat >>conftest.$ac_ext <<_ACEOF
14529 /* end confdefs.h. */
14531 #include <unistd.h>
14532 int main(int argc, char*argv[])
14534 if (sizeof(long) == 4) {
14542 rm -f conftest$ac_exeext
14543 if { (ac_try="$ac_link"
14544 case "(($ac_try" in
14545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14546 *) ac_try_echo=$ac_try;;
14548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14549 (eval "$ac_link") 2>&5
14551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
14553 { (case "(($ac_try" in
14554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14555 *) ac_try_echo=$ac_try;;
14557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14558 (eval "$ac_try") 2>&5
14560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561 (exit $ac_status); }; }; then
14564 echo "$as_me: program exited with status $ac_status" >&5
14565 echo "$as_me: failed program was:" >&5
14566 sed 's
/^
/|
/' conftest.$ac_ext >&5
14568 ( exit $ac_status )
14571 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14576 if test "${ac_osx_32bit}" = "yes"; then
14579 MACOSX_DEFAULT_ARCH="i386"
14582 MACOSX_DEFAULT_ARCH="ppc"
14585 { { echo "$as_me:$LINENO: error: Unexpected output of 'arch
' on OSX" >&5
14586 echo "$as_me: error: Unexpected output of 'arch
' on OSX" >&2;}
14587 { (exit 1); exit 1; }; }
14593 MACOSX_DEFAULT_ARCH="x86_64"
14596 MACOSX_DEFAULT_ARCH="ppc64"
14599 { { echo "$as_me:$LINENO: error: Unexpected output of 'arch
' on OSX" >&5
14600 echo "$as_me: error: Unexpected output of 'arch
' on OSX" >&2;}
14601 { (exit 1); exit 1; }; }
14605 #ARCH_RUN_32BIT="true"
14608 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}"
14609 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $
(PYTHONFRAMEWORKINSTALLDIR
)/Versions
/$
(VERSION
)/$
(PYTHONFRAMEWORK
)'
14610 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $
(VERSION
) -current_version $
(VERSION
)';;
14613 { echo "$as_me:$LINENO: checking for --enable-framework" >&5
14614 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; }
14615 if test "$enable_framework"
14617 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
14618 # -F. is needed to allow linking to the framework while
14619 # in the build location.
14621 cat >>confdefs.h <<\_ACEOF
14622 #define WITH_NEXT_FRAMEWORK 1
14625 { echo "$as_me:$LINENO: result: yes" >&5
14626 echo "${ECHO_T}yes" >&6; }
14627 if test $enable_shared = "yes"
14629 { { echo "$as_me:$LINENO: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead. See Mac/README." >&5
14630 echo "$as_me: error: Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead. See Mac/README." >&2;}
14631 { (exit 1); exit 1; }; }
14634 { echo "$as_me:$LINENO: result: no" >&5
14635 echo "${ECHO_T}no" >&6; }
14638 { echo "$as_me:$LINENO: checking for dyld" >&5
14639 echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
14640 case $ac_sys_system/$ac_sys_release in
14643 cat >>confdefs.h <<\_ACEOF
14644 #define WITH_DYLD 1
14647 { echo "$as_me:$LINENO: result: always on for Darwin" >&5
14648 echo "${ECHO_T}always on for Darwin" >&6; }
14651 { echo "$as_me:$LINENO: result: no" >&5
14652 echo "${ECHO_T}no" >&6; }
14656 # Set info about shared libraries.
14662 # SO is the extension of shared libraries `(including the dot!)
14663 # -- usually .so, .sl on HP-UX, .dll on Cygwin
14664 { echo "$as_me:$LINENO: checking SO" >&5
14665 echo $ECHO_N "checking SO... $ECHO_C" >&6; }
14668 case $ac_sys_system in
14679 # this might also be a termcap variable, see #610332
14681 echo '====================================================================='
14683 echo '+ WARNING
: You have
set SO
in your environment.
+'
14684 echo '+ Do you really mean to change the extension
for shared libraries?
+'
14685 echo '+ Continuing
in 10 seconds to
let you to ponder.
+'
14687 echo '====================================================================='
14690 { echo "$as_me:$LINENO: result: $SO" >&5
14691 echo "${ECHO_T}$SO" >&6; }
14694 cat >>confdefs.h <<_ACEOF
14695 #define SHLIB_EXT "$SO"
14698 # LDSHARED is the ld *command* used to create shared library
14699 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
14700 # (Shared libraries in this instance are shared modules to be loaded into
14701 # Python, as opposed to building Python itself as a shared library.)
14702 { echo "$as_me:$LINENO: checking LDSHARED" >&5
14703 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
14704 if test -z "$LDSHARED"
14706 case $ac_sys_system/$ac_sys_release in
14708 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
14709 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
14712 BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
14713 LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
14715 IRIX/5*) LDSHARED="ld -shared";;
14716 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
14718 if test "$GCC" = "yes"
14719 then LDSHARED='$
(CC
) -shared'
14720 else LDSHARED='$
(CC
) -G';
14723 if test "$GCC" = "yes"
14724 then LDSHARED='$
(CC
) -shared'
14725 else LDSHARED='ld
-b';
14727 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
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. Ignore undefined symbols, assuming they come from Python
14736 LDSHARED="$LDSHARED -undefined suppress"
14738 Darwin/1.4*|Darwin/5.*|Darwin/6.*)
14739 LDSHARED='$
(CC
) $
(LDFLAGS
) -bundle'
14740 if test "$enable_framework" ; then
14741 # Link against the framework. All externals should be defined.
14742 BLDSHARED="$LDSHARED "'$
(PYTHONFRAMEWORKDIR
)/Versions
/$
(VERSION
)/$
(PYTHONFRAMEWORK
)'
14743 LDSHARED="$LDSHARED "'$
(PYTHONFRAMEWORKPREFIX
)/$
(PYTHONFRAMEWORKDIR
)/Versions
/$
(VERSION
)/$
(PYTHONFRAMEWORK
)'
14745 # No framework, use the Python app as bundle-loader
14746 BLDSHARED="$LDSHARED "'-bundle_loader $
(BUILDPYTHON
)'
14747 LDSHARED="$LDSHARED "'-bundle_loader $
(BINDIR
)/python$
(VERSION
)$
(EXE
)'
14750 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
14751 # This allows an extension to be used in any Python
14753 if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2
14755 if test "${enable_universalsdk}"; then
14756 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
14758 LDSHARED='$
(CC
) $
(LDFLAGS
) -bundle -undefined dynamic_lookup
'
14759 BLDSHARED="$LDSHARED"
14761 LDSHARED='$
(CC
) $
(LDFLAGS
) -bundle'
14762 if test "$enable_framework" ; then
14763 # Link against the framework. All externals should be defined.
14764 BLDSHARED="$LDSHARED "'$
(PYTHONFRAMEWORKDIR
)/Versions
/$
(VERSION
)/$
(PYTHONFRAMEWORK
)'
14765 LDSHARED="$LDSHARED "'$
(PYTHONFRAMEWORKPREFIX
)/$
(PYTHONFRAMEWORKDIR
)/Versions
/$
(VERSION
)/$
(PYTHONFRAMEWORK
)'
14767 # No framework, use the Python app as bundle-loader
14768 BLDSHARED="$LDSHARED "'-bundle_loader $
(BUILDPYTHON
)'
14769 LDSHARED="$LDSHARED "'-bundle_loader $
(BINDIR
)/python$
(VERSION
)$
(EXE
)'
14773 Linux*|GNU*|QNX*) LDSHARED='$
(CC
) -shared';;
14774 BSD/OS*/4*) LDSHARED="gcc -shared";;
14776 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
14778 LDSHARED="$CC -shared ${LDFLAGS}"
14780 LDSHARED="ld -Bshareable ${LDFLAGS}"
14783 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
14785 LDSHARED='$
(CC
) -shared $
(CCSHARED
) ${LDFLAGS}'
14788 [01].* | 2.[0-7] | 2.[0-7].*)
14789 LDSHARED="ld -Bshareable ${LDFLAGS}"
14792 LDSHARED='$
(CC
) -shared $
(CCSHARED
) ${LDFLAGS}'
14796 NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
14797 OpenUNIX*|UnixWare*)
14798 if test "$GCC" = "yes"
14799 then LDSHARED='$
(CC
) -shared'
14800 else LDSHARED='$
(CC
) -G'
14802 SCO_SV*) LDSHARED='$
(CC
) -Wl,-G,-Bexport';;
14803 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
14804 atheos*) LDSHARED="gcc -shared";;
14808 { echo "$as_me:$LINENO: result: $LDSHARED" >&5
14809 echo "${ECHO_T}$LDSHARED" >&6; }
14810 BLDSHARED=${BLDSHARED-$LDSHARED}
14811 # CCSHARED are the C *flags* used to create objects to go into a shared
14812 # library (module) -- this is only needed for a few systems
14813 { echo "$as_me:$LINENO: checking CCSHARED" >&5
14814 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
14815 if test -z "$CCSHARED"
14817 case $ac_sys_system/$ac_sys_release in
14818 SunOS*) if test "$GCC" = yes;
14819 then CCSHARED="-fPIC";
14820 elif test `uname -p` = sparc;
14821 then CCSHARED="-xcode=pic32";
14822 else CCSHARED="-Kpic";
14824 hp*|HP*) if test "$GCC" = yes;
14825 then CCSHARED="-fPIC";
14826 else CCSHARED="+z";
14828 Linux*|GNU*) CCSHARED="-fPIC";;
14829 BSD/OS*/4*) CCSHARED="-fpic";;
14830 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
14831 OpenUNIX*|UnixWare*)
14832 if test "$GCC" = "yes"
14833 then CCSHARED="-fPIC"
14834 else CCSHARED="-KPIC"
14837 if test "$GCC" = "yes"
14838 then CCSHARED="-fPIC"
14839 else CCSHARED="-Kpic -belf"
14841 IRIX*/6*) case $CC in
14842 *gcc*) CCSHARED="-shared";;
14845 atheos*) CCSHARED="-fPIC";;
14848 { echo "$as_me:$LINENO: result: $CCSHARED" >&5
14849 echo "${ECHO_T}$CCSHARED" >&6; }
14850 # LINKFORSHARED are the flags passed to the $(CC) command that links
14851 # the python executable -- this is only needed for a few systems
14852 { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
14853 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
14854 if test -z "$LINKFORSHARED"
14856 case $ac_sys_system/$ac_sys_release in
14857 AIX*) LINKFORSHARED='-Wl,-bE:Modules
/python.exp
-lld';;
14859 LINKFORSHARED="-Wl,-E -Wl,+s";;
14860 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
14861 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
14862 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
14863 # -u libsys_s pulls in all symbols in libsys
14865 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
14867 # not used by the core itself but which needs to be in the core so
14868 # that dynamically loaded extension modules have access to it.
14869 # -prebind is no longer used, because it actually seems to give a
14870 # slowdown in stead of a speedup, maybe due to the large number of
14871 # dynamic loads Python does.
14873 LINKFORSHARED="$extra_undefs"
14874 if test "$enable_framework"
14876 LINKFORSHARED="$LINKFORSHARED "'$
(PYTHONFRAMEWORKDIR
)/Versions
/$
(VERSION
)/$
(PYTHONFRAMEWORK
)'
14878 LINKFORSHARED="$LINKFORSHARED";;
14879 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
14880 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
14881 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
14882 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*)
14883 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
14885 LINKFORSHARED="-Wl,--export-dynamic"
14887 SunOS/5*) case $CC in
14889 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
14891 LINKFORSHARED="-Xlinker --export-dynamic"
14895 if test $enable_shared = "no"
14897 LINKFORSHARED='-Wl,--out-implib=$
(LDLIBRARY
)'
14900 # -Wl,-E causes the symbols to be added to the dynamic
14901 # symbol table so that they can be found when a module
14902 # is loaded. -N 2048K causes the stack size to be set
14903 # to 2048 kilobytes so that the stack doesn't overflow
14904 # when running test_compile.py.
14905 LINKFORSHARED
='-Wl,-E -N 2048K';;
14908 { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
14909 echo "${ECHO_T}$LINKFORSHARED" >&6; }
14913 { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
14914 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
14915 if test ! "$LIBRARY" = "$LDLIBRARY"
14917 case $ac_sys_system in
14919 # Cygwin needs CCSHARED when building extension DLLs
14920 # but not when building the interpreter DLL.
14921 CFLAGSFORSHARED
='';;
14923 CFLAGSFORSHARED
='$(CCSHARED)'
14926 { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
14927 echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
14929 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
14930 # library (with --enable-shared).
14931 # For platforms on which shared libraries are not allowed to have unresolved
14932 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
14933 # if it is not required, since it creates a dependency of the shared library
14934 # to LIBS. This, in turn, means that applications linking the shared libpython
14935 # don't need to link LIBS explicitly. The default should be only changed
14936 # on systems where this approach causes problems.
14938 { echo "$as_me:$LINENO: checking SHLIBS" >&5
14939 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
14940 case "$ac_sys_system" in
14944 { echo "$as_me:$LINENO: result: $SHLIBS" >&5
14945 echo "${ECHO_T}$SHLIBS" >&6; }
14948 # checks for libraries
14950 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14951 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
14952 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14953 echo $ECHO_N "(cached) $ECHO_C" >&6
14955 ac_check_lib_save_LIBS
=$LIBS
14957 cat >conftest.
$ac_ext <<_ACEOF
14960 cat confdefs.h
>>conftest.
$ac_ext
14961 cat >>conftest.
$ac_ext <<_ACEOF
14962 /* end confdefs.h. */
14964 /* Override any GCC internal prototype to avoid an error.
14965 Use char because int might match the return type of a GCC
14966 builtin and then its argument prototype would still apply. */
14979 rm -f conftest.
$ac_objext conftest
$ac_exeext
14980 if { (ac_try
="$ac_link"
14981 case "(($ac_try" in
14982 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14983 *) ac_try_echo=$ac_try;;
14985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14986 (eval "$ac_link") 2>conftest.er1
14988 grep -v '^ *+' conftest.er1 >conftest.err
14990 cat conftest.err >&5
14991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14992 (exit $ac_status); } && {
14993 test -z "$ac_c_werror_flag" ||
14994 test ! -s conftest.err
14995 } && test -s conftest$ac_exeext &&
14996 $as_test_x conftest$ac_exeext; then
14997 ac_cv_lib_dl_dlopen=yes
14999 echo "$as_me: failed program was:" >&5
15000 sed 's/^/| /' conftest.$ac_ext >&5
15002 ac_cv_lib_dl_dlopen=no
15005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15006 conftest$ac_exeext conftest.$ac_ext
15007 LIBS=$ac_check_lib_save_LIBS
15009 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15010 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
15011 if test $ac_cv_lib_dl_dlopen = yes; then
15012 cat >>confdefs.h <<_ACEOF
15013 #define HAVE_LIBDL 1
15019 # Dynamic linking for SunOS/Solaris and SYSV
15021 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15022 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
15023 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15024 echo $ECHO_N "(cached) $ECHO_C" >&6
15026 ac_check_lib_save_LIBS=$LIBS
15028 cat >conftest.$ac_ext <<_ACEOF
15031 cat confdefs.h >>conftest.$ac_ext
15032 cat >>conftest.$ac_ext <<_ACEOF
15033 /* end confdefs.h. */
15035 /* Override any GCC internal prototype to avoid an error.
15036 Use char because int might match the return type of a GCC
15037 builtin and then its argument prototype would still apply. */
15045 return shl_load ();
15050 rm -f conftest.$ac_objext conftest$ac_exeext
15051 if { (ac_try="$ac_link"
15052 case "(($ac_try" in
15053 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15054 *) ac_try_echo
=$ac_try;;
15056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15057 (eval "$ac_link") 2>conftest.er1
15059 grep -v '^ *+' conftest.er1
>conftest.err
15061 cat conftest.err
>&5
15062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063 (exit $ac_status); } && {
15064 test -z "$ac_c_werror_flag" ||
15065 test ! -s conftest.err
15066 } && test -s conftest
$ac_exeext &&
15067 $as_test_x conftest
$ac_exeext; then
15068 ac_cv_lib_dld_shl_load
=yes
15070 echo "$as_me: failed program was:" >&5
15071 sed 's/^/| /' conftest.
$ac_ext >&5
15073 ac_cv_lib_dld_shl_load
=no
15076 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15077 conftest
$ac_exeext conftest.
$ac_ext
15078 LIBS
=$ac_check_lib_save_LIBS
15080 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
15081 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
15082 if test $ac_cv_lib_dld_shl_load = yes; then
15083 cat >>confdefs.h
<<_ACEOF
15084 #define HAVE_LIBDLD 1
15090 # Dynamic linking for HP-UX
15092 # only check for sem_init if thread support is requested
15093 if test "$with_threads" = "yes" -o -z "$with_threads"; then
15094 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
15095 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
15096 if test "${ac_cv_search_sem_init+set}" = set; then
15097 echo $ECHO_N "(cached) $ECHO_C" >&6
15099 ac_func_search_save_LIBS
=$LIBS
15100 cat >conftest.
$ac_ext <<_ACEOF
15103 cat confdefs.h
>>conftest.
$ac_ext
15104 cat >>conftest.
$ac_ext <<_ACEOF
15105 /* end confdefs.h. */
15107 /* Override any GCC internal prototype to avoid an error.
15108 Use char because int might match the return type of a GCC
15109 builtin and then its argument prototype would still apply. */
15117 return sem_init ();
15122 for ac_lib
in '' pthread rt posix4
; do
15123 if test -z "$ac_lib"; then
15124 ac_res
="none required"
15127 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
15129 rm -f conftest.
$ac_objext conftest
$ac_exeext
15130 if { (ac_try
="$ac_link"
15131 case "(($ac_try" in
15132 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15133 *) ac_try_echo=$ac_try;;
15135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15136 (eval "$ac_link") 2>conftest.er1
15138 grep -v '^ *+' conftest.er1 >conftest.err
15140 cat conftest.err >&5
15141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142 (exit $ac_status); } && {
15143 test -z "$ac_c_werror_flag" ||
15144 test ! -s conftest.err
15145 } && test -s conftest$ac_exeext &&
15146 $as_test_x conftest$ac_exeext; then
15147 ac_cv_search_sem_init=$ac_res
15149 echo "$as_me: failed program was:" >&5
15150 sed 's/^/| /' conftest.$ac_ext >&5
15155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15157 if test "${ac_cv_search_sem_init+set}" = set; then
15161 if test "${ac_cv_search_sem_init+set}" = set; then
15164 ac_cv_search_sem_init=no
15166 rm conftest.$ac_ext
15167 LIBS=$ac_func_search_save_LIBS
15169 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
15170 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
15171 ac_res=$ac_cv_search_sem_init
15172 if test "$ac_res" != no; then
15173 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15176 # 'Real Time' functions on Solaris
15177 # posix4 on Solaris 2.6
15178 # pthread (first!) on Linux
15181 # check if we need libintl for locale functions
15182 { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
15183 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
15184 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
15185 echo $ECHO_N "(cached) $ECHO_C" >&6
15187 ac_check_lib_save_LIBS=$LIBS
15188 LIBS="-lintl $LIBS"
15189 cat >conftest.$ac_ext <<_ACEOF
15192 cat confdefs.h >>conftest.$ac_ext
15193 cat >>conftest.$ac_ext <<_ACEOF
15194 /* end confdefs.h. */
15196 /* Override any GCC internal prototype to avoid an error.
15197 Use char because int might match the return type of a GCC
15198 builtin and then its argument prototype would still apply. */
15202 char textdomain ();
15206 return textdomain ();
15211 rm -f conftest.$ac_objext conftest$ac_exeext
15212 if { (ac_try="$ac_link"
15213 case "(($ac_try" in
15214 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15215 *) ac_try_echo
=$ac_try;;
15217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15218 (eval "$ac_link") 2>conftest.er1
15220 grep -v '^ *+' conftest.er1
>conftest.err
15222 cat conftest.err
>&5
15223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15224 (exit $ac_status); } && {
15225 test -z "$ac_c_werror_flag" ||
15226 test ! -s conftest.err
15227 } && test -s conftest
$ac_exeext &&
15228 $as_test_x conftest
$ac_exeext; then
15229 ac_cv_lib_intl_textdomain
=yes
15231 echo "$as_me: failed program was:" >&5
15232 sed 's/^/| /' conftest.
$ac_ext >&5
15234 ac_cv_lib_intl_textdomain
=no
15237 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15238 conftest
$ac_exeext conftest.
$ac_ext
15239 LIBS
=$ac_check_lib_save_LIBS
15241 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
15242 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
15243 if test $ac_cv_lib_intl_textdomain = yes; then
15245 cat >>confdefs.h
<<\_ACEOF
15246 #define WITH_LIBINTL 1
15252 # checks for system dependent C++ extensions support
15253 case "$ac_sys_system" in
15254 AIX
*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
15255 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
15256 cat >conftest.
$ac_ext <<_ACEOF
15259 cat confdefs.h
>>conftest.
$ac_ext
15260 cat >>conftest.
$ac_ext <<_ACEOF
15261 /* end confdefs.h. */
15262 #include "/usr/lpp/xlC/include/load.h"
15266 loadAndInit("", 0, "")
15271 rm -f conftest.
$ac_objext conftest
$ac_exeext
15272 if { (ac_try
="$ac_link"
15273 case "(($ac_try" in
15274 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15275 *) ac_try_echo=$ac_try;;
15277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15278 (eval "$ac_link") 2>conftest.er1
15280 grep -v '^ *+' conftest.er1 >conftest.err
15282 cat conftest.err >&5
15283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15284 (exit $ac_status); } && {
15285 test -z "$ac_c_werror_flag" ||
15286 test ! -s conftest.err
15287 } && test -s conftest$ac_exeext &&
15288 $as_test_x conftest$ac_exeext; then
15290 cat >>confdefs.h <<\_ACEOF
15291 #define AIX_GENUINE_CPLUSPLUS 1
15294 { echo "$as_me:$LINENO: result: yes" >&5
15295 echo "${ECHO_T}yes" >&6; }
15297 echo "$as_me: failed program was:" >&5
15298 sed 's/^/| /' conftest.$ac_ext >&5
15300 { echo "$as_me:$LINENO: result: no" >&5
15301 echo "${ECHO_T}no" >&6; }
15304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15305 conftest$ac_exeext conftest.$ac_ext;;
15309 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
15310 # BeOS' sockets are stashed in libnet.
15311 { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
15312 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
15313 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
15314 echo $ECHO_N "(cached) $ECHO_C" >&6
15316 ac_check_lib_save_LIBS=$LIBS
15318 cat >conftest.$ac_ext <<_ACEOF
15321 cat confdefs.h >>conftest.$ac_ext
15322 cat >>conftest.$ac_ext <<_ACEOF
15323 /* end confdefs.h. */
15325 /* Override any GCC internal prototype to avoid an error.
15326 Use char because int might match the return type of a GCC
15327 builtin and then its argument prototype would still apply. */
15340 rm -f conftest.$ac_objext conftest$ac_exeext
15341 if { (ac_try="$ac_link"
15342 case "(($ac_try" in
15343 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15344 *) ac_try_echo
=$ac_try;;
15346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15347 (eval "$ac_link") 2>conftest.er1
15349 grep -v '^ *+' conftest.er1
>conftest.err
15351 cat conftest.err
>&5
15352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15353 (exit $ac_status); } && {
15354 test -z "$ac_c_werror_flag" ||
15355 test ! -s conftest.err
15356 } && test -s conftest
$ac_exeext &&
15357 $as_test_x conftest
$ac_exeext; then
15358 ac_cv_lib_nsl_t_open
=yes
15360 echo "$as_me: failed program was:" >&5
15361 sed 's/^/| /' conftest.
$ac_ext >&5
15363 ac_cv_lib_nsl_t_open
=no
15366 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15367 conftest
$ac_exeext conftest.
$ac_ext
15368 LIBS
=$ac_check_lib_save_LIBS
15370 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
15371 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
15372 if test $ac_cv_lib_nsl_t_open = yes; then
15376 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15377 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
15378 if test "${ac_cv_lib_socket_socket+set}" = set; then
15379 echo $ECHO_N "(cached) $ECHO_C" >&6
15381 ac_check_lib_save_LIBS
=$LIBS
15382 LIBS
="-lsocket $LIBS $LIBS"
15383 cat >conftest.
$ac_ext <<_ACEOF
15386 cat confdefs.h
>>conftest.
$ac_ext
15387 cat >>conftest.
$ac_ext <<_ACEOF
15388 /* end confdefs.h. */
15390 /* Override any GCC internal prototype to avoid an error.
15391 Use char because int might match the return type of a GCC
15392 builtin and then its argument prototype would still apply. */
15405 rm -f conftest.
$ac_objext conftest
$ac_exeext
15406 if { (ac_try
="$ac_link"
15407 case "(($ac_try" in
15408 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15409 *) ac_try_echo=$ac_try;;
15411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15412 (eval "$ac_link") 2>conftest.er1
15414 grep -v '^ *+' conftest.er1 >conftest.err
15416 cat conftest.err >&5
15417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15418 (exit $ac_status); } && {
15419 test -z "$ac_c_werror_flag" ||
15420 test ! -s conftest.err
15421 } && test -s conftest$ac_exeext &&
15422 $as_test_x conftest$ac_exeext; then
15423 ac_cv_lib_socket_socket=yes
15425 echo "$as_me: failed program was:" >&5
15426 sed 's/^/| /' conftest.$ac_ext >&5
15428 ac_cv_lib_socket_socket=no
15431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15432 conftest$ac_exeext conftest.$ac_ext
15433 LIBS=$ac_check_lib_save_LIBS
15435 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15436 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
15437 if test $ac_cv_lib_socket_socket = yes; then
15438 LIBS="-lsocket $LIBS"
15442 case "$ac_sys_system" in
15444 { echo "$as_me:$LINENO: checking for socket in -lnet" >&5
15445 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6; }
15446 if test "${ac_cv_lib_net_socket+set}" = set; then
15447 echo $ECHO_N "(cached) $ECHO_C" >&6
15449 ac_check_lib_save_LIBS=$LIBS
15450 LIBS="-lnet $LIBS $LIBS"
15451 cat >conftest.$ac_ext <<_ACEOF
15454 cat confdefs.h >>conftest.$ac_ext
15455 cat >>conftest.$ac_ext <<_ACEOF
15456 /* end confdefs.h. */
15458 /* Override any GCC internal prototype to avoid an error.
15459 Use char because int might match the return type of a GCC
15460 builtin and then its argument prototype would still apply. */
15473 rm -f conftest.$ac_objext conftest$ac_exeext
15474 if { (ac_try="$ac_link"
15475 case "(($ac_try" in
15476 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15477 *) ac_try_echo
=$ac_try;;
15479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15480 (eval "$ac_link") 2>conftest.er1
15482 grep -v '^ *+' conftest.er1
>conftest.err
15484 cat conftest.err
>&5
15485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15486 (exit $ac_status); } && {
15487 test -z "$ac_c_werror_flag" ||
15488 test ! -s conftest.err
15489 } && test -s conftest
$ac_exeext &&
15490 $as_test_x conftest
$ac_exeext; then
15491 ac_cv_lib_net_socket
=yes
15493 echo "$as_me: failed program was:" >&5
15494 sed 's/^/| /' conftest.
$ac_ext >&5
15496 ac_cv_lib_net_socket
=no
15499 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15500 conftest
$ac_exeext conftest.
$ac_ext
15501 LIBS
=$ac_check_lib_save_LIBS
15503 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
15504 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6; }
15505 if test $ac_cv_lib_net_socket = yes; then
15512 { echo "$as_me:$LINENO: checking for --with-libs" >&5
15513 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
15515 # Check whether --with-libs was given.
15516 if test "${with_libs+set}" = set; then
15517 withval
=$with_libs;
15518 { echo "$as_me:$LINENO: result: $withval" >&5
15519 echo "${ECHO_T}$withval" >&6; }
15520 LIBS
="$withval $LIBS"
15523 { echo "$as_me:$LINENO: result: no" >&5
15524 echo "${ECHO_T}no" >&6; }
15528 # Check for use of the system libffi library
15529 { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
15530 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
15532 # Check whether --with-system_ffi was given.
15533 if test "${with_system_ffi+set}" = set; then
15534 withval
=$with_system_ffi;
15538 { echo "$as_me:$LINENO: result: $with_system_ffi" >&5
15539 echo "${ECHO_T}$with_system_ffi" >&6; }
15541 # Check for --with-dbmliborder
15542 { echo "$as_me:$LINENO: checking for --with-dbmliborder" >&5
15543 echo $ECHO_N "checking for --with-dbmliborder... $ECHO_C" >&6; }
15545 # Check whether --with-dbmliborder was given.
15546 if test "${with_dbmliborder+set}" = set; then
15547 withval
=$with_dbmliborder;
15548 if test x
$with_dbmliborder = xyes
15550 { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
15551 echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
15552 { (exit 1); exit 1; }; }
15554 for db
in `echo $with_dbmliborder | sed 's/:/ /g'`; do
15555 if test x
$db != xndbm
&& test x
$db != xgdbm
&& test x
$db != xbdb
15557 { { echo "$as_me:$LINENO: error: proper usage is --with-dbmliborder=db1:db2:..." >&5
15558 echo "$as_me: error: proper usage is --with-dbmliborder=db1:db2:..." >&2;}
15559 { (exit 1); exit 1; }; }
15565 { echo "$as_me:$LINENO: result: $with_dbmliborder" >&5
15566 echo "${ECHO_T}$with_dbmliborder" >&6; }
15568 # Determine if signalmodule should be used.
15571 { echo "$as_me:$LINENO: checking for --with-signal-module" >&5
15572 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; }
15574 # Check whether --with-signal-module was given.
15575 if test "${with_signal_module+set}" = set; then
15576 withval
=$with_signal_module;
15580 if test -z "$with_signal_module"
15581 then with_signal_module
="yes"
15583 { echo "$as_me:$LINENO: result: $with_signal_module" >&5
15584 echo "${ECHO_T}$with_signal_module" >&6; }
15586 if test "${with_signal_module}" = "yes"; then
15587 USE_SIGNAL_MODULE
=""
15590 USE_SIGNAL_MODULE
="#"
15591 SIGNAL_OBJS
="Parser/intrcheck.o Python/sigcheck.o"
15594 # This is used to generate Setup.config
15596 USE_THREAD_MODULE
=""
15598 { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
15599 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; }
15602 # Check whether --with-dec-threads was given.
15603 if test "${with_dec_threads+set}" = set; then
15604 withval
=$with_dec_threads;
15605 { echo "$as_me:$LINENO: result: $withval" >&5
15606 echo "${ECHO_T}$withval" >&6; }
15608 if test "${with_thread+set}" != set; then
15609 with_thread
="$withval";
15612 { echo "$as_me:$LINENO: result: no" >&5
15613 echo "${ECHO_T}no" >&6; }
15617 # Templates for things AC_DEFINEd more than once.
15618 # For a single AC_DEFINE, no template is needed.
15626 { echo "$as_me:$LINENO: checking for --with-threads" >&5
15627 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; }
15629 # Check whether --with-threads was given.
15630 if test "${with_threads+set}" = set; then
15631 withval
=$with_threads;
15635 # --with-thread is deprecated, but check for it anyway
15637 # Check whether --with-thread was given.
15638 if test "${with_thread+set}" = set; then
15639 withval
=$with_thread; with_threads
=$with_thread
15643 if test -z "$with_threads"
15644 then with_threads
="yes"
15646 { echo "$as_me:$LINENO: result: $with_threads" >&5
15647 echo "${ECHO_T}$with_threads" >&6; }
15650 if test "$with_threads" = "no"
15652 USE_THREAD_MODULE
="#"
15653 elif test "$ac_cv_pthread_is_default" = yes
15655 cat >>confdefs.h
<<\_ACEOF
15656 #define WITH_THREAD 1
15659 # Defining _REENTRANT on system with POSIX threads should not hurt.
15660 cat >>confdefs.h
<<\_ACEOF
15661 #define _REENTRANT 1
15665 THREADOBJ
="Python/thread.o"
15666 elif test "$ac_cv_kpthread" = "yes"
15669 if test "$ac_cv_cxx_thread" = "yes"; then
15670 CXX
="$CXX -Kpthread"
15672 cat >>confdefs.h
<<\_ACEOF
15673 #define WITH_THREAD 1
15677 THREADOBJ
="Python/thread.o"
15678 elif test "$ac_cv_kthread" = "yes"
15681 if test "$ac_cv_cxx_thread" = "yes"; then
15682 CXX
="$CXX -Kthread"
15684 cat >>confdefs.h
<<\_ACEOF
15685 #define WITH_THREAD 1
15689 THREADOBJ
="Python/thread.o"
15690 elif test "$ac_cv_pthread" = "yes"
15693 if test "$ac_cv_cxx_thread" = "yes"; then
15694 CXX
="$CXX -pthread"
15696 cat >>confdefs.h
<<\_ACEOF
15697 #define WITH_THREAD 1
15701 THREADOBJ
="Python/thread.o"
15703 if test ! -z "$with_threads" -a -d "$with_threads"
15704 then LDFLAGS
="$LDFLAGS -L$with_threads"
15706 if test ! -z "$withval" -a -d "$withval"
15707 then LDFLAGS
="$LDFLAGS -L$withval"
15710 # According to the POSIX spec, a pthreads implementation must
15711 # define _POSIX_THREADS in unistd.h. Some apparently don't
15712 # (e.g. gnu pth with pthread emulation)
15713 { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
15714 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; }
15715 cat >conftest.
$ac_ext <<_ACEOF
15718 cat confdefs.h
>>conftest.
$ac_ext
15719 cat >>conftest.
$ac_ext <<_ACEOF
15720 /* end confdefs.h. */
15722 #include <unistd.h>
15723 #ifdef _POSIX_THREADS
15728 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15729 $EGREP "yes" >/dev
/null
2>&1; then
15730 unistd_defines_pthreads
=yes
15732 unistd_defines_pthreads
=no
15736 { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
15737 echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
15739 cat >>confdefs.h
<<\_ACEOF
15740 #define _REENTRANT 1
15743 if test "${ac_cv_header_cthreads_h+set}" = set; then
15744 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
15745 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
15746 if test "${ac_cv_header_cthreads_h+set}" = set; then
15747 echo $ECHO_N "(cached) $ECHO_C" >&6
15749 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
15750 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
15752 # Is the header compilable?
15753 { echo "$as_me:$LINENO: checking cthreads.h usability" >&5
15754 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; }
15755 cat >conftest.
$ac_ext <<_ACEOF
15758 cat confdefs.h
>>conftest.
$ac_ext
15759 cat >>conftest.
$ac_ext <<_ACEOF
15760 /* end confdefs.h. */
15761 $ac_includes_default
15762 #include <cthreads.h>
15764 rm -f conftest.
$ac_objext
15765 if { (ac_try
="$ac_compile"
15766 case "(($ac_try" in
15767 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15768 *) ac_try_echo=$ac_try;;
15770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15771 (eval "$ac_compile") 2>conftest.er1
15773 grep -v '^ *+' conftest.er1 >conftest.err
15775 cat conftest.err >&5
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); } && {
15778 test -z "$ac_c_werror_flag" ||
15779 test ! -s conftest.err
15780 } && test -s conftest.$ac_objext; then
15781 ac_header_compiler=yes
15783 echo "$as_me: failed program was:" >&5
15784 sed 's/^/| /' conftest.$ac_ext >&5
15786 ac_header_compiler=no
15789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15790 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15791 echo "${ECHO_T}$ac_header_compiler" >&6; }
15793 # Is the header present?
15794 { echo "$as_me:$LINENO: checking cthreads.h presence" >&5
15795 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; }
15796 cat >conftest.$ac_ext <<_ACEOF
15799 cat confdefs.h >>conftest.$ac_ext
15800 cat >>conftest.$ac_ext <<_ACEOF
15801 /* end confdefs.h. */
15802 #include <cthreads.h>
15804 if { (ac_try="$ac_cpp conftest.$ac_ext"
15805 case "(($ac_try" in
15806 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15807 *) ac_try_echo
=$ac_try;;
15809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15810 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15812 grep -v '^ *+' conftest.er1
>conftest.err
15814 cat conftest.err
>&5
15815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15816 (exit $ac_status); } >/dev
/null
&& {
15817 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15818 test ! -s conftest.err
15820 ac_header_preproc
=yes
15822 echo "$as_me: failed program was:" >&5
15823 sed 's/^/| /' conftest.
$ac_ext >&5
15825 ac_header_preproc
=no
15828 rm -f conftest.err conftest.
$ac_ext
15829 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15830 echo "${ECHO_T}$ac_header_preproc" >&6; }
15832 # So? What about this header?
15833 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15835 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
15836 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15837 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
15838 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
15839 ac_header_preproc
=yes
15842 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
15843 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
15844 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
15845 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
15846 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
15847 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
15848 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
15849 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
15850 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
15851 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
15852 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
15853 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
15855 ## -------------------------------------- ##
15856 ## Report this to http://bugs.python.org/ ##
15857 ## -------------------------------------- ##
15859 ) |
sed "s/^/$as_me: WARNING: /" >&2
15862 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
15863 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
15864 if test "${ac_cv_header_cthreads_h+set}" = set; then
15865 echo $ECHO_N "(cached) $ECHO_C" >&6
15867 ac_cv_header_cthreads_h
=$ac_header_preproc
15869 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
15870 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
15873 if test $ac_cv_header_cthreads_h = yes; then
15874 cat >>confdefs.h
<<\_ACEOF
15875 #define WITH_THREAD 1
15878 cat >>confdefs.h
<<\_ACEOF
15879 #define C_THREADS 1
15883 cat >>confdefs.h
<<\_ACEOF
15884 #define HURD_C_THREADS 1
15887 LIBS
="$LIBS -lthreads"
15888 THREADOBJ
="Python/thread.o"
15891 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
15892 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
15893 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
15894 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
15895 echo $ECHO_N "(cached) $ECHO_C" >&6
15897 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
15898 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
15900 # Is the header compilable?
15901 { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
15902 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; }
15903 cat >conftest.
$ac_ext <<_ACEOF
15906 cat confdefs.h
>>conftest.
$ac_ext
15907 cat >>conftest.
$ac_ext <<_ACEOF
15908 /* end confdefs.h. */
15909 $ac_includes_default
15910 #include <mach/cthreads.h>
15912 rm -f conftest.
$ac_objext
15913 if { (ac_try
="$ac_compile"
15914 case "(($ac_try" in
15915 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15916 *) ac_try_echo=$ac_try;;
15918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15919 (eval "$ac_compile") 2>conftest.er1
15921 grep -v '^ *+' conftest.er1 >conftest.err
15923 cat conftest.err >&5
15924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15925 (exit $ac_status); } && {
15926 test -z "$ac_c_werror_flag" ||
15927 test ! -s conftest.err
15928 } && test -s conftest.$ac_objext; then
15929 ac_header_compiler=yes
15931 echo "$as_me: failed program was:" >&5
15932 sed 's/^/| /' conftest.$ac_ext >&5
15934 ac_header_compiler=no
15937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15938 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15939 echo "${ECHO_T}$ac_header_compiler" >&6; }
15941 # Is the header present?
15942 { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
15943 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; }
15944 cat >conftest.$ac_ext <<_ACEOF
15947 cat confdefs.h >>conftest.$ac_ext
15948 cat >>conftest.$ac_ext <<_ACEOF
15949 /* end confdefs.h. */
15950 #include <mach/cthreads.h>
15952 if { (ac_try="$ac_cpp conftest.$ac_ext"
15953 case "(($ac_try" in
15954 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15955 *) ac_try_echo
=$ac_try;;
15957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15958 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15960 grep -v '^ *+' conftest.er1
>conftest.err
15962 cat conftest.err
>&5
15963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15964 (exit $ac_status); } >/dev
/null
&& {
15965 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15966 test ! -s conftest.err
15968 ac_header_preproc
=yes
15970 echo "$as_me: failed program was:" >&5
15971 sed 's/^/| /' conftest.
$ac_ext >&5
15973 ac_header_preproc
=no
15976 rm -f conftest.err conftest.
$ac_ext
15977 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15978 echo "${ECHO_T}$ac_header_preproc" >&6; }
15980 # So? What about this header?
15981 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15983 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
15984 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15985 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
15986 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
15987 ac_header_preproc
=yes
15990 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
15991 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
15992 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
15993 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
15994 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
15995 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
15996 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
15997 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
15998 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
15999 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
16000 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
16001 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
16003 ## -------------------------------------- ##
16004 ## Report this to http://bugs.python.org/ ##
16005 ## -------------------------------------- ##
16007 ) |
sed "s/^/$as_me: WARNING: /" >&2
16010 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
16011 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
16012 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
16013 echo $ECHO_N "(cached) $ECHO_C" >&6
16015 ac_cv_header_mach_cthreads_h
=$ac_header_preproc
16017 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
16018 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
16021 if test $ac_cv_header_mach_cthreads_h = yes; then
16022 cat >>confdefs.h
<<\_ACEOF
16023 #define WITH_THREAD 1
16026 cat >>confdefs.h
<<\_ACEOF
16027 #define C_THREADS 1
16031 cat >>confdefs.h
<<\_ACEOF
16032 #define MACH_C_THREADS 1
16035 THREADOBJ
="Python/thread.o"
16038 { echo "$as_me:$LINENO: checking for --with-pth" >&5
16039 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; }
16041 # Check whether --with-pth was given.
16042 if test "${with_pth+set}" = set; then
16043 withval
=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5
16044 echo "${ECHO_T}$withval" >&6; }
16045 cat >>confdefs.h
<<\_ACEOF
16046 #define WITH_THREAD 1
16050 cat >>confdefs.h
<<\_ACEOF
16055 THREADOBJ
="Python/thread.o"
16057 { echo "$as_me:$LINENO: result: no" >&5
16058 echo "${ECHO_T}no" >&6; }
16060 # Just looking for pthread_create in libpthread is not enough:
16061 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
16062 # So we really have to include pthread.h, and then link.
16064 LIBS
="$LIBS -lpthread"
16065 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
16066 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
16067 cat >conftest.
$ac_ext <<_ACEOF
16070 cat confdefs.h
>>conftest.
$ac_ext
16071 cat >>conftest.
$ac_ext <<_ACEOF
16072 /* end confdefs.h. */
16073 #include <pthread.h>
16075 void * start_routine (void *arg) { exit (0); }
16080 pthread_create (NULL, NULL, start_routine, NULL)
16085 rm -f conftest.
$ac_objext conftest
$ac_exeext
16086 if { (ac_try
="$ac_link"
16087 case "(($ac_try" in
16088 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16089 *) ac_try_echo=$ac_try;;
16091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16092 (eval "$ac_link") 2>conftest.er1
16094 grep -v '^ *+' conftest.er1 >conftest.err
16096 cat conftest.err >&5
16097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16098 (exit $ac_status); } && {
16099 test -z "$ac_c_werror_flag" ||
16100 test ! -s conftest.err
16101 } && test -s conftest$ac_exeext &&
16102 $as_test_x conftest$ac_exeext; then
16104 { echo "$as_me:$LINENO: result: yes" >&5
16105 echo "${ECHO_T}yes" >&6; }
16106 cat >>confdefs.h <<\_ACEOF
16107 #define WITH_THREAD 1
16111 THREADOBJ="Python/thread.o"
16113 echo "$as_me: failed program was:" >&5
16114 sed 's/^/| /' conftest.$ac_ext >&5
16118 { echo "$as_me:$LINENO: checking for pthread_detach" >&5
16119 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; }
16120 if test "${ac_cv_func_pthread_detach+set}" = set; then
16121 echo $ECHO_N "(cached) $ECHO_C" >&6
16123 cat >conftest.$ac_ext <<_ACEOF
16126 cat confdefs.h >>conftest.$ac_ext
16127 cat >>conftest.$ac_ext <<_ACEOF
16128 /* end confdefs.h. */
16129 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
16130 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16131 #define pthread_detach innocuous_pthread_detach
16133 /* System header to define __stub macros and hopefully few prototypes,
16134 which can conflict with char pthread_detach (); below.
16135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16136 <limits.h> exists even on freestanding compilers. */
16139 # include <limits.h>
16141 # include <assert.h>
16144 #undef pthread_detach
16146 /* Override any GCC internal prototype to avoid an error.
16147 Use char because int might match the return type of a GCC
16148 builtin and then its argument prototype would still apply. */
16152 char pthread_detach ();
16153 /* The GNU C library defines this for functions which it implements
16154 to always fail with ENOSYS. Some functions are actually named
16155 something starting with __ and the normal name is an alias. */
16156 #if defined __stub_pthread_detach || defined __stub___pthread_detach
16163 return pthread_detach ();
16168 rm -f conftest.$ac_objext conftest$ac_exeext
16169 if { (ac_try="$ac_link"
16170 case "(($ac_try" in
16171 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16172 *) ac_try_echo
=$ac_try;;
16174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16175 (eval "$ac_link") 2>conftest.er1
16177 grep -v '^ *+' conftest.er1
>conftest.err
16179 cat conftest.err
>&5
16180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16181 (exit $ac_status); } && {
16182 test -z "$ac_c_werror_flag" ||
16183 test ! -s conftest.err
16184 } && test -s conftest
$ac_exeext &&
16185 $as_test_x conftest
$ac_exeext; then
16186 ac_cv_func_pthread_detach
=yes
16188 echo "$as_me: failed program was:" >&5
16189 sed 's/^/| /' conftest.
$ac_ext >&5
16191 ac_cv_func_pthread_detach
=no
16194 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16195 conftest
$ac_exeext conftest.
$ac_ext
16197 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
16198 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; }
16199 if test $ac_cv_func_pthread_detach = yes; then
16200 cat >>confdefs.h
<<\_ACEOF
16201 #define WITH_THREAD 1
16205 THREADOBJ
="Python/thread.o"
16208 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
16209 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
16210 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
16211 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
16212 echo $ECHO_N "(cached) $ECHO_C" >&6
16214 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
16215 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
16217 # Is the header compilable?
16218 { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
16219 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; }
16220 cat >conftest.
$ac_ext <<_ACEOF
16223 cat confdefs.h
>>conftest.
$ac_ext
16224 cat >>conftest.
$ac_ext <<_ACEOF
16225 /* end confdefs.h. */
16226 $ac_includes_default
16227 #include <atheos/threads.h>
16229 rm -f conftest.
$ac_objext
16230 if { (ac_try
="$ac_compile"
16231 case "(($ac_try" in
16232 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16233 *) ac_try_echo=$ac_try;;
16235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16236 (eval "$ac_compile") 2>conftest.er1
16238 grep -v '^ *+' conftest.er1 >conftest.err
16240 cat conftest.err >&5
16241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16242 (exit $ac_status); } && {
16243 test -z "$ac_c_werror_flag" ||
16244 test ! -s conftest.err
16245 } && test -s conftest.$ac_objext; then
16246 ac_header_compiler=yes
16248 echo "$as_me: failed program was:" >&5
16249 sed 's/^/| /' conftest.$ac_ext >&5
16251 ac_header_compiler=no
16254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16255 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16256 echo "${ECHO_T}$ac_header_compiler" >&6; }
16258 # Is the header present?
16259 { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
16260 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; }
16261 cat >conftest.$ac_ext <<_ACEOF
16264 cat confdefs.h >>conftest.$ac_ext
16265 cat >>conftest.$ac_ext <<_ACEOF
16266 /* end confdefs.h. */
16267 #include <atheos/threads.h>
16269 if { (ac_try="$ac_cpp conftest.$ac_ext"
16270 case "(($ac_try" in
16271 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16272 *) ac_try_echo
=$ac_try;;
16274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16275 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16277 grep -v '^ *+' conftest.er1
>conftest.err
16279 cat conftest.err
>&5
16280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16281 (exit $ac_status); } >/dev
/null
&& {
16282 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16283 test ! -s conftest.err
16285 ac_header_preproc
=yes
16287 echo "$as_me: failed program was:" >&5
16288 sed 's/^/| /' conftest.
$ac_ext >&5
16290 ac_header_preproc
=no
16293 rm -f conftest.err conftest.
$ac_ext
16294 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16295 echo "${ECHO_T}$ac_header_preproc" >&6; }
16297 # So? What about this header?
16298 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16300 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
16301 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16302 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
16303 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
16304 ac_header_preproc
=yes
16307 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
16308 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
16309 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
16310 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
16311 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
16312 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
16313 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
16314 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
16315 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
16316 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
16317 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
16318 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
16320 ## -------------------------------------- ##
16321 ## Report this to http://bugs.python.org/ ##
16322 ## -------------------------------------- ##
16324 ) |
sed "s/^/$as_me: WARNING: /" >&2
16327 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
16328 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
16329 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
16330 echo $ECHO_N "(cached) $ECHO_C" >&6
16332 ac_cv_header_atheos_threads_h
=$ac_header_preproc
16334 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
16335 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
16338 if test $ac_cv_header_atheos_threads_h = yes; then
16339 cat >>confdefs.h
<<\_ACEOF
16340 #define WITH_THREAD 1
16344 cat >>confdefs.h
<<\_ACEOF
16345 #define ATHEOS_THREADS 1
16348 THREADOBJ
="Python/thread.o"
16351 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
16352 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
16353 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
16354 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
16355 echo $ECHO_N "(cached) $ECHO_C" >&6
16357 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
16358 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
16360 # Is the header compilable?
16361 { echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
16362 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6; }
16363 cat >conftest.
$ac_ext <<_ACEOF
16366 cat confdefs.h
>>conftest.
$ac_ext
16367 cat >>conftest.
$ac_ext <<_ACEOF
16368 /* end confdefs.h. */
16369 $ac_includes_default
16370 #include <kernel/OS.h>
16372 rm -f conftest.
$ac_objext
16373 if { (ac_try
="$ac_compile"
16374 case "(($ac_try" in
16375 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16376 *) ac_try_echo=$ac_try;;
16378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16379 (eval "$ac_compile") 2>conftest.er1
16381 grep -v '^ *+' conftest.er1 >conftest.err
16383 cat conftest.err >&5
16384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16385 (exit $ac_status); } && {
16386 test -z "$ac_c_werror_flag" ||
16387 test ! -s conftest.err
16388 } && test -s conftest.$ac_objext; then
16389 ac_header_compiler=yes
16391 echo "$as_me: failed program was:" >&5
16392 sed 's/^/| /' conftest.$ac_ext >&5
16394 ac_header_compiler=no
16397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16398 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16399 echo "${ECHO_T}$ac_header_compiler" >&6; }
16401 # Is the header present?
16402 { echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
16403 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6; }
16404 cat >conftest.$ac_ext <<_ACEOF
16407 cat confdefs.h >>conftest.$ac_ext
16408 cat >>conftest.$ac_ext <<_ACEOF
16409 /* end confdefs.h. */
16410 #include <kernel/OS.h>
16412 if { (ac_try="$ac_cpp conftest.$ac_ext"
16413 case "(($ac_try" in
16414 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16415 *) ac_try_echo
=$ac_try;;
16417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16418 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16420 grep -v '^ *+' conftest.er1
>conftest.err
16422 cat conftest.err
>&5
16423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424 (exit $ac_status); } >/dev
/null
&& {
16425 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16426 test ! -s conftest.err
16428 ac_header_preproc
=yes
16430 echo "$as_me: failed program was:" >&5
16431 sed 's/^/| /' conftest.
$ac_ext >&5
16433 ac_header_preproc
=no
16436 rm -f conftest.err conftest.
$ac_ext
16437 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16438 echo "${ECHO_T}$ac_header_preproc" >&6; }
16440 # So? What about this header?
16441 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16443 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
16444 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16445 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
16446 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
16447 ac_header_preproc
=yes
16450 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
16451 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
16452 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
16453 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
16454 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
16455 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
16456 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
16457 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
16458 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
16459 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
16460 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
16461 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
16463 ## -------------------------------------- ##
16464 ## Report this to http://bugs.python.org/ ##
16465 ## -------------------------------------- ##
16467 ) |
sed "s/^/$as_me: WARNING: /" >&2
16470 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
16471 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
16472 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
16473 echo $ECHO_N "(cached) $ECHO_C" >&6
16475 ac_cv_header_kernel_OS_h
=$ac_header_preproc
16477 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
16478 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
16481 if test $ac_cv_header_kernel_OS_h = yes; then
16482 cat >>confdefs.h
<<\_ACEOF
16483 #define WITH_THREAD 1
16487 cat >>confdefs.h
<<\_ACEOF
16488 #define BEOS_THREADS 1
16491 THREADOBJ
="Python/thread.o"
16494 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
16495 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
16496 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
16497 echo $ECHO_N "(cached) $ECHO_C" >&6
16499 ac_check_lib_save_LIBS
=$LIBS
16500 LIBS
="-lpthreads $LIBS"
16501 cat >conftest.
$ac_ext <<_ACEOF
16504 cat confdefs.h
>>conftest.
$ac_ext
16505 cat >>conftest.
$ac_ext <<_ACEOF
16506 /* end confdefs.h. */
16508 /* Override any GCC internal prototype to avoid an error.
16509 Use char because int might match the return type of a GCC
16510 builtin and then its argument prototype would still apply. */
16514 char pthread_create ();
16518 return pthread_create ();
16523 rm -f conftest.
$ac_objext conftest
$ac_exeext
16524 if { (ac_try
="$ac_link"
16525 case "(($ac_try" in
16526 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16527 *) ac_try_echo=$ac_try;;
16529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16530 (eval "$ac_link") 2>conftest.er1
16532 grep -v '^ *+' conftest.er1 >conftest.err
16534 cat conftest.err >&5
16535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16536 (exit $ac_status); } && {
16537 test -z "$ac_c_werror_flag" ||
16538 test ! -s conftest.err
16539 } && test -s conftest$ac_exeext &&
16540 $as_test_x conftest$ac_exeext; then
16541 ac_cv_lib_pthreads_pthread_create=yes
16543 echo "$as_me: failed program was:" >&5
16544 sed 's/^/| /' conftest.$ac_ext >&5
16546 ac_cv_lib_pthreads_pthread_create=no
16549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16550 conftest$ac_exeext conftest.$ac_ext
16551 LIBS=$ac_check_lib_save_LIBS
16553 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
16554 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
16555 if test $ac_cv_lib_pthreads_pthread_create = yes; then
16556 cat >>confdefs.h <<\_ACEOF
16557 #define WITH_THREAD 1
16561 LIBS="$LIBS -lpthreads"
16562 THREADOBJ="Python/thread.o"
16565 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
16566 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
16567 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
16568 echo $ECHO_N "(cached) $ECHO_C" >&6
16570 ac_check_lib_save_LIBS=$LIBS
16572 cat >conftest.$ac_ext <<_ACEOF
16575 cat confdefs.h >>conftest.$ac_ext
16576 cat >>conftest.$ac_ext <<_ACEOF
16577 /* end confdefs.h. */
16579 /* Override any GCC internal prototype to avoid an error.
16580 Use char because int might match the return type of a GCC
16581 builtin and then its argument prototype would still apply. */
16585 char pthread_create ();
16589 return pthread_create ();
16594 rm -f conftest.$ac_objext conftest$ac_exeext
16595 if { (ac_try="$ac_link"
16596 case "(($ac_try" in
16597 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16598 *) ac_try_echo
=$ac_try;;
16600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16601 (eval "$ac_link") 2>conftest.er1
16603 grep -v '^ *+' conftest.er1
>conftest.err
16605 cat conftest.err
>&5
16606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607 (exit $ac_status); } && {
16608 test -z "$ac_c_werror_flag" ||
16609 test ! -s conftest.err
16610 } && test -s conftest
$ac_exeext &&
16611 $as_test_x conftest
$ac_exeext; then
16612 ac_cv_lib_c_r_pthread_create
=yes
16614 echo "$as_me: failed program was:" >&5
16615 sed 's/^/| /' conftest.
$ac_ext >&5
16617 ac_cv_lib_c_r_pthread_create
=no
16620 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16621 conftest
$ac_exeext conftest.
$ac_ext
16622 LIBS
=$ac_check_lib_save_LIBS
16624 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
16625 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
16626 if test $ac_cv_lib_c_r_pthread_create = yes; then
16627 cat >>confdefs.h
<<\_ACEOF
16628 #define WITH_THREAD 1
16633 THREADOBJ
="Python/thread.o"
16636 { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
16637 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
16638 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
16639 echo $ECHO_N "(cached) $ECHO_C" >&6
16641 ac_check_lib_save_LIBS
=$LIBS
16642 LIBS
="-lpthread $LIBS"
16643 cat >conftest.
$ac_ext <<_ACEOF
16646 cat confdefs.h
>>conftest.
$ac_ext
16647 cat >>conftest.
$ac_ext <<_ACEOF
16648 /* end confdefs.h. */
16650 /* Override any GCC internal prototype to avoid an error.
16651 Use char because int might match the return type of a GCC
16652 builtin and then its argument prototype would still apply. */
16656 char __pthread_create_system ();
16660 return __pthread_create_system ();
16665 rm -f conftest.
$ac_objext conftest
$ac_exeext
16666 if { (ac_try
="$ac_link"
16667 case "(($ac_try" in
16668 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16669 *) ac_try_echo=$ac_try;;
16671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16672 (eval "$ac_link") 2>conftest.er1
16674 grep -v '^ *+' conftest.er1 >conftest.err
16676 cat conftest.err >&5
16677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678 (exit $ac_status); } && {
16679 test -z "$ac_c_werror_flag" ||
16680 test ! -s conftest.err
16681 } && test -s conftest$ac_exeext &&
16682 $as_test_x conftest$ac_exeext; then
16683 ac_cv_lib_pthread___pthread_create_system=yes
16685 echo "$as_me: failed program was:" >&5
16686 sed 's/^/| /' conftest.$ac_ext >&5
16688 ac_cv_lib_pthread___pthread_create_system=no
16691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16692 conftest$ac_exeext conftest.$ac_ext
16693 LIBS=$ac_check_lib_save_LIBS
16695 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
16696 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
16697 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
16698 cat >>confdefs.h <<\_ACEOF
16699 #define WITH_THREAD 1
16703 LIBS="$LIBS -lpthread"
16704 THREADOBJ="Python/thread.o"
16707 { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
16708 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
16709 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
16710 echo $ECHO_N "(cached) $ECHO_C" >&6
16712 ac_check_lib_save_LIBS=$LIBS
16714 cat >conftest.$ac_ext <<_ACEOF
16717 cat confdefs.h >>conftest.$ac_ext
16718 cat >>conftest.$ac_ext <<_ACEOF
16719 /* end confdefs.h. */
16721 /* Override any GCC internal prototype to avoid an error.
16722 Use char because int might match the return type of a GCC
16723 builtin and then its argument prototype would still apply. */
16727 char pthread_create ();
16731 return pthread_create ();
16736 rm -f conftest.$ac_objext conftest$ac_exeext
16737 if { (ac_try="$ac_link"
16738 case "(($ac_try" in
16739 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16740 *) ac_try_echo
=$ac_try;;
16742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16743 (eval "$ac_link") 2>conftest.er1
16745 grep -v '^ *+' conftest.er1
>conftest.err
16747 cat conftest.err
>&5
16748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16749 (exit $ac_status); } && {
16750 test -z "$ac_c_werror_flag" ||
16751 test ! -s conftest.err
16752 } && test -s conftest
$ac_exeext &&
16753 $as_test_x conftest
$ac_exeext; then
16754 ac_cv_lib_cma_pthread_create
=yes
16756 echo "$as_me: failed program was:" >&5
16757 sed 's/^/| /' conftest.
$ac_ext >&5
16759 ac_cv_lib_cma_pthread_create
=no
16762 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16763 conftest
$ac_exeext conftest.
$ac_ext
16764 LIBS
=$ac_check_lib_save_LIBS
16766 { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
16767 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
16768 if test $ac_cv_lib_cma_pthread_create = yes; then
16769 cat >>confdefs.h
<<\_ACEOF
16770 #define WITH_THREAD 1
16775 THREADOBJ
="Python/thread.o"
16778 USE_THREAD_MODULE
="#"
16798 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16799 conftest
$ac_exeext conftest.
$ac_ext
16809 { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
16810 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
16811 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
16812 echo $ECHO_N "(cached) $ECHO_C" >&6
16814 ac_check_lib_save_LIBS
=$LIBS
16816 cat >conftest.
$ac_ext <<_ACEOF
16819 cat confdefs.h
>>conftest.
$ac_ext
16820 cat >>conftest.
$ac_ext <<_ACEOF
16821 /* end confdefs.h. */
16823 /* Override any GCC internal prototype to avoid an error.
16824 Use char because int might match the return type of a GCC
16825 builtin and then its argument prototype would still apply. */
16833 return usconfig ();
16838 rm -f conftest.
$ac_objext conftest
$ac_exeext
16839 if { (ac_try
="$ac_link"
16840 case "(($ac_try" in
16841 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16842 *) ac_try_echo=$ac_try;;
16844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16845 (eval "$ac_link") 2>conftest.er1
16847 grep -v '^ *+' conftest.er1 >conftest.err
16849 cat conftest.err >&5
16850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 (exit $ac_status); } && {
16852 test -z "$ac_c_werror_flag" ||
16853 test ! -s conftest.err
16854 } && test -s conftest$ac_exeext &&
16855 $as_test_x conftest$ac_exeext; then
16856 ac_cv_lib_mpc_usconfig=yes
16858 echo "$as_me: failed program was:" >&5
16859 sed 's/^/| /' conftest.$ac_ext >&5
16861 ac_cv_lib_mpc_usconfig=no
16864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16865 conftest$ac_exeext conftest.$ac_ext
16866 LIBS=$ac_check_lib_save_LIBS
16868 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
16869 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
16870 if test $ac_cv_lib_mpc_usconfig = yes; then
16871 cat >>confdefs.h <<\_ACEOF
16872 #define WITH_THREAD 1
16876 THREADOBJ="Python/thread.o"
16877 USE_THREAD_MODULE=""
16881 if test "$posix_threads" != "yes"; then
16882 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
16883 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
16884 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
16885 echo $ECHO_N "(cached) $ECHO_C" >&6
16887 ac_check_lib_save_LIBS=$LIBS
16888 LIBS="-lthread $LIBS"
16889 cat >conftest.$ac_ext <<_ACEOF
16892 cat confdefs.h >>conftest.$ac_ext
16893 cat >>conftest.$ac_ext <<_ACEOF
16894 /* end confdefs.h. */
16896 /* Override any GCC internal prototype to avoid an error.
16897 Use char because int might match the return type of a GCC
16898 builtin and then its argument prototype would still apply. */
16902 char thr_create ();
16906 return thr_create ();
16911 rm -f conftest.$ac_objext conftest$ac_exeext
16912 if { (ac_try="$ac_link"
16913 case "(($ac_try" in
16914 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16915 *) ac_try_echo
=$ac_try;;
16917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16918 (eval "$ac_link") 2>conftest.er1
16920 grep -v '^ *+' conftest.er1
>conftest.err
16922 cat conftest.err
>&5
16923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16924 (exit $ac_status); } && {
16925 test -z "$ac_c_werror_flag" ||
16926 test ! -s conftest.err
16927 } && test -s conftest
$ac_exeext &&
16928 $as_test_x conftest
$ac_exeext; then
16929 ac_cv_lib_thread_thr_create
=yes
16931 echo "$as_me: failed program was:" >&5
16932 sed 's/^/| /' conftest.
$ac_ext >&5
16934 ac_cv_lib_thread_thr_create
=no
16937 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16938 conftest
$ac_exeext conftest.
$ac_ext
16939 LIBS
=$ac_check_lib_save_LIBS
16941 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
16942 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
16943 if test $ac_cv_lib_thread_thr_create = yes; then
16944 cat >>confdefs.h
<<\_ACEOF
16945 #define WITH_THREAD 1
16948 LIBS
="$LIBS -lthread"
16949 THREADOBJ
="Python/thread.o"
16950 USE_THREAD_MODULE
=""
16955 if test "$USE_THREAD_MODULE" != "#"
16957 # If the above checks didn't disable threads, (at least) OSF1
16958 # needs this '-threads' argument during linking.
16959 case $ac_sys_system in
16960 OSF1
) LDLAST
=-threads;;
16965 if test "$posix_threads" = "yes"; then
16966 if test "$unistd_defines_pthreads" = "no"; then
16968 cat >>confdefs.h
<<\_ACEOF
16969 #define _POSIX_THREADS 1
16974 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
16975 case $ac_sys_system/$ac_sys_release in
16977 cat >>confdefs.h
<<\_ACEOF
16978 #define HAVE_PTHREAD_DESTRUCTOR 1
16983 cat >>confdefs.h
<<\_ACEOF
16984 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
16989 cat >>confdefs.h
<<\_ACEOF
16990 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
16996 { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
16997 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
16998 if test "${ac_cv_pthread_system_supported+set}" = set; then
16999 echo $ECHO_N "(cached) $ECHO_C" >&6
17001 if test "$cross_compiling" = yes; then
17002 ac_cv_pthread_system_supported
=no
17004 cat >conftest.
$ac_ext <<_ACEOF
17007 cat confdefs.h
>>conftest.
$ac_ext
17008 cat >>conftest.
$ac_ext <<_ACEOF
17009 /* end confdefs.h. */
17010 #include <pthread.h>
17011 void *foo(void *parm) {
17015 pthread_attr_t attr;
17017 if (pthread_attr_init(&attr)) exit(-1);
17018 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
17019 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
17023 rm -f conftest
$ac_exeext
17024 if { (ac_try
="$ac_link"
17025 case "(($ac_try" in
17026 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17027 *) ac_try_echo=$ac_try;;
17029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17030 (eval "$ac_link") 2>&5
17032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17033 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17034 { (case "(($ac_try" in
17035 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17036 *) ac_try_echo
=$ac_try;;
17038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17039 (eval "$ac_try") 2>&5
17041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17042 (exit $ac_status); }; }; then
17043 ac_cv_pthread_system_supported
=yes
17045 echo "$as_me: program exited with status $ac_status" >&5
17046 echo "$as_me: failed program was:" >&5
17047 sed 's/^/| /' conftest.
$ac_ext >&5
17049 ( exit $ac_status )
17050 ac_cv_pthread_system_supported
=no
17052 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17059 { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
17060 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
17061 if test "$ac_cv_pthread_system_supported" = "yes"; then
17063 cat >>confdefs.h
<<\_ACEOF
17064 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
17069 for ac_func
in pthread_sigmask
17071 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17072 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17073 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17074 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17075 echo $ECHO_N "(cached) $ECHO_C" >&6
17077 cat >conftest.
$ac_ext <<_ACEOF
17080 cat confdefs.h
>>conftest.
$ac_ext
17081 cat >>conftest.
$ac_ext <<_ACEOF
17082 /* end confdefs.h. */
17083 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17084 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17085 #define $ac_func innocuous_$ac_func
17087 /* System header to define __stub macros and hopefully few prototypes,
17088 which can conflict with char $ac_func (); below.
17089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17090 <limits.h> exists even on freestanding compilers. */
17093 # include <limits.h>
17095 # include <assert.h>
17100 /* Override any GCC internal prototype to avoid an error.
17101 Use char because int might match the return type of a GCC
17102 builtin and then its argument prototype would still apply. */
17107 /* The GNU C library defines this for functions which it implements
17108 to always fail with ENOSYS. Some functions are actually named
17109 something starting with __ and the normal name is an alias. */
17110 #if defined __stub_$ac_func || defined __stub___$ac_func
17117 return $ac_func ();
17122 rm -f conftest.
$ac_objext conftest
$ac_exeext
17123 if { (ac_try
="$ac_link"
17124 case "(($ac_try" in
17125 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17126 *) ac_try_echo=$ac_try;;
17128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17129 (eval "$ac_link") 2>conftest.er1
17131 grep -v '^ *+' conftest.er1 >conftest.err
17133 cat conftest.err >&5
17134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17135 (exit $ac_status); } && {
17136 test -z "$ac_c_werror_flag" ||
17137 test ! -s conftest.err
17138 } && test -s conftest$ac_exeext &&
17139 $as_test_x conftest$ac_exeext; then
17140 eval "$as_ac_var=yes"
17142 echo "$as_me: failed program was:" >&5
17143 sed 's/^/| /' conftest.$ac_ext >&5
17145 eval "$as_ac_var=no"
17148 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17149 conftest$ac_exeext conftest.$ac_ext
17151 ac_res=`eval echo '${'$as_ac_var'}'`
17152 { echo "$as_me:$LINENO: result: $ac_res" >&5
17153 echo "${ECHO_T}$ac_res" >&6; }
17154 if test `eval echo '${'$as_ac_var'}'` = yes; then
17155 cat >>confdefs.h <<_ACEOF
17156 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17158 case $ac_sys_system in
17161 cat >>confdefs.h <<\_ACEOF
17162 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
17173 # Check for enable-ipv6
17176 { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
17177 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
17178 # Check whether --enable-ipv6 was given.
17179 if test "${enable_ipv6+set}" = set; then
17180 enableval=$enable_ipv6; case "$enableval" in
17182 { echo "$as_me:$LINENO: result: no" >&5
17183 echo "${ECHO_T}no" >&6; }
17186 *) { echo "$as_me:$LINENO: result: yes" >&5
17187 echo "${ECHO_T}yes" >&6; }
17188 cat >>confdefs.h <<\_ACEOF
17189 #define ENABLE_IPV6 1
17197 if test "$cross_compiling" = yes; then
17198 { echo "$as_me:$LINENO: result: no" >&5
17199 echo "${ECHO_T}no" >&6; }
17203 cat >conftest.$ac_ext <<_ACEOF
17206 cat confdefs.h >>conftest.$ac_ext
17207 cat >>conftest.$ac_ext <<_ACEOF
17208 /* end confdefs.h. */
17209 /* AF_INET6 available check */
17210 #include <sys/types.h>
17211 #include <sys/socket.h>
17214 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
17221 rm -f conftest$ac_exeext
17222 if { (ac_try="$ac_link"
17223 case "(($ac_try" in
17224 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17225 *) ac_try_echo
=$ac_try;;
17227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17228 (eval "$ac_link") 2>&5
17230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17232 { (case "(($ac_try" in
17233 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17234 *) ac_try_echo=$ac_try;;
17236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17237 (eval "$ac_try") 2>&5
17239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240 (exit $ac_status); }; }; then
17241 { echo "$as_me:$LINENO: result: yes" >&5
17242 echo "${ECHO_T}yes" >&6; }
17245 echo "$as_me: program exited with status $ac_status" >&5
17246 echo "$as_me: failed program was:" >&5
17247 sed 's/^/| /' conftest.$ac_ext >&5
17249 ( exit $ac_status )
17250 { echo "$as_me:$LINENO: result: no" >&5
17251 echo "${ECHO_T}no" >&6; }
17254 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17259 if test "$ipv6" = "yes"; then
17260 { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
17261 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; }
17262 cat >conftest.$ac_ext <<_ACEOF
17265 cat confdefs.h >>conftest.$ac_ext
17266 cat >>conftest.$ac_ext <<_ACEOF
17267 /* end confdefs.h. */
17268 #include <sys/types.h>
17269 #include <netinet/in.h>
17273 struct sockaddr_in6 x;
17279 rm -f conftest.$ac_objext
17280 if { (ac_try="$ac_compile"
17281 case "(($ac_try" in
17282 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17283 *) ac_try_echo
=$ac_try;;
17285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17286 (eval "$ac_compile") 2>conftest.er1
17288 grep -v '^ *+' conftest.er1
>conftest.err
17290 cat conftest.err
>&5
17291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292 (exit $ac_status); } && {
17293 test -z "$ac_c_werror_flag" ||
17294 test ! -s conftest.err
17295 } && test -s conftest.
$ac_objext; then
17296 { echo "$as_me:$LINENO: result: yes" >&5
17297 echo "${ECHO_T}yes" >&6; }
17300 echo "$as_me: failed program was:" >&5
17301 sed 's/^/| /' conftest.
$ac_ext >&5
17303 { echo "$as_me:$LINENO: result: no" >&5
17304 echo "${ECHO_T}no" >&6; }
17308 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17311 if test "$ipv6" = "yes"; then
17312 cat >>confdefs.h
<<\_ACEOF
17313 #define ENABLE_IPV6 1
17325 if test "$ipv6" = "yes"; then
17326 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
17327 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
17328 for i
in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta
;
17332 cat >conftest.
$ac_ext <<_ACEOF
17335 cat confdefs.h
>>conftest.
$ac_ext
17336 cat >>conftest.
$ac_ext <<_ACEOF
17337 /* end confdefs.h. */
17339 #include <netinet/in.h>
17340 #ifdef IPV6_INRIA_VERSION
17344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17345 $EGREP "yes" >/dev
/null
2>&1; then
17352 cat >conftest.
$ac_ext <<_ACEOF
17355 cat confdefs.h
>>conftest.
$ac_ext
17356 cat >>conftest.
$ac_ext <<_ACEOF
17357 /* end confdefs.h. */
17359 #include <netinet/in.h>
17364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17365 $EGREP "yes" >/dev
/null
2>&1; then
17368 ipv6libdir
=/usr
/local
/v
6/lib
17375 cat >conftest.
$ac_ext <<_ACEOF
17378 cat confdefs.h
>>conftest.
$ac_ext
17379 cat >>conftest.
$ac_ext <<_ACEOF
17380 /* end confdefs.h. */
17382 #include <features.h>
17383 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
17387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17388 $EGREP "yes" >/dev
/null
2>&1; then
17396 if test -d /usr
/inet6
; then
17399 ipv6libdir
=/usr
/inet
6/lib
17400 BASECFLAGS
="-I/usr/inet6/include $BASECFLAGS"
17404 if test -f /etc
/netconfig
; then
17405 if /usr
/xpg
4/bin
/grep -q tcp6
/etc
/netconfig
; then
17412 cat >conftest.
$ac_ext <<_ACEOF
17415 cat confdefs.h
>>conftest.
$ac_ext
17416 cat >>conftest.
$ac_ext <<_ACEOF
17417 /* end confdefs.h. */
17419 #include <sys/param.h>
17420 #ifdef _TOSHIBA_INET6
17424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17425 $EGREP "yes" >/dev
/null
2>&1; then
17428 ipv6libdir
=/usr
/local
/v
6/lib
17434 cat >conftest.
$ac_ext <<_ACEOF
17437 cat confdefs.h
>>conftest.
$ac_ext
17438 cat >>conftest.
$ac_ext <<_ACEOF
17439 /* end confdefs.h. */
17441 #include </usr/local/v6/include/sys/v6config.h>
17446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17447 $EGREP "yes" >/dev
/null
2>&1; then
17450 ipv6libdir
=/usr
/local
/v
6/lib
;
17451 BASECFLAGS
="-I/usr/local/v6/include $BASECFLAGS"
17457 cat >conftest.
$ac_ext <<_ACEOF
17460 cat confdefs.h
>>conftest.
$ac_ext
17461 cat >>conftest.
$ac_ext <<_ACEOF
17462 /* end confdefs.h. */
17464 #include <sys/param.h>
17465 #ifdef _ZETA_MINAMI_INET6
17469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17470 $EGREP "yes" >/dev
/null
2>&1; then
17473 ipv6libdir
=/usr
/local
/v
6/lib
17479 if test "$ipv6type" != "unknown"; then
17483 { echo "$as_me:$LINENO: result: $ipv6type" >&5
17484 echo "${ECHO_T}$ipv6type" >&6; }
17487 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
17488 if test -d $ipv6libdir -a -f $ipv6libdir/lib
$ipv6lib.a
; then
17489 LIBS
="-L$ipv6libdir -l$ipv6lib $LIBS"
17490 echo "using lib$ipv6lib"
17492 if test $ipv6trylibc = "yes"; then
17495 echo 'Fatal: no $ipv6lib library found. cannot continue.'
17496 echo "You need to fetch lib$ipv6lib.a from appropriate"
17497 echo 'ipv6 kit and compile beforehand.'
17503 { echo "$as_me:$LINENO: checking for OSX 10.5 SDK or later" >&5
17504 echo $ECHO_N "checking for OSX 10.5 SDK or later... $ECHO_C" >&6; }
17505 cat >conftest.
$ac_ext <<_ACEOF
17508 cat confdefs.h
>>conftest.
$ac_ext
17509 cat >>conftest.
$ac_ext <<_ACEOF
17510 /* end confdefs.h. */
17511 #include <Carbon/Carbon.h>
17515 FSIORefNum fRef = 0
17520 rm -f conftest.
$ac_objext
17521 if { (ac_try
="$ac_compile"
17522 case "(($ac_try" in
17523 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17524 *) ac_try_echo=$ac_try;;
17526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17527 (eval "$ac_compile") 2>conftest.er1
17529 grep -v '^ *+' conftest.er1 >conftest.err
17531 cat conftest.err >&5
17532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533 (exit $ac_status); } && {
17534 test -z "$ac_c_werror_flag" ||
17535 test ! -s conftest.err
17536 } && test -s conftest.$ac_objext; then
17538 cat >>confdefs.h <<\_ACEOF
17539 #define HAVE_OSX105_SDK 1
17542 { echo "$as_me:$LINENO: result: yes" >&5
17543 echo "${ECHO_T}yes" >&6; }
17545 echo "$as_me: failed program was:" >&5
17546 sed 's/^/| /' conftest.$ac_ext >&5
17548 { echo "$as_me:$LINENO: result: no" >&5
17549 echo "${ECHO_T}no" >&6; }
17553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17555 # Check for --with-doc-strings
17556 { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
17557 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
17559 # Check whether --with-doc-strings was given.
17560 if test "${with_doc_strings+set}" = set; then
17561 withval=$with_doc_strings;
17565 if test -z "$with_doc_strings"
17566 then with_doc_strings="yes"
17568 if test "$with_doc_strings" != "no"
17571 cat >>confdefs.h <<\_ACEOF
17572 #define WITH_DOC_STRINGS 1
17576 { echo "$as_me:$LINENO: result: $with_doc_strings" >&5
17577 echo "${ECHO_T}$with_doc_strings" >&6; }
17579 # Check for Python-specific malloc support
17580 { echo "$as_me:$LINENO: checking for --with-tsc" >&5
17581 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
17583 # Check whether --with-tsc was given.
17584 if test "${with_tsc+set}" = set; then
17586 if test "$withval" != no
17589 cat >>confdefs.h <<\_ACEOF
17593 { echo "$as_me:$LINENO: result: yes" >&5
17594 echo "${ECHO_T}yes" >&6; }
17595 else { echo "$as_me:$LINENO: result: no" >&5
17596 echo "${ECHO_T}no" >&6; }
17599 { echo "$as_me:$LINENO: result: no" >&5
17600 echo "${ECHO_T}no" >&6; }
17604 # Check for Python-specific malloc support
17605 { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
17606 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
17608 # Check whether --with-pymalloc was given.
17609 if test "${with_pymalloc+set}" = set; then
17610 withval=$with_pymalloc;
17614 if test -z "$with_pymalloc"
17615 then with_pymalloc="yes"
17617 if test "$with_pymalloc" != "no"
17620 cat >>confdefs.h <<\_ACEOF
17621 #define WITH_PYMALLOC 1
17625 { echo "$as_me:$LINENO: result: $with_pymalloc" >&5
17626 echo "${ECHO_T}$with_pymalloc" >&6; }
17628 # Check for --with-wctype-functions
17629 { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
17630 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
17632 # Check whether --with-wctype-functions was given.
17633 if test "${with_wctype_functions+set}" = set; then
17634 withval=$with_wctype_functions;
17635 if test "$withval" != no
17638 cat >>confdefs.h <<\_ACEOF
17639 #define WANT_WCTYPE_FUNCTIONS 1
17642 { echo "$as_me:$LINENO: result: yes" >&5
17643 echo "${ECHO_T}yes" >&6; }
17644 else { echo "$as_me:$LINENO: result: no" >&5
17645 echo "${ECHO_T}no" >&6; }
17648 { echo "$as_me:$LINENO: result: no" >&5
17649 echo "${ECHO_T}no" >&6; }
17653 # -I${DLINCLDIR} is added to the compile rule for importdl.o
17657 # the dlopen() function means we might want to use dynload_shlib.o. some
17658 # platforms, such as AIX, have dlopen(), but don't want to use it.
17660 for ac_func in dlopen
17662 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
17663 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17664 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17665 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17666 echo $ECHO_N "(cached) $ECHO_C" >&6
17668 cat >conftest.$ac_ext <<_ACEOF
17671 cat confdefs.h >>conftest.$ac_ext
17672 cat >>conftest.$ac_ext <<_ACEOF
17673 /* end confdefs.h. */
17674 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17675 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17676 #define $ac_func innocuous_$ac_func
17678 /* System header to define __stub macros and hopefully few prototypes,
17679 which can conflict with char $ac_func (); below.
17680 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17681 <limits.h> exists even on freestanding compilers. */
17684 # include <limits.h>
17686 # include <assert.h>
17691 /* Override any GCC internal prototype to avoid an error.
17692 Use char because int might match the return type of a GCC
17693 builtin and then its argument prototype would still apply. */
17698 /* The GNU C library defines this for functions which it implements
17699 to always fail with ENOSYS. Some functions are actually named
17700 something starting with __ and the normal name is an alias. */
17701 #if defined __stub_$ac_func || defined __stub___$ac_func
17708 return $ac_func ();
17713 rm -f conftest.$ac_objext conftest$ac_exeext
17714 if { (ac_try="$ac_link"
17715 case "(($ac_try" in
17716 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17717 *) ac_try_echo
=$ac_try;;
17719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17720 (eval "$ac_link") 2>conftest.er1
17722 grep -v '^ *+' conftest.er1
>conftest.err
17724 cat conftest.err
>&5
17725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726 (exit $ac_status); } && {
17727 test -z "$ac_c_werror_flag" ||
17728 test ! -s conftest.err
17729 } && test -s conftest
$ac_exeext &&
17730 $as_test_x conftest
$ac_exeext; then
17731 eval "$as_ac_var=yes"
17733 echo "$as_me: failed program was:" >&5
17734 sed 's/^/| /' conftest.
$ac_ext >&5
17736 eval "$as_ac_var=no"
17739 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17740 conftest
$ac_exeext conftest.
$ac_ext
17742 ac_res
=`eval echo '${'$as_ac_var'}'`
17743 { echo "$as_me:$LINENO: result: $ac_res" >&5
17744 echo "${ECHO_T}$ac_res" >&6; }
17745 if test `eval echo '${'$as_ac_var'}'` = yes; then
17746 cat >>confdefs.h
<<_ACEOF
17747 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17754 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
17755 # loading of modules.
17757 { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
17758 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
17759 if test -z "$DYNLOADFILE"
17761 case $ac_sys_system/$ac_sys_release in
17762 AIX
*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
17763 if test "$ac_cv_func_dlopen" = yes
17764 then DYNLOADFILE
="dynload_shlib.o"
17765 else DYNLOADFILE
="dynload_aix.o"
17768 BeOS
*) DYNLOADFILE
="dynload_beos.o";;
17769 hp
*|HP
*) DYNLOADFILE
="dynload_hpux.o";;
17770 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
17771 Darwin
/[0156]\..
*) DYNLOADFILE
="dynload_next.o";;
17772 atheos
*) DYNLOADFILE
="dynload_atheos.o";;
17774 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
17775 # out any dynamic loading
17776 if test "$ac_cv_func_dlopen" = yes
17777 then DYNLOADFILE
="dynload_shlib.o"
17778 else DYNLOADFILE
="dynload_stub.o"
17783 { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
17784 echo "${ECHO_T}$DYNLOADFILE" >&6; }
17785 if test "$DYNLOADFILE" != "dynload_stub.o"
17788 cat >>confdefs.h
<<\_ACEOF
17789 #define HAVE_DYNAMIC_LOADING 1
17794 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
17797 { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
17798 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
17799 if test -z "$MACHDEP_OBJS"
17801 MACHDEP_OBJS
=$extra_machdep_objs
17803 MACHDEP_OBJS
="$MACHDEP_OBJS $extra_machdep_objs"
17805 { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
17806 echo "${ECHO_T}MACHDEP_OBJS" >&6; }
17808 # checks for library functions
17894 for ac_func
in alarm setitimer getitimer bind_textdomain_codeset chown \
17895 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
17896 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
17897 getpriority getpwent getspnam getspent getsid getwd \
17898 kill killpg lchmod lchown lstat
mkfifo mknod mktime \
17899 mremap nice pathconf pause plock poll pthread_init \
17900 putenv readlink realpath \
17901 select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \
17903 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
17904 sigaction siginterrupt sigrelse strftime \
17905 sysconf tcgetpgrp tcsetpgrp tempnam timegm
times tmpfile tmpnam tmpnam_r \
17906 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
17908 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17909 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17910 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17911 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17912 echo $ECHO_N "(cached) $ECHO_C" >&6
17914 cat >conftest.
$ac_ext <<_ACEOF
17917 cat confdefs.h
>>conftest.
$ac_ext
17918 cat >>conftest.
$ac_ext <<_ACEOF
17919 /* end confdefs.h. */
17920 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17921 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17922 #define $ac_func innocuous_$ac_func
17924 /* System header to define __stub macros and hopefully few prototypes,
17925 which can conflict with char $ac_func (); below.
17926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17927 <limits.h> exists even on freestanding compilers. */
17930 # include <limits.h>
17932 # include <assert.h>
17937 /* Override any GCC internal prototype to avoid an error.
17938 Use char because int might match the return type of a GCC
17939 builtin and then its argument prototype would still apply. */
17944 /* The GNU C library defines this for functions which it implements
17945 to always fail with ENOSYS. Some functions are actually named
17946 something starting with __ and the normal name is an alias. */
17947 #if defined __stub_$ac_func || defined __stub___$ac_func
17954 return $ac_func ();
17959 rm -f conftest.
$ac_objext conftest
$ac_exeext
17960 if { (ac_try
="$ac_link"
17961 case "(($ac_try" in
17962 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17963 *) ac_try_echo=$ac_try;;
17965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17966 (eval "$ac_link") 2>conftest.er1
17968 grep -v '^ *+' conftest.er1 >conftest.err
17970 cat conftest.err >&5
17971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17972 (exit $ac_status); } && {
17973 test -z "$ac_c_werror_flag" ||
17974 test ! -s conftest.err
17975 } && test -s conftest$ac_exeext &&
17976 $as_test_x conftest$ac_exeext; then
17977 eval "$as_ac_var=yes"
17979 echo "$as_me: failed program was:" >&5
17980 sed 's/^/| /' conftest.$ac_ext >&5
17982 eval "$as_ac_var=no"
17985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17986 conftest$ac_exeext conftest.$ac_ext
17988 ac_res=`eval echo '${'$as_ac_var'}'`
17989 { echo "$as_me:$LINENO: result: $ac_res" >&5
17990 echo "${ECHO_T}$ac_res" >&6; }
17991 if test `eval echo '${'$as_ac_var'}'` = yes; then
17992 cat >>confdefs.h <<_ACEOF
17993 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18000 # For some functions, having a definition is not sufficient, since
18001 # we want to take their address.
18002 { echo "$as_me:$LINENO: checking for chroot" >&5
18003 echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
18004 cat >conftest.$ac_ext <<_ACEOF
18007 cat confdefs.h >>conftest.$ac_ext
18008 cat >>conftest.$ac_ext <<_ACEOF
18009 /* end confdefs.h. */
18010 #include <unistd.h>
18019 rm -f conftest.$ac_objext
18020 if { (ac_try="$ac_compile"
18021 case "(($ac_try" in
18022 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18023 *) ac_try_echo
=$ac_try;;
18025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18026 (eval "$ac_compile") 2>conftest.er1
18028 grep -v '^ *+' conftest.er1
>conftest.err
18030 cat conftest.err
>&5
18031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18032 (exit $ac_status); } && {
18033 test -z "$ac_c_werror_flag" ||
18034 test ! -s conftest.err
18035 } && test -s conftest.
$ac_objext; then
18037 cat >>confdefs.h
<<\_ACEOF
18038 #define HAVE_CHROOT 1
18041 { echo "$as_me:$LINENO: result: yes" >&5
18042 echo "${ECHO_T}yes" >&6; }
18044 echo "$as_me: failed program was:" >&5
18045 sed 's/^/| /' conftest.
$ac_ext >&5
18047 { echo "$as_me:$LINENO: result: no" >&5
18048 echo "${ECHO_T}no" >&6; }
18052 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18053 { echo "$as_me:$LINENO: checking for link" >&5
18054 echo $ECHO_N "checking for link... $ECHO_C" >&6; }
18055 cat >conftest.
$ac_ext <<_ACEOF
18058 cat confdefs.h
>>conftest.
$ac_ext
18059 cat >>conftest.
$ac_ext <<_ACEOF
18060 /* end confdefs.h. */
18061 #include <unistd.h>
18070 rm -f conftest.
$ac_objext
18071 if { (ac_try
="$ac_compile"
18072 case "(($ac_try" in
18073 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18074 *) ac_try_echo=$ac_try;;
18076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18077 (eval "$ac_compile") 2>conftest.er1
18079 grep -v '^ *+' conftest.er1 >conftest.err
18081 cat conftest.err >&5
18082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18083 (exit $ac_status); } && {
18084 test -z "$ac_c_werror_flag" ||
18085 test ! -s conftest.err
18086 } && test -s conftest.$ac_objext; then
18088 cat >>confdefs.h <<\_ACEOF
18089 #define HAVE_LINK 1
18092 { echo "$as_me:$LINENO: result: yes" >&5
18093 echo "${ECHO_T}yes" >&6; }
18095 echo "$as_me: failed program was:" >&5
18096 sed 's/^/| /' conftest.$ac_ext >&5
18098 { echo "$as_me:$LINENO: result: no" >&5
18099 echo "${ECHO_T}no" >&6; }
18103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18104 { echo "$as_me:$LINENO: checking for symlink" >&5
18105 echo $ECHO_N "checking for symlink... $ECHO_C" >&6; }
18106 cat >conftest.$ac_ext <<_ACEOF
18109 cat confdefs.h >>conftest.$ac_ext
18110 cat >>conftest.$ac_ext <<_ACEOF
18111 /* end confdefs.h. */
18112 #include <unistd.h>
18121 rm -f conftest.$ac_objext
18122 if { (ac_try="$ac_compile"
18123 case "(($ac_try" in
18124 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18125 *) ac_try_echo
=$ac_try;;
18127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18128 (eval "$ac_compile") 2>conftest.er1
18130 grep -v '^ *+' conftest.er1
>conftest.err
18132 cat conftest.err
>&5
18133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134 (exit $ac_status); } && {
18135 test -z "$ac_c_werror_flag" ||
18136 test ! -s conftest.err
18137 } && test -s conftest.
$ac_objext; then
18139 cat >>confdefs.h
<<\_ACEOF
18140 #define HAVE_SYMLINK 1
18143 { echo "$as_me:$LINENO: result: yes" >&5
18144 echo "${ECHO_T}yes" >&6; }
18146 echo "$as_me: failed program was:" >&5
18147 sed 's/^/| /' conftest.
$ac_ext >&5
18149 { echo "$as_me:$LINENO: result: no" >&5
18150 echo "${ECHO_T}no" >&6; }
18154 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18155 { echo "$as_me:$LINENO: checking for fchdir" >&5
18156 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
18157 cat >conftest.
$ac_ext <<_ACEOF
18160 cat confdefs.h
>>conftest.
$ac_ext
18161 cat >>conftest.
$ac_ext <<_ACEOF
18162 /* end confdefs.h. */
18163 #include <unistd.h>
18172 rm -f conftest.
$ac_objext
18173 if { (ac_try
="$ac_compile"
18174 case "(($ac_try" in
18175 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18176 *) ac_try_echo=$ac_try;;
18178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18179 (eval "$ac_compile") 2>conftest.er1
18181 grep -v '^ *+' conftest.er1 >conftest.err
18183 cat conftest.err >&5
18184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18185 (exit $ac_status); } && {
18186 test -z "$ac_c_werror_flag" ||
18187 test ! -s conftest.err
18188 } && test -s conftest.$ac_objext; then
18190 cat >>confdefs.h <<\_ACEOF
18191 #define HAVE_FCHDIR 1
18194 { echo "$as_me:$LINENO: result: yes" >&5
18195 echo "${ECHO_T}yes" >&6; }
18197 echo "$as_me: failed program was:" >&5
18198 sed 's/^/| /' conftest.$ac_ext >&5
18200 { echo "$as_me:$LINENO: result: no" >&5
18201 echo "${ECHO_T}no" >&6; }
18205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18206 { echo "$as_me:$LINENO: checking for fsync" >&5
18207 echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
18208 cat >conftest.$ac_ext <<_ACEOF
18211 cat confdefs.h >>conftest.$ac_ext
18212 cat >>conftest.$ac_ext <<_ACEOF
18213 /* end confdefs.h. */
18214 #include <unistd.h>
18223 rm -f conftest.$ac_objext
18224 if { (ac_try="$ac_compile"
18225 case "(($ac_try" in
18226 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18227 *) ac_try_echo
=$ac_try;;
18229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18230 (eval "$ac_compile") 2>conftest.er1
18232 grep -v '^ *+' conftest.er1
>conftest.err
18234 cat conftest.err
>&5
18235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18236 (exit $ac_status); } && {
18237 test -z "$ac_c_werror_flag" ||
18238 test ! -s conftest.err
18239 } && test -s conftest.
$ac_objext; then
18241 cat >>confdefs.h
<<\_ACEOF
18242 #define HAVE_FSYNC 1
18245 { echo "$as_me:$LINENO: result: yes" >&5
18246 echo "${ECHO_T}yes" >&6; }
18248 echo "$as_me: failed program was:" >&5
18249 sed 's/^/| /' conftest.
$ac_ext >&5
18251 { echo "$as_me:$LINENO: result: no" >&5
18252 echo "${ECHO_T}no" >&6; }
18256 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18257 { echo "$as_me:$LINENO: checking for fdatasync" >&5
18258 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
18259 cat >conftest.
$ac_ext <<_ACEOF
18262 cat confdefs.h
>>conftest.
$ac_ext
18263 cat >>conftest.
$ac_ext <<_ACEOF
18264 /* end confdefs.h. */
18265 #include <unistd.h>
18274 rm -f conftest.
$ac_objext
18275 if { (ac_try
="$ac_compile"
18276 case "(($ac_try" in
18277 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18278 *) ac_try_echo=$ac_try;;
18280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18281 (eval "$ac_compile") 2>conftest.er1
18283 grep -v '^ *+' conftest.er1 >conftest.err
18285 cat conftest.err >&5
18286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18287 (exit $ac_status); } && {
18288 test -z "$ac_c_werror_flag" ||
18289 test ! -s conftest.err
18290 } && test -s conftest.$ac_objext; then
18292 cat >>confdefs.h <<\_ACEOF
18293 #define HAVE_FDATASYNC 1
18296 { echo "$as_me:$LINENO: result: yes" >&5
18297 echo "${ECHO_T}yes" >&6; }
18299 echo "$as_me: failed program was:" >&5
18300 sed 's/^/| /' conftest.$ac_ext >&5
18302 { echo "$as_me:$LINENO: result: no" >&5
18303 echo "${ECHO_T}no" >&6; }
18307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18308 { echo "$as_me:$LINENO: checking for epoll" >&5
18309 echo $ECHO_N "checking for epoll... $ECHO_C" >&6; }
18310 cat >conftest.$ac_ext <<_ACEOF
18313 cat confdefs.h >>conftest.$ac_ext
18314 cat >>conftest.$ac_ext <<_ACEOF
18315 /* end confdefs.h. */
18316 #include <sys/epoll.h>
18320 void *x=epoll_create
18325 rm -f conftest.$ac_objext
18326 if { (ac_try="$ac_compile"
18327 case "(($ac_try" in
18328 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18329 *) ac_try_echo
=$ac_try;;
18331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18332 (eval "$ac_compile") 2>conftest.er1
18334 grep -v '^ *+' conftest.er1
>conftest.err
18336 cat conftest.err
>&5
18337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338 (exit $ac_status); } && {
18339 test -z "$ac_c_werror_flag" ||
18340 test ! -s conftest.err
18341 } && test -s conftest.
$ac_objext; then
18343 cat >>confdefs.h
<<\_ACEOF
18344 #define HAVE_EPOLL 1
18347 { echo "$as_me:$LINENO: result: yes" >&5
18348 echo "${ECHO_T}yes" >&6; }
18350 echo "$as_me: failed program was:" >&5
18351 sed 's/^/| /' conftest.
$ac_ext >&5
18353 { echo "$as_me:$LINENO: result: no" >&5
18354 echo "${ECHO_T}no" >&6; }
18358 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18359 { echo "$as_me:$LINENO: checking for kqueue" >&5
18360 echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; }
18361 cat >conftest.
$ac_ext <<_ACEOF
18364 cat confdefs.h
>>conftest.
$ac_ext
18365 cat >>conftest.
$ac_ext <<_ACEOF
18366 /* end confdefs.h. */
18368 #include <sys/types.h>
18369 #include <sys/event.h>
18379 rm -f conftest.
$ac_objext
18380 if { (ac_try
="$ac_compile"
18381 case "(($ac_try" in
18382 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18383 *) ac_try_echo=$ac_try;;
18385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18386 (eval "$ac_compile") 2>conftest.er1
18388 grep -v '^ *+' conftest.er1 >conftest.err
18390 cat conftest.err >&5
18391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18392 (exit $ac_status); } && {
18393 test -z "$ac_c_werror_flag" ||
18394 test ! -s conftest.err
18395 } && test -s conftest.$ac_objext; then
18397 cat >>confdefs.h <<\_ACEOF
18398 #define HAVE_KQUEUE 1
18401 { echo "$as_me:$LINENO: result: yes" >&5
18402 echo "${ECHO_T}yes" >&6; }
18404 echo "$as_me: failed program was:" >&5
18405 sed 's/^/| /' conftest.$ac_ext >&5
18407 { echo "$as_me:$LINENO: result: no" >&5
18408 echo "${ECHO_T}no" >&6; }
18412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18413 # On some systems (eg. FreeBSD 5), we would find a definition of the
18414 # functions ctermid_r, setgroups in the library, but no prototype
18415 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
18416 # address to avoid compiler warnings and potential miscompilations
18417 # because of the missing prototypes.
18419 { echo "$as_me:$LINENO: checking for ctermid_r" >&5
18420 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; }
18421 cat >conftest.$ac_ext <<_ACEOF
18424 cat confdefs.h >>conftest.$ac_ext
18425 cat >>conftest.$ac_ext <<_ACEOF
18426 /* end confdefs.h. */
18428 #include "confdefs.h"
18434 void* p = ctermid_r
18439 rm -f conftest.$ac_objext
18440 if { (ac_try="$ac_compile"
18441 case "(($ac_try" in
18442 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18443 *) ac_try_echo
=$ac_try;;
18445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18446 (eval "$ac_compile") 2>conftest.er1
18448 grep -v '^ *+' conftest.er1
>conftest.err
18450 cat conftest.err
>&5
18451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18452 (exit $ac_status); } && {
18453 test -z "$ac_c_werror_flag" ||
18454 test ! -s conftest.err
18455 } && test -s conftest.
$ac_objext; then
18457 cat >>confdefs.h
<<\_ACEOF
18458 #define HAVE_CTERMID_R 1
18461 { echo "$as_me:$LINENO: result: yes" >&5
18462 echo "${ECHO_T}yes" >&6; }
18464 echo "$as_me: failed program was:" >&5
18465 sed 's/^/| /' conftest.
$ac_ext >&5
18467 { echo "$as_me:$LINENO: result: no" >&5
18468 echo "${ECHO_T}no" >&6; }
18472 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18474 { echo "$as_me:$LINENO: checking for flock" >&5
18475 echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
18476 cat >conftest.
$ac_ext <<_ACEOF
18479 cat confdefs.h
>>conftest.
$ac_ext
18480 cat >>conftest.
$ac_ext <<_ACEOF
18481 /* end confdefs.h. */
18483 #include "confdefs.h"
18484 #include <sys/file.h>
18494 rm -f conftest.
$ac_objext
18495 if { (ac_try
="$ac_compile"
18496 case "(($ac_try" in
18497 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18498 *) ac_try_echo=$ac_try;;
18500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18501 (eval "$ac_compile") 2>conftest.er1
18503 grep -v '^ *+' conftest.er1 >conftest.err
18505 cat conftest.err >&5
18506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18507 (exit $ac_status); } && {
18508 test -z "$ac_c_werror_flag" ||
18509 test ! -s conftest.err
18510 } && test -s conftest.$ac_objext; then
18512 cat >>confdefs.h <<\_ACEOF
18513 #define HAVE_FLOCK 1
18516 { echo "$as_me:$LINENO: result: yes" >&5
18517 echo "${ECHO_T}yes" >&6; }
18519 echo "$as_me: failed program was:" >&5
18520 sed 's/^/| /' conftest.$ac_ext >&5
18522 { echo "$as_me:$LINENO: result: no" >&5
18523 echo "${ECHO_T}no" >&6; }
18527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18529 { echo "$as_me:$LINENO: checking for getpagesize" >&5
18530 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
18531 cat >conftest.$ac_ext <<_ACEOF
18534 cat confdefs.h >>conftest.$ac_ext
18535 cat >>conftest.$ac_ext <<_ACEOF
18536 /* end confdefs.h. */
18538 #include "confdefs.h"
18539 #include <unistd.h>
18544 void* p = getpagesize
18549 rm -f conftest.$ac_objext
18550 if { (ac_try="$ac_compile"
18551 case "(($ac_try" in
18552 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18553 *) ac_try_echo
=$ac_try;;
18555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18556 (eval "$ac_compile") 2>conftest.er1
18558 grep -v '^ *+' conftest.er1
>conftest.err
18560 cat conftest.err
>&5
18561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18562 (exit $ac_status); } && {
18563 test -z "$ac_c_werror_flag" ||
18564 test ! -s conftest.err
18565 } && test -s conftest.
$ac_objext; then
18567 cat >>confdefs.h
<<\_ACEOF
18568 #define HAVE_GETPAGESIZE 1
18571 { echo "$as_me:$LINENO: result: yes" >&5
18572 echo "${ECHO_T}yes" >&6; }
18574 echo "$as_me: failed program was:" >&5
18575 sed 's/^/| /' conftest.
$ac_ext >&5
18577 { echo "$as_me:$LINENO: result: no" >&5
18578 echo "${ECHO_T}no" >&6; }
18582 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18584 for ac_prog
in true
18586 # Extract the first word of "$ac_prog", so it can be a program name with args.
18587 set dummy
$ac_prog; ac_word
=$2
18588 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18590 if test "${ac_cv_prog_TRUE+set}" = set; then
18591 echo $ECHO_N "(cached) $ECHO_C" >&6
18593 if test -n "$TRUE"; then
18594 ac_cv_prog_TRUE
="$TRUE" # Let the user override the test.
18596 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18597 for as_dir
in $PATH
18600 test -z "$as_dir" && as_dir
=.
18601 for ac_exec_ext
in '' $ac_executable_extensions; do
18602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18603 ac_cv_prog_TRUE
="$ac_prog"
18604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18613 TRUE
=$ac_cv_prog_TRUE
18614 if test -n "$TRUE"; then
18615 { echo "$as_me:$LINENO: result: $TRUE" >&5
18616 echo "${ECHO_T}$TRUE" >&6; }
18618 { echo "$as_me:$LINENO: result: no" >&5
18619 echo "${ECHO_T}no" >&6; }
18623 test -n "$TRUE" && break
18625 test -n "$TRUE" || TRUE
="/bin/true"
18628 { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
18629 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
18630 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
18631 echo $ECHO_N "(cached) $ECHO_C" >&6
18633 ac_check_lib_save_LIBS
=$LIBS
18635 cat >conftest.
$ac_ext <<_ACEOF
18638 cat confdefs.h
>>conftest.
$ac_ext
18639 cat >>conftest.
$ac_ext <<_ACEOF
18640 /* end confdefs.h. */
18642 /* Override any GCC internal prototype to avoid an error.
18643 Use char because int might match the return type of a GCC
18644 builtin and then its argument prototype would still apply. */
18652 return inet_aton ();
18657 rm -f conftest.
$ac_objext conftest
$ac_exeext
18658 if { (ac_try
="$ac_link"
18659 case "(($ac_try" in
18660 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18661 *) ac_try_echo=$ac_try;;
18663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18664 (eval "$ac_link") 2>conftest.er1
18666 grep -v '^ *+' conftest.er1 >conftest.err
18668 cat conftest.err >&5
18669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18670 (exit $ac_status); } && {
18671 test -z "$ac_c_werror_flag" ||
18672 test ! -s conftest.err
18673 } && test -s conftest$ac_exeext &&
18674 $as_test_x conftest$ac_exeext; then
18675 ac_cv_lib_c_inet_aton=yes
18677 echo "$as_me: failed program was:" >&5
18678 sed 's/^/| /' conftest.$ac_ext >&5
18680 ac_cv_lib_c_inet_aton=no
18683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18684 conftest$ac_exeext conftest.$ac_ext
18685 LIBS=$ac_check_lib_save_LIBS
18687 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
18688 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
18689 if test $ac_cv_lib_c_inet_aton = yes; then
18693 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
18694 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
18695 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
18696 echo $ECHO_N "(cached) $ECHO_C" >&6
18698 ac_check_lib_save_LIBS=$LIBS
18699 LIBS="-lresolv $LIBS"
18700 cat >conftest.$ac_ext <<_ACEOF
18703 cat confdefs.h >>conftest.$ac_ext
18704 cat >>conftest.$ac_ext <<_ACEOF
18705 /* end confdefs.h. */
18707 /* Override any GCC internal prototype to avoid an error.
18708 Use char because int might match the return type of a GCC
18709 builtin and then its argument prototype would still apply. */
18717 return inet_aton ();
18722 rm -f conftest.$ac_objext conftest$ac_exeext
18723 if { (ac_try="$ac_link"
18724 case "(($ac_try" in
18725 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18726 *) ac_try_echo
=$ac_try;;
18728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18729 (eval "$ac_link") 2>conftest.er1
18731 grep -v '^ *+' conftest.er1
>conftest.err
18733 cat conftest.err
>&5
18734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18735 (exit $ac_status); } && {
18736 test -z "$ac_c_werror_flag" ||
18737 test ! -s conftest.err
18738 } && test -s conftest
$ac_exeext &&
18739 $as_test_x conftest
$ac_exeext; then
18740 ac_cv_lib_resolv_inet_aton
=yes
18742 echo "$as_me: failed program was:" >&5
18743 sed 's/^/| /' conftest.
$ac_ext >&5
18745 ac_cv_lib_resolv_inet_aton
=no
18748 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18749 conftest
$ac_exeext conftest.
$ac_ext
18750 LIBS
=$ac_check_lib_save_LIBS
18752 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
18753 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
18754 if test $ac_cv_lib_resolv_inet_aton = yes; then
18755 cat >>confdefs.h
<<_ACEOF
18756 #define HAVE_LIBRESOLV 1
18759 LIBS
="-lresolv $LIBS"
18767 # On Tru64, chflags seems to be present, but calling it will
18769 { echo "$as_me:$LINENO: checking for chflags" >&5
18770 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
18771 if test "${ac_cv_have_chflags+set}" = set; then
18772 echo $ECHO_N "(cached) $ECHO_C" >&6
18774 if test "$cross_compiling" = yes; then
18775 ac_cv_have_chflags
=no
18777 cat >conftest.
$ac_ext <<_ACEOF
18780 cat confdefs.h
>>conftest.
$ac_ext
18781 cat >>conftest.
$ac_ext <<_ACEOF
18782 /* end confdefs.h. */
18784 #include <sys/stat.h>
18785 #include <unistd.h>
18786 int main(int argc, char*argv[])
18788 if(chflags(argv[0], 0) != 0)
18794 rm -f conftest
$ac_exeext
18795 if { (ac_try
="$ac_link"
18796 case "(($ac_try" in
18797 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18798 *) ac_try_echo=$ac_try;;
18800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18801 (eval "$ac_link") 2>&5
18803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18804 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18805 { (case "(($ac_try" in
18806 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18807 *) ac_try_echo
=$ac_try;;
18809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18810 (eval "$ac_try") 2>&5
18812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18813 (exit $ac_status); }; }; then
18814 ac_cv_have_chflags
=yes
18816 echo "$as_me: program exited with status $ac_status" >&5
18817 echo "$as_me: failed program was:" >&5
18818 sed 's/^/| /' conftest.
$ac_ext >&5
18820 ( exit $ac_status )
18821 ac_cv_have_chflags
=no
18823 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
18830 { echo "$as_me:$LINENO: result: $ac_cv_have_chflags" >&5
18831 echo "${ECHO_T}$ac_cv_have_chflags" >&6; }
18832 if test $ac_cv_have_chflags = yes
18835 cat >>confdefs.h
<<\_ACEOF
18836 #define HAVE_CHFLAGS 1
18841 { echo "$as_me:$LINENO: checking for lchflags" >&5
18842 echo $ECHO_N "checking for lchflags... $ECHO_C" >&6; }
18843 if test "${ac_cv_have_lchflags+set}" = set; then
18844 echo $ECHO_N "(cached) $ECHO_C" >&6
18846 if test "$cross_compiling" = yes; then
18847 ac_cv_have_lchflags
=no
18849 cat >conftest.
$ac_ext <<_ACEOF
18852 cat confdefs.h
>>conftest.
$ac_ext
18853 cat >>conftest.
$ac_ext <<_ACEOF
18854 /* end confdefs.h. */
18856 #include <sys/stat.h>
18857 #include <unistd.h>
18858 int main(int argc, char*argv[])
18860 if(lchflags(argv[0], 0) != 0)
18866 rm -f conftest
$ac_exeext
18867 if { (ac_try
="$ac_link"
18868 case "(($ac_try" in
18869 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18870 *) ac_try_echo=$ac_try;;
18872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18873 (eval "$ac_link") 2>&5
18875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18876 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18877 { (case "(($ac_try" in
18878 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18879 *) ac_try_echo
=$ac_try;;
18881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18882 (eval "$ac_try") 2>&5
18884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18885 (exit $ac_status); }; }; then
18886 ac_cv_have_lchflags
=yes
18888 echo "$as_me: program exited with status $ac_status" >&5
18889 echo "$as_me: failed program was:" >&5
18890 sed 's/^/| /' conftest.
$ac_ext >&5
18892 ( exit $ac_status )
18893 ac_cv_have_lchflags
=no
18895 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
18902 { echo "$as_me:$LINENO: result: $ac_cv_have_lchflags" >&5
18903 echo "${ECHO_T}$ac_cv_have_lchflags" >&6; }
18904 if test $ac_cv_have_lchflags = yes
18907 cat >>confdefs.h
<<\_ACEOF
18908 #define HAVE_LCHFLAGS 1
18913 case $ac_sys_system/$ac_sys_release in
18915 _CUR_CFLAGS
="${CFLAGS}"
18916 _CUR_LDFLAGS
="${LDFLAGS}"
18917 CFLAGS
="${CFLAGS} -Wl,-search_paths_first"
18918 LDFLAGS
="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
18922 { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
18923 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
18924 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
18925 echo $ECHO_N "(cached) $ECHO_C" >&6
18927 ac_check_lib_save_LIBS
=$LIBS
18929 cat >conftest.
$ac_ext <<_ACEOF
18932 cat confdefs.h
>>conftest.
$ac_ext
18933 cat >>conftest.
$ac_ext <<_ACEOF
18934 /* end confdefs.h. */
18936 /* Override any GCC internal prototype to avoid an error.
18937 Use char because int might match the return type of a GCC
18938 builtin and then its argument prototype would still apply. */
18942 char inflateCopy ();
18946 return inflateCopy ();
18951 rm -f conftest.
$ac_objext conftest
$ac_exeext
18952 if { (ac_try
="$ac_link"
18953 case "(($ac_try" in
18954 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18955 *) ac_try_echo=$ac_try;;
18957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18958 (eval "$ac_link") 2>conftest.er1
18960 grep -v '^ *+' conftest.er1 >conftest.err
18962 cat conftest.err >&5
18963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18964 (exit $ac_status); } && {
18965 test -z "$ac_c_werror_flag" ||
18966 test ! -s conftest.err
18967 } && test -s conftest$ac_exeext &&
18968 $as_test_x conftest$ac_exeext; then
18969 ac_cv_lib_z_inflateCopy=yes
18971 echo "$as_me: failed program was:" >&5
18972 sed 's/^/| /' conftest.$ac_ext >&5
18974 ac_cv_lib_z_inflateCopy=no
18977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18978 conftest$ac_exeext conftest.$ac_ext
18979 LIBS=$ac_check_lib_save_LIBS
18981 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
18982 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
18983 if test $ac_cv_lib_z_inflateCopy = yes; then
18985 cat >>confdefs.h <<\_ACEOF
18986 #define HAVE_ZLIB_COPY 1
18992 case $ac_sys_system/$ac_sys_release in
18994 CFLAGS="${_CUR_CFLAGS}"
18995 LDFLAGS="${_CUR_LDFLAGS}"
18999 { echo "$as_me:$LINENO: checking for hstrerror" >&5
19000 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
19001 cat >conftest.$ac_ext <<_ACEOF
19004 cat confdefs.h >>conftest.$ac_ext
19005 cat >>conftest.$ac_ext <<_ACEOF
19006 /* end confdefs.h. */
19008 #include "confdefs.h"
19014 void* p = hstrerror; hstrerror(0)
19019 rm -f conftest.$ac_objext conftest$ac_exeext
19020 if { (ac_try="$ac_link"
19021 case "(($ac_try" in
19022 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19023 *) ac_try_echo
=$ac_try;;
19025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19026 (eval "$ac_link") 2>conftest.er1
19028 grep -v '^ *+' conftest.er1
>conftest.err
19030 cat conftest.err
>&5
19031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19032 (exit $ac_status); } && {
19033 test -z "$ac_c_werror_flag" ||
19034 test ! -s conftest.err
19035 } && test -s conftest
$ac_exeext &&
19036 $as_test_x conftest
$ac_exeext; then
19038 cat >>confdefs.h
<<\_ACEOF
19039 #define HAVE_HSTRERROR 1
19042 { echo "$as_me:$LINENO: result: yes" >&5
19043 echo "${ECHO_T}yes" >&6; }
19045 echo "$as_me: failed program was:" >&5
19046 sed 's/^/| /' conftest.
$ac_ext >&5
19048 { echo "$as_me:$LINENO: result: no" >&5
19049 echo "${ECHO_T}no" >&6; }
19053 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19054 conftest
$ac_exeext conftest.
$ac_ext
19056 { echo "$as_me:$LINENO: checking for inet_aton" >&5
19057 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
19058 cat >conftest.
$ac_ext <<_ACEOF
19061 cat confdefs.h
>>conftest.
$ac_ext
19062 cat >>conftest.
$ac_ext <<_ACEOF
19063 /* end confdefs.h. */
19065 #include "confdefs.h"
19066 #include <sys/types.h>
19067 #include <sys/socket.h>
19068 #include <netinet/in.h>
19069 #include <arpa/inet.h>
19074 void* p = inet_aton;inet_aton(0,0)
19079 rm -f conftest.
$ac_objext conftest
$ac_exeext
19080 if { (ac_try
="$ac_link"
19081 case "(($ac_try" in
19082 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19083 *) ac_try_echo=$ac_try;;
19085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19086 (eval "$ac_link") 2>conftest.er1
19088 grep -v '^ *+' conftest.er1 >conftest.err
19090 cat conftest.err >&5
19091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19092 (exit $ac_status); } && {
19093 test -z "$ac_c_werror_flag" ||
19094 test ! -s conftest.err
19095 } && test -s conftest$ac_exeext &&
19096 $as_test_x conftest$ac_exeext; then
19098 cat >>confdefs.h <<\_ACEOF
19099 #define HAVE_INET_ATON 1
19102 { echo "$as_me:$LINENO: result: yes" >&5
19103 echo "${ECHO_T}yes" >&6; }
19105 echo "$as_me: failed program was:" >&5
19106 sed 's/^/| /' conftest.$ac_ext >&5
19108 { echo "$as_me:$LINENO: result: no" >&5
19109 echo "${ECHO_T}no" >&6; }
19113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19114 conftest$ac_exeext conftest.$ac_ext
19116 { echo "$as_me:$LINENO: checking for inet_pton" >&5
19117 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
19118 cat >conftest.$ac_ext <<_ACEOF
19121 cat confdefs.h >>conftest.$ac_ext
19122 cat >>conftest.$ac_ext <<_ACEOF
19123 /* end confdefs.h. */
19125 #include "confdefs.h"
19126 #include <sys/types.h>
19127 #include <sys/socket.h>
19128 #include <netinet/in.h>
19129 #include <arpa/inet.h>
19134 void* p = inet_pton
19139 rm -f conftest.$ac_objext
19140 if { (ac_try="$ac_compile"
19141 case "(($ac_try" in
19142 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19143 *) ac_try_echo
=$ac_try;;
19145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19146 (eval "$ac_compile") 2>conftest.er1
19148 grep -v '^ *+' conftest.er1
>conftest.err
19150 cat conftest.err
>&5
19151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19152 (exit $ac_status); } && {
19153 test -z "$ac_c_werror_flag" ||
19154 test ! -s conftest.err
19155 } && test -s conftest.
$ac_objext; then
19157 cat >>confdefs.h
<<\_ACEOF
19158 #define HAVE_INET_PTON 1
19161 { echo "$as_me:$LINENO: result: yes" >&5
19162 echo "${ECHO_T}yes" >&6; }
19164 echo "$as_me: failed program was:" >&5
19165 sed 's/^/| /' conftest.
$ac_ext >&5
19167 { echo "$as_me:$LINENO: result: no" >&5
19168 echo "${ECHO_T}no" >&6; }
19172 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19174 # On some systems, setgroups is in unistd.h, on others, in grp.h
19175 { echo "$as_me:$LINENO: checking for setgroups" >&5
19176 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
19177 cat >conftest.
$ac_ext <<_ACEOF
19180 cat confdefs.h
>>conftest.
$ac_ext
19181 cat >>conftest.
$ac_ext <<_ACEOF
19182 /* end confdefs.h. */
19184 #include "confdefs.h"
19185 #include <unistd.h>
19193 void* p = setgroups
19198 rm -f conftest.
$ac_objext
19199 if { (ac_try
="$ac_compile"
19200 case "(($ac_try" in
19201 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19202 *) ac_try_echo=$ac_try;;
19204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19205 (eval "$ac_compile") 2>conftest.er1
19207 grep -v '^ *+' conftest.er1 >conftest.err
19209 cat conftest.err >&5
19210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19211 (exit $ac_status); } && {
19212 test -z "$ac_c_werror_flag" ||
19213 test ! -s conftest.err
19214 } && test -s conftest.$ac_objext; then
19216 cat >>confdefs.h <<\_ACEOF
19217 #define HAVE_SETGROUPS 1
19220 { echo "$as_me:$LINENO: result: yes" >&5
19221 echo "${ECHO_T}yes" >&6; }
19223 echo "$as_me: failed program was:" >&5
19224 sed 's/^/| /' conftest.$ac_ext >&5
19226 { echo "$as_me:$LINENO: result: no" >&5
19227 echo "${ECHO_T}no" >&6; }
19231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19233 # check for openpty and forkpty
19236 for ac_func in openpty
19238 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
19239 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19240 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19241 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19242 echo $ECHO_N "(cached) $ECHO_C" >&6
19244 cat >conftest.$ac_ext <<_ACEOF
19247 cat confdefs.h >>conftest.$ac_ext
19248 cat >>conftest.$ac_ext <<_ACEOF
19249 /* end confdefs.h. */
19250 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19251 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19252 #define $ac_func innocuous_$ac_func
19254 /* System header to define __stub macros and hopefully few prototypes,
19255 which can conflict with char $ac_func (); below.
19256 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19257 <limits.h> exists even on freestanding compilers. */
19260 # include <limits.h>
19262 # include <assert.h>
19267 /* Override any GCC internal prototype to avoid an error.
19268 Use char because int might match the return type of a GCC
19269 builtin and then its argument prototype would still apply. */
19274 /* The GNU C library defines this for functions which it implements
19275 to always fail with ENOSYS. Some functions are actually named
19276 something starting with __ and the normal name is an alias. */
19277 #if defined __stub_$ac_func || defined __stub___$ac_func
19284 return $ac_func ();
19289 rm -f conftest.$ac_objext conftest$ac_exeext
19290 if { (ac_try="$ac_link"
19291 case "(($ac_try" in
19292 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19293 *) ac_try_echo
=$ac_try;;
19295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19296 (eval "$ac_link") 2>conftest.er1
19298 grep -v '^ *+' conftest.er1
>conftest.err
19300 cat conftest.err
>&5
19301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19302 (exit $ac_status); } && {
19303 test -z "$ac_c_werror_flag" ||
19304 test ! -s conftest.err
19305 } && test -s conftest
$ac_exeext &&
19306 $as_test_x conftest
$ac_exeext; then
19307 eval "$as_ac_var=yes"
19309 echo "$as_me: failed program was:" >&5
19310 sed 's/^/| /' conftest.
$ac_ext >&5
19312 eval "$as_ac_var=no"
19315 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19316 conftest
$ac_exeext conftest.
$ac_ext
19318 ac_res
=`eval echo '${'$as_ac_var'}'`
19319 { echo "$as_me:$LINENO: result: $ac_res" >&5
19320 echo "${ECHO_T}$ac_res" >&6; }
19321 if test `eval echo '${'$as_ac_var'}'` = yes; then
19322 cat >>confdefs.h
<<_ACEOF
19323 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19327 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
19328 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
19329 if test "${ac_cv_lib_util_openpty+set}" = set; then
19330 echo $ECHO_N "(cached) $ECHO_C" >&6
19332 ac_check_lib_save_LIBS
=$LIBS
19333 LIBS
="-lutil $LIBS"
19334 cat >conftest.
$ac_ext <<_ACEOF
19337 cat confdefs.h
>>conftest.
$ac_ext
19338 cat >>conftest.
$ac_ext <<_ACEOF
19339 /* end confdefs.h. */
19341 /* Override any GCC internal prototype to avoid an error.
19342 Use char because int might match the return type of a GCC
19343 builtin and then its argument prototype would still apply. */
19356 rm -f conftest.
$ac_objext conftest
$ac_exeext
19357 if { (ac_try
="$ac_link"
19358 case "(($ac_try" in
19359 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19360 *) ac_try_echo=$ac_try;;
19362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19363 (eval "$ac_link") 2>conftest.er1
19365 grep -v '^ *+' conftest.er1 >conftest.err
19367 cat conftest.err >&5
19368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19369 (exit $ac_status); } && {
19370 test -z "$ac_c_werror_flag" ||
19371 test ! -s conftest.err
19372 } && test -s conftest$ac_exeext &&
19373 $as_test_x conftest$ac_exeext; then
19374 ac_cv_lib_util_openpty=yes
19376 echo "$as_me: failed program was:" >&5
19377 sed 's/^/| /' conftest.$ac_ext >&5
19379 ac_cv_lib_util_openpty=no
19382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19383 conftest$ac_exeext conftest.$ac_ext
19384 LIBS=$ac_check_lib_save_LIBS
19386 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
19387 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
19388 if test $ac_cv_lib_util_openpty = yes; then
19389 cat >>confdefs.h <<\_ACEOF
19390 #define HAVE_OPENPTY 1
19392 LIBS="$LIBS -lutil"
19394 { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
19395 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
19396 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
19397 echo $ECHO_N "(cached) $ECHO_C" >&6
19399 ac_check_lib_save_LIBS=$LIBS
19401 cat >conftest.$ac_ext <<_ACEOF
19404 cat confdefs.h >>conftest.$ac_ext
19405 cat >>conftest.$ac_ext <<_ACEOF
19406 /* end confdefs.h. */
19408 /* Override any GCC internal prototype to avoid an error.
19409 Use char because int might match the return type of a GCC
19410 builtin and then its argument prototype would still apply. */
19423 rm -f conftest.$ac_objext conftest$ac_exeext
19424 if { (ac_try="$ac_link"
19425 case "(($ac_try" in
19426 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19427 *) ac_try_echo
=$ac_try;;
19429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19430 (eval "$ac_link") 2>conftest.er1
19432 grep -v '^ *+' conftest.er1
>conftest.err
19434 cat conftest.err
>&5
19435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19436 (exit $ac_status); } && {
19437 test -z "$ac_c_werror_flag" ||
19438 test ! -s conftest.err
19439 } && test -s conftest
$ac_exeext &&
19440 $as_test_x conftest
$ac_exeext; then
19441 ac_cv_lib_bsd_openpty
=yes
19443 echo "$as_me: failed program was:" >&5
19444 sed 's/^/| /' conftest.
$ac_ext >&5
19446 ac_cv_lib_bsd_openpty
=no
19449 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19450 conftest
$ac_exeext conftest.
$ac_ext
19451 LIBS
=$ac_check_lib_save_LIBS
19453 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
19454 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
19455 if test $ac_cv_lib_bsd_openpty = yes; then
19456 cat >>confdefs.h
<<\_ACEOF
19457 #define HAVE_OPENPTY 1
19470 for ac_func
in forkpty
19472 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19473 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19474 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19475 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19476 echo $ECHO_N "(cached) $ECHO_C" >&6
19478 cat >conftest.
$ac_ext <<_ACEOF
19481 cat confdefs.h
>>conftest.
$ac_ext
19482 cat >>conftest.
$ac_ext <<_ACEOF
19483 /* end confdefs.h. */
19484 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19485 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19486 #define $ac_func innocuous_$ac_func
19488 /* System header to define __stub macros and hopefully few prototypes,
19489 which can conflict with char $ac_func (); below.
19490 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19491 <limits.h> exists even on freestanding compilers. */
19494 # include <limits.h>
19496 # include <assert.h>
19501 /* Override any GCC internal prototype to avoid an error.
19502 Use char because int might match the return type of a GCC
19503 builtin and then its argument prototype would still apply. */
19508 /* The GNU C library defines this for functions which it implements
19509 to always fail with ENOSYS. Some functions are actually named
19510 something starting with __ and the normal name is an alias. */
19511 #if defined __stub_$ac_func || defined __stub___$ac_func
19518 return $ac_func ();
19523 rm -f conftest.
$ac_objext conftest
$ac_exeext
19524 if { (ac_try
="$ac_link"
19525 case "(($ac_try" in
19526 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19527 *) ac_try_echo=$ac_try;;
19529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19530 (eval "$ac_link") 2>conftest.er1
19532 grep -v '^ *+' conftest.er1 >conftest.err
19534 cat conftest.err >&5
19535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19536 (exit $ac_status); } && {
19537 test -z "$ac_c_werror_flag" ||
19538 test ! -s conftest.err
19539 } && test -s conftest$ac_exeext &&
19540 $as_test_x conftest$ac_exeext; then
19541 eval "$as_ac_var=yes"
19543 echo "$as_me: failed program was:" >&5
19544 sed 's/^/| /' conftest.$ac_ext >&5
19546 eval "$as_ac_var=no"
19549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19550 conftest$ac_exeext conftest.$ac_ext
19552 ac_res=`eval echo '${'$as_ac_var'}'`
19553 { echo "$as_me:$LINENO: result: $ac_res" >&5
19554 echo "${ECHO_T}$ac_res" >&6; }
19555 if test `eval echo '${'$as_ac_var'}'` = yes; then
19556 cat >>confdefs.h <<_ACEOF
19557 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
19561 { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
19562 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
19563 if test "${ac_cv_lib_util_forkpty+set}" = set; then
19564 echo $ECHO_N "(cached) $ECHO_C" >&6
19566 ac_check_lib_save_LIBS=$LIBS
19567 LIBS="-lutil $LIBS"
19568 cat >conftest.$ac_ext <<_ACEOF
19571 cat confdefs.h >>conftest.$ac_ext
19572 cat >>conftest.$ac_ext <<_ACEOF
19573 /* end confdefs.h. */
19575 /* Override any GCC internal prototype to avoid an error.
19576 Use char because int might match the return type of a GCC
19577 builtin and then its argument prototype would still apply. */
19590 rm -f conftest.$ac_objext conftest$ac_exeext
19591 if { (ac_try="$ac_link"
19592 case "(($ac_try" in
19593 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19594 *) ac_try_echo
=$ac_try;;
19596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19597 (eval "$ac_link") 2>conftest.er1
19599 grep -v '^ *+' conftest.er1
>conftest.err
19601 cat conftest.err
>&5
19602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19603 (exit $ac_status); } && {
19604 test -z "$ac_c_werror_flag" ||
19605 test ! -s conftest.err
19606 } && test -s conftest
$ac_exeext &&
19607 $as_test_x conftest
$ac_exeext; then
19608 ac_cv_lib_util_forkpty
=yes
19610 echo "$as_me: failed program was:" >&5
19611 sed 's/^/| /' conftest.
$ac_ext >&5
19613 ac_cv_lib_util_forkpty
=no
19616 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19617 conftest
$ac_exeext conftest.
$ac_ext
19618 LIBS
=$ac_check_lib_save_LIBS
19620 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
19621 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
19622 if test $ac_cv_lib_util_forkpty = yes; then
19623 cat >>confdefs.h
<<\_ACEOF
19624 #define HAVE_FORKPTY 1
19626 LIBS
="$LIBS -lutil"
19628 { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
19629 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
19630 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
19631 echo $ECHO_N "(cached) $ECHO_C" >&6
19633 ac_check_lib_save_LIBS
=$LIBS
19635 cat >conftest.
$ac_ext <<_ACEOF
19638 cat confdefs.h
>>conftest.
$ac_ext
19639 cat >>conftest.
$ac_ext <<_ACEOF
19640 /* end confdefs.h. */
19642 /* Override any GCC internal prototype to avoid an error.
19643 Use char because int might match the return type of a GCC
19644 builtin and then its argument prototype would still apply. */
19657 rm -f conftest.
$ac_objext conftest
$ac_exeext
19658 if { (ac_try
="$ac_link"
19659 case "(($ac_try" in
19660 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19661 *) ac_try_echo=$ac_try;;
19663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19664 (eval "$ac_link") 2>conftest.er1
19666 grep -v '^ *+' conftest.er1 >conftest.err
19668 cat conftest.err >&5
19669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19670 (exit $ac_status); } && {
19671 test -z "$ac_c_werror_flag" ||
19672 test ! -s conftest.err
19673 } && test -s conftest$ac_exeext &&
19674 $as_test_x conftest$ac_exeext; then
19675 ac_cv_lib_bsd_forkpty=yes
19677 echo "$as_me: failed program was:" >&5
19678 sed 's/^/| /' conftest.$ac_ext >&5
19680 ac_cv_lib_bsd_forkpty=no
19683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19684 conftest$ac_exeext conftest.$ac_ext
19685 LIBS=$ac_check_lib_save_LIBS
19687 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
19688 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
19689 if test $ac_cv_lib_bsd_forkpty = yes; then
19690 cat >>confdefs.h <<\_ACEOF
19691 #define HAVE_FORKPTY 1
19706 for ac_func in memmove
19708 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
19709 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19710 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19711 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19712 echo $ECHO_N "(cached) $ECHO_C" >&6
19714 cat >conftest.$ac_ext <<_ACEOF
19717 cat confdefs.h >>conftest.$ac_ext
19718 cat >>conftest.$ac_ext <<_ACEOF
19719 /* end confdefs.h. */
19720 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19721 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19722 #define $ac_func innocuous_$ac_func
19724 /* System header to define __stub macros and hopefully few prototypes,
19725 which can conflict with char $ac_func (); below.
19726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19727 <limits.h> exists even on freestanding compilers. */
19730 # include <limits.h>
19732 # include <assert.h>
19737 /* Override any GCC internal prototype to avoid an error.
19738 Use char because int might match the return type of a GCC
19739 builtin and then its argument prototype would still apply. */
19744 /* The GNU C library defines this for functions which it implements
19745 to always fail with ENOSYS. Some functions are actually named
19746 something starting with __ and the normal name is an alias. */
19747 #if defined __stub_$ac_func || defined __stub___$ac_func
19754 return $ac_func ();
19759 rm -f conftest.$ac_objext conftest$ac_exeext
19760 if { (ac_try="$ac_link"
19761 case "(($ac_try" in
19762 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19763 *) ac_try_echo
=$ac_try;;
19765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19766 (eval "$ac_link") 2>conftest.er1
19768 grep -v '^ *+' conftest.er1
>conftest.err
19770 cat conftest.err
>&5
19771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19772 (exit $ac_status); } && {
19773 test -z "$ac_c_werror_flag" ||
19774 test ! -s conftest.err
19775 } && test -s conftest
$ac_exeext &&
19776 $as_test_x conftest
$ac_exeext; then
19777 eval "$as_ac_var=yes"
19779 echo "$as_me: failed program was:" >&5
19780 sed 's/^/| /' conftest.
$ac_ext >&5
19782 eval "$as_ac_var=no"
19785 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19786 conftest
$ac_exeext conftest.
$ac_ext
19788 ac_res
=`eval echo '${'$as_ac_var'}'`
19789 { echo "$as_me:$LINENO: result: $ac_res" >&5
19790 echo "${ECHO_T}$ac_res" >&6; }
19791 if test `eval echo '${'$as_ac_var'}'` = yes; then
19792 cat >>confdefs.h
<<_ACEOF
19793 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19800 # check for long file support functions
19807 for ac_func
in fseek64 fseeko fstatvfs ftell64 ftello statvfs
19809 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19810 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19811 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19812 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19813 echo $ECHO_N "(cached) $ECHO_C" >&6
19815 cat >conftest.
$ac_ext <<_ACEOF
19818 cat confdefs.h
>>conftest.
$ac_ext
19819 cat >>conftest.
$ac_ext <<_ACEOF
19820 /* end confdefs.h. */
19821 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19822 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19823 #define $ac_func innocuous_$ac_func
19825 /* System header to define __stub macros and hopefully few prototypes,
19826 which can conflict with char $ac_func (); below.
19827 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19828 <limits.h> exists even on freestanding compilers. */
19831 # include <limits.h>
19833 # include <assert.h>
19838 /* Override any GCC internal prototype to avoid an error.
19839 Use char because int might match the return type of a GCC
19840 builtin and then its argument prototype would still apply. */
19845 /* The GNU C library defines this for functions which it implements
19846 to always fail with ENOSYS. Some functions are actually named
19847 something starting with __ and the normal name is an alias. */
19848 #if defined __stub_$ac_func || defined __stub___$ac_func
19855 return $ac_func ();
19860 rm -f conftest.
$ac_objext conftest
$ac_exeext
19861 if { (ac_try
="$ac_link"
19862 case "(($ac_try" in
19863 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19864 *) ac_try_echo=$ac_try;;
19866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19867 (eval "$ac_link") 2>conftest.er1
19869 grep -v '^ *+' conftest.er1 >conftest.err
19871 cat conftest.err >&5
19872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873 (exit $ac_status); } && {
19874 test -z "$ac_c_werror_flag" ||
19875 test ! -s conftest.err
19876 } && test -s conftest$ac_exeext &&
19877 $as_test_x conftest$ac_exeext; then
19878 eval "$as_ac_var=yes"
19880 echo "$as_me: failed program was:" >&5
19881 sed 's/^/| /' conftest.$ac_ext >&5
19883 eval "$as_ac_var=no"
19886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19887 conftest$ac_exeext conftest.$ac_ext
19889 ac_res=`eval echo '${'$as_ac_var'}'`
19890 { echo "$as_me:$LINENO: result: $ac_res" >&5
19891 echo "${ECHO_T}$ac_res" >&6; }
19892 if test `eval echo '${'$as_ac_var'}'` = yes; then
19893 cat >>confdefs.h <<_ACEOF
19894 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
19904 for ac_func in dup2 getcwd strdup
19906 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
19907 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19908 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19909 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19910 echo $ECHO_N "(cached) $ECHO_C" >&6
19912 cat >conftest.$ac_ext <<_ACEOF
19915 cat confdefs.h >>conftest.$ac_ext
19916 cat >>conftest.$ac_ext <<_ACEOF
19917 /* end confdefs.h. */
19918 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19919 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19920 #define $ac_func innocuous_$ac_func
19922 /* System header to define __stub macros and hopefully few prototypes,
19923 which can conflict with char $ac_func (); below.
19924 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19925 <limits.h> exists even on freestanding compilers. */
19928 # include <limits.h>
19930 # include <assert.h>
19935 /* Override any GCC internal prototype to avoid an error.
19936 Use char because int might match the return type of a GCC
19937 builtin and then its argument prototype would still apply. */
19942 /* The GNU C library defines this for functions which it implements
19943 to always fail with ENOSYS. Some functions are actually named
19944 something starting with __ and the normal name is an alias. */
19945 #if defined __stub_$ac_func || defined __stub___$ac_func
19952 return $ac_func ();
19957 rm -f conftest.$ac_objext conftest$ac_exeext
19958 if { (ac_try="$ac_link"
19959 case "(($ac_try" in
19960 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19961 *) ac_try_echo
=$ac_try;;
19963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19964 (eval "$ac_link") 2>conftest.er1
19966 grep -v '^ *+' conftest.er1
>conftest.err
19968 cat conftest.err
>&5
19969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970 (exit $ac_status); } && {
19971 test -z "$ac_c_werror_flag" ||
19972 test ! -s conftest.err
19973 } && test -s conftest
$ac_exeext &&
19974 $as_test_x conftest
$ac_exeext; then
19975 eval "$as_ac_var=yes"
19977 echo "$as_me: failed program was:" >&5
19978 sed 's/^/| /' conftest.
$ac_ext >&5
19980 eval "$as_ac_var=no"
19983 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19984 conftest
$ac_exeext conftest.
$ac_ext
19986 ac_res
=`eval echo '${'$as_ac_var'}'`
19987 { echo "$as_me:$LINENO: result: $ac_res" >&5
19988 echo "${ECHO_T}$ac_res" >&6; }
19989 if test `eval echo '${'$as_ac_var'}'` = yes; then
19990 cat >>confdefs.h
<<_ACEOF
19991 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19995 case " $LIBOBJS " in
19996 *" $ac_func.$ac_objext "* ) ;;
19997 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
20006 for ac_func
in getpgrp
20008 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20009 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20010 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20011 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20012 echo $ECHO_N "(cached) $ECHO_C" >&6
20014 cat >conftest.
$ac_ext <<_ACEOF
20017 cat confdefs.h
>>conftest.
$ac_ext
20018 cat >>conftest.
$ac_ext <<_ACEOF
20019 /* end confdefs.h. */
20020 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20021 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20022 #define $ac_func innocuous_$ac_func
20024 /* System header to define __stub macros and hopefully few prototypes,
20025 which can conflict with char $ac_func (); below.
20026 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20027 <limits.h> exists even on freestanding compilers. */
20030 # include <limits.h>
20032 # include <assert.h>
20037 /* Override any GCC internal prototype to avoid an error.
20038 Use char because int might match the return type of a GCC
20039 builtin and then its argument prototype would still apply. */
20044 /* The GNU C library defines this for functions which it implements
20045 to always fail with ENOSYS. Some functions are actually named
20046 something starting with __ and the normal name is an alias. */
20047 #if defined __stub_$ac_func || defined __stub___$ac_func
20054 return $ac_func ();
20059 rm -f conftest.
$ac_objext conftest
$ac_exeext
20060 if { (ac_try
="$ac_link"
20061 case "(($ac_try" in
20062 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20063 *) ac_try_echo=$ac_try;;
20065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20066 (eval "$ac_link") 2>conftest.er1
20068 grep -v '^ *+' conftest.er1 >conftest.err
20070 cat conftest.err >&5
20071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20072 (exit $ac_status); } && {
20073 test -z "$ac_c_werror_flag" ||
20074 test ! -s conftest.err
20075 } && test -s conftest$ac_exeext &&
20076 $as_test_x conftest$ac_exeext; then
20077 eval "$as_ac_var=yes"
20079 echo "$as_me: failed program was:" >&5
20080 sed 's/^/| /' conftest.$ac_ext >&5
20082 eval "$as_ac_var=no"
20085 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20086 conftest$ac_exeext conftest.$ac_ext
20088 ac_res=`eval echo '${'$as_ac_var'}'`
20089 { echo "$as_me:$LINENO: result: $ac_res" >&5
20090 echo "${ECHO_T}$ac_res" >&6; }
20091 if test `eval echo '${'$as_ac_var'}'` = yes; then
20092 cat >>confdefs.h <<_ACEOF
20093 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
20095 cat >conftest.$ac_ext <<_ACEOF
20098 cat confdefs.h >>conftest.$ac_ext
20099 cat >>conftest.$ac_ext <<_ACEOF
20100 /* end confdefs.h. */
20101 #include <unistd.h>
20110 rm -f conftest.$ac_objext
20111 if { (ac_try="$ac_compile"
20112 case "(($ac_try" in
20113 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20114 *) ac_try_echo
=$ac_try;;
20116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20117 (eval "$ac_compile") 2>conftest.er1
20119 grep -v '^ *+' conftest.er1
>conftest.err
20121 cat conftest.err
>&5
20122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20123 (exit $ac_status); } && {
20124 test -z "$ac_c_werror_flag" ||
20125 test ! -s conftest.err
20126 } && test -s conftest.
$ac_objext; then
20128 cat >>confdefs.h
<<\_ACEOF
20129 #define GETPGRP_HAVE_ARG 1
20134 echo "$as_me: failed program was:" >&5
20135 sed 's/^/| /' conftest.
$ac_ext >&5
20140 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20146 for ac_func
in setpgrp
20148 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20149 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20150 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20151 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20152 echo $ECHO_N "(cached) $ECHO_C" >&6
20154 cat >conftest.
$ac_ext <<_ACEOF
20157 cat confdefs.h
>>conftest.
$ac_ext
20158 cat >>conftest.
$ac_ext <<_ACEOF
20159 /* end confdefs.h. */
20160 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20161 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20162 #define $ac_func innocuous_$ac_func
20164 /* System header to define __stub macros and hopefully few prototypes,
20165 which can conflict with char $ac_func (); below.
20166 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20167 <limits.h> exists even on freestanding compilers. */
20170 # include <limits.h>
20172 # include <assert.h>
20177 /* Override any GCC internal prototype to avoid an error.
20178 Use char because int might match the return type of a GCC
20179 builtin and then its argument prototype would still apply. */
20184 /* The GNU C library defines this for functions which it implements
20185 to always fail with ENOSYS. Some functions are actually named
20186 something starting with __ and the normal name is an alias. */
20187 #if defined __stub_$ac_func || defined __stub___$ac_func
20194 return $ac_func ();
20199 rm -f conftest.
$ac_objext conftest
$ac_exeext
20200 if { (ac_try
="$ac_link"
20201 case "(($ac_try" in
20202 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20203 *) ac_try_echo=$ac_try;;
20205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20206 (eval "$ac_link") 2>conftest.er1
20208 grep -v '^ *+' conftest.er1 >conftest.err
20210 cat conftest.err >&5
20211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212 (exit $ac_status); } && {
20213 test -z "$ac_c_werror_flag" ||
20214 test ! -s conftest.err
20215 } && test -s conftest$ac_exeext &&
20216 $as_test_x conftest$ac_exeext; then
20217 eval "$as_ac_var=yes"
20219 echo "$as_me: failed program was:" >&5
20220 sed 's/^/| /' conftest.$ac_ext >&5
20222 eval "$as_ac_var=no"
20225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20226 conftest$ac_exeext conftest.$ac_ext
20228 ac_res=`eval echo '${'$as_ac_var'}'`
20229 { echo "$as_me:$LINENO: result: $ac_res" >&5
20230 echo "${ECHO_T}$ac_res" >&6; }
20231 if test `eval echo '${'$as_ac_var'}'` = yes; then
20232 cat >>confdefs.h <<_ACEOF
20233 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
20235 cat >conftest.$ac_ext <<_ACEOF
20238 cat confdefs.h >>conftest.$ac_ext
20239 cat >>conftest.$ac_ext <<_ACEOF
20240 /* end confdefs.h. */
20241 #include <unistd.h>
20250 rm -f conftest.$ac_objext
20251 if { (ac_try="$ac_compile"
20252 case "(($ac_try" in
20253 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20254 *) ac_try_echo
=$ac_try;;
20256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20257 (eval "$ac_compile") 2>conftest.er1
20259 grep -v '^ *+' conftest.er1
>conftest.err
20261 cat conftest.err
>&5
20262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20263 (exit $ac_status); } && {
20264 test -z "$ac_c_werror_flag" ||
20265 test ! -s conftest.err
20266 } && test -s conftest.
$ac_objext; then
20268 cat >>confdefs.h
<<\_ACEOF
20269 #define SETPGRP_HAVE_ARG 1
20274 echo "$as_me: failed program was:" >&5
20275 sed 's/^/| /' conftest.
$ac_ext >&5
20280 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20286 for ac_func
in gettimeofday
20288 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20289 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20290 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20291 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20292 echo $ECHO_N "(cached) $ECHO_C" >&6
20294 cat >conftest.
$ac_ext <<_ACEOF
20297 cat confdefs.h
>>conftest.
$ac_ext
20298 cat >>conftest.
$ac_ext <<_ACEOF
20299 /* end confdefs.h. */
20300 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20301 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20302 #define $ac_func innocuous_$ac_func
20304 /* System header to define __stub macros and hopefully few prototypes,
20305 which can conflict with char $ac_func (); below.
20306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20307 <limits.h> exists even on freestanding compilers. */
20310 # include <limits.h>
20312 # include <assert.h>
20317 /* Override any GCC internal prototype to avoid an error.
20318 Use char because int might match the return type of a GCC
20319 builtin and then its argument prototype would still apply. */
20324 /* The GNU C library defines this for functions which it implements
20325 to always fail with ENOSYS. Some functions are actually named
20326 something starting with __ and the normal name is an alias. */
20327 #if defined __stub_$ac_func || defined __stub___$ac_func
20334 return $ac_func ();
20339 rm -f conftest.
$ac_objext conftest
$ac_exeext
20340 if { (ac_try
="$ac_link"
20341 case "(($ac_try" in
20342 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20343 *) ac_try_echo=$ac_try;;
20345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20346 (eval "$ac_link") 2>conftest.er1
20348 grep -v '^ *+' conftest.er1 >conftest.err
20350 cat conftest.err >&5
20351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20352 (exit $ac_status); } && {
20353 test -z "$ac_c_werror_flag" ||
20354 test ! -s conftest.err
20355 } && test -s conftest$ac_exeext &&
20356 $as_test_x conftest$ac_exeext; then
20357 eval "$as_ac_var=yes"
20359 echo "$as_me: failed program was:" >&5
20360 sed 's/^/| /' conftest.$ac_ext >&5
20362 eval "$as_ac_var=no"
20365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20366 conftest$ac_exeext conftest.$ac_ext
20368 ac_res=`eval echo '${'$as_ac_var'}'`
20369 { echo "$as_me:$LINENO: result: $ac_res" >&5
20370 echo "${ECHO_T}$ac_res" >&6; }
20371 if test `eval echo '${'$as_ac_var'}'` = yes; then
20372 cat >>confdefs.h <<_ACEOF
20373 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
20375 cat >conftest.$ac_ext <<_ACEOF
20378 cat confdefs.h >>conftest.$ac_ext
20379 cat >>conftest.$ac_ext <<_ACEOF
20380 /* end confdefs.h. */
20381 #include <sys/time.h>
20385 gettimeofday((struct timeval*)0,(struct timezone*)0);
20390 rm -f conftest.$ac_objext
20391 if { (ac_try="$ac_compile"
20392 case "(($ac_try" in
20393 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20394 *) ac_try_echo
=$ac_try;;
20396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20397 (eval "$ac_compile") 2>conftest.er1
20399 grep -v '^ *+' conftest.er1
>conftest.err
20401 cat conftest.err
>&5
20402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403 (exit $ac_status); } && {
20404 test -z "$ac_c_werror_flag" ||
20405 test ! -s conftest.err
20406 } && test -s conftest.
$ac_objext; then
20409 echo "$as_me: failed program was:" >&5
20410 sed 's/^/| /' conftest.
$ac_ext >&5
20413 cat >>confdefs.h
<<\_ACEOF
20414 #define GETTIMEOFDAY_NO_TZ 1
20420 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20426 { echo "$as_me:$LINENO: checking for major" >&5
20427 echo $ECHO_N "checking for major... $ECHO_C" >&6; }
20428 cat >conftest.
$ac_ext <<_ACEOF
20431 cat confdefs.h
>>conftest.
$ac_ext
20432 cat >>conftest.
$ac_ext <<_ACEOF
20433 /* end confdefs.h. */
20435 #if defined(MAJOR_IN_MKDEV)
20436 #include <sys/mkdev.h>
20437 #elif defined(MAJOR_IN_SYSMACROS)
20438 #include <sys/sysmacros.h>
20440 #include <sys/types.h>
20447 makedev(major(0),minor(0));
20453 rm -f conftest.
$ac_objext conftest
$ac_exeext
20454 if { (ac_try
="$ac_link"
20455 case "(($ac_try" in
20456 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20457 *) ac_try_echo=$ac_try;;
20459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20460 (eval "$ac_link") 2>conftest.er1
20462 grep -v '^ *+' conftest.er1 >conftest.err
20464 cat conftest.err >&5
20465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20466 (exit $ac_status); } && {
20467 test -z "$ac_c_werror_flag" ||
20468 test ! -s conftest.err
20469 } && test -s conftest$ac_exeext &&
20470 $as_test_x conftest$ac_exeext; then
20473 cat >>confdefs.h <<\_ACEOF
20474 #define HAVE_DEVICE_MACROS 1
20477 { echo "$as_me:$LINENO: result: yes" >&5
20478 echo "${ECHO_T}yes" >&6; }
20481 echo "$as_me: failed program was:" >&5
20482 sed 's/^/| /' conftest.$ac_ext >&5
20485 { echo "$as_me:$LINENO: result: no" >&5
20486 echo "${ECHO_T}no" >&6; }
20490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20491 conftest$ac_exeext conftest.$ac_ext
20493 # On OSF/1 V5.1, getaddrinfo is available, but a define
20494 # for [no]getaddrinfo in netdb.h.
20495 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
20496 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
20497 cat >conftest.$ac_ext <<_ACEOF
20500 cat confdefs.h >>conftest.$ac_ext
20501 cat >>conftest.$ac_ext <<_ACEOF
20502 /* end confdefs.h. */
20504 #include <sys/types.h>
20505 #include <sys/socket.h>
20512 getaddrinfo(NULL, NULL, NULL, NULL);
20517 rm -f conftest.$ac_objext conftest$ac_exeext
20518 if { (ac_try="$ac_link"
20519 case "(($ac_try" in
20520 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20521 *) ac_try_echo
=$ac_try;;
20523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20524 (eval "$ac_link") 2>conftest.er1
20526 grep -v '^ *+' conftest.er1
>conftest.err
20528 cat conftest.err
>&5
20529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20530 (exit $ac_status); } && {
20531 test -z "$ac_c_werror_flag" ||
20532 test ! -s conftest.err
20533 } && test -s conftest
$ac_exeext &&
20534 $as_test_x conftest
$ac_exeext; then
20535 have_getaddrinfo
=yes
20537 echo "$as_me: failed program was:" >&5
20538 sed 's/^/| /' conftest.
$ac_ext >&5
20540 have_getaddrinfo
=no
20543 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20544 conftest
$ac_exeext conftest.
$ac_ext
20545 { echo "$as_me:$LINENO: result: $have_getaddrinfo" >&5
20546 echo "${ECHO_T}$have_getaddrinfo" >&6; }
20547 if test $have_getaddrinfo = yes
20549 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
20550 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
20551 if test "${ac_cv_buggy_getaddrinfo+set}" = set; then
20552 echo $ECHO_N "(cached) $ECHO_C" >&6
20554 if test "$cross_compiling" = yes; then
20555 ac_cv_buggy_getaddrinfo
=yes
20557 cat >conftest.
$ac_ext <<_ACEOF
20560 cat confdefs.h
>>conftest.
$ac_ext
20561 cat >>conftest.
$ac_ext <<_ACEOF
20562 /* end confdefs.h. */
20564 #include <sys/types.h>
20566 #include <string.h>
20567 #include <sys/socket.h>
20568 #include <netinet/in.h>
20572 int passive, gaierr, inet4 = 0, inet6 = 0;
20573 struct addrinfo hints, *ai, *aitop;
20574 char straddr[INET6_ADDRSTRLEN], strport[16];
20576 for (passive = 0; passive <= 1; passive++) {
20577 memset(&hints, 0, sizeof(hints));
20578 hints.ai_family = AF_UNSPEC;
20579 hints.ai_flags = passive ? AI_PASSIVE : 0;
20580 hints.ai_socktype = SOCK_STREAM;
20581 hints.ai_protocol = IPPROTO_TCP;
20582 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
20583 (void)gai_strerror(gaierr);
20586 for (ai = aitop; ai; ai = ai->ai_next) {
20587 if (ai->ai_addr == NULL ||
20588 ai->ai_addrlen == 0 ||
20589 getnameinfo(ai->ai_addr, ai->ai_addrlen,
20590 straddr, sizeof(straddr), strport, sizeof(strport),
20591 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
20594 switch (ai->ai_family) {
20596 if (strcmp(strport, "54321") != 0) {
20600 if (strcmp(straddr, "0.0.0.0") != 0) {
20604 if (strcmp(straddr, "127.0.0.1") != 0) {
20611 if (strcmp(strport, "54321") != 0) {
20615 if (strcmp(straddr, "::") != 0) {
20619 if (strcmp(straddr, "::1") != 0) {
20629 /* another family support? */
20635 if (!(inet4 == 0 || inet4 == 2))
20637 if (!(inet6 == 0 || inet6 == 2))
20641 freeaddrinfo(aitop);
20646 freeaddrinfo(aitop);
20651 rm -f conftest
$ac_exeext
20652 if { (ac_try
="$ac_link"
20653 case "(($ac_try" in
20654 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20655 *) ac_try_echo=$ac_try;;
20657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20658 (eval "$ac_link") 2>&5
20660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20661 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20662 { (case "(($ac_try" in
20663 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20664 *) ac_try_echo
=$ac_try;;
20666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20667 (eval "$ac_try") 2>&5
20669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20670 (exit $ac_status); }; }; then
20671 ac_cv_buggy_getaddrinfo
=no
20673 echo "$as_me: program exited with status $ac_status" >&5
20674 echo "$as_me: failed program was:" >&5
20675 sed 's/^/| /' conftest.
$ac_ext >&5
20677 ( exit $ac_status )
20678 ac_cv_buggy_getaddrinfo
=yes
20680 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20688 if test $have_getaddrinfo = no
-o $ac_cv_buggy_getaddrinfo = yes
20690 if test $ipv6 = yes
20692 echo 'Fatal: You must get working getaddrinfo() function.'
20693 echo ' or you can specify "--disable-ipv6"'.
20698 cat >>confdefs.h
<<\_ACEOF
20699 #define HAVE_GETADDRINFO 1
20704 for ac_func
in getnameinfo
20706 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20707 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20708 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20709 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20710 echo $ECHO_N "(cached) $ECHO_C" >&6
20712 cat >conftest.
$ac_ext <<_ACEOF
20715 cat confdefs.h
>>conftest.
$ac_ext
20716 cat >>conftest.
$ac_ext <<_ACEOF
20717 /* end confdefs.h. */
20718 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20720 #define $ac_func innocuous_$ac_func
20722 /* System header to define __stub macros and hopefully few prototypes,
20723 which can conflict with char $ac_func (); below.
20724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20725 <limits.h> exists even on freestanding compilers. */
20728 # include <limits.h>
20730 # include <assert.h>
20735 /* Override any GCC internal prototype to avoid an error.
20736 Use char because int might match the return type of a GCC
20737 builtin and then its argument prototype would still apply. */
20742 /* The GNU C library defines this for functions which it implements
20743 to always fail with ENOSYS. Some functions are actually named
20744 something starting with __ and the normal name is an alias. */
20745 #if defined __stub_$ac_func || defined __stub___$ac_func
20752 return $ac_func ();
20757 rm -f conftest.
$ac_objext conftest
$ac_exeext
20758 if { (ac_try
="$ac_link"
20759 case "(($ac_try" in
20760 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20761 *) ac_try_echo=$ac_try;;
20763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20764 (eval "$ac_link") 2>conftest.er1
20766 grep -v '^ *+' conftest.er1 >conftest.err
20768 cat conftest.err >&5
20769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20770 (exit $ac_status); } && {
20771 test -z "$ac_c_werror_flag" ||
20772 test ! -s conftest.err
20773 } && test -s conftest$ac_exeext &&
20774 $as_test_x conftest$ac_exeext; then
20775 eval "$as_ac_var=yes"
20777 echo "$as_me: failed program was:" >&5
20778 sed 's/^/| /' conftest.$ac_ext >&5
20780 eval "$as_ac_var=no"
20783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20784 conftest$ac_exeext conftest.$ac_ext
20786 ac_res=`eval echo '${'$as_ac_var'}'`
20787 { echo "$as_me:$LINENO: result: $ac_res" >&5
20788 echo "${ECHO_T}$ac_res" >&6; }
20789 if test `eval echo '${'$as_ac_var'}'` = yes; then
20790 cat >>confdefs.h <<_ACEOF
20791 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
20798 # checks for structures
20799 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20800 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
20801 if test "${ac_cv_header_time+set}" = set; then
20802 echo $ECHO_N "(cached) $ECHO_C" >&6
20804 cat >conftest.$ac_ext <<_ACEOF
20807 cat confdefs.h >>conftest.$ac_ext
20808 cat >>conftest.$ac_ext <<_ACEOF
20809 /* end confdefs.h. */
20810 #include <sys/types.h>
20811 #include <sys/time.h>
20817 if ((struct tm *) 0)
20823 rm -f conftest.$ac_objext
20824 if { (ac_try="$ac_compile"
20825 case "(($ac_try" in
20826 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20827 *) ac_try_echo
=$ac_try;;
20829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20830 (eval "$ac_compile") 2>conftest.er1
20832 grep -v '^ *+' conftest.er1
>conftest.err
20834 cat conftest.err
>&5
20835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20836 (exit $ac_status); } && {
20837 test -z "$ac_c_werror_flag" ||
20838 test ! -s conftest.err
20839 } && test -s conftest.
$ac_objext; then
20840 ac_cv_header_time
=yes
20842 echo "$as_me: failed program was:" >&5
20843 sed 's/^/| /' conftest.
$ac_ext >&5
20845 ac_cv_header_time
=no
20848 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20850 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20851 echo "${ECHO_T}$ac_cv_header_time" >&6; }
20852 if test $ac_cv_header_time = yes; then
20854 cat >>confdefs.h
<<\_ACEOF
20855 #define TIME_WITH_SYS_TIME 1
20860 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20861 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
20862 if test "${ac_cv_struct_tm+set}" = set; then
20863 echo $ECHO_N "(cached) $ECHO_C" >&6
20865 cat >conftest.
$ac_ext <<_ACEOF
20868 cat confdefs.h
>>conftest.
$ac_ext
20869 cat >>conftest.
$ac_ext <<_ACEOF
20870 /* end confdefs.h. */
20871 #include <sys/types.h>
20878 int *p = &tm.tm_sec;
20884 rm -f conftest.
$ac_objext
20885 if { (ac_try
="$ac_compile"
20886 case "(($ac_try" in
20887 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20888 *) ac_try_echo=$ac_try;;
20890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20891 (eval "$ac_compile") 2>conftest.er1
20893 grep -v '^ *+' conftest.er1 >conftest.err
20895 cat conftest.err >&5
20896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20897 (exit $ac_status); } && {
20898 test -z "$ac_c_werror_flag" ||
20899 test ! -s conftest.err
20900 } && test -s conftest.$ac_objext; then
20901 ac_cv_struct_tm=time.h
20903 echo "$as_me: failed program was:" >&5
20904 sed 's/^/| /' conftest.$ac_ext >&5
20906 ac_cv_struct_tm=sys/time.h
20909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20911 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20912 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
20913 if test $ac_cv_struct_tm = sys/time.h; then
20915 cat >>confdefs.h <<\_ACEOF
20916 #define TM_IN_SYS_TIME 1
20921 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20922 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
20923 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20924 echo $ECHO_N "(cached) $ECHO_C" >&6
20926 cat >conftest.$ac_ext <<_ACEOF
20929 cat confdefs.h >>conftest.$ac_ext
20930 cat >>conftest.$ac_ext <<_ACEOF
20931 /* end confdefs.h. */
20932 #include <sys/types.h>
20933 #include <$ac_cv_struct_tm>
20939 static struct tm ac_aggr;
20940 if (ac_aggr.tm_zone)
20946 rm -f conftest.$ac_objext
20947 if { (ac_try="$ac_compile"
20948 case "(($ac_try" in
20949 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20950 *) ac_try_echo
=$ac_try;;
20952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20953 (eval "$ac_compile") 2>conftest.er1
20955 grep -v '^ *+' conftest.er1
>conftest.err
20957 cat conftest.err
>&5
20958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20959 (exit $ac_status); } && {
20960 test -z "$ac_c_werror_flag" ||
20961 test ! -s conftest.err
20962 } && test -s conftest.
$ac_objext; then
20963 ac_cv_member_struct_tm_tm_zone
=yes
20965 echo "$as_me: failed program was:" >&5
20966 sed 's/^/| /' conftest.
$ac_ext >&5
20968 cat >conftest.
$ac_ext <<_ACEOF
20971 cat confdefs.h
>>conftest.
$ac_ext
20972 cat >>conftest.
$ac_ext <<_ACEOF
20973 /* end confdefs.h. */
20974 #include <sys/types.h>
20975 #include <$ac_cv_struct_tm>
20981 static struct tm ac_aggr;
20982 if (sizeof ac_aggr.tm_zone)
20988 rm -f conftest.
$ac_objext
20989 if { (ac_try
="$ac_compile"
20990 case "(($ac_try" in
20991 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20992 *) ac_try_echo=$ac_try;;
20994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20995 (eval "$ac_compile") 2>conftest.er1
20997 grep -v '^ *+' conftest.er1 >conftest.err
20999 cat conftest.err >&5
21000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21001 (exit $ac_status); } && {
21002 test -z "$ac_c_werror_flag" ||
21003 test ! -s conftest.err
21004 } && test -s conftest.$ac_objext; then
21005 ac_cv_member_struct_tm_tm_zone=yes
21007 echo "$as_me: failed program was:" >&5
21008 sed 's/^/| /' conftest.$ac_ext >&5
21010 ac_cv_member_struct_tm_tm_zone=no
21013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21018 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21019 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
21020 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21022 cat >>confdefs.h <<_ACEOF
21023 #define HAVE_STRUCT_TM_TM_ZONE 1
21029 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21031 cat >>confdefs.h <<\_ACEOF
21032 #define HAVE_TM_ZONE 1
21036 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
21037 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
21038 if test "${ac_cv_have_decl_tzname+set}" = set; then
21039 echo $ECHO_N "(cached) $ECHO_C" >&6
21041 cat >conftest.$ac_ext <<_ACEOF
21044 cat confdefs.h >>conftest.$ac_ext
21045 cat >>conftest.$ac_ext <<_ACEOF
21046 /* end confdefs.h. */
21060 rm -f conftest.$ac_objext
21061 if { (ac_try="$ac_compile"
21062 case "(($ac_try" in
21063 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21064 *) ac_try_echo
=$ac_try;;
21066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21067 (eval "$ac_compile") 2>conftest.er1
21069 grep -v '^ *+' conftest.er1
>conftest.err
21071 cat conftest.err
>&5
21072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21073 (exit $ac_status); } && {
21074 test -z "$ac_c_werror_flag" ||
21075 test ! -s conftest.err
21076 } && test -s conftest.
$ac_objext; then
21077 ac_cv_have_decl_tzname
=yes
21079 echo "$as_me: failed program was:" >&5
21080 sed 's/^/| /' conftest.
$ac_ext >&5
21082 ac_cv_have_decl_tzname
=no
21085 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21087 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
21088 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
21089 if test $ac_cv_have_decl_tzname = yes; then
21091 cat >>confdefs.h
<<_ACEOF
21092 #define HAVE_DECL_TZNAME 1
21097 cat >>confdefs.h
<<_ACEOF
21098 #define HAVE_DECL_TZNAME 0
21105 { echo "$as_me:$LINENO: checking for tzname" >&5
21106 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
21107 if test "${ac_cv_var_tzname+set}" = set; then
21108 echo $ECHO_N "(cached) $ECHO_C" >&6
21110 cat >conftest.
$ac_ext <<_ACEOF
21113 cat confdefs.h
>>conftest.
$ac_ext
21114 cat >>conftest.
$ac_ext <<_ACEOF
21115 /* end confdefs.h. */
21117 #if !HAVE_DECL_TZNAME
21118 extern char *tzname[];
21124 return tzname[0][0];
21129 rm -f conftest.
$ac_objext conftest
$ac_exeext
21130 if { (ac_try
="$ac_link"
21131 case "(($ac_try" in
21132 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21133 *) ac_try_echo=$ac_try;;
21135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21136 (eval "$ac_link") 2>conftest.er1
21138 grep -v '^ *+' conftest.er1 >conftest.err
21140 cat conftest.err >&5
21141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21142 (exit $ac_status); } && {
21143 test -z "$ac_c_werror_flag" ||
21144 test ! -s conftest.err
21145 } && test -s conftest$ac_exeext &&
21146 $as_test_x conftest$ac_exeext; then
21147 ac_cv_var_tzname=yes
21149 echo "$as_me: failed program was:" >&5
21150 sed 's/^/| /' conftest.$ac_ext >&5
21152 ac_cv_var_tzname=no
21155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21156 conftest$ac_exeext conftest.$ac_ext
21158 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21159 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
21160 if test $ac_cv_var_tzname = yes; then
21162 cat >>confdefs.h <<\_ACEOF
21163 #define HAVE_TZNAME 1
21169 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
21170 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
21171 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
21172 echo $ECHO_N "(cached) $ECHO_C" >&6
21174 cat >conftest.$ac_ext <<_ACEOF
21177 cat confdefs.h >>conftest.$ac_ext
21178 cat >>conftest.$ac_ext <<_ACEOF
21179 /* end confdefs.h. */
21180 $ac_includes_default
21184 static struct stat ac_aggr;
21185 if (ac_aggr.st_rdev)
21191 rm -f conftest.$ac_objext
21192 if { (ac_try="$ac_compile"
21193 case "(($ac_try" in
21194 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21195 *) ac_try_echo
=$ac_try;;
21197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21198 (eval "$ac_compile") 2>conftest.er1
21200 grep -v '^ *+' conftest.er1
>conftest.err
21202 cat conftest.err
>&5
21203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21204 (exit $ac_status); } && {
21205 test -z "$ac_c_werror_flag" ||
21206 test ! -s conftest.err
21207 } && test -s conftest.
$ac_objext; then
21208 ac_cv_member_struct_stat_st_rdev
=yes
21210 echo "$as_me: failed program was:" >&5
21211 sed 's/^/| /' conftest.
$ac_ext >&5
21213 cat >conftest.
$ac_ext <<_ACEOF
21216 cat confdefs.h
>>conftest.
$ac_ext
21217 cat >>conftest.
$ac_ext <<_ACEOF
21218 /* end confdefs.h. */
21219 $ac_includes_default
21223 static struct stat ac_aggr;
21224 if (sizeof ac_aggr.st_rdev)
21230 rm -f conftest.
$ac_objext
21231 if { (ac_try
="$ac_compile"
21232 case "(($ac_try" in
21233 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21234 *) ac_try_echo=$ac_try;;
21236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21237 (eval "$ac_compile") 2>conftest.er1
21239 grep -v '^ *+' conftest.er1 >conftest.err
21241 cat conftest.err >&5
21242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21243 (exit $ac_status); } && {
21244 test -z "$ac_c_werror_flag" ||
21245 test ! -s conftest.err
21246 } && test -s conftest.$ac_objext; then
21247 ac_cv_member_struct_stat_st_rdev=yes
21249 echo "$as_me: failed program was:" >&5
21250 sed 's/^/| /' conftest.$ac_ext >&5
21252 ac_cv_member_struct_stat_st_rdev=no
21255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21260 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
21261 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
21262 if test $ac_cv_member_struct_stat_st_rdev = yes; then
21264 cat >>confdefs.h <<_ACEOF
21265 #define HAVE_STRUCT_STAT_ST_RDEV 1
21271 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
21272 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
21273 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
21274 echo $ECHO_N "(cached) $ECHO_C" >&6
21276 cat >conftest.$ac_ext <<_ACEOF
21279 cat confdefs.h >>conftest.$ac_ext
21280 cat >>conftest.$ac_ext <<_ACEOF
21281 /* end confdefs.h. */
21282 $ac_includes_default
21286 static struct stat ac_aggr;
21287 if (ac_aggr.st_blksize)
21293 rm -f conftest.$ac_objext
21294 if { (ac_try="$ac_compile"
21295 case "(($ac_try" in
21296 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21297 *) ac_try_echo
=$ac_try;;
21299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21300 (eval "$ac_compile") 2>conftest.er1
21302 grep -v '^ *+' conftest.er1
>conftest.err
21304 cat conftest.err
>&5
21305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21306 (exit $ac_status); } && {
21307 test -z "$ac_c_werror_flag" ||
21308 test ! -s conftest.err
21309 } && test -s conftest.
$ac_objext; then
21310 ac_cv_member_struct_stat_st_blksize
=yes
21312 echo "$as_me: failed program was:" >&5
21313 sed 's/^/| /' conftest.
$ac_ext >&5
21315 cat >conftest.
$ac_ext <<_ACEOF
21318 cat confdefs.h
>>conftest.
$ac_ext
21319 cat >>conftest.
$ac_ext <<_ACEOF
21320 /* end confdefs.h. */
21321 $ac_includes_default
21325 static struct stat ac_aggr;
21326 if (sizeof ac_aggr.st_blksize)
21332 rm -f conftest.
$ac_objext
21333 if { (ac_try
="$ac_compile"
21334 case "(($ac_try" in
21335 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21336 *) ac_try_echo=$ac_try;;
21338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21339 (eval "$ac_compile") 2>conftest.er1
21341 grep -v '^ *+' conftest.er1 >conftest.err
21343 cat conftest.err >&5
21344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21345 (exit $ac_status); } && {
21346 test -z "$ac_c_werror_flag" ||
21347 test ! -s conftest.err
21348 } && test -s conftest.$ac_objext; then
21349 ac_cv_member_struct_stat_st_blksize=yes
21351 echo "$as_me: failed program was:" >&5
21352 sed 's/^/| /' conftest.$ac_ext >&5
21354 ac_cv_member_struct_stat_st_blksize=no
21357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21362 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
21363 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
21364 if test $ac_cv_member_struct_stat_st_blksize = yes; then
21366 cat >>confdefs.h <<_ACEOF
21367 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
21373 { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
21374 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
21375 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
21376 echo $ECHO_N "(cached) $ECHO_C" >&6
21378 cat >conftest.$ac_ext <<_ACEOF
21381 cat confdefs.h >>conftest.$ac_ext
21382 cat >>conftest.$ac_ext <<_ACEOF
21383 /* end confdefs.h. */
21384 $ac_includes_default
21388 static struct stat ac_aggr;
21389 if (ac_aggr.st_flags)
21395 rm -f conftest.$ac_objext
21396 if { (ac_try="$ac_compile"
21397 case "(($ac_try" in
21398 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21399 *) ac_try_echo
=$ac_try;;
21401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21402 (eval "$ac_compile") 2>conftest.er1
21404 grep -v '^ *+' conftest.er1
>conftest.err
21406 cat conftest.err
>&5
21407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21408 (exit $ac_status); } && {
21409 test -z "$ac_c_werror_flag" ||
21410 test ! -s conftest.err
21411 } && test -s conftest.
$ac_objext; then
21412 ac_cv_member_struct_stat_st_flags
=yes
21414 echo "$as_me: failed program was:" >&5
21415 sed 's/^/| /' conftest.
$ac_ext >&5
21417 cat >conftest.
$ac_ext <<_ACEOF
21420 cat confdefs.h
>>conftest.
$ac_ext
21421 cat >>conftest.
$ac_ext <<_ACEOF
21422 /* end confdefs.h. */
21423 $ac_includes_default
21427 static struct stat ac_aggr;
21428 if (sizeof ac_aggr.st_flags)
21434 rm -f conftest.
$ac_objext
21435 if { (ac_try
="$ac_compile"
21436 case "(($ac_try" in
21437 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21438 *) ac_try_echo=$ac_try;;
21440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21441 (eval "$ac_compile") 2>conftest.er1
21443 grep -v '^ *+' conftest.er1 >conftest.err
21445 cat conftest.err >&5
21446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21447 (exit $ac_status); } && {
21448 test -z "$ac_c_werror_flag" ||
21449 test ! -s conftest.err
21450 } && test -s conftest.$ac_objext; then
21451 ac_cv_member_struct_stat_st_flags=yes
21453 echo "$as_me: failed program was:" >&5
21454 sed 's/^/| /' conftest.$ac_ext >&5
21456 ac_cv_member_struct_stat_st_flags=no
21459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21464 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
21465 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
21466 if test $ac_cv_member_struct_stat_st_flags = yes; then
21468 cat >>confdefs.h <<_ACEOF
21469 #define HAVE_STRUCT_STAT_ST_FLAGS 1
21475 { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
21476 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
21477 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
21478 echo $ECHO_N "(cached) $ECHO_C" >&6
21480 cat >conftest.$ac_ext <<_ACEOF
21483 cat confdefs.h >>conftest.$ac_ext
21484 cat >>conftest.$ac_ext <<_ACEOF
21485 /* end confdefs.h. */
21486 $ac_includes_default
21490 static struct stat ac_aggr;
21491 if (ac_aggr.st_gen)
21497 rm -f conftest.$ac_objext
21498 if { (ac_try="$ac_compile"
21499 case "(($ac_try" in
21500 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21501 *) ac_try_echo
=$ac_try;;
21503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21504 (eval "$ac_compile") 2>conftest.er1
21506 grep -v '^ *+' conftest.er1
>conftest.err
21508 cat conftest.err
>&5
21509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21510 (exit $ac_status); } && {
21511 test -z "$ac_c_werror_flag" ||
21512 test ! -s conftest.err
21513 } && test -s conftest.
$ac_objext; then
21514 ac_cv_member_struct_stat_st_gen
=yes
21516 echo "$as_me: failed program was:" >&5
21517 sed 's/^/| /' conftest.
$ac_ext >&5
21519 cat >conftest.
$ac_ext <<_ACEOF
21522 cat confdefs.h
>>conftest.
$ac_ext
21523 cat >>conftest.
$ac_ext <<_ACEOF
21524 /* end confdefs.h. */
21525 $ac_includes_default
21529 static struct stat ac_aggr;
21530 if (sizeof ac_aggr.st_gen)
21536 rm -f conftest.
$ac_objext
21537 if { (ac_try
="$ac_compile"
21538 case "(($ac_try" in
21539 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21540 *) ac_try_echo=$ac_try;;
21542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21543 (eval "$ac_compile") 2>conftest.er1
21545 grep -v '^ *+' conftest.er1 >conftest.err
21547 cat conftest.err >&5
21548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21549 (exit $ac_status); } && {
21550 test -z "$ac_c_werror_flag" ||
21551 test ! -s conftest.err
21552 } && test -s conftest.$ac_objext; then
21553 ac_cv_member_struct_stat_st_gen=yes
21555 echo "$as_me: failed program was:" >&5
21556 sed 's/^/| /' conftest.$ac_ext >&5
21558 ac_cv_member_struct_stat_st_gen=no
21561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21566 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
21567 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
21568 if test $ac_cv_member_struct_stat_st_gen = yes; then
21570 cat >>confdefs.h <<_ACEOF
21571 #define HAVE_STRUCT_STAT_ST_GEN 1
21577 { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
21578 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
21579 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
21580 echo $ECHO_N "(cached) $ECHO_C" >&6
21582 cat >conftest.$ac_ext <<_ACEOF
21585 cat confdefs.h >>conftest.$ac_ext
21586 cat >>conftest.$ac_ext <<_ACEOF
21587 /* end confdefs.h. */
21588 $ac_includes_default
21592 static struct stat ac_aggr;
21593 if (ac_aggr.st_birthtime)
21599 rm -f conftest.$ac_objext
21600 if { (ac_try="$ac_compile"
21601 case "(($ac_try" in
21602 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21603 *) ac_try_echo
=$ac_try;;
21605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21606 (eval "$ac_compile") 2>conftest.er1
21608 grep -v '^ *+' conftest.er1
>conftest.err
21610 cat conftest.err
>&5
21611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21612 (exit $ac_status); } && {
21613 test -z "$ac_c_werror_flag" ||
21614 test ! -s conftest.err
21615 } && test -s conftest.
$ac_objext; then
21616 ac_cv_member_struct_stat_st_birthtime
=yes
21618 echo "$as_me: failed program was:" >&5
21619 sed 's/^/| /' conftest.
$ac_ext >&5
21621 cat >conftest.
$ac_ext <<_ACEOF
21624 cat confdefs.h
>>conftest.
$ac_ext
21625 cat >>conftest.
$ac_ext <<_ACEOF
21626 /* end confdefs.h. */
21627 $ac_includes_default
21631 static struct stat ac_aggr;
21632 if (sizeof ac_aggr.st_birthtime)
21638 rm -f conftest.
$ac_objext
21639 if { (ac_try
="$ac_compile"
21640 case "(($ac_try" in
21641 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21642 *) ac_try_echo=$ac_try;;
21644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21645 (eval "$ac_compile") 2>conftest.er1
21647 grep -v '^ *+' conftest.er1 >conftest.err
21649 cat conftest.err >&5
21650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21651 (exit $ac_status); } && {
21652 test -z "$ac_c_werror_flag" ||
21653 test ! -s conftest.err
21654 } && test -s conftest.$ac_objext; then
21655 ac_cv_member_struct_stat_st_birthtime=yes
21657 echo "$as_me: failed program was:" >&5
21658 sed 's/^/| /' conftest.$ac_ext >&5
21660 ac_cv_member_struct_stat_st_birthtime=no
21663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21668 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
21669 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
21670 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
21672 cat >>confdefs.h <<_ACEOF
21673 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
21679 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
21680 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
21681 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
21682 echo $ECHO_N "(cached) $ECHO_C" >&6
21684 cat >conftest.$ac_ext <<_ACEOF
21687 cat confdefs.h >>conftest.$ac_ext
21688 cat >>conftest.$ac_ext <<_ACEOF
21689 /* end confdefs.h. */
21690 $ac_includes_default
21694 static struct stat ac_aggr;
21695 if (ac_aggr.st_blocks)
21701 rm -f conftest.$ac_objext
21702 if { (ac_try="$ac_compile"
21703 case "(($ac_try" in
21704 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21705 *) ac_try_echo
=$ac_try;;
21707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21708 (eval "$ac_compile") 2>conftest.er1
21710 grep -v '^ *+' conftest.er1
>conftest.err
21712 cat conftest.err
>&5
21713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21714 (exit $ac_status); } && {
21715 test -z "$ac_c_werror_flag" ||
21716 test ! -s conftest.err
21717 } && test -s conftest.
$ac_objext; then
21718 ac_cv_member_struct_stat_st_blocks
=yes
21720 echo "$as_me: failed program was:" >&5
21721 sed 's/^/| /' conftest.
$ac_ext >&5
21723 cat >conftest.
$ac_ext <<_ACEOF
21726 cat confdefs.h
>>conftest.
$ac_ext
21727 cat >>conftest.
$ac_ext <<_ACEOF
21728 /* end confdefs.h. */
21729 $ac_includes_default
21733 static struct stat ac_aggr;
21734 if (sizeof ac_aggr.st_blocks)
21740 rm -f conftest.
$ac_objext
21741 if { (ac_try
="$ac_compile"
21742 case "(($ac_try" in
21743 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21744 *) ac_try_echo=$ac_try;;
21746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21747 (eval "$ac_compile") 2>conftest.er1
21749 grep -v '^ *+' conftest.er1 >conftest.err
21751 cat conftest.err >&5
21752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21753 (exit $ac_status); } && {
21754 test -z "$ac_c_werror_flag" ||
21755 test ! -s conftest.err
21756 } && test -s conftest.$ac_objext; then
21757 ac_cv_member_struct_stat_st_blocks=yes
21759 echo "$as_me: failed program was:" >&5
21760 sed 's/^/| /' conftest.$ac_ext >&5
21762 ac_cv_member_struct_stat_st_blocks=no
21765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21770 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
21771 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
21772 if test $ac_cv_member_struct_stat_st_blocks = yes; then
21774 cat >>confdefs.h <<_ACEOF
21775 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
21779 cat >>confdefs.h <<\_ACEOF
21780 #define HAVE_ST_BLOCKS 1
21784 case " $LIBOBJS " in
21785 *" fileblocks.$ac_objext "* ) ;;
21786 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
21794 { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
21795 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
21796 if test "${ac_cv_header_time_altzone+set}" = set; then
21797 echo $ECHO_N "(cached) $ECHO_C" >&6
21799 cat >conftest.$ac_ext <<_ACEOF
21802 cat confdefs.h >>conftest.$ac_ext
21803 cat >>conftest.$ac_ext <<_ACEOF
21804 /* end confdefs.h. */
21814 rm -f conftest.$ac_objext
21815 if { (ac_try="$ac_compile"
21816 case "(($ac_try" in
21817 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21818 *) ac_try_echo
=$ac_try;;
21820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21821 (eval "$ac_compile") 2>conftest.er1
21823 grep -v '^ *+' conftest.er1
>conftest.err
21825 cat conftest.err
>&5
21826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21827 (exit $ac_status); } && {
21828 test -z "$ac_c_werror_flag" ||
21829 test ! -s conftest.err
21830 } && test -s conftest.
$ac_objext; then
21831 ac_cv_header_time_altzone
=yes
21833 echo "$as_me: failed program was:" >&5
21834 sed 's/^/| /' conftest.
$ac_ext >&5
21836 ac_cv_header_time_altzone
=no
21839 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21842 { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
21843 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
21844 if test $ac_cv_header_time_altzone = yes; then
21846 cat >>confdefs.h
<<\_ACEOF
21847 #define HAVE_ALTZONE 1
21853 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
21854 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
21855 cat >conftest.
$ac_ext <<_ACEOF
21858 cat confdefs.h
>>conftest.
$ac_ext
21859 cat >>conftest.
$ac_ext <<_ACEOF
21860 /* end confdefs.h. */
21862 #include <sys/types.h>
21863 #include <sys/select.h>
21864 #include <sys/time.h>
21874 rm -f conftest.
$ac_objext
21875 if { (ac_try
="$ac_compile"
21876 case "(($ac_try" in
21877 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21878 *) ac_try_echo=$ac_try;;
21880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21881 (eval "$ac_compile") 2>conftest.er1
21883 grep -v '^ *+' conftest.er1 >conftest.err
21885 cat conftest.err >&5
21886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21887 (exit $ac_status); } && {
21888 test -z "$ac_c_werror_flag" ||
21889 test ! -s conftest.err
21890 } && test -s conftest.$ac_objext; then
21893 cat >>confdefs.h <<\_ACEOF
21894 #define SYS_SELECT_WITH_SYS_TIME 1
21900 echo "$as_me: failed program was:" >&5
21901 sed 's/^/| /' conftest.$ac_ext >&5
21906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21907 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
21908 echo "${ECHO_T}$was_it_defined" >&6; }
21910 { echo "$as_me:$LINENO: checking for addrinfo" >&5
21911 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
21912 if test "${ac_cv_struct_addrinfo+set}" = set; then
21913 echo $ECHO_N "(cached) $ECHO_C" >&6
21915 cat >conftest.$ac_ext <<_ACEOF
21918 cat confdefs.h >>conftest.$ac_ext
21919 cat >>conftest.$ac_ext <<_ACEOF
21920 /* end confdefs.h. */
21922 # include <netdb.h>
21931 rm -f conftest.$ac_objext
21932 if { (ac_try="$ac_compile"
21933 case "(($ac_try" in
21934 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21935 *) ac_try_echo
=$ac_try;;
21937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21938 (eval "$ac_compile") 2>conftest.er1
21940 grep -v '^ *+' conftest.er1
>conftest.err
21942 cat conftest.err
>&5
21943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21944 (exit $ac_status); } && {
21945 test -z "$ac_c_werror_flag" ||
21946 test ! -s conftest.err
21947 } && test -s conftest.
$ac_objext; then
21948 ac_cv_struct_addrinfo
=yes
21950 echo "$as_me: failed program was:" >&5
21951 sed 's/^/| /' conftest.
$ac_ext >&5
21953 ac_cv_struct_addrinfo
=no
21956 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21959 { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
21960 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
21961 if test $ac_cv_struct_addrinfo = yes; then
21963 cat >>confdefs.h
<<\_ACEOF
21964 #define HAVE_ADDRINFO 1
21969 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
21970 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
21971 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
21972 echo $ECHO_N "(cached) $ECHO_C" >&6
21974 cat >conftest.
$ac_ext <<_ACEOF
21977 cat confdefs.h
>>conftest.
$ac_ext
21978 cat >>conftest.
$ac_ext <<_ACEOF
21979 /* end confdefs.h. */
21981 # include <sys/types.h>
21982 # include <sys/socket.h>
21986 struct sockaddr_storage s
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_struct_sockaddr_storage=yes
22010 echo "$as_me: failed program was:" >&5
22011 sed 's/^/| /' conftest.$ac_ext >&5
22013 ac_cv_struct_sockaddr_storage=no
22016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22019 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
22020 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
22021 if test $ac_cv_struct_sockaddr_storage = yes; then
22023 cat >>confdefs.h <<\_ACEOF
22024 #define HAVE_SOCKADDR_STORAGE 1
22029 # checks for compiler characteristics
22032 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
22033 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
22034 if test "${ac_cv_c_char_unsigned+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 int test_array [1 - 2 * !(((char) -1) < 0)];
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_c_char_unsigned
=no
22073 echo "$as_me: failed program was:" >&5
22074 sed 's/^/| /' conftest.
$ac_ext >&5
22076 ac_cv_c_char_unsigned
=yes
22079 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22081 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
22082 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
22083 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
22084 cat >>confdefs.h
<<\_ACEOF
22085 #define __CHAR_UNSIGNED__ 1
22090 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22091 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
22092 if test "${ac_cv_c_const+set}" = set; then
22093 echo $ECHO_N "(cached) $ECHO_C" >&6
22095 cat >conftest.
$ac_ext <<_ACEOF
22098 cat confdefs.h
>>conftest.
$ac_ext
22099 cat >>conftest.
$ac_ext <<_ACEOF
22100 /* end confdefs.h. */
22105 /* FIXME: Include the comments suggested by Paul. */
22106 #ifndef __cplusplus
22107 /* Ultrix mips cc rejects this. */
22108 typedef int charset[2];
22110 /* SunOS 4.1.1 cc rejects this. */
22111 char const *const *pcpcc;
22113 /* NEC SVR4.0.2 mips cc rejects this. */
22114 struct point {int x, y;};
22115 static struct point const zero = {0,0};
22116 /* AIX XL C 1.02.0.0 rejects this.
22117 It does not let you subtract one const X* pointer from another in
22118 an arm of an if-expression whose if-part is not a constant
22120 const char *g = "string";
22121 pcpcc = &g + (g ? g-g : 0);
22122 /* HPUX 7.0 cc rejects these. */
22124 ppc = (char**) pcpcc;
22125 pcpcc = (char const *const *) ppc;
22126 { /* SCO 3.2v4 cc rejects this. */
22128 char const *s = 0 ? (char *) 0 : (char const *) 0;
22133 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22134 int x[] = {25, 17};
22135 const int *foo = &x[0];
22138 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22139 typedef const int *iptr;
22143 { /* AIX XL C 1.02.0.0 rejects this saying
22144 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22145 struct s { int j; const int *ap[3]; };
22146 struct s *b; b->j = 5;
22148 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22149 const int foo = 10;
22150 if (!foo) return 0;
22152 return !cs[0] && !zero.x;
22159 rm -f conftest.
$ac_objext
22160 if { (ac_try
="$ac_compile"
22161 case "(($ac_try" in
22162 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22163 *) ac_try_echo=$ac_try;;
22165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22166 (eval "$ac_compile") 2>conftest.er1
22168 grep -v '^ *+' conftest.er1 >conftest.err
22170 cat conftest.err >&5
22171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22172 (exit $ac_status); } && {
22173 test -z "$ac_c_werror_flag" ||
22174 test ! -s conftest.err
22175 } && test -s conftest.$ac_objext; then
22178 echo "$as_me: failed program was:" >&5
22179 sed 's/^/| /' conftest.$ac_ext >&5
22184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22186 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22187 echo "${ECHO_T}$ac_cv_c_const" >&6; }
22188 if test $ac_cv_c_const = no; then
22190 cat >>confdefs.h <<\_ACEOF
22198 { echo "$as_me:$LINENO: checking for working volatile" >&5
22199 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
22200 cat >conftest.$ac_ext <<_ACEOF
22203 cat confdefs.h >>conftest.$ac_ext
22204 cat >>conftest.$ac_ext <<_ACEOF
22205 /* end confdefs.h. */
22210 volatile int x; x = 0;
22215 rm -f conftest.$ac_objext
22216 if { (ac_try="$ac_compile"
22217 case "(($ac_try" in
22218 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22219 *) ac_try_echo
=$ac_try;;
22221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22222 (eval "$ac_compile") 2>conftest.er1
22224 grep -v '^ *+' conftest.er1
>conftest.err
22226 cat conftest.err
>&5
22227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22228 (exit $ac_status); } && {
22229 test -z "$ac_c_werror_flag" ||
22230 test ! -s conftest.err
22231 } && test -s conftest.
$ac_objext; then
22234 echo "$as_me: failed program was:" >&5
22235 sed 's/^/| /' conftest.
$ac_ext >&5
22238 cat >>confdefs.h
<<\_ACEOF
22245 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22246 { echo "$as_me:$LINENO: result: $works" >&5
22247 echo "${ECHO_T}$works" >&6; }
22250 { echo "$as_me:$LINENO: checking for working signed char" >&5
22251 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
22252 cat >conftest.
$ac_ext <<_ACEOF
22255 cat confdefs.h
>>conftest.
$ac_ext
22256 cat >>conftest.
$ac_ext <<_ACEOF
22257 /* end confdefs.h. */
22267 rm -f conftest.
$ac_objext
22268 if { (ac_try
="$ac_compile"
22269 case "(($ac_try" in
22270 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22271 *) ac_try_echo=$ac_try;;
22273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22274 (eval "$ac_compile") 2>conftest.er1
22276 grep -v '^ *+' conftest.er1 >conftest.err
22278 cat conftest.err >&5
22279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22280 (exit $ac_status); } && {
22281 test -z "$ac_c_werror_flag" ||
22282 test ! -s conftest.err
22283 } && test -s conftest.$ac_objext; then
22286 echo "$as_me: failed program was:" >&5
22287 sed 's/^/| /' conftest.$ac_ext >&5
22290 cat >>confdefs.h <<\_ACEOF
22297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22298 { echo "$as_me:$LINENO: result: $works" >&5
22299 echo "${ECHO_T}$works" >&6; }
22302 { echo "$as_me:$LINENO: checking for prototypes" >&5
22303 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
22304 cat >conftest.$ac_ext <<_ACEOF
22307 cat confdefs.h >>conftest.$ac_ext
22308 cat >>conftest.$ac_ext <<_ACEOF
22309 /* end confdefs.h. */
22310 int foo(int x) { return 0; }
22319 rm -f conftest.$ac_objext
22320 if { (ac_try="$ac_compile"
22321 case "(($ac_try" in
22322 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22323 *) ac_try_echo
=$ac_try;;
22325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22326 (eval "$ac_compile") 2>conftest.er1
22328 grep -v '^ *+' conftest.er1
>conftest.err
22330 cat conftest.err
>&5
22331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22332 (exit $ac_status); } && {
22333 test -z "$ac_c_werror_flag" ||
22334 test ! -s conftest.err
22335 } && test -s conftest.
$ac_objext; then
22338 cat >>confdefs.h
<<\_ACEOF
22339 #define HAVE_PROTOTYPES 1
22342 have_prototypes
=yes
22345 echo "$as_me: failed program was:" >&5
22346 sed 's/^/| /' conftest.
$ac_ext >&5
22351 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22352 { echo "$as_me:$LINENO: result: $have_prototypes" >&5
22353 echo "${ECHO_T}$have_prototypes" >&6; }
22356 { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
22357 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
22358 cat >conftest.
$ac_ext <<_ACEOF
22361 cat confdefs.h
>>conftest.
$ac_ext
22362 cat >>conftest.
$ac_ext <<_ACEOF
22363 /* end confdefs.h. */
22365 #include <stdarg.h>
22366 int foo(int x, ...) {
22370 va_arg(va, char *);
22371 va_arg(va, double);
22378 return foo(10, "", 3.14);
22383 rm -f conftest.
$ac_objext
22384 if { (ac_try
="$ac_compile"
22385 case "(($ac_try" in
22386 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22387 *) ac_try_echo=$ac_try;;
22389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22390 (eval "$ac_compile") 2>conftest.er1
22392 grep -v '^ *+' conftest.er1 >conftest.err
22394 cat conftest.err >&5
22395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22396 (exit $ac_status); } && {
22397 test -z "$ac_c_werror_flag" ||
22398 test ! -s conftest.err
22399 } && test -s conftest.$ac_objext; then
22402 cat >>confdefs.h <<\_ACEOF
22403 #define HAVE_STDARG_PROTOTYPES 1
22409 echo "$as_me: failed program was:" >&5
22410 sed 's/^/| /' conftest.$ac_ext >&5
22415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22416 { echo "$as_me:$LINENO: result: $works" >&5
22417 echo "${ECHO_T}$works" >&6; }
22419 # check for socketpair
22420 { echo "$as_me:$LINENO: checking for socketpair" >&5
22421 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
22422 cat >conftest.$ac_ext <<_ACEOF
22425 cat confdefs.h >>conftest.$ac_ext
22426 cat >>conftest.$ac_ext <<_ACEOF
22427 /* end confdefs.h. */
22429 #include <sys/types.h>
22430 #include <sys/socket.h>
22440 rm -f conftest.$ac_objext
22441 if { (ac_try="$ac_compile"
22442 case "(($ac_try" in
22443 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22444 *) ac_try_echo
=$ac_try;;
22446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22447 (eval "$ac_compile") 2>conftest.er1
22449 grep -v '^ *+' conftest.er1
>conftest.err
22451 cat conftest.err
>&5
22452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22453 (exit $ac_status); } && {
22454 test -z "$ac_c_werror_flag" ||
22455 test ! -s conftest.err
22456 } && test -s conftest.
$ac_objext; then
22458 cat >>confdefs.h
<<\_ACEOF
22459 #define HAVE_SOCKETPAIR 1
22462 { echo "$as_me:$LINENO: result: yes" >&5
22463 echo "${ECHO_T}yes" >&6; }
22465 echo "$as_me: failed program was:" >&5
22466 sed 's/^/| /' conftest.
$ac_ext >&5
22468 { echo "$as_me:$LINENO: result: no" >&5
22469 echo "${ECHO_T}no" >&6; }
22473 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22475 # check if sockaddr has sa_len member
22476 { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
22477 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; }
22478 cat >conftest.
$ac_ext <<_ACEOF
22481 cat confdefs.h
>>conftest.
$ac_ext
22482 cat >>conftest.
$ac_ext <<_ACEOF
22483 /* end confdefs.h. */
22484 #include <sys/types.h>
22485 #include <sys/socket.h>
22495 rm -f conftest.
$ac_objext
22496 if { (ac_try
="$ac_compile"
22497 case "(($ac_try" in
22498 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22499 *) ac_try_echo=$ac_try;;
22501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22502 (eval "$ac_compile") 2>conftest.er1
22504 grep -v '^ *+' conftest.er1 >conftest.err
22506 cat conftest.err >&5
22507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22508 (exit $ac_status); } && {
22509 test -z "$ac_c_werror_flag" ||
22510 test ! -s conftest.err
22511 } && test -s conftest.$ac_objext; then
22512 { echo "$as_me:$LINENO: result: yes" >&5
22513 echo "${ECHO_T}yes" >&6; }
22515 cat >>confdefs.h <<\_ACEOF
22516 #define HAVE_SOCKADDR_SA_LEN 1
22520 echo "$as_me: failed program was:" >&5
22521 sed 's/^/| /' conftest.$ac_ext >&5
22523 { echo "$as_me:$LINENO: result: no" >&5
22524 echo "${ECHO_T}no" >&6; }
22527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22529 va_list_is_array=no
22530 { echo "$as_me:$LINENO: checking whether va_list is an array" >&5
22531 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
22532 cat >conftest.$ac_ext <<_ACEOF
22535 cat confdefs.h >>conftest.$ac_ext
22536 cat >>conftest.$ac_ext <<_ACEOF
22537 /* end confdefs.h. */
22539 #ifdef HAVE_STDARG_PROTOTYPES
22540 #include <stdarg.h>
22542 #include <varargs.h>
22548 va_list list1, list2; list1 = list2;
22553 rm -f conftest.$ac_objext
22554 if { (ac_try="$ac_compile"
22555 case "(($ac_try" in
22556 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22557 *) ac_try_echo
=$ac_try;;
22559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22560 (eval "$ac_compile") 2>conftest.er1
22562 grep -v '^ *+' conftest.er1
>conftest.err
22564 cat conftest.err
>&5
22565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22566 (exit $ac_status); } && {
22567 test -z "$ac_c_werror_flag" ||
22568 test ! -s conftest.err
22569 } && test -s conftest.
$ac_objext; then
22572 echo "$as_me: failed program was:" >&5
22573 sed 's/^/| /' conftest.
$ac_ext >&5
22577 cat >>confdefs.h
<<\_ACEOF
22578 #define VA_LIST_IS_ARRAY 1
22581 va_list_is_array
=yes
22585 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22586 { echo "$as_me:$LINENO: result: $va_list_is_array" >&5
22587 echo "${ECHO_T}$va_list_is_array" >&6; }
22589 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
22593 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
22594 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
22595 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
22596 echo $ECHO_N "(cached) $ECHO_C" >&6
22598 cat >conftest.
$ac_ext <<_ACEOF
22601 cat confdefs.h
>>conftest.
$ac_ext
22602 cat >>conftest.
$ac_ext <<_ACEOF
22603 /* end confdefs.h. */
22604 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
22605 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22606 #define gethostbyname_r innocuous_gethostbyname_r
22608 /* System header to define __stub macros and hopefully few prototypes,
22609 which can conflict with char gethostbyname_r (); below.
22610 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22611 <limits.h> exists even on freestanding compilers. */
22614 # include <limits.h>
22616 # include <assert.h>
22619 #undef gethostbyname_r
22621 /* Override any GCC internal prototype to avoid an error.
22622 Use char because int might match the return type of a GCC
22623 builtin and then its argument prototype would still apply. */
22627 char gethostbyname_r ();
22628 /* The GNU C library defines this for functions which it implements
22629 to always fail with ENOSYS. Some functions are actually named
22630 something starting with __ and the normal name is an alias. */
22631 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
22638 return gethostbyname_r ();
22643 rm -f conftest.
$ac_objext conftest
$ac_exeext
22644 if { (ac_try
="$ac_link"
22645 case "(($ac_try" in
22646 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22647 *) ac_try_echo=$ac_try;;
22649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22650 (eval "$ac_link") 2>conftest.er1
22652 grep -v '^ *+' conftest.er1 >conftest.err
22654 cat conftest.err >&5
22655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22656 (exit $ac_status); } && {
22657 test -z "$ac_c_werror_flag" ||
22658 test ! -s conftest.err
22659 } && test -s conftest$ac_exeext &&
22660 $as_test_x conftest$ac_exeext; then
22661 ac_cv_func_gethostbyname_r=yes
22663 echo "$as_me: failed program was:" >&5
22664 sed 's/^/| /' conftest.$ac_ext >&5
22666 ac_cv_func_gethostbyname_r=no
22669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22670 conftest$ac_exeext conftest.$ac_ext
22672 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
22673 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
22674 if test $ac_cv_func_gethostbyname_r = yes; then
22676 cat >>confdefs.h <<\_ACEOF
22677 #define HAVE_GETHOSTBYNAME_R 1
22680 { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
22681 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
22683 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
22684 cat >conftest.$ac_ext <<_ACEOF
22687 cat confdefs.h >>conftest.$ac_ext
22688 cat >>conftest.$ac_ext <<_ACEOF
22689 /* end confdefs.h. */
22691 # include <netdb.h>
22698 struct hostent *he, *res;
22703 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
22709 rm -f conftest.$ac_objext
22710 if { (ac_try="$ac_compile"
22711 case "(($ac_try" in
22712 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22713 *) ac_try_echo
=$ac_try;;
22715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22716 (eval "$ac_compile") 2>conftest.er1
22718 grep -v '^ *+' conftest.er1
>conftest.err
22720 cat conftest.err
>&5
22721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22722 (exit $ac_status); } && {
22723 test -z "$ac_c_werror_flag" ||
22724 test ! -s conftest.err
22725 } && test -s conftest.
$ac_objext; then
22727 cat >>confdefs.h
<<\_ACEOF
22728 #define HAVE_GETHOSTBYNAME_R 1
22732 cat >>confdefs.h
<<\_ACEOF
22733 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
22736 { echo "$as_me:$LINENO: result: yes" >&5
22737 echo "${ECHO_T}yes" >&6; }
22740 echo "$as_me: failed program was:" >&5
22741 sed 's/^/| /' conftest.
$ac_ext >&5
22744 { echo "$as_me:$LINENO: result: no" >&5
22745 echo "${ECHO_T}no" >&6; }
22746 { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
22747 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
22748 cat >conftest.
$ac_ext <<_ACEOF
22751 cat confdefs.h
>>conftest.
$ac_ext
22752 cat >>conftest.
$ac_ext <<_ACEOF
22753 /* end confdefs.h. */
22755 # include <netdb.h>
22762 struct hostent *he;
22767 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
22773 rm -f conftest.
$ac_objext
22774 if { (ac_try
="$ac_compile"
22775 case "(($ac_try" in
22776 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22777 *) ac_try_echo=$ac_try;;
22779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22780 (eval "$ac_compile") 2>conftest.er1
22782 grep -v '^ *+' conftest.er1 >conftest.err
22784 cat conftest.err >&5
22785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22786 (exit $ac_status); } && {
22787 test -z "$ac_c_werror_flag" ||
22788 test ! -s conftest.err
22789 } && test -s conftest.$ac_objext; then
22791 cat >>confdefs.h <<\_ACEOF
22792 #define HAVE_GETHOSTBYNAME_R 1
22796 cat >>confdefs.h <<\_ACEOF
22797 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
22800 { echo "$as_me:$LINENO: result: yes" >&5
22801 echo "${ECHO_T}yes" >&6; }
22804 echo "$as_me: failed program was:" >&5
22805 sed 's/^/| /' conftest.$ac_ext >&5
22808 { echo "$as_me:$LINENO: result: no" >&5
22809 echo "${ECHO_T}no" >&6; }
22810 { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
22811 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
22812 cat >conftest.$ac_ext <<_ACEOF
22815 cat confdefs.h >>conftest.$ac_ext
22816 cat >>conftest.$ac_ext <<_ACEOF
22817 /* end confdefs.h. */
22819 # include <netdb.h>
22826 struct hostent *he;
22827 struct hostent_data data;
22829 (void) gethostbyname_r(name, he, &data);
22835 rm -f conftest.$ac_objext
22836 if { (ac_try="$ac_compile"
22837 case "(($ac_try" in
22838 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22839 *) ac_try_echo
=$ac_try;;
22841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22842 (eval "$ac_compile") 2>conftest.er1
22844 grep -v '^ *+' conftest.er1
>conftest.err
22846 cat conftest.err
>&5
22847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22848 (exit $ac_status); } && {
22849 test -z "$ac_c_werror_flag" ||
22850 test ! -s conftest.err
22851 } && test -s conftest.
$ac_objext; then
22853 cat >>confdefs.h
<<\_ACEOF
22854 #define HAVE_GETHOSTBYNAME_R 1
22858 cat >>confdefs.h
<<\_ACEOF
22859 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
22862 { echo "$as_me:$LINENO: result: yes" >&5
22863 echo "${ECHO_T}yes" >&6; }
22866 echo "$as_me: failed program was:" >&5
22867 sed 's/^/| /' conftest.
$ac_ext >&5
22870 { echo "$as_me:$LINENO: result: no" >&5
22871 echo "${ECHO_T}no" >&6; }
22875 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22879 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22883 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22889 for ac_func
in gethostbyname
22891 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22892 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22893 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22894 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22895 echo $ECHO_N "(cached) $ECHO_C" >&6
22897 cat >conftest.
$ac_ext <<_ACEOF
22900 cat confdefs.h
>>conftest.
$ac_ext
22901 cat >>conftest.
$ac_ext <<_ACEOF
22902 /* end confdefs.h. */
22903 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22904 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22905 #define $ac_func innocuous_$ac_func
22907 /* System header to define __stub macros and hopefully few prototypes,
22908 which can conflict with char $ac_func (); below.
22909 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22910 <limits.h> exists even on freestanding compilers. */
22913 # include <limits.h>
22915 # include <assert.h>
22920 /* Override any GCC internal prototype to avoid an error.
22921 Use char because int might match the return type of a GCC
22922 builtin and then its argument prototype would still apply. */
22927 /* The GNU C library defines this for functions which it implements
22928 to always fail with ENOSYS. Some functions are actually named
22929 something starting with __ and the normal name is an alias. */
22930 #if defined __stub_$ac_func || defined __stub___$ac_func
22937 return $ac_func ();
22942 rm -f conftest.
$ac_objext conftest
$ac_exeext
22943 if { (ac_try
="$ac_link"
22944 case "(($ac_try" in
22945 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22946 *) ac_try_echo=$ac_try;;
22948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22949 (eval "$ac_link") 2>conftest.er1
22951 grep -v '^ *+' conftest.er1 >conftest.err
22953 cat conftest.err >&5
22954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22955 (exit $ac_status); } && {
22956 test -z "$ac_c_werror_flag" ||
22957 test ! -s conftest.err
22958 } && test -s conftest$ac_exeext &&
22959 $as_test_x conftest$ac_exeext; then
22960 eval "$as_ac_var=yes"
22962 echo "$as_me: failed program was:" >&5
22963 sed 's/^/| /' conftest.$ac_ext >&5
22965 eval "$as_ac_var=no"
22968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22969 conftest$ac_exeext conftest.$ac_ext
22971 ac_res=`eval echo '${'$as_ac_var'}'`
22972 { echo "$as_me:$LINENO: result: $ac_res" >&5
22973 echo "${ECHO_T}$ac_res" >&6; }
22974 if test `eval echo '${'$as_ac_var'}'` = yes; then
22975 cat >>confdefs.h <<_ACEOF
22976 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
22991 # checks for system services
22994 # Linux requires this for correct f.p. operations
22995 { echo "$as_me:$LINENO: checking for __fpu_control" >&5
22996 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
22997 if test "${ac_cv_func___fpu_control+set}" = set; then
22998 echo $ECHO_N "(cached) $ECHO_C" >&6
23000 cat >conftest.$ac_ext <<_ACEOF
23003 cat confdefs.h >>conftest.$ac_ext
23004 cat >>conftest.$ac_ext <<_ACEOF
23005 /* end confdefs.h. */
23006 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
23007 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23008 #define __fpu_control innocuous___fpu_control
23010 /* System header to define __stub macros and hopefully few prototypes,
23011 which can conflict with char __fpu_control (); below.
23012 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23013 <limits.h> exists even on freestanding compilers. */
23016 # include <limits.h>
23018 # include <assert.h>
23021 #undef __fpu_control
23023 /* Override any GCC internal prototype to avoid an error.
23024 Use char because int might match the return type of a GCC
23025 builtin and then its argument prototype would still apply. */
23029 char __fpu_control ();
23030 /* The GNU C library defines this for functions which it implements
23031 to always fail with ENOSYS. Some functions are actually named
23032 something starting with __ and the normal name is an alias. */
23033 #if defined __stub___fpu_control || defined __stub_____fpu_control
23040 return __fpu_control ();
23045 rm -f conftest.$ac_objext conftest$ac_exeext
23046 if { (ac_try="$ac_link"
23047 case "(($ac_try" in
23048 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23049 *) ac_try_echo
=$ac_try;;
23051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23052 (eval "$ac_link") 2>conftest.er1
23054 grep -v '^ *+' conftest.er1
>conftest.err
23056 cat conftest.err
>&5
23057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23058 (exit $ac_status); } && {
23059 test -z "$ac_c_werror_flag" ||
23060 test ! -s conftest.err
23061 } && test -s conftest
$ac_exeext &&
23062 $as_test_x conftest
$ac_exeext; then
23063 ac_cv_func___fpu_control
=yes
23065 echo "$as_me: failed program was:" >&5
23066 sed 's/^/| /' conftest.
$ac_ext >&5
23068 ac_cv_func___fpu_control
=no
23071 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23072 conftest
$ac_exeext conftest.
$ac_ext
23074 { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
23075 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
23076 if test $ac_cv_func___fpu_control = yes; then
23080 { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
23081 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
23082 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
23083 echo $ECHO_N "(cached) $ECHO_C" >&6
23085 ac_check_lib_save_LIBS
=$LIBS
23086 LIBS
="-lieee $LIBS"
23087 cat >conftest.
$ac_ext <<_ACEOF
23090 cat confdefs.h
>>conftest.
$ac_ext
23091 cat >>conftest.
$ac_ext <<_ACEOF
23092 /* end confdefs.h. */
23094 /* Override any GCC internal prototype to avoid an error.
23095 Use char because int might match the return type of a GCC
23096 builtin and then its argument prototype would still apply. */
23100 char __fpu_control ();
23104 return __fpu_control ();
23109 rm -f conftest.
$ac_objext conftest
$ac_exeext
23110 if { (ac_try
="$ac_link"
23111 case "(($ac_try" in
23112 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23113 *) ac_try_echo=$ac_try;;
23115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23116 (eval "$ac_link") 2>conftest.er1
23118 grep -v '^ *+' conftest.er1 >conftest.err
23120 cat conftest.err >&5
23121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23122 (exit $ac_status); } && {
23123 test -z "$ac_c_werror_flag" ||
23124 test ! -s conftest.err
23125 } && test -s conftest$ac_exeext &&
23126 $as_test_x conftest$ac_exeext; then
23127 ac_cv_lib_ieee___fpu_control=yes
23129 echo "$as_me: failed program was:" >&5
23130 sed 's/^/| /' conftest.$ac_ext >&5
23132 ac_cv_lib_ieee___fpu_control=no
23135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23136 conftest$ac_exeext conftest.$ac_ext
23137 LIBS=$ac_check_lib_save_LIBS
23139 { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
23140 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
23141 if test $ac_cv_lib_ieee___fpu_control = yes; then
23142 cat >>confdefs.h <<_ACEOF
23143 #define HAVE_LIBIEEE 1
23146 LIBS="-lieee $LIBS"
23154 # Check for --with-fpectl
23155 { echo "$as_me:$LINENO: checking for --with-fpectl" >&5
23156 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
23158 # Check whether --with-fpectl was given.
23159 if test "${with_fpectl+set}" = set; then
23160 withval=$with_fpectl;
23161 if test "$withval" != no
23164 cat >>confdefs.h <<\_ACEOF
23165 #define WANT_SIGFPE_HANDLER 1
23168 { echo "$as_me:$LINENO: result: yes" >&5
23169 echo "${ECHO_T}yes" >&6; }
23170 else { echo "$as_me:$LINENO: result: no" >&5
23171 echo "${ECHO_T}no" >&6; }
23174 { echo "$as_me:$LINENO: result: no" >&5
23175 echo "${ECHO_T}no" >&6; }
23179 # check for --with-libm=...
23181 case $ac_sys_system in
23186 { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
23187 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
23189 # Check whether --with-libm was given.
23190 if test "${with_libm+set}" = set; then
23191 withval=$with_libm;
23192 if test "$withval" = no
23194 { echo "$as_me:$LINENO: result: force LIBM empty" >&5
23195 echo "${ECHO_T}force LIBM empty" >&6; }
23196 elif test "$withval" != yes
23198 { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
23199 echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
23200 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
23201 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
23202 { (exit 1); exit 1; }; }
23205 { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
23206 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
23210 # check for --with-libc=...
23212 { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
23213 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
23215 # Check whether --with-libc was given.
23216 if test "${with_libc+set}" = set; then
23217 withval=$with_libc;
23218 if test "$withval" = no
23220 { echo "$as_me:$LINENO: result: force LIBC empty" >&5
23221 echo "${ECHO_T}force LIBC empty" >&6; }
23222 elif test "$withval" != yes
23224 { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
23225 echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
23226 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
23227 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
23228 { (exit 1); exit 1; }; }
23231 { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
23232 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
23236 # **************************************************
23237 # * Check for various properties of floating point *
23238 # **************************************************
23240 { echo "$as_me:$LINENO: checking whether C doubles are little-endian IEEE 754 binary64" >&5
23241 echo $ECHO_N "checking whether C doubles are little-endian IEEE 754 binary64... $ECHO_C" >&6; }
23242 if test "${ac_cv_little_endian_double+set}" = set; then
23243 echo $ECHO_N "(cached) $ECHO_C" >&6
23246 if test "$cross_compiling" = yes; then
23247 ac_cv_little_endian_double=no
23249 cat >conftest.$ac_ext <<_ACEOF
23252 cat confdefs.h >>conftest.$ac_ext
23253 cat >>conftest.$ac_ext <<_ACEOF
23254 /* end confdefs.h. */
23256 #include <string.h>
23258 double x = 9006104071832581.0;
23259 if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0)
23266 rm -f conftest$ac_exeext
23267 if { (ac_try="$ac_link"
23268 case "(($ac_try" in
23269 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23270 *) ac_try_echo
=$ac_try;;
23272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23273 (eval "$ac_link") 2>&5
23275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23276 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23277 { (case "(($ac_try" in
23278 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23279 *) ac_try_echo=$ac_try;;
23281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23282 (eval "$ac_try") 2>&5
23284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23285 (exit $ac_status); }; }; then
23286 ac_cv_little_endian_double=yes
23288 echo "$as_me: program exited with status $ac_status" >&5
23289 echo "$as_me: failed program was:" >&5
23290 sed 's/^/| /' conftest.$ac_ext >&5
23292 ( exit $ac_status )
23293 ac_cv_little_endian_double=no
23295 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23301 { echo "$as_me:$LINENO: result: $ac_cv_little_endian_double" >&5
23302 echo "${ECHO_T}$ac_cv_little_endian_double" >&6; }
23303 if test "$ac_cv_little_endian_double" = yes
23306 cat >>confdefs.h <<\_ACEOF
23307 #define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1
23312 { echo "$as_me:$LINENO: checking whether C doubles are big-endian IEEE 754 binary64" >&5
23313 echo $ECHO_N "checking whether C doubles are big-endian IEEE 754 binary64... $ECHO_C" >&6; }
23314 if test "${ac_cv_big_endian_double+set}" = set; then
23315 echo $ECHO_N "(cached) $ECHO_C" >&6
23318 if test "$cross_compiling" = yes; then
23319 ac_cv_big_endian_double=no
23321 cat >conftest.$ac_ext <<_ACEOF
23324 cat confdefs.h >>conftest.$ac_ext
23325 cat >>conftest.$ac_ext <<_ACEOF
23326 /* end confdefs.h. */
23328 #include <string.h>
23330 double x = 9006104071832581.0;
23331 if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0)
23338 rm -f conftest$ac_exeext
23339 if { (ac_try="$ac_link"
23340 case "(($ac_try" in
23341 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23342 *) ac_try_echo
=$ac_try;;
23344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23345 (eval "$ac_link") 2>&5
23347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23348 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23349 { (case "(($ac_try" in
23350 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23351 *) ac_try_echo=$ac_try;;
23353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23354 (eval "$ac_try") 2>&5
23356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23357 (exit $ac_status); }; }; then
23358 ac_cv_big_endian_double=yes
23360 echo "$as_me: program exited with status $ac_status" >&5
23361 echo "$as_me: failed program was:" >&5
23362 sed 's/^/| /' conftest.$ac_ext >&5
23364 ( exit $ac_status )
23365 ac_cv_big_endian_double=no
23367 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23373 { echo "$as_me:$LINENO: result: $ac_cv_big_endian_double" >&5
23374 echo "${ECHO_T}$ac_cv_big_endian_double" >&6; }
23375 if test "$ac_cv_big_endian_double" = yes
23378 cat >>confdefs.h <<\_ACEOF
23379 #define DOUBLE_IS_BIG_ENDIAN_IEEE754 1
23384 # Some ARM platforms use a mixed-endian representation for doubles.
23385 # While Python doesn't currently have full support for these platforms
23386 # (see e.g., issue 1762561), we can at least make sure that float <-> string
23387 # conversions work.
23388 { echo "$as_me:$LINENO: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5
23389 echo $ECHO_N "checking whether C doubles are ARM mixed-endian IEEE 754 binary64... $ECHO_C" >&6; }
23390 if test "${ac_cv_mixed_endian_double+set}" = set; then
23391 echo $ECHO_N "(cached) $ECHO_C" >&6
23394 if test "$cross_compiling" = yes; then
23395 ac_cv_mixed_endian_double=no
23397 cat >conftest.$ac_ext <<_ACEOF
23400 cat confdefs.h >>conftest.$ac_ext
23401 cat >>conftest.$ac_ext <<_ACEOF
23402 /* end confdefs.h. */
23404 #include <string.h>
23406 double x = 9006104071832581.0;
23407 if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0)
23414 rm -f conftest$ac_exeext
23415 if { (ac_try="$ac_link"
23416 case "(($ac_try" in
23417 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23418 *) ac_try_echo
=$ac_try;;
23420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23421 (eval "$ac_link") 2>&5
23423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23424 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23425 { (case "(($ac_try" in
23426 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23427 *) ac_try_echo=$ac_try;;
23429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23430 (eval "$ac_try") 2>&5
23432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23433 (exit $ac_status); }; }; then
23434 ac_cv_mixed_endian_double=yes
23436 echo "$as_me: program exited with status $ac_status" >&5
23437 echo "$as_me: failed program was:" >&5
23438 sed 's/^/| /' conftest.$ac_ext >&5
23440 ( exit $ac_status )
23441 ac_cv_mixed_endian_double=no
23443 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23449 { echo "$as_me:$LINENO: result: $ac_cv_mixed_endian_double" >&5
23450 echo "${ECHO_T}$ac_cv_mixed_endian_double" >&6; }
23451 if test "$ac_cv_mixed_endian_double" = yes
23454 cat >>confdefs.h <<\_ACEOF
23455 #define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1
23460 # The short float repr introduced in Python 3.1 requires the
23461 # correctly-rounded string <-> double conversion functions from
23462 # Python/dtoa.c, which in turn require that the FPU uses 53-bit
23463 # rounding; this is a problem on x86, where the x87 FPU has a default
23464 # rounding precision of 64 bits. For gcc/x86, we try to fix this by
23465 # using inline assembler to get and set the x87 FPU control word.
23466 if test "$GCC" = yes && test -n "`$CC -dM -E - </dev
/null |
grep i386
`"
23468 # Check that it's okay to use gcc inline assembler to get and set
23469 # x87 control word. It should be, but you never know...
23470 { echo "$as_me:$LINENO: checking whether we can use gcc inline assembler to get and set x87 control word" >&5
23471 echo $ECHO_N "checking whether we can use gcc inline assembler to get and set x87 control word... $ECHO_C" >&6; }
23472 cat >conftest.$ac_ext <<_ACEOF
23475 cat confdefs.h >>conftest.$ac_ext
23476 cat >>conftest.$ac_ext <<_ACEOF
23477 /* end confdefs.h. */
23484 __asm__ __volatile__ ("fnstcw %0" : "=m" (cw));
23485 __asm__ __volatile__ ("fldcw %0" : : "m" (cw));
23491 rm -f conftest.$ac_objext
23492 if { (ac_try="$ac_compile"
23493 case "(($ac_try" in
23494 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23495 *) ac_try_echo
=$ac_try;;
23497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23498 (eval "$ac_compile") 2>conftest.er1
23500 grep -v '^ *+' conftest.er1
>conftest.err
23502 cat conftest.err
>&5
23503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23504 (exit $ac_status); } && {
23505 test -z "$ac_c_werror_flag" ||
23506 test ! -s conftest.err
23507 } && test -s conftest.
$ac_objext; then
23508 have_gcc_asm_for_x87
=yes
23510 echo "$as_me: failed program was:" >&5
23511 sed 's/^/| /' conftest.
$ac_ext >&5
23513 have_gcc_asm_for_x87
=no
23516 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23517 { echo "$as_me:$LINENO: result: $have_gcc_asm_for_x87" >&5
23518 echo "${ECHO_T}$have_gcc_asm_for_x87" >&6; }
23519 if test "$have_gcc_asm_for_x87" = yes
23522 cat >>confdefs.h
<<\_ACEOF
23523 #define HAVE_GCC_ASM_FOR_X87 1
23529 # Detect whether system arithmetic is subject to x87-style double
23530 # rounding issues. The result of this test has little meaning on non
23531 # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding
23532 # mode is round-to-nearest and double rounding issues are present, and
23533 # 0 otherwise. See http://bugs.python.org/issue2937 for more info.
23534 { echo "$as_me:$LINENO: checking for x87-style double rounding" >&5
23535 echo $ECHO_N "checking for x87-style double rounding... $ECHO_C" >&6; }
23536 if test "${ac_cv_x87_double_rounding+set}" = set; then
23537 echo $ECHO_N "(cached) $ECHO_C" >&6
23540 if test "$cross_compiling" = yes; then
23541 ac_cv_x87_double_rounding
=no
23543 cat >conftest.
$ac_ext <<_ACEOF
23546 cat confdefs.h
>>conftest.
$ac_ext
23547 cat >>conftest.
$ac_ext <<_ACEOF
23548 /* end confdefs.h. */
23550 #include <stdlib.h>
23553 volatile double x, y, z;
23554 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
23555 x = 0.99999999999999989; /* 1-2**-53 */
23559 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
23565 /* both tests show evidence of double rounding */
23570 rm -f conftest
$ac_exeext
23571 if { (ac_try
="$ac_link"
23572 case "(($ac_try" in
23573 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23574 *) ac_try_echo=$ac_try;;
23576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23577 (eval "$ac_link") 2>&5
23579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23580 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23581 { (case "(($ac_try" in
23582 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23583 *) ac_try_echo
=$ac_try;;
23585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23586 (eval "$ac_try") 2>&5
23588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23589 (exit $ac_status); }; }; then
23590 ac_cv_x87_double_rounding
=no
23592 echo "$as_me: program exited with status $ac_status" >&5
23593 echo "$as_me: failed program was:" >&5
23594 sed 's/^/| /' conftest.
$ac_ext >&5
23596 ( exit $ac_status )
23597 ac_cv_x87_double_rounding
=yes
23599 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
23605 { echo "$as_me:$LINENO: result: $ac_cv_x87_double_rounding" >&5
23606 echo "${ECHO_T}$ac_cv_x87_double_rounding" >&6; }
23607 if test "$ac_cv_x87_double_rounding" = yes
23610 cat >>confdefs.h
<<\_ACEOF
23611 #define X87_DOUBLE_ROUNDING 1
23616 # ************************************
23617 # * Check for mathematical functions *
23618 # ************************************
23623 # Multiprocessing check for broken sem_getvalue
23624 { echo "$as_me:$LINENO: checking for broken sem_getvalue" >&5
23625 echo $ECHO_N "checking for broken sem_getvalue... $ECHO_C" >&6; }
23626 if test "${ac_cv_broken_sem_getvalue+set}" = set; then
23627 echo $ECHO_N "(cached) $ECHO_C" >&6
23629 if test "$cross_compiling" = yes; then
23630 ac_cv_broken_sem_getvalue
=yes
23632 cat >conftest.
$ac_ext <<_ACEOF
23635 cat confdefs.h
>>conftest.
$ac_ext
23636 cat >>conftest.
$ac_ext <<_ACEOF
23637 /* end confdefs.h. */
23639 #include <unistd.h>
23642 #include <semaphore.h>
23643 #include <sys/stat.h>
23646 sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
23650 perror("sem_open");
23654 res = sem_getvalue(a, &count);
23656 return res==-1 ? 1 : 0;
23660 rm -f conftest
$ac_exeext
23661 if { (ac_try
="$ac_link"
23662 case "(($ac_try" in
23663 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23664 *) ac_try_echo=$ac_try;;
23666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23667 (eval "$ac_link") 2>&5
23669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23670 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23671 { (case "(($ac_try" in
23672 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23673 *) ac_try_echo
=$ac_try;;
23675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23676 (eval "$ac_try") 2>&5
23678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23679 (exit $ac_status); }; }; then
23680 ac_cv_broken_sem_getvalue
=no
23682 echo "$as_me: program exited with status $ac_status" >&5
23683 echo "$as_me: failed program was:" >&5
23684 sed 's/^/| /' conftest.
$ac_ext >&5
23686 ( exit $ac_status )
23687 ac_cv_broken_sem_getvalue
=yes
23689 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
23696 { echo "$as_me:$LINENO: result: $ac_cv_broken_sem_getvalue" >&5
23697 echo "${ECHO_T}$ac_cv_broken_sem_getvalue" >&6; }
23698 if test $ac_cv_broken_sem_getvalue = yes
23701 cat >>confdefs.h
<<\_ACEOF
23702 #define HAVE_BROKEN_SEM_GETVALUE 1
23707 # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
23708 # -0. on some architectures.
23709 { echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5
23710 echo $ECHO_N "checking whether tanh preserves the sign of zero... $ECHO_C" >&6; }
23711 if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then
23712 echo $ECHO_N "(cached) $ECHO_C" >&6
23715 if test "$cross_compiling" = yes; then
23716 ac_cv_tanh_preserves_zero_sign
=no
23718 cat >conftest.
$ac_ext <<_ACEOF
23721 cat confdefs.h
>>conftest.
$ac_ext
23722 cat >>conftest.
$ac_ext <<_ACEOF
23723 /* end confdefs.h. */
23726 #include <stdlib.h>
23728 /* return 0 if either negative zeros don't exist
23729 on this platform or if negative zeros exist
23730 and tanh(-0.) == -0. */
23731 if (atan2(0., -1.) == atan2(-0., -1.) ||
23732 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
23737 rm -f conftest
$ac_exeext
23738 if { (ac_try
="$ac_link"
23739 case "(($ac_try" in
23740 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23741 *) ac_try_echo=$ac_try;;
23743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23744 (eval "$ac_link") 2>&5
23746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23747 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23748 { (case "(($ac_try" in
23749 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23750 *) ac_try_echo
=$ac_try;;
23752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23753 (eval "$ac_try") 2>&5
23755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23756 (exit $ac_status); }; }; then
23757 ac_cv_tanh_preserves_zero_sign
=yes
23759 echo "$as_me: program exited with status $ac_status" >&5
23760 echo "$as_me: failed program was:" >&5
23761 sed 's/^/| /' conftest.
$ac_ext >&5
23763 ( exit $ac_status )
23764 ac_cv_tanh_preserves_zero_sign
=no
23766 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
23772 { echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5
23773 echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; }
23774 if test "$ac_cv_tanh_preserves_zero_sign" = yes
23777 cat >>confdefs.h
<<\_ACEOF
23778 #define TANH_PRESERVES_ZERO_SIGN 1
23792 for ac_func
in acosh asinh atanh copysign erf erfc expm1 finite gamma
23794 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23795 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23796 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23797 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23798 echo $ECHO_N "(cached) $ECHO_C" >&6
23800 cat >conftest.
$ac_ext <<_ACEOF
23803 cat confdefs.h
>>conftest.
$ac_ext
23804 cat >>conftest.
$ac_ext <<_ACEOF
23805 /* end confdefs.h. */
23806 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23808 #define $ac_func innocuous_$ac_func
23810 /* System header to define __stub macros and hopefully few prototypes,
23811 which can conflict with char $ac_func (); below.
23812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23813 <limits.h> exists even on freestanding compilers. */
23816 # include <limits.h>
23818 # include <assert.h>
23823 /* Override any GCC internal prototype to avoid an error.
23824 Use char because int might match the return type of a GCC
23825 builtin and then its argument prototype would still apply. */
23830 /* The GNU C library defines this for functions which it implements
23831 to always fail with ENOSYS. Some functions are actually named
23832 something starting with __ and the normal name is an alias. */
23833 #if defined __stub_$ac_func || defined __stub___$ac_func
23840 return $ac_func ();
23845 rm -f conftest.
$ac_objext conftest
$ac_exeext
23846 if { (ac_try
="$ac_link"
23847 case "(($ac_try" in
23848 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23849 *) ac_try_echo=$ac_try;;
23851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23852 (eval "$ac_link") 2>conftest.er1
23854 grep -v '^ *+' conftest.er1 >conftest.err
23856 cat conftest.err >&5
23857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23858 (exit $ac_status); } && {
23859 test -z "$ac_c_werror_flag" ||
23860 test ! -s conftest.err
23861 } && test -s conftest$ac_exeext &&
23862 $as_test_x conftest$ac_exeext; then
23863 eval "$as_ac_var=yes"
23865 echo "$as_me: failed program was:" >&5
23866 sed 's/^/| /' conftest.$ac_ext >&5
23868 eval "$as_ac_var=no"
23871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23872 conftest$ac_exeext conftest.$ac_ext
23874 ac_res=`eval echo '${'$as_ac_var'}'`
23875 { echo "$as_me:$LINENO: result: $ac_res" >&5
23876 echo "${ECHO_T}$ac_res" >&6; }
23877 if test `eval echo '${'$as_ac_var'}'` = yes; then
23878 cat >>confdefs.h <<_ACEOF
23879 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
23890 for ac_func in hypot lgamma log1p round tgamma
23892 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
23893 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23894 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23895 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23896 echo $ECHO_N "(cached) $ECHO_C" >&6
23898 cat >conftest.$ac_ext <<_ACEOF
23901 cat confdefs.h >>conftest.$ac_ext
23902 cat >>conftest.$ac_ext <<_ACEOF
23903 /* end confdefs.h. */
23904 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23906 #define $ac_func innocuous_$ac_func
23908 /* System header to define __stub macros and hopefully few prototypes,
23909 which can conflict with char $ac_func (); below.
23910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23911 <limits.h> exists even on freestanding compilers. */
23914 # include <limits.h>
23916 # include <assert.h>
23921 /* Override any GCC internal prototype to avoid an error.
23922 Use char because int might match the return type of a GCC
23923 builtin and then its argument prototype would still apply. */
23928 /* The GNU C library defines this for functions which it implements
23929 to always fail with ENOSYS. Some functions are actually named
23930 something starting with __ and the normal name is an alias. */
23931 #if defined __stub_$ac_func || defined __stub___$ac_func
23938 return $ac_func ();
23943 rm -f conftest.$ac_objext conftest$ac_exeext
23944 if { (ac_try="$ac_link"
23945 case "(($ac_try" in
23946 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23947 *) ac_try_echo
=$ac_try;;
23949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23950 (eval "$ac_link") 2>conftest.er1
23952 grep -v '^ *+' conftest.er1
>conftest.err
23954 cat conftest.err
>&5
23955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23956 (exit $ac_status); } && {
23957 test -z "$ac_c_werror_flag" ||
23958 test ! -s conftest.err
23959 } && test -s conftest
$ac_exeext &&
23960 $as_test_x conftest
$ac_exeext; then
23961 eval "$as_ac_var=yes"
23963 echo "$as_me: failed program was:" >&5
23964 sed 's/^/| /' conftest.
$ac_ext >&5
23966 eval "$as_ac_var=no"
23969 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23970 conftest
$ac_exeext conftest.
$ac_ext
23972 ac_res
=`eval echo '${'$as_ac_var'}'`
23973 { echo "$as_me:$LINENO: result: $ac_res" >&5
23974 echo "${ECHO_T}$ac_res" >&6; }
23975 if test `eval echo '${'$as_ac_var'}'` = yes; then
23976 cat >>confdefs.h
<<_ACEOF
23977 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23983 { echo "$as_me:$LINENO: checking whether isinf is declared" >&5
23984 echo $ECHO_N "checking whether isinf is declared... $ECHO_C" >&6; }
23985 if test "${ac_cv_have_decl_isinf+set}" = set; then
23986 echo $ECHO_N "(cached) $ECHO_C" >&6
23988 cat >conftest.
$ac_ext <<_ACEOF
23991 cat confdefs.h
>>conftest.
$ac_ext
23992 cat >>conftest.
$ac_ext <<_ACEOF
23993 /* end confdefs.h. */
24007 rm -f conftest.
$ac_objext
24008 if { (ac_try
="$ac_compile"
24009 case "(($ac_try" in
24010 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24011 *) ac_try_echo=$ac_try;;
24013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24014 (eval "$ac_compile") 2>conftest.er1
24016 grep -v '^ *+' conftest.er1 >conftest.err
24018 cat conftest.err >&5
24019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24020 (exit $ac_status); } && {
24021 test -z "$ac_c_werror_flag" ||
24022 test ! -s conftest.err
24023 } && test -s conftest.$ac_objext; then
24024 ac_cv_have_decl_isinf=yes
24026 echo "$as_me: failed program was:" >&5
24027 sed 's/^/| /' conftest.$ac_ext >&5
24029 ac_cv_have_decl_isinf=no
24032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24034 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isinf" >&5
24035 echo "${ECHO_T}$ac_cv_have_decl_isinf" >&6; }
24036 if test $ac_cv_have_decl_isinf = yes; then
24038 cat >>confdefs.h <<_ACEOF
24039 #define HAVE_DECL_ISINF 1
24044 cat >>confdefs.h <<_ACEOF
24045 #define HAVE_DECL_ISINF 0
24050 { echo "$as_me:$LINENO: checking whether isnan is declared" >&5
24051 echo $ECHO_N "checking whether isnan is declared... $ECHO_C" >&6; }
24052 if test "${ac_cv_have_decl_isnan+set}" = set; then
24053 echo $ECHO_N "(cached) $ECHO_C" >&6
24055 cat >conftest.$ac_ext <<_ACEOF
24058 cat confdefs.h >>conftest.$ac_ext
24059 cat >>conftest.$ac_ext <<_ACEOF
24060 /* end confdefs.h. */
24074 rm -f conftest.$ac_objext
24075 if { (ac_try="$ac_compile"
24076 case "(($ac_try" in
24077 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24078 *) ac_try_echo
=$ac_try;;
24080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24081 (eval "$ac_compile") 2>conftest.er1
24083 grep -v '^ *+' conftest.er1
>conftest.err
24085 cat conftest.err
>&5
24086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24087 (exit $ac_status); } && {
24088 test -z "$ac_c_werror_flag" ||
24089 test ! -s conftest.err
24090 } && test -s conftest.
$ac_objext; then
24091 ac_cv_have_decl_isnan
=yes
24093 echo "$as_me: failed program was:" >&5
24094 sed 's/^/| /' conftest.
$ac_ext >&5
24096 ac_cv_have_decl_isnan
=no
24099 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24101 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isnan" >&5
24102 echo "${ECHO_T}$ac_cv_have_decl_isnan" >&6; }
24103 if test $ac_cv_have_decl_isnan = yes; then
24105 cat >>confdefs.h
<<_ACEOF
24106 #define HAVE_DECL_ISNAN 1
24111 cat >>confdefs.h
<<_ACEOF
24112 #define HAVE_DECL_ISNAN 0
24117 { echo "$as_me:$LINENO: checking whether isfinite is declared" >&5
24118 echo $ECHO_N "checking whether isfinite is declared... $ECHO_C" >&6; }
24119 if test "${ac_cv_have_decl_isfinite+set}" = set; then
24120 echo $ECHO_N "(cached) $ECHO_C" >&6
24122 cat >conftest.
$ac_ext <<_ACEOF
24125 cat confdefs.h
>>conftest.
$ac_ext
24126 cat >>conftest.
$ac_ext <<_ACEOF
24127 /* end confdefs.h. */
24141 rm -f conftest.
$ac_objext
24142 if { (ac_try
="$ac_compile"
24143 case "(($ac_try" in
24144 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24145 *) ac_try_echo=$ac_try;;
24147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24148 (eval "$ac_compile") 2>conftest.er1
24150 grep -v '^ *+' conftest.er1 >conftest.err
24152 cat conftest.err >&5
24153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24154 (exit $ac_status); } && {
24155 test -z "$ac_c_werror_flag" ||
24156 test ! -s conftest.err
24157 } && test -s conftest.$ac_objext; then
24158 ac_cv_have_decl_isfinite=yes
24160 echo "$as_me: failed program was:" >&5
24161 sed 's/^/| /' conftest.$ac_ext >&5
24163 ac_cv_have_decl_isfinite=no
24166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24168 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isfinite" >&5
24169 echo "${ECHO_T}$ac_cv_have_decl_isfinite" >&6; }
24170 if test $ac_cv_have_decl_isfinite = yes; then
24172 cat >>confdefs.h <<_ACEOF
24173 #define HAVE_DECL_ISFINITE 1
24178 cat >>confdefs.h <<_ACEOF
24179 #define HAVE_DECL_ISFINITE 0
24189 # determine what size digit to use for Python's longs
24190 { echo "$as_me:$LINENO: checking digit size for Python's longs" >&5
24191 echo $ECHO_N "checking digit size for Python's longs... $ECHO_C" >&6; }
24192 # Check whether --enable-big-digits was given.
24193 if test "${enable_big_digits+set}" = set; then
24194 enableval=$enable_big_digits; case $enable_big_digits in
24196 enable_big_digits=30 ;;
24198 enable_big_digits=15 ;;
24202 { { echo "$as_me:$LINENO: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&5
24203 echo "$as_me: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&2;}
24204 { (exit 1); exit 1; }; } ;;
24206 { echo "$as_me:$LINENO: result: $enable_big_digits" >&5
24207 echo "${ECHO_T}$enable_big_digits" >&6; }
24209 cat >>confdefs.h <<_ACEOF
24210 #define PYLONG_BITS_IN_DIGIT $enable_big_digits
24215 { echo "$as_me:$LINENO: result: no value specified" >&5
24216 echo "${ECHO_T}no value specified" >&6; }
24220 # check for wchar.h
24221 if test "${ac_cv_header_wchar_h+set}" = set; then
24222 { echo "$as_me:$LINENO: checking for wchar.h" >&5
24223 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
24224 if test "${ac_cv_header_wchar_h+set}" = set; then
24225 echo $ECHO_N "(cached) $ECHO_C" >&6
24227 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
24228 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
24230 # Is the header compilable?
24231 { echo "$as_me:$LINENO: checking wchar.h usability" >&5
24232 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; }
24233 cat >conftest.$ac_ext <<_ACEOF
24236 cat confdefs.h >>conftest.$ac_ext
24237 cat >>conftest.$ac_ext <<_ACEOF
24238 /* end confdefs.h. */
24239 $ac_includes_default
24242 rm -f conftest.$ac_objext
24243 if { (ac_try="$ac_compile"
24244 case "(($ac_try" in
24245 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24246 *) ac_try_echo
=$ac_try;;
24248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24249 (eval "$ac_compile") 2>conftest.er1
24251 grep -v '^ *+' conftest.er1
>conftest.err
24253 cat conftest.err
>&5
24254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24255 (exit $ac_status); } && {
24256 test -z "$ac_c_werror_flag" ||
24257 test ! -s conftest.err
24258 } && test -s conftest.
$ac_objext; then
24259 ac_header_compiler
=yes
24261 echo "$as_me: failed program was:" >&5
24262 sed 's/^/| /' conftest.
$ac_ext >&5
24264 ac_header_compiler
=no
24267 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24268 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24269 echo "${ECHO_T}$ac_header_compiler" >&6; }
24271 # Is the header present?
24272 { echo "$as_me:$LINENO: checking wchar.h presence" >&5
24273 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; }
24274 cat >conftest.
$ac_ext <<_ACEOF
24277 cat confdefs.h
>>conftest.
$ac_ext
24278 cat >>conftest.
$ac_ext <<_ACEOF
24279 /* end confdefs.h. */
24282 if { (ac_try
="$ac_cpp conftest.$ac_ext"
24283 case "(($ac_try" in
24284 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24285 *) ac_try_echo=$ac_try;;
24287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24288 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24290 grep -v '^ *+' conftest.er1 >conftest.err
24292 cat conftest.err >&5
24293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24294 (exit $ac_status); } >/dev/null && {
24295 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24296 test ! -s conftest.err
24298 ac_header_preproc=yes
24300 echo "$as_me: failed program was:" >&5
24301 sed 's/^/| /' conftest.$ac_ext >&5
24303 ac_header_preproc=no
24306 rm -f conftest.err conftest.$ac_ext
24307 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24308 echo "${ECHO_T}$ac_header_preproc" >&6; }
24310 # So? What about this header?
24311 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24313 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
24314 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24315 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
24316 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
24317 ac_header_preproc=yes
24320 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
24321 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
24322 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
24323 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
24324 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
24325 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
24326 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
24327 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
24328 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
24329 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
24330 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
24331 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
24333 ## -------------------------------------- ##
24334 ## Report this to http://bugs.python.org/ ##
24335 ## -------------------------------------- ##
24337 ) | sed "s/^/$as_me: WARNING: /" >&2
24340 { echo "$as_me:$LINENO: checking for wchar.h" >&5
24341 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
24342 if test "${ac_cv_header_wchar_h+set}" = set; then
24343 echo $ECHO_N "(cached) $ECHO_C" >&6
24345 ac_cv_header_wchar_h=$ac_header_preproc
24347 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
24348 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
24351 if test $ac_cv_header_wchar_h = yes; then
24354 cat >>confdefs.h <<\_ACEOF
24355 #define HAVE_WCHAR_H 1
24367 # determine wchar_t size
24368 if test "$wchar_h" = yes
24370 { echo "$as_me:$LINENO: checking for wchar_t" >&5
24371 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
24372 if test "${ac_cv_type_wchar_t+set}" = set; then
24373 echo $ECHO_N "(cached) $ECHO_C" >&6
24375 cat >conftest.$ac_ext <<_ACEOF
24378 cat confdefs.h >>conftest.$ac_ext
24379 cat >>conftest.$ac_ext <<_ACEOF
24380 /* end confdefs.h. */
24383 typedef wchar_t ac__type_new_;
24387 if ((ac__type_new_ *) 0)
24389 if (sizeof (ac__type_new_))
24395 rm -f conftest.$ac_objext
24396 if { (ac_try="$ac_compile"
24397 case "(($ac_try" in
24398 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24399 *) ac_try_echo
=$ac_try;;
24401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24402 (eval "$ac_compile") 2>conftest.er1
24404 grep -v '^ *+' conftest.er1
>conftest.err
24406 cat conftest.err
>&5
24407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24408 (exit $ac_status); } && {
24409 test -z "$ac_c_werror_flag" ||
24410 test ! -s conftest.err
24411 } && test -s conftest.
$ac_objext; then
24412 ac_cv_type_wchar_t
=yes
24414 echo "$as_me: failed program was:" >&5
24415 sed 's/^/| /' conftest.
$ac_ext >&5
24417 ac_cv_type_wchar_t
=no
24420 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24422 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
24423 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
24425 # The cast to long int works around a bug in the HP C Compiler
24426 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24427 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24428 # This bug is HP SR number 8606223364.
24429 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
24430 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
24431 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
24432 echo $ECHO_N "(cached) $ECHO_C" >&6
24434 if test "$cross_compiling" = yes; then
24435 # Depending upon the size, compute the lo and hi bounds.
24436 cat >conftest.
$ac_ext <<_ACEOF
24439 cat confdefs.h
>>conftest.
$ac_ext
24440 cat >>conftest.
$ac_ext <<_ACEOF
24441 /* end confdefs.h. */
24444 typedef wchar_t ac__type_sizeof_;
24448 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24455 rm -f conftest.
$ac_objext
24456 if { (ac_try
="$ac_compile"
24457 case "(($ac_try" in
24458 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24459 *) ac_try_echo=$ac_try;;
24461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24462 (eval "$ac_compile") 2>conftest.er1
24464 grep -v '^ *+' conftest.er1 >conftest.err
24466 cat conftest.err >&5
24467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24468 (exit $ac_status); } && {
24469 test -z "$ac_c_werror_flag" ||
24470 test ! -s conftest.err
24471 } && test -s conftest.$ac_objext; then
24474 cat >conftest.$ac_ext <<_ACEOF
24477 cat confdefs.h >>conftest.$ac_ext
24478 cat >>conftest.$ac_ext <<_ACEOF
24479 /* end confdefs.h. */
24482 typedef wchar_t ac__type_sizeof_;
24486 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24493 rm -f conftest.$ac_objext
24494 if { (ac_try="$ac_compile"
24495 case "(($ac_try" in
24496 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24497 *) ac_try_echo
=$ac_try;;
24499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24500 (eval "$ac_compile") 2>conftest.er1
24502 grep -v '^ *+' conftest.er1
>conftest.err
24504 cat conftest.err
>&5
24505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24506 (exit $ac_status); } && {
24507 test -z "$ac_c_werror_flag" ||
24508 test ! -s conftest.err
24509 } && test -s conftest.
$ac_objext; then
24510 ac_hi
=$ac_mid; break
24512 echo "$as_me: failed program was:" >&5
24513 sed 's/^/| /' conftest.
$ac_ext >&5
24515 ac_lo
=`expr $ac_mid + 1`
24516 if test $ac_lo -le $ac_mid; then
24520 ac_mid
=`expr 2 '*' $ac_mid + 1`
24523 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24526 echo "$as_me: failed program was:" >&5
24527 sed 's/^/| /' conftest.
$ac_ext >&5
24529 cat >conftest.
$ac_ext <<_ACEOF
24532 cat confdefs.h
>>conftest.
$ac_ext
24533 cat >>conftest.
$ac_ext <<_ACEOF
24534 /* end confdefs.h. */
24537 typedef wchar_t ac__type_sizeof_;
24541 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24548 rm -f conftest.
$ac_objext
24549 if { (ac_try
="$ac_compile"
24550 case "(($ac_try" in
24551 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24552 *) ac_try_echo=$ac_try;;
24554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24555 (eval "$ac_compile") 2>conftest.er1
24557 grep -v '^ *+' conftest.er1 >conftest.err
24559 cat conftest.err >&5
24560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24561 (exit $ac_status); } && {
24562 test -z "$ac_c_werror_flag" ||
24563 test ! -s conftest.err
24564 } && test -s conftest.$ac_objext; then
24567 cat >conftest.$ac_ext <<_ACEOF
24570 cat confdefs.h >>conftest.$ac_ext
24571 cat >>conftest.$ac_ext <<_ACEOF
24572 /* end confdefs.h. */
24575 typedef wchar_t ac__type_sizeof_;
24579 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24586 rm -f conftest.$ac_objext
24587 if { (ac_try="$ac_compile"
24588 case "(($ac_try" in
24589 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24590 *) ac_try_echo
=$ac_try;;
24592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24593 (eval "$ac_compile") 2>conftest.er1
24595 grep -v '^ *+' conftest.er1
>conftest.err
24597 cat conftest.err
>&5
24598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24599 (exit $ac_status); } && {
24600 test -z "$ac_c_werror_flag" ||
24601 test ! -s conftest.err
24602 } && test -s conftest.
$ac_objext; then
24603 ac_lo
=$ac_mid; break
24605 echo "$as_me: failed program was:" >&5
24606 sed 's/^/| /' conftest.
$ac_ext >&5
24608 ac_hi
=`expr '(' $ac_mid ')' - 1`
24609 if test $ac_mid -le $ac_hi; then
24613 ac_mid
=`expr 2 '*' $ac_mid`
24616 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24619 echo "$as_me: failed program was:" >&5
24620 sed 's/^/| /' conftest.
$ac_ext >&5
24625 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24628 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24629 # Binary search between lo and hi bounds.
24630 while test "x$ac_lo" != "x$ac_hi"; do
24631 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24632 cat >conftest.
$ac_ext <<_ACEOF
24635 cat confdefs.h
>>conftest.
$ac_ext
24636 cat >>conftest.
$ac_ext <<_ACEOF
24637 /* end confdefs.h. */
24640 typedef wchar_t ac__type_sizeof_;
24644 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24651 rm -f conftest.
$ac_objext
24652 if { (ac_try
="$ac_compile"
24653 case "(($ac_try" in
24654 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24655 *) ac_try_echo=$ac_try;;
24657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24658 (eval "$ac_compile") 2>conftest.er1
24660 grep -v '^ *+' conftest.er1 >conftest.err
24662 cat conftest.err >&5
24663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24664 (exit $ac_status); } && {
24665 test -z "$ac_c_werror_flag" ||
24666 test ! -s conftest.err
24667 } && test -s conftest.$ac_objext; then
24670 echo "$as_me: failed program was:" >&5
24671 sed 's/^/| /' conftest.$ac_ext >&5
24673 ac_lo=`expr '(' $ac_mid ')' + 1`
24676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24679 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
24680 '') if test "$ac_cv_type_wchar_t" = yes; then
24681 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
24682 See \`config.log
' for more details." >&5
24683 echo "$as_me: error: cannot compute sizeof (wchar_t)
24684 See \`config.log' for more details.
" >&2;}
24685 { (exit 77); exit 77; }; }
24687 ac_cv_sizeof_wchar_t=0
24691 cat >conftest.$ac_ext <<_ACEOF
24694 cat confdefs.h >>conftest.$ac_ext
24695 cat >>conftest.$ac_ext <<_ACEOF
24696 /* end confdefs.h. */
24699 typedef wchar_t ac__type_sizeof_;
24700 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24701 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24703 #include <stdlib.h>
24708 FILE *f = fopen ("conftest.val
", "w
");
24711 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24713 long int i = longval ();
24714 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24716 fprintf (f, "%ld
\n", i);
24720 unsigned long int i = ulongval ();
24721 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24723 fprintf (f, "%lu
\n", i);
24725 return ferror (f) || fclose (f) != 0;
24731 rm -f conftest$ac_exeext
24732 if { (ac_try="$ac_link"
24733 case "(($ac_try" in
24734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24735 *) ac_try_echo=$ac_try;;
24737 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24738 (eval "$ac_link") 2>&5
24740 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24741 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24742 { (case "(($ac_try" in
24743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24744 *) ac_try_echo=$ac_try;;
24746 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24747 (eval "$ac_try") 2>&5
24749 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24750 (exit $ac_status); }; }; then
24751 ac_cv_sizeof_wchar_t=`cat conftest.val`
24753 echo "$as_me: program exited with status
$ac_status" >&5
24754 echo "$as_me: failed program was
:" >&5
24755 sed 's/^/| /' conftest.$ac_ext >&5
24757 ( exit $ac_status )
24758 if test "$ac_cv_type_wchar_t" = yes; then
24759 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(wchar_t
)
24760 See \
`config.log' for more details." >&5
24761 echo "$as_me: error: cannot compute sizeof (wchar_t)
24762 See \`config.log
' for more details." >&2;}
24763 { (exit 77); exit 77; }; }
24765 ac_cv_sizeof_wchar_t=0
24768 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24772 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
24773 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
24777 cat >>confdefs.h <<_ACEOF
24778 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
24784 { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
24785 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6; }
24787 cat >conftest.$ac_ext <<_ACEOF
24790 cat confdefs.h >>conftest.$ac_ext
24791 cat >>conftest.$ac_ext <<_ACEOF
24792 /* end confdefs.h. */
24795 #if TCL_UTF_MAX != 6
24796 # error "NOT UCS4_TCL"
24806 rm -f conftest.$ac_objext
24807 if { (ac_try="$ac_compile"
24808 case "(($ac_try" in
24809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24810 *) ac_try_echo=$ac_try;;
24812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24813 (eval "$ac_compile") 2>conftest.er1
24815 grep -v '^
*+' conftest.er1 >conftest.err
24817 cat conftest.err >&5
24818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24819 (exit $ac_status); } && {
24820 test -z "$ac_c_werror_flag" ||
24821 test ! -s conftest.err
24822 } && test -s conftest.$ac_objext; then
24825 cat >>confdefs.h <<\_ACEOF
24826 #define HAVE_UCS4_TCL 1
24832 echo "$as_me: failed program was:" >&5
24833 sed 's
/^
/|
/' conftest.$ac_ext >&5
24838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24839 { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
24840 echo "${ECHO_T}$have_ucs4_tcl" >&6; }
24842 # check whether wchar_t is signed or not
24843 if test "$wchar_h" = yes
24845 # check whether wchar_t is signed or not
24846 { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
24847 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6; }
24848 if test "${ac_cv_wchar_t_signed+set}" = set; then
24849 echo $ECHO_N "(cached) $ECHO_C" >&6
24852 if test "$cross_compiling" = yes; then
24853 ac_cv_wchar_t_signed=yes
24855 cat >conftest.$ac_ext <<_ACEOF
24858 cat confdefs.h >>conftest.$ac_ext
24859 cat >>conftest.$ac_ext <<_ACEOF
24860 /* end confdefs.h. */
24865 /* Success: exit code 0 */
24866 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
24870 rm -f conftest$ac_exeext
24871 if { (ac_try="$ac_link"
24872 case "(($ac_try" in
24873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24874 *) ac_try_echo=$ac_try;;
24876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24877 (eval "$ac_link") 2>&5
24879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24880 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
24881 { (case "(($ac_try" in
24882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24883 *) ac_try_echo=$ac_try;;
24885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24886 (eval "$ac_try") 2>&5
24888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24889 (exit $ac_status); }; }; then
24890 ac_cv_wchar_t_signed=yes
24892 echo "$as_me: program exited with status $ac_status" >&5
24893 echo "$as_me: failed program was:" >&5
24894 sed 's
/^
/|
/' conftest.$ac_ext >&5
24896 ( exit $ac_status )
24897 ac_cv_wchar_t_signed=no
24899 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24905 { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
24906 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
24909 { echo "$as_me:$LINENO: checking what type to use for unicode" >&5
24910 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6; }
24911 # Check whether --enable-unicode was given.
24912 if test "${enable_unicode+set}" = set; then
24913 enableval=$enable_unicode;
24919 if test $enable_unicode = yes
24921 # Without any arguments, Py_UNICODE defaults to two-byte mode
24922 case "$have_ucs4_tcl" in
24923 yes) enable_unicode="ucs4"
24925 *) enable_unicode="ucs2"
24932 case "$enable_unicode" in
24933 ucs2) unicode_size="2"
24934 cat >>confdefs.h <<\_ACEOF
24935 #define Py_UNICODE_SIZE 2
24939 ucs4) unicode_size="4"
24940 cat >>confdefs.h <<\_ACEOF
24941 #define Py_UNICODE_SIZE 4
24951 if test "$enable_unicode" = "no"
24954 { echo "$as_me:$LINENO: result: not used" >&5
24955 echo "${ECHO_T}not used" >&6; }
24957 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
24959 cat >>confdefs.h <<\_ACEOF
24960 #define Py_USING_UNICODE 1
24964 # wchar_t is only usable if it maps to an unsigned type
24965 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
24966 -a "$ac_cv_wchar_t_signed" = "no"
24968 PY_UNICODE_TYPE="wchar_t"
24970 cat >>confdefs.h <<\_ACEOF
24971 #define HAVE_USABLE_WCHAR_T 1
24974 cat >>confdefs.h <<\_ACEOF
24975 #define PY_UNICODE_TYPE wchar_t
24978 elif test "$ac_cv_sizeof_short" = "$unicode_size"
24980 PY_UNICODE_TYPE="unsigned short"
24981 cat >>confdefs.h <<\_ACEOF
24982 #define PY_UNICODE_TYPE unsigned short
24985 elif test "$ac_cv_sizeof_long" = "$unicode_size"
24987 PY_UNICODE_TYPE="unsigned long"
24988 cat >>confdefs.h <<\_ACEOF
24989 #define PY_UNICODE_TYPE unsigned long
24993 PY_UNICODE_TYPE="no type found"
24995 { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
24996 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
24999 # check for endianness
25000 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
25001 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
25002 if test "${ac_cv_c_bigendian+set}" = set; then
25003 echo $ECHO_N "(cached) $ECHO_C" >&6
25005 # See if sys/param.h defines the BYTE_ORDER macro.
25006 cat >conftest.$ac_ext <<_ACEOF
25009 cat confdefs.h >>conftest.$ac_ext
25010 cat >>conftest.$ac_ext <<_ACEOF
25011 /* end confdefs.h. */
25012 #include <sys/types.h>
25013 #include <sys/param.h>
25018 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
25019 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
25020 bogus endian macros
25027 rm -f conftest.$ac_objext
25028 if { (ac_try="$ac_compile"
25029 case "(($ac_try" in
25030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25031 *) ac_try_echo=$ac_try;;
25033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25034 (eval "$ac_compile") 2>conftest.er1
25036 grep -v '^
*+' conftest.er1 >conftest.err
25038 cat conftest.err >&5
25039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25040 (exit $ac_status); } && {
25041 test -z "$ac_c_werror_flag" ||
25042 test ! -s conftest.err
25043 } && test -s conftest.$ac_objext; then
25044 # It does; now see whether it defined to BIG_ENDIAN or not.
25045 cat >conftest.$ac_ext <<_ACEOF
25048 cat confdefs.h >>conftest.$ac_ext
25049 cat >>conftest.$ac_ext <<_ACEOF
25050 /* end confdefs.h. */
25051 #include <sys/types.h>
25052 #include <sys/param.h>
25057 #if BYTE_ORDER != BIG_ENDIAN
25065 rm -f conftest.$ac_objext
25066 if { (ac_try="$ac_compile"
25067 case "(($ac_try" in
25068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25069 *) ac_try_echo=$ac_try;;
25071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25072 (eval "$ac_compile") 2>conftest.er1
25074 grep -v '^
*+' conftest.er1 >conftest.err
25076 cat conftest.err >&5
25077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25078 (exit $ac_status); } && {
25079 test -z "$ac_c_werror_flag" ||
25080 test ! -s conftest.err
25081 } && test -s conftest.$ac_objext; then
25082 ac_cv_c_bigendian=yes
25084 echo "$as_me: failed program was:" >&5
25085 sed 's
/^
/|
/' conftest.$ac_ext >&5
25087 ac_cv_c_bigendian=no
25090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25092 echo "$as_me: failed program was:" >&5
25093 sed 's
/^
/|
/' conftest.$ac_ext >&5
25095 # It does not; compile a test program.
25096 if test "$cross_compiling" = yes; then
25097 # try to guess the endianness by grepping values into an object file
25098 ac_cv_c_bigendian=unknown
25099 cat >conftest.$ac_ext <<_ACEOF
25102 cat confdefs.h >>conftest.$ac_ext
25103 cat >>conftest.$ac_ext <<_ACEOF
25104 /* end confdefs.h. */
25105 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
25106 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
25107 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
25108 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
25109 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
25110 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
25114 _ascii (); _ebcdic ();
25119 rm -f conftest.$ac_objext
25120 if { (ac_try="$ac_compile"
25121 case "(($ac_try" in
25122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25123 *) ac_try_echo=$ac_try;;
25125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25126 (eval "$ac_compile") 2>conftest.er1
25128 grep -v '^
*+' conftest.er1 >conftest.err
25130 cat conftest.err >&5
25131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25132 (exit $ac_status); } && {
25133 test -z "$ac_c_werror_flag" ||
25134 test ! -s conftest.err
25135 } && test -s conftest.$ac_objext; then
25136 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
25137 ac_cv_c_bigendian=yes
25139 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
25140 if test "$ac_cv_c_bigendian" = unknown; then
25141 ac_cv_c_bigendian=no
25143 # finding both strings is unlikely to happen, but who knows?
25144 ac_cv_c_bigendian=unknown
25148 echo "$as_me: failed program was:" >&5
25149 sed 's
/^
/|
/' conftest.$ac_ext >&5
25154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25156 cat >conftest.$ac_ext <<_ACEOF
25159 cat confdefs.h >>conftest.$ac_ext
25160 cat >>conftest.$ac_ext <<_ACEOF
25161 /* end confdefs.h. */
25162 $ac_includes_default
25167 /* Are we little or big endian? From Harbison&Steele. */
25171 char c[sizeof (long int)];
25174 return u.c[sizeof (long int) - 1] == 1;
25180 rm -f conftest$ac_exeext
25181 if { (ac_try="$ac_link"
25182 case "(($ac_try" in
25183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25184 *) ac_try_echo=$ac_try;;
25186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25187 (eval "$ac_link") 2>&5
25189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25190 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
25191 { (case "(($ac_try" in
25192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25193 *) ac_try_echo=$ac_try;;
25195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25196 (eval "$ac_try") 2>&5
25198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25199 (exit $ac_status); }; }; then
25200 ac_cv_c_bigendian=no
25202 echo "$as_me: program exited with status $ac_status" >&5
25203 echo "$as_me: failed program was:" >&5
25204 sed 's
/^
/|
/' conftest.$ac_ext >&5
25206 ( exit $ac_status )
25207 ac_cv_c_bigendian=yes
25209 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25217 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
25218 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
25219 case $ac_cv_c_bigendian in
25222 cat >>confdefs.h <<\_ACEOF
25223 #define WORDS_BIGENDIAN 1
25229 { { echo "$as_me:$LINENO: error: unknown endianness
25230 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
25231 echo "$as_me: error: unknown endianness
25232 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
25233 { (exit 1); exit 1; }; } ;;
25237 # Check whether right shifting a negative integer extends the sign bit
25238 # or fills with zeros (like the Cray J90, according to Tim Peters).
25239 { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
25240 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6; }
25241 if test "${ac_cv_rshift_extends_sign+set}" = set; then
25242 echo $ECHO_N "(cached) $ECHO_C" >&6
25245 if test "$cross_compiling" = yes; then
25246 ac_cv_rshift_extends_sign=yes
25248 cat >conftest.$ac_ext <<_ACEOF
25251 cat confdefs.h >>conftest.$ac_ext
25252 cat >>conftest.$ac_ext <<_ACEOF
25253 /* end confdefs.h. */
25257 exit(((-1)>>3 == -1) ? 0 : 1);
25261 rm -f conftest$ac_exeext
25262 if { (ac_try="$ac_link"
25263 case "(($ac_try" in
25264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25265 *) ac_try_echo=$ac_try;;
25267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25268 (eval "$ac_link") 2>&5
25270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25271 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
25272 { (case "(($ac_try" in
25273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25274 *) ac_try_echo=$ac_try;;
25276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25277 (eval "$ac_try") 2>&5
25279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25280 (exit $ac_status); }; }; then
25281 ac_cv_rshift_extends_sign=yes
25283 echo "$as_me: program exited with status $ac_status" >&5
25284 echo "$as_me: failed program was:" >&5
25285 sed 's
/^
/|
/' conftest.$ac_ext >&5
25287 ( exit $ac_status )
25288 ac_cv_rshift_extends_sign=no
25290 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25296 { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
25297 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
25298 if test "$ac_cv_rshift_extends_sign" = no
25301 cat >>confdefs.h <<\_ACEOF
25302 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
25307 # check for getc_unlocked and related locking functions
25308 { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
25309 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6; }
25310 if test "${ac_cv_have_getc_unlocked+set}" = set; then
25311 echo $ECHO_N "(cached) $ECHO_C" >&6
25314 cat >conftest.$ac_ext <<_ACEOF
25317 cat confdefs.h >>conftest.$ac_ext
25318 cat >>conftest.$ac_ext <<_ACEOF
25319 /* end confdefs.h. */
25325 FILE *f = fopen("/dev/null", "r");
25334 rm -f conftest.$ac_objext conftest$ac_exeext
25335 if { (ac_try="$ac_link"
25336 case "(($ac_try" in
25337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25338 *) ac_try_echo=$ac_try;;
25340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25341 (eval "$ac_link") 2>conftest.er1
25343 grep -v '^
*+' conftest.er1 >conftest.err
25345 cat conftest.err >&5
25346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25347 (exit $ac_status); } && {
25348 test -z "$ac_c_werror_flag" ||
25349 test ! -s conftest.err
25350 } && test -s conftest$ac_exeext &&
25351 $as_test_x conftest$ac_exeext; then
25352 ac_cv_have_getc_unlocked=yes
25354 echo "$as_me: failed program was:" >&5
25355 sed 's
/^
/|
/' conftest.$ac_ext >&5
25357 ac_cv_have_getc_unlocked=no
25360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25361 conftest$ac_exeext conftest.$ac_ext
25364 { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
25365 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
25366 if test "$ac_cv_have_getc_unlocked" = yes
25369 cat >>confdefs.h <<\_ACEOF
25370 #define HAVE_GETC_UNLOCKED 1
25375 # check where readline lives
25376 # save the value of LIBS so we don't actually link Python with readline
25377 LIBS_no_readline
=$LIBS
25379 # On some systems we need to link readline to a termcap compatible
25380 # library. NOTE: Keep the precedence of listed libraries synchronised
25382 py_cv_lib_readline
=no
25383 { echo "$as_me:$LINENO: checking how to link readline libs" >&5
25384 echo $ECHO_N "checking how to link readline libs... $ECHO_C" >&6; }
25385 for py_libtermcap
in "" ncursesw ncurses curses termcap
; do
25386 if test -z "$py_libtermcap"; then
25387 READLINE_LIBS
="-lreadline"
25389 READLINE_LIBS
="-lreadline -l$py_libtermcap"
25391 LIBS
="$READLINE_LIBS $LIBS_no_readline"
25392 cat >conftest.
$ac_ext <<_ACEOF
25395 cat confdefs.h
>>conftest.
$ac_ext
25396 cat >>conftest.
$ac_ext <<_ACEOF
25397 /* end confdefs.h. */
25399 /* Override any GCC internal prototype to avoid an error.
25400 Use char because int might match the return type of a GCC
25401 builtin and then its argument prototype would still apply. */
25409 return readline ();
25414 rm -f conftest.
$ac_objext conftest
$ac_exeext
25415 if { (ac_try
="$ac_link"
25416 case "(($ac_try" in
25417 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25418 *) ac_try_echo=$ac_try;;
25420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25421 (eval "$ac_link") 2>conftest.er1
25423 grep -v '^ *+' conftest.er1 >conftest.err
25425 cat conftest.err >&5
25426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25427 (exit $ac_status); } && {
25428 test -z "$ac_c_werror_flag" ||
25429 test ! -s conftest.err
25430 } && test -s conftest$ac_exeext &&
25431 $as_test_x conftest$ac_exeext; then
25432 py_cv_lib_readline=yes
25434 echo "$as_me: failed program was:" >&5
25435 sed 's/^/| /' conftest.$ac_ext >&5
25440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25441 conftest$ac_exeext conftest.$ac_ext
25442 if test $py_cv_lib_readline = yes; then
25446 # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts
25447 #AC_SUBST([READLINE_LIBS])
25448 if test $py_cv_lib_readline = no; then
25449 { echo "$as_me:$LINENO: result: none" >&5
25450 echo "${ECHO_T}none" >&6; }
25452 { echo "$as_me:$LINENO: result: $READLINE_LIBS" >&5
25453 echo "${ECHO_T}$READLINE_LIBS" >&6; }
25455 cat >>confdefs.h <<\_ACEOF
25456 #define HAVE_LIBREADLINE 1
25461 # check for readline 2.1
25462 { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
25463 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6; }
25464 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
25465 echo $ECHO_N "(cached) $ECHO_C" >&6
25467 ac_check_lib_save_LIBS=$LIBS
25468 LIBS="-lreadline $READLINE_LIBS $LIBS"
25469 cat >conftest.$ac_ext <<_ACEOF
25472 cat confdefs.h >>conftest.$ac_ext
25473 cat >>conftest.$ac_ext <<_ACEOF
25474 /* end confdefs.h. */
25476 /* Override any GCC internal prototype to avoid an error.
25477 Use char because int might match the return type of a GCC
25478 builtin and then its argument prototype would still apply. */
25482 char rl_callback_handler_install ();
25486 return rl_callback_handler_install ();
25491 rm -f conftest.$ac_objext conftest$ac_exeext
25492 if { (ac_try="$ac_link"
25493 case "(($ac_try" in
25494 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25495 *) ac_try_echo
=$ac_try;;
25497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25498 (eval "$ac_link") 2>conftest.er1
25500 grep -v '^ *+' conftest.er1
>conftest.err
25502 cat conftest.err
>&5
25503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25504 (exit $ac_status); } && {
25505 test -z "$ac_c_werror_flag" ||
25506 test ! -s conftest.err
25507 } && test -s conftest
$ac_exeext &&
25508 $as_test_x conftest
$ac_exeext; then
25509 ac_cv_lib_readline_rl_callback_handler_install
=yes
25511 echo "$as_me: failed program was:" >&5
25512 sed 's/^/| /' conftest.
$ac_ext >&5
25514 ac_cv_lib_readline_rl_callback_handler_install
=no
25517 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
25518 conftest
$ac_exeext conftest.
$ac_ext
25519 LIBS
=$ac_check_lib_save_LIBS
25521 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
25522 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
25523 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
25525 cat >>confdefs.h
<<\_ACEOF
25526 #define HAVE_RL_CALLBACK 1
25532 # check for readline 2.2
25533 cat >conftest.
$ac_ext <<_ACEOF
25536 cat confdefs.h
>>conftest.
$ac_ext
25537 cat >>conftest.
$ac_ext <<_ACEOF
25538 /* end confdefs.h. */
25539 #include <readline/readline.h>
25541 if { (ac_try
="$ac_cpp conftest.$ac_ext"
25542 case "(($ac_try" in
25543 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25544 *) ac_try_echo=$ac_try;;
25546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25547 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25549 grep -v '^ *+' conftest.er1 >conftest.err
25551 cat conftest.err >&5
25552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25553 (exit $ac_status); } >/dev/null && {
25554 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25555 test ! -s conftest.err
25559 echo "$as_me: failed program was:" >&5
25560 sed 's/^/| /' conftest.$ac_ext >&5
25565 rm -f conftest.err conftest.$ac_ext
25566 if test $have_readline = yes
25568 cat >conftest.$ac_ext <<_ACEOF
25571 cat confdefs.h >>conftest.$ac_ext
25572 cat >>conftest.$ac_ext <<_ACEOF
25573 /* end confdefs.h. */
25574 #include <readline/readline.h>
25577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25578 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then
25580 cat >>confdefs.h <<\_ACEOF
25581 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
25589 # check for readline 4.0
25590 { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
25591 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6; }
25592 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
25593 echo $ECHO_N "(cached) $ECHO_C" >&6
25595 ac_check_lib_save_LIBS=$LIBS
25596 LIBS="-lreadline $READLINE_LIBS $LIBS"
25597 cat >conftest.$ac_ext <<_ACEOF
25600 cat confdefs.h >>conftest.$ac_ext
25601 cat >>conftest.$ac_ext <<_ACEOF
25602 /* end confdefs.h. */
25604 /* Override any GCC internal prototype to avoid an error.
25605 Use char because int might match the return type of a GCC
25606 builtin and then its argument prototype would still apply. */
25610 char rl_pre_input_hook ();
25614 return rl_pre_input_hook ();
25619 rm -f conftest.$ac_objext conftest$ac_exeext
25620 if { (ac_try="$ac_link"
25621 case "(($ac_try" in
25622 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25623 *) ac_try_echo
=$ac_try;;
25625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25626 (eval "$ac_link") 2>conftest.er1
25628 grep -v '^ *+' conftest.er1
>conftest.err
25630 cat conftest.err
>&5
25631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25632 (exit $ac_status); } && {
25633 test -z "$ac_c_werror_flag" ||
25634 test ! -s conftest.err
25635 } && test -s conftest
$ac_exeext &&
25636 $as_test_x conftest
$ac_exeext; then
25637 ac_cv_lib_readline_rl_pre_input_hook
=yes
25639 echo "$as_me: failed program was:" >&5
25640 sed 's/^/| /' conftest.
$ac_ext >&5
25642 ac_cv_lib_readline_rl_pre_input_hook
=no
25645 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
25646 conftest
$ac_exeext conftest.
$ac_ext
25647 LIBS
=$ac_check_lib_save_LIBS
25649 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
25650 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
25651 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
25653 cat >>confdefs.h
<<\_ACEOF
25654 #define HAVE_RL_PRE_INPUT_HOOK 1
25661 { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5
25662 echo $ECHO_N "checking for rl_completion_display_matches_hook in -lreadline... $ECHO_C" >&6; }
25663 if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
25664 echo $ECHO_N "(cached) $ECHO_C" >&6
25666 ac_check_lib_save_LIBS
=$LIBS
25667 LIBS
="-lreadline $READLINE_LIBS $LIBS"
25668 cat >conftest.
$ac_ext <<_ACEOF
25671 cat confdefs.h
>>conftest.
$ac_ext
25672 cat >>conftest.
$ac_ext <<_ACEOF
25673 /* end confdefs.h. */
25675 /* Override any GCC internal prototype to avoid an error.
25676 Use char because int might match the return type of a GCC
25677 builtin and then its argument prototype would still apply. */
25681 char rl_completion_display_matches_hook ();
25685 return rl_completion_display_matches_hook ();
25690 rm -f conftest.
$ac_objext conftest
$ac_exeext
25691 if { (ac_try
="$ac_link"
25692 case "(($ac_try" in
25693 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25694 *) ac_try_echo=$ac_try;;
25696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25697 (eval "$ac_link") 2>conftest.er1
25699 grep -v '^ *+' conftest.er1 >conftest.err
25701 cat conftest.err >&5
25702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25703 (exit $ac_status); } && {
25704 test -z "$ac_c_werror_flag" ||
25705 test ! -s conftest.err
25706 } && test -s conftest$ac_exeext &&
25707 $as_test_x conftest$ac_exeext; then
25708 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
25710 echo "$as_me: failed program was:" >&5
25711 sed 's/^/| /' conftest.$ac_ext >&5
25713 ac_cv_lib_readline_rl_completion_display_matches_hook=no
25716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25717 conftest$ac_exeext conftest.$ac_ext
25718 LIBS=$ac_check_lib_save_LIBS
25720 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
25721 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
25722 if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then
25724 cat >>confdefs.h <<\_ACEOF
25725 #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
25731 # check for readline 4.2
25732 { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
25733 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; }
25734 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
25735 echo $ECHO_N "(cached) $ECHO_C" >&6
25737 ac_check_lib_save_LIBS=$LIBS
25738 LIBS="-lreadline $READLINE_LIBS $LIBS"
25739 cat >conftest.$ac_ext <<_ACEOF
25742 cat confdefs.h >>conftest.$ac_ext
25743 cat >>conftest.$ac_ext <<_ACEOF
25744 /* end confdefs.h. */
25746 /* Override any GCC internal prototype to avoid an error.
25747 Use char because int might match the return type of a GCC
25748 builtin and then its argument prototype would still apply. */
25752 char rl_completion_matches ();
25756 return rl_completion_matches ();
25761 rm -f conftest.$ac_objext conftest$ac_exeext
25762 if { (ac_try="$ac_link"
25763 case "(($ac_try" in
25764 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25765 *) ac_try_echo
=$ac_try;;
25767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25768 (eval "$ac_link") 2>conftest.er1
25770 grep -v '^ *+' conftest.er1
>conftest.err
25772 cat conftest.err
>&5
25773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25774 (exit $ac_status); } && {
25775 test -z "$ac_c_werror_flag" ||
25776 test ! -s conftest.err
25777 } && test -s conftest
$ac_exeext &&
25778 $as_test_x conftest
$ac_exeext; then
25779 ac_cv_lib_readline_rl_completion_matches
=yes
25781 echo "$as_me: failed program was:" >&5
25782 sed 's/^/| /' conftest.
$ac_ext >&5
25784 ac_cv_lib_readline_rl_completion_matches
=no
25787 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
25788 conftest
$ac_exeext conftest.
$ac_ext
25789 LIBS
=$ac_check_lib_save_LIBS
25791 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
25792 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
25793 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
25795 cat >>confdefs.h
<<\_ACEOF
25796 #define HAVE_RL_COMPLETION_MATCHES 1
25802 # also in readline 4.2
25803 cat >conftest.
$ac_ext <<_ACEOF
25806 cat confdefs.h
>>conftest.
$ac_ext
25807 cat >>conftest.
$ac_ext <<_ACEOF
25808 /* end confdefs.h. */
25809 #include <readline/readline.h>
25811 if { (ac_try
="$ac_cpp conftest.$ac_ext"
25812 case "(($ac_try" in
25813 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25814 *) ac_try_echo=$ac_try;;
25816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25817 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25819 grep -v '^ *+' conftest.er1 >conftest.err
25821 cat conftest.err >&5
25822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25823 (exit $ac_status); } >/dev/null && {
25824 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25825 test ! -s conftest.err
25829 echo "$as_me: failed program was:" >&5
25830 sed 's/^/| /' conftest.$ac_ext >&5
25835 rm -f conftest.err conftest.$ac_ext
25836 if test $have_readline = yes
25838 cat >conftest.$ac_ext <<_ACEOF
25841 cat confdefs.h >>conftest.$ac_ext
25842 cat >>conftest.$ac_ext <<_ACEOF
25843 /* end confdefs.h. */
25844 #include <readline/readline.h>
25847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25848 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then
25850 cat >>confdefs.h <<\_ACEOF
25851 #define HAVE_RL_CATCH_SIGNAL 1
25859 # End of readline checks: restore LIBS
25860 LIBS=$LIBS_no_readline
25862 { echo "$as_me:$LINENO: checking for broken nice()" >&5
25863 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; }
25864 if test "${ac_cv_broken_nice+set}" = set; then
25865 echo $ECHO_N "(cached) $ECHO_C" >&6
25868 if test "$cross_compiling" = yes; then
25869 ac_cv_broken_nice=no
25871 cat >conftest.$ac_ext <<_ACEOF
25874 cat confdefs.h >>conftest.$ac_ext
25875 cat >>conftest.$ac_ext <<_ACEOF
25876 /* end confdefs.h. */
25880 int val1 = nice(1);
25881 if (val1 != -1 && val1 == nice(2))
25887 rm -f conftest$ac_exeext
25888 if { (ac_try="$ac_link"
25889 case "(($ac_try" in
25890 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25891 *) ac_try_echo
=$ac_try;;
25893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25894 (eval "$ac_link") 2>&5
25896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25897 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
25898 { (case "(($ac_try" in
25899 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25900 *) ac_try_echo=$ac_try;;
25902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25903 (eval "$ac_try") 2>&5
25905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25906 (exit $ac_status); }; }; then
25907 ac_cv_broken_nice=yes
25909 echo "$as_me: program exited with status $ac_status" >&5
25910 echo "$as_me: failed program was:" >&5
25911 sed 's/^/| /' conftest.$ac_ext >&5
25913 ( exit $ac_status )
25914 ac_cv_broken_nice=no
25916 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25922 { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
25923 echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
25924 if test "$ac_cv_broken_nice" = yes
25927 cat >>confdefs.h <<\_ACEOF
25928 #define HAVE_BROKEN_NICE 1
25933 { echo "$as_me:$LINENO: checking for broken poll()" >&5
25934 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; }
25935 if test "${ac_cv_broken_poll+set}" = set; then
25936 echo $ECHO_N "(cached) $ECHO_C" >&6
25938 if test "$cross_compiling" = yes; then
25939 ac_cv_broken_poll=no
25941 cat >conftest.$ac_ext <<_ACEOF
25944 cat confdefs.h >>conftest.$ac_ext
25945 cat >>conftest.$ac_ext <<_ACEOF
25946 /* end confdefs.h. */
25952 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
25957 poll_test = poll(&poll_struct, 1, 0);
25960 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
25967 rm -f conftest$ac_exeext
25968 if { (ac_try="$ac_link"
25969 case "(($ac_try" in
25970 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25971 *) ac_try_echo
=$ac_try;;
25973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25974 (eval "$ac_link") 2>&5
25976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25977 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
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_try") 2>&5
25985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25986 (exit $ac_status); }; }; then
25987 ac_cv_broken_poll=yes
25989 echo "$as_me: program exited with status $ac_status" >&5
25990 echo "$as_me: failed program was:" >&5
25991 sed 's/^/| /' conftest.$ac_ext >&5
25993 ( exit $ac_status )
25994 ac_cv_broken_poll=no
25996 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26002 { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
26003 echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
26004 if test "$ac_cv_broken_poll" = yes
26007 cat >>confdefs.h <<\_ACEOF
26008 #define HAVE_BROKEN_POLL 1
26013 # Before we can test tzset, we need to check if struct tm has a tm_zone
26014 # (which is not required by ISO C or UNIX spec) and/or if we support
26016 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
26017 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
26018 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
26019 echo $ECHO_N "(cached) $ECHO_C" >&6
26021 cat >conftest.$ac_ext <<_ACEOF
26024 cat confdefs.h >>conftest.$ac_ext
26025 cat >>conftest.$ac_ext <<_ACEOF
26026 /* end confdefs.h. */
26027 #include <sys/types.h>
26028 #include <$ac_cv_struct_tm>
26034 static struct tm ac_aggr;
26035 if (ac_aggr.tm_zone)
26041 rm -f conftest.$ac_objext
26042 if { (ac_try="$ac_compile"
26043 case "(($ac_try" in
26044 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26045 *) ac_try_echo
=$ac_try;;
26047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26048 (eval "$ac_compile") 2>conftest.er1
26050 grep -v '^ *+' conftest.er1
>conftest.err
26052 cat conftest.err
>&5
26053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26054 (exit $ac_status); } && {
26055 test -z "$ac_c_werror_flag" ||
26056 test ! -s conftest.err
26057 } && test -s conftest.
$ac_objext; then
26058 ac_cv_member_struct_tm_tm_zone
=yes
26060 echo "$as_me: failed program was:" >&5
26061 sed 's/^/| /' conftest.
$ac_ext >&5
26063 cat >conftest.
$ac_ext <<_ACEOF
26066 cat confdefs.h
>>conftest.
$ac_ext
26067 cat >>conftest.
$ac_ext <<_ACEOF
26068 /* end confdefs.h. */
26069 #include <sys/types.h>
26070 #include <$ac_cv_struct_tm>
26076 static struct tm ac_aggr;
26077 if (sizeof ac_aggr.tm_zone)
26083 rm -f conftest.
$ac_objext
26084 if { (ac_try
="$ac_compile"
26085 case "(($ac_try" in
26086 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26087 *) ac_try_echo=$ac_try;;
26089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26090 (eval "$ac_compile") 2>conftest.er1
26092 grep -v '^ *+' conftest.er1 >conftest.err
26094 cat conftest.err >&5
26095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26096 (exit $ac_status); } && {
26097 test -z "$ac_c_werror_flag" ||
26098 test ! -s conftest.err
26099 } && test -s conftest.$ac_objext; then
26100 ac_cv_member_struct_tm_tm_zone=yes
26102 echo "$as_me: failed program was:" >&5
26103 sed 's/^/| /' conftest.$ac_ext >&5
26105 ac_cv_member_struct_tm_tm_zone=no
26108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26113 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
26114 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
26115 if test $ac_cv_member_struct_tm_tm_zone = yes; then
26117 cat >>confdefs.h <<_ACEOF
26118 #define HAVE_STRUCT_TM_TM_ZONE 1
26124 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
26126 cat >>confdefs.h <<\_ACEOF
26127 #define HAVE_TM_ZONE 1
26131 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
26132 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
26133 if test "${ac_cv_have_decl_tzname+set}" = set; then
26134 echo $ECHO_N "(cached) $ECHO_C" >&6
26136 cat >conftest.$ac_ext <<_ACEOF
26139 cat confdefs.h >>conftest.$ac_ext
26140 cat >>conftest.$ac_ext <<_ACEOF
26141 /* end confdefs.h. */
26155 rm -f conftest.$ac_objext
26156 if { (ac_try="$ac_compile"
26157 case "(($ac_try" in
26158 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26159 *) ac_try_echo
=$ac_try;;
26161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26162 (eval "$ac_compile") 2>conftest.er1
26164 grep -v '^ *+' conftest.er1
>conftest.err
26166 cat conftest.err
>&5
26167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26168 (exit $ac_status); } && {
26169 test -z "$ac_c_werror_flag" ||
26170 test ! -s conftest.err
26171 } && test -s conftest.
$ac_objext; then
26172 ac_cv_have_decl_tzname
=yes
26174 echo "$as_me: failed program was:" >&5
26175 sed 's/^/| /' conftest.
$ac_ext >&5
26177 ac_cv_have_decl_tzname
=no
26180 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26182 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
26183 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
26184 if test $ac_cv_have_decl_tzname = yes; then
26186 cat >>confdefs.h
<<_ACEOF
26187 #define HAVE_DECL_TZNAME 1
26192 cat >>confdefs.h
<<_ACEOF
26193 #define HAVE_DECL_TZNAME 0
26200 { echo "$as_me:$LINENO: checking for tzname" >&5
26201 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
26202 if test "${ac_cv_var_tzname+set}" = set; then
26203 echo $ECHO_N "(cached) $ECHO_C" >&6
26205 cat >conftest.
$ac_ext <<_ACEOF
26208 cat confdefs.h
>>conftest.
$ac_ext
26209 cat >>conftest.
$ac_ext <<_ACEOF
26210 /* end confdefs.h. */
26212 #if !HAVE_DECL_TZNAME
26213 extern char *tzname[];
26219 return tzname[0][0];
26224 rm -f conftest.
$ac_objext conftest
$ac_exeext
26225 if { (ac_try
="$ac_link"
26226 case "(($ac_try" in
26227 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26228 *) ac_try_echo=$ac_try;;
26230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26231 (eval "$ac_link") 2>conftest.er1
26233 grep -v '^ *+' conftest.er1 >conftest.err
26235 cat conftest.err >&5
26236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26237 (exit $ac_status); } && {
26238 test -z "$ac_c_werror_flag" ||
26239 test ! -s conftest.err
26240 } && test -s conftest$ac_exeext &&
26241 $as_test_x conftest$ac_exeext; then
26242 ac_cv_var_tzname=yes
26244 echo "$as_me: failed program was:" >&5
26245 sed 's/^/| /' conftest.$ac_ext >&5
26247 ac_cv_var_tzname=no
26250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26251 conftest$ac_exeext conftest.$ac_ext
26253 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
26254 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
26255 if test $ac_cv_var_tzname = yes; then
26257 cat >>confdefs.h <<\_ACEOF
26258 #define HAVE_TZNAME 1
26265 # check tzset(3) exists and works like we expect it to
26266 { echo "$as_me:$LINENO: checking for working tzset()" >&5
26267 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; }
26268 if test "${ac_cv_working_tzset+set}" = set; then
26269 echo $ECHO_N "(cached) $ECHO_C" >&6
26272 if test "$cross_compiling" = yes; then
26273 ac_cv_working_tzset=no
26275 cat >conftest.$ac_ext <<_ACEOF
26278 cat confdefs.h >>conftest.$ac_ext
26279 cat >>conftest.$ac_ext <<_ACEOF
26280 /* end confdefs.h. */
26282 #include <stdlib.h>
26284 #include <string.h>
26287 extern char *tzname[];
26292 /* Note that we need to ensure that not only does tzset(3)
26293 do 'something' with localtime, but it works as documented
26294 in the library reference and as expected by the test suite.
26295 This includes making sure that tzname is set properly if
26296 tm->tm_zone does not exist since it is the alternative way
26297 of getting timezone info.
26299 Red Hat 6.2 doesn't understand the southern hemisphere
26300 after New Year's Day.
26303 time_t groundhogday = 1044144000; /* GMT-based */
26304 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
26306 putenv("TZ=UTC+0");
26308 if (localtime(&groundhogday)->tm_hour != 0)
26311 /* For UTC, tzname[1] is sometimes "", sometimes " " */
26312 if (strcmp(tzname[0], "UTC") ||
26313 (tzname[1][0] != 0 && tzname[1][0] != ' '))
26317 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
26319 if (localtime(&groundhogday)->tm_hour != 19)
26322 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
26326 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
26328 if (localtime(&groundhogday)->tm_hour != 11)
26331 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
26335 #if HAVE_STRUCT_TM_TM_ZONE
26336 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
26338 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
26346 rm -f conftest$ac_exeext
26347 if { (ac_try="$ac_link"
26348 case "(($ac_try" in
26349 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26350 *) ac_try_echo
=$ac_try;;
26352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26353 (eval "$ac_link") 2>&5
26355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26356 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
26357 { (case "(($ac_try" in
26358 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26359 *) ac_try_echo=$ac_try;;
26361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26362 (eval "$ac_try") 2>&5
26364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26365 (exit $ac_status); }; }; then
26366 ac_cv_working_tzset=yes
26368 echo "$as_me: program exited with status $ac_status" >&5
26369 echo "$as_me: failed program was:" >&5
26370 sed 's/^/| /' conftest.$ac_ext >&5
26372 ( exit $ac_status )
26373 ac_cv_working_tzset=no
26375 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26381 { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
26382 echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
26383 if test "$ac_cv_working_tzset" = yes
26386 cat >>confdefs.h <<\_ACEOF
26387 #define HAVE_WORKING_TZSET 1
26392 # Look for subsecond timestamps in struct stat
26393 { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
26394 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6; }
26395 if test "${ac_cv_stat_tv_nsec+set}" = set; then
26396 echo $ECHO_N "(cached) $ECHO_C" >&6
26398 cat >conftest.$ac_ext <<_ACEOF
26401 cat confdefs.h >>conftest.$ac_ext
26402 cat >>conftest.$ac_ext <<_ACEOF
26403 /* end confdefs.h. */
26404 #include <sys/stat.h>
26410 st.st_mtim.tv_nsec = 1;
26416 rm -f conftest.$ac_objext
26417 if { (ac_try="$ac_compile"
26418 case "(($ac_try" in
26419 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26420 *) ac_try_echo
=$ac_try;;
26422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26423 (eval "$ac_compile") 2>conftest.er1
26425 grep -v '^ *+' conftest.er1
>conftest.err
26427 cat conftest.err
>&5
26428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26429 (exit $ac_status); } && {
26430 test -z "$ac_c_werror_flag" ||
26431 test ! -s conftest.err
26432 } && test -s conftest.
$ac_objext; then
26433 ac_cv_stat_tv_nsec
=yes
26435 echo "$as_me: failed program was:" >&5
26436 sed 's/^/| /' conftest.
$ac_ext >&5
26438 ac_cv_stat_tv_nsec
=no
26441 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26444 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
26445 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
26446 if test "$ac_cv_stat_tv_nsec" = yes
26449 cat >>confdefs.h
<<\_ACEOF
26450 #define HAVE_STAT_TV_NSEC 1
26455 # Look for BSD style subsecond timestamps in struct stat
26456 { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
26457 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6; }
26458 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
26459 echo $ECHO_N "(cached) $ECHO_C" >&6
26461 cat >conftest.
$ac_ext <<_ACEOF
26464 cat confdefs.h
>>conftest.
$ac_ext
26465 cat >>conftest.
$ac_ext <<_ACEOF
26466 /* end confdefs.h. */
26467 #include <sys/stat.h>
26473 st.st_mtimespec.tv_nsec = 1;
26479 rm -f conftest.
$ac_objext
26480 if { (ac_try
="$ac_compile"
26481 case "(($ac_try" in
26482 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26483 *) ac_try_echo=$ac_try;;
26485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26486 (eval "$ac_compile") 2>conftest.er1
26488 grep -v '^ *+' conftest.er1 >conftest.err
26490 cat conftest.err >&5
26491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26492 (exit $ac_status); } && {
26493 test -z "$ac_c_werror_flag" ||
26494 test ! -s conftest.err
26495 } && test -s conftest.$ac_objext; then
26496 ac_cv_stat_tv_nsec2=yes
26498 echo "$as_me: failed program was:" >&5
26499 sed 's/^/| /' conftest.$ac_ext >&5
26501 ac_cv_stat_tv_nsec2=no
26504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26507 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
26508 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
26509 if test "$ac_cv_stat_tv_nsec2" = yes
26512 cat >>confdefs.h <<\_ACEOF
26513 #define HAVE_STAT_TV_NSEC2 1
26518 # On HP/UX 11.0, mvwdelch is a block with a return statement
26519 { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
26520 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6; }
26521 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
26522 echo $ECHO_N "(cached) $ECHO_C" >&6
26524 cat >conftest.$ac_ext <<_ACEOF
26527 cat confdefs.h >>conftest.$ac_ext
26528 cat >>conftest.$ac_ext <<_ACEOF
26529 /* end confdefs.h. */
26530 #include <curses.h>
26536 rtn = mvwdelch(0,0,0);
26542 rm -f conftest.$ac_objext
26543 if { (ac_try="$ac_compile"
26544 case "(($ac_try" in
26545 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26546 *) ac_try_echo
=$ac_try;;
26548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26549 (eval "$ac_compile") 2>conftest.er1
26551 grep -v '^ *+' conftest.er1
>conftest.err
26553 cat conftest.err
>&5
26554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26555 (exit $ac_status); } && {
26556 test -z "$ac_c_werror_flag" ||
26557 test ! -s conftest.err
26558 } && test -s conftest.
$ac_objext; then
26559 ac_cv_mvwdelch_is_expression
=yes
26561 echo "$as_me: failed program was:" >&5
26562 sed 's/^/| /' conftest.
$ac_ext >&5
26564 ac_cv_mvwdelch_is_expression
=no
26567 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26570 { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
26571 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
26573 if test "$ac_cv_mvwdelch_is_expression" = yes
26576 cat >>confdefs.h
<<\_ACEOF
26577 #define MVWDELCH_IS_EXPRESSION 1
26582 { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
26583 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6; }
26584 if test "${ac_cv_window_has_flags+set}" = set; then
26585 echo $ECHO_N "(cached) $ECHO_C" >&6
26587 cat >conftest.
$ac_ext <<_ACEOF
26590 cat confdefs.h
>>conftest.
$ac_ext
26591 cat >>conftest.
$ac_ext <<_ACEOF
26592 /* end confdefs.h. */
26593 #include <curses.h>
26605 rm -f conftest.
$ac_objext
26606 if { (ac_try
="$ac_compile"
26607 case "(($ac_try" in
26608 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26609 *) ac_try_echo=$ac_try;;
26611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26612 (eval "$ac_compile") 2>conftest.er1
26614 grep -v '^ *+' conftest.er1 >conftest.err
26616 cat conftest.err >&5
26617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26618 (exit $ac_status); } && {
26619 test -z "$ac_c_werror_flag" ||
26620 test ! -s conftest.err
26621 } && test -s conftest.$ac_objext; then
26622 ac_cv_window_has_flags=yes
26624 echo "$as_me: failed program was:" >&5
26625 sed 's/^/| /' conftest.$ac_ext >&5
26627 ac_cv_window_has_flags=no
26630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26633 { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
26634 echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
26637 if test "$ac_cv_window_has_flags" = yes
26640 cat >>confdefs.h <<\_ACEOF
26641 #define WINDOW_HAS_FLAGS 1
26646 { echo "$as_me:$LINENO: checking for is_term_resized" >&5
26647 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; }
26648 cat >conftest.$ac_ext <<_ACEOF
26651 cat confdefs.h >>conftest.$ac_ext
26652 cat >>conftest.$ac_ext <<_ACEOF
26653 /* end confdefs.h. */
26654 #include <curses.h>
26658 void *x=is_term_resized
26663 rm -f conftest.$ac_objext
26664 if { (ac_try="$ac_compile"
26665 case "(($ac_try" in
26666 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26667 *) ac_try_echo
=$ac_try;;
26669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26670 (eval "$ac_compile") 2>conftest.er1
26672 grep -v '^ *+' conftest.er1
>conftest.err
26674 cat conftest.err
>&5
26675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26676 (exit $ac_status); } && {
26677 test -z "$ac_c_werror_flag" ||
26678 test ! -s conftest.err
26679 } && test -s conftest.
$ac_objext; then
26681 cat >>confdefs.h
<<\_ACEOF
26682 #define HAVE_CURSES_IS_TERM_RESIZED 1
26685 { echo "$as_me:$LINENO: result: yes" >&5
26686 echo "${ECHO_T}yes" >&6; }
26688 echo "$as_me: failed program was:" >&5
26689 sed 's/^/| /' conftest.
$ac_ext >&5
26691 { echo "$as_me:$LINENO: result: no" >&5
26692 echo "${ECHO_T}no" >&6; }
26696 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26698 { echo "$as_me:$LINENO: checking for resize_term" >&5
26699 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; }
26700 cat >conftest.
$ac_ext <<_ACEOF
26703 cat confdefs.h
>>conftest.
$ac_ext
26704 cat >>conftest.
$ac_ext <<_ACEOF
26705 /* end confdefs.h. */
26706 #include <curses.h>
26710 void *x=resize_term
26715 rm -f conftest.
$ac_objext
26716 if { (ac_try
="$ac_compile"
26717 case "(($ac_try" in
26718 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26719 *) ac_try_echo=$ac_try;;
26721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26722 (eval "$ac_compile") 2>conftest.er1
26724 grep -v '^ *+' conftest.er1 >conftest.err
26726 cat conftest.err >&5
26727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26728 (exit $ac_status); } && {
26729 test -z "$ac_c_werror_flag" ||
26730 test ! -s conftest.err
26731 } && test -s conftest.$ac_objext; then
26733 cat >>confdefs.h <<\_ACEOF
26734 #define HAVE_CURSES_RESIZE_TERM 1
26737 { echo "$as_me:$LINENO: result: yes" >&5
26738 echo "${ECHO_T}yes" >&6; }
26740 echo "$as_me: failed program was:" >&5
26741 sed 's/^/| /' conftest.$ac_ext >&5
26743 { echo "$as_me:$LINENO: result: no" >&5
26744 echo "${ECHO_T}no" >&6; }
26748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26750 { echo "$as_me:$LINENO: checking for resizeterm" >&5
26751 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; }
26752 cat >conftest.$ac_ext <<_ACEOF
26755 cat confdefs.h >>conftest.$ac_ext
26756 cat >>conftest.$ac_ext <<_ACEOF
26757 /* end confdefs.h. */
26758 #include <curses.h>
26767 rm -f conftest.$ac_objext
26768 if { (ac_try="$ac_compile"
26769 case "(($ac_try" in
26770 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26771 *) ac_try_echo
=$ac_try;;
26773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26774 (eval "$ac_compile") 2>conftest.er1
26776 grep -v '^ *+' conftest.er1
>conftest.err
26778 cat conftest.err
>&5
26779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26780 (exit $ac_status); } && {
26781 test -z "$ac_c_werror_flag" ||
26782 test ! -s conftest.err
26783 } && test -s conftest.
$ac_objext; then
26785 cat >>confdefs.h
<<\_ACEOF
26786 #define HAVE_CURSES_RESIZETERM 1
26789 { echo "$as_me:$LINENO: result: yes" >&5
26790 echo "${ECHO_T}yes" >&6; }
26792 echo "$as_me: failed program was:" >&5
26793 sed 's/^/| /' conftest.
$ac_ext >&5
26795 { echo "$as_me:$LINENO: result: no" >&5
26796 echo "${ECHO_T}no" >&6; }
26800 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26802 { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
26803 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; }
26805 if test -r /dev
/ptmx
26807 { echo "$as_me:$LINENO: result: yes" >&5
26808 echo "${ECHO_T}yes" >&6; }
26810 cat >>confdefs.h
<<\_ACEOF
26811 #define HAVE_DEV_PTMX 1
26815 { echo "$as_me:$LINENO: result: no" >&5
26816 echo "${ECHO_T}no" >&6; }
26819 { echo "$as_me:$LINENO: checking for /dev/ptc" >&5
26820 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
26822 if test -r /dev
/ptc
26824 { echo "$as_me:$LINENO: result: yes" >&5
26825 echo "${ECHO_T}yes" >&6; }
26827 cat >>confdefs.h
<<\_ACEOF
26828 #define HAVE_DEV_PTC 1
26832 { echo "$as_me:$LINENO: result: no" >&5
26833 echo "${ECHO_T}no" >&6; }
26836 { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
26837 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; }
26838 if test "${ac_cv_have_size_t_format+set}" = set; then
26839 echo $ECHO_N "(cached) $ECHO_C" >&6
26841 if test "$cross_compiling" = yes; then
26842 ac_cv_have_size_t_format
=no
26844 cat >conftest.
$ac_ext <<_ACEOF
26847 cat confdefs.h
>>conftest.
$ac_ext
26848 cat >>conftest.
$ac_ext <<_ACEOF
26849 /* end confdefs.h. */
26852 #include <stddef.h>
26853 #include <string.h>
26855 #ifdef HAVE_SYS_TYPES_H
26856 #include <sys/types.h>
26859 #ifdef HAVE_SSIZE_T
26860 typedef ssize_t Py_ssize_t;
26861 #elif SIZEOF_VOID_P == SIZEOF_LONG
26862 typedef long Py_ssize_t;
26864 typedef int Py_ssize_t;
26871 if(sprintf(buffer, "%zd", (size_t)123) < 0)
26874 if (strcmp(buffer, "123"))
26877 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
26880 if (strcmp(buffer, "-123"))
26887 rm -f conftest
$ac_exeext
26888 if { (ac_try
="$ac_link"
26889 case "(($ac_try" in
26890 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26891 *) ac_try_echo=$ac_try;;
26893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26894 (eval "$ac_link") 2>&5
26896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26897 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26898 { (case "(($ac_try" in
26899 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26900 *) ac_try_echo
=$ac_try;;
26902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26903 (eval "$ac_try") 2>&5
26905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26906 (exit $ac_status); }; }; then
26907 ac_cv_have_size_t_format
=yes
26909 echo "$as_me: program exited with status $ac_status" >&5
26910 echo "$as_me: failed program was:" >&5
26911 sed 's/^/| /' conftest.
$ac_ext >&5
26913 ( exit $ac_status )
26914 ac_cv_have_size_t_format
=no
26916 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
26923 { echo "$as_me:$LINENO: result: $ac_cv_have_size_t_format" >&5
26924 echo "${ECHO_T}$ac_cv_have_size_t_format" >&6; }
26925 if test $ac_cv_have_size_t_format = yes
26928 cat >>confdefs.h
<<\_ACEOF
26929 #define PY_FORMAT_SIZE_T "z"
26934 { echo "$as_me:$LINENO: checking for socklen_t" >&5
26935 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
26936 if test "${ac_cv_type_socklen_t+set}" = set; then
26937 echo $ECHO_N "(cached) $ECHO_C" >&6
26939 cat >conftest.
$ac_ext <<_ACEOF
26942 cat confdefs.h
>>conftest.
$ac_ext
26943 cat >>conftest.
$ac_ext <<_ACEOF
26944 /* end confdefs.h. */
26946 #ifdef HAVE_SYS_TYPES_H
26947 #include <sys/types.h>
26949 #ifdef HAVE_SYS_SOCKET_H
26950 #include <sys/socket.h>
26954 typedef socklen_t ac__type_new_;
26958 if ((ac__type_new_ *) 0)
26960 if (sizeof (ac__type_new_))
26966 rm -f conftest.
$ac_objext
26967 if { (ac_try
="$ac_compile"
26968 case "(($ac_try" in
26969 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26970 *) ac_try_echo=$ac_try;;
26972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26973 (eval "$ac_compile") 2>conftest.er1
26975 grep -v '^ *+' conftest.er1 >conftest.err
26977 cat conftest.err >&5
26978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26979 (exit $ac_status); } && {
26980 test -z "$ac_c_werror_flag" ||
26981 test ! -s conftest.err
26982 } && test -s conftest.$ac_objext; then
26983 ac_cv_type_socklen_t=yes
26985 echo "$as_me: failed program was:" >&5
26986 sed 's/^/| /' conftest.$ac_ext >&5
26988 ac_cv_type_socklen_t=no
26991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26993 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
26994 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
26995 if test $ac_cv_type_socklen_t = yes; then
26999 cat >>confdefs.h <<\_ACEOF
27000 #define socklen_t int
27008 for h in `(cd $srcdir;echo Python
/thread_
*.h
)`
27010 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
27014 SRCDIRS="Parser Grammar Objects Python Modules Mac"
27015 { echo "$as_me:$LINENO: checking for build directories" >&5
27016 echo $ECHO_N "checking for build directories... $ECHO_C" >&6; }
27017 for dir in $SRCDIRS; do
27018 if test ! -d $dir; then
27022 { echo "$as_me:$LINENO: result: done" >&5
27023 echo "${ECHO_T}done" >&6; }
27025 # generate output files
27026 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config Misc/python.pc"
27028 cat >confcache <<\_ACEOF
27029 # This file is a shell script that caches the results of configure
27030 # tests run on this system so they can be shared between configure
27031 # scripts and configure runs, see configure's option --config-cache.
27032 # It is not useful on other systems. If it contains results you don't
27033 # want to keep, you may remove or edit it.
27035 # config.status only pays attention to the cache file if you give it
27036 # the --recheck option to rerun configure.
27038 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
27039 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27040 # following values.
27044 # The following way of writing the cache mishandles newlines in values,
27045 # but we know of no workaround that is simple, portable, and efficient.
27046 # So, we kill variables containing newlines.
27047 # Ultrix sh set writes to stderr and can't be redirected directly,
27048 # and sets the high bit in the cache file unless we assign to the vars.
27050 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27051 eval ac_val
=\$
$ac_var
27055 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
27056 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
27059 _ | IFS | as_nl
) ;; #(
27060 *) $as_unset $ac_var ;;
27066 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27067 *${as_nl}ac_space
=\
*)
27068 # `set' does not quote correctly, so add quotes (double-quote
27069 # substitution turns \\\\ into \\, and sed turns \\ into \).
27072 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27075 # `set' quotes correctly as required by POSIX, so do not add quotes.
27076 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27085 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27087 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27089 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
27090 if test -w "$cache_file"; then
27091 test "x$cache_file" != "x/dev/null" &&
27092 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
27093 echo "$as_me: updating cache $cache_file" >&6;}
27094 cat confcache
>$cache_file
27096 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27097 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27102 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
27103 # Let make expand exec_prefix.
27104 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
27106 DEFS
=-DHAVE_CONFIG_H
27110 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
27111 # 1. Remove the extension, and $U if already installed.
27112 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
27113 ac_i
=`echo "$ac_i" | sed "$ac_script"`
27114 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27115 # will be set to the directory where LIBOBJS objects are built.
27116 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27117 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
27119 LIBOBJS
=$ac_libobjs
27121 LTLIBOBJS
=$ac_ltlibobjs
27125 : ${CONFIG_STATUS=./config.status}
27126 ac_clean_files_save
=$ac_clean_files
27127 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
27128 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27129 echo "$as_me: creating $CONFIG_STATUS" >&6;}
27130 cat >$CONFIG_STATUS <<_ACEOF
27132 # Generated by $as_me.
27133 # Run this file to recreate the current configuration.
27134 # Compiler output produced by configure, useful for debugging
27135 # configure, is in config.log if it exists.
27138 ac_cs_recheck=false
27140 SHELL=\${CONFIG_SHELL-$SHELL}
27143 cat >>$CONFIG_STATUS <<\_ACEOF
27144 ## --------------------- ##
27145 ## M4sh Initialization. ##
27146 ## --------------------- ##
27148 # Be more Bourne compatible
27149 DUALCASE
=1; export DUALCASE
# for MKS sh
27150 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
27153 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
27154 # is contrary to our usage. Disable this feature.
27155 alias -g '${1+"$@"}'='"$@"'
27156 setopt NO_GLOB_SUBST
27158 case `(set -o) 2>/dev/null` in
27159 *posix
*) set -o posix
;;
27168 # Avoid depending upon Character Ranges.
27169 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
27170 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27171 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
27172 as_cr_digits
='0123456789'
27173 as_cr_alnum
=$as_cr_Letters$as_cr_digits
27175 # The user is always right.
27176 if test "${PATH_SEPARATOR+set}" != set; then
27177 echo "#! /bin/sh" >conf$$.sh
27178 echo "exit 0" >>conf$$.sh
27180 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
27188 # Support unset when possible.
27189 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
27197 # We need space, tab and new line, in precisely that order. Quoting is
27198 # there to prevent editors from complaining about space-tab.
27199 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27200 # splitting by setting IFS to empty value.)
27205 # Find who we are. Look in the path if we contain no directory separator.
27207 *[\\/]* ) as_myself
=$0 ;;
27208 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
27209 for as_dir
in $PATH
27212 test -z "$as_dir" && as_dir
=.
27213 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
27219 # We did not find ourselves, most probably we were run as `sh COMMAND'
27220 # in which case we are not to be found in the path.
27221 if test "x$as_myself" = x
; then
27224 if test ! -f "$as_myself"; then
27225 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27226 { (exit 1); exit 1; }
27229 # Work around bugs in pre-3.0 UWIN ksh.
27230 for as_var
in ENV MAIL MAILPATH
27231 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
27239 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
27240 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
27241 LC_TELEPHONE LC_TIME
27243 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
27244 eval $as_var=C
; export $as_var
27246 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
27250 # Required to use basename.
27251 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27252 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27258 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27259 as_basename
=basename
27265 # Name of the executable.
27266 as_me
=`$as_basename -- "$0" ||
27267 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27268 X"$0" : 'X\(//\)$' \| \
27269 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27271 sed '/^.*\/\([^/][^/]*\)\/*$/{
27290 as_lineno_1
=$LINENO
27291 as_lineno_2
=$LINENO
27292 test "x$as_lineno_1" != "x$as_lineno_2" &&
27293 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
27295 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27296 # uniformly replaced by the line number. The first 'sed' inserts a
27297 # line-number line after each line using $LINENO; the second 'sed'
27298 # does the real work. The second script uses 'N' to pair each
27299 # line-number line with the line containing $LINENO, and appends
27300 # trailing '-' during substitution so that $LINENO is not a special
27301 # case at line end.
27302 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27303 # scripts with optimization help from Paolo Bonzini. Blame Lee
27304 # E. McMahon (1931-1989) for sed's syntax. :-)
27316 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27319 ' >$as_me.lineno
&&
27320 chmod +x
"$as_me.lineno" ||
27321 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27322 { (exit 1); exit 1; }; }
27324 # Don't try to exec as it changes $[0], causing all sort of problems
27325 # (the dirname of $[0] is not the place where we might find the
27326 # original and so on. Autoconf is especially sensitive to this).
27327 .
"./$as_me.lineno"
27328 # Exit status is that of the last command.
27333 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
27339 ECHO_C
= ECHO_N
= ECHO_T
=
27340 case `echo -n x` in
27342 case `echo 'x\c'` in
27343 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
27350 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27351 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27357 rm -f conf$$ conf$$.exe conf$$.
file
27358 if test -d conf$$.dir
; then
27359 rm -f conf$$.dir
/conf$$.
file
27365 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
27367 # ... but there are two gotchas:
27368 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27369 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27370 # In both cases, we have to default to `cp -p'.
27371 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
27373 elif ln conf$$.
file conf$$
2>/dev
/null
; then
27378 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
27379 rmdir conf$$.dir
2>/dev
/null
27381 if mkdir
-p .
2>/dev
/null
; then
27384 test -d .
/-p && rmdir .
/-p
27388 if test -x / >/dev
/null
2>&1; then
27389 as_test_x
='test -x'
27391 if ls -dL / >/dev
/null
2>&1; then
27398 if test -d "$1"; then
27404 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27405 ???[sx]*):;;*)false;;esac;fi
27409 as_executable_p
=$as_test_x
27411 # Sed expression to map a string onto a valid CPP name.
27412 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27414 # Sed expression to map a string onto a valid variable name.
27415 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27420 # Save the log message, to keep $[0] and so on meaningful, and to
27421 # report actual input values of CONFIG_FILES etc. instead of their
27422 # values after options handling.
27424 This file was extended by python $as_me 2.7, which was
27425 generated by GNU Autoconf 2.61. Invocation command line was
27427 CONFIG_FILES = $CONFIG_FILES
27428 CONFIG_HEADERS = $CONFIG_HEADERS
27429 CONFIG_LINKS = $CONFIG_LINKS
27430 CONFIG_COMMANDS = $CONFIG_COMMANDS
27433 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27438 cat >>$CONFIG_STATUS <<_ACEOF
27439 # Files that config.status was made for.
27440 config_files="$ac_config_files"
27441 config_headers="$ac_config_headers"
27445 cat >>$CONFIG_STATUS <<\_ACEOF
27447 \`$as_me' instantiates files from templates according to the
27448 current configuration.
27450 Usage: $0 [OPTIONS] [FILE]...
27452 -h, --help print this help, then exit
27453 -V, --version print version number and configuration settings, then exit
27454 -q, --quiet do not print progress messages
27455 -d, --debug don't remove temporary files
27456 --recheck update $as_me by reconfiguring in the same conditions
27457 --file=FILE[:TEMPLATE]
27458 instantiate the configuration file FILE
27459 --header=FILE[:TEMPLATE]
27460 instantiate the configuration header FILE
27462 Configuration files:
27465 Configuration headers:
27468 Report bugs to <bug-autoconf@gnu.org>."
27471 cat >>$CONFIG_STATUS <<_ACEOF
27473 python config.status 2.7
27474 configured by $0, generated by GNU Autoconf 2.61,
27475 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27477 Copyright (C) 2006 Free Software Foundation, Inc.
27478 This config.status script is free software; the Free Software Foundation
27479 gives unlimited permission to copy, distribute and modify it."
27486 cat >>$CONFIG_STATUS <<\_ACEOF
27487 # If no file are specified by the user, then we need to provide default
27488 # value. By we need to know if files were specified by the user.
27494 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
27495 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
27506 # Handling of the options.
27507 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
27509 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
27510 echo "$ac_cs_version"; exit ;;
27511 --debug |
--debu |
--deb |
--de |
--d |
-d )
27513 --file |
--fil |
--fi |
--f )
27515 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
27516 ac_need_defaults
=false
;;
27517 --header |
--heade |
--head |
--hea )
27519 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
27520 ac_need_defaults
=false
;;
27522 # Conflict between --help and --header
27523 { echo "$as_me: error: ambiguous option: $1
27524 Try \`$0 --help' for more information." >&2
27525 { (exit 1); exit 1; }; };;
27526 --help |
--hel |
-h )
27527 echo "$ac_cs_usage"; exit ;;
27528 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
27529 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
27532 # This is an error.
27533 -*) { echo "$as_me: error: unrecognized option: $1
27534 Try \`$0 --help' for more information." >&2
27535 { (exit 1); exit 1; }; } ;;
27537 *) ac_config_targets
="$ac_config_targets $1"
27538 ac_need_defaults
=false
;;
27544 ac_configure_extra_args
=
27546 if $ac_cs_silent; then
27548 ac_configure_extra_args
="$ac_configure_extra_args --silent"
27552 cat >>$CONFIG_STATUS <<_ACEOF
27553 if \$ac_cs_recheck; then
27554 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27555 CONFIG_SHELL=$SHELL
27556 export CONFIG_SHELL
27557 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27561 cat >>$CONFIG_STATUS <<\_ACEOF
27565 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27566 ## Running $as_me. ##
27572 cat >>$CONFIG_STATUS <<_ACEOF
27575 cat >>$CONFIG_STATUS <<\_ACEOF
27577 # Handling of arguments.
27578 for ac_config_target
in $ac_config_targets
27580 case $ac_config_target in
27581 "pyconfig.h") CONFIG_HEADERS
="$CONFIG_HEADERS pyconfig.h" ;;
27582 "Mac/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/Makefile" ;;
27583 "Mac/PythonLauncher/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
27584 "Mac/IDLE/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/IDLE/Makefile" ;;
27585 "Mac/Resources/framework/Info.plist") CONFIG_FILES
="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
27586 "Mac/Resources/app/Info.plist") CONFIG_FILES
="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
27587 "Makefile.pre") CONFIG_FILES
="$CONFIG_FILES Makefile.pre" ;;
27588 "Modules/Setup.config") CONFIG_FILES
="$CONFIG_FILES Modules/Setup.config" ;;
27589 "Misc/python.pc") CONFIG_FILES
="$CONFIG_FILES Misc/python.pc" ;;
27591 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27592 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27593 { (exit 1); exit 1; }; };;
27598 # If the user did not use the arguments to specify the items to instantiate,
27599 # then the envvar interface is used. Set only those that are not.
27600 # We use the long form for the default assignment because of an extremely
27601 # bizarre bug on SunOS 4.1.3.
27602 if $ac_need_defaults; then
27603 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
27604 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
27607 # Have a temporary directory for convenience. Make it in the build tree
27608 # simply because there is no reason against having it here, and in addition,
27609 # creating and moving files from /tmp can sometimes cause problems.
27610 # Hook for its removal unless debugging.
27611 # Note that there is a small window in which the directory will not be cleaned:
27612 # after its creation but before its name has been assigned to `$tmp'.
27616 trap 'exit_status=$?
27617 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27619 trap '{ (exit 1); exit 1; }' 1 2 13 15
27621 # Create a (secure) tmp directory for tmp files.
27624 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27625 test -n "$tmp" && test -d "$tmp"
27628 tmp
=.
/conf$$
-$RANDOM
27629 (umask 077 && mkdir
"$tmp")
27632 echo "$me: cannot create a temporary directory in ." >&2
27633 { (exit 1); exit 1; }
27637 # Set up the sed scripts for CONFIG_FILES section.
27640 # No need to generate the scripts if there are no CONFIG_FILES.
27641 # This happens for instance when ./config.status config.h
27642 if test -n "$CONFIG_FILES"; then
27649 for ac_last_try
in false false false false false
:; do
27650 cat >conf$
$subs.
sed <<_ACEOF
27651 SHELL!$SHELL$ac_delim
27652 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
27653 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
27654 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
27655 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
27656 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
27657 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
27658 exec_prefix!$exec_prefix$ac_delim
27659 prefix!$prefix$ac_delim
27660 program_transform_name!$program_transform_name$ac_delim
27661 bindir!$bindir$ac_delim
27662 sbindir!$sbindir$ac_delim
27663 libexecdir!$libexecdir$ac_delim
27664 datarootdir!$datarootdir$ac_delim
27665 datadir!$datadir$ac_delim
27666 sysconfdir!$sysconfdir$ac_delim
27667 sharedstatedir!$sharedstatedir$ac_delim
27668 localstatedir!$localstatedir$ac_delim
27669 includedir!$includedir$ac_delim
27670 oldincludedir!$oldincludedir$ac_delim
27671 docdir!$docdir$ac_delim
27672 infodir!$infodir$ac_delim
27673 htmldir!$htmldir$ac_delim
27674 dvidir!$dvidir$ac_delim
27675 pdfdir!$pdfdir$ac_delim
27676 psdir!$psdir$ac_delim
27677 libdir!$libdir$ac_delim
27678 localedir!$localedir$ac_delim
27679 mandir!$mandir$ac_delim
27680 DEFS!$DEFS$ac_delim
27681 ECHO_C!$ECHO_C$ac_delim
27682 ECHO_N!$ECHO_N$ac_delim
27683 ECHO_T!$ECHO_T$ac_delim
27684 LIBS!$LIBS$ac_delim
27685 build_alias!$build_alias$ac_delim
27686 host_alias!$host_alias$ac_delim
27687 target_alias!$target_alias$ac_delim
27688 VERSION!$VERSION$ac_delim
27689 SOVERSION!$SOVERSION$ac_delim
27690 CONFIG_ARGS!$CONFIG_ARGS$ac_delim
27691 UNIVERSALSDK!$UNIVERSALSDK$ac_delim
27692 ARCH_RUN_32BIT!$ARCH_RUN_32BIT$ac_delim
27693 PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
27694 PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim
27695 PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
27696 PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
27697 PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
27698 FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
27699 FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
27700 FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
27701 FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
27702 FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
27703 MACHDEP!$MACHDEP$ac_delim
27704 SGI_ABI!$SGI_ABI$ac_delim
27705 EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim
27706 EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim
27707 CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
27708 EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
27710 CFLAGS!$CFLAGS$ac_delim
27711 LDFLAGS!$LDFLAGS$ac_delim
27712 CPPFLAGS!$CPPFLAGS$ac_delim
27713 ac_ct_CC!$ac_ct_CC$ac_delim
27714 EXEEXT!$EXEEXT$ac_delim
27715 OBJEXT!$OBJEXT$ac_delim
27717 MAINCC!$MAINCC$ac_delim
27719 GREP!$GREP$ac_delim
27720 EGREP!$EGREP$ac_delim
27721 BUILDEXEEXT!$BUILDEXEEXT$ac_delim
27722 LIBRARY!$LIBRARY$ac_delim
27723 LDLIBRARY!$LDLIBRARY$ac_delim
27724 DLLLIBRARY!$DLLLIBRARY$ac_delim
27725 BLDLIBRARY!$BLDLIBRARY$ac_delim
27726 LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
27727 INSTSONAME!$INSTSONAME$ac_delim
27728 RUNSHARED!$RUNSHARED$ac_delim
27729 LINKCC!$LINKCC$ac_delim
27730 GNULD!$GNULD$ac_delim
27731 RANLIB!$RANLIB$ac_delim
27733 ARFLAGS!$ARFLAGS$ac_delim
27734 SVNVERSION!$SVNVERSION$ac_delim
27735 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
27736 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
27737 INSTALL_DATA!$INSTALL_DATA$ac_delim
27740 BASECFLAGS!$BASECFLAGS$ac_delim
27741 UNIVERSAL_ARCH_FLAGS!$UNIVERSAL_ARCH_FLAGS$ac_delim
27742 OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
27743 LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
27745 LDSHARED!$LDSHARED$ac_delim
27746 BLDSHARED!$BLDSHARED$ac_delim
27747 CCSHARED!$CCSHARED$ac_delim
27750 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
27752 elif $ac_last_try; then
27753 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27754 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27755 { (exit 1); exit 1; }; }
27757 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
27761 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27762 if test -n "$ac_eof"; then
27763 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
27764 ac_eof
=`expr $ac_eof + 1`
27767 cat >>$CONFIG_STATUS <<_ACEOF
27768 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
27769 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27772 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27773 s/^/s,@/; s/!/@,|#_!!_#|/
27776 s/'"$ac_delim"'$/,g/; t
27778 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27779 ' >>$CONFIG_STATUS <conf$
$subs.
sed
27780 rm -f conf$
$subs.
sed
27781 cat >>$CONFIG_STATUS <<_ACEOF
27787 for ac_last_try
in false false false false false
:; do
27788 cat >conf$
$subs.
sed <<_ACEOF
27789 LINKFORSHARED!$LINKFORSHARED$ac_delim
27790 CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
27791 SHLIBS!$SHLIBS$ac_delim
27792 USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
27793 SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
27794 USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
27795 LDLAST!$LDLAST$ac_delim
27796 THREADOBJ!$THREADOBJ$ac_delim
27797 DLINCLDIR!$DLINCLDIR$ac_delim
27798 DYNLOADFILE!$DYNLOADFILE$ac_delim
27799 MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
27800 TRUE!$TRUE$ac_delim
27801 LIBOBJS!$LIBOBJS$ac_delim
27802 HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
27803 HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
27804 HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
27805 HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
27806 HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
27807 LIBM!$LIBM$ac_delim
27808 LIBC!$LIBC$ac_delim
27809 UNICODE_OBJS!$UNICODE_OBJS$ac_delim
27810 THREADHEADERS!$THREADHEADERS$ac_delim
27811 SRCDIRS!$SRCDIRS$ac_delim
27812 LTLIBOBJS!$LTLIBOBJS$ac_delim
27815 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 24; then
27817 elif $ac_last_try; then
27818 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27819 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27820 { (exit 1); exit 1; }; }
27822 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
27826 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27827 if test -n "$ac_eof"; then
27828 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
27829 ac_eof
=`expr $ac_eof + 1`
27832 cat >>$CONFIG_STATUS <<_ACEOF
27833 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
27834 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
27837 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27838 s/^/s,@/; s/!/@,|#_!!_#|/
27841 s/'"$ac_delim"'$/,g/; t
27843 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27844 ' >>$CONFIG_STATUS <conf$
$subs.
sed
27845 rm -f conf$
$subs.
sed
27846 cat >>$CONFIG_STATUS <<_ACEOF
27853 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27854 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27855 # trailing colons and then remove the whole line if VPATH becomes empty
27856 # (actually we leave an empty line to preserve line numbers).
27857 if test "x$srcdir" = x.
; then
27858 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
27859 s/:*\$(srcdir):*/:/
27860 s/:*\${srcdir}:*/:/
27862 s/^\([^=]*=[ ]*\):*/\1/
27868 cat >>$CONFIG_STATUS <<\_ACEOF
27869 fi # test -n "$CONFIG_FILES"
27872 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
27875 :[FHLC
]) ac_mode
=$ac_tag; continue;;
27877 case $ac_mode$ac_tag in
27879 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27880 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27881 { (exit 1); exit 1; }; };;
27882 :[FH
]-) ac_tag
=-:-;;
27883 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
27900 -) ac_f
="$tmp/stdin";;
27901 *) # Look for the file first in the build tree, then in the source tree
27902 # (if the path is not absolute). The absolute path cannot be DOS-style,
27903 # because $ac_f cannot contain `:'.
27907 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
27909 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27910 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27911 { (exit 1); exit 1; }; };;
27913 ac_file_inputs
="$ac_file_inputs $ac_f"
27916 # Let's still pretend it is `configure' which instantiates (i.e., don't
27917 # use $as_me), people would be surprised to read:
27918 # /* config.h. Generated by config.status. */
27919 configure_input
="Generated from "`IFS=:
27920 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27921 if test x
"$ac_file" != x-
; then
27922 configure_input
="$ac_file. $configure_input"
27923 { echo "$as_me:$LINENO: creating $ac_file" >&5
27924 echo "$as_me: creating $ac_file" >&6;}
27928 *:-:* |
*:-) cat >"$tmp/stdin";;
27933 ac_dir
=`$as_dirname -- "$ac_file" ||
27934 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27935 X"$ac_file" : 'X\(//\)[^/]' \| \
27936 X"$ac_file" : 'X\(//\)$' \| \
27937 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27939 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27943 /^X\(\/\/\)[^/].*/{
27958 -*) as_dir
=.
/$as_dir;;
27960 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
27964 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27965 *) as_qdir
=$as_dir;;
27967 as_dirs
="'$as_qdir' $as_dirs"
27968 as_dir
=`$as_dirname -- "$as_dir" ||
27969 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27970 X"$as_dir" : 'X\(//\)[^/]' \| \
27971 X"$as_dir" : 'X\(//\)$' \| \
27972 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27974 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27978 /^X\(\/\/\)[^/].*/{
27991 test -d "$as_dir" && break
27993 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
27994 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27995 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27996 { (exit 1); exit 1; }; }; }
28000 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28002 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28003 # A ".." for each directory in $ac_dir_suffix.
28004 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
28005 case $ac_top_builddir_sub in
28006 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28007 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
28010 ac_abs_top_builddir
=$ac_pwd
28011 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
28012 # for backward compatibility:
28013 ac_top_builddir
=$ac_top_build_prefix
28016 .
) # We are building in place.
28018 ac_top_srcdir
=$ac_top_builddir_sub
28019 ac_abs_top_srcdir
=$ac_pwd ;;
28020 [\\/]* | ?
:[\\/]* ) # Absolute name.
28021 ac_srcdir
=$srcdir$ac_dir_suffix;
28022 ac_top_srcdir
=$srcdir
28023 ac_abs_top_srcdir
=$srcdir ;;
28024 *) # Relative name.
28025 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
28026 ac_top_srcdir
=$ac_top_build_prefix$srcdir
28027 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
28029 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
28039 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
28040 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
28044 cat >>$CONFIG_STATUS <<\_ACEOF
28045 # If the template does not know about datarootdir, expand it.
28046 # FIXME: This hack should be removed a few years after 2.60.
28047 ac_datarootdir_hack
=; ac_datarootdir_seen
=
28049 case `sed -n '/datarootdir/ {
28058 ' $ac_file_inputs` in
28059 *datarootdir
*) ac_datarootdir_seen
=yes;;
28060 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
28061 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28062 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28064 cat >>$CONFIG_STATUS <<_ACEOF
28065 ac_datarootdir_hack='
28066 s&@datadir@&$datadir&g
28067 s&@docdir@&$docdir&g
28068 s&@infodir@&$infodir&g
28069 s&@localedir@&$localedir&g
28070 s&@mandir@&$mandir&g
28071 s&\\\${datarootdir}&$datarootdir&g' ;;
28075 # Neutralize VPATH when `$srcdir' = `.'.
28076 # Shell code in configure.ac might set extrasub.
28077 # FIXME: do we really want to maintain this feature?
28078 cat >>$CONFIG_STATUS <<_ACEOF
28082 cat >>$CONFIG_STATUS <<\_ACEOF
28084 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
28085 s
&@configure_input@
&$configure_input&;t t
28086 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
28087 s
&@srcdir@
&$ac_srcdir&;t t
28088 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
28089 s
&@top_srcdir@
&$ac_top_srcdir&;t t
28090 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
28091 s
&@builddir@
&$ac_builddir&;t t
28092 s
&@abs_builddir@
&$ac_abs_builddir&;t t
28093 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
28094 s
&@INSTALL@
&$ac_INSTALL&;t t
28095 $ac_datarootdir_hack
28096 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
28098 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28099 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
28100 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
28101 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
28102 which seems to be undefined. Please make sure it is defined." >&5
28103 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
28104 which seems to be undefined. Please make sure it is defined." >&2;}
28108 -) cat "$tmp/out"; rm -f "$tmp/out";;
28109 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
28118 # Transform confdefs.h into a sed script `conftest.defines', that
28119 # substitutes the proper values into config.h.in to produce config.h.
28120 rm -f conftest.defines conftest.
tail
28121 # First, append a space to every undef/define line, to ease matching.
28122 echo 's/$/ /' >conftest.defines
28123 # Then, protect against being on the right side of a sed subst, or in
28124 # an unquoted here document, in config.status. If some macros were
28125 # called several times there might be several #defines for the same
28126 # symbol, which is useless. But do not sort them, since the last
28127 # AC_DEFINE must be honored.
28128 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
28129 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
28130 # NAME is the cpp macro being defined, VALUE is the value it is being given.
28131 # PARAMS is the parameter list in the macro definition--in most cases, it's
28132 # just an empty string.
28133 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
28134 ac_dB
='\\)[ (].*,\\1define\\2'
28142 s/^[ ]*#[ ]*define[ ][ ]*//
28147 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
28148 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
28149 ' >>conftest.defines
28151 # Remove the space that was appended to ease matching.
28152 # Then replace #undef with comments. This is necessary, for
28153 # example, in the case of _POSIX_SOURCE, which is predefined and required
28154 # on some systems where configure will not decide to define it.
28155 # (The regexp can be short, since the line contains either #define or #undef.)
28157 s,^[ #]*u.*,/* & */,' >>conftest.defines
28159 # Break up conftest.defines:
28160 ac_max_sed_lines
=50
28162 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
28163 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
28164 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
28166 ac_in
='$ac_file_inputs'
28167 ac_out
='"$tmp/out1"'
28168 ac_nxt
='"$tmp/out2"'
28172 # Write a here document:
28173 cat >>$CONFIG_STATUS <<_ACEOF
28174 # First, check the format of the line:
28175 cat >"\$tmp/defines.sed" <<\\CEOF
28176 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
28177 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
28181 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
28183 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
28184 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
28185 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
28186 grep . conftest.
tail >/dev
/null ||
break
28187 rm -f conftest.defines
28188 mv conftest.
tail conftest.defines
28190 rm -f conftest.defines conftest.
tail
28192 echo "ac_result=$ac_in" >>$CONFIG_STATUS
28193 cat >>$CONFIG_STATUS <<\_ACEOF
28194 if test x
"$ac_file" != x-
; then
28195 echo "/* $configure_input */" >"$tmp/config.h"
28196 cat "$ac_result" >>"$tmp/config.h"
28197 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
28198 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28199 echo "$as_me: $ac_file is unchanged" >&6;}
28202 mv "$tmp/config.h" $ac_file
28205 echo "/* $configure_input */"
28217 { (exit 0); exit 0; }
28219 chmod +x
$CONFIG_STATUS
28220 ac_clean_files
=$ac_clean_files_save
28223 # configure is writing to config.log, and then calls config.status.
28224 # config.status does its own redirection, appending to config.log.
28225 # Unfortunately, on DOS this fails, as config.log is still kept open
28226 # by configure, so config.status won't be able to write to it; its
28227 # output is simply discarded. So we exec the FD to /dev/null,
28228 # effectively closing config.log, so it can be properly (re)opened and
28229 # appended to by config.status. When coming back to configure, we
28230 # need to make the FD available again.
28231 if test "$no_create" != yes; then
28233 ac_config_status_args
=
28234 test "$silent" = yes &&
28235 ac_config_status_args
="$ac_config_status_args --quiet"
28237 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
28239 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28240 # would make configure fail if this is the last instruction.
28241 $ac_cs_success ||
{ (exit 1); exit 1; }
28245 echo "creating Modules/Setup"
28246 if test ! -f Modules
/Setup
28248 cp $srcdir/Modules
/Setup.dist Modules
/Setup
28251 echo "creating Modules/Setup.local"
28252 if test ! -f Modules
/Setup.
local
28254 echo "# Edit this file for local setup changes" >Modules
/Setup.
local
28257 echo "creating Makefile"
28258 $SHELL $srcdir/Modules
/makesetup
-c $srcdir/Modules
/config.c.
in \
28259 -s Modules Modules
/Setup.config \
28260 Modules
/Setup.
local Modules
/Setup
28262 case $ac_sys_system in
28264 { echo "$as_me:$LINENO: WARNING:
28266 Support for BeOS is deprecated as of Python 2.6.
28267 See PEP 11 for the gory details.
28269 echo "$as_me: WARNING:
28271 Support for BeOS is deprecated as of Python 2.6.
28272 See PEP 11 for the gory details.
28278 mv config.c Modules