2 # From configure.in Revision: 74978 .
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 mathematical functions *
23238 # ************************************
23243 # Detect whether system arithmetic is subject to x87-style double
23244 # rounding issues. The result of this test has little meaning on non
23245 # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding
23246 # mode is round-to-nearest and double rounding issues are present, and
23247 # 0 otherwise. See http://bugs.python.org/issue2937 for more info.
23248 { echo "$as_me:$LINENO: checking for x87-style double rounding" >&5
23249 echo $ECHO_N "checking for x87-style double rounding... $ECHO_C" >&6; }
23250 if test "${ac_cv_x87_double_rounding+set}" = set; then
23251 echo $ECHO_N "(cached) $ECHO_C" >&6
23254 if test "$cross_compiling" = yes; then
23255 ac_cv_x87_double_rounding=no
23257 cat >conftest.$ac_ext <<_ACEOF
23260 cat confdefs.h >>conftest.$ac_ext
23261 cat >>conftest.$ac_ext <<_ACEOF
23262 /* end confdefs.h. */
23264 #include <stdlib.h>
23267 volatile double x, y, z;
23268 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
23269 x = 0.99999999999999989; /* 1-2**-53 */
23273 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
23279 /* both tests show evidence of double rounding */
23284 rm -f conftest$ac_exeext
23285 if { (ac_try="$ac_link"
23286 case "(($ac_try" in
23287 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23288 *) ac_try_echo
=$ac_try;;
23290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23291 (eval "$ac_link") 2>&5
23293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23294 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23295 { (case "(($ac_try" in
23296 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23297 *) ac_try_echo=$ac_try;;
23299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23300 (eval "$ac_try") 2>&5
23302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23303 (exit $ac_status); }; }; then
23304 ac_cv_x87_double_rounding=no
23306 echo "$as_me: program exited with status $ac_status" >&5
23307 echo "$as_me: failed program was:" >&5
23308 sed 's/^/| /' conftest.$ac_ext >&5
23310 ( exit $ac_status )
23311 ac_cv_x87_double_rounding=yes
23313 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23319 { echo "$as_me:$LINENO: result: $ac_cv_x87_double_rounding" >&5
23320 echo "${ECHO_T}$ac_cv_x87_double_rounding" >&6; }
23321 if test "$ac_cv_x87_double_rounding" = yes
23324 cat >>confdefs.h <<\_ACEOF
23325 #define X87_DOUBLE_ROUNDING 1
23330 # Multiprocessing check for broken sem_getvalue
23331 { echo "$as_me:$LINENO: checking for broken sem_getvalue" >&5
23332 echo $ECHO_N "checking for broken sem_getvalue... $ECHO_C" >&6; }
23333 if test "${ac_cv_broken_sem_getvalue+set}" = set; then
23334 echo $ECHO_N "(cached) $ECHO_C" >&6
23336 if test "$cross_compiling" = yes; then
23337 ac_cv_broken_sem_getvalue=yes
23339 cat >conftest.$ac_ext <<_ACEOF
23342 cat confdefs.h >>conftest.$ac_ext
23343 cat >>conftest.$ac_ext <<_ACEOF
23344 /* end confdefs.h. */
23346 #include <unistd.h>
23349 #include <semaphore.h>
23350 #include <sys/stat.h>
23353 sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
23357 perror("sem_open");
23361 res = sem_getvalue(a, &count);
23363 return res==-1 ? 1 : 0;
23367 rm -f conftest$ac_exeext
23368 if { (ac_try="$ac_link"
23369 case "(($ac_try" in
23370 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23371 *) ac_try_echo
=$ac_try;;
23373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23374 (eval "$ac_link") 2>&5
23376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23377 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23378 { (case "(($ac_try" in
23379 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23380 *) ac_try_echo=$ac_try;;
23382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23383 (eval "$ac_try") 2>&5
23385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23386 (exit $ac_status); }; }; then
23387 ac_cv_broken_sem_getvalue=no
23389 echo "$as_me: program exited with status $ac_status" >&5
23390 echo "$as_me: failed program was:" >&5
23391 sed 's/^/| /' conftest.$ac_ext >&5
23393 ( exit $ac_status )
23394 ac_cv_broken_sem_getvalue=yes
23396 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23403 { echo "$as_me:$LINENO: result: $ac_cv_broken_sem_getvalue" >&5
23404 echo "${ECHO_T}$ac_cv_broken_sem_getvalue" >&6; }
23405 if test $ac_cv_broken_sem_getvalue = yes
23408 cat >>confdefs.h <<\_ACEOF
23409 #define HAVE_BROKEN_SEM_GETVALUE 1
23414 # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
23415 # -0. on some architectures.
23416 { echo "$as_me:$LINENO: checking whether tanh preserves the sign of zero" >&5
23417 echo $ECHO_N "checking whether tanh preserves the sign of zero... $ECHO_C" >&6; }
23418 if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then
23419 echo $ECHO_N "(cached) $ECHO_C" >&6
23422 if test "$cross_compiling" = yes; then
23423 ac_cv_tanh_preserves_zero_sign=no
23425 cat >conftest.$ac_ext <<_ACEOF
23428 cat confdefs.h >>conftest.$ac_ext
23429 cat >>conftest.$ac_ext <<_ACEOF
23430 /* end confdefs.h. */
23433 #include <stdlib.h>
23435 /* return 0 if either negative zeros don't exist
23436 on this platform or if negative zeros exist
23437 and tanh(-0.) == -0. */
23438 if (atan2(0., -1.) == atan2(-0., -1.) ||
23439 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
23444 rm -f conftest$ac_exeext
23445 if { (ac_try="$ac_link"
23446 case "(($ac_try" in
23447 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23448 *) ac_try_echo
=$ac_try;;
23450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23451 (eval "$ac_link") 2>&5
23453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23454 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23455 { (case "(($ac_try" in
23456 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23457 *) ac_try_echo=$ac_try;;
23459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23460 (eval "$ac_try") 2>&5
23462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23463 (exit $ac_status); }; }; then
23464 ac_cv_tanh_preserves_zero_sign=yes
23466 echo "$as_me: program exited with status $ac_status" >&5
23467 echo "$as_me: failed program was:" >&5
23468 sed 's/^/| /' conftest.$ac_ext >&5
23470 ( exit $ac_status )
23471 ac_cv_tanh_preserves_zero_sign=no
23473 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23479 { echo "$as_me:$LINENO: result: $ac_cv_tanh_preserves_zero_sign" >&5
23480 echo "${ECHO_T}$ac_cv_tanh_preserves_zero_sign" >&6; }
23481 if test "$ac_cv_tanh_preserves_zero_sign" = yes
23484 cat >>confdefs.h <<\_ACEOF
23485 #define TANH_PRESERVES_ZERO_SIGN 1
23499 for ac_func in acosh asinh atanh copysign erf erfc expm1 finite gamma
23501 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
23502 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23503 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23504 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23505 echo $ECHO_N "(cached) $ECHO_C" >&6
23507 cat >conftest.$ac_ext <<_ACEOF
23510 cat confdefs.h >>conftest.$ac_ext
23511 cat >>conftest.$ac_ext <<_ACEOF
23512 /* end confdefs.h. */
23513 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23514 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23515 #define $ac_func innocuous_$ac_func
23517 /* System header to define __stub macros and hopefully few prototypes,
23518 which can conflict with char $ac_func (); below.
23519 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23520 <limits.h> exists even on freestanding compilers. */
23523 # include <limits.h>
23525 # include <assert.h>
23530 /* Override any GCC internal prototype to avoid an error.
23531 Use char because int might match the return type of a GCC
23532 builtin and then its argument prototype would still apply. */
23537 /* The GNU C library defines this for functions which it implements
23538 to always fail with ENOSYS. Some functions are actually named
23539 something starting with __ and the normal name is an alias. */
23540 #if defined __stub_$ac_func || defined __stub___$ac_func
23547 return $ac_func ();
23552 rm -f conftest.$ac_objext conftest$ac_exeext
23553 if { (ac_try="$ac_link"
23554 case "(($ac_try" in
23555 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23556 *) ac_try_echo
=$ac_try;;
23558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23559 (eval "$ac_link") 2>conftest.er1
23561 grep -v '^ *+' conftest.er1
>conftest.err
23563 cat conftest.err
>&5
23564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23565 (exit $ac_status); } && {
23566 test -z "$ac_c_werror_flag" ||
23567 test ! -s conftest.err
23568 } && test -s conftest
$ac_exeext &&
23569 $as_test_x conftest
$ac_exeext; then
23570 eval "$as_ac_var=yes"
23572 echo "$as_me: failed program was:" >&5
23573 sed 's/^/| /' conftest.
$ac_ext >&5
23575 eval "$as_ac_var=no"
23578 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23579 conftest
$ac_exeext conftest.
$ac_ext
23581 ac_res
=`eval echo '${'$as_ac_var'}'`
23582 { echo "$as_me:$LINENO: result: $ac_res" >&5
23583 echo "${ECHO_T}$ac_res" >&6; }
23584 if test `eval echo '${'$as_ac_var'}'` = yes; then
23585 cat >>confdefs.h
<<_ACEOF
23586 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23597 for ac_func
in hypot lgamma log1p round tgamma
23599 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23600 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23601 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23602 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23603 echo $ECHO_N "(cached) $ECHO_C" >&6
23605 cat >conftest.
$ac_ext <<_ACEOF
23608 cat confdefs.h
>>conftest.
$ac_ext
23609 cat >>conftest.
$ac_ext <<_ACEOF
23610 /* end confdefs.h. */
23611 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23612 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23613 #define $ac_func innocuous_$ac_func
23615 /* System header to define __stub macros and hopefully few prototypes,
23616 which can conflict with char $ac_func (); below.
23617 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23618 <limits.h> exists even on freestanding compilers. */
23621 # include <limits.h>
23623 # include <assert.h>
23628 /* Override any GCC internal prototype to avoid an error.
23629 Use char because int might match the return type of a GCC
23630 builtin and then its argument prototype would still apply. */
23635 /* The GNU C library defines this for functions which it implements
23636 to always fail with ENOSYS. Some functions are actually named
23637 something starting with __ and the normal name is an alias. */
23638 #if defined __stub_$ac_func || defined __stub___$ac_func
23645 return $ac_func ();
23650 rm -f conftest.
$ac_objext conftest
$ac_exeext
23651 if { (ac_try
="$ac_link"
23652 case "(($ac_try" in
23653 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23654 *) ac_try_echo=$ac_try;;
23656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23657 (eval "$ac_link") 2>conftest.er1
23659 grep -v '^ *+' conftest.er1 >conftest.err
23661 cat conftest.err >&5
23662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23663 (exit $ac_status); } && {
23664 test -z "$ac_c_werror_flag" ||
23665 test ! -s conftest.err
23666 } && test -s conftest$ac_exeext &&
23667 $as_test_x conftest$ac_exeext; then
23668 eval "$as_ac_var=yes"
23670 echo "$as_me: failed program was:" >&5
23671 sed 's/^/| /' conftest.$ac_ext >&5
23673 eval "$as_ac_var=no"
23676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23677 conftest$ac_exeext conftest.$ac_ext
23679 ac_res=`eval echo '${'$as_ac_var'}'`
23680 { echo "$as_me:$LINENO: result: $ac_res" >&5
23681 echo "${ECHO_T}$ac_res" >&6; }
23682 if test `eval echo '${'$as_ac_var'}'` = yes; then
23683 cat >>confdefs.h <<_ACEOF
23684 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
23690 { echo "$as_me:$LINENO: checking whether isinf is declared" >&5
23691 echo $ECHO_N "checking whether isinf is declared... $ECHO_C" >&6; }
23692 if test "${ac_cv_have_decl_isinf+set}" = set; then
23693 echo $ECHO_N "(cached) $ECHO_C" >&6
23695 cat >conftest.$ac_ext <<_ACEOF
23698 cat confdefs.h >>conftest.$ac_ext
23699 cat >>conftest.$ac_ext <<_ACEOF
23700 /* end confdefs.h. */
23714 rm -f conftest.$ac_objext
23715 if { (ac_try="$ac_compile"
23716 case "(($ac_try" in
23717 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23718 *) ac_try_echo
=$ac_try;;
23720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23721 (eval "$ac_compile") 2>conftest.er1
23723 grep -v '^ *+' conftest.er1
>conftest.err
23725 cat conftest.err
>&5
23726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23727 (exit $ac_status); } && {
23728 test -z "$ac_c_werror_flag" ||
23729 test ! -s conftest.err
23730 } && test -s conftest.
$ac_objext; then
23731 ac_cv_have_decl_isinf
=yes
23733 echo "$as_me: failed program was:" >&5
23734 sed 's/^/| /' conftest.
$ac_ext >&5
23736 ac_cv_have_decl_isinf
=no
23739 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23741 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isinf" >&5
23742 echo "${ECHO_T}$ac_cv_have_decl_isinf" >&6; }
23743 if test $ac_cv_have_decl_isinf = yes; then
23745 cat >>confdefs.h
<<_ACEOF
23746 #define HAVE_DECL_ISINF 1
23751 cat >>confdefs.h
<<_ACEOF
23752 #define HAVE_DECL_ISINF 0
23757 { echo "$as_me:$LINENO: checking whether isnan is declared" >&5
23758 echo $ECHO_N "checking whether isnan is declared... $ECHO_C" >&6; }
23759 if test "${ac_cv_have_decl_isnan+set}" = set; then
23760 echo $ECHO_N "(cached) $ECHO_C" >&6
23762 cat >conftest.
$ac_ext <<_ACEOF
23765 cat confdefs.h
>>conftest.
$ac_ext
23766 cat >>conftest.
$ac_ext <<_ACEOF
23767 /* end confdefs.h. */
23781 rm -f conftest.
$ac_objext
23782 if { (ac_try
="$ac_compile"
23783 case "(($ac_try" in
23784 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23785 *) ac_try_echo=$ac_try;;
23787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23788 (eval "$ac_compile") 2>conftest.er1
23790 grep -v '^ *+' conftest.er1 >conftest.err
23792 cat conftest.err >&5
23793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23794 (exit $ac_status); } && {
23795 test -z "$ac_c_werror_flag" ||
23796 test ! -s conftest.err
23797 } && test -s conftest.$ac_objext; then
23798 ac_cv_have_decl_isnan=yes
23800 echo "$as_me: failed program was:" >&5
23801 sed 's/^/| /' conftest.$ac_ext >&5
23803 ac_cv_have_decl_isnan=no
23806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23808 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isnan" >&5
23809 echo "${ECHO_T}$ac_cv_have_decl_isnan" >&6; }
23810 if test $ac_cv_have_decl_isnan = yes; then
23812 cat >>confdefs.h <<_ACEOF
23813 #define HAVE_DECL_ISNAN 1
23818 cat >>confdefs.h <<_ACEOF
23819 #define HAVE_DECL_ISNAN 0
23824 { echo "$as_me:$LINENO: checking whether isfinite is declared" >&5
23825 echo $ECHO_N "checking whether isfinite is declared... $ECHO_C" >&6; }
23826 if test "${ac_cv_have_decl_isfinite+set}" = set; then
23827 echo $ECHO_N "(cached) $ECHO_C" >&6
23829 cat >conftest.$ac_ext <<_ACEOF
23832 cat confdefs.h >>conftest.$ac_ext
23833 cat >>conftest.$ac_ext <<_ACEOF
23834 /* end confdefs.h. */
23848 rm -f conftest.$ac_objext
23849 if { (ac_try="$ac_compile"
23850 case "(($ac_try" in
23851 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23852 *) ac_try_echo
=$ac_try;;
23854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23855 (eval "$ac_compile") 2>conftest.er1
23857 grep -v '^ *+' conftest.er1
>conftest.err
23859 cat conftest.err
>&5
23860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23861 (exit $ac_status); } && {
23862 test -z "$ac_c_werror_flag" ||
23863 test ! -s conftest.err
23864 } && test -s conftest.
$ac_objext; then
23865 ac_cv_have_decl_isfinite
=yes
23867 echo "$as_me: failed program was:" >&5
23868 sed 's/^/| /' conftest.
$ac_ext >&5
23870 ac_cv_have_decl_isfinite
=no
23873 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23875 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_isfinite" >&5
23876 echo "${ECHO_T}$ac_cv_have_decl_isfinite" >&6; }
23877 if test $ac_cv_have_decl_isfinite = yes; then
23879 cat >>confdefs.h
<<_ACEOF
23880 #define HAVE_DECL_ISFINITE 1
23885 cat >>confdefs.h
<<_ACEOF
23886 #define HAVE_DECL_ISFINITE 0
23896 # determine what size digit to use for Python's longs
23897 { echo "$as_me:$LINENO: checking digit size for Python's longs" >&5
23898 echo $ECHO_N "checking digit size for Python's longs... $ECHO_C" >&6; }
23899 # Check whether --enable-big-digits was given.
23900 if test "${enable_big_digits+set}" = set; then
23901 enableval
=$enable_big_digits; case $enable_big_digits in
23903 enable_big_digits
=30 ;;
23905 enable_big_digits
=15 ;;
23909 { { echo "$as_me:$LINENO: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&5
23910 echo "$as_me: error: bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" >&2;}
23911 { (exit 1); exit 1; }; } ;;
23913 { echo "$as_me:$LINENO: result: $enable_big_digits" >&5
23914 echo "${ECHO_T}$enable_big_digits" >&6; }
23916 cat >>confdefs.h
<<_ACEOF
23917 #define PYLONG_BITS_IN_DIGIT $enable_big_digits
23922 { echo "$as_me:$LINENO: result: no value specified" >&5
23923 echo "${ECHO_T}no value specified" >&6; }
23927 # check for wchar.h
23928 if test "${ac_cv_header_wchar_h+set}" = set; then
23929 { echo "$as_me:$LINENO: checking for wchar.h" >&5
23930 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
23931 if test "${ac_cv_header_wchar_h+set}" = set; then
23932 echo $ECHO_N "(cached) $ECHO_C" >&6
23934 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
23935 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
23937 # Is the header compilable?
23938 { echo "$as_me:$LINENO: checking wchar.h usability" >&5
23939 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; }
23940 cat >conftest.
$ac_ext <<_ACEOF
23943 cat confdefs.h
>>conftest.
$ac_ext
23944 cat >>conftest.
$ac_ext <<_ACEOF
23945 /* end confdefs.h. */
23946 $ac_includes_default
23949 rm -f conftest.
$ac_objext
23950 if { (ac_try
="$ac_compile"
23951 case "(($ac_try" in
23952 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23953 *) ac_try_echo=$ac_try;;
23955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23956 (eval "$ac_compile") 2>conftest.er1
23958 grep -v '^ *+' conftest.er1 >conftest.err
23960 cat conftest.err >&5
23961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23962 (exit $ac_status); } && {
23963 test -z "$ac_c_werror_flag" ||
23964 test ! -s conftest.err
23965 } && test -s conftest.$ac_objext; then
23966 ac_header_compiler=yes
23968 echo "$as_me: failed program was:" >&5
23969 sed 's/^/| /' conftest.$ac_ext >&5
23971 ac_header_compiler=no
23974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23975 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23976 echo "${ECHO_T}$ac_header_compiler" >&6; }
23978 # Is the header present?
23979 { echo "$as_me:$LINENO: checking wchar.h presence" >&5
23980 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; }
23981 cat >conftest.$ac_ext <<_ACEOF
23984 cat confdefs.h >>conftest.$ac_ext
23985 cat >>conftest.$ac_ext <<_ACEOF
23986 /* end confdefs.h. */
23989 if { (ac_try="$ac_cpp conftest.$ac_ext"
23990 case "(($ac_try" in
23991 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23992 *) ac_try_echo
=$ac_try;;
23994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23995 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23997 grep -v '^ *+' conftest.er1
>conftest.err
23999 cat conftest.err
>&5
24000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24001 (exit $ac_status); } >/dev
/null
&& {
24002 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24003 test ! -s conftest.err
24005 ac_header_preproc
=yes
24007 echo "$as_me: failed program was:" >&5
24008 sed 's/^/| /' conftest.
$ac_ext >&5
24010 ac_header_preproc
=no
24013 rm -f conftest.err conftest.
$ac_ext
24014 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24015 echo "${ECHO_T}$ac_header_preproc" >&6; }
24017 # So? What about this header?
24018 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24020 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
24021 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24022 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
24023 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
24024 ac_header_preproc
=yes
24027 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
24028 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
24029 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
24030 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
24031 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
24032 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
24033 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
24034 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
24035 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
24036 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
24037 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
24038 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
24040 ## -------------------------------------- ##
24041 ## Report this to http://bugs.python.org/ ##
24042 ## -------------------------------------- ##
24044 ) |
sed "s/^/$as_me: WARNING: /" >&2
24047 { echo "$as_me:$LINENO: checking for wchar.h" >&5
24048 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
24049 if test "${ac_cv_header_wchar_h+set}" = set; then
24050 echo $ECHO_N "(cached) $ECHO_C" >&6
24052 ac_cv_header_wchar_h
=$ac_header_preproc
24054 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
24055 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
24058 if test $ac_cv_header_wchar_h = yes; then
24061 cat >>confdefs.h
<<\_ACEOF
24062 #define HAVE_WCHAR_H 1
24074 # determine wchar_t size
24075 if test "$wchar_h" = yes
24077 { echo "$as_me:$LINENO: checking for wchar_t" >&5
24078 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
24079 if test "${ac_cv_type_wchar_t+set}" = set; then
24080 echo $ECHO_N "(cached) $ECHO_C" >&6
24082 cat >conftest.
$ac_ext <<_ACEOF
24085 cat confdefs.h
>>conftest.
$ac_ext
24086 cat >>conftest.
$ac_ext <<_ACEOF
24087 /* end confdefs.h. */
24090 typedef wchar_t ac__type_new_;
24094 if ((ac__type_new_ *) 0)
24096 if (sizeof (ac__type_new_))
24102 rm -f conftest.
$ac_objext
24103 if { (ac_try
="$ac_compile"
24104 case "(($ac_try" in
24105 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24106 *) ac_try_echo=$ac_try;;
24108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24109 (eval "$ac_compile") 2>conftest.er1
24111 grep -v '^ *+' conftest.er1 >conftest.err
24113 cat conftest.err >&5
24114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24115 (exit $ac_status); } && {
24116 test -z "$ac_c_werror_flag" ||
24117 test ! -s conftest.err
24118 } && test -s conftest.$ac_objext; then
24119 ac_cv_type_wchar_t=yes
24121 echo "$as_me: failed program was:" >&5
24122 sed 's/^/| /' conftest.$ac_ext >&5
24124 ac_cv_type_wchar_t=no
24127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24129 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
24130 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
24132 # The cast to long int works around a bug in the HP C Compiler
24133 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24134 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
24135 # This bug is HP SR number 8606223364.
24136 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
24137 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
24138 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
24139 echo $ECHO_N "(cached) $ECHO_C" >&6
24141 if test "$cross_compiling" = yes; then
24142 # Depending upon the size, compute the lo and hi bounds.
24143 cat >conftest.$ac_ext <<_ACEOF
24146 cat confdefs.h >>conftest.$ac_ext
24147 cat >>conftest.$ac_ext <<_ACEOF
24148 /* end confdefs.h. */
24151 typedef wchar_t ac__type_sizeof_;
24155 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24162 rm -f conftest.$ac_objext
24163 if { (ac_try="$ac_compile"
24164 case "(($ac_try" in
24165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24166 *) ac_try_echo=$ac_try;;
24168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24169 (eval "$ac_compile") 2>conftest.er1
24171 grep -v '^
*+' conftest.er1 >conftest.err
24173 cat conftest.err >&5
24174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24175 (exit $ac_status); } && {
24176 test -z "$ac_c_werror_flag" ||
24177 test ! -s conftest.err
24178 } && test -s conftest.$ac_objext; then
24181 cat >conftest.$ac_ext <<_ACEOF
24184 cat confdefs.h >>conftest.$ac_ext
24185 cat >>conftest.$ac_ext <<_ACEOF
24186 /* end confdefs.h. */
24189 typedef wchar_t ac__type_sizeof_;
24193 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24200 rm -f conftest.$ac_objext
24201 if { (ac_try="$ac_compile"
24202 case "(($ac_try" in
24203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24204 *) ac_try_echo=$ac_try;;
24206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24207 (eval "$ac_compile") 2>conftest.er1
24209 grep -v '^
*+' conftest.er1 >conftest.err
24211 cat conftest.err >&5
24212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24213 (exit $ac_status); } && {
24214 test -z "$ac_c_werror_flag" ||
24215 test ! -s conftest.err
24216 } && test -s conftest.$ac_objext; then
24217 ac_hi=$ac_mid; break
24219 echo "$as_me: failed program was:" >&5
24220 sed 's
/^
/|
/' conftest.$ac_ext >&5
24222 ac_lo=`expr $ac_mid + 1`
24223 if test $ac_lo -le $ac_mid; then
24227 ac_mid=`expr 2 '*' $ac_mid + 1`
24230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24233 echo "$as_me: failed program was:" >&5
24234 sed 's
/^
/|
/' conftest.$ac_ext >&5
24236 cat >conftest.$ac_ext <<_ACEOF
24239 cat confdefs.h >>conftest.$ac_ext
24240 cat >>conftest.$ac_ext <<_ACEOF
24241 /* end confdefs.h. */
24244 typedef wchar_t ac__type_sizeof_;
24248 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24255 rm -f conftest.$ac_objext
24256 if { (ac_try="$ac_compile"
24257 case "(($ac_try" in
24258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24259 *) ac_try_echo=$ac_try;;
24261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24262 (eval "$ac_compile") 2>conftest.er1
24264 grep -v '^
*+' conftest.er1 >conftest.err
24266 cat conftest.err >&5
24267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24268 (exit $ac_status); } && {
24269 test -z "$ac_c_werror_flag" ||
24270 test ! -s conftest.err
24271 } && test -s conftest.$ac_objext; then
24274 cat >conftest.$ac_ext <<_ACEOF
24277 cat confdefs.h >>conftest.$ac_ext
24278 cat >>conftest.$ac_ext <<_ACEOF
24279 /* end confdefs.h. */
24282 typedef wchar_t ac__type_sizeof_;
24286 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24293 rm -f conftest.$ac_objext
24294 if { (ac_try="$ac_compile"
24295 case "(($ac_try" in
24296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24297 *) ac_try_echo=$ac_try;;
24299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24300 (eval "$ac_compile") 2>conftest.er1
24302 grep -v '^
*+' conftest.er1 >conftest.err
24304 cat conftest.err >&5
24305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24306 (exit $ac_status); } && {
24307 test -z "$ac_c_werror_flag" ||
24308 test ! -s conftest.err
24309 } && test -s conftest.$ac_objext; then
24310 ac_lo=$ac_mid; break
24312 echo "$as_me: failed program was:" >&5
24313 sed 's
/^
/|
/' conftest.$ac_ext >&5
24315 ac_hi=`expr '(' $ac_mid ')' - 1`
24316 if test $ac_mid -le $ac_hi; then
24320 ac_mid=`expr 2 '*' $ac_mid`
24323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24326 echo "$as_me: failed program was:" >&5
24327 sed 's
/^
/|
/' conftest.$ac_ext >&5
24332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24336 # Binary search between lo and hi bounds.
24337 while test "x$ac_lo" != "x$ac_hi"; do
24338 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24339 cat >conftest.$ac_ext <<_ACEOF
24342 cat confdefs.h >>conftest.$ac_ext
24343 cat >>conftest.$ac_ext <<_ACEOF
24344 /* end confdefs.h. */
24347 typedef wchar_t ac__type_sizeof_;
24351 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24358 rm -f conftest.$ac_objext
24359 if { (ac_try="$ac_compile"
24360 case "(($ac_try" in
24361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24362 *) ac_try_echo=$ac_try;;
24364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24365 (eval "$ac_compile") 2>conftest.er1
24367 grep -v '^
*+' conftest.er1 >conftest.err
24369 cat conftest.err >&5
24370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24371 (exit $ac_status); } && {
24372 test -z "$ac_c_werror_flag" ||
24373 test ! -s conftest.err
24374 } && test -s conftest.$ac_objext; then
24377 echo "$as_me: failed program was:" >&5
24378 sed 's
/^
/|
/' conftest.$ac_ext >&5
24380 ac_lo=`expr '(' $ac_mid ')' + 1`
24383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24386 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
24387 '') if test "$ac_cv_type_wchar_t" = yes; then
24388 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
24389 See \`config.log' for more details.
" >&5
24390 echo "$as_me: error
: cannot compute sizeof
(wchar_t
)
24391 See \
`config.log' for more details." >&2;}
24392 { (exit 77); exit 77; }; }
24394 ac_cv_sizeof_wchar_t=0
24398 cat >conftest.$ac_ext <<_ACEOF
24401 cat confdefs.h >>conftest.$ac_ext
24402 cat >>conftest.$ac_ext <<_ACEOF
24403 /* end confdefs.h. */
24406 typedef wchar_t ac__type_sizeof_;
24407 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24408 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24410 #include <stdlib.h>
24415 FILE *f = fopen ("conftest.val", "w");
24418 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24420 long int i = longval ();
24421 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24423 fprintf (f, "%ld\n", i);
24427 unsigned long int i = ulongval ();
24428 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24430 fprintf (f, "%lu\n", i);
24432 return ferror (f) || fclose (f) != 0;
24438 rm -f conftest$ac_exeext
24439 if { (ac_try="$ac_link"
24440 case "(($ac_try" in
24441 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24442 *) ac_try_echo
=$ac_try;;
24444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24445 (eval "$ac_link") 2>&5
24447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24448 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24449 { (case "(($ac_try" in
24450 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24451 *) ac_try_echo=$ac_try;;
24453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24454 (eval "$ac_try") 2>&5
24456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24457 (exit $ac_status); }; }; then
24458 ac_cv_sizeof_wchar_t=`cat conftest.val
`
24460 echo "$as_me: program exited with status $ac_status" >&5
24461 echo "$as_me: failed program was:" >&5
24462 sed 's/^/| /' conftest.$ac_ext >&5
24464 ( exit $ac_status )
24465 if test "$ac_cv_type_wchar_t" = yes; then
24466 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
24467 See \`config.log
' for more details." >&5
24468 echo "$as_me: error: cannot compute sizeof (wchar_t)
24469 See \`config.log' for more details.
" >&2;}
24470 { (exit 77); exit 77; }; }
24472 ac_cv_sizeof_wchar_t=0
24475 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24479 { echo "$as_me:$LINENO: result
: $ac_cv_sizeof_wchar_t" >&5
24480 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
24484 cat >>confdefs.h <<_ACEOF
24485 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
24491 { echo "$as_me:$LINENO: checking
for UCS-4 tcl
" >&5
24492 echo $ECHO_N "checking
for UCS-4 tcl...
$ECHO_C" >&6; }
24494 cat >conftest.$ac_ext <<_ACEOF
24497 cat confdefs.h >>conftest.$ac_ext
24498 cat >>conftest.$ac_ext <<_ACEOF
24499 /* end confdefs.h. */
24502 #if TCL_UTF_MAX != 6
24503 # error "NOT UCS4_TCL
"
24513 rm -f conftest.$ac_objext
24514 if { (ac_try="$ac_compile"
24515 case "(($ac_try" in
24516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24517 *) ac_try_echo=$ac_try;;
24519 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24520 (eval "$ac_compile") 2>conftest.er1
24522 grep -v '^ *+' conftest.er1 >conftest.err
24524 cat conftest.err >&5
24525 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24526 (exit $ac_status); } && {
24527 test -z "$ac_c_werror_flag" ||
24528 test ! -s conftest.err
24529 } && test -s conftest.$ac_objext; then
24532 cat >>confdefs.h <<\_ACEOF
24533 #define HAVE_UCS4_TCL 1
24539 echo "$as_me: failed program was
:" >&5
24540 sed 's/^/| /' conftest.$ac_ext >&5
24545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24546 { echo "$as_me:$LINENO: result
: $have_ucs4_tcl" >&5
24547 echo "${ECHO_T}$have_ucs4_tcl" >&6; }
24549 # check whether wchar_t is signed or not
24550 if test "$wchar_h" = yes
24552 # check whether wchar_t is signed or not
24553 { echo "$as_me:$LINENO: checking whether wchar_t is signed
" >&5
24554 echo $ECHO_N "checking whether wchar_t is signed...
$ECHO_C" >&6; }
24555 if test "${ac_cv_wchar_t_signed+set}" = set; then
24556 echo $ECHO_N "(cached
) $ECHO_C" >&6
24559 if test "$cross_compiling" = yes; then
24560 ac_cv_wchar_t_signed=yes
24562 cat >conftest.$ac_ext <<_ACEOF
24565 cat confdefs.h >>conftest.$ac_ext
24566 cat >>conftest.$ac_ext <<_ACEOF
24567 /* end confdefs.h. */
24572 /* Success: exit code 0 */
24573 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
24577 rm -f conftest$ac_exeext
24578 if { (ac_try="$ac_link"
24579 case "(($ac_try" in
24580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24581 *) ac_try_echo=$ac_try;;
24583 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24584 (eval "$ac_link") 2>&5
24586 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24587 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
24595 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24596 (exit $ac_status); }; }; then
24597 ac_cv_wchar_t_signed=yes
24599 echo "$as_me: program exited with status
$ac_status" >&5
24600 echo "$as_me: failed program was
:" >&5
24601 sed 's/^/| /' conftest.$ac_ext >&5
24603 ( exit $ac_status )
24604 ac_cv_wchar_t_signed=no
24606 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24612 { echo "$as_me:$LINENO: result
: $ac_cv_wchar_t_signed" >&5
24613 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
24616 { echo "$as_me:$LINENO: checking what
type to use
for unicode
" >&5
24617 echo $ECHO_N "checking what
type to use
for unicode...
$ECHO_C" >&6; }
24618 # Check whether --enable-unicode was given.
24619 if test "${enable_unicode+set}" = set; then
24620 enableval=$enable_unicode;
24626 if test $enable_unicode = yes
24628 # Without any arguments, Py_UNICODE defaults to two-byte mode
24629 case "$have_ucs4_tcl" in
24630 yes) enable_unicode="ucs4
"
24632 *) enable_unicode="ucs2
"
24639 case "$enable_unicode" in
24640 ucs2) unicode_size="2"
24641 cat >>confdefs.h <<\_ACEOF
24642 #define Py_UNICODE_SIZE 2
24646 ucs4) unicode_size="4"
24647 cat >>confdefs.h <<\_ACEOF
24648 #define Py_UNICODE_SIZE 4
24658 if test "$enable_unicode" = "no
"
24661 { echo "$as_me:$LINENO: result
: not used
" >&5
24662 echo "${ECHO_T}not used
" >&6; }
24664 UNICODE_OBJS="Objects
/unicodeobject.o Objects
/unicodectype.o
"
24666 cat >>confdefs.h <<\_ACEOF
24667 #define Py_USING_UNICODE 1
24671 # wchar_t is only usable if it maps to an unsigned type
24672 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
24673 -a "$ac_cv_wchar_t_signed" = "no
"
24675 PY_UNICODE_TYPE="wchar_t
"
24677 cat >>confdefs.h <<\_ACEOF
24678 #define HAVE_USABLE_WCHAR_T 1
24681 cat >>confdefs.h <<\_ACEOF
24682 #define PY_UNICODE_TYPE wchar_t
24685 elif test "$ac_cv_sizeof_short" = "$unicode_size"
24687 PY_UNICODE_TYPE="unsigned short
"
24688 cat >>confdefs.h <<\_ACEOF
24689 #define PY_UNICODE_TYPE unsigned short
24692 elif test "$ac_cv_sizeof_long" = "$unicode_size"
24694 PY_UNICODE_TYPE="unsigned long
"
24695 cat >>confdefs.h <<\_ACEOF
24696 #define PY_UNICODE_TYPE unsigned long
24700 PY_UNICODE_TYPE="no
type found
"
24702 { echo "$as_me:$LINENO: result
: $PY_UNICODE_TYPE" >&5
24703 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
24706 # check for endianness
24707 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian
" >&5
24708 echo $ECHO_N "checking whether byte ordering is bigendian...
$ECHO_C" >&6; }
24709 if test "${ac_cv_c_bigendian+set}" = set; then
24710 echo $ECHO_N "(cached
) $ECHO_C" >&6
24712 # See if sys/param.h defines the BYTE_ORDER macro.
24713 cat >conftest.$ac_ext <<_ACEOF
24716 cat confdefs.h >>conftest.$ac_ext
24717 cat >>conftest.$ac_ext <<_ACEOF
24718 /* end confdefs.h. */
24719 #include <sys/types.h>
24720 #include <sys/param.h>
24725 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
24726 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
24727 bogus endian macros
24734 rm -f conftest.$ac_objext
24735 if { (ac_try="$ac_compile"
24736 case "(($ac_try" in
24737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24738 *) ac_try_echo=$ac_try;;
24740 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24741 (eval "$ac_compile") 2>conftest.er1
24743 grep -v '^ *+' conftest.er1 >conftest.err
24745 cat conftest.err >&5
24746 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24747 (exit $ac_status); } && {
24748 test -z "$ac_c_werror_flag" ||
24749 test ! -s conftest.err
24750 } && test -s conftest.$ac_objext; then
24751 # It does; now see whether it defined to BIG_ENDIAN or not.
24752 cat >conftest.$ac_ext <<_ACEOF
24755 cat confdefs.h >>conftest.$ac_ext
24756 cat >>conftest.$ac_ext <<_ACEOF
24757 /* end confdefs.h. */
24758 #include <sys/types.h>
24759 #include <sys/param.h>
24764 #if BYTE_ORDER != BIG_ENDIAN
24772 rm -f conftest.$ac_objext
24773 if { (ac_try="$ac_compile"
24774 case "(($ac_try" in
24775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24776 *) ac_try_echo=$ac_try;;
24778 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24779 (eval "$ac_compile") 2>conftest.er1
24781 grep -v '^ *+' conftest.er1 >conftest.err
24783 cat conftest.err >&5
24784 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24785 (exit $ac_status); } && {
24786 test -z "$ac_c_werror_flag" ||
24787 test ! -s conftest.err
24788 } && test -s conftest.$ac_objext; then
24789 ac_cv_c_bigendian=yes
24791 echo "$as_me: failed program was
:" >&5
24792 sed 's/^/| /' conftest.$ac_ext >&5
24794 ac_cv_c_bigendian=no
24797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24799 echo "$as_me: failed program was
:" >&5
24800 sed 's/^/| /' conftest.$ac_ext >&5
24802 # It does not; compile a test program.
24803 if test "$cross_compiling" = yes; then
24804 # try to guess the endianness by grepping values into an object file
24805 ac_cv_c_bigendian=unknown
24806 cat >conftest.$ac_ext <<_ACEOF
24809 cat confdefs.h >>conftest.$ac_ext
24810 cat >>conftest.$ac_ext <<_ACEOF
24811 /* end confdefs.h. */
24812 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
24813 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
24814 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
24815 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
24816 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
24817 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
24821 _ascii (); _ebcdic ();
24826 rm -f conftest.$ac_objext
24827 if { (ac_try="$ac_compile"
24828 case "(($ac_try" in
24829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24830 *) ac_try_echo=$ac_try;;
24832 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24833 (eval "$ac_compile") 2>conftest.er1
24835 grep -v '^ *+' conftest.er1 >conftest.err
24837 cat conftest.err >&5
24838 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24839 (exit $ac_status); } && {
24840 test -z "$ac_c_werror_flag" ||
24841 test ! -s conftest.err
24842 } && test -s conftest.$ac_objext; then
24843 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
24844 ac_cv_c_bigendian=yes
24846 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
24847 if test "$ac_cv_c_bigendian" = unknown; then
24848 ac_cv_c_bigendian=no
24850 # finding both strings is unlikely to happen, but who knows?
24851 ac_cv_c_bigendian=unknown
24855 echo "$as_me: failed program was
:" >&5
24856 sed 's/^/| /' conftest.$ac_ext >&5
24861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24863 cat >conftest.$ac_ext <<_ACEOF
24866 cat confdefs.h >>conftest.$ac_ext
24867 cat >>conftest.$ac_ext <<_ACEOF
24868 /* end confdefs.h. */
24869 $ac_includes_default
24874 /* Are we little or big endian? From Harbison&Steele. */
24878 char c[sizeof (long int)];
24881 return u.c[sizeof (long int) - 1] == 1;
24887 rm -f conftest$ac_exeext
24888 if { (ac_try="$ac_link"
24889 case "(($ac_try" in
24890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24891 *) ac_try_echo=$ac_try;;
24893 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24894 (eval "$ac_link") 2>&5
24896 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24897 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24898 { (case "(($ac_try" in
24899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24900 *) ac_try_echo=$ac_try;;
24902 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24903 (eval "$ac_try") 2>&5
24905 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24906 (exit $ac_status); }; }; then
24907 ac_cv_c_bigendian=no
24909 echo "$as_me: program exited with status
$ac_status" >&5
24910 echo "$as_me: failed program was
:" >&5
24911 sed 's/^/| /' conftest.$ac_ext >&5
24913 ( exit $ac_status )
24914 ac_cv_c_bigendian=yes
24916 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24924 { echo "$as_me:$LINENO: result
: $ac_cv_c_bigendian" >&5
24925 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
24926 case $ac_cv_c_bigendian in
24929 cat >>confdefs.h <<\_ACEOF
24930 #define WORDS_BIGENDIAN 1
24936 { { echo "$as_me:$LINENO: error
: unknown endianness
24937 presetting ac_cv_c_bigendian
=no
(or
yes) will
help" >&5
24938 echo "$as_me: error
: unknown endianness
24939 presetting ac_cv_c_bigendian
=no
(or
yes) will
help" >&2;}
24940 { (exit 1); exit 1; }; } ;;
24944 # Check whether right shifting a negative integer extends the sign bit
24945 # or fills with zeros (like the Cray J90, according to Tim Peters).
24946 { echo "$as_me:$LINENO: checking whether right
shift extends the sign bit
" >&5
24947 echo $ECHO_N "checking whether right
shift extends the sign bit...
$ECHO_C" >&6; }
24948 if test "${ac_cv_rshift_extends_sign+set}" = set; then
24949 echo $ECHO_N "(cached
) $ECHO_C" >&6
24952 if test "$cross_compiling" = yes; then
24953 ac_cv_rshift_extends_sign=yes
24955 cat >conftest.$ac_ext <<_ACEOF
24958 cat confdefs.h >>conftest.$ac_ext
24959 cat >>conftest.$ac_ext <<_ACEOF
24960 /* end confdefs.h. */
24964 exit(((-1)>>3 == -1) ? 0 : 1);
24968 rm -f conftest$ac_exeext
24969 if { (ac_try="$ac_link"
24970 case "(($ac_try" in
24971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24972 *) ac_try_echo=$ac_try;;
24974 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24975 (eval "$ac_link") 2>&5
24977 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24978 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24979 { (case "(($ac_try" in
24980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24981 *) ac_try_echo=$ac_try;;
24983 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24984 (eval "$ac_try") 2>&5
24986 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24987 (exit $ac_status); }; }; then
24988 ac_cv_rshift_extends_sign=yes
24990 echo "$as_me: program exited with status
$ac_status" >&5
24991 echo "$as_me: failed program was
:" >&5
24992 sed 's/^/| /' conftest.$ac_ext >&5
24994 ( exit $ac_status )
24995 ac_cv_rshift_extends_sign=no
24997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25003 { echo "$as_me:$LINENO: result
: $ac_cv_rshift_extends_sign" >&5
25004 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
25005 if test "$ac_cv_rshift_extends_sign" = no
25008 cat >>confdefs.h <<\_ACEOF
25009 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
25014 # check for getc_unlocked and related locking functions
25015 { echo "$as_me:$LINENO: checking
for getc_unlocked
() and friends
" >&5
25016 echo $ECHO_N "checking
for getc_unlocked
() and friends...
$ECHO_C" >&6; }
25017 if test "${ac_cv_have_getc_unlocked+set}" = set; then
25018 echo $ECHO_N "(cached
) $ECHO_C" >&6
25021 cat >conftest.$ac_ext <<_ACEOF
25024 cat confdefs.h >>conftest.$ac_ext
25025 cat >>conftest.$ac_ext <<_ACEOF
25026 /* end confdefs.h. */
25032 FILE *f = fopen("/dev
/null
", "r
");
25041 rm -f conftest.$ac_objext conftest$ac_exeext
25042 if { (ac_try="$ac_link"
25043 case "(($ac_try" in
25044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25045 *) ac_try_echo=$ac_try;;
25047 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25048 (eval "$ac_link") 2>conftest.er1
25050 grep -v '^ *+' conftest.er1 >conftest.err
25052 cat conftest.err >&5
25053 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25054 (exit $ac_status); } && {
25055 test -z "$ac_c_werror_flag" ||
25056 test ! -s conftest.err
25057 } && test -s conftest$ac_exeext &&
25058 $as_test_x conftest$ac_exeext; then
25059 ac_cv_have_getc_unlocked=yes
25061 echo "$as_me: failed program was
:" >&5
25062 sed 's/^/| /' conftest.$ac_ext >&5
25064 ac_cv_have_getc_unlocked=no
25067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25068 conftest$ac_exeext conftest.$ac_ext
25071 { echo "$as_me:$LINENO: result
: $ac_cv_have_getc_unlocked" >&5
25072 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
25073 if test "$ac_cv_have_getc_unlocked" = yes
25076 cat >>confdefs.h <<\_ACEOF
25077 #define HAVE_GETC_UNLOCKED 1
25082 # check where readline lives
25083 # save the value of LIBS so we don't actually link Python with readline
25084 LIBS_no_readline=$LIBS
25086 # On some systems we need to link readline to a termcap compatible
25087 # library. NOTE: Keep the precedence of listed libraries synchronised
25089 py_cv_lib_readline=no
25090 { echo "$as_me:$LINENO: checking how to link readline libs
" >&5
25091 echo $ECHO_N "checking how to link readline libs...
$ECHO_C" >&6; }
25092 for py_libtermcap in "" ncursesw ncurses curses termcap; do
25093 if test -z "$py_libtermcap"; then
25094 READLINE_LIBS="-lreadline"
25096 READLINE_LIBS="-lreadline -l$py_libtermcap"
25098 LIBS="$READLINE_LIBS $LIBS_no_readline"
25099 cat >conftest.$ac_ext <<_ACEOF
25102 cat confdefs.h >>conftest.$ac_ext
25103 cat >>conftest.$ac_ext <<_ACEOF
25104 /* end confdefs.h. */
25106 /* Override any GCC internal prototype to avoid an error.
25107 Use char because int might match the return type of a GCC
25108 builtin and then its argument prototype would still apply. */
25116 return readline ();
25121 rm -f conftest.$ac_objext conftest$ac_exeext
25122 if { (ac_try="$ac_link"
25123 case "(($ac_try" in
25124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25125 *) ac_try_echo=$ac_try;;
25127 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25128 (eval "$ac_link") 2>conftest.er1
25130 grep -v '^ *+' conftest.er1 >conftest.err
25132 cat conftest.err >&5
25133 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25134 (exit $ac_status); } && {
25135 test -z "$ac_c_werror_flag" ||
25136 test ! -s conftest.err
25137 } && test -s conftest$ac_exeext &&
25138 $as_test_x conftest$ac_exeext; then
25139 py_cv_lib_readline=yes
25141 echo "$as_me: failed program was
:" >&5
25142 sed 's/^/| /' conftest.$ac_ext >&5
25147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25148 conftest$ac_exeext conftest.$ac_ext
25149 if test $py_cv_lib_readline = yes; then
25153 # Uncomment this line if you want to use READINE_LIBS in Makefile or scripts
25154 #AC_SUBST([READLINE_LIBS])
25155 if test $py_cv_lib_readline = no; then
25156 { echo "$as_me:$LINENO: result
: none
" >&5
25157 echo "${ECHO_T}none
" >&6; }
25159 { echo "$as_me:$LINENO: result
: $READLINE_LIBS" >&5
25160 echo "${ECHO_T}$READLINE_LIBS" >&6; }
25162 cat >>confdefs.h <<\_ACEOF
25163 #define HAVE_LIBREADLINE 1
25168 # check for readline 2.1
25169 { echo "$as_me:$LINENO: checking
for rl_callback_handler_install
in -lreadline" >&5
25170 echo $ECHO_N "checking
for rl_callback_handler_install
in -lreadline...
$ECHO_C" >&6; }
25171 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
25172 echo $ECHO_N "(cached
) $ECHO_C" >&6
25174 ac_check_lib_save_LIBS=$LIBS
25175 LIBS="-lreadline $READLINE_LIBS $LIBS"
25176 cat >conftest.$ac_ext <<_ACEOF
25179 cat confdefs.h >>conftest.$ac_ext
25180 cat >>conftest.$ac_ext <<_ACEOF
25181 /* end confdefs.h. */
25183 /* Override any GCC internal prototype to avoid an error.
25184 Use char because int might match the return type of a GCC
25185 builtin and then its argument prototype would still apply. */
25189 char rl_callback_handler_install ();
25193 return rl_callback_handler_install ();
25198 rm -f conftest.$ac_objext conftest$ac_exeext
25199 if { (ac_try="$ac_link"
25200 case "(($ac_try" in
25201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25202 *) ac_try_echo=$ac_try;;
25204 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25205 (eval "$ac_link") 2>conftest.er1
25207 grep -v '^ *+' conftest.er1 >conftest.err
25209 cat conftest.err >&5
25210 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25211 (exit $ac_status); } && {
25212 test -z "$ac_c_werror_flag" ||
25213 test ! -s conftest.err
25214 } && test -s conftest$ac_exeext &&
25215 $as_test_x conftest$ac_exeext; then
25216 ac_cv_lib_readline_rl_callback_handler_install=yes
25218 echo "$as_me: failed program was
:" >&5
25219 sed 's/^/| /' conftest.$ac_ext >&5
25221 ac_cv_lib_readline_rl_callback_handler_install=no
25224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25225 conftest$ac_exeext conftest.$ac_ext
25226 LIBS=$ac_check_lib_save_LIBS
25228 { echo "$as_me:$LINENO: result
: $ac_cv_lib_readline_rl_callback_handler_install" >&5
25229 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
25230 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
25232 cat >>confdefs.h <<\_ACEOF
25233 #define HAVE_RL_CALLBACK 1
25239 # check for readline 2.2
25240 cat >conftest.$ac_ext <<_ACEOF
25243 cat confdefs.h >>conftest.$ac_ext
25244 cat >>conftest.$ac_ext <<_ACEOF
25245 /* end confdefs.h. */
25246 #include <readline/readline.h>
25248 if { (ac_try="$ac_cpp conftest.
$ac_ext"
25249 case "(($ac_try" in
25250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25251 *) ac_try_echo=$ac_try;;
25253 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25254 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
25256 grep -v '^ *+' conftest.er1 >conftest.err
25258 cat conftest.err >&5
25259 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25260 (exit $ac_status); } >/dev/null && {
25261 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25262 test ! -s conftest.err
25266 echo "$as_me: failed program was
:" >&5
25267 sed 's/^/| /' conftest.$ac_ext >&5
25272 rm -f conftest.err conftest.$ac_ext
25273 if test $have_readline = yes
25275 cat >conftest.$ac_ext <<_ACEOF
25278 cat confdefs.h >>conftest.$ac_ext
25279 cat >>conftest.$ac_ext <<_ACEOF
25280 /* end confdefs.h. */
25281 #include <readline/readline.h>
25284 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
25285 $EGREP "extern int rl_completion_append_character
;" >/dev/null 2>&1; then
25287 cat >>confdefs.h <<\_ACEOF
25288 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
25296 # check for readline 4.0
25297 { echo "$as_me:$LINENO: checking
for rl_pre_input_hook
in -lreadline" >&5
25298 echo $ECHO_N "checking
for rl_pre_input_hook
in -lreadline...
$ECHO_C" >&6; }
25299 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
25300 echo $ECHO_N "(cached
) $ECHO_C" >&6
25302 ac_check_lib_save_LIBS=$LIBS
25303 LIBS="-lreadline $READLINE_LIBS $LIBS"
25304 cat >conftest.$ac_ext <<_ACEOF
25307 cat confdefs.h >>conftest.$ac_ext
25308 cat >>conftest.$ac_ext <<_ACEOF
25309 /* end confdefs.h. */
25311 /* Override any GCC internal prototype to avoid an error.
25312 Use char because int might match the return type of a GCC
25313 builtin and then its argument prototype would still apply. */
25317 char rl_pre_input_hook ();
25321 return rl_pre_input_hook ();
25326 rm -f conftest.$ac_objext conftest$ac_exeext
25327 if { (ac_try="$ac_link"
25328 case "(($ac_try" in
25329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25330 *) ac_try_echo=$ac_try;;
25332 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25333 (eval "$ac_link") 2>conftest.er1
25335 grep -v '^ *+' conftest.er1 >conftest.err
25337 cat conftest.err >&5
25338 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25339 (exit $ac_status); } && {
25340 test -z "$ac_c_werror_flag" ||
25341 test ! -s conftest.err
25342 } && test -s conftest$ac_exeext &&
25343 $as_test_x conftest$ac_exeext; then
25344 ac_cv_lib_readline_rl_pre_input_hook=yes
25346 echo "$as_me: failed program was
:" >&5
25347 sed 's/^/| /' conftest.$ac_ext >&5
25349 ac_cv_lib_readline_rl_pre_input_hook=no
25352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25353 conftest$ac_exeext conftest.$ac_ext
25354 LIBS=$ac_check_lib_save_LIBS
25356 { echo "$as_me:$LINENO: result
: $ac_cv_lib_readline_rl_pre_input_hook" >&5
25357 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
25358 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
25360 cat >>confdefs.h <<\_ACEOF
25361 #define HAVE_RL_PRE_INPUT_HOOK 1
25368 { echo "$as_me:$LINENO: checking
for rl_completion_display_matches_hook
in -lreadline" >&5
25369 echo $ECHO_N "checking
for rl_completion_display_matches_hook
in -lreadline...
$ECHO_C" >&6; }
25370 if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
25371 echo $ECHO_N "(cached
) $ECHO_C" >&6
25373 ac_check_lib_save_LIBS=$LIBS
25374 LIBS="-lreadline $READLINE_LIBS $LIBS"
25375 cat >conftest.$ac_ext <<_ACEOF
25378 cat confdefs.h >>conftest.$ac_ext
25379 cat >>conftest.$ac_ext <<_ACEOF
25380 /* end confdefs.h. */
25382 /* Override any GCC internal prototype to avoid an error.
25383 Use char because int might match the return type of a GCC
25384 builtin and then its argument prototype would still apply. */
25388 char rl_completion_display_matches_hook ();
25392 return rl_completion_display_matches_hook ();
25397 rm -f conftest.$ac_objext conftest$ac_exeext
25398 if { (ac_try="$ac_link"
25399 case "(($ac_try" in
25400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25401 *) ac_try_echo=$ac_try;;
25403 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25404 (eval "$ac_link") 2>conftest.er1
25406 grep -v '^ *+' conftest.er1 >conftest.err
25408 cat conftest.err >&5
25409 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25410 (exit $ac_status); } && {
25411 test -z "$ac_c_werror_flag" ||
25412 test ! -s conftest.err
25413 } && test -s conftest$ac_exeext &&
25414 $as_test_x conftest$ac_exeext; then
25415 ac_cv_lib_readline_rl_completion_display_matches_hook=yes
25417 echo "$as_me: failed program was
:" >&5
25418 sed 's/^/| /' conftest.$ac_ext >&5
25420 ac_cv_lib_readline_rl_completion_display_matches_hook=no
25423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25424 conftest$ac_exeext conftest.$ac_ext
25425 LIBS=$ac_check_lib_save_LIBS
25427 { echo "$as_me:$LINENO: result
: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
25428 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
25429 if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then
25431 cat >>confdefs.h <<\_ACEOF
25432 #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
25438 # check for readline 4.2
25439 { echo "$as_me:$LINENO: checking
for rl_completion_matches
in -lreadline" >&5
25440 echo $ECHO_N "checking
for rl_completion_matches
in -lreadline...
$ECHO_C" >&6; }
25441 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
25442 echo $ECHO_N "(cached
) $ECHO_C" >&6
25444 ac_check_lib_save_LIBS=$LIBS
25445 LIBS="-lreadline $READLINE_LIBS $LIBS"
25446 cat >conftest.$ac_ext <<_ACEOF
25449 cat confdefs.h >>conftest.$ac_ext
25450 cat >>conftest.$ac_ext <<_ACEOF
25451 /* end confdefs.h. */
25453 /* Override any GCC internal prototype to avoid an error.
25454 Use char because int might match the return type of a GCC
25455 builtin and then its argument prototype would still apply. */
25459 char rl_completion_matches ();
25463 return rl_completion_matches ();
25468 rm -f conftest.$ac_objext conftest$ac_exeext
25469 if { (ac_try="$ac_link"
25470 case "(($ac_try" in
25471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25472 *) ac_try_echo=$ac_try;;
25474 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25475 (eval "$ac_link") 2>conftest.er1
25477 grep -v '^ *+' conftest.er1 >conftest.err
25479 cat conftest.err >&5
25480 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25481 (exit $ac_status); } && {
25482 test -z "$ac_c_werror_flag" ||
25483 test ! -s conftest.err
25484 } && test -s conftest$ac_exeext &&
25485 $as_test_x conftest$ac_exeext; then
25486 ac_cv_lib_readline_rl_completion_matches=yes
25488 echo "$as_me: failed program was
:" >&5
25489 sed 's/^/| /' conftest.$ac_ext >&5
25491 ac_cv_lib_readline_rl_completion_matches=no
25494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25495 conftest$ac_exeext conftest.$ac_ext
25496 LIBS=$ac_check_lib_save_LIBS
25498 { echo "$as_me:$LINENO: result
: $ac_cv_lib_readline_rl_completion_matches" >&5
25499 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
25500 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
25502 cat >>confdefs.h <<\_ACEOF
25503 #define HAVE_RL_COMPLETION_MATCHES 1
25509 # also in readline 4.2
25510 cat >conftest.$ac_ext <<_ACEOF
25513 cat confdefs.h >>conftest.$ac_ext
25514 cat >>conftest.$ac_ext <<_ACEOF
25515 /* end confdefs.h. */
25516 #include <readline/readline.h>
25518 if { (ac_try="$ac_cpp conftest.
$ac_ext"
25519 case "(($ac_try" in
25520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25521 *) ac_try_echo=$ac_try;;
25523 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25524 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
25526 grep -v '^ *+' conftest.er1 >conftest.err
25528 cat conftest.err >&5
25529 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25530 (exit $ac_status); } >/dev/null && {
25531 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25532 test ! -s conftest.err
25536 echo "$as_me: failed program was
:" >&5
25537 sed 's/^/| /' conftest.$ac_ext >&5
25542 rm -f conftest.err conftest.$ac_ext
25543 if test $have_readline = yes
25545 cat >conftest.$ac_ext <<_ACEOF
25548 cat confdefs.h >>conftest.$ac_ext
25549 cat >>conftest.$ac_ext <<_ACEOF
25550 /* end confdefs.h. */
25551 #include <readline/readline.h>
25554 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
25555 $EGREP "extern int rl_catch_signals
;" >/dev/null 2>&1; then
25557 cat >>confdefs.h <<\_ACEOF
25558 #define HAVE_RL_CATCH_SIGNAL 1
25566 # End of readline checks: restore LIBS
25567 LIBS=$LIBS_no_readline
25569 { echo "$as_me:$LINENO: checking
for broken nice
()" >&5
25570 echo $ECHO_N "checking
for broken nice
()...
$ECHO_C" >&6; }
25571 if test "${ac_cv_broken_nice+set}" = set; then
25572 echo $ECHO_N "(cached
) $ECHO_C" >&6
25575 if test "$cross_compiling" = yes; then
25576 ac_cv_broken_nice=no
25578 cat >conftest.$ac_ext <<_ACEOF
25581 cat confdefs.h >>conftest.$ac_ext
25582 cat >>conftest.$ac_ext <<_ACEOF
25583 /* end confdefs.h. */
25587 int val1 = nice(1);
25588 if (val1 != -1 && val1 == nice(2))
25594 rm -f conftest$ac_exeext
25595 if { (ac_try="$ac_link"
25596 case "(($ac_try" in
25597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25598 *) ac_try_echo=$ac_try;;
25600 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25601 (eval "$ac_link") 2>&5
25603 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25604 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25605 { (case "(($ac_try" in
25606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25607 *) ac_try_echo=$ac_try;;
25609 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25610 (eval "$ac_try") 2>&5
25612 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25613 (exit $ac_status); }; }; then
25614 ac_cv_broken_nice=yes
25616 echo "$as_me: program exited with status
$ac_status" >&5
25617 echo "$as_me: failed program was
:" >&5
25618 sed 's/^/| /' conftest.$ac_ext >&5
25620 ( exit $ac_status )
25621 ac_cv_broken_nice=no
25623 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25629 { echo "$as_me:$LINENO: result
: $ac_cv_broken_nice" >&5
25630 echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
25631 if test "$ac_cv_broken_nice" = yes
25634 cat >>confdefs.h <<\_ACEOF
25635 #define HAVE_BROKEN_NICE 1
25640 { echo "$as_me:$LINENO: checking
for broken poll
()" >&5
25641 echo $ECHO_N "checking
for broken poll
()...
$ECHO_C" >&6; }
25642 if test "${ac_cv_broken_poll+set}" = set; then
25643 echo $ECHO_N "(cached
) $ECHO_C" >&6
25645 if test "$cross_compiling" = yes; then
25646 ac_cv_broken_poll=no
25648 cat >conftest.$ac_ext <<_ACEOF
25651 cat confdefs.h >>conftest.$ac_ext
25652 cat >>conftest.$ac_ext <<_ACEOF
25653 /* end confdefs.h. */
25659 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
25664 poll_test = poll(&poll_struct, 1, 0);
25667 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
25674 rm -f conftest$ac_exeext
25675 if { (ac_try="$ac_link"
25676 case "(($ac_try" in
25677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25678 *) ac_try_echo=$ac_try;;
25680 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25681 (eval "$ac_link") 2>&5
25683 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25684 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25685 { (case "(($ac_try" in
25686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25687 *) ac_try_echo=$ac_try;;
25689 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25690 (eval "$ac_try") 2>&5
25692 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25693 (exit $ac_status); }; }; then
25694 ac_cv_broken_poll=yes
25696 echo "$as_me: program exited with status
$ac_status" >&5
25697 echo "$as_me: failed program was
:" >&5
25698 sed 's/^/| /' conftest.$ac_ext >&5
25700 ( exit $ac_status )
25701 ac_cv_broken_poll=no
25703 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25709 { echo "$as_me:$LINENO: result
: $ac_cv_broken_poll" >&5
25710 echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
25711 if test "$ac_cv_broken_poll" = yes
25714 cat >>confdefs.h <<\_ACEOF
25715 #define HAVE_BROKEN_POLL 1
25720 # Before we can test tzset, we need to check if struct tm has a tm_zone
25721 # (which is not required by ISO C or UNIX spec) and/or if we support
25723 { echo "$as_me:$LINENO: checking
for struct tm.tm_zone
" >&5
25724 echo $ECHO_N "checking
for struct tm.tm_zone...
$ECHO_C" >&6; }
25725 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
25726 echo $ECHO_N "(cached
) $ECHO_C" >&6
25728 cat >conftest.$ac_ext <<_ACEOF
25731 cat confdefs.h >>conftest.$ac_ext
25732 cat >>conftest.$ac_ext <<_ACEOF
25733 /* end confdefs.h. */
25734 #include <sys/types.h>
25735 #include <$ac_cv_struct_tm>
25741 static struct tm ac_aggr;
25742 if (ac_aggr.tm_zone)
25748 rm -f conftest.$ac_objext
25749 if { (ac_try="$ac_compile"
25750 case "(($ac_try" in
25751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25752 *) ac_try_echo=$ac_try;;
25754 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25755 (eval "$ac_compile") 2>conftest.er1
25757 grep -v '^ *+' conftest.er1 >conftest.err
25759 cat conftest.err >&5
25760 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25761 (exit $ac_status); } && {
25762 test -z "$ac_c_werror_flag" ||
25763 test ! -s conftest.err
25764 } && test -s conftest.$ac_objext; then
25765 ac_cv_member_struct_tm_tm_zone=yes
25767 echo "$as_me: failed program was
:" >&5
25768 sed 's/^/| /' conftest.$ac_ext >&5
25770 cat >conftest.$ac_ext <<_ACEOF
25773 cat confdefs.h >>conftest.$ac_ext
25774 cat >>conftest.$ac_ext <<_ACEOF
25775 /* end confdefs.h. */
25776 #include <sys/types.h>
25777 #include <$ac_cv_struct_tm>
25783 static struct tm ac_aggr;
25784 if (sizeof ac_aggr.tm_zone)
25790 rm -f conftest.$ac_objext
25791 if { (ac_try="$ac_compile"
25792 case "(($ac_try" in
25793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25794 *) ac_try_echo=$ac_try;;
25796 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25797 (eval "$ac_compile") 2>conftest.er1
25799 grep -v '^ *+' conftest.er1 >conftest.err
25801 cat conftest.err >&5
25802 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25803 (exit $ac_status); } && {
25804 test -z "$ac_c_werror_flag" ||
25805 test ! -s conftest.err
25806 } && test -s conftest.$ac_objext; then
25807 ac_cv_member_struct_tm_tm_zone=yes
25809 echo "$as_me: failed program was
:" >&5
25810 sed 's/^/| /' conftest.$ac_ext >&5
25812 ac_cv_member_struct_tm_tm_zone=no
25815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25820 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_tm_tm_zone" >&5
25821 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
25822 if test $ac_cv_member_struct_tm_tm_zone = yes; then
25824 cat >>confdefs.h <<_ACEOF
25825 #define HAVE_STRUCT_TM_TM_ZONE 1
25831 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
25833 cat >>confdefs.h <<\_ACEOF
25834 #define HAVE_TM_ZONE 1
25838 { echo "$as_me:$LINENO: checking whether tzname is declared
" >&5
25839 echo $ECHO_N "checking whether tzname is declared...
$ECHO_C" >&6; }
25840 if test "${ac_cv_have_decl_tzname+set}" = set; then
25841 echo $ECHO_N "(cached
) $ECHO_C" >&6
25843 cat >conftest.$ac_ext <<_ACEOF
25846 cat confdefs.h >>conftest.$ac_ext
25847 cat >>conftest.$ac_ext <<_ACEOF
25848 /* end confdefs.h. */
25862 rm -f conftest.$ac_objext
25863 if { (ac_try="$ac_compile"
25864 case "(($ac_try" in
25865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25866 *) ac_try_echo=$ac_try;;
25868 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25869 (eval "$ac_compile") 2>conftest.er1
25871 grep -v '^ *+' conftest.er1 >conftest.err
25873 cat conftest.err >&5
25874 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25875 (exit $ac_status); } && {
25876 test -z "$ac_c_werror_flag" ||
25877 test ! -s conftest.err
25878 } && test -s conftest.$ac_objext; then
25879 ac_cv_have_decl_tzname=yes
25881 echo "$as_me: failed program was
:" >&5
25882 sed 's/^/| /' conftest.$ac_ext >&5
25884 ac_cv_have_decl_tzname=no
25887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25889 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_tzname" >&5
25890 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
25891 if test $ac_cv_have_decl_tzname = yes; then
25893 cat >>confdefs.h <<_ACEOF
25894 #define HAVE_DECL_TZNAME 1
25899 cat >>confdefs.h <<_ACEOF
25900 #define HAVE_DECL_TZNAME 0
25907 { echo "$as_me:$LINENO: checking
for tzname
" >&5
25908 echo $ECHO_N "checking
for tzname...
$ECHO_C" >&6; }
25909 if test "${ac_cv_var_tzname+set}" = set; then
25910 echo $ECHO_N "(cached
) $ECHO_C" >&6
25912 cat >conftest.$ac_ext <<_ACEOF
25915 cat confdefs.h >>conftest.$ac_ext
25916 cat >>conftest.$ac_ext <<_ACEOF
25917 /* end confdefs.h. */
25919 #if !HAVE_DECL_TZNAME
25920 extern char *tzname[];
25926 return tzname[0][0];
25931 rm -f conftest.$ac_objext conftest$ac_exeext
25932 if { (ac_try="$ac_link"
25933 case "(($ac_try" in
25934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25935 *) ac_try_echo=$ac_try;;
25937 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
25938 (eval "$ac_link") 2>conftest.er1
25940 grep -v '^ *+' conftest.er1 >conftest.err
25942 cat conftest.err >&5
25943 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25944 (exit $ac_status); } && {
25945 test -z "$ac_c_werror_flag" ||
25946 test ! -s conftest.err
25947 } && test -s conftest$ac_exeext &&
25948 $as_test_x conftest$ac_exeext; then
25949 ac_cv_var_tzname=yes
25951 echo "$as_me: failed program was
:" >&5
25952 sed 's/^/| /' conftest.$ac_ext >&5
25954 ac_cv_var_tzname=no
25957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25958 conftest$ac_exeext conftest.$ac_ext
25960 { echo "$as_me:$LINENO: result
: $ac_cv_var_tzname" >&5
25961 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
25962 if test $ac_cv_var_tzname = yes; then
25964 cat >>confdefs.h <<\_ACEOF
25965 #define HAVE_TZNAME 1
25972 # check tzset(3) exists and works like we expect it to
25973 { echo "$as_me:$LINENO: checking
for working tzset
()" >&5
25974 echo $ECHO_N "checking
for working tzset
()...
$ECHO_C" >&6; }
25975 if test "${ac_cv_working_tzset+set}" = set; then
25976 echo $ECHO_N "(cached
) $ECHO_C" >&6
25979 if test "$cross_compiling" = yes; then
25980 ac_cv_working_tzset=no
25982 cat >conftest.$ac_ext <<_ACEOF
25985 cat confdefs.h >>conftest.$ac_ext
25986 cat >>conftest.$ac_ext <<_ACEOF
25987 /* end confdefs.h. */
25989 #include <stdlib.h>
25991 #include <string.h>
25994 extern char *tzname[];
25999 /* Note that we need to ensure that not only does tzset(3)
26000 do 'something' with localtime, but it works as documented
26001 in the library reference and as expected by the test suite.
26002 This includes making sure that tzname is set properly if
26003 tm->tm_zone does not exist since it is the alternative way
26004 of getting timezone info.
26006 Red Hat 6.2 doesn't understand the southern hemisphere
26007 after New Year's Day.
26010 time_t groundhogday = 1044144000; /* GMT-based */
26011 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
26013 putenv("TZ
=UTC
+0");
26015 if (localtime(&groundhogday)->tm_hour != 0)
26018 /* For UTC, tzname[1] is sometimes "", sometimes " " */
26019 if (strcmp(tzname[0], "UTC
") ||
26020 (tzname[1][0] != 0 && tzname[1][0] != ' '))
26024 putenv("TZ
=EST
+5EDT
,M4.1
.0,M10.5
.0");
26026 if (localtime(&groundhogday)->tm_hour != 19)
26029 if (strcmp(tzname[0], "EST
") || strcmp(tzname[1], "EDT
"))
26033 putenv("TZ
=AEST-10AEDT-11
,M10.5
.0,M3.5
.0");
26035 if (localtime(&groundhogday)->tm_hour != 11)
26038 if (strcmp(tzname[0], "AEST
") || strcmp(tzname[1], "AEDT
"))
26042 #if HAVE_STRUCT_TM_TM_ZONE
26043 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT
"))
26045 if (strcmp(localtime(&midyear)->tm_zone, "AEST
"))
26053 rm -f conftest$ac_exeext
26054 if { (ac_try="$ac_link"
26055 case "(($ac_try" in
26056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26057 *) ac_try_echo=$ac_try;;
26059 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
26060 (eval "$ac_link") 2>&5
26062 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26063 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26064 { (case "(($ac_try" in
26065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26066 *) ac_try_echo=$ac_try;;
26068 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
26069 (eval "$ac_try") 2>&5
26071 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26072 (exit $ac_status); }; }; then
26073 ac_cv_working_tzset=yes
26075 echo "$as_me: program exited with status
$ac_status" >&5
26076 echo "$as_me: failed program was
:" >&5
26077 sed 's/^/| /' conftest.$ac_ext >&5
26079 ( exit $ac_status )
26080 ac_cv_working_tzset=no
26082 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26088 { echo "$as_me:$LINENO: result
: $ac_cv_working_tzset" >&5
26089 echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
26090 if test "$ac_cv_working_tzset" = yes
26093 cat >>confdefs.h <<\_ACEOF
26094 #define HAVE_WORKING_TZSET 1
26099 # Look for subsecond timestamps in struct stat
26100 { echo "$as_me:$LINENO: checking
for tv_nsec
in struct stat
" >&5
26101 echo $ECHO_N "checking
for tv_nsec
in struct stat...
$ECHO_C" >&6; }
26102 if test "${ac_cv_stat_tv_nsec+set}" = set; then
26103 echo $ECHO_N "(cached
) $ECHO_C" >&6
26105 cat >conftest.$ac_ext <<_ACEOF
26108 cat confdefs.h >>conftest.$ac_ext
26109 cat >>conftest.$ac_ext <<_ACEOF
26110 /* end confdefs.h. */
26111 #include <sys/stat.h>
26117 st.st_mtim.tv_nsec = 1;
26123 rm -f conftest.$ac_objext
26124 if { (ac_try="$ac_compile"
26125 case "(($ac_try" in
26126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26127 *) ac_try_echo=$ac_try;;
26129 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
26130 (eval "$ac_compile") 2>conftest.er1
26132 grep -v '^ *+' conftest.er1 >conftest.err
26134 cat conftest.err >&5
26135 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26136 (exit $ac_status); } && {
26137 test -z "$ac_c_werror_flag" ||
26138 test ! -s conftest.err
26139 } && test -s conftest.$ac_objext; then
26140 ac_cv_stat_tv_nsec=yes
26142 echo "$as_me: failed program was
:" >&5
26143 sed 's/^/| /' conftest.$ac_ext >&5
26145 ac_cv_stat_tv_nsec=no
26148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26151 { echo "$as_me:$LINENO: result
: $ac_cv_stat_tv_nsec" >&5
26152 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
26153 if test "$ac_cv_stat_tv_nsec" = yes
26156 cat >>confdefs.h <<\_ACEOF
26157 #define HAVE_STAT_TV_NSEC 1
26162 # Look for BSD style subsecond timestamps in struct stat
26163 { echo "$as_me:$LINENO: checking
for tv_nsec2
in struct stat
" >&5
26164 echo $ECHO_N "checking
for tv_nsec2
in struct stat...
$ECHO_C" >&6; }
26165 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
26166 echo $ECHO_N "(cached
) $ECHO_C" >&6
26168 cat >conftest.$ac_ext <<_ACEOF
26171 cat confdefs.h >>conftest.$ac_ext
26172 cat >>conftest.$ac_ext <<_ACEOF
26173 /* end confdefs.h. */
26174 #include <sys/stat.h>
26180 st.st_mtimespec.tv_nsec = 1;
26186 rm -f conftest.$ac_objext
26187 if { (ac_try="$ac_compile"
26188 case "(($ac_try" in
26189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26190 *) ac_try_echo=$ac_try;;
26192 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
26193 (eval "$ac_compile") 2>conftest.er1
26195 grep -v '^ *+' conftest.er1 >conftest.err
26197 cat conftest.err >&5
26198 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26199 (exit $ac_status); } && {
26200 test -z "$ac_c_werror_flag" ||
26201 test ! -s conftest.err
26202 } && test -s conftest.$ac_objext; then
26203 ac_cv_stat_tv_nsec2=yes
26205 echo "$as_me: failed program was
:" >&5
26206 sed 's/^/| /' conftest.$ac_ext >&5
26208 ac_cv_stat_tv_nsec2=no
26211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26214 { echo "$as_me:$LINENO: result
: $ac_cv_stat_tv_nsec2" >&5
26215 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
26216 if test "$ac_cv_stat_tv_nsec2" = yes
26219 cat >>confdefs.h <<\_ACEOF
26220 #define HAVE_STAT_TV_NSEC2 1
26225 # On HP/UX 11.0, mvwdelch is a block with a return statement
26226 { echo "$as_me:$LINENO: checking whether mvwdelch is an expression
" >&5
26227 echo $ECHO_N "checking whether mvwdelch is an expression...
$ECHO_C" >&6; }
26228 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
26229 echo $ECHO_N "(cached
) $ECHO_C" >&6
26231 cat >conftest.$ac_ext <<_ACEOF
26234 cat confdefs.h >>conftest.$ac_ext
26235 cat >>conftest.$ac_ext <<_ACEOF
26236 /* end confdefs.h. */
26237 #include <curses.h>
26243 rtn = mvwdelch(0,0,0);
26249 rm -f conftest.$ac_objext
26250 if { (ac_try="$ac_compile"
26251 case "(($ac_try" in
26252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26253 *) ac_try_echo=$ac_try;;
26255 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
26256 (eval "$ac_compile") 2>conftest.er1
26258 grep -v '^ *+' conftest.er1 >conftest.err
26260 cat conftest.err >&5
26261 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26262 (exit $ac_status); } && {
26263 test -z "$ac_c_werror_flag" ||
26264 test ! -s conftest.err
26265 } && test -s conftest.$ac_objext; then
26266 ac_cv_mvwdelch_is_expression=yes
26268 echo "$as_me: failed program was
:" >&5
26269 sed 's/^/| /' conftest.$ac_ext >&5
26271 ac_cv_mvwdelch_is_expression=no
26274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26277 { echo "$as_me:$LINENO: result
: $ac_cv_mvwdelch_is_expression" >&5
26278 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
26280 if test "$ac_cv_mvwdelch_is_expression" = yes
26283 cat >>confdefs.h <<\_ACEOF
26284 #define MVWDELCH_IS_EXPRESSION 1
26289 { echo "$as_me:$LINENO: checking whether WINDOW has _flags
" >&5
26290 echo $ECHO_N "checking whether WINDOW has _flags...
$ECHO_C" >&6; }
26291 if test "${ac_cv_window_has_flags+set}" = set; then
26292 echo $ECHO_N "(cached
) $ECHO_C" >&6
26294 cat >conftest.$ac_ext <<_ACEOF
26297 cat confdefs.h >>conftest.$ac_ext
26298 cat >>conftest.$ac_ext <<_ACEOF
26299 /* end confdefs.h. */
26300 #include <curses.h>
26312 rm -f conftest.$ac_objext
26313 if { (ac_try="$ac_compile"
26314 case "(($ac_try" in
26315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26316 *) ac_try_echo=$ac_try;;
26318 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
26319 (eval "$ac_compile") 2>conftest.er1
26321 grep -v '^ *+' conftest.er1 >conftest.err
26323 cat conftest.err >&5
26324 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26325 (exit $ac_status); } && {
26326 test -z "$ac_c_werror_flag" ||
26327 test ! -s conftest.err
26328 } && test -s conftest.$ac_objext; then
26329 ac_cv_window_has_flags=yes
26331 echo "$as_me: failed program was
:" >&5
26332 sed 's/^/| /' conftest.$ac_ext >&5
26334 ac_cv_window_has_flags=no
26337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26340 { echo "$as_me:$LINENO: result
: $ac_cv_window_has_flags" >&5
26341 echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
26344 if test "$ac_cv_window_has_flags" = yes
26347 cat >>confdefs.h <<\_ACEOF
26348 #define WINDOW_HAS_FLAGS 1
26353 { echo "$as_me:$LINENO: checking
for is_term_resized
" >&5
26354 echo $ECHO_N "checking
for is_term_resized...
$ECHO_C" >&6; }
26355 cat >conftest.$ac_ext <<_ACEOF
26358 cat confdefs.h >>conftest.$ac_ext
26359 cat >>conftest.$ac_ext <<_ACEOF
26360 /* end confdefs.h. */
26361 #include <curses.h>
26365 void *x=is_term_resized
26370 rm -f conftest.$ac_objext
26371 if { (ac_try="$ac_compile"
26372 case "(($ac_try" in
26373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26374 *) ac_try_echo=$ac_try;;
26376 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
26377 (eval "$ac_compile") 2>conftest.er1
26379 grep -v '^ *+' conftest.er1 >conftest.err
26381 cat conftest.err >&5
26382 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26383 (exit $ac_status); } && {
26384 test -z "$ac_c_werror_flag" ||
26385 test ! -s conftest.err
26386 } && test -s conftest.$ac_objext; then
26388 cat >>confdefs.h <<\_ACEOF
26389 #define HAVE_CURSES_IS_TERM_RESIZED 1
26392 { echo "$as_me:$LINENO: result
: yes" >&5
26393 echo "${ECHO_T}yes" >&6; }
26395 echo "$as_me: failed program was
:" >&5
26396 sed 's/^/| /' conftest.$ac_ext >&5
26398 { echo "$as_me:$LINENO: result
: no
" >&5
26399 echo "${ECHO_T}no
" >&6; }
26403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26405 { echo "$as_me:$LINENO: checking
for resize_term
" >&5
26406 echo $ECHO_N "checking
for resize_term...
$ECHO_C" >&6; }
26407 cat >conftest.$ac_ext <<_ACEOF
26410 cat confdefs.h >>conftest.$ac_ext
26411 cat >>conftest.$ac_ext <<_ACEOF
26412 /* end confdefs.h. */
26413 #include <curses.h>
26417 void *x=resize_term
26422 rm -f conftest.$ac_objext
26423 if { (ac_try="$ac_compile"
26424 case "(($ac_try" in
26425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26426 *) ac_try_echo=$ac_try;;
26428 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
26429 (eval "$ac_compile") 2>conftest.er1
26431 grep -v '^ *+' conftest.er1 >conftest.err
26433 cat conftest.err >&5
26434 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26435 (exit $ac_status); } && {
26436 test -z "$ac_c_werror_flag" ||
26437 test ! -s conftest.err
26438 } && test -s conftest.$ac_objext; then
26440 cat >>confdefs.h <<\_ACEOF
26441 #define HAVE_CURSES_RESIZE_TERM 1
26444 { echo "$as_me:$LINENO: result
: yes" >&5
26445 echo "${ECHO_T}yes" >&6; }
26447 echo "$as_me: failed program was
:" >&5
26448 sed 's/^/| /' conftest.$ac_ext >&5
26450 { echo "$as_me:$LINENO: result
: no
" >&5
26451 echo "${ECHO_T}no
" >&6; }
26455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26457 { echo "$as_me:$LINENO: checking
for resizeterm
" >&5
26458 echo $ECHO_N "checking
for resizeterm...
$ECHO_C" >&6; }
26459 cat >conftest.$ac_ext <<_ACEOF
26462 cat confdefs.h >>conftest.$ac_ext
26463 cat >>conftest.$ac_ext <<_ACEOF
26464 /* end confdefs.h. */
26465 #include <curses.h>
26474 rm -f conftest.$ac_objext
26475 if { (ac_try="$ac_compile"
26476 case "(($ac_try" in
26477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26478 *) ac_try_echo=$ac_try;;
26480 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
26481 (eval "$ac_compile") 2>conftest.er1
26483 grep -v '^ *+' conftest.er1 >conftest.err
26485 cat conftest.err >&5
26486 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26487 (exit $ac_status); } && {
26488 test -z "$ac_c_werror_flag" ||
26489 test ! -s conftest.err
26490 } && test -s conftest.$ac_objext; then
26492 cat >>confdefs.h <<\_ACEOF
26493 #define HAVE_CURSES_RESIZETERM 1
26496 { echo "$as_me:$LINENO: result
: yes" >&5
26497 echo "${ECHO_T}yes" >&6; }
26499 echo "$as_me: failed program was
:" >&5
26500 sed 's/^/| /' conftest.$ac_ext >&5
26502 { echo "$as_me:$LINENO: result
: no
" >&5
26503 echo "${ECHO_T}no
" >&6; }
26507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26509 { echo "$as_me:$LINENO: checking
for /dev
/ptmx
" >&5
26510 echo $ECHO_N "checking
for /dev
/ptmx...
$ECHO_C" >&6; }
26512 if test -r /dev/ptmx
26514 { echo "$as_me:$LINENO: result
: yes" >&5
26515 echo "${ECHO_T}yes" >&6; }
26517 cat >>confdefs.h <<\_ACEOF
26518 #define HAVE_DEV_PTMX 1
26522 { echo "$as_me:$LINENO: result
: no
" >&5
26523 echo "${ECHO_T}no
" >&6; }
26526 { echo "$as_me:$LINENO: checking
for /dev
/ptc
" >&5
26527 echo $ECHO_N "checking
for /dev
/ptc...
$ECHO_C" >&6; }
26529 if test -r /dev/ptc
26531 { echo "$as_me:$LINENO: result
: yes" >&5
26532 echo "${ECHO_T}yes" >&6; }
26534 cat >>confdefs.h <<\_ACEOF
26535 #define HAVE_DEV_PTC 1
26539 { echo "$as_me:$LINENO: result
: no
" >&5
26540 echo "${ECHO_T}no
" >&6; }
26543 { echo "$as_me:$LINENO: checking
for %zd
printf() format support
" >&5
26544 echo $ECHO_N "checking
for %zd
printf() format support...
$ECHO_C" >&6; }
26545 if test "${ac_cv_have_size_t_format+set}" = set; then
26546 echo $ECHO_N "(cached
) $ECHO_C" >&6
26548 if test "$cross_compiling" = yes; then
26549 ac_cv_have_size_t_format=no
26551 cat >conftest.$ac_ext <<_ACEOF
26554 cat confdefs.h >>conftest.$ac_ext
26555 cat >>conftest.$ac_ext <<_ACEOF
26556 /* end confdefs.h. */
26559 #include <stddef.h>
26560 #include <string.h>
26562 #ifdef HAVE_SYS_TYPES_H
26563 #include <sys/types.h>
26566 #ifdef HAVE_SSIZE_T
26567 typedef ssize_t Py_ssize_t;
26568 #elif SIZEOF_VOID_P == SIZEOF_LONG
26569 typedef long Py_ssize_t;
26571 typedef int Py_ssize_t;
26578 if(sprintf(buffer, "%zd
", (size_t)123) < 0)
26581 if (strcmp(buffer, "123"))
26584 if (sprintf(buffer, "%zd
", (Py_ssize_t)-123) < 0)
26587 if (strcmp(buffer, "-123"))
26594 rm -f conftest$ac_exeext
26595 if { (ac_try="$ac_link"
26596 case "(($ac_try" in
26597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26598 *) ac_try_echo=$ac_try;;
26600 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
26601 (eval "$ac_link") 2>&5
26603 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26604 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26605 { (case "(($ac_try" in
26606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26607 *) ac_try_echo=$ac_try;;
26609 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
26610 (eval "$ac_try") 2>&5
26612 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26613 (exit $ac_status); }; }; then
26614 ac_cv_have_size_t_format=yes
26616 echo "$as_me: program exited with status
$ac_status" >&5
26617 echo "$as_me: failed program was
:" >&5
26618 sed 's/^/| /' conftest.$ac_ext >&5
26620 ( exit $ac_status )
26621 ac_cv_have_size_t_format=no
26623 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26630 { echo "$as_me:$LINENO: result
: $ac_cv_have_size_t_format" >&5
26631 echo "${ECHO_T}$ac_cv_have_size_t_format" >&6; }
26632 if test $ac_cv_have_size_t_format = yes
26635 cat >>confdefs.h <<\_ACEOF
26636 #define PY_FORMAT_SIZE_T "z
"
26641 { echo "$as_me:$LINENO: checking
for socklen_t
" >&5
26642 echo $ECHO_N "checking
for socklen_t...
$ECHO_C" >&6; }
26643 if test "${ac_cv_type_socklen_t+set}" = set; then
26644 echo $ECHO_N "(cached
) $ECHO_C" >&6
26646 cat >conftest.$ac_ext <<_ACEOF
26649 cat confdefs.h >>conftest.$ac_ext
26650 cat >>conftest.$ac_ext <<_ACEOF
26651 /* end confdefs.h. */
26653 #ifdef HAVE_SYS_TYPES_H
26654 #include <sys/types.h>
26656 #ifdef HAVE_SYS_SOCKET_H
26657 #include <sys/socket.h>
26661 typedef socklen_t ac__type_new_;
26665 if ((ac__type_new_ *) 0)
26667 if (sizeof (ac__type_new_))
26673 rm -f conftest.$ac_objext
26674 if { (ac_try="$ac_compile"
26675 case "(($ac_try" in
26676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26677 *) ac_try_echo=$ac_try;;
26679 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
26680 (eval "$ac_compile") 2>conftest.er1
26682 grep -v '^ *+' conftest.er1 >conftest.err
26684 cat conftest.err >&5
26685 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26686 (exit $ac_status); } && {
26687 test -z "$ac_c_werror_flag" ||
26688 test ! -s conftest.err
26689 } && test -s conftest.$ac_objext; then
26690 ac_cv_type_socklen_t=yes
26692 echo "$as_me: failed program was
:" >&5
26693 sed 's/^/| /' conftest.$ac_ext >&5
26695 ac_cv_type_socklen_t=no
26698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26700 { echo "$as_me:$LINENO: result
: $ac_cv_type_socklen_t" >&5
26701 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
26702 if test $ac_cv_type_socklen_t = yes; then
26706 cat >>confdefs.h <<\_ACEOF
26707 #define socklen_t int
26715 for h in `(cd $srcdir;echo Python/thread_*.h)`
26717 THREADHEADERS="$THREADHEADERS \$
(srcdir
)/$h"
26721 SRCDIRS="Parser Grammar Objects Python Modules Mac
"
26722 { echo "$as_me:$LINENO: checking
for build directories
" >&5
26723 echo $ECHO_N "checking
for build directories...
$ECHO_C" >&6; }
26724 for dir in $SRCDIRS; do
26725 if test ! -d $dir; then
26729 { echo "$as_me:$LINENO: result
: done" >&5
26730 echo "${ECHO_T}done" >&6; }
26732 # generate output files
26733 ac_config_files="$ac_config_files Makefile.pre Modules
/Setup.config Misc
/python.pc
"
26735 cat >confcache <<\_ACEOF
26736 # This file is a shell script that caches the results of configure
26737 # tests run on this system so they can be shared between configure
26738 # scripts and configure runs, see configure's option --config-cache.
26739 # It is not useful on other systems. If it contains results you don't
26740 # want to keep, you may remove or edit it.
26742 # config.status only pays attention to the cache file if you give it
26743 # the --recheck option to rerun configure.
26745 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26746 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26747 # following values.
26751 # The following way of writing the cache mishandles newlines in values,
26752 # but we know of no workaround that is simple, portable, and efficient.
26753 # So, we kill variables containing newlines.
26754 # Ultrix sh set writes to stderr and can't be redirected directly,
26755 # and sets the high bit in the cache file unless we assign to the vars.
26757 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26758 eval ac_val=\$$ac_var
26762 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
26763 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
26766 _ | IFS | as_nl) ;; #(
26767 *) $as_unset $ac_var ;;
26773 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26774 *${as_nl}ac_space=\ *)
26775 # `set' does not quote correctly, so add quotes (double-quote
26776 # substitution turns \\\\ into \\, and sed turns \\ into \).
26779 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
26782 # `set' quotes correctly as required by POSIX, so do not add quotes.
26783 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
26792 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26794 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26796 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26797 if test -w "$cache_file"; then
26798 test "x
$cache_file" != "x
/dev
/null
" &&
26799 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
26800 echo "$as_me: updating cache
$cache_file" >&6;}
26801 cat confcache >$cache_file
26803 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
26804 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
26809 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
26810 # Let make expand exec_prefix.
26811 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
26813 DEFS=-DHAVE_CONFIG_H
26817 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
26818 # 1. Remove the extension, and $U if already installed.
26819 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26820 ac_i=`echo "$ac_i" | sed "$ac_script"`
26821 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26822 # will be set to the directory where LIBOBJS objects are built.
26823 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
26824 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
26826 LIBOBJS=$ac_libobjs
26828 LTLIBOBJS=$ac_ltlibobjs
26832 : ${CONFIG_STATUS=./config.status}
26833 ac_clean_files_save=$ac_clean_files
26834 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26835 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
26836 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
26837 cat >$CONFIG_STATUS <<_ACEOF
26839 # Generated by $as_me.
26840 # Run this file to recreate the current configuration.
26841 # Compiler output produced by configure, useful for debugging
26842 # configure, is in config.log if it exists.
26845 ac_cs_recheck=false
26847 SHELL=\${CONFIG_SHELL-$SHELL}
26850 cat >>$CONFIG_STATUS <<\_ACEOF
26851 ## --------------------- ##
26852 ## M4sh Initialization. ##
26853 ## --------------------- ##
26855 # Be more Bourne compatible
26856 DUALCASE=1; export DUALCASE # for MKS sh
26857 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26860 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26861 # is contrary to our usage. Disable this feature.
26862 alias -g '${1+"$@"}'='"$@
"'
26863 setopt NO_GLOB_SUBST
26865 case `(set -o) 2>/dev/null` in
26866 *posix*) set -o posix ;;
26875 # Avoid depending upon Character Ranges.
26876 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26877 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26878 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26879 as_cr_digits='0123456789'
26880 as_cr_alnum=$as_cr_Letters$as_cr_digits
26882 # The user is always right.
26883 if test "${PATH_SEPARATOR+set}" != set; then
26884 echo "#! /bin/sh" >conf$$.sh
26885 echo "exit 0" >>conf$$.sh
26887 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
26895 # Support unset when possible.
26896 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
26904 # We need space, tab and new line, in precisely that order. Quoting is
26905 # there to prevent editors from complaining about space-tab.
26906 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26907 # splitting by setting IFS to empty value.)
26912 # Find who we are. Look in the path if we contain no directory separator.
26914 *[\\/]* ) as_myself
=$0 ;;
26915 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
26916 for as_dir
in $PATH
26919 test -z "$as_dir" && as_dir
=.
26920 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
26926 # We did not find ourselves, most probably we were run as `sh COMMAND'
26927 # in which case we are not to be found in the path.
26928 if test "x$as_myself" = x
; then
26931 if test ! -f "$as_myself"; then
26932 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26933 { (exit 1); exit 1; }
26936 # Work around bugs in pre-3.0 UWIN ksh.
26937 for as_var
in ENV MAIL MAILPATH
26938 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
26946 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26947 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26948 LC_TELEPHONE LC_TIME
26950 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26951 eval $as_var=C
; export $as_var
26953 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
26957 # Required to use basename.
26958 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26959 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26965 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26966 as_basename
=basename
26972 # Name of the executable.
26973 as_me
=`$as_basename -- "$0" ||
26974 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26975 X"$0" : 'X\(//\)$' \| \
26976 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26978 sed '/^.*\/\([^/][^/]*\)\/*$/{
26997 as_lineno_1
=$LINENO
26998 as_lineno_2
=$LINENO
26999 test "x$as_lineno_1" != "x$as_lineno_2" &&
27000 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
27002 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27003 # uniformly replaced by the line number. The first 'sed' inserts a
27004 # line-number line after each line using $LINENO; the second 'sed'
27005 # does the real work. The second script uses 'N' to pair each
27006 # line-number line with the line containing $LINENO, and appends
27007 # trailing '-' during substitution so that $LINENO is not a special
27008 # case at line end.
27009 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27010 # scripts with optimization help from Paolo Bonzini. Blame Lee
27011 # E. McMahon (1931-1989) for sed's syntax. :-)
27023 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27026 ' >$as_me.lineno
&&
27027 chmod +x
"$as_me.lineno" ||
27028 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27029 { (exit 1); exit 1; }; }
27031 # Don't try to exec as it changes $[0], causing all sort of problems
27032 # (the dirname of $[0] is not the place where we might find the
27033 # original and so on. Autoconf is especially sensitive to this).
27034 .
"./$as_me.lineno"
27035 # Exit status is that of the last command.
27040 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
27046 ECHO_C
= ECHO_N
= ECHO_T
=
27047 case `echo -n x` in
27049 case `echo 'x\c'` in
27050 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
27057 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27058 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27064 rm -f conf$$ conf$$.exe conf$$.
file
27065 if test -d conf$$.dir
; then
27066 rm -f conf$$.dir
/conf$$.
file
27072 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
27074 # ... but there are two gotchas:
27075 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27076 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27077 # In both cases, we have to default to `cp -p'.
27078 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
27080 elif ln conf$$.
file conf$$
2>/dev
/null
; then
27085 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
27086 rmdir conf$$.dir
2>/dev
/null
27088 if mkdir
-p .
2>/dev
/null
; then
27091 test -d .
/-p && rmdir .
/-p
27095 if test -x / >/dev
/null
2>&1; then
27096 as_test_x
='test -x'
27098 if ls -dL / >/dev
/null
2>&1; then
27105 if test -d "$1"; then
27111 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27112 ???[sx]*):;;*)false;;esac;fi
27116 as_executable_p
=$as_test_x
27118 # Sed expression to map a string onto a valid CPP name.
27119 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27121 # Sed expression to map a string onto a valid variable name.
27122 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27127 # Save the log message, to keep $[0] and so on meaningful, and to
27128 # report actual input values of CONFIG_FILES etc. instead of their
27129 # values after options handling.
27131 This file was extended by python $as_me 2.7, which was
27132 generated by GNU Autoconf 2.61. Invocation command line was
27134 CONFIG_FILES = $CONFIG_FILES
27135 CONFIG_HEADERS = $CONFIG_HEADERS
27136 CONFIG_LINKS = $CONFIG_LINKS
27137 CONFIG_COMMANDS = $CONFIG_COMMANDS
27140 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27145 cat >>$CONFIG_STATUS <<_ACEOF
27146 # Files that config.status was made for.
27147 config_files="$ac_config_files"
27148 config_headers="$ac_config_headers"
27152 cat >>$CONFIG_STATUS <<\_ACEOF
27154 \`$as_me' instantiates files from templates according to the
27155 current configuration.
27157 Usage: $0 [OPTIONS] [FILE]...
27159 -h, --help print this help, then exit
27160 -V, --version print version number and configuration settings, then exit
27161 -q, --quiet do not print progress messages
27162 -d, --debug don't remove temporary files
27163 --recheck update $as_me by reconfiguring in the same conditions
27164 --file=FILE[:TEMPLATE]
27165 instantiate the configuration file FILE
27166 --header=FILE[:TEMPLATE]
27167 instantiate the configuration header FILE
27169 Configuration files:
27172 Configuration headers:
27175 Report bugs to <bug-autoconf@gnu.org>."
27178 cat >>$CONFIG_STATUS <<_ACEOF
27180 python config.status 2.7
27181 configured by $0, generated by GNU Autoconf 2.61,
27182 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27184 Copyright (C) 2006 Free Software Foundation, Inc.
27185 This config.status script is free software; the Free Software Foundation
27186 gives unlimited permission to copy, distribute and modify it."
27193 cat >>$CONFIG_STATUS <<\_ACEOF
27194 # If no file are specified by the user, then we need to provide default
27195 # value. By we need to know if files were specified by the user.
27201 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
27202 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
27213 # Handling of the options.
27214 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
27216 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
27217 echo "$ac_cs_version"; exit ;;
27218 --debug |
--debu |
--deb |
--de |
--d |
-d )
27220 --file |
--fil |
--fi |
--f )
27222 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
27223 ac_need_defaults
=false
;;
27224 --header |
--heade |
--head |
--hea )
27226 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
27227 ac_need_defaults
=false
;;
27229 # Conflict between --help and --header
27230 { echo "$as_me: error: ambiguous option: $1
27231 Try \`$0 --help' for more information." >&2
27232 { (exit 1); exit 1; }; };;
27233 --help |
--hel |
-h )
27234 echo "$ac_cs_usage"; exit ;;
27235 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
27236 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
27239 # This is an error.
27240 -*) { echo "$as_me: error: unrecognized option: $1
27241 Try \`$0 --help' for more information." >&2
27242 { (exit 1); exit 1; }; } ;;
27244 *) ac_config_targets
="$ac_config_targets $1"
27245 ac_need_defaults
=false
;;
27251 ac_configure_extra_args
=
27253 if $ac_cs_silent; then
27255 ac_configure_extra_args
="$ac_configure_extra_args --silent"
27259 cat >>$CONFIG_STATUS <<_ACEOF
27260 if \$ac_cs_recheck; then
27261 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27262 CONFIG_SHELL=$SHELL
27263 export CONFIG_SHELL
27264 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27268 cat >>$CONFIG_STATUS <<\_ACEOF
27272 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27273 ## Running $as_me. ##
27279 cat >>$CONFIG_STATUS <<_ACEOF
27282 cat >>$CONFIG_STATUS <<\_ACEOF
27284 # Handling of arguments.
27285 for ac_config_target
in $ac_config_targets
27287 case $ac_config_target in
27288 "pyconfig.h") CONFIG_HEADERS
="$CONFIG_HEADERS pyconfig.h" ;;
27289 "Mac/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/Makefile" ;;
27290 "Mac/PythonLauncher/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
27291 "Mac/IDLE/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/IDLE/Makefile" ;;
27292 "Mac/Resources/framework/Info.plist") CONFIG_FILES
="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
27293 "Mac/Resources/app/Info.plist") CONFIG_FILES
="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
27294 "Makefile.pre") CONFIG_FILES
="$CONFIG_FILES Makefile.pre" ;;
27295 "Modules/Setup.config") CONFIG_FILES
="$CONFIG_FILES Modules/Setup.config" ;;
27296 "Misc/python.pc") CONFIG_FILES
="$CONFIG_FILES Misc/python.pc" ;;
27298 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27299 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27300 { (exit 1); exit 1; }; };;
27305 # If the user did not use the arguments to specify the items to instantiate,
27306 # then the envvar interface is used. Set only those that are not.
27307 # We use the long form for the default assignment because of an extremely
27308 # bizarre bug on SunOS 4.1.3.
27309 if $ac_need_defaults; then
27310 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
27311 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
27314 # Have a temporary directory for convenience. Make it in the build tree
27315 # simply because there is no reason against having it here, and in addition,
27316 # creating and moving files from /tmp can sometimes cause problems.
27317 # Hook for its removal unless debugging.
27318 # Note that there is a small window in which the directory will not be cleaned:
27319 # after its creation but before its name has been assigned to `$tmp'.
27323 trap 'exit_status=$?
27324 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27326 trap '{ (exit 1); exit 1; }' 1 2 13 15
27328 # Create a (secure) tmp directory for tmp files.
27331 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27332 test -n "$tmp" && test -d "$tmp"
27335 tmp
=.
/conf$$
-$RANDOM
27336 (umask 077 && mkdir
"$tmp")
27339 echo "$me: cannot create a temporary directory in ." >&2
27340 { (exit 1); exit 1; }
27344 # Set up the sed scripts for CONFIG_FILES section.
27347 # No need to generate the scripts if there are no CONFIG_FILES.
27348 # This happens for instance when ./config.status config.h
27349 if test -n "$CONFIG_FILES"; then
27356 for ac_last_try
in false false false false false
:; do
27357 cat >conf$
$subs.
sed <<_ACEOF
27358 SHELL!$SHELL$ac_delim
27359 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
27360 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
27361 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
27362 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
27363 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
27364 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
27365 exec_prefix!$exec_prefix$ac_delim
27366 prefix!$prefix$ac_delim
27367 program_transform_name!$program_transform_name$ac_delim
27368 bindir!$bindir$ac_delim
27369 sbindir!$sbindir$ac_delim
27370 libexecdir!$libexecdir$ac_delim
27371 datarootdir!$datarootdir$ac_delim
27372 datadir!$datadir$ac_delim
27373 sysconfdir!$sysconfdir$ac_delim
27374 sharedstatedir!$sharedstatedir$ac_delim
27375 localstatedir!$localstatedir$ac_delim
27376 includedir!$includedir$ac_delim
27377 oldincludedir!$oldincludedir$ac_delim
27378 docdir!$docdir$ac_delim
27379 infodir!$infodir$ac_delim
27380 htmldir!$htmldir$ac_delim
27381 dvidir!$dvidir$ac_delim
27382 pdfdir!$pdfdir$ac_delim
27383 psdir!$psdir$ac_delim
27384 libdir!$libdir$ac_delim
27385 localedir!$localedir$ac_delim
27386 mandir!$mandir$ac_delim
27387 DEFS!$DEFS$ac_delim
27388 ECHO_C!$ECHO_C$ac_delim
27389 ECHO_N!$ECHO_N$ac_delim
27390 ECHO_T!$ECHO_T$ac_delim
27391 LIBS!$LIBS$ac_delim
27392 build_alias!$build_alias$ac_delim
27393 host_alias!$host_alias$ac_delim
27394 target_alias!$target_alias$ac_delim
27395 VERSION!$VERSION$ac_delim
27396 SOVERSION!$SOVERSION$ac_delim
27397 CONFIG_ARGS!$CONFIG_ARGS$ac_delim
27398 UNIVERSALSDK!$UNIVERSALSDK$ac_delim
27399 ARCH_RUN_32BIT!$ARCH_RUN_32BIT$ac_delim
27400 PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
27401 PYTHONFRAMEWORKIDENTIFIER!$PYTHONFRAMEWORKIDENTIFIER$ac_delim
27402 PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
27403 PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
27404 PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
27405 FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
27406 FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
27407 FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
27408 FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
27409 FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
27410 MACHDEP!$MACHDEP$ac_delim
27411 SGI_ABI!$SGI_ABI$ac_delim
27412 EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim
27413 EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim
27414 CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
27415 EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
27417 CFLAGS!$CFLAGS$ac_delim
27418 LDFLAGS!$LDFLAGS$ac_delim
27419 CPPFLAGS!$CPPFLAGS$ac_delim
27420 ac_ct_CC!$ac_ct_CC$ac_delim
27421 EXEEXT!$EXEEXT$ac_delim
27422 OBJEXT!$OBJEXT$ac_delim
27424 MAINCC!$MAINCC$ac_delim
27426 GREP!$GREP$ac_delim
27427 EGREP!$EGREP$ac_delim
27428 BUILDEXEEXT!$BUILDEXEEXT$ac_delim
27429 LIBRARY!$LIBRARY$ac_delim
27430 LDLIBRARY!$LDLIBRARY$ac_delim
27431 DLLLIBRARY!$DLLLIBRARY$ac_delim
27432 BLDLIBRARY!$BLDLIBRARY$ac_delim
27433 LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
27434 INSTSONAME!$INSTSONAME$ac_delim
27435 RUNSHARED!$RUNSHARED$ac_delim
27436 LINKCC!$LINKCC$ac_delim
27437 GNULD!$GNULD$ac_delim
27438 RANLIB!$RANLIB$ac_delim
27440 ARFLAGS!$ARFLAGS$ac_delim
27441 SVNVERSION!$SVNVERSION$ac_delim
27442 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
27443 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
27444 INSTALL_DATA!$INSTALL_DATA$ac_delim
27447 BASECFLAGS!$BASECFLAGS$ac_delim
27448 UNIVERSAL_ARCH_FLAGS!$UNIVERSAL_ARCH_FLAGS$ac_delim
27449 OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
27450 LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
27452 LDSHARED!$LDSHARED$ac_delim
27453 BLDSHARED!$BLDSHARED$ac_delim
27454 CCSHARED!$CCSHARED$ac_delim
27457 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
27459 elif $ac_last_try; then
27460 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27461 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27462 { (exit 1); exit 1; }; }
27464 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
27468 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27469 if test -n "$ac_eof"; then
27470 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
27471 ac_eof
=`expr $ac_eof + 1`
27474 cat >>$CONFIG_STATUS <<_ACEOF
27475 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
27476 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27479 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27480 s/^/s,@/; s/!/@,|#_!!_#|/
27483 s/'"$ac_delim"'$/,g/; t
27485 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27486 ' >>$CONFIG_STATUS <conf$
$subs.
sed
27487 rm -f conf$
$subs.
sed
27488 cat >>$CONFIG_STATUS <<_ACEOF
27494 for ac_last_try
in false false false false false
:; do
27495 cat >conf$
$subs.
sed <<_ACEOF
27496 LINKFORSHARED!$LINKFORSHARED$ac_delim
27497 CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
27498 SHLIBS!$SHLIBS$ac_delim
27499 USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
27500 SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
27501 USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
27502 LDLAST!$LDLAST$ac_delim
27503 THREADOBJ!$THREADOBJ$ac_delim
27504 DLINCLDIR!$DLINCLDIR$ac_delim
27505 DYNLOADFILE!$DYNLOADFILE$ac_delim
27506 MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
27507 TRUE!$TRUE$ac_delim
27508 LIBOBJS!$LIBOBJS$ac_delim
27509 HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
27510 HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
27511 HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
27512 HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
27513 HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
27514 LIBM!$LIBM$ac_delim
27515 LIBC!$LIBC$ac_delim
27516 UNICODE_OBJS!$UNICODE_OBJS$ac_delim
27517 THREADHEADERS!$THREADHEADERS$ac_delim
27518 SRCDIRS!$SRCDIRS$ac_delim
27519 LTLIBOBJS!$LTLIBOBJS$ac_delim
27522 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 24; then
27524 elif $ac_last_try; then
27525 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27526 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27527 { (exit 1); exit 1; }; }
27529 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
27533 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27534 if test -n "$ac_eof"; then
27535 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
27536 ac_eof
=`expr $ac_eof + 1`
27539 cat >>$CONFIG_STATUS <<_ACEOF
27540 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
27541 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
27544 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27545 s/^/s,@/; s/!/@,|#_!!_#|/
27548 s/'"$ac_delim"'$/,g/; t
27550 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27551 ' >>$CONFIG_STATUS <conf$
$subs.
sed
27552 rm -f conf$
$subs.
sed
27553 cat >>$CONFIG_STATUS <<_ACEOF
27560 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27561 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27562 # trailing colons and then remove the whole line if VPATH becomes empty
27563 # (actually we leave an empty line to preserve line numbers).
27564 if test "x$srcdir" = x.
; then
27565 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
27566 s/:*\$(srcdir):*/:/
27567 s/:*\${srcdir}:*/:/
27569 s/^\([^=]*=[ ]*\):*/\1/
27575 cat >>$CONFIG_STATUS <<\_ACEOF
27576 fi # test -n "$CONFIG_FILES"
27579 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
27582 :[FHLC
]) ac_mode
=$ac_tag; continue;;
27584 case $ac_mode$ac_tag in
27586 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27587 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27588 { (exit 1); exit 1; }; };;
27589 :[FH
]-) ac_tag
=-:-;;
27590 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
27607 -) ac_f
="$tmp/stdin";;
27608 *) # Look for the file first in the build tree, then in the source tree
27609 # (if the path is not absolute). The absolute path cannot be DOS-style,
27610 # because $ac_f cannot contain `:'.
27614 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
27616 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27617 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27618 { (exit 1); exit 1; }; };;
27620 ac_file_inputs
="$ac_file_inputs $ac_f"
27623 # Let's still pretend it is `configure' which instantiates (i.e., don't
27624 # use $as_me), people would be surprised to read:
27625 # /* config.h. Generated by config.status. */
27626 configure_input
="Generated from "`IFS=:
27627 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27628 if test x
"$ac_file" != x-
; then
27629 configure_input
="$ac_file. $configure_input"
27630 { echo "$as_me:$LINENO: creating $ac_file" >&5
27631 echo "$as_me: creating $ac_file" >&6;}
27635 *:-:* |
*:-) cat >"$tmp/stdin";;
27640 ac_dir
=`$as_dirname -- "$ac_file" ||
27641 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27642 X"$ac_file" : 'X\(//\)[^/]' \| \
27643 X"$ac_file" : 'X\(//\)$' \| \
27644 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27646 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27650 /^X\(\/\/\)[^/].*/{
27665 -*) as_dir
=.
/$as_dir;;
27667 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
27671 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27672 *) as_qdir
=$as_dir;;
27674 as_dirs
="'$as_qdir' $as_dirs"
27675 as_dir
=`$as_dirname -- "$as_dir" ||
27676 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27677 X"$as_dir" : 'X\(//\)[^/]' \| \
27678 X"$as_dir" : 'X\(//\)$' \| \
27679 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27681 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27685 /^X\(\/\/\)[^/].*/{
27698 test -d "$as_dir" && break
27700 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
27701 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27702 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27703 { (exit 1); exit 1; }; }; }
27707 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27709 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27710 # A ".." for each directory in $ac_dir_suffix.
27711 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27712 case $ac_top_builddir_sub in
27713 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27714 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
27717 ac_abs_top_builddir
=$ac_pwd
27718 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
27719 # for backward compatibility:
27720 ac_top_builddir
=$ac_top_build_prefix
27723 .
) # We are building in place.
27725 ac_top_srcdir
=$ac_top_builddir_sub
27726 ac_abs_top_srcdir
=$ac_pwd ;;
27727 [\\/]* | ?
:[\\/]* ) # Absolute name.
27728 ac_srcdir
=$srcdir$ac_dir_suffix;
27729 ac_top_srcdir
=$srcdir
27730 ac_abs_top_srcdir
=$srcdir ;;
27731 *) # Relative name.
27732 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
27733 ac_top_srcdir
=$ac_top_build_prefix$srcdir
27734 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
27736 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
27746 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
27747 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
27751 cat >>$CONFIG_STATUS <<\_ACEOF
27752 # If the template does not know about datarootdir, expand it.
27753 # FIXME: This hack should be removed a few years after 2.60.
27754 ac_datarootdir_hack
=; ac_datarootdir_seen
=
27756 case `sed -n '/datarootdir/ {
27765 ' $ac_file_inputs` in
27766 *datarootdir
*) ac_datarootdir_seen
=yes;;
27767 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
27768 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27769 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27771 cat >>$CONFIG_STATUS <<_ACEOF
27772 ac_datarootdir_hack='
27773 s&@datadir@&$datadir&g
27774 s&@docdir@&$docdir&g
27775 s&@infodir@&$infodir&g
27776 s&@localedir@&$localedir&g
27777 s&@mandir@&$mandir&g
27778 s&\\\${datarootdir}&$datarootdir&g' ;;
27782 # Neutralize VPATH when `$srcdir' = `.'.
27783 # Shell code in configure.ac might set extrasub.
27784 # FIXME: do we really want to maintain this feature?
27785 cat >>$CONFIG_STATUS <<_ACEOF
27789 cat >>$CONFIG_STATUS <<\_ACEOF
27791 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
27792 s
&@configure_input@
&$configure_input&;t t
27793 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
27794 s
&@srcdir@
&$ac_srcdir&;t t
27795 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
27796 s
&@top_srcdir@
&$ac_top_srcdir&;t t
27797 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
27798 s
&@builddir@
&$ac_builddir&;t t
27799 s
&@abs_builddir@
&$ac_abs_builddir&;t t
27800 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
27801 s
&@INSTALL@
&$ac_INSTALL&;t t
27802 $ac_datarootdir_hack
27803 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
27805 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27806 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
27807 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
27808 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
27809 which seems to be undefined. Please make sure it is defined." >&5
27810 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
27811 which seems to be undefined. Please make sure it is defined." >&2;}
27815 -) cat "$tmp/out"; rm -f "$tmp/out";;
27816 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27825 # Transform confdefs.h into a sed script `conftest.defines', that
27826 # substitutes the proper values into config.h.in to produce config.h.
27827 rm -f conftest.defines conftest.
tail
27828 # First, append a space to every undef/define line, to ease matching.
27829 echo 's/$/ /' >conftest.defines
27830 # Then, protect against being on the right side of a sed subst, or in
27831 # an unquoted here document, in config.status. If some macros were
27832 # called several times there might be several #defines for the same
27833 # symbol, which is useless. But do not sort them, since the last
27834 # AC_DEFINE must be honored.
27835 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
27836 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27837 # NAME is the cpp macro being defined, VALUE is the value it is being given.
27838 # PARAMS is the parameter list in the macro definition--in most cases, it's
27839 # just an empty string.
27840 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
27841 ac_dB
='\\)[ (].*,\\1define\\2'
27849 s/^[ ]*#[ ]*define[ ][ ]*//
27854 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27855 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27856 ' >>conftest.defines
27858 # Remove the space that was appended to ease matching.
27859 # Then replace #undef with comments. This is necessary, for
27860 # example, in the case of _POSIX_SOURCE, which is predefined and required
27861 # on some systems where configure will not decide to define it.
27862 # (The regexp can be short, since the line contains either #define or #undef.)
27864 s,^[ #]*u.*,/* & */,' >>conftest.defines
27866 # Break up conftest.defines:
27867 ac_max_sed_lines
=50
27869 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27870 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27871 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27873 ac_in
='$ac_file_inputs'
27874 ac_out
='"$tmp/out1"'
27875 ac_nxt
='"$tmp/out2"'
27879 # Write a here document:
27880 cat >>$CONFIG_STATUS <<_ACEOF
27881 # First, check the format of the line:
27882 cat >"\$tmp/defines.sed" <<\\CEOF
27883 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
27884 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
27888 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
27890 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27891 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
27892 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
27893 grep . conftest.
tail >/dev
/null ||
break
27894 rm -f conftest.defines
27895 mv conftest.
tail conftest.defines
27897 rm -f conftest.defines conftest.
tail
27899 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27900 cat >>$CONFIG_STATUS <<\_ACEOF
27901 if test x
"$ac_file" != x-
; then
27902 echo "/* $configure_input */" >"$tmp/config.h"
27903 cat "$ac_result" >>"$tmp/config.h"
27904 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
27905 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27906 echo "$as_me: $ac_file is unchanged" >&6;}
27909 mv "$tmp/config.h" $ac_file
27912 echo "/* $configure_input */"
27924 { (exit 0); exit 0; }
27926 chmod +x
$CONFIG_STATUS
27927 ac_clean_files
=$ac_clean_files_save
27930 # configure is writing to config.log, and then calls config.status.
27931 # config.status does its own redirection, appending to config.log.
27932 # Unfortunately, on DOS this fails, as config.log is still kept open
27933 # by configure, so config.status won't be able to write to it; its
27934 # output is simply discarded. So we exec the FD to /dev/null,
27935 # effectively closing config.log, so it can be properly (re)opened and
27936 # appended to by config.status. When coming back to configure, we
27937 # need to make the FD available again.
27938 if test "$no_create" != yes; then
27940 ac_config_status_args
=
27941 test "$silent" = yes &&
27942 ac_config_status_args
="$ac_config_status_args --quiet"
27944 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
27946 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27947 # would make configure fail if this is the last instruction.
27948 $ac_cs_success ||
{ (exit 1); exit 1; }
27952 echo "creating Modules/Setup"
27953 if test ! -f Modules
/Setup
27955 cp $srcdir/Modules
/Setup.dist Modules
/Setup
27958 echo "creating Modules/Setup.local"
27959 if test ! -f Modules
/Setup.
local
27961 echo "# Edit this file for local setup changes" >Modules
/Setup.
local
27964 echo "creating Makefile"
27965 $SHELL $srcdir/Modules
/makesetup
-c $srcdir/Modules
/config.c.
in \
27966 -s Modules Modules
/Setup.config \
27967 Modules
/Setup.
local Modules
/Setup
27969 case $ac_sys_system in
27971 { echo "$as_me:$LINENO: WARNING:
27973 Support for BeOS is deprecated as of Python 2.6.
27974 See PEP 11 for the gory details.
27976 echo "$as_me: WARNING:
27978 Support for BeOS is deprecated as of Python 2.6.
27979 See PEP 11 for the gory details.
27985 mv config.c Modules