2 # From configure.in Revision: 59552 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for python 2.5.
6 # Report bugs to <http://www.python.org/python-bugs>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be more Bourne compatible
17 DUALCASE
=1; export DUALCASE
# for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in
27 *posix
*) set -o posix
;;
36 # Avoid depending upon Character Ranges.
37 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits
='0123456789'
41 as_cr_alnum
=$as_cr_Letters$as_cr_digits
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45 echo "#! /bin/sh" >conf$$.sh
46 echo "exit 0" >>conf$$.sh
48 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
56 # Support unset when possible.
57 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
65 # We need space, tab and new line, in precisely that order. Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
73 # Find who we are. Look in the path if we contain no directory separator.
75 *[\\/]* ) as_myself
=$0 ;;
76 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
80 test -z "$as_dir" && as_dir
=.
81 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x
; then
92 if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var
in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
111 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C
; export $as_var
114 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
118 # Required to use basename.
119 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
126 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
133 # Name of the executable.
134 as_me
=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
139 sed '/^.*\/\([^/][^/]*\)\/*$/{
157 if test "x$CONFIG_SHELL" = x
; then
158 if (eval ":") 2>/dev
/null
; then
164 if test $as_have_required = yes && (eval ":
174 as_func_ret_success () {
177 as_func_ret_failure () {
182 if as_func_success; then
186 echo as_func_success failed.
189 if as_func_failure; then
191 echo as_func_failure succeeded.
194 if as_func_ret_success; then
198 echo as_func_ret_success failed.
201 if as_func_ret_failure; then
203 echo as_func_ret_failure succeeded.
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
210 echo positional parameters were not saved.
213 test \$exitcode = 0) || { (exit 1); exit 1; }
218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev
/null
; then
224 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
225 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
228 test -z "$as_dir" && as_dir
=.
231 for as_base
in sh bash ksh sh5
; do
232 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
239 for as_shell
in $as_candidate_shells $SHELL; do
240 # Try only shells that exist, to save several forks.
241 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
242 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247 # is contrary to our usage. Disable this feature.
248 alias -g '${1+"$@"}'='"$@"'
251 case `(set -o) 2>/dev/null` in
252 *posix
*) set -o posix
;;
261 CONFIG_SHELL
=$as_shell
263 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
272 case `(set -o) 2>/dev/null` in
273 *posix
*) set -o posix
;;
289 as_func_ret_success
() {
292 as_func_ret_failure
() {
297 if as_func_success
; then
301 echo as_func_success failed.
304 if as_func_failure
; then
306 echo as_func_failure succeeded.
309 if as_func_ret_success
; then
313 echo as_func_ret_success failed.
316 if as_func_ret_failure
; then
318 echo as_func_ret_failure succeeded.
321 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
325 echo positional parameters were not saved.
328 test $exitcode = 0) ||
{ (exit 1); exit 1; }
333 test "x$as_lineno_1" != "x$as_lineno_2" &&
334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
345 if test "x$CONFIG_SHELL" != x
; then
346 for as_var
in BASH_ENV ENV
347 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
354 if test $as_have_required = no
; then
355 echo This
script requires a shell
more modern than all the
356 echo shells that I found on your system. Please
install a
357 echo modern shell
, or manually run the
script under such a
358 echo shell
if you
do have one.
359 { (exit 1); exit 1; }
369 (eval "as_func_return () {
378 as_func_ret_success () {
381 as_func_ret_failure () {
386 if as_func_success; then
390 echo as_func_success failed.
393 if as_func_failure; then
395 echo as_func_failure succeeded.
398 if as_func_ret_success; then
402 echo as_func_ret_success failed.
405 if as_func_ret_failure; then
407 echo as_func_ret_failure succeeded.
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
414 echo positional parameters were not saved.
417 test \$exitcode = 0") ||
{
418 echo No shell found that supports shell functions.
419 echo Please tell autoconf@gnu.org about your system
,
420 echo including any error possibly output before this
428 test "x$as_lineno_1" != "x$as_lineno_2" &&
429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432 # uniformly replaced by the line number. The first 'sed' inserts a
433 # line-number line after each line using $LINENO; the second 'sed'
434 # does the real work. The second script uses 'N' to pair each
435 # line-number line with the line containing $LINENO, and appends
436 # trailing '-' during substitution so that $LINENO is not a special
438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439 # scripts with optimization help from Paolo Bonzini. Blame Lee
440 # E. McMahon (1931-1989) for sed's syntax. :-)
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
456 chmod +x
"$as_me.lineno" ||
457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458 { (exit 1); exit 1; }; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
464 # Exit status is that of the last command.
469 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
475 ECHO_C
= ECHO_N
= ECHO_T
=
479 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
486 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
493 rm -f conf$$ conf$$.exe conf$$.
file
494 if test -d conf$$.dir
; then
495 rm -f conf$$.dir
/conf$$.
file
501 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
503 # ... but there are two gotchas:
504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506 # In both cases, we have to default to `cp -p'.
507 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
509 elif ln conf$$.
file conf$$
2>/dev
/null
; then
514 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
515 rmdir conf$$.dir
2>/dev
/null
517 if mkdir
-p .
2>/dev
/null
; then
520 test -d .
/-p && rmdir .
/-p
524 if test -x / >/dev
/null
2>&1; then
527 if ls -dL / >/dev
/null
2>&1; then
534 if test -d "$1"; then
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
545 as_executable_p
=$as_test_x
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 exec 7<&0 </dev
/null
6>&1
558 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559 # so uname gets run too.
560 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
565 ac_default_prefix
=/usr
/local
567 ac_config_libobj_dir
=.
573 SHELL
=${CONFIG_SHELL-/bin/sh}
575 # Identity of this package.
576 PACKAGE_NAME
='python'
577 PACKAGE_TARNAME
='python'
578 PACKAGE_VERSION
='2.5'
579 PACKAGE_STRING
='python 2.5'
580 PACKAGE_BUGREPORT
='http://www.python.org/python-bugs'
582 ac_unique_file
="Include/object.h"
583 # Factoring default headers for most tests.
584 ac_includes_default
="\
586 #ifdef HAVE_SYS_TYPES_H
587 # include <sys/types.h>
589 #ifdef HAVE_SYS_STAT_H
590 # include <sys/stat.h>
596 # ifdef HAVE_STDLIB_H
601 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
606 #ifdef HAVE_STRINGS_H
607 # include <strings.h>
609 #ifdef HAVE_INTTYPES_H
610 # include <inttypes.h>
628 program_transform_name
662 PYTHONFRAMEWORKPREFIX
663 PYTHONFRAMEWORKINSTALLDIR
664 FRAMEWORKINSTALLFIRST
666 FRAMEWORKALTINSTALLFIRST
667 FRAMEWORKALTINSTALLLAST
668 FRAMEWORKUNIXTOOLSPREFIX
673 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
674 EXPORT_MACOSX_DEPLOYMENT_TARGET
724 HAVE_GETHOSTBYNAME_R_6_ARG
725 HAVE_GETHOSTBYNAME_R_5_ARG
726 HAVE_GETHOSTBYNAME_R_3_ARG
736 ac_precious_vars
='build_alias
747 # Initialize some variables set by options.
749 ac_init_version
=false
750 # The variables have the same names as the options, with
751 # dashes changed to underlines.
759 program_transform_name
=s
,x
,x
,
767 # Installation directory options.
768 # These are left unexpanded so users can "make install exec_prefix=/foo"
769 # and all the variables that are supposed to be based on exec_prefix
770 # by default will actually change.
771 # Use braces instead of parens because sh, perl, etc. also accept them.
772 # (The list follows the same order as the GNU Coding Standards.)
773 bindir
='${exec_prefix}/bin'
774 sbindir
='${exec_prefix}/sbin'
775 libexecdir
='${exec_prefix}/libexec'
776 datarootdir
='${prefix}/share'
777 datadir
='${datarootdir}'
778 sysconfdir
='${prefix}/etc'
779 sharedstatedir
='${prefix}/com'
780 localstatedir
='${prefix}/var'
781 includedir
='${prefix}/include'
782 oldincludedir
='/usr/include'
783 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
784 infodir
='${datarootdir}/info'
789 libdir
='${exec_prefix}/lib'
790 localedir
='${datarootdir}/locale'
791 mandir
='${datarootdir}/man'
797 # If the previous option needs an argument, assign it.
798 if test -n "$ac_prev"; then
799 eval $ac_prev=\
$ac_option
805 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
809 # Accept the important Cygnus configure options, so we can diagnose typos.
811 case $ac_dashdash$ac_option in
815 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
817 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
820 -build |
--build |
--buil |
--bui |
--bu)
821 ac_prev
=build_alias
;;
822 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
823 build_alias
=$ac_optarg ;;
825 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
826 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
827 ac_prev
=cache_file
;;
828 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
829 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
830 cache_file
=$ac_optarg ;;
833 cache_file
=config.cache
;;
835 -datadir |
--datadir |
--datadi |
--datad)
837 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
838 datadir
=$ac_optarg ;;
840 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
841 |
--dataroo |
--dataro |
--datar)
842 ac_prev
=datarootdir
;;
843 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
844 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
845 datarootdir
=$ac_optarg ;;
847 -disable-* |
--disable-*)
848 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
849 # Reject names that are not valid shell variable names.
850 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
851 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
852 { (exit 1); exit 1; }; }
853 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
854 eval enable_
$ac_feature=no
;;
856 -docdir |
--docdir |
--docdi |
--doc |
--do)
858 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
861 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
863 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
866 -enable-* |
--enable-*)
867 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
868 # Reject names that are not valid shell variable names.
869 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
870 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
871 { (exit 1); exit 1; }; }
872 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
873 eval enable_
$ac_feature=\
$ac_optarg ;;
875 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
876 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
877 |
--exec |
--exe |
--ex)
878 ac_prev
=exec_prefix
;;
879 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
880 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
881 |
--exec=* |
--exe=* |
--ex=*)
882 exec_prefix
=$ac_optarg ;;
884 -gas |
--gas |
--ga |
--g)
885 # Obsolete; use --with-gas.
888 -help |
--help |
--hel |
--he |
-h)
890 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
891 ac_init_help
=recursive
;;
892 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
893 ac_init_help
=short
;;
895 -host |
--host |
--hos |
--ho)
896 ac_prev
=host_alias
;;
897 -host=* |
--host=* |
--hos=* |
--ho=*)
898 host_alias
=$ac_optarg ;;
900 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
902 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
904 htmldir
=$ac_optarg ;;
906 -includedir |
--includedir |
--includedi |
--included |
--include \
907 |
--includ |
--inclu |
--incl |
--inc)
908 ac_prev
=includedir
;;
909 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
910 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
911 includedir
=$ac_optarg ;;
913 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
915 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
916 infodir
=$ac_optarg ;;
918 -libdir |
--libdir |
--libdi |
--libd)
920 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
923 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
924 |
--libexe |
--libex |
--libe)
925 ac_prev
=libexecdir
;;
926 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
927 |
--libexe=* |
--libex=* |
--libe=*)
928 libexecdir
=$ac_optarg ;;
930 -localedir |
--localedir |
--localedi |
--localed |
--locale)
932 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
933 localedir
=$ac_optarg ;;
935 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
936 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
937 ac_prev
=localstatedir
;;
938 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
939 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
940 localstatedir
=$ac_optarg ;;
942 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
944 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
948 # Obsolete; use --without-fp.
951 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
952 |
--no-cr |
--no-c |
-n)
955 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
956 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
959 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
960 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
961 |
--oldin |
--oldi |
--old |
--ol |
--o)
962 ac_prev
=oldincludedir
;;
963 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
964 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
965 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
966 oldincludedir
=$ac_optarg ;;
968 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
970 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
973 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
974 |
--program-pre |
--program-pr |
--program-p)
975 ac_prev
=program_prefix
;;
976 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
977 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
978 program_prefix
=$ac_optarg ;;
980 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
981 |
--program-suf |
--program-su |
--program-s)
982 ac_prev
=program_suffix
;;
983 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
984 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
985 program_suffix
=$ac_optarg ;;
987 -program-transform-name |
--program-transform-name \
988 |
--program-transform-nam |
--program-transform-na \
989 |
--program-transform-n |
--program-transform- \
990 |
--program-transform |
--program-transfor \
991 |
--program-transfo |
--program-transf \
992 |
--program-trans |
--program-tran \
993 |
--progr-tra |
--program-tr |
--program-t)
994 ac_prev
=program_transform_name
;;
995 -program-transform-name=* |
--program-transform-name=* \
996 |
--program-transform-nam=* |
--program-transform-na=* \
997 |
--program-transform-n=* |
--program-transform-=* \
998 |
--program-transform=* |
--program-transfor=* \
999 |
--program-transfo=* |
--program-transf=* \
1000 |
--program-trans=* |
--program-tran=* \
1001 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1002 program_transform_name
=$ac_optarg ;;
1004 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1006 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1007 pdfdir
=$ac_optarg ;;
1009 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1011 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1014 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1015 |
-silent |
--silent |
--silen |
--sile |
--sil)
1018 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1020 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1022 sbindir
=$ac_optarg ;;
1024 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1025 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1026 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1028 ac_prev
=sharedstatedir
;;
1029 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1030 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1031 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1033 sharedstatedir
=$ac_optarg ;;
1035 -site |
--site |
--sit)
1037 -site=* |
--site=* |
--sit=*)
1040 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1042 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1043 srcdir
=$ac_optarg ;;
1045 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1046 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1047 ac_prev
=sysconfdir
;;
1048 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1049 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1050 sysconfdir
=$ac_optarg ;;
1052 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1053 ac_prev
=target_alias
;;
1054 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1055 target_alias
=$ac_optarg ;;
1057 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1060 -version |
--version |
--versio |
--versi |
--vers |
-V)
1061 ac_init_version
=: ;;
1064 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1065 # Reject names that are not valid shell variable names.
1066 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1067 { echo "$as_me: error: invalid package name: $ac_package" >&2
1068 { (exit 1); exit 1; }; }
1069 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1070 eval with_
$ac_package=\
$ac_optarg ;;
1072 -without-* |
--without-*)
1073 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1074 # Reject names that are not valid shell variable names.
1075 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1076 { echo "$as_me: error: invalid package name: $ac_package" >&2
1077 { (exit 1); exit 1; }; }
1078 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1079 eval with_
$ac_package=no
;;
1082 # Obsolete; use --with-x.
1085 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1086 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1087 ac_prev
=x_includes
;;
1088 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1089 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1090 x_includes
=$ac_optarg ;;
1092 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1093 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1094 ac_prev
=x_libraries
;;
1095 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1096 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1097 x_libraries
=$ac_optarg ;;
1099 -*) { echo "$as_me: error: unrecognized option: $ac_option
1100 Try \`$0 --help' for more information." >&2
1101 { (exit 1); exit 1; }; }
1105 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1106 # Reject names that are not valid shell variable names.
1107 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1108 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1109 { (exit 1); exit 1; }; }
1110 eval $ac_envvar=\
$ac_optarg
1111 export $ac_envvar ;;
1114 # FIXME: should be removed in autoconf 3.0.
1115 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1116 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1117 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1118 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1124 if test -n "$ac_prev"; then
1125 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1126 { echo "$as_me: error: missing argument to $ac_option" >&2
1127 { (exit 1); exit 1; }; }
1130 # Be sure to have absolute directory names.
1131 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1132 datadir sysconfdir sharedstatedir localstatedir includedir \
1133 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1134 libdir localedir mandir
1136 eval ac_val
=\$
$ac_var
1138 [\\/$
]* | ?
:[\\/]* ) continue;;
1139 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1141 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1142 { (exit 1); exit 1; }; }
1145 # There might be people who depend on the old broken behavior: `$host'
1146 # used to hold the argument of --host etc.
1147 # FIXME: To remove some day.
1150 target
=$target_alias
1152 # FIXME: To remove some day.
1153 if test "x$host_alias" != x
; then
1154 if test "x$build_alias" = x
; then
1155 cross_compiling
=maybe
1156 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1157 If a cross compiler is detected then cross compile mode will be used." >&2
1158 elif test "x$build_alias" != "x$host_alias"; then
1164 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1166 test "$silent" = yes && exec 6>/dev
/null
1169 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1170 ac_ls_di
=`ls -di .` &&
1171 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1172 { echo "$as_me: error: Working directory cannot be determined" >&2
1173 { (exit 1); exit 1; }; }
1174 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1175 { echo "$as_me: error: pwd does not report name of working directory" >&2
1176 { (exit 1); exit 1; }; }
1179 # Find the source files, if location was not specified.
1180 if test -z "$srcdir"; then
1181 ac_srcdir_defaulted
=yes
1182 # Try the directory containing this script, then the parent directory.
1183 ac_confdir
=`$as_dirname -- "$0" ||
1184 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1185 X"$0" : 'X\(//\)[^/]' \| \
1186 X"$0" : 'X\(//\)$' \| \
1187 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1189 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1207 if test ! -r "$srcdir/$ac_unique_file"; then
1211 ac_srcdir_defaulted
=no
1213 if test ! -r "$srcdir/$ac_unique_file"; then
1214 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1215 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1216 { (exit 1); exit 1; }; }
1218 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1220 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1221 { (exit 1); exit 1; }; }
1223 # When building in place, set srcdir=.
1224 if test "$ac_abs_confdir" = "$ac_pwd"; then
1227 # Remove unnecessary trailing slashes from srcdir.
1228 # Double slashes in file names in object file debugging info
1229 # mess up M-x gdb in Emacs.
1231 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1233 for ac_var
in $ac_precious_vars; do
1234 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1235 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1236 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1237 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1241 # Report the --help message.
1243 if test "$ac_init_help" = "long"; then
1244 # Omit some internal or obsolete options to make the list less imposing.
1245 # This message is too long to be a string in the A/UX 3.1 sh.
1247 \`configure' configures python 2.5 to adapt to many kinds of systems.
1249 Usage: $0 [OPTION]... [VAR=VALUE]...
1251 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1252 VAR=VALUE. See below for descriptions of some of the useful variables.
1254 Defaults for the options are specified in brackets.
1257 -h, --help display this help and exit
1258 --help=short display options specific to this package
1259 --help=recursive display the short help of all the included packages
1260 -V, --version display version information and exit
1261 -q, --quiet, --silent do not print \`checking...' messages
1262 --cache-file=FILE cache test results in FILE [disabled]
1263 -C, --config-cache alias for \`--cache-file=config.cache'
1264 -n, --no-create do not create output files
1265 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1267 Installation directories:
1268 --prefix=PREFIX install architecture-independent files in PREFIX
1269 [$ac_default_prefix]
1270 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1273 By default, \`make install' will install all the files in
1274 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1275 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1276 for instance \`--prefix=\$HOME'.
1278 For better control, use the options below.
1280 Fine tuning of the installation directories:
1281 --bindir=DIR user executables [EPREFIX/bin]
1282 --sbindir=DIR system admin executables [EPREFIX/sbin]
1283 --libexecdir=DIR program executables [EPREFIX/libexec]
1284 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1285 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1286 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1287 --libdir=DIR object code libraries [EPREFIX/lib]
1288 --includedir=DIR C header files [PREFIX/include]
1289 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1290 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1291 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1292 --infodir=DIR info documentation [DATAROOTDIR/info]
1293 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1294 --mandir=DIR man documentation [DATAROOTDIR/man]
1295 --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1296 --htmldir=DIR html documentation [DOCDIR]
1297 --dvidir=DIR dvi documentation [DOCDIR]
1298 --pdfdir=DIR pdf documentation [DOCDIR]
1299 --psdir=DIR ps documentation [DOCDIR]
1306 if test -n "$ac_init_help"; then
1307 case $ac_init_help in
1308 short | recursive
) echo "Configuration of python 2.5:";;
1313 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1314 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1315 --enable-universalsdk[SDKDIR
]
1316 Build agains Mac OS X
10.4u SDK
(ppc
/i386
)
1317 --enable-framework[=INSTALLDIR
]
1318 Build
(MacOSX|Darwin
) framework
1319 --enable-shared disable
/enable building shared python library
1320 --enable-profiling enable C-level code profiling
1321 --enable-toolbox-glue disable
/enable MacOSX glue code
for extensions
1322 --enable-ipv6 Enable ipv6
(with ipv4
) support
1323 --disable-ipv6 Disable ipv6 support
1324 --enable-unicode[=ucs
[24]]
1325 Enable Unicode
strings (default is
yes)
1328 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1329 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1330 --without-gcc never use gcc
1331 --with-cxx-main=<compiler
>
1332 compile main
() and link python executable with C
++
1334 --with-suffix=.exe
set executable suffix
1335 --with-pydebug build with Py_DEBUG defined
1336 --with-libs='lib1 ...' link against additional libs
1337 --with-system-ffi build _ctypes module using an installed ffi library
1338 --with-signal-module disable
/enable signal module
1339 --with-dec-threads use DEC Alpha
/OSF1 thread-safe libraries
1340 --with(out
)-threads[=DIRECTORY
]
1341 disable
/enable thread support
1342 --with(out
)-thread[=DIRECTORY
]
1343 deprecated
; use
--with(out
)-threads
1344 --with-pth use GNU pth threading libraries
1345 --with(out
)-doc-strings disable
/enable documentation
strings
1346 --with(out
)-tsc enable
/disable timestamp counter profile
1347 --with(out
)-pymalloc disable
/enable specialized mallocs
1348 --with-wctype-functions use wctype.h functions
1349 --with-fpectl enable SIGFPE catching
1350 --with-libm=STRING math library
1351 --with-libc=STRING C library
1353 Some influential environment variables
:
1354 CC C compiler
command
1355 CFLAGS C compiler flags
1356 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1357 nonstandard directory
<lib dir
>
1358 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1359 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1360 you have headers
in a nonstandard directory
<include dir
>
1363 Use these variables to override the choices made by
`configure' or to help
1364 it to find libraries and programs with nonstandard names/locations.
1366 Report bugs to <http://www.python.org/python-bugs>.
1371 if test "$ac_init_help" = "recursive"; then
1372 # If there are subdirs, report their specific --help.
1373 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1374 test -d "$ac_dir" || continue
1378 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1380 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1381 # A ".." for each directory in $ac_dir_suffix.
1382 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1383 case $ac_top_builddir_sub in
1384 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1385 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1388 ac_abs_top_builddir=$ac_pwd
1389 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1390 # for backward compatibility:
1391 ac_top_builddir=$ac_top_build_prefix
1394 .) # We are building in place.
1396 ac_top_srcdir=$ac_top_builddir_sub
1397 ac_abs_top_srcdir=$ac_pwd ;;
1398 [\\/]* | ?:[\\/]* ) # Absolute name.
1399 ac_srcdir=$srcdir$ac_dir_suffix;
1400 ac_top_srcdir=$srcdir
1401 ac_abs_top_srcdir=$srcdir ;;
1403 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1404 ac_top_srcdir=$ac_top_build_prefix$srcdir
1405 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1407 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1409 cd "$ac_dir" || { ac_status=$?; continue; }
1410 # Check for guested configure.
1411 if test -f "$ac_srcdir/configure.gnu"; then
1413 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1414 elif test -f "$ac_srcdir/configure"; then
1416 $SHELL "$ac_srcdir/configure" --help=recursive
1418 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1420 cd "$ac_pwd" || { ac_status=$?; break; }
1424 test -n "$ac_init_help" && exit $ac_status
1425 if $ac_init_version; then
1427 python configure 2.5
1428 generated by GNU Autoconf 2.61
1430 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1431 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1432 This configure script is free software; the Free Software Foundation
1433 gives unlimited permission to copy, distribute and modify it.
1437 cat >config.log <<_ACEOF
1438 This file contains any messages produced by compilers while
1439 running configure, to aid debugging if configure makes a mistake.
1441 It was created by python $as_me 2.5, which was
1442 generated by GNU Autoconf 2.61. Invocation command line was
1454 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1455 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1456 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1457 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1458 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1460 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1461 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1463 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1464 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1465 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1466 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1467 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1468 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1469 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1477 test -z "$as_dir" && as_dir=.
1478 echo "PATH: $as_dir"
1494 # Keep a trace of the command line.
1495 # Strip out --no-create and --no-recursion so they do not pile up.
1496 # Strip out --silent because we don't want to record it for future runs.
1497 # Also quote any args containing shell meta-characters.
1498 # Make two passes to allow for proper duplicate-argument suppression.
1502 ac_must_keep_next=false
1508 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1509 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1510 | -silent | --silent | --silen | --sile | --sil)
1513 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1516 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1518 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1519 if test $ac_must_keep_next = true; then
1520 ac_must_keep_next=false # Got value, back to normal.
1523 *=* | --config-cache | -C | -disable-* | --disable-* \
1524 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1525 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1526 | -with-* | --with-* | -without-* | --without-* | --x)
1527 case "$ac_configure_args0 " in
1528 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1531 -* ) ac_must_keep_next=true ;;
1534 ac_configure_args="$ac_configure_args '$ac_arg'"
1539 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1540 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1542 # When interrupted or exit'd, cleanup temporary files, and complete
1543 # config.log. We remove comments because anyway the quotes in there
1544 # would cause problems or look ugly.
1545 # WARNING: Use '\'' to represent an apostrophe within the trap.
1546 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1547 trap 'exit_status=$?
1548 # Save into config.log some information that might help in debugging.
1553 ## ---------------- ##
1554 ## Cache variables. ##
1555 ## ---------------- ##
1558 # The following way of writing the cache mishandles newlines in values,
1560 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1561 eval ac_val=\$$ac_var
1565 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1566 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1569 _ | IFS | as_nl) ;; #(
1570 *) $as_unset $ac_var ;;
1575 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1576 *${as_nl}ac_space=\ *)
1578 "s/'\''/'\''\\\\'\'''\''/g;
1579 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1582 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1590 ## ----------------- ##
1591 ## Output variables. ##
1592 ## ----------------- ##
1595 for ac_var in $ac_subst_vars
1597 eval ac_val=\$$ac_var
1599 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1601 echo "$ac_var='\''$ac_val'\''"
1605 if test -n "$ac_subst_files"; then
1607 ## ------------------- ##
1608 ## File substitutions. ##
1609 ## ------------------- ##
1612 for ac_var in $ac_subst_files
1614 eval ac_val=\$$ac_var
1616 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1618 echo "$ac_var='\''$ac_val'\''"
1623 if test -s confdefs.h; then
1633 test "$ac_signal" != 0 &&
1634 echo "$as_me: caught signal $ac_signal"
1635 echo "$as_me: exit $exit_status"
1637 rm -f core *.core core.conftest.* &&
1638 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1641 for ac_signal in 1 2 13 15; do
1642 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1646 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1647 rm -f -r conftest* confdefs.h
1649 # Predefined preprocessor variables.
1651 cat >>confdefs.h <<_ACEOF
1652 #define PACKAGE_NAME "$PACKAGE_NAME"
1656 cat >>confdefs.h <<_ACEOF
1657 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1661 cat >>confdefs.h <<_ACEOF
1662 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1666 cat >>confdefs.h <<_ACEOF
1667 #define PACKAGE_STRING "$PACKAGE_STRING"
1671 cat >>confdefs.h <<_ACEOF
1672 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1676 # Let the site file select an alternate cache file if it wants to.
1677 # Prefer explicitly selected file to automatically selected ones.
1678 if test -n "$CONFIG_SITE"; then
1679 set x "$CONFIG_SITE"
1680 elif test "x$prefix" != xNONE; then
1681 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1683 set x "$ac_default_prefix/share/config.site" \
1684 "$ac_default_prefix/etc/config.site"
1689 if test -r "$ac_site_file"; then
1690 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1691 echo "$as_me: loading site script $ac_site_file" >&6;}
1692 sed 's/^/| /' "$ac_site_file" >&5
1697 if test -r "$cache_file"; then
1698 # Some versions of bash will fail to source /dev/null (special
1699 # files actually), so we avoid doing that.
1700 if test -f "$cache_file"; then
1701 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1702 echo "$as_me: loading cache $cache_file" >&6;}
1704 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1705 *) . "./$cache_file";;
1709 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1710 echo "$as_me: creating cache $cache_file" >&6;}
1714 # Check that the precious variables saved in the cache have kept the same
1716 ac_cache_corrupted=false
1717 for ac_var in $ac_precious_vars; do
1718 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1719 eval ac_new_set=\$ac_env_${ac_var}_set
1720 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1721 eval ac_new_val=\$ac_env_${ac_var}_value
1722 case $ac_old_set,$ac_new_set in
1724 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1725 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1726 ac_cache_corrupted=: ;;
1728 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1729 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1730 ac_cache_corrupted=: ;;
1733 if test "x$ac_old_val" != "x$ac_new_val"; then
1734 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1735 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1736 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1737 echo "$as_me: former value
: $ac_old_val" >&2;}
1738 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1739 echo "$as_me: current value
: $ac_new_val" >&2;}
1740 ac_cache_corrupted=:
1743 # Pass precious variables to config.status.
1744 if test "$ac_new_set" = set; then
1746 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1747 *) ac_arg=$ac_var=$ac_new_val ;;
1749 case " $ac_configure_args " in
1750 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1751 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1755 if $ac_cache_corrupted; then
1756 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1757 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1758 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1759 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1760 { (exit 1); exit 1; }; }
1788 ac_cpp='$CPP $CPPFLAGS'
1789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1795 ac_config_headers="$ac_config_headers pyconfig.h"
1803 # We don't use PACKAGE_ variables, and they cause conflicts
1804 # with other autoconf-based packages that include Python.h
1805 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
1807 mv confdefs.h.new confdefs.h
1815 # The later defininition of _XOPEN_SOURCE disables certain features
1816 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
1818 cat >>confdefs.h <<\_ACEOF
1819 #define _GNU_SOURCE 1
1823 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1824 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
1827 cat >>confdefs.h <<\_ACEOF
1828 #define _NETBSD_SOURCE 1
1832 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1833 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
1836 cat >>confdefs.h <<\_ACEOF
1837 #define __BSD_VISIBLE 1
1841 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
1842 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
1844 cat >>confdefs.h <<\_ACEOF
1845 #define _BSD_TYPES 1
1849 define_xopen_source=yes
1851 # Arguments passed to configure.
1853 CONFIG_ARGS="$ac_configure_args"
1855 # Check whether --enable-universalsdk was given.
1856 if test "${enable_universalsdk+set}" = set; then
1857 enableval=$enable_universalsdk;
1860 enableval=/Developer/SDKs/MacOSX10.4u.sdk
1866 enable_universalsdk=
1869 UNIVERSALSDK=$enableval
1876 enable_universalsdk=
1882 # Check whether --enable-framework was given.
1883 if test "${enable_framework+set}" = set; then
1884 enableval=$enable_framework;
1887 enableval=/Library/Frameworks
1892 PYTHONFRAMEWORKDIR=no-framework
1893 PYTHONFRAMEWORKPREFIX=
1894 PYTHONFRAMEWORKINSTALLDIR=
1895 FRAMEWORKINSTALLFIRST=
1896 FRAMEWORKINSTALLLAST=
1897 FRAMEWORKALTINSTALLFIRST=
1898 FRAMEWORKALTINSTALLLAST=
1899 if test "x${prefix}" = "xNONE"; then
1900 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1902 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1907 PYTHONFRAMEWORK=Python
1908 PYTHONFRAMEWORKDIR=Python.framework
1909 PYTHONFRAMEWORKPREFIX=$enableval
1910 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
1911 FRAMEWORKINSTALLFIRST="frameworkinstallstructure"
1912 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
1913 FRAMEWORKALTINSTALLFIRST="${FRAMEWORKINSTALLFIRST} bininstall maninstall"
1914 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
1915 if test "x${prefix}" = "xNONE" ; then
1916 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1918 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1920 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION
1922 # Add makefiles for Mac specific code to the list of output
1924 ac_config_files="$ac_config_files Mac/Makefile"
1926 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile"
1928 ac_config_files="$ac_config_files Mac/IDLE/Makefile"
1935 PYTHONFRAMEWORKDIR=no-framework
1936 PYTHONFRAMEWORKPREFIX=
1937 PYTHONFRAMEWORKINSTALLDIR=
1938 FRAMEWORKINSTALLFIRST=
1939 FRAMEWORKINSTALLLAST=
1940 FRAMEWORKALTINSTALLFIRST=
1941 FRAMEWORKALTINSTALLLAST=
1942 if test "x${prefix}" = "xNONE" ; then
1943 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}"
1945 FRAMEWORKUNIXTOOLSPREFIX="${prefix}"
1962 ## AC_HELP_STRING(--with-dyld,
1963 ## Use (OpenStep|Rhapsody) dynamic linker))
1965 # Set name for machine-dependent library files
1967 { echo "$as_me:$LINENO: checking MACHDEP" >&5
1968 echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6; }
1969 if test -z "$MACHDEP"
1971 ac_sys_system=`uname
-s`
1972 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \
1973 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
1974 ac_sys_release=`uname
-v`
1976 ac_sys_release=`uname
-r`
1978 ac_md_system=`echo $ac_sys_system |
1979 tr -d '/ ' |
tr '[A-Z]' '[a-z]'`
1980 ac_md_release=`echo $ac_sys_release |
1981 tr -d '/ ' |
sed 's/^[A-Z]\.//' |
sed 's/\..*//'`
1982 MACHDEP="$ac_md_system$ac_md_release"
1985 cygwin*) MACHDEP="cygwin";;
1986 darwin*) MACHDEP="darwin";;
1987 atheos*) MACHDEP="atheos";;
1988 irix646) MACHDEP="irix6";;
1989 '') MACHDEP="unknown";;
1993 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
1994 # disable features if it is defined, without any means to access these
1995 # features as extensions. For these systems, we skip the definition of
1996 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
1997 # some feature, make sure there is no alternative way to access this
1998 # feature. Also, when using wildcards, make sure you have verified the
1999 # need for not defining _XOPEN_SOURCE on all systems matching the
2000 # wildcard, and that the wildcard does not include future systems
2001 # (which may remove their limitations).
2002 case $ac_sys_system/$ac_sys_release in
2003 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
2004 # even though select is a POSIX function. Reported by J. Ribbens.
2005 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
2006 OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0])
2007 define_xopen_source=no
2008 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
2009 # also defined. This can be overridden by defining _BSD_SOURCE
2010 # As this has a different meaning on Linux, only define it on OpenBSD
2012 cat >>confdefs.h <<\_ACEOF
2013 #define _BSD_SOURCE 1
2017 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
2018 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
2020 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6A-S)
2021 define_xopen_source=no;;
2022 # On Solaris 2.6, sys/wait.h is inconsistent in the usage
2023 # of union __?sigval. Reported by Stuart Bishop.
2025 define_xopen_source=no;;
2026 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
2027 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
2028 # Reconfirmed for 7.1.4 by Martin v. Loewis.
2029 OpenUNIX/8.0.0| UnixWare/7.1.[0-4])
2030 define_xopen_source=no;;
2031 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
2032 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
2034 define_xopen_source=no;;
2035 # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that
2036 # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently,
2037 # this is fixed in 10.3, which identifies itself as Darwin/7.*
2038 # This should hopefully be fixed in FreeBSD 4.9
2039 FreeBSD/4.8* | Darwin/6* )
2040 define_xopen_source=no;;
2041 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but
2042 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined
2043 # or has another value. By not (re)defining it, the defaults come in place.
2045 define_xopen_source=no;;
2047 if test `uname
-r` -eq 1; then
2048 define_xopen_source=no
2051 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2052 # disables platform specific features beyond repair.
2053 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
2054 # has no effect, don't bother defining them
2056 define_xopen_source=no
2061 if test $define_xopen_source = yes
2063 # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be
2064 # defined precisely as g++ defines it
2065 # Furthermore, on Solaris 10, XPG6 requires the use of a C99
2067 case $ac_sys_system/$ac_sys_release in
2068 SunOS/5.8|SunOS/5.9|SunOS/5.10)
2070 cat >>confdefs.h <<\_ACEOF
2071 #define _XOPEN_SOURCE 500
2077 cat >>confdefs.h <<\_ACEOF
2078 #define _XOPEN_SOURCE 600
2084 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
2085 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
2086 # several APIs are not declared. Since this is also needed in some
2087 # cases for HP-UX, we define it globally.
2088 # except for Solaris 10, where it must not be defined,
2089 # as it implies XPG4.2
2090 case $ac_sys_system/$ac_sys_release in
2095 cat >>confdefs.h <<\_ACEOF
2096 #define _XOPEN_SOURCE_EXTENDED 1
2103 cat >>confdefs.h <<\_ACEOF
2104 #define _POSIX_C_SOURCE 200112L
2111 # SGI compilers allow the specification of the both the ABI and the
2112 # ISA on the command line. Depending on the values of these switches,
2113 # different and often incompatable code will be generated.
2115 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
2116 # thus supply support for various ABI/ISA combinations. The MACHDEP
2117 # variable is also adjusted.
2120 if test ! -z "$SGI_ABI"
2123 LDFLAGS="$SGI_ABI $LDFLAGS"
2124 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" |
sed 's/ *//g'`
2126 { echo "$as_me:$LINENO: result: $MACHDEP" >&5
2127 echo "${ECHO_T}$MACHDEP" >&6; }
2129 # And add extra plat-mac for darwin
2132 { echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5
2133 echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6; }
2134 if test -z "$EXTRAPLATDIR"
2138 EXTRAPLATDIR="\$(PLATMACDIRS)"
2139 EXTRAMACHDEPPATH="\$(PLATMACPATH)"
2147 { echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5
2148 echo "${ECHO_T}$EXTRAPLATDIR" >&6; }
2150 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
2151 # it may influence the way we can build extensions, so distutils
2155 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=
2156 EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
2158 # checks for alternative programs
2160 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
2161 # for debug/optimization stuff. BASECFLAGS is for flags that are required
2162 # just to get things to compile and link. Users are free to override OPT
2163 # when running configure or make. The build should not break if they do.
2164 # BASECFLAGS should generally not be messed with, however.
2166 # XXX shouldn't some/most/all of this code be merged with the stuff later
2167 # on that fiddles with OPT and BASECFLAGS?
2168 { echo "$as_me:$LINENO: checking for --without-gcc" >&5
2169 echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6; }
2171 # Check whether --with-gcc was given.
2172 if test "${with_gcc+set}" = set; then
2180 without_gcc=$withval;;
2184 case $ac_sys_system in
2188 case $BE_HOST_CPU in
2192 BASECFLAGS="$BASECFLAGS -export pragma"
2194 LDFLAGS="$LDFLAGS -nodup"
2202 { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5
2203 echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;}
2204 { (exit 1); exit 1; }; }
2207 AR="\$(srcdir)/Modules/ar_beos"
2217 { echo "$as_me:$LINENO: result: $without_gcc" >&5
2218 echo "${ECHO_T}$without_gcc" >&6; }
2220 # If the user switches compilers, we can't believe the cache
2221 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
2223 { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file
2224 (it is also a good idea to do 'make clean' before compiling)" >&5
2225 echo "$as_me: error: cached CC is different -- throw away $cache_file
2226 (it is also a good idea to do 'make clean' before compiling)" >&2;}
2227 { (exit 1); exit 1; }; }
2231 ac_cpp='$CPP $CPPFLAGS'
2232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2235 if test -n "$ac_tool_prefix"; then
2236 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2237 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2240 if test "${ac_cv_prog_CC+set}" = set; then
2241 echo $ECHO_N "(cached) $ECHO_C" >&6
2243 if test -n "$CC"; then
2244 ac_cv_prog_CC="$CC" # Let the user override the test.
2246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2250 test -z "$as_dir" && as_dir=.
2251 for ac_exec_ext in '' $ac_executable_extensions; do
2252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2253 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2264 if test -n "$CC"; then
2265 { echo "$as_me:$LINENO: result: $CC" >&5
2266 echo "${ECHO_T}$CC" >&6; }
2268 { echo "$as_me:$LINENO: result: no" >&5
2269 echo "${ECHO_T}no" >&6; }
2274 if test -z "$ac_cv_prog_CC"; then
2276 # Extract the first word of "gcc", so it can be a program name with args.
2277 set dummy gcc; ac_word=$2
2278 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2280 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2281 echo $ECHO_N "(cached) $ECHO_C" >&6
2283 if test -n "$ac_ct_CC"; then
2284 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2290 test -z "$as_dir" && as_dir=.
2291 for ac_exec_ext in '' $ac_executable_extensions; do
2292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2293 ac_cv_prog_ac_ct_CC="gcc"
2294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2303 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2304 if test -n "$ac_ct_CC"; then
2305 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2306 echo "${ECHO_T}$ac_ct_CC" >&6; }
2308 { echo "$as_me:$LINENO: result: no" >&5
2309 echo "${ECHO_T}no" >&6; }
2312 if test "x$ac_ct_CC" = x; then
2315 case $cross_compiling:$ac_tool_warned in
2317 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2318 whose name does not start with the host triplet. If you think this
2319 configuration is useful to you, please write to autoconf@gnu.org." >&5
2320 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2321 whose name does not start with the host triplet. If you think this
2322 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2323 ac_tool_warned=yes ;;
2331 if test -z "$CC"; then
2332 if test -n "$ac_tool_prefix"; then
2333 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2334 set dummy ${ac_tool_prefix}cc; ac_word=$2
2335 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2337 if test "${ac_cv_prog_CC+set}" = set; then
2338 echo $ECHO_N "(cached) $ECHO_C" >&6
2340 if test -n "$CC"; then
2341 ac_cv_prog_CC="$CC" # Let the user override the test.
2343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347 test -z "$as_dir" && as_dir=.
2348 for ac_exec_ext in '' $ac_executable_extensions; do
2349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2350 ac_cv_prog_CC="${ac_tool_prefix}cc"
2351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2361 if test -n "$CC"; then
2362 { echo "$as_me:$LINENO: result: $CC" >&5
2363 echo "${ECHO_T}$CC" >&6; }
2365 { echo "$as_me:$LINENO: result: no" >&5
2366 echo "${ECHO_T}no" >&6; }
2372 if test -z "$CC"; then
2373 # Extract the first word of "cc", so it can be a program name with args.
2374 set dummy cc; ac_word=$2
2375 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2377 if test "${ac_cv_prog_CC+set}" = set; then
2378 echo $ECHO_N "(cached) $ECHO_C" >&6
2380 if test -n "$CC"; then
2381 ac_cv_prog_CC="$CC" # Let the user override the test.
2384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2388 test -z "$as_dir" && as_dir=.
2389 for ac_exec_ext in '' $ac_executable_extensions; do
2390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2391 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2392 ac_prog_rejected=yes
2396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2403 if test $ac_prog_rejected = yes; then
2404 # We found a bogon in the path, so make sure we never use it.
2405 set dummy $ac_cv_prog_CC
2407 if test $# != 0; then
2408 # We chose a different compiler from the bogus one.
2409 # However, it has the same basename, so the bogon will be chosen
2410 # first if we set CC to just the basename; use the full file name.
2412 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2418 if test -n "$CC"; then
2419 { echo "$as_me:$LINENO: result: $CC" >&5
2420 echo "${ECHO_T}$CC" >&6; }
2422 { echo "$as_me:$LINENO: result: no" >&5
2423 echo "${ECHO_T}no" >&6; }
2428 if test -z "$CC"; then
2429 if test -n "$ac_tool_prefix"; then
2430 for ac_prog in cl.exe
2432 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2433 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2436 if test "${ac_cv_prog_CC+set}" = set; then
2437 echo $ECHO_N "(cached) $ECHO_C" >&6
2439 if test -n "$CC"; then
2440 ac_cv_prog_CC="$CC" # Let the user override the test.
2442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446 test -z "$as_dir" && as_dir=.
2447 for ac_exec_ext in '' $ac_executable_extensions; do
2448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2449 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2460 if test -n "$CC"; then
2461 { echo "$as_me:$LINENO: result: $CC" >&5
2462 echo "${ECHO_T}$CC" >&6; }
2464 { echo "$as_me:$LINENO: result: no" >&5
2465 echo "${ECHO_T}no" >&6; }
2469 test -n "$CC" && break
2472 if test -z "$CC"; then
2474 for ac_prog in cl.exe
2476 # Extract the first word of "$ac_prog", so it can be a program name with args.
2477 set dummy $ac_prog; ac_word=$2
2478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2480 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2481 echo $ECHO_N "(cached) $ECHO_C" >&6
2483 if test -n "$ac_ct_CC"; then
2484 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2490 test -z "$as_dir" && as_dir=.
2491 for ac_exec_ext in '' $ac_executable_extensions; do
2492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2493 ac_cv_prog_ac_ct_CC="$ac_prog"
2494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2503 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2504 if test -n "$ac_ct_CC"; then
2505 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2506 echo "${ECHO_T}$ac_ct_CC" >&6; }
2508 { echo "$as_me:$LINENO: result: no" >&5
2509 echo "${ECHO_T}no" >&6; }
2513 test -n "$ac_ct_CC" && break
2516 if test "x$ac_ct_CC" = x; then
2519 case $cross_compiling:$ac_tool_warned in
2521 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2522 whose name does not start with the host triplet. If you think this
2523 configuration is useful to you, please write to autoconf@gnu.org." >&5
2524 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2525 whose name does not start with the host triplet. If you think this
2526 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2527 ac_tool_warned=yes ;;
2536 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2537 See \`config.log
' for more details." >&5
2538 echo "$as_me: error: no acceptable C compiler found in \$PATH
2539 See \`config.log' for more details.
" >&2;}
2540 { (exit 1); exit 1; }; }
2542 # Provide some information about the compiler.
2543 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2544 ac_compiler=`set X $ac_compile; echo $2`
2545 { (ac_try="$ac_compiler --version >&5"
2547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2548 *) ac_try_echo=$ac_try;;
2550 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2551 (eval "$ac_compiler --version >&5") 2>&5
2553 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2554 (exit $ac_status); }
2555 { (ac_try="$ac_compiler -v >&5"
2557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2558 *) ac_try_echo=$ac_try;;
2560 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2561 (eval "$ac_compiler -v >&5") 2>&5
2563 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2564 (exit $ac_status); }
2565 { (ac_try="$ac_compiler -V >&5"
2567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2568 *) ac_try_echo=$ac_try;;
2570 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2571 (eval "$ac_compiler -V >&5") 2>&5
2573 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2574 (exit $ac_status); }
2576 cat >conftest.$ac_ext <<_ACEOF
2579 cat confdefs.h >>conftest.$ac_ext
2580 cat >>conftest.$ac_ext <<_ACEOF
2581 /* end confdefs.h. */
2591 ac_clean_files_save=$ac_clean_files
2592 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2593 # Try to create an executable without -o first, disregard a.out.
2594 # It will help us diagnose broken compilers, and finding out an intuition
2596 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2597 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2598 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2600 # List of possible output files, starting from the most likely.
2601 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2602 # only as a last resort. b.out is created by i960 compilers.
2603 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2605 # The IRIX 6 linker writes into existing files which may not be
2606 # executable, retaining their permissions. Remove them first so a
2607 # subsequent execution test works.
2609 for ac_file in $ac_files
2612 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2613 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2618 if { (ac_try="$ac_link_default"
2620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2621 *) ac_try_echo=$ac_try;;
2623 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2624 (eval "$ac_link_default") 2>&5
2626 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2627 (exit $ac_status); }; then
2628 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2629 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2630 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2631 # so that the user can short-circuit this test for compilers unknown to
2633 for ac_file in $ac_files ''
2635 test -f "$ac_file" || continue
2637 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2640 # We found the default executable, but exeext='' is most
2644 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2646 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2648 # We set ac_cv_exeext here because the later test for it is not
2649 # safe: cross compilers may not add the suffix if given an `-o'
2650 # argument, so we may need to know it at that point already.
2651 # Even if this section looks crufty: it has the advantage of
2658 test "$ac_cv_exeext" = no && ac_cv_exeext=
2664 { echo "$as_me:$LINENO: result
: $ac_file" >&5
2665 echo "${ECHO_T}$ac_file" >&6; }
2666 if test -z "$ac_file"; then
2667 echo "$as_me: failed program was
:" >&5
2668 sed 's/^/| /' conftest.$ac_ext >&5
2670 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2671 See \
`config.log' for more details." >&5
2672 echo "$as_me: error: C compiler cannot create executables
2673 See \`config.log
' for more details." >&2;}
2674 { (exit 77); exit 77; }; }
2677 ac_exeext=$ac_cv_exeext
2679 # Check that the compiler produces executables we can run. If not, either
2680 # the compiler is broken, or we cross compile.
2681 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2682 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2683 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2684 # If not cross compiling, check that we can run a simple program.
2685 if test "$cross_compiling" != yes; then
2686 if { ac_try='.
/$ac_file'
2687 { (case "(($ac_try" in
2688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2689 *) ac_try_echo=$ac_try;;
2691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2692 (eval "$ac_try") 2>&5
2694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695 (exit $ac_status); }; }; then
2698 if test "$cross_compiling" = maybe; then
2701 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2702 If you meant to cross compile, use \`--host'.
2703 See \
`config.log' for more details." >&5
2704 echo "$as_me: error: cannot run C compiled programs.
2705 If you meant to cross compile, use \`--host'.
2706 See \`config.log' for more details.
" >&2;}
2707 { (exit 1); exit 1; }; }
2711 { echo "$as_me:$LINENO: result
: yes" >&5
2712 echo "${ECHO_T}yes" >&6; }
2714 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2715 ac_clean_files=$ac_clean_files_save
2716 # Check that the compiler produces executables we can run. If not, either
2717 # the compiler is broken, or we cross compile.
2718 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2719 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2720 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2721 echo "${ECHO_T}$cross_compiling" >&6; }
2723 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2724 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2725 if { (ac_try="$ac_link"
2727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2728 *) ac_try_echo=$ac_try;;
2730 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2731 (eval "$ac_link") 2>&5
2733 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2734 (exit $ac_status); }; then
2735 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2736 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2737 # work properly (i.e., refer to `conftest.exe'), while it won't with
2739 for ac_file in conftest.exe conftest conftest.*; do
2740 test -f "$ac_file" || continue
2742 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2743 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2749 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2750 See \
`config.log' for more details." >&5
2751 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2752 See \`config.log
' for more details." >&2;}
2753 { (exit 1); exit 1; }; }
2756 rm -f conftest$ac_cv_exeext
2757 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2758 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2760 rm -f conftest.$ac_ext
2761 EXEEXT=$ac_cv_exeext
2763 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2764 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2765 if test "${ac_cv_objext+set}" = set; then
2766 echo $ECHO_N "(cached) $ECHO_C" >&6
2768 cat >conftest.$ac_ext <<_ACEOF
2771 cat confdefs.h >>conftest.$ac_ext
2772 cat >>conftest.$ac_ext <<_ACEOF
2773 /* end confdefs.h. */
2783 rm -f conftest.o conftest.obj
2784 if { (ac_try="$ac_compile"
2786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2787 *) ac_try_echo=$ac_try;;
2789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2790 (eval "$ac_compile") 2>&5
2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); }; then
2794 for ac_file in conftest.o conftest.obj conftest.*; do
2795 test -f "$ac_file" || continue;
2797 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2798 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2803 echo "$as_me: failed program was:" >&5
2804 sed 's
/^
/|
/' conftest.$ac_ext >&5
2806 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2807 See \`config.log' for more details.
" >&5
2808 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
2809 See \
`config.log' for more details." >&2;}
2810 { (exit 1); exit 1; }; }
2813 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2815 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2816 echo "${ECHO_T}$ac_cv_objext" >&6; }
2817 OBJEXT=$ac_cv_objext
2819 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2820 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2821 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2822 echo $ECHO_N "(cached) $ECHO_C" >&6
2824 cat >conftest.$ac_ext <<_ACEOF
2827 cat confdefs.h >>conftest.$ac_ext
2828 cat >>conftest.$ac_ext <<_ACEOF
2829 /* end confdefs.h. */
2842 rm -f conftest.$ac_objext
2843 if { (ac_try="$ac_compile"
2845 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2846 *) ac_try_echo
=$ac_try;;
2848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2849 (eval "$ac_compile") 2>conftest.er1
2851 grep -v '^ *+' conftest.er1
>conftest.err
2853 cat conftest.err
>&5
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); } && {
2856 test -z "$ac_c_werror_flag" ||
2857 test ! -s conftest.err
2858 } && test -s conftest.
$ac_objext; then
2861 echo "$as_me: failed program was:" >&5
2862 sed 's/^/| /' conftest.
$ac_ext >&5
2867 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2868 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2871 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2872 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2873 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2874 ac_test_CFLAGS
=${CFLAGS+set}
2875 ac_save_CFLAGS
=$CFLAGS
2876 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2877 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2878 if test "${ac_cv_prog_cc_g+set}" = set; then
2879 echo $ECHO_N "(cached) $ECHO_C" >&6
2881 ac_save_c_werror_flag
=$ac_c_werror_flag
2882 ac_c_werror_flag
=yes
2885 cat >conftest.
$ac_ext <<_ACEOF
2888 cat confdefs.h
>>conftest.
$ac_ext
2889 cat >>conftest.
$ac_ext <<_ACEOF
2890 /* end confdefs.h. */
2900 rm -f conftest.
$ac_objext
2901 if { (ac_try
="$ac_compile"
2903 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2904 *) ac_try_echo=$ac_try;;
2906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2907 (eval "$ac_compile") 2>conftest.er1
2909 grep -v '^ *+' conftest.er1 >conftest.err
2911 cat conftest.err >&5
2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); } && {
2914 test -z "$ac_c_werror_flag" ||
2915 test ! -s conftest.err
2916 } && test -s conftest.$ac_objext; then
2919 echo "$as_me: failed program was:" >&5
2920 sed 's/^/| /' conftest.$ac_ext >&5
2923 cat >conftest.$ac_ext <<_ACEOF
2926 cat confdefs.h >>conftest.$ac_ext
2927 cat >>conftest.$ac_ext <<_ACEOF
2928 /* end confdefs.h. */
2938 rm -f conftest.$ac_objext
2939 if { (ac_try="$ac_compile"
2941 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2942 *) ac_try_echo
=$ac_try;;
2944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2945 (eval "$ac_compile") 2>conftest.er1
2947 grep -v '^ *+' conftest.er1
>conftest.err
2949 cat conftest.err
>&5
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); } && {
2952 test -z "$ac_c_werror_flag" ||
2953 test ! -s conftest.err
2954 } && test -s conftest.
$ac_objext; then
2957 echo "$as_me: failed program was:" >&5
2958 sed 's/^/| /' conftest.
$ac_ext >&5
2960 ac_c_werror_flag
=$ac_save_c_werror_flag
2962 cat >conftest.
$ac_ext <<_ACEOF
2965 cat confdefs.h
>>conftest.
$ac_ext
2966 cat >>conftest.
$ac_ext <<_ACEOF
2967 /* end confdefs.h. */
2977 rm -f conftest.
$ac_objext
2978 if { (ac_try
="$ac_compile"
2980 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2981 *) ac_try_echo=$ac_try;;
2983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2984 (eval "$ac_compile") 2>conftest.er1
2986 grep -v '^ *+' conftest.er1 >conftest.err
2988 cat conftest.err >&5
2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 (exit $ac_status); } && {
2991 test -z "$ac_c_werror_flag" ||
2992 test ! -s conftest.err
2993 } && test -s conftest.$ac_objext; then
2996 echo "$as_me: failed program was:" >&5
2997 sed 's/^/| /' conftest.$ac_ext >&5
3002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3009 ac_c_werror_flag=$ac_save_c_werror_flag
3011 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3012 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3013 if test "$ac_test_CFLAGS" = set; then
3014 CFLAGS=$ac_save_CFLAGS
3015 elif test $ac_cv_prog_cc_g = yes; then
3016 if test "$GCC" = yes; then
3022 if test "$GCC" = yes; then
3028 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3029 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3030 if test "${ac_cv_prog_cc_c89+set}" = set; then
3031 echo $ECHO_N "(cached) $ECHO_C" >&6
3033 ac_cv_prog_cc_c89=no
3035 cat >conftest.$ac_ext <<_ACEOF
3038 cat confdefs.h >>conftest.$ac_ext
3039 cat >>conftest.$ac_ext <<_ACEOF
3040 /* end confdefs.h. */
3043 #include <sys/types.h>
3044 #include <sys/stat.h>
3045 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3046 struct buf { int x; };
3047 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3048 static char *e (p, i)
3054 static char *f (char * (*g) (char **, int), char **p, ...)
3059 s = g (p, va_arg (v,int));
3064 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3065 function prototypes and stuff, but not '\xHH' hex character constants.
3066 These don't provoke an error unfortunately, instead are silently treated
3067 as 'x'. The following induces an error, until -std is added to get
3068 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3069 array size at least. It's necessary to write '\x00'==0 to get something
3070 that's true only with -std. */
3071 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3073 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3074 inside strings and character constants. */
3076 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3078 int test (int i, double x);
3079 struct s1 {int (*f) (int a);};
3080 struct s2 {int (*f) (double a);};
3081 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3087 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3092 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3093 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3095 CC="$ac_save_CC $ac_arg"
3096 rm -f conftest.$ac_objext
3097 if { (ac_try="$ac_compile"
3099 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3100 *) ac_try_echo
=$ac_try;;
3102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3103 (eval "$ac_compile") 2>conftest.er1
3105 grep -v '^ *+' conftest.er1
>conftest.err
3107 cat conftest.err
>&5
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); } && {
3110 test -z "$ac_c_werror_flag" ||
3111 test ! -s conftest.err
3112 } && test -s conftest.
$ac_objext; then
3113 ac_cv_prog_cc_c89
=$ac_arg
3115 echo "$as_me: failed program was:" >&5
3116 sed 's/^/| /' conftest.
$ac_ext >&5
3121 rm -f core conftest.err conftest.
$ac_objext
3122 test "x$ac_cv_prog_cc_c89" != "xno" && break
3124 rm -f conftest.
$ac_ext
3129 case "x$ac_cv_prog_cc_c89" in
3131 { echo "$as_me:$LINENO: result: none needed" >&5
3132 echo "${ECHO_T}none needed" >&6; } ;;
3134 { echo "$as_me:$LINENO: result: unsupported" >&5
3135 echo "${ECHO_T}unsupported" >&6; } ;;
3137 CC
="$CC $ac_cv_prog_cc_c89"
3138 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3139 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3144 ac_cpp
='$CPP $CPPFLAGS'
3145 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3146 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3147 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3152 { echo "$as_me:$LINENO: checking for --with-cxx-main=<compiler>" >&5
3153 echo $ECHO_N "checking for --with-cxx-main=<compiler>... $ECHO_C" >&6; }
3155 # Check whether --with-cxx_main was given.
3156 if test "${with_cxx_main+set}" = set; then
3157 withval
=$with_cxx_main;
3160 no
) with_cxx_main
=no
3162 yes) with_cxx_main
=yes
3164 *) with_cxx_main
=yes
3178 { echo "$as_me:$LINENO: result: $with_cxx_main" >&5
3179 echo "${ECHO_T}$with_cxx_main" >&6; }
3185 gcc
) # Extract the first word of "g++", so it can be a program name with args.
3186 set dummy g
++; ac_word
=$2
3187 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3189 if test "${ac_cv_path_CXX+set}" = set; then
3190 echo $ECHO_N "(cached) $ECHO_C" >&6
3194 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
3197 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3198 for as_dir
in notfound
3201 test -z "$as_dir" && as_dir
=.
3202 for ac_exec_ext
in '' $ac_executable_extensions; do
3203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3204 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
3205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3212 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="g++"
3217 if test -n "$CXX"; then
3218 { echo "$as_me:$LINENO: result: $CXX" >&5
3219 echo "${ECHO_T}$CXX" >&6; }
3221 { echo "$as_me:$LINENO: result: no" >&5
3222 echo "${ECHO_T}no" >&6; }
3226 cc
) # Extract the first word of "c++", so it can be a program name with args.
3227 set dummy c
++; ac_word
=$2
3228 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3230 if test "${ac_cv_path_CXX+set}" = set; then
3231 echo $ECHO_N "(cached) $ECHO_C" >&6
3235 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
3238 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3239 for as_dir
in notfound
3242 test -z "$as_dir" && as_dir
=.
3243 for ac_exec_ext
in '' $ac_executable_extensions; do
3244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3245 ac_cv_path_CXX
="$as_dir/$ac_word$ac_exec_ext"
3246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3253 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX
="c++"
3258 if test -n "$CXX"; then
3259 { echo "$as_me:$LINENO: result: $CXX" >&5
3260 echo "${ECHO_T}$CXX" >&6; }
3262 { echo "$as_me:$LINENO: result: no" >&5
3263 echo "${ECHO_T}no" >&6; }
3268 if test "$CXX" = "notfound"
3275 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
3277 # Extract the first word of "$ac_prog", so it can be a program name with args.
3278 set dummy
$ac_prog; ac_word
=$2
3279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3281 if test "${ac_cv_prog_CXX+set}" = set; then
3282 echo $ECHO_N "(cached) $ECHO_C" >&6
3284 if test -n "$CXX"; then
3285 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
3287 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3291 test -z "$as_dir" && as_dir
=.
3292 for ac_exec_ext
in '' $ac_executable_extensions; do
3293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3294 ac_cv_prog_CXX
="$ac_prog"
3295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3305 if test -n "$CXX"; then
3306 { echo "$as_me:$LINENO: result: $CXX" >&5
3307 echo "${ECHO_T}$CXX" >&6; }
3309 { echo "$as_me:$LINENO: result: no" >&5
3310 echo "${ECHO_T}no" >&6; }
3314 test -n "$CXX" && break
3316 test -n "$CXX" || CXX
="notfound"
3318 if test "$CXX" = "notfound"
3323 if test "$preset_cxx" != "$CXX"
3325 { echo "$as_me:$LINENO: WARNING:
3327 By default, distutils will build C++ extension modules with \"$CXX\".
3328 If this is not intended, then set CXX on the configure command line.
3330 echo "$as_me: WARNING:
3332 By default, distutils will build C++ extension modules with \"$CXX\".
3333 If this is not intended, then set CXX on the configure command line.
3338 # checks for UNIX variants that set C preprocessor variables
3341 ac_cpp
='$CPP $CPPFLAGS'
3342 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3343 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3344 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3345 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3346 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3347 # On Suns, sometimes $CPP names a directory.
3348 if test -n "$CPP" && test -d "$CPP"; then
3351 if test -z "$CPP"; then
3352 if test "${ac_cv_prog_CPP+set}" = set; then
3353 echo $ECHO_N "(cached) $ECHO_C" >&6
3355 # Double quotes because CPP needs to be expanded
3356 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3359 for ac_c_preproc_warn_flag
in '' yes
3361 # Use a header file that comes with gcc, so configuring glibc
3362 # with a fresh cross-compiler works.
3363 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3364 # <limits.h> exists even on freestanding compilers.
3365 # On the NeXT, cc -E runs the code through the compiler's parser,
3366 # not just through cpp. "Syntax error" is here to catch this case.
3367 cat >conftest.
$ac_ext <<_ACEOF
3370 cat confdefs.h
>>conftest.
$ac_ext
3371 cat >>conftest.
$ac_ext <<_ACEOF
3372 /* end confdefs.h. */
3374 # include <limits.h>
3376 # include <assert.h>
3380 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3382 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3383 *) ac_try_echo=$ac_try;;
3385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3386 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3388 grep -v '^ *+' conftest.er1 >conftest.err
3390 cat conftest.err >&5
3391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392 (exit $ac_status); } >/dev/null && {
3393 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3394 test ! -s conftest.err
3398 echo "$as_me: failed program was:" >&5
3399 sed 's/^/| /' conftest.$ac_ext >&5
3401 # Broken: fails on valid input.
3405 rm -f conftest.err conftest.$ac_ext
3407 # OK, works on sane cases. Now check whether nonexistent headers
3408 # can be detected and how.
3409 cat >conftest.$ac_ext <<_ACEOF
3412 cat confdefs.h >>conftest.$ac_ext
3413 cat >>conftest.$ac_ext <<_ACEOF
3414 /* end confdefs.h. */
3415 #include <ac_nonexistent.h>
3417 if { (ac_try="$ac_cpp conftest.$ac_ext"
3419 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3420 *) ac_try_echo
=$ac_try;;
3422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3423 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3425 grep -v '^ *+' conftest.er1
>conftest.err
3427 cat conftest.err
>&5
3428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429 (exit $ac_status); } >/dev
/null
&& {
3430 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3431 test ! -s conftest.err
3433 # Broken: success on invalid input.
3436 echo "$as_me: failed program was:" >&5
3437 sed 's/^/| /' conftest.
$ac_ext >&5
3439 # Passes both tests.
3444 rm -f conftest.err conftest.
$ac_ext
3447 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3448 rm -f conftest.err conftest.
$ac_ext
3449 if $ac_preproc_ok; then
3461 { echo "$as_me:$LINENO: result: $CPP" >&5
3462 echo "${ECHO_T}$CPP" >&6; }
3464 for ac_c_preproc_warn_flag
in '' yes
3466 # Use a header file that comes with gcc, so configuring glibc
3467 # with a fresh cross-compiler works.
3468 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3469 # <limits.h> exists even on freestanding compilers.
3470 # On the NeXT, cc -E runs the code through the compiler's parser,
3471 # not just through cpp. "Syntax error" is here to catch this case.
3472 cat >conftest.
$ac_ext <<_ACEOF
3475 cat confdefs.h
>>conftest.
$ac_ext
3476 cat >>conftest.
$ac_ext <<_ACEOF
3477 /* end confdefs.h. */
3479 # include <limits.h>
3481 # include <assert.h>
3485 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3487 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3488 *) ac_try_echo=$ac_try;;
3490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3491 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3493 grep -v '^ *+' conftest.er1 >conftest.err
3495 cat conftest.err >&5
3496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497 (exit $ac_status); } >/dev/null && {
3498 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3499 test ! -s conftest.err
3503 echo "$as_me: failed program was:" >&5
3504 sed 's/^/| /' conftest.$ac_ext >&5
3506 # Broken: fails on valid input.
3510 rm -f conftest.err conftest.$ac_ext
3512 # OK, works on sane cases. Now check whether nonexistent headers
3513 # can be detected and how.
3514 cat >conftest.$ac_ext <<_ACEOF
3517 cat confdefs.h >>conftest.$ac_ext
3518 cat >>conftest.$ac_ext <<_ACEOF
3519 /* end confdefs.h. */
3520 #include <ac_nonexistent.h>
3522 if { (ac_try="$ac_cpp conftest.$ac_ext"
3524 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3525 *) ac_try_echo
=$ac_try;;
3527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3528 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3530 grep -v '^ *+' conftest.er1
>conftest.err
3532 cat conftest.err
>&5
3533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534 (exit $ac_status); } >/dev
/null
&& {
3535 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3536 test ! -s conftest.err
3538 # Broken: success on invalid input.
3541 echo "$as_me: failed program was:" >&5
3542 sed 's/^/| /' conftest.
$ac_ext >&5
3544 # Passes both tests.
3549 rm -f conftest.err conftest.
$ac_ext
3552 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3553 rm -f conftest.err conftest.
$ac_ext
3554 if $ac_preproc_ok; then
3557 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3558 See \`config.log' for more details." >&5
3559 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3560 See \`config.log' for more details." >&2;}
3561 { (exit 1); exit 1; }; }
3565 ac_cpp
='$CPP $CPPFLAGS'
3566 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3567 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3568 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3571 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3572 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3573 if test "${ac_cv_path_GREP+set}" = set; then
3574 echo $ECHO_N "(cached) $ECHO_C" >&6
3576 # Extract the first word of "grep ggrep" to use in msg output
3577 if test -z "$GREP"; then
3578 set dummy
grep ggrep
; ac_prog_name
=$2
3579 if test "${ac_cv_path_GREP+set}" = set; then
3580 echo $ECHO_N "(cached) $ECHO_C" >&6
3582 ac_path_GREP_found
=false
3583 # Loop through the user's path and test for each of PROGNAME-LIST
3584 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3585 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3588 test -z "$as_dir" && as_dir
=.
3589 for ac_prog
in grep ggrep
; do
3590 for ac_exec_ext
in '' $ac_executable_extensions; do
3591 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3592 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3593 # Check for GNU ac_path_GREP and select it if it is found.
3594 # Check for GNU $ac_path_GREP
3595 case `"$ac_path_GREP" --version 2>&1` in
3597 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3600 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3603 cat "conftest.in" "conftest.in" >"conftest.tmp"
3604 mv "conftest.tmp" "conftest.in"
3605 cp "conftest.in" "conftest.nl"
3606 echo 'GREP' >> "conftest.nl"
3607 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3608 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3609 ac_count
=`expr $ac_count + 1`
3610 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3611 # Best one so far, save it but keep looking for a better one
3612 ac_cv_path_GREP
="$ac_path_GREP"
3613 ac_path_GREP_max
=$ac_count
3615 # 10*(2^10) chars as input seems more than enough
3616 test $ac_count -gt 10 && break
3618 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3622 $ac_path_GREP_found && break 3
3632 GREP
="$ac_cv_path_GREP"
3633 if test -z "$GREP"; then
3634 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3635 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3636 { (exit 1); exit 1; }; }
3640 ac_cv_path_GREP
=$GREP
3645 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3646 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3647 GREP
="$ac_cv_path_GREP"
3650 { echo "$as_me:$LINENO: checking for egrep" >&5
3651 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3652 if test "${ac_cv_path_EGREP+set}" = set; then
3653 echo $ECHO_N "(cached) $ECHO_C" >&6
3655 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3656 then ac_cv_path_EGREP
="$GREP -E"
3658 # Extract the first word of "egrep" to use in msg output
3659 if test -z "$EGREP"; then
3660 set dummy
egrep; ac_prog_name
=$2
3661 if test "${ac_cv_path_EGREP+set}" = set; then
3662 echo $ECHO_N "(cached) $ECHO_C" >&6
3664 ac_path_EGREP_found
=false
3665 # Loop through the user's path and test for each of PROGNAME-LIST
3666 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3667 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3670 test -z "$as_dir" && as_dir
=.
3671 for ac_prog
in egrep; do
3672 for ac_exec_ext
in '' $ac_executable_extensions; do
3673 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3674 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3675 # Check for GNU ac_path_EGREP and select it if it is found.
3676 # Check for GNU $ac_path_EGREP
3677 case `"$ac_path_EGREP" --version 2>&1` in
3679 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3682 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3685 cat "conftest.in" "conftest.in" >"conftest.tmp"
3686 mv "conftest.tmp" "conftest.in"
3687 cp "conftest.in" "conftest.nl"
3688 echo 'EGREP' >> "conftest.nl"
3689 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3690 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3691 ac_count
=`expr $ac_count + 1`
3692 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3693 # Best one so far, save it but keep looking for a better one
3694 ac_cv_path_EGREP
="$ac_path_EGREP"
3695 ac_path_EGREP_max
=$ac_count
3697 # 10*(2^10) chars as input seems more than enough
3698 test $ac_count -gt 10 && break
3700 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3704 $ac_path_EGREP_found && break 3
3714 EGREP
="$ac_cv_path_EGREP"
3715 if test -z "$EGREP"; then
3716 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3717 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3718 { (exit 1); exit 1; }; }
3722 ac_cv_path_EGREP
=$EGREP
3728 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3729 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3730 EGREP
="$ac_cv_path_EGREP"
3734 { echo "$as_me:$LINENO: checking for AIX" >&5
3735 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3736 cat >conftest.
$ac_ext <<_ACEOF
3739 cat confdefs.h
>>conftest.
$ac_ext
3740 cat >>conftest.
$ac_ext <<_ACEOF
3741 /* end confdefs.h. */
3747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3748 $EGREP "yes" >/dev
/null
2>&1; then
3749 { echo "$as_me:$LINENO: result: yes" >&5
3750 echo "${ECHO_T}yes" >&6; }
3751 cat >>confdefs.h
<<\_ACEOF
3752 #define _ALL_SOURCE 1
3756 { echo "$as_me:$LINENO: result: no" >&5
3757 echo "${ECHO_T}no" >&6; }
3763 # Check for unsupported systems
3764 case $ac_sys_system/$ac_sys_release in
3766 echo This system \
($ac_sys_system/$ac_sys_release\
) is no longer supported.
3767 echo See README
for details.
3772 { echo "$as_me:$LINENO: checking for --with-suffix" >&5
3773 echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6; }
3775 # Check whether --with-suffix was given.
3776 if test "${with_suffix+set}" = set; then
3777 withval
=$with_suffix;
3781 *) EXEEXT
=$withval;;
3785 { echo "$as_me:$LINENO: result: $EXEEXT" >&5
3786 echo "${ECHO_T}$EXEEXT" >&6; }
3788 # Test whether we're running on a non-case-sensitive system, in which
3789 # case we give a warning if no ext is given
3791 { echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5
3792 echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6; }
3793 if test ! -d CaseSensitiveTestDir
; then
3794 mkdir CaseSensitiveTestDir
3797 if test -d casesensitivetestdir
3799 { echo "$as_me:$LINENO: result: yes" >&5
3800 echo "${ECHO_T}yes" >&6; }
3803 { echo "$as_me:$LINENO: result: no" >&5
3804 echo "${ECHO_T}no" >&6; }
3807 rmdir CaseSensitiveTestDir
3812 gcc
) CC
="$CC -D_HAVE_BSDI";;
3816 case $ac_sys_system in
3819 cc|
*/cc
) CC
="$CC -Ae";;
3823 cc
) CC
="$CC -Wl,-Bexport";;
3826 # Some functions have a prototype only with that define, e.g. confstr
3828 cat >>confdefs.h
<<\_ACEOF
3829 #define __EXTENSIONS__ 1
3837 { echo "$as_me:$LINENO: checking LIBRARY" >&5
3838 echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6; }
3839 if test -z "$LIBRARY"
3841 LIBRARY
='libpython$(VERSION).a'
3843 { echo "$as_me:$LINENO: result: $LIBRARY" >&5
3844 echo "${ECHO_T}$LIBRARY" >&6; }
3846 # LDLIBRARY is the name of the library to link against (as opposed to the
3847 # name of the library into which to insert object files). BLDLIBRARY is also
3848 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
3849 # is blank as the main program is not linked directly against LDLIBRARY.
3850 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
3851 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
3852 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
3853 # DLLLIBRARY is the shared (i.e., DLL) library.
3855 # RUNSHARED is used to run shared python without installed libraries
3857 # INSTSONAME is the name of the shared library that will be use to install
3858 # on the system - some systems like version suffix, others don't
3865 LDLIBRARY
="$LIBRARY"
3866 BLDLIBRARY
='$(LDLIBRARY)'
3867 INSTSONAME
='$(LDLIBRARY)'
3872 # LINKCC is the command that links the python executable -- default is $(CC).
3873 # If CXX is set, and if it is needed to link a main function that was
3874 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
3875 # python might then depend on the C++ runtime
3876 # This is altered for AIX in order to build the export list before
3879 { echo "$as_me:$LINENO: checking LINKCC" >&5
3880 echo $ECHO_N "checking LINKCC... $ECHO_C" >&6; }
3881 if test -z "$LINKCC"
3883 LINKCC
='$(PURIFY) $(MAINCC)'
3884 case $ac_sys_system in
3887 if test $ac_sys_release -ge 5 -o \
3888 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
3891 LINKCC
="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";;
3893 LINKCC
="$LINKCC -L/usr/lib/ia64l64";;
3896 { echo "$as_me:$LINENO: result: $LINKCC" >&5
3897 echo "${ECHO_T}$LINKCC" >&6; }
3899 { echo "$as_me:$LINENO: checking for --enable-shared" >&5
3900 echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6; }
3901 # Check whether --enable-shared was given.
3902 if test "${enable_shared+set}" = set; then
3903 enableval
=$enable_shared;
3907 if test -z "$enable_shared"
3909 case $ac_sys_system in
3911 enable_shared
="yes";;
3913 enable_shared
="no";;
3916 { echo "$as_me:$LINENO: result: $enable_shared" >&5
3917 echo "${ECHO_T}$enable_shared" >&6; }
3919 { echo "$as_me:$LINENO: checking for --enable-profiling" >&5
3920 echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6; }
3921 # Check whether --enable-profiling was given.
3922 if test "${enable_profiling+set}" = set; then
3923 enableval
=$enable_profiling; ac_save_cc
="$CC"
3925 if test "$cross_compiling" = yes; then
3926 ac_enable_profiling
="no"
3928 cat >conftest.
$ac_ext <<_ACEOF
3931 cat confdefs.h
>>conftest.
$ac_ext
3932 cat >>conftest.
$ac_ext <<_ACEOF
3933 /* end confdefs.h. */
3934 int main() { return 0; }
3936 rm -f conftest
$ac_exeext
3937 if { (ac_try
="$ac_link"
3939 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3940 *) ac_try_echo=$ac_try;;
3942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3943 (eval "$ac_link") 2>&5
3945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3947 { (case "(($ac_try" in
3948 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3949 *) ac_try_echo
=$ac_try;;
3951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3952 (eval "$ac_try") 2>&5
3954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955 (exit $ac_status); }; }; then
3956 ac_enable_profiling
="yes"
3958 echo "$as_me: program exited with status $ac_status" >&5
3959 echo "$as_me: failed program was:" >&5
3960 sed 's/^/| /' conftest.
$ac_ext >&5
3963 ac_enable_profiling
="no"
3965 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3972 { echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5
3973 echo "${ECHO_T}$ac_enable_profiling" >&6; }
3975 case "$ac_enable_profiling" in
3977 BASECFLAGS
="-pg $BASECFLAGS"
3978 LDFLAGS
="-pg $LDFLAGS"
3982 { echo "$as_me:$LINENO: checking LDLIBRARY" >&5
3983 echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6; }
3985 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
3986 # library that we build, but we do not want to link against it (we
3987 # will find it with a -framework option). For this reason there is an
3988 # extra variable BLDLIBRARY against which Python and the extension
3989 # modules are linked, BLDLIBRARY. This is normally the same as
3990 # LDLIBRARY, but empty for MacOSX framework builds.
3991 if test "$enable_framework"
3993 LDLIBRARY
='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
3994 RUNSHARED
=DYLD_FRAMEWORK_PATH
="`pwd`:$DYLD_FRAMEWORK_PATH"
3997 BLDLIBRARY
='$(LDLIBRARY)'
4000 # Other platforms follow
4001 if test $enable_shared = "yes"; then
4003 cat >>confdefs.h
<<\_ACEOF
4004 #define Py_ENABLE_SHARED 1
4007 case $ac_sys_system in
4009 LDLIBRARY
='libpython$(VERSION).so'
4012 LDLIBRARY
='libpython$(VERSION).dll.a'
4013 DLLLIBRARY
='libpython$(VERSION).dll'
4016 LDLIBRARY
='libpython$(VERSION).so'
4017 BLDLIBRARY
='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
4018 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4019 INSTSONAME
="$LDLIBRARY".
$SOVERSION
4021 Linux
*|GNU
*|NetBSD
*|FreeBSD
*|DragonFly
*)
4022 LDLIBRARY
='libpython$(VERSION).so'
4023 BLDLIBRARY
='-L. -lpython$(VERSION)'
4024 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4025 case $ac_sys_system in
4027 SOVERSION
=`echo $SOVERSION|cut -d "." -f 1`
4030 INSTSONAME
="$LDLIBRARY".
$SOVERSION
4035 LDLIBRARY
='libpython$(VERSION).so'
4038 LDLIBRARY
='libpython$(VERSION).sl'
4041 BLDLIBRARY
='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
4042 RUNSHARED
=SHLIB_PATH
=`pwd`:${SHLIB_PATH}
4045 LDLIBRARY
='libpython$(VERSION).so'
4046 BLDLIBRARY
='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
4047 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`:${LD_LIBRARY_PATH}
4050 LDLIBRARY
='libpython$(VERSION).so'
4051 BLDLIBRARY
='-L. -lpython$(VERSION)'
4052 RUNSHARED
=DLL_PATH
=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
4055 else # shared is disabled
4056 case $ac_sys_system in
4058 BLDLIBRARY
='$(LIBRARY)'
4059 LDLIBRARY
='libpython$(VERSION).dll.a'
4064 { echo "$as_me:$LINENO: result: $LDLIBRARY" >&5
4065 echo "${ECHO_T}$LDLIBRARY" >&6; }
4067 if test -n "$ac_tool_prefix"; then
4068 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4069 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4070 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4072 if test "${ac_cv_prog_RANLIB+set}" = set; then
4073 echo $ECHO_N "(cached) $ECHO_C" >&6
4075 if test -n "$RANLIB"; then
4076 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4078 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4082 test -z "$as_dir" && as_dir
=.
4083 for ac_exec_ext
in '' $ac_executable_extensions; do
4084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4085 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4095 RANLIB
=$ac_cv_prog_RANLIB
4096 if test -n "$RANLIB"; then
4097 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4098 echo "${ECHO_T}$RANLIB" >&6; }
4100 { echo "$as_me:$LINENO: result: no" >&5
4101 echo "${ECHO_T}no" >&6; }
4106 if test -z "$ac_cv_prog_RANLIB"; then
4107 ac_ct_RANLIB
=$RANLIB
4108 # Extract the first word of "ranlib", so it can be a program name with args.
4109 set dummy ranlib
; ac_word
=$2
4110 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4112 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4113 echo $ECHO_N "(cached) $ECHO_C" >&6
4115 if test -n "$ac_ct_RANLIB"; then
4116 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4118 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4122 test -z "$as_dir" && as_dir
=.
4123 for ac_exec_ext
in '' $ac_executable_extensions; do
4124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4125 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4135 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4136 if test -n "$ac_ct_RANLIB"; then
4137 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4138 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4140 { echo "$as_me:$LINENO: result: no" >&5
4141 echo "${ECHO_T}no" >&6; }
4144 if test "x$ac_ct_RANLIB" = x
; then
4147 case $cross_compiling:$ac_tool_warned in
4149 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4150 whose name does not start with the host triplet. If you think this
4151 configuration is useful to you, please write to autoconf@gnu.org." >&5
4152 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4153 whose name does not start with the host triplet. If you think this
4154 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4155 ac_tool_warned
=yes ;;
4157 RANLIB
=$ac_ct_RANLIB
4160 RANLIB
="$ac_cv_prog_RANLIB"
4164 for ac_prog
in ar aal
4166 # Extract the first word of "$ac_prog", so it can be a program name with args.
4167 set dummy
$ac_prog; ac_word
=$2
4168 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4170 if test "${ac_cv_prog_AR+set}" = set; then
4171 echo $ECHO_N "(cached) $ECHO_C" >&6
4173 if test -n "$AR"; then
4174 ac_cv_prog_AR
="$AR" # Let the user override the test.
4176 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4180 test -z "$as_dir" && as_dir
=.
4181 for ac_exec_ext
in '' $ac_executable_extensions; do
4182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4183 ac_cv_prog_AR
="$ac_prog"
4184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4194 if test -n "$AR"; then
4195 { echo "$as_me:$LINENO: result: $AR" >&5
4196 echo "${ECHO_T}$AR" >&6; }
4198 { echo "$as_me:$LINENO: result: no" >&5
4199 echo "${ECHO_T}no" >&6; }
4203 test -n "$AR" && break
4205 test -n "$AR" || AR
="ar"
4209 # Extract the first word of "svnversion", so it can be a program name with args.
4210 set dummy svnversion
; ac_word
=$2
4211 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4213 if test "${ac_cv_prog_SVNVERSION+set}" = set; then
4214 echo $ECHO_N "(cached) $ECHO_C" >&6
4216 if test -n "$SVNVERSION"; then
4217 ac_cv_prog_SVNVERSION
="$SVNVERSION" # Let the user override the test.
4219 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4223 test -z "$as_dir" && as_dir
=.
4224 for ac_exec_ext
in '' $ac_executable_extensions; do
4225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4226 ac_cv_prog_SVNVERSION
="found"
4227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4234 test -z "$ac_cv_prog_SVNVERSION" && ac_cv_prog_SVNVERSION
="not-found"
4237 SVNVERSION
=$ac_cv_prog_SVNVERSION
4238 if test -n "$SVNVERSION"; then
4239 { echo "$as_me:$LINENO: result: $SVNVERSION" >&5
4240 echo "${ECHO_T}$SVNVERSION" >&6; }
4242 { echo "$as_me:$LINENO: result: no" >&5
4243 echo "${ECHO_T}no" >&6; }
4247 if test $SVNVERSION = found
4249 SVNVERSION
="svnversion \$(srcdir)"
4251 SVNVERSION
="echo exported"
4256 # install -d does not work on BSDI or HP-UX
4257 if test -z "$INSTALL"
4259 INSTALL
="${srcdir}/install-sh -c"
4263 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4264 if test -f "$ac_dir/install-sh"; then
4266 ac_install_sh
="$ac_aux_dir/install-sh -c"
4268 elif test -f "$ac_dir/install.sh"; then
4270 ac_install_sh
="$ac_aux_dir/install.sh -c"
4272 elif test -f "$ac_dir/shtool"; then
4274 ac_install_sh
="$ac_aux_dir/shtool install -c"
4278 if test -z "$ac_aux_dir"; then
4279 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4280 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4281 { (exit 1); exit 1; }; }
4284 # These three variables are undocumented and unsupported,
4285 # and are intended to be withdrawn in a future Autoconf release.
4286 # They can cause serious problems if a builder's source tree is in a directory
4287 # whose full name contains unusual characters.
4288 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4289 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4290 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4293 # Find a good install program. We prefer a C program (faster),
4294 # so one script is as good as another. But avoid the broken or
4295 # incompatible versions:
4296 # SysV /etc/install, /usr/sbin/install
4297 # SunOS /usr/etc/install
4298 # IRIX /sbin/install
4300 # AmigaOS /C/install, which installs bootblocks on floppy discs
4301 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4302 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4303 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4304 # OS/2's system install, which has a completely different semantic
4305 # ./install, which can be erroneously created by make from ./install.sh.
4306 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4307 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4308 if test -z "$INSTALL"; then
4309 if test "${ac_cv_path_install+set}" = set; then
4310 echo $ECHO_N "(cached) $ECHO_C" >&6
4312 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4316 test -z "$as_dir" && as_dir
=.
4317 # Account for people who put trailing slashes in PATH elements.
4319 .
/ | .
// |
/cC
/* | \
4320 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4321 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4324 # OSF1 and SCO ODT 3.0 have their own names for install.
4325 # Don't use installbsd from OSF since it installs stuff as root
4327 for ac_prog
in ginstall scoinst
install; do
4328 for ac_exec_ext
in '' $ac_executable_extensions; do
4329 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4330 if test $ac_prog = install &&
4331 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4332 # AIX install. It has an incompatible calling convention.
4334 elif test $ac_prog = install &&
4335 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4336 # program-specific install script used by HP pwplus--don't use.
4339 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4352 if test "${ac_cv_path_install+set}" = set; then
4353 INSTALL
=$ac_cv_path_install
4355 # As a last resort, use the slow shell script. Don't cache a
4356 # value for INSTALL within a source directory, because that will
4357 # break other packages using the cache if that directory is
4358 # removed, or if the value is a relative name.
4359 INSTALL
=$ac_install_sh
4362 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4363 echo "${ECHO_T}$INSTALL" >&6; }
4365 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4366 # It thinks the first close brace ends the variable substitution.
4367 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4369 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4371 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4374 # Not every filesystem supports hard links
4376 if test -z "$LN" ; then
4377 case $ac_sys_system in
4379 CYGWIN
*) LN
="ln -s";;
4380 atheos
*) LN
="ln -s";;
4385 # Check for --with-pydebug
4386 { echo "$as_me:$LINENO: checking for --with-pydebug" >&5
4387 echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6; }
4389 # Check whether --with-pydebug was given.
4390 if test "${with_pydebug+set}" = set; then
4391 withval
=$with_pydebug;
4392 if test "$withval" != no
4395 cat >>confdefs.h
<<\_ACEOF
4399 { echo "$as_me:$LINENO: result: yes" >&5
4400 echo "${ECHO_T}yes" >&6; };
4402 else { echo "$as_me:$LINENO: result: no" >&5
4403 echo "${ECHO_T}no" >&6; }; Py_DEBUG
='false'
4406 { echo "$as_me:$LINENO: result: no" >&5
4407 echo "${ECHO_T}no" >&6; }
4411 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
4412 # merged with this chunk of code?
4414 # Optimizer/debugger flags
4415 # ------------------------
4416 # (The following bit of code is complicated enough - please keep things
4417 # indented properly. Just pretend you're editing Python code. ;-)
4419 # There are two parallel sets of case statements below, one that checks to
4420 # see if OPT was set and one that does BASECFLAGS setting based upon
4421 # compiler and platform. BASECFLAGS tweaks need to be made even if the
4424 # tweak OPT based on compiler and platform, only if the user didn't set
4425 # it on the command line
4431 if test "$CC" != 'g++' ; then
4432 STRICT_PROTO
="-Wstrict-prototypes"
4434 # For gcc 4.x we need to use -fwrapv so lets check if its supported
4435 if "$CC" -v --help 2>/dev
/null |
grep -- -fwrapv > /dev
/null
; then
4438 case $ac_cv_prog_cc_g in
4440 if test "$Py_DEBUG" = 'true' ; then
4441 # Optimization messes up debuggers, so turn it off for
4443 OPT
="-g -Wall $STRICT_PROTO"
4445 OPT
="-g $WRAP -O3 -Wall $STRICT_PROTO"
4449 OPT
="-O3 -Wall $STRICT_PROTO"
4452 case $ac_sys_system in
4453 SCO_SV
*) OPT
="$OPT -m486 -DSCO5"
4463 # The current (beta) Monterey compiler dies with optimizations
4464 # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this?
4465 case $ac_sys_system in
4474 # tweak BASECFLAGS based on compiler and platform
4477 # Python violates C99 rules, by casting between incompatible
4478 # pointer types. GCC may generate bad code as a result of that,
4479 # so use -fno-strict-aliasing if supported.
4480 { echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5
4481 echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6; }
4483 CC
="$CC -fno-strict-aliasing"
4484 if test "$cross_compiling" = yes; then
4485 ac_cv_no_strict_aliasing_ok
=no
4487 cat >conftest.
$ac_ext <<_ACEOF
4490 cat confdefs.h
>>conftest.
$ac_ext
4491 cat >>conftest.
$ac_ext <<_ACEOF
4492 /* end confdefs.h. */
4493 int main() { return 0; }
4495 rm -f conftest
$ac_exeext
4496 if { (ac_try
="$ac_link"
4498 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4499 *) ac_try_echo=$ac_try;;
4501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4502 (eval "$ac_link") 2>&5
4504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4506 { (case "(($ac_try" in
4507 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4508 *) ac_try_echo
=$ac_try;;
4510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4511 (eval "$ac_try") 2>&5
4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); }; }; then
4515 ac_cv_no_strict_aliasing_ok
=yes
4517 echo "$as_me: program exited with status $ac_status" >&5
4518 echo "$as_me: failed program was:" >&5
4519 sed 's/^/| /' conftest.
$ac_ext >&5
4522 ac_cv_no_strict_aliasing_ok
=no
4524 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4529 { echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5
4530 echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6; }
4531 if test $ac_cv_no_strict_aliasing_ok = yes
4533 BASECFLAGS
="$BASECFLAGS -fno-strict-aliasing"
4535 case $ac_sys_system in
4537 BASECFLAGS
="$BASECFLAGS -m486 -DSCO5"
4539 # is there any other compiler on Darwin besides gcc?
4541 BASECFLAGS
="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd"
4542 if test "${enable_universalsdk}"; then
4543 BASECFLAGS
="-arch ppc -arch i386 -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
4548 BASECFLAGS
="$BASECFLAGS -mieee"
4554 case $ac_sys_system in
4555 OpenUNIX
*|UnixWare
*)
4556 BASECFLAGS
="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
4559 BASECFLAGS
="$BASECFLAGS -ieee -std"
4562 BASECFLAGS
="$BASECFLAGS -belf -Ki486 -DSCO5"
4568 if test "$Py_DEBUG" = 'true'; then
4574 if test "$ac_arch_flags"
4576 BASECFLAGS
="$BASECFLAGS $ac_arch_flags"
4579 # disable check for icc since it seems to pass, but generates a warning
4582 ac_cv_opt_olimit_ok
=no
4585 { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
4586 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; }
4587 if test "${ac_cv_opt_olimit_ok+set}" = set; then
4588 echo $ECHO_N "(cached) $ECHO_C" >&6
4591 CC
="$CC -OPT:Olimit=0"
4592 if test "$cross_compiling" = yes; then
4593 ac_cv_opt_olimit_ok
=no
4595 cat >conftest.
$ac_ext <<_ACEOF
4598 cat confdefs.h
>>conftest.
$ac_ext
4599 cat >>conftest.
$ac_ext <<_ACEOF
4600 /* end confdefs.h. */
4601 int main() { return 0; }
4603 rm -f conftest
$ac_exeext
4604 if { (ac_try
="$ac_link"
4606 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4607 *) ac_try_echo=$ac_try;;
4609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4610 (eval "$ac_link") 2>&5
4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4614 { (case "(($ac_try" in
4615 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4616 *) ac_try_echo
=$ac_try;;
4618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4619 (eval "$ac_try") 2>&5
4621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622 (exit $ac_status); }; }; then
4623 ac_cv_opt_olimit_ok
=yes
4625 echo "$as_me: program exited with status $ac_status" >&5
4626 echo "$as_me: failed program was:" >&5
4627 sed 's/^/| /' conftest.
$ac_ext >&5
4630 ac_cv_opt_olimit_ok
=no
4632 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4639 { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
4640 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; }
4641 if test $ac_cv_opt_olimit_ok = yes; then
4642 case $ac_sys_system in
4643 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
4644 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
4649 BASECFLAGS
="$BASECFLAGS -OPT:Olimit=0"
4653 { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
4654 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; }
4655 if test "${ac_cv_olimit_ok+set}" = set; then
4656 echo $ECHO_N "(cached) $ECHO_C" >&6
4659 CC
="$CC -Olimit 1500"
4660 if test "$cross_compiling" = yes; then
4663 cat >conftest.
$ac_ext <<_ACEOF
4666 cat confdefs.h
>>conftest.
$ac_ext
4667 cat >>conftest.
$ac_ext <<_ACEOF
4668 /* end confdefs.h. */
4669 int main() { return 0; }
4671 rm -f conftest
$ac_exeext
4672 if { (ac_try
="$ac_link"
4674 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4675 *) ac_try_echo=$ac_try;;
4677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4678 (eval "$ac_link") 2>&5
4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4682 { (case "(($ac_try" in
4683 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4684 *) ac_try_echo
=$ac_try;;
4686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4687 (eval "$ac_try") 2>&5
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); }; }; then
4693 echo "$as_me: program exited with status $ac_status" >&5
4694 echo "$as_me: failed program was:" >&5
4695 sed 's/^/| /' conftest.
$ac_ext >&5
4700 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4707 { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4708 echo "${ECHO_T}$ac_cv_olimit_ok" >&6; }
4709 if test $ac_cv_olimit_ok = yes; then
4710 BASECFLAGS
="$BASECFLAGS -Olimit 1500"
4714 # On some compilers, pthreads are available without further options
4715 # (e.g. MacOS X). On some of these systems, the compiler will not
4716 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4717 # So we have to see first whether pthreads are available without
4718 # options before we can check whether -Kpthread improves anything.
4719 { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4720 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; }
4721 if test "${ac_cv_pthread_is_default+set}" = set; then
4722 echo $ECHO_N "(cached) $ECHO_C" >&6
4724 if test "$cross_compiling" = yes; then
4725 ac_cv_pthread_is_default
=no
4727 cat >conftest.
$ac_ext <<_ACEOF
4730 cat confdefs.h
>>conftest.
$ac_ext
4731 cat >>conftest.
$ac_ext <<_ACEOF
4732 /* end confdefs.h. */
4734 #include <pthread.h>
4736 void* routine(void* p){return NULL;}
4740 if(pthread_create(&p,NULL,routine,NULL)!=0)
4742 (void)pthread_detach(p);
4747 rm -f conftest
$ac_exeext
4748 if { (ac_try
="$ac_link"
4750 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4751 *) ac_try_echo=$ac_try;;
4753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4754 (eval "$ac_link") 2>&5
4756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4758 { (case "(($ac_try" in
4759 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4760 *) ac_try_echo
=$ac_try;;
4762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4763 (eval "$ac_try") 2>&5
4765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766 (exit $ac_status); }; }; then
4768 ac_cv_pthread_is_default
=yes
4773 echo "$as_me: program exited with status $ac_status" >&5
4774 echo "$as_me: failed program was:" >&5
4775 sed 's/^/| /' conftest.
$ac_ext >&5
4778 ac_cv_pthread_is_default
=no
4780 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4787 { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
4788 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; }
4791 if test $ac_cv_pthread_is_default = yes
4795 # -Kpthread, if available, provides the right #defines
4796 # and linker options to make pthread_create available
4797 # Some compilers won't report that they do not support -Kpthread,
4798 # so we need to run a program to see whether it really made the
4799 # function available.
4800 { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
4801 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; }
4802 if test "${ac_cv_kpthread+set}" = set; then
4803 echo $ECHO_N "(cached) $ECHO_C" >&6
4807 if test "$cross_compiling" = yes; then
4810 cat >conftest.
$ac_ext <<_ACEOF
4813 cat confdefs.h
>>conftest.
$ac_ext
4814 cat >>conftest.
$ac_ext <<_ACEOF
4815 /* end confdefs.h. */
4817 #include <pthread.h>
4819 void* routine(void* p){return NULL;}
4823 if(pthread_create(&p,NULL,routine,NULL)!=0)
4825 (void)pthread_detach(p);
4830 rm -f conftest
$ac_exeext
4831 if { (ac_try
="$ac_link"
4833 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4834 *) ac_try_echo=$ac_try;;
4836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4837 (eval "$ac_link") 2>&5
4839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4841 { (case "(($ac_try" in
4842 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4843 *) ac_try_echo
=$ac_try;;
4845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4846 (eval "$ac_try") 2>&5
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); }; }; then
4852 echo "$as_me: program exited with status $ac_status" >&5
4853 echo "$as_me: failed program was:" >&5
4854 sed 's/^/| /' conftest.
$ac_ext >&5
4859 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4866 { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
4867 echo "${ECHO_T}$ac_cv_kpthread" >&6; }
4870 if test $ac_cv_kpthread = no
-a $ac_cv_pthread_is_default = no
4872 # -Kthread, if available, provides the right #defines
4873 # and linker options to make pthread_create available
4874 # Some compilers won't report that they do not support -Kthread,
4875 # so we need to run a program to see whether it really made the
4876 # function available.
4877 { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
4878 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; }
4879 if test "${ac_cv_kthread+set}" = set; then
4880 echo $ECHO_N "(cached) $ECHO_C" >&6
4884 if test "$cross_compiling" = yes; then
4887 cat >conftest.
$ac_ext <<_ACEOF
4890 cat confdefs.h
>>conftest.
$ac_ext
4891 cat >>conftest.
$ac_ext <<_ACEOF
4892 /* end confdefs.h. */
4894 #include <pthread.h>
4896 void* routine(void* p){return NULL;}
4900 if(pthread_create(&p,NULL,routine,NULL)!=0)
4902 (void)pthread_detach(p);
4907 rm -f conftest
$ac_exeext
4908 if { (ac_try
="$ac_link"
4910 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4911 *) ac_try_echo=$ac_try;;
4913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4914 (eval "$ac_link") 2>&5
4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4918 { (case "(($ac_try" in
4919 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4920 *) ac_try_echo
=$ac_try;;
4922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4923 (eval "$ac_try") 2>&5
4925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926 (exit $ac_status); }; }; then
4929 echo "$as_me: program exited with status $ac_status" >&5
4930 echo "$as_me: failed program was:" >&5
4931 sed 's/^/| /' conftest.
$ac_ext >&5
4936 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4943 { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
4944 echo "${ECHO_T}$ac_cv_kthread" >&6; }
4947 if test $ac_cv_kthread = no
-a $ac_cv_pthread_is_default = no
4949 # -pthread, if available, provides the right #defines
4950 # and linker options to make pthread_create available
4951 # Some compilers won't report that they do not support -pthread,
4952 # so we need to run a program to see whether it really made the
4953 # function available.
4954 { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
4955 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; }
4956 if test "${ac_cv_thread+set}" = set; then
4957 echo $ECHO_N "(cached) $ECHO_C" >&6
4961 if test "$cross_compiling" = yes; then
4964 cat >conftest.
$ac_ext <<_ACEOF
4967 cat confdefs.h
>>conftest.
$ac_ext
4968 cat >>conftest.
$ac_ext <<_ACEOF
4969 /* end confdefs.h. */
4971 #include <pthread.h>
4973 void* routine(void* p){return NULL;}
4977 if(pthread_create(&p,NULL,routine,NULL)!=0)
4979 (void)pthread_detach(p);
4984 rm -f conftest
$ac_exeext
4985 if { (ac_try
="$ac_link"
4987 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4988 *) ac_try_echo=$ac_try;;
4990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4991 (eval "$ac_link") 2>&5
4993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4995 { (case "(($ac_try" in
4996 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4997 *) ac_try_echo
=$ac_try;;
4999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5000 (eval "$ac_try") 2>&5
5002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003 (exit $ac_status); }; }; then
5006 echo "$as_me: program exited with status $ac_status" >&5
5007 echo "$as_me: failed program was:" >&5
5008 sed 's/^/| /' conftest.
$ac_ext >&5
5013 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5020 { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
5021 echo "${ECHO_T}$ac_cv_pthread" >&6; }
5024 # If we have set a CC compiler flag for thread support then
5025 # check if it works for CXX, too.
5029 { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
5030 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; }
5033 if test "$ac_cv_kpthread" = "yes"
5035 CXX
="$CXX -Kpthread"
5036 ac_cv_cxx_thread
=yes
5037 elif test "$ac_cv_kthread" = "yes"
5040 ac_cv_cxx_thread
=yes
5041 elif test "$ac_cv_pthread" = "yes"
5044 ac_cv_cxx_thread
=yes
5047 if test $ac_cv_cxx_thread = yes
5049 echo 'void foo();int main(){foo();}void foo(){}' > conftest.
$ac_ext
5050 $CXX -c conftest.
$ac_ext 2>&5
5051 if $CXX -o conftest
$ac_exeext conftest.
$ac_objext 2>&5 \
5052 && test -s conftest
$ac_exeext && .
/conftest
$ac_exeext
5054 ac_cv_cxx_thread
=yes
5060 { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
5061 echo "${ECHO_T}$ac_cv_cxx_thread" >&6; }
5066 # checks for header files
5067 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5068 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5069 if test "${ac_cv_header_stdc+set}" = set; then
5070 echo $ECHO_N "(cached) $ECHO_C" >&6
5072 cat >conftest.
$ac_ext <<_ACEOF
5075 cat confdefs.h
>>conftest.
$ac_ext
5076 cat >>conftest.
$ac_ext <<_ACEOF
5077 /* end confdefs.h. */
5091 rm -f conftest.
$ac_objext
5092 if { (ac_try
="$ac_compile"
5094 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5095 *) ac_try_echo=$ac_try;;
5097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5098 (eval "$ac_compile") 2>conftest.er1
5100 grep -v '^ *+' conftest.er1 >conftest.err
5102 cat conftest.err >&5
5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); } && {
5105 test -z "$ac_c_werror_flag" ||
5106 test ! -s conftest.err
5107 } && test -s conftest.$ac_objext; then
5108 ac_cv_header_stdc=yes
5110 echo "$as_me: failed program was:" >&5
5111 sed 's/^/| /' conftest.$ac_ext >&5
5113 ac_cv_header_stdc=no
5116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5118 if test $ac_cv_header_stdc = yes; then
5119 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5120 cat >conftest.$ac_ext <<_ACEOF
5123 cat confdefs.h >>conftest.$ac_ext
5124 cat >>conftest.$ac_ext <<_ACEOF
5125 /* end confdefs.h. */
5129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5130 $EGREP "memchr" >/dev/null 2>&1; then
5133 ac_cv_header_stdc=no
5139 if test $ac_cv_header_stdc = yes; then
5140 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5141 cat >conftest.$ac_ext <<_ACEOF
5144 cat confdefs.h >>conftest.$ac_ext
5145 cat >>conftest.$ac_ext <<_ACEOF
5146 /* end confdefs.h. */
5150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5151 $EGREP "free" >/dev/null 2>&1; then
5154 ac_cv_header_stdc=no
5160 if test $ac_cv_header_stdc = yes; then
5161 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5162 if test "$cross_compiling" = yes; then
5165 cat >conftest.$ac_ext <<_ACEOF
5168 cat confdefs.h >>conftest.$ac_ext
5169 cat >>conftest.$ac_ext <<_ACEOF
5170 /* end confdefs.h. */
5173 #if ((' ' & 0x0FF) == 0x020)
5174 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5175 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5177 # define ISLOWER(c) \
5178 (('a' <= (c) && (c) <= 'i') \
5179 || ('j' <= (c) && (c) <= 'r') \
5180 || ('s' <= (c) && (c) <= 'z'))
5181 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5184 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5189 for (i = 0; i < 256; i++)
5190 if (XOR (islower (i), ISLOWER (i))
5191 || toupper (i) != TOUPPER (i))
5196 rm -f conftest$ac_exeext
5197 if { (ac_try="$ac_link"
5199 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5200 *) ac_try_echo
=$ac_try;;
5202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5203 (eval "$ac_link") 2>&5
5205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5207 { (case "(($ac_try" in
5208 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5209 *) ac_try_echo=$ac_try;;
5211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5212 (eval "$ac_try") 2>&5
5214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215 (exit $ac_status); }; }; then
5218 echo "$as_me: program exited with status $ac_status" >&5
5219 echo "$as_me: failed program was:" >&5
5220 sed 's/^/| /' conftest.$ac_ext >&5
5223 ac_cv_header_stdc=no
5225 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5231 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5232 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5233 if test $ac_cv_header_stdc = yes; then
5235 cat >>confdefs.h <<\_ACEOF
5236 #define STDC_HEADERS 1
5241 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5251 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5252 inttypes.h stdint.h unistd.h
5254 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5255 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5258 echo $ECHO_N "(cached) $ECHO_C" >&6
5260 cat >conftest.$ac_ext <<_ACEOF
5263 cat confdefs.h >>conftest.$ac_ext
5264 cat >>conftest.$ac_ext <<_ACEOF
5265 /* end confdefs.h. */
5266 $ac_includes_default
5268 #include <$ac_header>
5270 rm -f conftest.$ac_objext
5271 if { (ac_try="$ac_compile"
5273 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5274 *) ac_try_echo
=$ac_try;;
5276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5277 (eval "$ac_compile") 2>conftest.er1
5279 grep -v '^ *+' conftest.er1
>conftest.err
5281 cat conftest.err
>&5
5282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283 (exit $ac_status); } && {
5284 test -z "$ac_c_werror_flag" ||
5285 test ! -s conftest.err
5286 } && test -s conftest.
$ac_objext; then
5287 eval "$as_ac_Header=yes"
5289 echo "$as_me: failed program was:" >&5
5290 sed 's/^/| /' conftest.
$ac_ext >&5
5292 eval "$as_ac_Header=no"
5295 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5297 ac_res
=`eval echo '${'$as_ac_Header'}'`
5298 { echo "$as_me:$LINENO: result: $ac_res" >&5
5299 echo "${ECHO_T}$ac_res" >&6; }
5300 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5301 cat >>confdefs.h
<<_ACEOF
5302 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5359 for ac_header
in asm
/types.h conio.h curses.h direct.h dlfcn.h errno.h \
5361 io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
5362 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
5364 sys
/audioio.h sys
/bsdtty.h sys
/file.h sys
/loadavg.h sys
/lock.h sys
/mkdev.h \
5366 sys
/param.h sys
/poll.h sys
/select.h sys
/socket.h sys
/statvfs.h sys
/stat.h \
5368 sys
/times.h sys
/types.h sys
/un.h sys
/utsname.h sys
/wait.h pty.h libutil.h \
5369 sys
/resource.h netpacket
/packet.h sysexits.h bluetooth.h \
5370 bluetooth
/bluetooth.h
5372 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5373 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5374 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5376 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5377 echo $ECHO_N "(cached) $ECHO_C" >&6
5379 ac_res
=`eval echo '${'$as_ac_Header'}'`
5380 { echo "$as_me:$LINENO: result: $ac_res" >&5
5381 echo "${ECHO_T}$ac_res" >&6; }
5383 # Is the header compilable?
5384 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5385 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5386 cat >conftest.
$ac_ext <<_ACEOF
5389 cat confdefs.h
>>conftest.
$ac_ext
5390 cat >>conftest.
$ac_ext <<_ACEOF
5391 /* end confdefs.h. */
5392 $ac_includes_default
5393 #include <$ac_header>
5395 rm -f conftest.
$ac_objext
5396 if { (ac_try
="$ac_compile"
5398 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5399 *) ac_try_echo=$ac_try;;
5401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5402 (eval "$ac_compile") 2>conftest.er1
5404 grep -v '^ *+' conftest.er1 >conftest.err
5406 cat conftest.err >&5
5407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408 (exit $ac_status); } && {
5409 test -z "$ac_c_werror_flag" ||
5410 test ! -s conftest.err
5411 } && test -s conftest.$ac_objext; then
5412 ac_header_compiler=yes
5414 echo "$as_me: failed program was:" >&5
5415 sed 's/^/| /' conftest.$ac_ext >&5
5417 ac_header_compiler=no
5420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5421 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5422 echo "${ECHO_T}$ac_header_compiler" >&6; }
5424 # Is the header present?
5425 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5426 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5427 cat >conftest.$ac_ext <<_ACEOF
5430 cat confdefs.h >>conftest.$ac_ext
5431 cat >>conftest.$ac_ext <<_ACEOF
5432 /* end confdefs.h. */
5433 #include <$ac_header>
5435 if { (ac_try="$ac_cpp conftest.$ac_ext"
5437 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5438 *) ac_try_echo
=$ac_try;;
5440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5441 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5443 grep -v '^ *+' conftest.er1
>conftest.err
5445 cat conftest.err
>&5
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); } >/dev
/null
&& {
5448 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5449 test ! -s conftest.err
5451 ac_header_preproc
=yes
5453 echo "$as_me: failed program was:" >&5
5454 sed 's/^/| /' conftest.
$ac_ext >&5
5456 ac_header_preproc
=no
5459 rm -f conftest.err conftest.
$ac_ext
5460 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5461 echo "${ECHO_T}$ac_header_preproc" >&6; }
5463 # So? What about this header?
5464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5466 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5467 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5469 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5470 ac_header_preproc
=yes
5473 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5474 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5475 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5476 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5477 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5478 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5479 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5480 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5483 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5484 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5486 ## ------------------------------------------------ ##
5487 ## Report this to http://www.python.org/python-bugs ##
5488 ## ------------------------------------------------ ##
5490 ) |
sed "s/^/$as_me: WARNING: /" >&2
5493 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5495 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5496 echo $ECHO_N "(cached) $ECHO_C" >&6
5498 eval "$as_ac_Header=\$ac_header_preproc"
5500 ac_res
=`eval echo '${'$as_ac_Header'}'`
5501 { echo "$as_me:$LINENO: result: $ac_res" >&5
5502 echo "${ECHO_T}$ac_res" >&6; }
5505 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5506 cat >>confdefs.h
<<_ACEOF
5507 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5520 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
5521 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5522 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5523 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5524 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5525 echo $ECHO_N "(cached) $ECHO_C" >&6
5527 cat >conftest.
$ac_ext <<_ACEOF
5530 cat confdefs.h
>>conftest.
$ac_ext
5531 cat >>conftest.
$ac_ext <<_ACEOF
5532 /* end confdefs.h. */
5533 #include <sys/types.h>
5545 rm -f conftest.
$ac_objext
5546 if { (ac_try
="$ac_compile"
5548 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5549 *) ac_try_echo=$ac_try;;
5551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5552 (eval "$ac_compile") 2>conftest.er1
5554 grep -v '^ *+' conftest.er1 >conftest.err
5556 cat conftest.err >&5
5557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558 (exit $ac_status); } && {
5559 test -z "$ac_c_werror_flag" ||
5560 test ! -s conftest.err
5561 } && test -s conftest.$ac_objext; then
5562 eval "$as_ac_Header=yes"
5564 echo "$as_me: failed program was:" >&5
5565 sed 's/^/| /' conftest.$ac_ext >&5
5567 eval "$as_ac_Header=no"
5570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5572 ac_res=`eval echo '${'$as_ac_Header'}'`
5573 { echo "$as_me:$LINENO: result: $ac_res" >&5
5574 echo "${ECHO_T}$ac_res" >&6; }
5575 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5576 cat >>confdefs.h <<_ACEOF
5577 #define `echo "HAVE_$ac_hdr" |
$as_tr_cpp` 1
5580 ac_header_dirent=$ac_hdr; break
5584 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5585 if test $ac_header_dirent = dirent.h; then
5586 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5587 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5588 if test "${ac_cv_search_opendir+set}" = set; then
5589 echo $ECHO_N "(cached) $ECHO_C" >&6
5591 ac_func_search_save_LIBS=$LIBS
5592 cat >conftest.$ac_ext <<_ACEOF
5595 cat confdefs.h >>conftest.$ac_ext
5596 cat >>conftest.$ac_ext <<_ACEOF
5597 /* end confdefs.h. */
5599 /* Override any GCC internal prototype to avoid an error.
5600 Use char because int might match the return type of a GCC
5601 builtin and then its argument prototype would still apply. */
5614 for ac_lib in '' dir; do
5615 if test -z "$ac_lib"; then
5616 ac_res="none required"
5619 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5621 rm -f conftest.$ac_objext conftest$ac_exeext
5622 if { (ac_try="$ac_link"
5624 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5625 *) ac_try_echo
=$ac_try;;
5627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5628 (eval "$ac_link") 2>conftest.er1
5630 grep -v '^ *+' conftest.er1
>conftest.err
5632 cat conftest.err
>&5
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); } && {
5635 test -z "$ac_c_werror_flag" ||
5636 test ! -s conftest.err
5637 } && test -s conftest
$ac_exeext &&
5638 $as_test_x conftest
$ac_exeext; then
5639 ac_cv_search_opendir
=$ac_res
5641 echo "$as_me: failed program was:" >&5
5642 sed 's/^/| /' conftest.
$ac_ext >&5
5647 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5649 if test "${ac_cv_search_opendir+set}" = set; then
5653 if test "${ac_cv_search_opendir+set}" = set; then
5656 ac_cv_search_opendir
=no
5659 LIBS
=$ac_func_search_save_LIBS
5661 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5662 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5663 ac_res
=$ac_cv_search_opendir
5664 if test "$ac_res" != no
; then
5665 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5670 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5671 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5672 if test "${ac_cv_search_opendir+set}" = set; then
5673 echo $ECHO_N "(cached) $ECHO_C" >&6
5675 ac_func_search_save_LIBS
=$LIBS
5676 cat >conftest.
$ac_ext <<_ACEOF
5679 cat confdefs.h
>>conftest.
$ac_ext
5680 cat >>conftest.
$ac_ext <<_ACEOF
5681 /* end confdefs.h. */
5683 /* Override any GCC internal prototype to avoid an error.
5684 Use char because int might match the return type of a GCC
5685 builtin and then its argument prototype would still apply. */
5698 for ac_lib
in '' x
; do
5699 if test -z "$ac_lib"; then
5700 ac_res
="none required"
5703 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5705 rm -f conftest.
$ac_objext conftest
$ac_exeext
5706 if { (ac_try
="$ac_link"
5708 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5709 *) ac_try_echo=$ac_try;;
5711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5712 (eval "$ac_link") 2>conftest.er1
5714 grep -v '^ *+' conftest.er1 >conftest.err
5716 cat conftest.err >&5
5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718 (exit $ac_status); } && {
5719 test -z "$ac_c_werror_flag" ||
5720 test ! -s conftest.err
5721 } && test -s conftest$ac_exeext &&
5722 $as_test_x conftest$ac_exeext; then
5723 ac_cv_search_opendir=$ac_res
5725 echo "$as_me: failed program was:" >&5
5726 sed 's/^/| /' conftest.$ac_ext >&5
5731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5733 if test "${ac_cv_search_opendir+set}" = set; then
5737 if test "${ac_cv_search_opendir+set}" = set; then
5740 ac_cv_search_opendir=no
5743 LIBS=$ac_func_search_save_LIBS
5745 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5746 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5747 ac_res=$ac_cv_search_opendir
5748 if test "$ac_res" != no; then
5749 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5755 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5756 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
5757 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5758 echo $ECHO_N "(cached) $ECHO_C" >&6
5760 cat >conftest.$ac_ext <<_ACEOF
5763 cat confdefs.h >>conftest.$ac_ext
5764 cat >>conftest.$ac_ext <<_ACEOF
5765 /* end confdefs.h. */
5766 #include <sys/types.h>
5770 return makedev(0, 0);
5775 rm -f conftest.$ac_objext conftest$ac_exeext
5776 if { (ac_try="$ac_link"
5778 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5779 *) ac_try_echo
=$ac_try;;
5781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5782 (eval "$ac_link") 2>conftest.er1
5784 grep -v '^ *+' conftest.er1
>conftest.err
5786 cat conftest.err
>&5
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); } && {
5789 test -z "$ac_c_werror_flag" ||
5790 test ! -s conftest.err
5791 } && test -s conftest
$ac_exeext &&
5792 $as_test_x conftest
$ac_exeext; then
5793 ac_cv_header_sys_types_h_makedev
=yes
5795 echo "$as_me: failed program was:" >&5
5796 sed 's/^/| /' conftest.
$ac_ext >&5
5798 ac_cv_header_sys_types_h_makedev
=no
5801 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5802 conftest
$ac_exeext conftest.
$ac_ext
5805 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
5806 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
5808 if test $ac_cv_header_sys_types_h_makedev = no
; then
5809 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5810 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5811 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
5812 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5813 echo $ECHO_N "(cached) $ECHO_C" >&6
5815 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5816 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
5818 # Is the header compilable?
5819 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
5820 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
5821 cat >conftest.
$ac_ext <<_ACEOF
5824 cat confdefs.h
>>conftest.
$ac_ext
5825 cat >>conftest.
$ac_ext <<_ACEOF
5826 /* end confdefs.h. */
5827 $ac_includes_default
5828 #include <sys/mkdev.h>
5830 rm -f conftest.
$ac_objext
5831 if { (ac_try
="$ac_compile"
5833 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5834 *) ac_try_echo=$ac_try;;
5836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5837 (eval "$ac_compile") 2>conftest.er1
5839 grep -v '^ *+' conftest.er1 >conftest.err
5841 cat conftest.err >&5
5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); } && {
5844 test -z "$ac_c_werror_flag" ||
5845 test ! -s conftest.err
5846 } && test -s conftest.$ac_objext; then
5847 ac_header_compiler=yes
5849 echo "$as_me: failed program was:" >&5
5850 sed 's/^/| /' conftest.$ac_ext >&5
5852 ac_header_compiler=no
5855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5856 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5857 echo "${ECHO_T}$ac_header_compiler" >&6; }
5859 # Is the header present?
5860 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
5861 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
5862 cat >conftest.$ac_ext <<_ACEOF
5865 cat confdefs.h >>conftest.$ac_ext
5866 cat >>conftest.$ac_ext <<_ACEOF
5867 /* end confdefs.h. */
5868 #include <sys/mkdev.h>
5870 if { (ac_try="$ac_cpp conftest.$ac_ext"
5872 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5873 *) ac_try_echo
=$ac_try;;
5875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5876 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5878 grep -v '^ *+' conftest.er1
>conftest.err
5880 cat conftest.err
>&5
5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 (exit $ac_status); } >/dev
/null
&& {
5883 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5884 test ! -s conftest.err
5886 ac_header_preproc
=yes
5888 echo "$as_me: failed program was:" >&5
5889 sed 's/^/| /' conftest.
$ac_ext >&5
5891 ac_header_preproc
=no
5894 rm -f conftest.err conftest.
$ac_ext
5895 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5896 echo "${ECHO_T}$ac_header_preproc" >&6; }
5898 # So? What about this header?
5899 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5901 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
5902 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5903 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
5904 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
5905 ac_header_preproc
=yes
5908 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
5909 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
5910 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
5911 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
5912 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
5913 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
5914 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
5915 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
5916 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
5917 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
5918 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
5919 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
5921 ## ------------------------------------------------ ##
5922 ## Report this to http://www.python.org/python-bugs ##
5923 ## ------------------------------------------------ ##
5925 ) |
sed "s/^/$as_me: WARNING: /" >&2
5928 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5929 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
5930 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5931 echo $ECHO_N "(cached) $ECHO_C" >&6
5933 ac_cv_header_sys_mkdev_h
=$ac_header_preproc
5935 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5936 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
5939 if test $ac_cv_header_sys_mkdev_h = yes; then
5941 cat >>confdefs.h
<<\_ACEOF
5942 #define MAJOR_IN_MKDEV 1
5949 if test $ac_cv_header_sys_mkdev_h = no
; then
5950 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5951 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
5952 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
5953 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5954 echo $ECHO_N "(cached) $ECHO_C" >&6
5956 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
5957 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
5959 # Is the header compilable?
5960 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
5961 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
5962 cat >conftest.
$ac_ext <<_ACEOF
5965 cat confdefs.h
>>conftest.
$ac_ext
5966 cat >>conftest.
$ac_ext <<_ACEOF
5967 /* end confdefs.h. */
5968 $ac_includes_default
5969 #include <sys/sysmacros.h>
5971 rm -f conftest.
$ac_objext
5972 if { (ac_try
="$ac_compile"
5974 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5975 *) ac_try_echo=$ac_try;;
5977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5978 (eval "$ac_compile") 2>conftest.er1
5980 grep -v '^ *+' conftest.er1 >conftest.err
5982 cat conftest.err >&5
5983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984 (exit $ac_status); } && {
5985 test -z "$ac_c_werror_flag" ||
5986 test ! -s conftest.err
5987 } && test -s conftest.$ac_objext; then
5988 ac_header_compiler=yes
5990 echo "$as_me: failed program was:" >&5
5991 sed 's/^/| /' conftest.$ac_ext >&5
5993 ac_header_compiler=no
5996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5997 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5998 echo "${ECHO_T}$ac_header_compiler" >&6; }
6000 # Is the header present?
6001 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6002 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
6003 cat >conftest.$ac_ext <<_ACEOF
6006 cat confdefs.h >>conftest.$ac_ext
6007 cat >>conftest.$ac_ext <<_ACEOF
6008 /* end confdefs.h. */
6009 #include <sys/sysmacros.h>
6011 if { (ac_try="$ac_cpp conftest.$ac_ext"
6013 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6014 *) ac_try_echo
=$ac_try;;
6016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6017 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6019 grep -v '^ *+' conftest.er1
>conftest.err
6021 cat conftest.err
>&5
6022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023 (exit $ac_status); } >/dev
/null
&& {
6024 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6025 test ! -s conftest.err
6027 ac_header_preproc
=yes
6029 echo "$as_me: failed program was:" >&5
6030 sed 's/^/| /' conftest.
$ac_ext >&5
6032 ac_header_preproc
=no
6035 rm -f conftest.err conftest.
$ac_ext
6036 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6037 echo "${ECHO_T}$ac_header_preproc" >&6; }
6039 # So? What about this header?
6040 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6042 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6043 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6044 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6045 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
6046 ac_header_preproc
=yes
6049 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6050 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6051 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6052 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6053 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6054 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6055 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
6056 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
6057 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6058 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
6059 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6060 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
6062 ## ------------------------------------------------ ##
6063 ## Report this to http://www.python.org/python-bugs ##
6064 ## ------------------------------------------------ ##
6066 ) |
sed "s/^/$as_me: WARNING: /" >&2
6069 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6070 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6071 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6072 echo $ECHO_N "(cached) $ECHO_C" >&6
6074 ac_cv_header_sys_sysmacros_h
=$ac_header_preproc
6076 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6077 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6080 if test $ac_cv_header_sys_sysmacros_h = yes; then
6082 cat >>confdefs.h
<<\_ACEOF
6083 #define MAJOR_IN_SYSMACROS 1
6093 # On Solaris, term.h requires curses.h
6095 for ac_header
in term.h
6097 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6098 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6099 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6100 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6101 echo $ECHO_N "(cached) $ECHO_C" >&6
6103 cat >conftest.
$ac_ext <<_ACEOF
6106 cat confdefs.h
>>conftest.
$ac_ext
6107 cat >>conftest.
$ac_ext <<_ACEOF
6108 /* end confdefs.h. */
6110 #ifdef HAVE_CURSES_H
6115 #include <$ac_header>
6117 rm -f conftest.
$ac_objext
6118 if { (ac_try
="$ac_compile"
6120 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6121 *) ac_try_echo=$ac_try;;
6123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6124 (eval "$ac_compile") 2>conftest.er1
6126 grep -v '^ *+' conftest.er1 >conftest.err
6128 cat conftest.err >&5
6129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130 (exit $ac_status); } && {
6131 test -z "$ac_c_werror_flag" ||
6132 test ! -s conftest.err
6133 } && test -s conftest.$ac_objext; then
6134 eval "$as_ac_Header=yes"
6136 echo "$as_me: failed program was:" >&5
6137 sed 's/^/| /' conftest.$ac_ext >&5
6139 eval "$as_ac_Header=no"
6142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6144 ac_res=`eval echo '${'$as_ac_Header'}'`
6145 { echo "$as_me:$LINENO: result: $ac_res" >&5
6146 echo "${ECHO_T}$ac_res" >&6; }
6147 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6148 cat >>confdefs.h <<_ACEOF
6149 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6157 # On Linux, netlink.h requires asm/types.h
6159 for ac_header in linux/netlink.h
6161 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6162 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6163 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6164 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6165 echo $ECHO_N "(cached) $ECHO_C" >&6
6167 cat >conftest.$ac_ext <<_ACEOF
6170 cat confdefs.h >>conftest.$ac_ext
6171 cat >>conftest.$ac_ext <<_ACEOF
6172 /* end confdefs.h. */
6174 #ifdef HAVE_ASM_TYPES_H
6175 #include <asm/types.h>
6177 #ifdef HAVE_SYS_SOCKET_H
6178 #include <sys/socket.h>
6182 #include <$ac_header>
6184 rm -f conftest.$ac_objext
6185 if { (ac_try="$ac_compile"
6187 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6188 *) ac_try_echo
=$ac_try;;
6190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6191 (eval "$ac_compile") 2>conftest.er1
6193 grep -v '^ *+' conftest.er1
>conftest.err
6195 cat conftest.err
>&5
6196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197 (exit $ac_status); } && {
6198 test -z "$ac_c_werror_flag" ||
6199 test ! -s conftest.err
6200 } && test -s conftest.
$ac_objext; then
6201 eval "$as_ac_Header=yes"
6203 echo "$as_me: failed program was:" >&5
6204 sed 's/^/| /' conftest.
$ac_ext >&5
6206 eval "$as_ac_Header=no"
6209 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6211 ac_res
=`eval echo '${'$as_ac_Header'}'`
6212 { echo "$as_me:$LINENO: result: $ac_res" >&5
6213 echo "${ECHO_T}$ac_res" >&6; }
6214 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6215 cat >>confdefs.h
<<_ACEOF
6216 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6224 # checks for typedefs
6226 { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
6227 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6; }
6228 cat >conftest.
$ac_ext <<_ACEOF
6231 cat confdefs.h
>>conftest.
$ac_ext
6232 cat >>conftest.
$ac_ext <<_ACEOF
6233 /* end confdefs.h. */
6237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6238 $EGREP "clock_t" >/dev
/null
2>&1; then
6243 cat >>confdefs.h
<<\_ACEOF
6244 #define clock_t long
6251 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
6252 echo "${ECHO_T}$was_it_defined" >&6; }
6254 # Check whether using makedev requires defining _OSF_SOURCE
6255 { echo "$as_me:$LINENO: checking for makedev" >&5
6256 echo $ECHO_N "checking for makedev... $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 #include <sys/types.h>
6272 rm -f conftest.
$ac_objext conftest
$ac_exeext
6273 if { (ac_try
="$ac_link"
6275 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6276 *) ac_try_echo=$ac_try;;
6278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6279 (eval "$ac_link") 2>conftest.er1
6281 grep -v '^ *+' conftest.er1 >conftest.err
6283 cat conftest.err >&5
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); } && {
6286 test -z "$ac_c_werror_flag" ||
6287 test ! -s conftest.err
6288 } && test -s conftest$ac_exeext &&
6289 $as_test_x conftest$ac_exeext; then
6290 ac_cv_has_makedev=yes
6292 echo "$as_me: failed program was:" >&5
6293 sed 's/^/| /' conftest.$ac_ext >&5
6295 ac_cv_has_makedev=no
6298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6299 conftest$ac_exeext conftest.$ac_ext
6300 if test "$ac_cv_has_makedev" = "no"; then
6301 # we didn't link, try if _OSF_SOURCE will allow us to link
6302 cat >conftest.$ac_ext <<_ACEOF
6305 cat confdefs.h >>conftest.$ac_ext
6306 cat >>conftest.$ac_ext <<_ACEOF
6307 /* end confdefs.h. */
6309 #define _OSF_SOURCE 1
6310 #include <sys/types.h>
6320 rm -f conftest.$ac_objext conftest$ac_exeext
6321 if { (ac_try="$ac_link"
6323 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6324 *) ac_try_echo
=$ac_try;;
6326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6327 (eval "$ac_link") 2>conftest.er1
6329 grep -v '^ *+' conftest.er1
>conftest.err
6331 cat conftest.err
>&5
6332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333 (exit $ac_status); } && {
6334 test -z "$ac_c_werror_flag" ||
6335 test ! -s conftest.err
6336 } && test -s conftest
$ac_exeext &&
6337 $as_test_x conftest
$ac_exeext; then
6338 ac_cv_has_makedev
=yes
6340 echo "$as_me: failed program was:" >&5
6341 sed 's/^/| /' conftest.
$ac_ext >&5
6343 ac_cv_has_makedev
=no
6346 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6347 conftest
$ac_exeext conftest.
$ac_ext
6348 if test "$ac_cv_has_makedev" = "yes"; then
6350 cat >>confdefs.h
<<\_ACEOF
6351 #define _OSF_SOURCE 1
6356 { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
6357 echo "${ECHO_T}$ac_cv_has_makedev" >&6; }
6358 if test "$ac_cv_has_makedev" = "yes"; then
6360 cat >>confdefs.h
<<\_ACEOF
6361 #define HAVE_MAKEDEV 1
6366 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
6367 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
6368 # defined, but the compiler does not support pragma redefine_extname,
6369 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
6370 # structures (such as rlimit64) without declaring them. As a
6371 # work-around, disable LFS on such configurations
6374 { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
6375 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; }
6376 cat >conftest.
$ac_ext <<_ACEOF
6379 cat confdefs.h
>>conftest.
$ac_ext
6380 cat >>conftest.
$ac_ext <<_ACEOF
6381 /* end confdefs.h. */
6383 #define _LARGEFILE_SOURCE 1
6384 #define _FILE_OFFSET_BITS 64
6385 #include <sys/resource.h>
6395 rm -f conftest.
$ac_objext
6396 if { (ac_try
="$ac_compile"
6398 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6399 *) ac_try_echo=$ac_try;;
6401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6402 (eval "$ac_compile") 2>conftest.er1
6404 grep -v '^ *+' conftest.er1 >conftest.err
6406 cat conftest.err >&5
6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); } && {
6409 test -z "$ac_c_werror_flag" ||
6410 test ! -s conftest.err
6411 } && test -s conftest.$ac_objext; then
6414 echo "$as_me: failed program was:" >&5
6415 sed 's/^/| /' conftest.$ac_ext >&5
6420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6421 { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
6422 echo "${ECHO_T}$sol_lfs_bug" >&6; }
6423 if test "$sol_lfs_bug" = "yes"; then
6427 if test "$use_lfs" = "yes"; then
6428 # Two defines needed to enable largefile support on various platforms
6429 # These may affect some typedefs
6431 cat >>confdefs.h <<\_ACEOF
6432 #define _LARGEFILE_SOURCE 1
6436 cat >>confdefs.h <<\_ACEOF
6437 #define _FILE_OFFSET_BITS 64
6442 # Add some code to confdefs.h so that the test for off_t works on SCO
6443 cat >> confdefs.h <<\EOF
6449 # Type availability checks
6450 { echo "$as_me:$LINENO: checking for mode_t" >&5
6451 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
6452 if test "${ac_cv_type_mode_t+set}" = set; then
6453 echo $ECHO_N "(cached) $ECHO_C" >&6
6455 cat >conftest.$ac_ext <<_ACEOF
6458 cat confdefs.h >>conftest.$ac_ext
6459 cat >>conftest.$ac_ext <<_ACEOF
6460 /* end confdefs.h. */
6461 $ac_includes_default
6462 typedef mode_t ac__type_new_;
6466 if ((ac__type_new_ *) 0)
6468 if (sizeof (ac__type_new_))
6474 rm -f conftest.$ac_objext
6475 if { (ac_try="$ac_compile"
6477 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6478 *) ac_try_echo
=$ac_try;;
6480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6481 (eval "$ac_compile") 2>conftest.er1
6483 grep -v '^ *+' conftest.er1
>conftest.err
6485 cat conftest.err
>&5
6486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487 (exit $ac_status); } && {
6488 test -z "$ac_c_werror_flag" ||
6489 test ! -s conftest.err
6490 } && test -s conftest.
$ac_objext; then
6491 ac_cv_type_mode_t
=yes
6493 echo "$as_me: failed program was:" >&5
6494 sed 's/^/| /' conftest.
$ac_ext >&5
6496 ac_cv_type_mode_t
=no
6499 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6501 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6502 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
6503 if test $ac_cv_type_mode_t = yes; then
6507 cat >>confdefs.h
<<_ACEOF
6513 { echo "$as_me:$LINENO: checking for off_t" >&5
6514 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6515 if test "${ac_cv_type_off_t+set}" = set; then
6516 echo $ECHO_N "(cached) $ECHO_C" >&6
6518 cat >conftest.
$ac_ext <<_ACEOF
6521 cat confdefs.h
>>conftest.
$ac_ext
6522 cat >>conftest.
$ac_ext <<_ACEOF
6523 /* end confdefs.h. */
6524 $ac_includes_default
6525 typedef off_t ac__type_new_;
6529 if ((ac__type_new_ *) 0)
6531 if (sizeof (ac__type_new_))
6537 rm -f conftest.
$ac_objext
6538 if { (ac_try
="$ac_compile"
6540 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6541 *) ac_try_echo=$ac_try;;
6543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6544 (eval "$ac_compile") 2>conftest.er1
6546 grep -v '^ *+' conftest.er1 >conftest.err
6548 cat conftest.err >&5
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); } && {
6551 test -z "$ac_c_werror_flag" ||
6552 test ! -s conftest.err
6553 } && test -s conftest.$ac_objext; then
6554 ac_cv_type_off_t=yes
6556 echo "$as_me: failed program was:" >&5
6557 sed 's/^/| /' conftest.$ac_ext >&5
6562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6564 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6565 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6566 if test $ac_cv_type_off_t = yes; then
6570 cat >>confdefs.h <<_ACEOF
6571 #define off_t long int
6576 { echo "$as_me:$LINENO: checking for pid_t" >&5
6577 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
6578 if test "${ac_cv_type_pid_t+set}" = set; then
6579 echo $ECHO_N "(cached) $ECHO_C" >&6
6581 cat >conftest.$ac_ext <<_ACEOF
6584 cat confdefs.h >>conftest.$ac_ext
6585 cat >>conftest.$ac_ext <<_ACEOF
6586 /* end confdefs.h. */
6587 $ac_includes_default
6588 typedef pid_t ac__type_new_;
6592 if ((ac__type_new_ *) 0)
6594 if (sizeof (ac__type_new_))
6600 rm -f conftest.$ac_objext
6601 if { (ac_try="$ac_compile"
6603 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6604 *) ac_try_echo
=$ac_try;;
6606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6607 (eval "$ac_compile") 2>conftest.er1
6609 grep -v '^ *+' conftest.er1
>conftest.err
6611 cat conftest.err
>&5
6612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613 (exit $ac_status); } && {
6614 test -z "$ac_c_werror_flag" ||
6615 test ! -s conftest.err
6616 } && test -s conftest.
$ac_objext; then
6617 ac_cv_type_pid_t
=yes
6619 echo "$as_me: failed program was:" >&5
6620 sed 's/^/| /' conftest.
$ac_ext >&5
6625 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6627 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6628 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
6629 if test $ac_cv_type_pid_t = yes; then
6633 cat >>confdefs.h
<<_ACEOF
6639 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6640 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6641 if test "${ac_cv_type_signal+set}" = set; then
6642 echo $ECHO_N "(cached) $ECHO_C" >&6
6644 cat >conftest.
$ac_ext <<_ACEOF
6647 cat confdefs.h
>>conftest.
$ac_ext
6648 cat >>conftest.
$ac_ext <<_ACEOF
6649 /* end confdefs.h. */
6650 #include <sys/types.h>
6656 return *(signal (0, 0)) (0) == 1;
6661 rm -f conftest.
$ac_objext
6662 if { (ac_try
="$ac_compile"
6664 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6665 *) ac_try_echo=$ac_try;;
6667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6668 (eval "$ac_compile") 2>conftest.er1
6670 grep -v '^ *+' conftest.er1 >conftest.err
6672 cat conftest.err >&5
6673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674 (exit $ac_status); } && {
6675 test -z "$ac_c_werror_flag" ||
6676 test ! -s conftest.err
6677 } && test -s conftest.$ac_objext; then
6678 ac_cv_type_signal=int
6680 echo "$as_me: failed program was:" >&5
6681 sed 's/^/| /' conftest.$ac_ext >&5
6683 ac_cv_type_signal=void
6686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6688 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6689 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6691 cat >>confdefs.h <<_ACEOF
6692 #define RETSIGTYPE $ac_cv_type_signal
6696 { echo "$as_me:$LINENO: checking for size_t" >&5
6697 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6698 if test "${ac_cv_type_size_t+set}" = set; then
6699 echo $ECHO_N "(cached) $ECHO_C" >&6
6701 cat >conftest.$ac_ext <<_ACEOF
6704 cat confdefs.h >>conftest.$ac_ext
6705 cat >>conftest.$ac_ext <<_ACEOF
6706 /* end confdefs.h. */
6707 $ac_includes_default
6708 typedef size_t ac__type_new_;
6712 if ((ac__type_new_ *) 0)
6714 if (sizeof (ac__type_new_))
6720 rm -f conftest.$ac_objext
6721 if { (ac_try="$ac_compile"
6723 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6724 *) ac_try_echo
=$ac_try;;
6726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6727 (eval "$ac_compile") 2>conftest.er1
6729 grep -v '^ *+' conftest.er1
>conftest.err
6731 cat conftest.err
>&5
6732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733 (exit $ac_status); } && {
6734 test -z "$ac_c_werror_flag" ||
6735 test ! -s conftest.err
6736 } && test -s conftest.
$ac_objext; then
6737 ac_cv_type_size_t
=yes
6739 echo "$as_me: failed program was:" >&5
6740 sed 's/^/| /' conftest.
$ac_ext >&5
6742 ac_cv_type_size_t
=no
6745 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6747 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6748 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
6749 if test $ac_cv_type_size_t = yes; then
6753 cat >>confdefs.h
<<_ACEOF
6754 #define size_t unsigned int
6759 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6760 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
6761 if test "${ac_cv_type_uid_t+set}" = set; then
6762 echo $ECHO_N "(cached) $ECHO_C" >&6
6764 cat >conftest.
$ac_ext <<_ACEOF
6767 cat confdefs.h
>>conftest.
$ac_ext
6768 cat >>conftest.
$ac_ext <<_ACEOF
6769 /* end confdefs.h. */
6770 #include <sys/types.h>
6773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6774 $EGREP "uid_t" >/dev
/null
2>&1; then
6775 ac_cv_type_uid_t
=yes
6782 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6783 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
6784 if test $ac_cv_type_uid_t = no
; then
6786 cat >>confdefs.h
<<\_ACEOF
6791 cat >>confdefs.h
<<\_ACEOF
6797 { echo "$as_me:$LINENO: checking for ssize_t" >&5
6798 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
6799 if test "${ac_cv_type_ssize_t+set}" = set; then
6800 echo $ECHO_N "(cached) $ECHO_C" >&6
6802 cat >conftest.
$ac_ext <<_ACEOF
6805 cat confdefs.h
>>conftest.
$ac_ext
6806 cat >>conftest.
$ac_ext <<_ACEOF
6807 /* end confdefs.h. */
6808 $ac_includes_default
6809 typedef ssize_t ac__type_new_;
6813 if ((ac__type_new_ *) 0)
6815 if (sizeof (ac__type_new_))
6821 rm -f conftest.
$ac_objext
6822 if { (ac_try
="$ac_compile"
6824 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6825 *) ac_try_echo=$ac_try;;
6827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6828 (eval "$ac_compile") 2>conftest.er1
6830 grep -v '^ *+' conftest.er1 >conftest.err
6832 cat conftest.err >&5
6833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6834 (exit $ac_status); } && {
6835 test -z "$ac_c_werror_flag" ||
6836 test ! -s conftest.err
6837 } && test -s conftest.$ac_objext; then
6838 ac_cv_type_ssize_t=yes
6840 echo "$as_me: failed program was:" >&5
6841 sed 's/^/| /' conftest.$ac_ext >&5
6843 ac_cv_type_ssize_t=no
6846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6848 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6849 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
6850 if test $ac_cv_type_ssize_t = yes; then
6852 cat >>confdefs.h <<\_ACEOF
6853 #define HAVE_SSIZE_T 1
6859 # Sizes of various common basic types
6860 # ANSI C requires sizeof(char) == 1, so no need to check it
6861 { echo "$as_me:$LINENO: checking for int" >&5
6862 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
6863 if test "${ac_cv_type_int+set}" = set; then
6864 echo $ECHO_N "(cached) $ECHO_C" >&6
6866 cat >conftest.$ac_ext <<_ACEOF
6869 cat confdefs.h >>conftest.$ac_ext
6870 cat >>conftest.$ac_ext <<_ACEOF
6871 /* end confdefs.h. */
6872 $ac_includes_default
6873 typedef int ac__type_new_;
6877 if ((ac__type_new_ *) 0)
6879 if (sizeof (ac__type_new_))
6885 rm -f conftest.$ac_objext
6886 if { (ac_try="$ac_compile"
6888 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6889 *) ac_try_echo
=$ac_try;;
6891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6892 (eval "$ac_compile") 2>conftest.er1
6894 grep -v '^ *+' conftest.er1
>conftest.err
6896 cat conftest.err
>&5
6897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898 (exit $ac_status); } && {
6899 test -z "$ac_c_werror_flag" ||
6900 test ! -s conftest.err
6901 } && test -s conftest.
$ac_objext; then
6904 echo "$as_me: failed program was:" >&5
6905 sed 's/^/| /' conftest.
$ac_ext >&5
6910 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6912 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6913 echo "${ECHO_T}$ac_cv_type_int" >&6; }
6915 # The cast to long int works around a bug in the HP C Compiler
6916 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6917 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6918 # This bug is HP SR number 8606223364.
6919 { echo "$as_me:$LINENO: checking size of int" >&5
6920 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
6921 if test "${ac_cv_sizeof_int+set}" = set; then
6922 echo $ECHO_N "(cached) $ECHO_C" >&6
6924 if test "$cross_compiling" = yes; then
6925 # Depending upon the size, compute the lo and hi bounds.
6926 cat >conftest.
$ac_ext <<_ACEOF
6929 cat confdefs.h
>>conftest.
$ac_ext
6930 cat >>conftest.
$ac_ext <<_ACEOF
6931 /* end confdefs.h. */
6932 $ac_includes_default
6933 typedef int ac__type_sizeof_;
6937 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6944 rm -f conftest.
$ac_objext
6945 if { (ac_try
="$ac_compile"
6947 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6948 *) ac_try_echo=$ac_try;;
6950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6951 (eval "$ac_compile") 2>conftest.er1
6953 grep -v '^ *+' conftest.er1 >conftest.err
6955 cat conftest.err >&5
6956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957 (exit $ac_status); } && {
6958 test -z "$ac_c_werror_flag" ||
6959 test ! -s conftest.err
6960 } && test -s conftest.$ac_objext; then
6963 cat >conftest.$ac_ext <<_ACEOF
6966 cat confdefs.h >>conftest.$ac_ext
6967 cat >>conftest.$ac_ext <<_ACEOF
6968 /* end confdefs.h. */
6969 $ac_includes_default
6970 typedef int ac__type_sizeof_;
6974 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6981 rm -f conftest.$ac_objext
6982 if { (ac_try="$ac_compile"
6984 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6985 *) ac_try_echo
=$ac_try;;
6987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6988 (eval "$ac_compile") 2>conftest.er1
6990 grep -v '^ *+' conftest.er1
>conftest.err
6992 cat conftest.err
>&5
6993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6994 (exit $ac_status); } && {
6995 test -z "$ac_c_werror_flag" ||
6996 test ! -s conftest.err
6997 } && test -s conftest.
$ac_objext; then
6998 ac_hi
=$ac_mid; break
7000 echo "$as_me: failed program was:" >&5
7001 sed 's/^/| /' conftest.
$ac_ext >&5
7003 ac_lo
=`expr $ac_mid + 1`
7004 if test $ac_lo -le $ac_mid; then
7008 ac_mid
=`expr 2 '*' $ac_mid + 1`
7011 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7014 echo "$as_me: failed program was:" >&5
7015 sed 's/^/| /' conftest.
$ac_ext >&5
7017 cat >conftest.
$ac_ext <<_ACEOF
7020 cat confdefs.h
>>conftest.
$ac_ext
7021 cat >>conftest.
$ac_ext <<_ACEOF
7022 /* end confdefs.h. */
7023 $ac_includes_default
7024 typedef int ac__type_sizeof_;
7028 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7035 rm -f conftest.
$ac_objext
7036 if { (ac_try
="$ac_compile"
7038 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7039 *) ac_try_echo=$ac_try;;
7041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7042 (eval "$ac_compile") 2>conftest.er1
7044 grep -v '^ *+' conftest.er1 >conftest.err
7046 cat conftest.err >&5
7047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048 (exit $ac_status); } && {
7049 test -z "$ac_c_werror_flag" ||
7050 test ! -s conftest.err
7051 } && test -s conftest.$ac_objext; then
7054 cat >conftest.$ac_ext <<_ACEOF
7057 cat confdefs.h >>conftest.$ac_ext
7058 cat >>conftest.$ac_ext <<_ACEOF
7059 /* end confdefs.h. */
7060 $ac_includes_default
7061 typedef int ac__type_sizeof_;
7065 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7072 rm -f conftest.$ac_objext
7073 if { (ac_try="$ac_compile"
7075 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7076 *) ac_try_echo
=$ac_try;;
7078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7079 (eval "$ac_compile") 2>conftest.er1
7081 grep -v '^ *+' conftest.er1
>conftest.err
7083 cat conftest.err
>&5
7084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085 (exit $ac_status); } && {
7086 test -z "$ac_c_werror_flag" ||
7087 test ! -s conftest.err
7088 } && test -s conftest.
$ac_objext; then
7089 ac_lo
=$ac_mid; break
7091 echo "$as_me: failed program was:" >&5
7092 sed 's/^/| /' conftest.
$ac_ext >&5
7094 ac_hi
=`expr '(' $ac_mid ')' - 1`
7095 if test $ac_mid -le $ac_hi; then
7099 ac_mid
=`expr 2 '*' $ac_mid`
7102 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7105 echo "$as_me: failed program was:" >&5
7106 sed 's/^/| /' conftest.
$ac_ext >&5
7111 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7114 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7115 # Binary search between lo and hi bounds.
7116 while test "x$ac_lo" != "x$ac_hi"; do
7117 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7118 cat >conftest.
$ac_ext <<_ACEOF
7121 cat confdefs.h
>>conftest.
$ac_ext
7122 cat >>conftest.
$ac_ext <<_ACEOF
7123 /* end confdefs.h. */
7124 $ac_includes_default
7125 typedef int ac__type_sizeof_;
7129 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7136 rm -f conftest.
$ac_objext
7137 if { (ac_try
="$ac_compile"
7139 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7140 *) ac_try_echo=$ac_try;;
7142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7143 (eval "$ac_compile") 2>conftest.er1
7145 grep -v '^ *+' conftest.er1 >conftest.err
7147 cat conftest.err >&5
7148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149 (exit $ac_status); } && {
7150 test -z "$ac_c_werror_flag" ||
7151 test ! -s conftest.err
7152 } && test -s conftest.$ac_objext; then
7155 echo "$as_me: failed program was:" >&5
7156 sed 's/^/| /' conftest.$ac_ext >&5
7158 ac_lo=`expr '(' $ac_mid ')' + 1`
7161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7164 ?*) ac_cv_sizeof_int=$ac_lo;;
7165 '') if test "$ac_cv_type_int" = yes; then
7166 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7167 See \`config.log
' for more details." >&5
7168 echo "$as_me: error: cannot compute sizeof (int)
7169 See \`config.log' for more details.
" >&2;}
7170 { (exit 77); exit 77; }; }
7176 cat >conftest.$ac_ext <<_ACEOF
7179 cat confdefs.h >>conftest.$ac_ext
7180 cat >>conftest.$ac_ext <<_ACEOF
7181 /* end confdefs.h. */
7182 $ac_includes_default
7183 typedef int ac__type_sizeof_;
7184 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7185 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7192 FILE *f = fopen ("conftest.val
", "w
");
7195 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7197 long int i = longval ();
7198 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7200 fprintf (f, "%ld
\n", i);
7204 unsigned long int i = ulongval ();
7205 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7207 fprintf (f, "%lu
\n", i);
7209 return ferror (f) || fclose (f) != 0;
7215 rm -f conftest$ac_exeext
7216 if { (ac_try="$ac_link"
7218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7219 *) ac_try_echo=$ac_try;;
7221 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7222 (eval "$ac_link") 2>&5
7224 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7225 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7226 { (case "(($ac_try" in
7227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7228 *) ac_try_echo=$ac_try;;
7230 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7231 (eval "$ac_try") 2>&5
7233 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7234 (exit $ac_status); }; }; then
7235 ac_cv_sizeof_int=`cat conftest.val`
7237 echo "$as_me: program exited with status
$ac_status" >&5
7238 echo "$as_me: failed program was
:" >&5
7239 sed 's/^/| /' conftest.$ac_ext >&5
7242 if test "$ac_cv_type_int" = yes; then
7243 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(int
)
7244 See \
`config.log' for more details." >&5
7245 echo "$as_me: error: cannot compute sizeof (int)
7246 See \`config.log
' for more details." >&2;}
7247 { (exit 77); exit 77; }; }
7252 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7256 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7257 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7261 cat >>confdefs.h <<_ACEOF
7262 #define SIZEOF_INT $ac_cv_sizeof_int
7266 { echo "$as_me:$LINENO: checking for long" >&5
7267 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
7268 if test "${ac_cv_type_long+set}" = set; then
7269 echo $ECHO_N "(cached) $ECHO_C" >&6
7271 cat >conftest.$ac_ext <<_ACEOF
7274 cat confdefs.h >>conftest.$ac_ext
7275 cat >>conftest.$ac_ext <<_ACEOF
7276 /* end confdefs.h. */
7277 $ac_includes_default
7278 typedef long ac__type_new_;
7282 if ((ac__type_new_ *) 0)
7284 if (sizeof (ac__type_new_))
7290 rm -f conftest.$ac_objext
7291 if { (ac_try="$ac_compile"
7293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7294 *) ac_try_echo=$ac_try;;
7296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7297 (eval "$ac_compile") 2>conftest.er1
7299 grep -v '^
*+' conftest.er1 >conftest.err
7301 cat conftest.err >&5
7302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303 (exit $ac_status); } && {
7304 test -z "$ac_c_werror_flag" ||
7305 test ! -s conftest.err
7306 } && test -s conftest.$ac_objext; then
7309 echo "$as_me: failed program was:" >&5
7310 sed 's
/^
/|
/' conftest.$ac_ext >&5
7315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7317 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7318 echo "${ECHO_T}$ac_cv_type_long" >&6; }
7320 # The cast to long int works around a bug in the HP C Compiler
7321 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7322 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7323 # This bug is HP SR number 8606223364.
7324 { echo "$as_me:$LINENO: checking size of long" >&5
7325 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
7326 if test "${ac_cv_sizeof_long+set}" = set; then
7327 echo $ECHO_N "(cached) $ECHO_C" >&6
7329 if test "$cross_compiling" = yes; then
7330 # Depending upon the size, compute the lo and hi bounds.
7331 cat >conftest.
$ac_ext <<_ACEOF
7334 cat confdefs.h
>>conftest.
$ac_ext
7335 cat >>conftest.
$ac_ext <<_ACEOF
7336 /* end confdefs.h. */
7337 $ac_includes_default
7338 typedef long ac__type_sizeof_;
7342 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7349 rm -f conftest.
$ac_objext
7350 if { (ac_try
="$ac_compile"
7352 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7353 *) ac_try_echo=$ac_try;;
7355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7356 (eval "$ac_compile") 2>conftest.er1
7358 grep -v '^ *+' conftest.er1 >conftest.err
7360 cat conftest.err >&5
7361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362 (exit $ac_status); } && {
7363 test -z "$ac_c_werror_flag" ||
7364 test ! -s conftest.err
7365 } && test -s conftest.$ac_objext; then
7368 cat >conftest.$ac_ext <<_ACEOF
7371 cat confdefs.h >>conftest.$ac_ext
7372 cat >>conftest.$ac_ext <<_ACEOF
7373 /* end confdefs.h. */
7374 $ac_includes_default
7375 typedef long ac__type_sizeof_;
7379 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7386 rm -f conftest.$ac_objext
7387 if { (ac_try="$ac_compile"
7389 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7390 *) ac_try_echo
=$ac_try;;
7392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7393 (eval "$ac_compile") 2>conftest.er1
7395 grep -v '^ *+' conftest.er1
>conftest.err
7397 cat conftest.err
>&5
7398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7399 (exit $ac_status); } && {
7400 test -z "$ac_c_werror_flag" ||
7401 test ! -s conftest.err
7402 } && test -s conftest.
$ac_objext; then
7403 ac_hi
=$ac_mid; break
7405 echo "$as_me: failed program was:" >&5
7406 sed 's/^/| /' conftest.
$ac_ext >&5
7408 ac_lo
=`expr $ac_mid + 1`
7409 if test $ac_lo -le $ac_mid; then
7413 ac_mid
=`expr 2 '*' $ac_mid + 1`
7416 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7419 echo "$as_me: failed program was:" >&5
7420 sed 's/^/| /' conftest.
$ac_ext >&5
7422 cat >conftest.
$ac_ext <<_ACEOF
7425 cat confdefs.h
>>conftest.
$ac_ext
7426 cat >>conftest.
$ac_ext <<_ACEOF
7427 /* end confdefs.h. */
7428 $ac_includes_default
7429 typedef long ac__type_sizeof_;
7433 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7440 rm -f conftest.
$ac_objext
7441 if { (ac_try
="$ac_compile"
7443 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7444 *) ac_try_echo=$ac_try;;
7446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7447 (eval "$ac_compile") 2>conftest.er1
7449 grep -v '^ *+' conftest.er1 >conftest.err
7451 cat conftest.err >&5
7452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7453 (exit $ac_status); } && {
7454 test -z "$ac_c_werror_flag" ||
7455 test ! -s conftest.err
7456 } && test -s conftest.$ac_objext; then
7459 cat >conftest.$ac_ext <<_ACEOF
7462 cat confdefs.h >>conftest.$ac_ext
7463 cat >>conftest.$ac_ext <<_ACEOF
7464 /* end confdefs.h. */
7465 $ac_includes_default
7466 typedef long ac__type_sizeof_;
7470 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7477 rm -f conftest.$ac_objext
7478 if { (ac_try="$ac_compile"
7480 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7481 *) ac_try_echo
=$ac_try;;
7483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7484 (eval "$ac_compile") 2>conftest.er1
7486 grep -v '^ *+' conftest.er1
>conftest.err
7488 cat conftest.err
>&5
7489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7490 (exit $ac_status); } && {
7491 test -z "$ac_c_werror_flag" ||
7492 test ! -s conftest.err
7493 } && test -s conftest.
$ac_objext; then
7494 ac_lo
=$ac_mid; break
7496 echo "$as_me: failed program was:" >&5
7497 sed 's/^/| /' conftest.
$ac_ext >&5
7499 ac_hi
=`expr '(' $ac_mid ')' - 1`
7500 if test $ac_mid -le $ac_hi; then
7504 ac_mid
=`expr 2 '*' $ac_mid`
7507 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7510 echo "$as_me: failed program was:" >&5
7511 sed 's/^/| /' conftest.
$ac_ext >&5
7516 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7519 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7520 # Binary search between lo and hi bounds.
7521 while test "x$ac_lo" != "x$ac_hi"; do
7522 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7523 cat >conftest.
$ac_ext <<_ACEOF
7526 cat confdefs.h
>>conftest.
$ac_ext
7527 cat >>conftest.
$ac_ext <<_ACEOF
7528 /* end confdefs.h. */
7529 $ac_includes_default
7530 typedef long ac__type_sizeof_;
7534 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7541 rm -f conftest.
$ac_objext
7542 if { (ac_try
="$ac_compile"
7544 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7545 *) ac_try_echo=$ac_try;;
7547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7548 (eval "$ac_compile") 2>conftest.er1
7550 grep -v '^ *+' conftest.er1 >conftest.err
7552 cat conftest.err >&5
7553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554 (exit $ac_status); } && {
7555 test -z "$ac_c_werror_flag" ||
7556 test ! -s conftest.err
7557 } && test -s conftest.$ac_objext; then
7560 echo "$as_me: failed program was:" >&5
7561 sed 's/^/| /' conftest.$ac_ext >&5
7563 ac_lo=`expr '(' $ac_mid ')' + 1`
7566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7569 ?*) ac_cv_sizeof_long=$ac_lo;;
7570 '') if test "$ac_cv_type_long" = yes; then
7571 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
7572 See \`config.log
' for more details." >&5
7573 echo "$as_me: error: cannot compute sizeof (long)
7574 See \`config.log' for more details.
" >&2;}
7575 { (exit 77); exit 77; }; }
7581 cat >conftest.$ac_ext <<_ACEOF
7584 cat confdefs.h >>conftest.$ac_ext
7585 cat >>conftest.$ac_ext <<_ACEOF
7586 /* end confdefs.h. */
7587 $ac_includes_default
7588 typedef long ac__type_sizeof_;
7589 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7590 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7597 FILE *f = fopen ("conftest.val
", "w
");
7600 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7602 long int i = longval ();
7603 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7605 fprintf (f, "%ld
\n", i);
7609 unsigned long int i = ulongval ();
7610 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7612 fprintf (f, "%lu
\n", i);
7614 return ferror (f) || fclose (f) != 0;
7620 rm -f conftest$ac_exeext
7621 if { (ac_try="$ac_link"
7623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7624 *) ac_try_echo=$ac_try;;
7626 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7627 (eval "$ac_link") 2>&5
7629 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7630 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7631 { (case "(($ac_try" in
7632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7633 *) ac_try_echo=$ac_try;;
7635 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7636 (eval "$ac_try") 2>&5
7638 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7639 (exit $ac_status); }; }; then
7640 ac_cv_sizeof_long=`cat conftest.val`
7642 echo "$as_me: program exited with status
$ac_status" >&5
7643 echo "$as_me: failed program was
:" >&5
7644 sed 's/^/| /' conftest.$ac_ext >&5
7647 if test "$ac_cv_type_long" = yes; then
7648 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long
)
7649 See \
`config.log' for more details." >&5
7650 echo "$as_me: error: cannot compute sizeof (long)
7651 See \`config.log
' for more details." >&2;}
7652 { (exit 77); exit 77; }; }
7657 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7661 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7662 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
7666 cat >>confdefs.h <<_ACEOF
7667 #define SIZEOF_LONG $ac_cv_sizeof_long
7671 { echo "$as_me:$LINENO: checking for void *" >&5
7672 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
7673 if test "${ac_cv_type_void_p+set}" = set; then
7674 echo $ECHO_N "(cached) $ECHO_C" >&6
7676 cat >conftest.$ac_ext <<_ACEOF
7679 cat confdefs.h >>conftest.$ac_ext
7680 cat >>conftest.$ac_ext <<_ACEOF
7681 /* end confdefs.h. */
7682 $ac_includes_default
7683 typedef void * ac__type_new_;
7687 if ((ac__type_new_ *) 0)
7689 if (sizeof (ac__type_new_))
7695 rm -f conftest.$ac_objext
7696 if { (ac_try="$ac_compile"
7698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7699 *) ac_try_echo=$ac_try;;
7701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7702 (eval "$ac_compile") 2>conftest.er1
7704 grep -v '^
*+' conftest.er1 >conftest.err
7706 cat conftest.err >&5
7707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708 (exit $ac_status); } && {
7709 test -z "$ac_c_werror_flag" ||
7710 test ! -s conftest.err
7711 } && test -s conftest.$ac_objext; then
7712 ac_cv_type_void_p=yes
7714 echo "$as_me: failed program was:" >&5
7715 sed 's
/^
/|
/' conftest.$ac_ext >&5
7717 ac_cv_type_void_p=no
7720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7722 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
7723 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
7725 # The cast to long int works around a bug in the HP C Compiler
7726 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7727 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7728 # This bug is HP SR number 8606223364.
7729 { echo "$as_me:$LINENO: checking size of void *" >&5
7730 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
7731 if test "${ac_cv_sizeof_void_p+set}" = set; then
7732 echo $ECHO_N "(cached) $ECHO_C" >&6
7734 if test "$cross_compiling" = yes; then
7735 # Depending upon the size, compute the lo and hi bounds.
7736 cat >conftest.
$ac_ext <<_ACEOF
7739 cat confdefs.h
>>conftest.
$ac_ext
7740 cat >>conftest.
$ac_ext <<_ACEOF
7741 /* end confdefs.h. */
7742 $ac_includes_default
7743 typedef void * ac__type_sizeof_;
7747 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7754 rm -f conftest.
$ac_objext
7755 if { (ac_try
="$ac_compile"
7757 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7758 *) ac_try_echo=$ac_try;;
7760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7761 (eval "$ac_compile") 2>conftest.er1
7763 grep -v '^ *+' conftest.er1 >conftest.err
7765 cat conftest.err >&5
7766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 (exit $ac_status); } && {
7768 test -z "$ac_c_werror_flag" ||
7769 test ! -s conftest.err
7770 } && test -s conftest.$ac_objext; then
7773 cat >conftest.$ac_ext <<_ACEOF
7776 cat confdefs.h >>conftest.$ac_ext
7777 cat >>conftest.$ac_ext <<_ACEOF
7778 /* end confdefs.h. */
7779 $ac_includes_default
7780 typedef void * ac__type_sizeof_;
7784 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7791 rm -f conftest.$ac_objext
7792 if { (ac_try="$ac_compile"
7794 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7795 *) ac_try_echo
=$ac_try;;
7797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7798 (eval "$ac_compile") 2>conftest.er1
7800 grep -v '^ *+' conftest.er1
>conftest.err
7802 cat conftest.err
>&5
7803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804 (exit $ac_status); } && {
7805 test -z "$ac_c_werror_flag" ||
7806 test ! -s conftest.err
7807 } && test -s conftest.
$ac_objext; then
7808 ac_hi
=$ac_mid; break
7810 echo "$as_me: failed program was:" >&5
7811 sed 's/^/| /' conftest.
$ac_ext >&5
7813 ac_lo
=`expr $ac_mid + 1`
7814 if test $ac_lo -le $ac_mid; then
7818 ac_mid
=`expr 2 '*' $ac_mid + 1`
7821 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7824 echo "$as_me: failed program was:" >&5
7825 sed 's/^/| /' conftest.
$ac_ext >&5
7827 cat >conftest.
$ac_ext <<_ACEOF
7830 cat confdefs.h
>>conftest.
$ac_ext
7831 cat >>conftest.
$ac_ext <<_ACEOF
7832 /* end confdefs.h. */
7833 $ac_includes_default
7834 typedef void * ac__type_sizeof_;
7838 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7845 rm -f conftest.
$ac_objext
7846 if { (ac_try
="$ac_compile"
7848 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7849 *) ac_try_echo=$ac_try;;
7851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7852 (eval "$ac_compile") 2>conftest.er1
7854 grep -v '^ *+' conftest.er1 >conftest.err
7856 cat conftest.err >&5
7857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858 (exit $ac_status); } && {
7859 test -z "$ac_c_werror_flag" ||
7860 test ! -s conftest.err
7861 } && test -s conftest.$ac_objext; then
7864 cat >conftest.$ac_ext <<_ACEOF
7867 cat confdefs.h >>conftest.$ac_ext
7868 cat >>conftest.$ac_ext <<_ACEOF
7869 /* end confdefs.h. */
7870 $ac_includes_default
7871 typedef void * ac__type_sizeof_;
7875 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7882 rm -f conftest.$ac_objext
7883 if { (ac_try="$ac_compile"
7885 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7886 *) ac_try_echo
=$ac_try;;
7888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7889 (eval "$ac_compile") 2>conftest.er1
7891 grep -v '^ *+' conftest.er1
>conftest.err
7893 cat conftest.err
>&5
7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); } && {
7896 test -z "$ac_c_werror_flag" ||
7897 test ! -s conftest.err
7898 } && test -s conftest.
$ac_objext; then
7899 ac_lo
=$ac_mid; break
7901 echo "$as_me: failed program was:" >&5
7902 sed 's/^/| /' conftest.
$ac_ext >&5
7904 ac_hi
=`expr '(' $ac_mid ')' - 1`
7905 if test $ac_mid -le $ac_hi; then
7909 ac_mid
=`expr 2 '*' $ac_mid`
7912 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7915 echo "$as_me: failed program was:" >&5
7916 sed 's/^/| /' conftest.
$ac_ext >&5
7921 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7924 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7925 # Binary search between lo and hi bounds.
7926 while test "x$ac_lo" != "x$ac_hi"; do
7927 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7928 cat >conftest.
$ac_ext <<_ACEOF
7931 cat confdefs.h
>>conftest.
$ac_ext
7932 cat >>conftest.
$ac_ext <<_ACEOF
7933 /* end confdefs.h. */
7934 $ac_includes_default
7935 typedef void * ac__type_sizeof_;
7939 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7946 rm -f conftest.
$ac_objext
7947 if { (ac_try
="$ac_compile"
7949 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7950 *) ac_try_echo=$ac_try;;
7952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7953 (eval "$ac_compile") 2>conftest.er1
7955 grep -v '^ *+' conftest.er1 >conftest.err
7957 cat conftest.err >&5
7958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959 (exit $ac_status); } && {
7960 test -z "$ac_c_werror_flag" ||
7961 test ! -s conftest.err
7962 } && test -s conftest.$ac_objext; then
7965 echo "$as_me: failed program was:" >&5
7966 sed 's/^/| /' conftest.$ac_ext >&5
7968 ac_lo=`expr '(' $ac_mid ')' + 1`
7971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7974 ?*) ac_cv_sizeof_void_p=$ac_lo;;
7975 '') if test "$ac_cv_type_void_p" = yes; then
7976 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
7977 See \`config.log
' for more details." >&5
7978 echo "$as_me: error: cannot compute sizeof (void *)
7979 See \`config.log' for more details.
" >&2;}
7980 { (exit 77); exit 77; }; }
7982 ac_cv_sizeof_void_p=0
7986 cat >conftest.$ac_ext <<_ACEOF
7989 cat confdefs.h >>conftest.$ac_ext
7990 cat >>conftest.$ac_ext <<_ACEOF
7991 /* end confdefs.h. */
7992 $ac_includes_default
7993 typedef void * ac__type_sizeof_;
7994 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7995 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8002 FILE *f = fopen ("conftest.val
", "w
");
8005 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8007 long int i = longval ();
8008 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8010 fprintf (f, "%ld
\n", i);
8014 unsigned long int i = ulongval ();
8015 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8017 fprintf (f, "%lu
\n", i);
8019 return ferror (f) || fclose (f) != 0;
8025 rm -f conftest$ac_exeext
8026 if { (ac_try="$ac_link"
8028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8029 *) ac_try_echo=$ac_try;;
8031 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8032 (eval "$ac_link") 2>&5
8034 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8035 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8036 { (case "(($ac_try" in
8037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8038 *) ac_try_echo=$ac_try;;
8040 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8041 (eval "$ac_try") 2>&5
8043 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8044 (exit $ac_status); }; }; then
8045 ac_cv_sizeof_void_p=`cat conftest.val`
8047 echo "$as_me: program exited with status
$ac_status" >&5
8048 echo "$as_me: failed program was
:" >&5
8049 sed 's/^/| /' conftest.$ac_ext >&5
8052 if test "$ac_cv_type_void_p" = yes; then
8053 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(void
*)
8054 See \
`config.log' for more details." >&5
8055 echo "$as_me: error: cannot compute sizeof (void *)
8056 See \`config.log
' for more details." >&2;}
8057 { (exit 77); exit 77; }; }
8059 ac_cv_sizeof_void_p=0
8062 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8066 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8067 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8071 cat >>confdefs.h <<_ACEOF
8072 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8076 { echo "$as_me:$LINENO: checking for short" >&5
8077 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
8078 if test "${ac_cv_type_short+set}" = set; then
8079 echo $ECHO_N "(cached) $ECHO_C" >&6
8081 cat >conftest.$ac_ext <<_ACEOF
8084 cat confdefs.h >>conftest.$ac_ext
8085 cat >>conftest.$ac_ext <<_ACEOF
8086 /* end confdefs.h. */
8087 $ac_includes_default
8088 typedef short ac__type_new_;
8092 if ((ac__type_new_ *) 0)
8094 if (sizeof (ac__type_new_))
8100 rm -f conftest.$ac_objext
8101 if { (ac_try="$ac_compile"
8103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8104 *) ac_try_echo=$ac_try;;
8106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8107 (eval "$ac_compile") 2>conftest.er1
8109 grep -v '^
*+' conftest.er1 >conftest.err
8111 cat conftest.err >&5
8112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113 (exit $ac_status); } && {
8114 test -z "$ac_c_werror_flag" ||
8115 test ! -s conftest.err
8116 } && test -s conftest.$ac_objext; then
8117 ac_cv_type_short=yes
8119 echo "$as_me: failed program was:" >&5
8120 sed 's
/^
/|
/' conftest.$ac_ext >&5
8125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8127 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8128 echo "${ECHO_T}$ac_cv_type_short" >&6; }
8130 # The cast to long int works around a bug in the HP C Compiler
8131 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8132 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8133 # This bug is HP SR number 8606223364.
8134 { echo "$as_me:$LINENO: checking size of short" >&5
8135 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8136 if test "${ac_cv_sizeof_short+set}" = set; then
8137 echo $ECHO_N "(cached) $ECHO_C" >&6
8139 if test "$cross_compiling" = yes; then
8140 # Depending upon the size, compute the lo and hi bounds.
8141 cat >conftest.
$ac_ext <<_ACEOF
8144 cat confdefs.h
>>conftest.
$ac_ext
8145 cat >>conftest.
$ac_ext <<_ACEOF
8146 /* end confdefs.h. */
8147 $ac_includes_default
8148 typedef short ac__type_sizeof_;
8152 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8159 rm -f conftest.
$ac_objext
8160 if { (ac_try
="$ac_compile"
8162 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8163 *) ac_try_echo=$ac_try;;
8165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8166 (eval "$ac_compile") 2>conftest.er1
8168 grep -v '^ *+' conftest.er1 >conftest.err
8170 cat conftest.err >&5
8171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172 (exit $ac_status); } && {
8173 test -z "$ac_c_werror_flag" ||
8174 test ! -s conftest.err
8175 } && test -s conftest.$ac_objext; then
8178 cat >conftest.$ac_ext <<_ACEOF
8181 cat confdefs.h >>conftest.$ac_ext
8182 cat >>conftest.$ac_ext <<_ACEOF
8183 /* end confdefs.h. */
8184 $ac_includes_default
8185 typedef short ac__type_sizeof_;
8189 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8196 rm -f conftest.$ac_objext
8197 if { (ac_try="$ac_compile"
8199 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8200 *) ac_try_echo
=$ac_try;;
8202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8203 (eval "$ac_compile") 2>conftest.er1
8205 grep -v '^ *+' conftest.er1
>conftest.err
8207 cat conftest.err
>&5
8208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209 (exit $ac_status); } && {
8210 test -z "$ac_c_werror_flag" ||
8211 test ! -s conftest.err
8212 } && test -s conftest.
$ac_objext; then
8213 ac_hi
=$ac_mid; break
8215 echo "$as_me: failed program was:" >&5
8216 sed 's/^/| /' conftest.
$ac_ext >&5
8218 ac_lo
=`expr $ac_mid + 1`
8219 if test $ac_lo -le $ac_mid; then
8223 ac_mid
=`expr 2 '*' $ac_mid + 1`
8226 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8229 echo "$as_me: failed program was:" >&5
8230 sed 's/^/| /' conftest.
$ac_ext >&5
8232 cat >conftest.
$ac_ext <<_ACEOF
8235 cat confdefs.h
>>conftest.
$ac_ext
8236 cat >>conftest.
$ac_ext <<_ACEOF
8237 /* end confdefs.h. */
8238 $ac_includes_default
8239 typedef short ac__type_sizeof_;
8243 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8250 rm -f conftest.
$ac_objext
8251 if { (ac_try
="$ac_compile"
8253 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8254 *) ac_try_echo=$ac_try;;
8256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8257 (eval "$ac_compile") 2>conftest.er1
8259 grep -v '^ *+' conftest.er1 >conftest.err
8261 cat conftest.err >&5
8262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263 (exit $ac_status); } && {
8264 test -z "$ac_c_werror_flag" ||
8265 test ! -s conftest.err
8266 } && test -s conftest.$ac_objext; then
8269 cat >conftest.$ac_ext <<_ACEOF
8272 cat confdefs.h >>conftest.$ac_ext
8273 cat >>conftest.$ac_ext <<_ACEOF
8274 /* end confdefs.h. */
8275 $ac_includes_default
8276 typedef short ac__type_sizeof_;
8280 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8287 rm -f conftest.$ac_objext
8288 if { (ac_try="$ac_compile"
8290 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8291 *) ac_try_echo
=$ac_try;;
8293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8294 (eval "$ac_compile") 2>conftest.er1
8296 grep -v '^ *+' conftest.er1
>conftest.err
8298 cat conftest.err
>&5
8299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300 (exit $ac_status); } && {
8301 test -z "$ac_c_werror_flag" ||
8302 test ! -s conftest.err
8303 } && test -s conftest.
$ac_objext; then
8304 ac_lo
=$ac_mid; break
8306 echo "$as_me: failed program was:" >&5
8307 sed 's/^/| /' conftest.
$ac_ext >&5
8309 ac_hi
=`expr '(' $ac_mid ')' - 1`
8310 if test $ac_mid -le $ac_hi; then
8314 ac_mid
=`expr 2 '*' $ac_mid`
8317 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8320 echo "$as_me: failed program was:" >&5
8321 sed 's/^/| /' conftest.
$ac_ext >&5
8326 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8329 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8330 # Binary search between lo and hi bounds.
8331 while test "x$ac_lo" != "x$ac_hi"; do
8332 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8333 cat >conftest.
$ac_ext <<_ACEOF
8336 cat confdefs.h
>>conftest.
$ac_ext
8337 cat >>conftest.
$ac_ext <<_ACEOF
8338 /* end confdefs.h. */
8339 $ac_includes_default
8340 typedef short ac__type_sizeof_;
8344 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8351 rm -f conftest.
$ac_objext
8352 if { (ac_try
="$ac_compile"
8354 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8355 *) ac_try_echo=$ac_try;;
8357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8358 (eval "$ac_compile") 2>conftest.er1
8360 grep -v '^ *+' conftest.er1 >conftest.err
8362 cat conftest.err >&5
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); } && {
8365 test -z "$ac_c_werror_flag" ||
8366 test ! -s conftest.err
8367 } && test -s conftest.$ac_objext; then
8370 echo "$as_me: failed program was:" >&5
8371 sed 's/^/| /' conftest.$ac_ext >&5
8373 ac_lo=`expr '(' $ac_mid ')' + 1`
8376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8379 ?*) ac_cv_sizeof_short=$ac_lo;;
8380 '') if test "$ac_cv_type_short" = yes; then
8381 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8382 See \`config.log
' for more details." >&5
8383 echo "$as_me: error: cannot compute sizeof (short)
8384 See \`config.log' for more details.
" >&2;}
8385 { (exit 77); exit 77; }; }
8387 ac_cv_sizeof_short=0
8391 cat >conftest.$ac_ext <<_ACEOF
8394 cat confdefs.h >>conftest.$ac_ext
8395 cat >>conftest.$ac_ext <<_ACEOF
8396 /* end confdefs.h. */
8397 $ac_includes_default
8398 typedef short ac__type_sizeof_;
8399 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8400 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8407 FILE *f = fopen ("conftest.val
", "w
");
8410 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8412 long int i = longval ();
8413 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8415 fprintf (f, "%ld
\n", i);
8419 unsigned long int i = ulongval ();
8420 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8422 fprintf (f, "%lu
\n", i);
8424 return ferror (f) || fclose (f) != 0;
8430 rm -f conftest$ac_exeext
8431 if { (ac_try="$ac_link"
8433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8434 *) ac_try_echo=$ac_try;;
8436 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8437 (eval "$ac_link") 2>&5
8439 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8440 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8441 { (case "(($ac_try" in
8442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8443 *) ac_try_echo=$ac_try;;
8445 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8446 (eval "$ac_try") 2>&5
8448 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8449 (exit $ac_status); }; }; then
8450 ac_cv_sizeof_short=`cat conftest.val`
8452 echo "$as_me: program exited with status
$ac_status" >&5
8453 echo "$as_me: failed program was
:" >&5
8454 sed 's/^/| /' conftest.$ac_ext >&5
8457 if test "$ac_cv_type_short" = yes; then
8458 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(short
)
8459 See \
`config.log' for more details." >&5
8460 echo "$as_me: error: cannot compute sizeof (short)
8461 See \`config.log
' for more details." >&2;}
8462 { (exit 77); exit 77; }; }
8464 ac_cv_sizeof_short=0
8467 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8471 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
8472 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
8476 cat >>confdefs.h <<_ACEOF
8477 #define SIZEOF_SHORT $ac_cv_sizeof_short
8481 { echo "$as_me:$LINENO: checking for float" >&5
8482 echo $ECHO_N "checking for float... $ECHO_C" >&6; }
8483 if test "${ac_cv_type_float+set}" = set; then
8484 echo $ECHO_N "(cached) $ECHO_C" >&6
8486 cat >conftest.$ac_ext <<_ACEOF
8489 cat confdefs.h >>conftest.$ac_ext
8490 cat >>conftest.$ac_ext <<_ACEOF
8491 /* end confdefs.h. */
8492 $ac_includes_default
8493 typedef float ac__type_new_;
8497 if ((ac__type_new_ *) 0)
8499 if (sizeof (ac__type_new_))
8505 rm -f conftest.$ac_objext
8506 if { (ac_try="$ac_compile"
8508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8509 *) ac_try_echo=$ac_try;;
8511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8512 (eval "$ac_compile") 2>conftest.er1
8514 grep -v '^
*+' conftest.er1 >conftest.err
8516 cat conftest.err >&5
8517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518 (exit $ac_status); } && {
8519 test -z "$ac_c_werror_flag" ||
8520 test ! -s conftest.err
8521 } && test -s conftest.$ac_objext; then
8522 ac_cv_type_float=yes
8524 echo "$as_me: failed program was:" >&5
8525 sed 's
/^
/|
/' conftest.$ac_ext >&5
8530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8532 { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
8533 echo "${ECHO_T}$ac_cv_type_float" >&6; }
8535 # The cast to long int works around a bug in the HP C Compiler
8536 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8537 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8538 # This bug is HP SR number 8606223364.
8539 { echo "$as_me:$LINENO: checking size of float" >&5
8540 echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
8541 if test "${ac_cv_sizeof_float+set}" = set; then
8542 echo $ECHO_N "(cached) $ECHO_C" >&6
8544 if test "$cross_compiling" = yes; then
8545 # Depending upon the size, compute the lo and hi bounds.
8546 cat >conftest.
$ac_ext <<_ACEOF
8549 cat confdefs.h
>>conftest.
$ac_ext
8550 cat >>conftest.
$ac_ext <<_ACEOF
8551 /* end confdefs.h. */
8552 $ac_includes_default
8553 typedef float ac__type_sizeof_;
8557 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8564 rm -f conftest.
$ac_objext
8565 if { (ac_try
="$ac_compile"
8567 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8568 *) ac_try_echo=$ac_try;;
8570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8571 (eval "$ac_compile") 2>conftest.er1
8573 grep -v '^ *+' conftest.er1 >conftest.err
8575 cat conftest.err >&5
8576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577 (exit $ac_status); } && {
8578 test -z "$ac_c_werror_flag" ||
8579 test ! -s conftest.err
8580 } && test -s conftest.$ac_objext; then
8583 cat >conftest.$ac_ext <<_ACEOF
8586 cat confdefs.h >>conftest.$ac_ext
8587 cat >>conftest.$ac_ext <<_ACEOF
8588 /* end confdefs.h. */
8589 $ac_includes_default
8590 typedef float ac__type_sizeof_;
8594 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8601 rm -f conftest.$ac_objext
8602 if { (ac_try="$ac_compile"
8604 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8605 *) ac_try_echo
=$ac_try;;
8607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8608 (eval "$ac_compile") 2>conftest.er1
8610 grep -v '^ *+' conftest.er1
>conftest.err
8612 cat conftest.err
>&5
8613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614 (exit $ac_status); } && {
8615 test -z "$ac_c_werror_flag" ||
8616 test ! -s conftest.err
8617 } && test -s conftest.
$ac_objext; then
8618 ac_hi
=$ac_mid; break
8620 echo "$as_me: failed program was:" >&5
8621 sed 's/^/| /' conftest.
$ac_ext >&5
8623 ac_lo
=`expr $ac_mid + 1`
8624 if test $ac_lo -le $ac_mid; then
8628 ac_mid
=`expr 2 '*' $ac_mid + 1`
8631 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8634 echo "$as_me: failed program was:" >&5
8635 sed 's/^/| /' conftest.
$ac_ext >&5
8637 cat >conftest.
$ac_ext <<_ACEOF
8640 cat confdefs.h
>>conftest.
$ac_ext
8641 cat >>conftest.
$ac_ext <<_ACEOF
8642 /* end confdefs.h. */
8643 $ac_includes_default
8644 typedef float ac__type_sizeof_;
8648 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8655 rm -f conftest.
$ac_objext
8656 if { (ac_try
="$ac_compile"
8658 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8659 *) ac_try_echo=$ac_try;;
8661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8662 (eval "$ac_compile") 2>conftest.er1
8664 grep -v '^ *+' conftest.er1 >conftest.err
8666 cat conftest.err >&5
8667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668 (exit $ac_status); } && {
8669 test -z "$ac_c_werror_flag" ||
8670 test ! -s conftest.err
8671 } && test -s conftest.$ac_objext; then
8674 cat >conftest.$ac_ext <<_ACEOF
8677 cat confdefs.h >>conftest.$ac_ext
8678 cat >>conftest.$ac_ext <<_ACEOF
8679 /* end confdefs.h. */
8680 $ac_includes_default
8681 typedef float ac__type_sizeof_;
8685 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8692 rm -f conftest.$ac_objext
8693 if { (ac_try="$ac_compile"
8695 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8696 *) ac_try_echo
=$ac_try;;
8698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8699 (eval "$ac_compile") 2>conftest.er1
8701 grep -v '^ *+' conftest.er1
>conftest.err
8703 cat conftest.err
>&5
8704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705 (exit $ac_status); } && {
8706 test -z "$ac_c_werror_flag" ||
8707 test ! -s conftest.err
8708 } && test -s conftest.
$ac_objext; then
8709 ac_lo
=$ac_mid; break
8711 echo "$as_me: failed program was:" >&5
8712 sed 's/^/| /' conftest.
$ac_ext >&5
8714 ac_hi
=`expr '(' $ac_mid ')' - 1`
8715 if test $ac_mid -le $ac_hi; then
8719 ac_mid
=`expr 2 '*' $ac_mid`
8722 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8725 echo "$as_me: failed program was:" >&5
8726 sed 's/^/| /' conftest.
$ac_ext >&5
8731 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8734 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8735 # Binary search between lo and hi bounds.
8736 while test "x$ac_lo" != "x$ac_hi"; do
8737 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8738 cat >conftest.
$ac_ext <<_ACEOF
8741 cat confdefs.h
>>conftest.
$ac_ext
8742 cat >>conftest.
$ac_ext <<_ACEOF
8743 /* end confdefs.h. */
8744 $ac_includes_default
8745 typedef float ac__type_sizeof_;
8749 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8756 rm -f conftest.
$ac_objext
8757 if { (ac_try
="$ac_compile"
8759 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8760 *) ac_try_echo=$ac_try;;
8762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8763 (eval "$ac_compile") 2>conftest.er1
8765 grep -v '^ *+' conftest.er1 >conftest.err
8767 cat conftest.err >&5
8768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769 (exit $ac_status); } && {
8770 test -z "$ac_c_werror_flag" ||
8771 test ! -s conftest.err
8772 } && test -s conftest.$ac_objext; then
8775 echo "$as_me: failed program was:" >&5
8776 sed 's/^/| /' conftest.$ac_ext >&5
8778 ac_lo=`expr '(' $ac_mid ')' + 1`
8781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8784 ?*) ac_cv_sizeof_float=$ac_lo;;
8785 '') if test "$ac_cv_type_float" = yes; then
8786 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
8787 See \`config.log
' for more details." >&5
8788 echo "$as_me: error: cannot compute sizeof (float)
8789 See \`config.log' for more details.
" >&2;}
8790 { (exit 77); exit 77; }; }
8792 ac_cv_sizeof_float=0
8796 cat >conftest.$ac_ext <<_ACEOF
8799 cat confdefs.h >>conftest.$ac_ext
8800 cat >>conftest.$ac_ext <<_ACEOF
8801 /* end confdefs.h. */
8802 $ac_includes_default
8803 typedef float ac__type_sizeof_;
8804 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8805 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8812 FILE *f = fopen ("conftest.val
", "w
");
8815 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8817 long int i = longval ();
8818 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8820 fprintf (f, "%ld
\n", i);
8824 unsigned long int i = ulongval ();
8825 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8827 fprintf (f, "%lu
\n", i);
8829 return ferror (f) || fclose (f) != 0;
8835 rm -f conftest$ac_exeext
8836 if { (ac_try="$ac_link"
8838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8839 *) ac_try_echo=$ac_try;;
8841 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8842 (eval "$ac_link") 2>&5
8844 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8845 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8846 { (case "(($ac_try" in
8847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8848 *) ac_try_echo=$ac_try;;
8850 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8851 (eval "$ac_try") 2>&5
8853 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8854 (exit $ac_status); }; }; then
8855 ac_cv_sizeof_float=`cat conftest.val`
8857 echo "$as_me: program exited with status
$ac_status" >&5
8858 echo "$as_me: failed program was
:" >&5
8859 sed 's/^/| /' conftest.$ac_ext >&5
8862 if test "$ac_cv_type_float" = yes; then
8863 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(float
)
8864 See \
`config.log' for more details." >&5
8865 echo "$as_me: error: cannot compute sizeof (float)
8866 See \`config.log
' for more details." >&2;}
8867 { (exit 77); exit 77; }; }
8869 ac_cv_sizeof_float=0
8872 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8876 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
8877 echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
8881 cat >>confdefs.h <<_ACEOF
8882 #define SIZEOF_FLOAT $ac_cv_sizeof_float
8886 { echo "$as_me:$LINENO: checking for double" >&5
8887 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
8888 if test "${ac_cv_type_double+set}" = set; then
8889 echo $ECHO_N "(cached) $ECHO_C" >&6
8891 cat >conftest.$ac_ext <<_ACEOF
8894 cat confdefs.h >>conftest.$ac_ext
8895 cat >>conftest.$ac_ext <<_ACEOF
8896 /* end confdefs.h. */
8897 $ac_includes_default
8898 typedef double ac__type_new_;
8902 if ((ac__type_new_ *) 0)
8904 if (sizeof (ac__type_new_))
8910 rm -f conftest.$ac_objext
8911 if { (ac_try="$ac_compile"
8913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8914 *) ac_try_echo=$ac_try;;
8916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8917 (eval "$ac_compile") 2>conftest.er1
8919 grep -v '^
*+' conftest.er1 >conftest.err
8921 cat conftest.err >&5
8922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923 (exit $ac_status); } && {
8924 test -z "$ac_c_werror_flag" ||
8925 test ! -s conftest.err
8926 } && test -s conftest.$ac_objext; then
8927 ac_cv_type_double=yes
8929 echo "$as_me: failed program was:" >&5
8930 sed 's
/^
/|
/' conftest.$ac_ext >&5
8932 ac_cv_type_double=no
8935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8937 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
8938 echo "${ECHO_T}$ac_cv_type_double" >&6; }
8940 # The cast to long int works around a bug in the HP C Compiler
8941 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8942 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8943 # This bug is HP SR number 8606223364.
8944 { echo "$as_me:$LINENO: checking size of double" >&5
8945 echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
8946 if test "${ac_cv_sizeof_double+set}" = set; then
8947 echo $ECHO_N "(cached) $ECHO_C" >&6
8949 if test "$cross_compiling" = yes; then
8950 # Depending upon the size, compute the lo and hi bounds.
8951 cat >conftest.
$ac_ext <<_ACEOF
8954 cat confdefs.h
>>conftest.
$ac_ext
8955 cat >>conftest.
$ac_ext <<_ACEOF
8956 /* end confdefs.h. */
8957 $ac_includes_default
8958 typedef double ac__type_sizeof_;
8962 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8969 rm -f conftest.
$ac_objext
8970 if { (ac_try
="$ac_compile"
8972 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8973 *) ac_try_echo=$ac_try;;
8975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8976 (eval "$ac_compile") 2>conftest.er1
8978 grep -v '^ *+' conftest.er1 >conftest.err
8980 cat conftest.err >&5
8981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982 (exit $ac_status); } && {
8983 test -z "$ac_c_werror_flag" ||
8984 test ! -s conftest.err
8985 } && test -s conftest.$ac_objext; then
8988 cat >conftest.$ac_ext <<_ACEOF
8991 cat confdefs.h >>conftest.$ac_ext
8992 cat >>conftest.$ac_ext <<_ACEOF
8993 /* end confdefs.h. */
8994 $ac_includes_default
8995 typedef double ac__type_sizeof_;
8999 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9006 rm -f conftest.$ac_objext
9007 if { (ac_try="$ac_compile"
9009 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9010 *) ac_try_echo
=$ac_try;;
9012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9013 (eval "$ac_compile") 2>conftest.er1
9015 grep -v '^ *+' conftest.er1
>conftest.err
9017 cat conftest.err
>&5
9018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019 (exit $ac_status); } && {
9020 test -z "$ac_c_werror_flag" ||
9021 test ! -s conftest.err
9022 } && test -s conftest.
$ac_objext; then
9023 ac_hi
=$ac_mid; break
9025 echo "$as_me: failed program was:" >&5
9026 sed 's/^/| /' conftest.
$ac_ext >&5
9028 ac_lo
=`expr $ac_mid + 1`
9029 if test $ac_lo -le $ac_mid; then
9033 ac_mid
=`expr 2 '*' $ac_mid + 1`
9036 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9039 echo "$as_me: failed program was:" >&5
9040 sed 's/^/| /' conftest.
$ac_ext >&5
9042 cat >conftest.
$ac_ext <<_ACEOF
9045 cat confdefs.h
>>conftest.
$ac_ext
9046 cat >>conftest.
$ac_ext <<_ACEOF
9047 /* end confdefs.h. */
9048 $ac_includes_default
9049 typedef double ac__type_sizeof_;
9053 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9060 rm -f conftest.
$ac_objext
9061 if { (ac_try
="$ac_compile"
9063 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9064 *) ac_try_echo=$ac_try;;
9066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9067 (eval "$ac_compile") 2>conftest.er1
9069 grep -v '^ *+' conftest.er1 >conftest.err
9071 cat conftest.err >&5
9072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9073 (exit $ac_status); } && {
9074 test -z "$ac_c_werror_flag" ||
9075 test ! -s conftest.err
9076 } && test -s conftest.$ac_objext; then
9079 cat >conftest.$ac_ext <<_ACEOF
9082 cat confdefs.h >>conftest.$ac_ext
9083 cat >>conftest.$ac_ext <<_ACEOF
9084 /* end confdefs.h. */
9085 $ac_includes_default
9086 typedef double ac__type_sizeof_;
9090 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9097 rm -f conftest.$ac_objext
9098 if { (ac_try="$ac_compile"
9100 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9101 *) ac_try_echo
=$ac_try;;
9103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9104 (eval "$ac_compile") 2>conftest.er1
9106 grep -v '^ *+' conftest.er1
>conftest.err
9108 cat conftest.err
>&5
9109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110 (exit $ac_status); } && {
9111 test -z "$ac_c_werror_flag" ||
9112 test ! -s conftest.err
9113 } && test -s conftest.
$ac_objext; then
9114 ac_lo
=$ac_mid; break
9116 echo "$as_me: failed program was:" >&5
9117 sed 's/^/| /' conftest.
$ac_ext >&5
9119 ac_hi
=`expr '(' $ac_mid ')' - 1`
9120 if test $ac_mid -le $ac_hi; then
9124 ac_mid
=`expr 2 '*' $ac_mid`
9127 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9130 echo "$as_me: failed program was:" >&5
9131 sed 's/^/| /' conftest.
$ac_ext >&5
9136 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9139 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9140 # Binary search between lo and hi bounds.
9141 while test "x$ac_lo" != "x$ac_hi"; do
9142 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9143 cat >conftest.
$ac_ext <<_ACEOF
9146 cat confdefs.h
>>conftest.
$ac_ext
9147 cat >>conftest.
$ac_ext <<_ACEOF
9148 /* end confdefs.h. */
9149 $ac_includes_default
9150 typedef double ac__type_sizeof_;
9154 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9161 rm -f conftest.
$ac_objext
9162 if { (ac_try
="$ac_compile"
9164 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9165 *) ac_try_echo=$ac_try;;
9167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9168 (eval "$ac_compile") 2>conftest.er1
9170 grep -v '^ *+' conftest.er1 >conftest.err
9172 cat conftest.err >&5
9173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174 (exit $ac_status); } && {
9175 test -z "$ac_c_werror_flag" ||
9176 test ! -s conftest.err
9177 } && test -s conftest.$ac_objext; then
9180 echo "$as_me: failed program was:" >&5
9181 sed 's/^/| /' conftest.$ac_ext >&5
9183 ac_lo=`expr '(' $ac_mid ')' + 1`
9186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9189 ?*) ac_cv_sizeof_double=$ac_lo;;
9190 '') if test "$ac_cv_type_double" = yes; then
9191 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9192 See \`config.log
' for more details." >&5
9193 echo "$as_me: error: cannot compute sizeof (double)
9194 See \`config.log' for more details.
" >&2;}
9195 { (exit 77); exit 77; }; }
9197 ac_cv_sizeof_double=0
9201 cat >conftest.$ac_ext <<_ACEOF
9204 cat confdefs.h >>conftest.$ac_ext
9205 cat >>conftest.$ac_ext <<_ACEOF
9206 /* end confdefs.h. */
9207 $ac_includes_default
9208 typedef double ac__type_sizeof_;
9209 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9210 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9217 FILE *f = fopen ("conftest.val
", "w
");
9220 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9222 long int i = longval ();
9223 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9225 fprintf (f, "%ld
\n", i);
9229 unsigned long int i = ulongval ();
9230 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9232 fprintf (f, "%lu
\n", i);
9234 return ferror (f) || fclose (f) != 0;
9240 rm -f conftest$ac_exeext
9241 if { (ac_try="$ac_link"
9243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9244 *) ac_try_echo=$ac_try;;
9246 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9247 (eval "$ac_link") 2>&5
9249 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9250 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9251 { (case "(($ac_try" in
9252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9253 *) ac_try_echo=$ac_try;;
9255 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9256 (eval "$ac_try") 2>&5
9258 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9259 (exit $ac_status); }; }; then
9260 ac_cv_sizeof_double=`cat conftest.val`
9262 echo "$as_me: program exited with status
$ac_status" >&5
9263 echo "$as_me: failed program was
:" >&5
9264 sed 's/^/| /' conftest.$ac_ext >&5
9267 if test "$ac_cv_type_double" = yes; then
9268 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(double
)
9269 See \
`config.log' for more details." >&5
9270 echo "$as_me: error: cannot compute sizeof (double)
9271 See \`config.log
' for more details." >&2;}
9272 { (exit 77); exit 77; }; }
9274 ac_cv_sizeof_double=0
9277 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9281 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
9282 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
9286 cat >>confdefs.h <<_ACEOF
9287 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
9291 { echo "$as_me:$LINENO: checking for fpos_t" >&5
9292 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; }
9293 if test "${ac_cv_type_fpos_t+set}" = set; then
9294 echo $ECHO_N "(cached) $ECHO_C" >&6
9296 cat >conftest.$ac_ext <<_ACEOF
9299 cat confdefs.h >>conftest.$ac_ext
9300 cat >>conftest.$ac_ext <<_ACEOF
9301 /* end confdefs.h. */
9302 $ac_includes_default
9303 typedef fpos_t ac__type_new_;
9307 if ((ac__type_new_ *) 0)
9309 if (sizeof (ac__type_new_))
9315 rm -f conftest.$ac_objext
9316 if { (ac_try="$ac_compile"
9318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9319 *) ac_try_echo=$ac_try;;
9321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9322 (eval "$ac_compile") 2>conftest.er1
9324 grep -v '^
*+' conftest.er1 >conftest.err
9326 cat conftest.err >&5
9327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328 (exit $ac_status); } && {
9329 test -z "$ac_c_werror_flag" ||
9330 test ! -s conftest.err
9331 } && test -s conftest.$ac_objext; then
9332 ac_cv_type_fpos_t=yes
9334 echo "$as_me: failed program was:" >&5
9335 sed 's
/^
/|
/' conftest.$ac_ext >&5
9337 ac_cv_type_fpos_t=no
9340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9342 { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
9343 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; }
9345 # The cast to long int works around a bug in the HP C Compiler
9346 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9347 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9348 # This bug is HP SR number 8606223364.
9349 { echo "$as_me:$LINENO: checking size of fpos_t" >&5
9350 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; }
9351 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
9352 echo $ECHO_N "(cached) $ECHO_C" >&6
9354 if test "$cross_compiling" = yes; then
9355 # Depending upon the size, compute the lo and hi bounds.
9356 cat >conftest.
$ac_ext <<_ACEOF
9359 cat confdefs.h
>>conftest.
$ac_ext
9360 cat >>conftest.
$ac_ext <<_ACEOF
9361 /* end confdefs.h. */
9362 $ac_includes_default
9363 typedef fpos_t ac__type_sizeof_;
9367 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9374 rm -f conftest.
$ac_objext
9375 if { (ac_try
="$ac_compile"
9377 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9378 *) ac_try_echo=$ac_try;;
9380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9381 (eval "$ac_compile") 2>conftest.er1
9383 grep -v '^ *+' conftest.er1 >conftest.err
9385 cat conftest.err >&5
9386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387 (exit $ac_status); } && {
9388 test -z "$ac_c_werror_flag" ||
9389 test ! -s conftest.err
9390 } && test -s conftest.$ac_objext; then
9393 cat >conftest.$ac_ext <<_ACEOF
9396 cat confdefs.h >>conftest.$ac_ext
9397 cat >>conftest.$ac_ext <<_ACEOF
9398 /* end confdefs.h. */
9399 $ac_includes_default
9400 typedef fpos_t ac__type_sizeof_;
9404 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9411 rm -f conftest.$ac_objext
9412 if { (ac_try="$ac_compile"
9414 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9415 *) ac_try_echo
=$ac_try;;
9417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9418 (eval "$ac_compile") 2>conftest.er1
9420 grep -v '^ *+' conftest.er1
>conftest.err
9422 cat conftest.err
>&5
9423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424 (exit $ac_status); } && {
9425 test -z "$ac_c_werror_flag" ||
9426 test ! -s conftest.err
9427 } && test -s conftest.
$ac_objext; then
9428 ac_hi
=$ac_mid; break
9430 echo "$as_me: failed program was:" >&5
9431 sed 's/^/| /' conftest.
$ac_ext >&5
9433 ac_lo
=`expr $ac_mid + 1`
9434 if test $ac_lo -le $ac_mid; then
9438 ac_mid
=`expr 2 '*' $ac_mid + 1`
9441 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9444 echo "$as_me: failed program was:" >&5
9445 sed 's/^/| /' conftest.
$ac_ext >&5
9447 cat >conftest.
$ac_ext <<_ACEOF
9450 cat confdefs.h
>>conftest.
$ac_ext
9451 cat >>conftest.
$ac_ext <<_ACEOF
9452 /* end confdefs.h. */
9453 $ac_includes_default
9454 typedef fpos_t ac__type_sizeof_;
9458 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9465 rm -f conftest.
$ac_objext
9466 if { (ac_try
="$ac_compile"
9468 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9469 *) ac_try_echo=$ac_try;;
9471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9472 (eval "$ac_compile") 2>conftest.er1
9474 grep -v '^ *+' conftest.er1 >conftest.err
9476 cat conftest.err >&5
9477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9478 (exit $ac_status); } && {
9479 test -z "$ac_c_werror_flag" ||
9480 test ! -s conftest.err
9481 } && test -s conftest.$ac_objext; then
9484 cat >conftest.$ac_ext <<_ACEOF
9487 cat confdefs.h >>conftest.$ac_ext
9488 cat >>conftest.$ac_ext <<_ACEOF
9489 /* end confdefs.h. */
9490 $ac_includes_default
9491 typedef fpos_t ac__type_sizeof_;
9495 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9502 rm -f conftest.$ac_objext
9503 if { (ac_try="$ac_compile"
9505 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9506 *) ac_try_echo
=$ac_try;;
9508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9509 (eval "$ac_compile") 2>conftest.er1
9511 grep -v '^ *+' conftest.er1
>conftest.err
9513 cat conftest.err
>&5
9514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9515 (exit $ac_status); } && {
9516 test -z "$ac_c_werror_flag" ||
9517 test ! -s conftest.err
9518 } && test -s conftest.
$ac_objext; then
9519 ac_lo
=$ac_mid; break
9521 echo "$as_me: failed program was:" >&5
9522 sed 's/^/| /' conftest.
$ac_ext >&5
9524 ac_hi
=`expr '(' $ac_mid ')' - 1`
9525 if test $ac_mid -le $ac_hi; then
9529 ac_mid
=`expr 2 '*' $ac_mid`
9532 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9535 echo "$as_me: failed program was:" >&5
9536 sed 's/^/| /' conftest.
$ac_ext >&5
9541 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9544 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9545 # Binary search between lo and hi bounds.
9546 while test "x$ac_lo" != "x$ac_hi"; do
9547 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9548 cat >conftest.
$ac_ext <<_ACEOF
9551 cat confdefs.h
>>conftest.
$ac_ext
9552 cat >>conftest.
$ac_ext <<_ACEOF
9553 /* end confdefs.h. */
9554 $ac_includes_default
9555 typedef fpos_t ac__type_sizeof_;
9559 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9566 rm -f conftest.
$ac_objext
9567 if { (ac_try
="$ac_compile"
9569 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9570 *) ac_try_echo=$ac_try;;
9572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9573 (eval "$ac_compile") 2>conftest.er1
9575 grep -v '^ *+' conftest.er1 >conftest.err
9577 cat conftest.err >&5
9578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579 (exit $ac_status); } && {
9580 test -z "$ac_c_werror_flag" ||
9581 test ! -s conftest.err
9582 } && test -s conftest.$ac_objext; then
9585 echo "$as_me: failed program was:" >&5
9586 sed 's/^/| /' conftest.$ac_ext >&5
9588 ac_lo=`expr '(' $ac_mid ')' + 1`
9591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9594 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
9595 '') if test "$ac_cv_type_fpos_t" = yes; then
9596 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
9597 See \`config.log
' for more details." >&5
9598 echo "$as_me: error: cannot compute sizeof (fpos_t)
9599 See \`config.log' for more details.
" >&2;}
9600 { (exit 77); exit 77; }; }
9602 ac_cv_sizeof_fpos_t=0
9606 cat >conftest.$ac_ext <<_ACEOF
9609 cat confdefs.h >>conftest.$ac_ext
9610 cat >>conftest.$ac_ext <<_ACEOF
9611 /* end confdefs.h. */
9612 $ac_includes_default
9613 typedef fpos_t ac__type_sizeof_;
9614 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9615 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9622 FILE *f = fopen ("conftest.val
", "w
");
9625 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9627 long int i = longval ();
9628 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9630 fprintf (f, "%ld
\n", i);
9634 unsigned long int i = ulongval ();
9635 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9637 fprintf (f, "%lu
\n", i);
9639 return ferror (f) || fclose (f) != 0;
9645 rm -f conftest$ac_exeext
9646 if { (ac_try="$ac_link"
9648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9649 *) ac_try_echo=$ac_try;;
9651 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9652 (eval "$ac_link") 2>&5
9654 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9655 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9656 { (case "(($ac_try" in
9657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9658 *) ac_try_echo=$ac_try;;
9660 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9661 (eval "$ac_try") 2>&5
9663 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9664 (exit $ac_status); }; }; then
9665 ac_cv_sizeof_fpos_t=`cat conftest.val`
9667 echo "$as_me: program exited with status
$ac_status" >&5
9668 echo "$as_me: failed program was
:" >&5
9669 sed 's/^/| /' conftest.$ac_ext >&5
9672 if test "$ac_cv_type_fpos_t" = yes; then
9673 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(fpos_t
)
9674 See \
`config.log' for more details." >&5
9675 echo "$as_me: error: cannot compute sizeof (fpos_t)
9676 See \`config.log
' for more details." >&2;}
9677 { (exit 77); exit 77; }; }
9679 ac_cv_sizeof_fpos_t=0
9682 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9686 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
9687 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; }
9691 cat >>confdefs.h <<_ACEOF
9692 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
9696 { echo "$as_me:$LINENO: checking for size_t" >&5
9697 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
9698 if test "${ac_cv_type_size_t+set}" = set; then
9699 echo $ECHO_N "(cached) $ECHO_C" >&6
9701 cat >conftest.$ac_ext <<_ACEOF
9704 cat confdefs.h >>conftest.$ac_ext
9705 cat >>conftest.$ac_ext <<_ACEOF
9706 /* end confdefs.h. */
9707 $ac_includes_default
9708 typedef size_t ac__type_new_;
9712 if ((ac__type_new_ *) 0)
9714 if (sizeof (ac__type_new_))
9720 rm -f conftest.$ac_objext
9721 if { (ac_try="$ac_compile"
9723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9724 *) ac_try_echo=$ac_try;;
9726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9727 (eval "$ac_compile") 2>conftest.er1
9729 grep -v '^
*+' conftest.er1 >conftest.err
9731 cat conftest.err >&5
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 (exit $ac_status); } && {
9734 test -z "$ac_c_werror_flag" ||
9735 test ! -s conftest.err
9736 } && test -s conftest.$ac_objext; then
9737 ac_cv_type_size_t=yes
9739 echo "$as_me: failed program was:" >&5
9740 sed 's
/^
/|
/' conftest.$ac_ext >&5
9742 ac_cv_type_size_t=no
9745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9747 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9748 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
9750 # The cast to long int works around a bug in the HP C Compiler
9751 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9752 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9753 # This bug is HP SR number 8606223364.
9754 { echo "$as_me:$LINENO: checking size of size_t" >&5
9755 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
9756 if test "${ac_cv_sizeof_size_t+set}" = set; then
9757 echo $ECHO_N "(cached) $ECHO_C" >&6
9759 if test "$cross_compiling" = yes; then
9760 # Depending upon the size, compute the lo and hi bounds.
9761 cat >conftest.
$ac_ext <<_ACEOF
9764 cat confdefs.h
>>conftest.
$ac_ext
9765 cat >>conftest.
$ac_ext <<_ACEOF
9766 /* end confdefs.h. */
9767 $ac_includes_default
9768 typedef size_t ac__type_sizeof_;
9772 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9779 rm -f conftest.
$ac_objext
9780 if { (ac_try
="$ac_compile"
9782 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9783 *) ac_try_echo=$ac_try;;
9785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9786 (eval "$ac_compile") 2>conftest.er1
9788 grep -v '^ *+' conftest.er1 >conftest.err
9790 cat conftest.err >&5
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792 (exit $ac_status); } && {
9793 test -z "$ac_c_werror_flag" ||
9794 test ! -s conftest.err
9795 } && test -s conftest.$ac_objext; then
9798 cat >conftest.$ac_ext <<_ACEOF
9801 cat confdefs.h >>conftest.$ac_ext
9802 cat >>conftest.$ac_ext <<_ACEOF
9803 /* end confdefs.h. */
9804 $ac_includes_default
9805 typedef size_t ac__type_sizeof_;
9809 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9816 rm -f conftest.$ac_objext
9817 if { (ac_try="$ac_compile"
9819 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9820 *) ac_try_echo
=$ac_try;;
9822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9823 (eval "$ac_compile") 2>conftest.er1
9825 grep -v '^ *+' conftest.er1
>conftest.err
9827 cat conftest.err
>&5
9828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829 (exit $ac_status); } && {
9830 test -z "$ac_c_werror_flag" ||
9831 test ! -s conftest.err
9832 } && test -s conftest.
$ac_objext; then
9833 ac_hi
=$ac_mid; break
9835 echo "$as_me: failed program was:" >&5
9836 sed 's/^/| /' conftest.
$ac_ext >&5
9838 ac_lo
=`expr $ac_mid + 1`
9839 if test $ac_lo -le $ac_mid; then
9843 ac_mid
=`expr 2 '*' $ac_mid + 1`
9846 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9849 echo "$as_me: failed program was:" >&5
9850 sed 's/^/| /' conftest.
$ac_ext >&5
9852 cat >conftest.
$ac_ext <<_ACEOF
9855 cat confdefs.h
>>conftest.
$ac_ext
9856 cat >>conftest.
$ac_ext <<_ACEOF
9857 /* end confdefs.h. */
9858 $ac_includes_default
9859 typedef size_t ac__type_sizeof_;
9863 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9870 rm -f conftest.
$ac_objext
9871 if { (ac_try
="$ac_compile"
9873 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9874 *) ac_try_echo=$ac_try;;
9876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9877 (eval "$ac_compile") 2>conftest.er1
9879 grep -v '^ *+' conftest.er1 >conftest.err
9881 cat conftest.err >&5
9882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883 (exit $ac_status); } && {
9884 test -z "$ac_c_werror_flag" ||
9885 test ! -s conftest.err
9886 } && test -s conftest.$ac_objext; then
9889 cat >conftest.$ac_ext <<_ACEOF
9892 cat confdefs.h >>conftest.$ac_ext
9893 cat >>conftest.$ac_ext <<_ACEOF
9894 /* end confdefs.h. */
9895 $ac_includes_default
9896 typedef size_t ac__type_sizeof_;
9900 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9907 rm -f conftest.$ac_objext
9908 if { (ac_try="$ac_compile"
9910 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9911 *) ac_try_echo
=$ac_try;;
9913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9914 (eval "$ac_compile") 2>conftest.er1
9916 grep -v '^ *+' conftest.er1
>conftest.err
9918 cat conftest.err
>&5
9919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920 (exit $ac_status); } && {
9921 test -z "$ac_c_werror_flag" ||
9922 test ! -s conftest.err
9923 } && test -s conftest.
$ac_objext; then
9924 ac_lo
=$ac_mid; break
9926 echo "$as_me: failed program was:" >&5
9927 sed 's/^/| /' conftest.
$ac_ext >&5
9929 ac_hi
=`expr '(' $ac_mid ')' - 1`
9930 if test $ac_mid -le $ac_hi; then
9934 ac_mid
=`expr 2 '*' $ac_mid`
9937 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9940 echo "$as_me: failed program was:" >&5
9941 sed 's/^/| /' conftest.
$ac_ext >&5
9946 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9949 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9950 # Binary search between lo and hi bounds.
9951 while test "x$ac_lo" != "x$ac_hi"; do
9952 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9953 cat >conftest.
$ac_ext <<_ACEOF
9956 cat confdefs.h
>>conftest.
$ac_ext
9957 cat >>conftest.
$ac_ext <<_ACEOF
9958 /* end confdefs.h. */
9959 $ac_includes_default
9960 typedef size_t ac__type_sizeof_;
9964 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9971 rm -f conftest.
$ac_objext
9972 if { (ac_try
="$ac_compile"
9974 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9975 *) ac_try_echo=$ac_try;;
9977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9978 (eval "$ac_compile") 2>conftest.er1
9980 grep -v '^ *+' conftest.er1 >conftest.err
9982 cat conftest.err >&5
9983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984 (exit $ac_status); } && {
9985 test -z "$ac_c_werror_flag" ||
9986 test ! -s conftest.err
9987 } && test -s conftest.$ac_objext; then
9990 echo "$as_me: failed program was:" >&5
9991 sed 's/^/| /' conftest.$ac_ext >&5
9993 ac_lo=`expr '(' $ac_mid ')' + 1`
9996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9999 ?*) ac_cv_sizeof_size_t=$ac_lo;;
10000 '') if test "$ac_cv_type_size_t" = yes; then
10001 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10002 See \`config.log
' for more details." >&5
10003 echo "$as_me: error: cannot compute sizeof (size_t)
10004 See \`config.log' for more details.
" >&2;}
10005 { (exit 77); exit 77; }; }
10007 ac_cv_sizeof_size_t=0
10011 cat >conftest.$ac_ext <<_ACEOF
10014 cat confdefs.h >>conftest.$ac_ext
10015 cat >>conftest.$ac_ext <<_ACEOF
10016 /* end confdefs.h. */
10017 $ac_includes_default
10018 typedef size_t ac__type_sizeof_;
10019 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10020 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10022 #include <stdlib.h>
10027 FILE *f = fopen ("conftest.val
", "w
");
10030 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10032 long int i = longval ();
10033 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10035 fprintf (f, "%ld
\n", i);
10039 unsigned long int i = ulongval ();
10040 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10042 fprintf (f, "%lu
\n", i);
10044 return ferror (f) || fclose (f) != 0;
10050 rm -f conftest$ac_exeext
10051 if { (ac_try="$ac_link"
10052 case "(($ac_try" in
10053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10054 *) ac_try_echo=$ac_try;;
10056 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10057 (eval "$ac_link") 2>&5
10059 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10060 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10061 { (case "(($ac_try" in
10062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10063 *) ac_try_echo=$ac_try;;
10065 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10066 (eval "$ac_try") 2>&5
10068 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10069 (exit $ac_status); }; }; then
10070 ac_cv_sizeof_size_t=`cat conftest.val`
10072 echo "$as_me: program exited with status
$ac_status" >&5
10073 echo "$as_me: failed program was
:" >&5
10074 sed 's/^/| /' conftest.$ac_ext >&5
10076 ( exit $ac_status )
10077 if test "$ac_cv_type_size_t" = yes; then
10078 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(size_t
)
10079 See \
`config.log' for more details." >&5
10080 echo "$as_me: error: cannot compute sizeof (size_t)
10081 See \`config.log
' for more details." >&2;}
10082 { (exit 77); exit 77; }; }
10084 ac_cv_sizeof_size_t=0
10087 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10091 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10092 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
10096 cat >>confdefs.h <<_ACEOF
10097 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10102 { echo "$as_me:$LINENO: checking for long long support" >&5
10103 echo $ECHO_N "checking for long long support... $ECHO_C" >&6; }
10105 cat >conftest.$ac_ext <<_ACEOF
10108 cat confdefs.h >>conftest.$ac_ext
10109 cat >>conftest.$ac_ext <<_ACEOF
10110 /* end confdefs.h. */
10115 long long x; x = (long long)0;
10120 rm -f conftest.$ac_objext
10121 if { (ac_try="$ac_compile"
10122 case "(($ac_try" in
10123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10124 *) ac_try_echo=$ac_try;;
10126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10127 (eval "$ac_compile") 2>conftest.er1
10129 grep -v '^
*+' conftest.er1 >conftest.err
10131 cat conftest.err >&5
10132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133 (exit $ac_status); } && {
10134 test -z "$ac_c_werror_flag" ||
10135 test ! -s conftest.err
10136 } && test -s conftest.$ac_objext; then
10139 cat >>confdefs.h <<\_ACEOF
10140 #define HAVE_LONG_LONG 1
10146 echo "$as_me: failed program was:" >&5
10147 sed 's
/^
/|
/' conftest.$ac_ext >&5
10152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10153 { echo "$as_me:$LINENO: result: $have_long_long" >&5
10154 echo "${ECHO_T}$have_long_long" >&6; }
10155 if test "$have_long_long" = yes ; then
10156 { echo "$as_me:$LINENO: checking for long long" >&5
10157 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
10158 if test "${ac_cv_type_long_long+set}" = set; then
10159 echo $ECHO_N "(cached) $ECHO_C" >&6
10161 cat >conftest.$ac_ext <<_ACEOF
10164 cat confdefs.h >>conftest.$ac_ext
10165 cat >>conftest.$ac_ext <<_ACEOF
10166 /* end confdefs.h. */
10167 $ac_includes_default
10168 typedef long long ac__type_new_;
10172 if ((ac__type_new_ *) 0)
10174 if (sizeof (ac__type_new_))
10180 rm -f conftest.$ac_objext
10181 if { (ac_try="$ac_compile"
10182 case "(($ac_try" in
10183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10184 *) ac_try_echo=$ac_try;;
10186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10187 (eval "$ac_compile") 2>conftest.er1
10189 grep -v '^
*+' conftest.er1 >conftest.err
10191 cat conftest.err >&5
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); } && {
10194 test -z "$ac_c_werror_flag" ||
10195 test ! -s conftest.err
10196 } && test -s conftest.$ac_objext; then
10197 ac_cv_type_long_long=yes
10199 echo "$as_me: failed program was:" >&5
10200 sed 's
/^
/|
/' conftest.$ac_ext >&5
10202 ac_cv_type_long_long=no
10205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10207 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
10208 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
10210 # The cast to long int works around a bug in the HP C Compiler
10211 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10212 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10213 # This bug is HP SR number 8606223364.
10214 { echo "$as_me:$LINENO: checking size of long long" >&5
10215 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
10216 if test "${ac_cv_sizeof_long_long+set}" = set; then
10217 echo $ECHO_N "(cached) $ECHO_C" >&6
10219 if test "$cross_compiling" = yes; then
10220 # Depending upon the size, compute the lo and hi bounds.
10221 cat >conftest.
$ac_ext <<_ACEOF
10224 cat confdefs.h
>>conftest.
$ac_ext
10225 cat >>conftest.
$ac_ext <<_ACEOF
10226 /* end confdefs.h. */
10227 $ac_includes_default
10228 typedef long long ac__type_sizeof_;
10232 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10239 rm -f conftest.
$ac_objext
10240 if { (ac_try
="$ac_compile"
10241 case "(($ac_try" in
10242 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10243 *) ac_try_echo=$ac_try;;
10245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10246 (eval "$ac_compile") 2>conftest.er1
10248 grep -v '^ *+' conftest.er1 >conftest.err
10250 cat conftest.err >&5
10251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252 (exit $ac_status); } && {
10253 test -z "$ac_c_werror_flag" ||
10254 test ! -s conftest.err
10255 } && test -s conftest.$ac_objext; then
10258 cat >conftest.$ac_ext <<_ACEOF
10261 cat confdefs.h >>conftest.$ac_ext
10262 cat >>conftest.$ac_ext <<_ACEOF
10263 /* end confdefs.h. */
10264 $ac_includes_default
10265 typedef long long ac__type_sizeof_;
10269 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10276 rm -f conftest.$ac_objext
10277 if { (ac_try="$ac_compile"
10278 case "(($ac_try" in
10279 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10280 *) ac_try_echo
=$ac_try;;
10282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10283 (eval "$ac_compile") 2>conftest.er1
10285 grep -v '^ *+' conftest.er1
>conftest.err
10287 cat conftest.err
>&5
10288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289 (exit $ac_status); } && {
10290 test -z "$ac_c_werror_flag" ||
10291 test ! -s conftest.err
10292 } && test -s conftest.
$ac_objext; then
10293 ac_hi
=$ac_mid; break
10295 echo "$as_me: failed program was:" >&5
10296 sed 's/^/| /' conftest.
$ac_ext >&5
10298 ac_lo
=`expr $ac_mid + 1`
10299 if test $ac_lo -le $ac_mid; then
10303 ac_mid
=`expr 2 '*' $ac_mid + 1`
10306 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10309 echo "$as_me: failed program was:" >&5
10310 sed 's/^/| /' conftest.
$ac_ext >&5
10312 cat >conftest.
$ac_ext <<_ACEOF
10315 cat confdefs.h
>>conftest.
$ac_ext
10316 cat >>conftest.
$ac_ext <<_ACEOF
10317 /* end confdefs.h. */
10318 $ac_includes_default
10319 typedef long long ac__type_sizeof_;
10323 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10330 rm -f conftest.
$ac_objext
10331 if { (ac_try
="$ac_compile"
10332 case "(($ac_try" in
10333 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10334 *) ac_try_echo=$ac_try;;
10336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10337 (eval "$ac_compile") 2>conftest.er1
10339 grep -v '^ *+' conftest.er1 >conftest.err
10341 cat conftest.err >&5
10342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343 (exit $ac_status); } && {
10344 test -z "$ac_c_werror_flag" ||
10345 test ! -s conftest.err
10346 } && test -s conftest.$ac_objext; then
10349 cat >conftest.$ac_ext <<_ACEOF
10352 cat confdefs.h >>conftest.$ac_ext
10353 cat >>conftest.$ac_ext <<_ACEOF
10354 /* end confdefs.h. */
10355 $ac_includes_default
10356 typedef long long ac__type_sizeof_;
10360 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10367 rm -f conftest.$ac_objext
10368 if { (ac_try="$ac_compile"
10369 case "(($ac_try" in
10370 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10371 *) ac_try_echo
=$ac_try;;
10373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10374 (eval "$ac_compile") 2>conftest.er1
10376 grep -v '^ *+' conftest.er1
>conftest.err
10378 cat conftest.err
>&5
10379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380 (exit $ac_status); } && {
10381 test -z "$ac_c_werror_flag" ||
10382 test ! -s conftest.err
10383 } && test -s conftest.
$ac_objext; then
10384 ac_lo
=$ac_mid; break
10386 echo "$as_me: failed program was:" >&5
10387 sed 's/^/| /' conftest.
$ac_ext >&5
10389 ac_hi
=`expr '(' $ac_mid ')' - 1`
10390 if test $ac_mid -le $ac_hi; then
10394 ac_mid
=`expr 2 '*' $ac_mid`
10397 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10400 echo "$as_me: failed program was:" >&5
10401 sed 's/^/| /' conftest.
$ac_ext >&5
10406 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10409 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10410 # Binary search between lo and hi bounds.
10411 while test "x$ac_lo" != "x$ac_hi"; do
10412 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10413 cat >conftest.
$ac_ext <<_ACEOF
10416 cat confdefs.h
>>conftest.
$ac_ext
10417 cat >>conftest.
$ac_ext <<_ACEOF
10418 /* end confdefs.h. */
10419 $ac_includes_default
10420 typedef long long ac__type_sizeof_;
10424 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10431 rm -f conftest.
$ac_objext
10432 if { (ac_try
="$ac_compile"
10433 case "(($ac_try" in
10434 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10435 *) ac_try_echo=$ac_try;;
10437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10438 (eval "$ac_compile") 2>conftest.er1
10440 grep -v '^ *+' conftest.er1 >conftest.err
10442 cat conftest.err >&5
10443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 (exit $ac_status); } && {
10445 test -z "$ac_c_werror_flag" ||
10446 test ! -s conftest.err
10447 } && test -s conftest.$ac_objext; then
10450 echo "$as_me: failed program was:" >&5
10451 sed 's/^/| /' conftest.$ac_ext >&5
10453 ac_lo=`expr '(' $ac_mid ')' + 1`
10456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10459 ?*) ac_cv_sizeof_long_long=$ac_lo;;
10460 '') if test "$ac_cv_type_long_long" = yes; then
10461 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
10462 See \`config.log
' for more details." >&5
10463 echo "$as_me: error: cannot compute sizeof (long long)
10464 See \`config.log' for more details.
" >&2;}
10465 { (exit 77); exit 77; }; }
10467 ac_cv_sizeof_long_long=0
10471 cat >conftest.$ac_ext <<_ACEOF
10474 cat confdefs.h >>conftest.$ac_ext
10475 cat >>conftest.$ac_ext <<_ACEOF
10476 /* end confdefs.h. */
10477 $ac_includes_default
10478 typedef long long ac__type_sizeof_;
10479 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10480 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10482 #include <stdlib.h>
10487 FILE *f = fopen ("conftest.val
", "w
");
10490 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10492 long int i = longval ();
10493 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10495 fprintf (f, "%ld
\n", i);
10499 unsigned long int i = ulongval ();
10500 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10502 fprintf (f, "%lu
\n", i);
10504 return ferror (f) || fclose (f) != 0;
10510 rm -f conftest$ac_exeext
10511 if { (ac_try="$ac_link"
10512 case "(($ac_try" in
10513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10514 *) ac_try_echo=$ac_try;;
10516 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10517 (eval "$ac_link") 2>&5
10519 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10520 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10521 { (case "(($ac_try" in
10522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10523 *) ac_try_echo=$ac_try;;
10525 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10526 (eval "$ac_try") 2>&5
10528 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10529 (exit $ac_status); }; }; then
10530 ac_cv_sizeof_long_long=`cat conftest.val`
10532 echo "$as_me: program exited with status
$ac_status" >&5
10533 echo "$as_me: failed program was
:" >&5
10534 sed 's/^/| /' conftest.$ac_ext >&5
10536 ( exit $ac_status )
10537 if test "$ac_cv_type_long_long" = yes; then
10538 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long long
)
10539 See \
`config.log' for more details." >&5
10540 echo "$as_me: error: cannot compute sizeof (long long)
10541 See \`config.log
' for more details." >&2;}
10542 { (exit 77); exit 77; }; }
10544 ac_cv_sizeof_long_long=0
10547 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10551 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
10552 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
10556 cat >>confdefs.h <<_ACEOF
10557 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10563 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
10564 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
10565 if test "${ac_cv_type_uintptr_t+set}" = set; then
10566 echo $ECHO_N "(cached) $ECHO_C" >&6
10568 cat >conftest.$ac_ext <<_ACEOF
10571 cat confdefs.h >>conftest.$ac_ext
10572 cat >>conftest.$ac_ext <<_ACEOF
10573 /* end confdefs.h. */
10574 #ifdef HAVE_STDINT_H
10575 #include <stdint.h>
10578 typedef uintptr_t ac__type_new_;
10582 if ((ac__type_new_ *) 0)
10584 if (sizeof (ac__type_new_))
10590 rm -f conftest.$ac_objext
10591 if { (ac_try="$ac_compile"
10592 case "(($ac_try" in
10593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10594 *) ac_try_echo=$ac_try;;
10596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10597 (eval "$ac_compile") 2>conftest.er1
10599 grep -v '^
*+' conftest.er1 >conftest.err
10601 cat conftest.err >&5
10602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10603 (exit $ac_status); } && {
10604 test -z "$ac_c_werror_flag" ||
10605 test ! -s conftest.err
10606 } && test -s conftest.$ac_objext; then
10607 ac_cv_type_uintptr_t=yes
10609 echo "$as_me: failed program was:" >&5
10610 sed 's
/^
/|
/' conftest.$ac_ext >&5
10612 ac_cv_type_uintptr_t=no
10615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10617 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
10618 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
10619 if test $ac_cv_type_uintptr_t = yes; then
10621 cat >>confdefs.h <<_ACEOF
10622 #define HAVE_UINTPTR_T 1
10625 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
10626 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
10627 if test "${ac_cv_type_uintptr_t+set}" = set; then
10628 echo $ECHO_N "(cached) $ECHO_C" >&6
10630 cat >conftest.$ac_ext <<_ACEOF
10633 cat confdefs.h >>conftest.$ac_ext
10634 cat >>conftest.$ac_ext <<_ACEOF
10635 /* end confdefs.h. */
10636 $ac_includes_default
10637 typedef uintptr_t ac__type_new_;
10641 if ((ac__type_new_ *) 0)
10643 if (sizeof (ac__type_new_))
10649 rm -f conftest.$ac_objext
10650 if { (ac_try="$ac_compile"
10651 case "(($ac_try" in
10652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10653 *) ac_try_echo=$ac_try;;
10655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10656 (eval "$ac_compile") 2>conftest.er1
10658 grep -v '^
*+' conftest.er1 >conftest.err
10660 cat conftest.err >&5
10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); } && {
10663 test -z "$ac_c_werror_flag" ||
10664 test ! -s conftest.err
10665 } && test -s conftest.$ac_objext; then
10666 ac_cv_type_uintptr_t=yes
10668 echo "$as_me: failed program was:" >&5
10669 sed 's
/^
/|
/' conftest.$ac_ext >&5
10671 ac_cv_type_uintptr_t=no
10674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10676 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
10677 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
10679 # The cast to long int works around a bug in the HP C Compiler
10680 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10681 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10682 # This bug is HP SR number 8606223364.
10683 { echo "$as_me:$LINENO: checking size of uintptr_t" >&5
10684 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; }
10685 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
10686 echo $ECHO_N "(cached) $ECHO_C" >&6
10688 if test "$cross_compiling" = yes; then
10689 # Depending upon the size, compute the lo and hi bounds.
10690 cat >conftest.
$ac_ext <<_ACEOF
10693 cat confdefs.h
>>conftest.
$ac_ext
10694 cat >>conftest.
$ac_ext <<_ACEOF
10695 /* end confdefs.h. */
10696 $ac_includes_default
10697 typedef uintptr_t ac__type_sizeof_;
10701 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10708 rm -f conftest.
$ac_objext
10709 if { (ac_try
="$ac_compile"
10710 case "(($ac_try" in
10711 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10712 *) ac_try_echo=$ac_try;;
10714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10715 (eval "$ac_compile") 2>conftest.er1
10717 grep -v '^ *+' conftest.er1 >conftest.err
10719 cat conftest.err >&5
10720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721 (exit $ac_status); } && {
10722 test -z "$ac_c_werror_flag" ||
10723 test ! -s conftest.err
10724 } && test -s conftest.$ac_objext; then
10727 cat >conftest.$ac_ext <<_ACEOF
10730 cat confdefs.h >>conftest.$ac_ext
10731 cat >>conftest.$ac_ext <<_ACEOF
10732 /* end confdefs.h. */
10733 $ac_includes_default
10734 typedef uintptr_t ac__type_sizeof_;
10738 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10745 rm -f conftest.$ac_objext
10746 if { (ac_try="$ac_compile"
10747 case "(($ac_try" in
10748 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10749 *) ac_try_echo
=$ac_try;;
10751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10752 (eval "$ac_compile") 2>conftest.er1
10754 grep -v '^ *+' conftest.er1
>conftest.err
10756 cat conftest.err
>&5
10757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758 (exit $ac_status); } && {
10759 test -z "$ac_c_werror_flag" ||
10760 test ! -s conftest.err
10761 } && test -s conftest.
$ac_objext; then
10762 ac_hi
=$ac_mid; break
10764 echo "$as_me: failed program was:" >&5
10765 sed 's/^/| /' conftest.
$ac_ext >&5
10767 ac_lo
=`expr $ac_mid + 1`
10768 if test $ac_lo -le $ac_mid; then
10772 ac_mid
=`expr 2 '*' $ac_mid + 1`
10775 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10778 echo "$as_me: failed program was:" >&5
10779 sed 's/^/| /' conftest.
$ac_ext >&5
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 uintptr_t ac__type_sizeof_;
10792 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10799 rm -f conftest.
$ac_objext
10800 if { (ac_try
="$ac_compile"
10801 case "(($ac_try" in
10802 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10803 *) ac_try_echo=$ac_try;;
10805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10806 (eval "$ac_compile") 2>conftest.er1
10808 grep -v '^ *+' conftest.er1 >conftest.err
10810 cat conftest.err >&5
10811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812 (exit $ac_status); } && {
10813 test -z "$ac_c_werror_flag" ||
10814 test ! -s conftest.err
10815 } && test -s conftest.$ac_objext; then
10818 cat >conftest.$ac_ext <<_ACEOF
10821 cat confdefs.h >>conftest.$ac_ext
10822 cat >>conftest.$ac_ext <<_ACEOF
10823 /* end confdefs.h. */
10824 $ac_includes_default
10825 typedef uintptr_t ac__type_sizeof_;
10829 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10836 rm -f conftest.$ac_objext
10837 if { (ac_try="$ac_compile"
10838 case "(($ac_try" in
10839 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10840 *) ac_try_echo
=$ac_try;;
10842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10843 (eval "$ac_compile") 2>conftest.er1
10845 grep -v '^ *+' conftest.er1
>conftest.err
10847 cat conftest.err
>&5
10848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849 (exit $ac_status); } && {
10850 test -z "$ac_c_werror_flag" ||
10851 test ! -s conftest.err
10852 } && test -s conftest.
$ac_objext; then
10853 ac_lo
=$ac_mid; break
10855 echo "$as_me: failed program was:" >&5
10856 sed 's/^/| /' conftest.
$ac_ext >&5
10858 ac_hi
=`expr '(' $ac_mid ')' - 1`
10859 if test $ac_mid -le $ac_hi; then
10863 ac_mid
=`expr 2 '*' $ac_mid`
10866 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10869 echo "$as_me: failed program was:" >&5
10870 sed 's/^/| /' conftest.
$ac_ext >&5
10875 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10878 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10879 # Binary search between lo and hi bounds.
10880 while test "x$ac_lo" != "x$ac_hi"; do
10881 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10882 cat >conftest.
$ac_ext <<_ACEOF
10885 cat confdefs.h
>>conftest.
$ac_ext
10886 cat >>conftest.
$ac_ext <<_ACEOF
10887 /* end confdefs.h. */
10888 $ac_includes_default
10889 typedef uintptr_t ac__type_sizeof_;
10893 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10900 rm -f conftest.
$ac_objext
10901 if { (ac_try
="$ac_compile"
10902 case "(($ac_try" in
10903 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10904 *) ac_try_echo=$ac_try;;
10906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10907 (eval "$ac_compile") 2>conftest.er1
10909 grep -v '^ *+' conftest.er1 >conftest.err
10911 cat conftest.err >&5
10912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10913 (exit $ac_status); } && {
10914 test -z "$ac_c_werror_flag" ||
10915 test ! -s conftest.err
10916 } && test -s conftest.$ac_objext; then
10919 echo "$as_me: failed program was:" >&5
10920 sed 's/^/| /' conftest.$ac_ext >&5
10922 ac_lo=`expr '(' $ac_mid ')' + 1`
10925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10928 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
10929 '') if test "$ac_cv_type_uintptr_t" = yes; then
10930 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
10931 See \`config.log
' for more details." >&5
10932 echo "$as_me: error: cannot compute sizeof (uintptr_t)
10933 See \`config.log' for more details.
" >&2;}
10934 { (exit 77); exit 77; }; }
10936 ac_cv_sizeof_uintptr_t=0
10940 cat >conftest.$ac_ext <<_ACEOF
10943 cat confdefs.h >>conftest.$ac_ext
10944 cat >>conftest.$ac_ext <<_ACEOF
10945 /* end confdefs.h. */
10946 $ac_includes_default
10947 typedef uintptr_t ac__type_sizeof_;
10948 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10949 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10951 #include <stdlib.h>
10956 FILE *f = fopen ("conftest.val
", "w
");
10959 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10961 long int i = longval ();
10962 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10964 fprintf (f, "%ld
\n", i);
10968 unsigned long int i = ulongval ();
10969 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10971 fprintf (f, "%lu
\n", i);
10973 return ferror (f) || fclose (f) != 0;
10979 rm -f conftest$ac_exeext
10980 if { (ac_try="$ac_link"
10981 case "(($ac_try" in
10982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10983 *) ac_try_echo=$ac_try;;
10985 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10986 (eval "$ac_link") 2>&5
10988 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10989 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10990 { (case "(($ac_try" in
10991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10992 *) ac_try_echo=$ac_try;;
10994 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10995 (eval "$ac_try") 2>&5
10997 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10998 (exit $ac_status); }; }; then
10999 ac_cv_sizeof_uintptr_t=`cat conftest.val`
11001 echo "$as_me: program exited with status
$ac_status" >&5
11002 echo "$as_me: failed program was
:" >&5
11003 sed 's/^/| /' conftest.$ac_ext >&5
11005 ( exit $ac_status )
11006 if test "$ac_cv_type_uintptr_t" = yes; then
11007 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(uintptr_t
)
11008 See \
`config.log' for more details." >&5
11009 echo "$as_me: error: cannot compute sizeof (uintptr_t)
11010 See \`config.log
' for more details." >&2;}
11011 { (exit 77); exit 77; }; }
11013 ac_cv_sizeof_uintptr_t=0
11016 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11020 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
11021 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; }
11025 cat >>confdefs.h <<_ACEOF
11026 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
11034 # Hmph. AC_CHECK_SIZEOF() doesn't include
<sys
/types.h
>.
11035 { echo "$as_me:$LINENO: checking size of off_t" >&5
11036 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
11037 if test "${ac_cv_sizeof_off_t+set}" = set; then
11038 echo $ECHO_N "(cached) $ECHO_C" >&6
11040 if test "$cross_compiling" = yes; then
11041 ac_cv_sizeof_off_t
=4
11043 cat >conftest.
$ac_ext <<_ACEOF
11046 cat confdefs.h
>>conftest.
$ac_ext
11047 cat >>conftest.
$ac_ext <<_ACEOF
11048 /* end confdefs.h. */
11050 #include <sys/types.h>
11053 FILE *f=fopen("conftestval", "w");
11055 fprintf(f, "%d\n", sizeof(off_t));
11059 rm -f conftest
$ac_exeext
11060 if { (ac_try
="$ac_link"
11061 case "(($ac_try" in
11062 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11063 *) ac_try_echo=$ac_try;;
11065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11066 (eval "$ac_link") 2>&5
11068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11070 { (case "(($ac_try" in
11071 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11072 *) ac_try_echo
=$ac_try;;
11074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11075 (eval "$ac_try") 2>&5
11077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078 (exit $ac_status); }; }; then
11079 ac_cv_sizeof_off_t
=`cat conftestval`
11081 echo "$as_me: program exited with status $ac_status" >&5
11082 echo "$as_me: failed program was:" >&5
11083 sed 's/^/| /' conftest.
$ac_ext >&5
11085 ( exit $ac_status )
11086 ac_cv_sizeof_off_t
=0
11088 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11095 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
11096 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
11098 cat >>confdefs.h
<<_ACEOF
11099 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
11103 { echo "$as_me:$LINENO: checking whether to enable large file support" >&5
11104 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; }
11105 if test "$have_long_long" = yes -a \
11106 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
11107 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
11109 cat >>confdefs.h
<<\_ACEOF
11110 #define HAVE_LARGEFILE_SUPPORT 1
11113 { echo "$as_me:$LINENO: result: yes" >&5
11114 echo "${ECHO_T}yes" >&6; }
11116 { echo "$as_me:$LINENO: result: no" >&5
11117 echo "${ECHO_T}no" >&6; }
11120 # AC_CHECK_SIZEOF() doesn't include <time.h>.
11121 { echo "$as_me:$LINENO: checking size of time_t" >&5
11122 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
11123 if test "${ac_cv_sizeof_time_t+set}" = set; then
11124 echo $ECHO_N "(cached) $ECHO_C" >&6
11126 if test "$cross_compiling" = yes; then
11127 ac_cv_sizeof_time_t
=4
11129 cat >conftest.
$ac_ext <<_ACEOF
11132 cat confdefs.h
>>conftest.
$ac_ext
11133 cat >>conftest.
$ac_ext <<_ACEOF
11134 /* end confdefs.h. */
11139 FILE *f=fopen("conftestval", "w");
11141 fprintf(f, "%d\n", sizeof(time_t));
11145 rm -f conftest
$ac_exeext
11146 if { (ac_try
="$ac_link"
11147 case "(($ac_try" in
11148 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11149 *) ac_try_echo=$ac_try;;
11151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11152 (eval "$ac_link") 2>&5
11154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11155 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11156 { (case "(($ac_try" in
11157 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11158 *) ac_try_echo
=$ac_try;;
11160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11161 (eval "$ac_try") 2>&5
11163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164 (exit $ac_status); }; }; then
11165 ac_cv_sizeof_time_t
=`cat conftestval`
11167 echo "$as_me: program exited with status $ac_status" >&5
11168 echo "$as_me: failed program was:" >&5
11169 sed 's/^/| /' conftest.
$ac_ext >&5
11171 ( exit $ac_status )
11172 ac_cv_sizeof_time_t
=0
11174 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11181 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
11182 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
11184 cat >>confdefs.h
<<_ACEOF
11185 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
11190 # if have pthread_t then define SIZEOF_PTHREAD_T
11192 if test "$ac_cv_kpthread" = "yes"
11193 then CC
="$CC -Kpthread"
11194 elif test "$ac_cv_kthread" = "yes"
11195 then CC
="$CC -Kthread"
11196 elif test "$ac_cv_pthread" = "yes"
11197 then CC
="$CC -pthread"
11199 { echo "$as_me:$LINENO: checking for pthread_t" >&5
11200 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
11202 cat >conftest.
$ac_ext <<_ACEOF
11205 cat confdefs.h
>>conftest.
$ac_ext
11206 cat >>conftest.
$ac_ext <<_ACEOF
11207 /* end confdefs.h. */
11208 #include <pthread.h>
11212 pthread_t x; x = *(pthread_t*)0;
11217 rm -f conftest.
$ac_objext
11218 if { (ac_try
="$ac_compile"
11219 case "(($ac_try" in
11220 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11221 *) ac_try_echo=$ac_try;;
11223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11224 (eval "$ac_compile") 2>conftest.er1
11226 grep -v '^ *+' conftest.er1 >conftest.err
11228 cat conftest.err >&5
11229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230 (exit $ac_status); } && {
11231 test -z "$ac_c_werror_flag" ||
11232 test ! -s conftest.err
11233 } && test -s conftest.$ac_objext; then
11236 echo "$as_me: failed program was:" >&5
11237 sed 's/^/| /' conftest.$ac_ext >&5
11242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11243 { echo "$as_me:$LINENO: result: $have_pthread_t" >&5
11244 echo "${ECHO_T}$have_pthread_t" >&6; }
11245 if test "$have_pthread_t" = yes ; then
11246 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
11247 { echo "$as_me:$LINENO: checking size of pthread_t" >&5
11248 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; }
11249 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
11250 echo $ECHO_N "(cached) $ECHO_C" >&6
11252 if test "$cross_compiling" = yes; then
11253 ac_cv_sizeof_pthread_t=4
11255 cat >conftest.$ac_ext <<_ACEOF
11258 cat confdefs.h >>conftest.$ac_ext
11259 cat >>conftest.$ac_ext <<_ACEOF
11260 /* end confdefs.h. */
11262 #include <pthread.h>
11265 FILE *f=fopen("conftestval", "w");
11267 fprintf(f, "%d\n", sizeof(pthread_t));
11271 rm -f conftest$ac_exeext
11272 if { (ac_try="$ac_link"
11273 case "(($ac_try" in
11274 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11275 *) ac_try_echo
=$ac_try;;
11277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11278 (eval "$ac_link") 2>&5
11280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11282 { (case "(($ac_try" in
11283 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11284 *) ac_try_echo=$ac_try;;
11286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11287 (eval "$ac_try") 2>&5
11289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290 (exit $ac_status); }; }; then
11291 ac_cv_sizeof_pthread_t=`cat conftestval
`
11293 echo "$as_me: program exited with status $ac_status" >&5
11294 echo "$as_me: failed program was:" >&5
11295 sed 's/^/| /' conftest.$ac_ext >&5
11297 ( exit $ac_status )
11298 ac_cv_sizeof_pthread_t=0
11300 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11307 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
11308 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; }
11310 cat >>confdefs.h <<_ACEOF
11311 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
11317 { echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
11318 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6; }
11319 # Check whether --enable-toolbox-glue was given.
11320 if test "${enable_toolbox_glue+set}" = set; then
11321 enableval=$enable_toolbox_glue;
11325 if test -z "$enable_toolbox_glue"
11327 case $ac_sys_system/$ac_sys_release in
11329 enable_toolbox_glue="yes";;
11331 enable_toolbox_glue="no";;
11334 case "$enable_toolbox_glue" in
11336 extra_machdep_objs="Python/mactoolboxglue.o"
11337 extra_undefs="-u _PyMac_Error"
11339 cat >>confdefs.h <<\_ACEOF
11340 #define USE_TOOLBOX_OBJECT_GLUE 1
11345 extra_machdep_objs=""
11349 { echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
11350 echo "${ECHO_T}$enable_toolbox_glue" >&6; }
11353 case $ac_sys_system/$ac_sys_release in
11354 Darwin/[01567]\..*)
11355 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
11358 OTHER_LIBTOOL_OPT=""
11363 case $ac_sys_system/$ac_sys_release in
11364 Darwin/[01567]\..*)
11365 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
11366 if test "${enable_universalsdk}"; then
11369 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch
`"
11371 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11372 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
11374 gcc_version=`gcc
-v 2>&1 |
grep version | cut
-d\
-f3`
11375 if test ${gcc_version} '<' 4.0
11377 LIBTOOL_CRUFT="-lcc_dynamic"
11381 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch
`"
11382 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11383 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
11386 { echo "$as_me:$LINENO: checking for --enable-framework" >&5
11387 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; }
11388 if test "$enable_framework"
11390 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
11391 # -F. is needed to allow linking to the framework while
11392 # in the build location.
11394 cat >>confdefs.h <<\_ACEOF
11395 #define WITH_NEXT_FRAMEWORK 1
11398 { echo "$as_me:$LINENO: result: yes" >&5
11399 echo "${ECHO_T}yes" >&6; }
11401 { echo "$as_me:$LINENO: result: no" >&5
11402 echo "${ECHO_T}no" >&6; }
11405 { echo "$as_me:$LINENO: checking for dyld" >&5
11406 echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
11407 case $ac_sys_system/$ac_sys_release in
11410 cat >>confdefs.h <<\_ACEOF
11411 #define WITH_DYLD 1
11414 { echo "$as_me:$LINENO: result: always on for Darwin" >&5
11415 echo "${ECHO_T}always on for Darwin" >&6; }
11418 { echo "$as_me:$LINENO: result: no" >&5
11419 echo "${ECHO_T}no" >&6; }
11423 # Set info about shared libraries.
11429 # SO is the extension of shared libraries `(including the dot
!)
11430 # -- usually .so, .sl on HP-UX, .dll on Cygwin
11431 { echo "$as_me:$LINENO: checking SO" >&5
11432 echo $ECHO_N "checking SO... $ECHO_C" >&6; }
11435 case $ac_sys_system in
11446 # this might also be a termcap variable, see #610332
11448 echo '====================================================================='
11450 echo '+ WARNING: You have set SO in your environment. +'
11451 echo '+ Do you really mean to change the extension for shared libraries? +'
11452 echo '+ Continuing in 10 seconds to let you to ponder. +'
11454 echo '====================================================================='
11457 { echo "$as_me:$LINENO: result: $SO" >&5
11458 echo "${ECHO_T}$SO" >&6; }
11460 cat >>confdefs.h
<<_ACEOF
11461 #define SHLIB_EXT "$SO"
11464 # LDSHARED is the ld *command* used to create shared library
11465 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
11466 # (Shared libraries in this instance are shared modules to be loaded into
11467 # Python, as opposed to building Python itself as a shared library.)
11468 { echo "$as_me:$LINENO: checking LDSHARED" >&5
11469 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
11470 if test -z "$LDSHARED"
11472 case $ac_sys_system/$ac_sys_release in
11474 BLDSHARED
="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
11475 LDSHARED
="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
11478 BLDSHARED
="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
11479 LDSHARED
="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
11481 IRIX
/5*) LDSHARED
="ld -shared";;
11482 IRIX
*/6*) LDSHARED
="ld ${SGI_ABI} -shared -all";;
11484 if test "$GCC" = "yes"
11485 then LDSHARED
='$(CC) -shared'
11486 else LDSHARED
='$(CC) -G';
11488 hp
*|HP
*) LDSHARED
="ld -b";;
11489 OSF
*) LDSHARED
="ld -shared -expect_unresolved \"*\"";;
11491 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
11492 if test "$enable_framework" ; then
11493 # Link against the framework. All externals should be defined.
11494 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11495 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11497 # No framework. Ignore undefined symbols, assuming they come from Python
11498 LDSHARED
="$LDSHARED -undefined suppress"
11500 Darwin
/1.4*|Darwin
/5.
*|Darwin
/6.
*)
11501 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
11502 if test "$enable_framework" ; then
11503 # Link against the framework. All externals should be defined.
11504 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11505 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11507 # No framework, use the Python app as bundle-loader
11508 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
11509 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
11512 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
11513 # This allows an extension to be used in any Python
11514 cur_target
=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
11515 if test ${cur_target} '>' 10.2; then
11518 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
11520 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
11521 # environment with a value that is the same as what we'll use
11522 # in the Makefile to ensure that we'll get the same compiler
11523 # environment during configure and build time.
11524 MACOSX_DEPLOYMENT_TARGET
="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
11525 export MACOSX_DEPLOYMENT_TARGET
11527 EXPORT_MACOSX_DEPLOYMENT_TARGET
=''
11528 if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2
11530 if test "${enable_universalsdk}"; then
11531 LDFLAGS
="-arch i386 -arch ppc -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
11533 LDSHARED
='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
11534 BLDSHARED
="$LDSHARED"
11536 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
11537 if test "$enable_framework" ; then
11538 # Link against the framework. All externals should be defined.
11539 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11540 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11542 # No framework, use the Python app as bundle-loader
11543 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
11544 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
11548 Linux
*|GNU
*) LDSHARED
='$(CC) -shared';;
11549 BSD
/OS
*/4*) LDSHARED
="gcc -shared";;
11551 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
11553 LDSHARED
="$CC -shared ${LDFLAGS}"
11555 LDSHARED
="ld -Bshareable ${LDFLAGS}"
11558 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
11560 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
11563 [01].
* |
2.
[0-7] |
2.
[0-7].
*)
11564 LDSHARED
="ld -Bshareable ${LDFLAGS}"
11567 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
11571 NetBSD
*|DragonFly
*) LDSHARED
="cc -shared ${LDFLAGS}";;
11572 OpenUNIX
*|UnixWare
*)
11573 if test "$GCC" = "yes"
11574 then LDSHARED
='$(CC) -shared'
11575 else LDSHARED
='$(CC) -G'
11577 SCO_SV
*) LDSHARED
='$(CC) -Wl,-G,-Bexport';;
11578 Monterey
*) LDSHARED
="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
11579 CYGWIN
*) LDSHARED
="gcc -shared -Wl,--enable-auto-image-base";;
11580 atheos
*) LDSHARED
="gcc -shared";;
11584 { echo "$as_me:$LINENO: result: $LDSHARED" >&5
11585 echo "${ECHO_T}$LDSHARED" >&6; }
11586 BLDSHARED
=${BLDSHARED-$LDSHARED}
11587 # CCSHARED are the C *flags* used to create objects to go into a shared
11588 # library (module) -- this is only needed for a few systems
11589 { echo "$as_me:$LINENO: checking CCSHARED" >&5
11590 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
11591 if test -z "$CCSHARED"
11593 case $ac_sys_system/$ac_sys_release in
11594 SunOS
*) if test "$GCC" = yes;
11595 then CCSHARED
="-fPIC";
11596 elif test `uname -p` = sparc
;
11597 then CCSHARED
="-xcode=pic32";
11598 else CCSHARED
="-Kpic";
11600 hp
*|HP
*) if test "$GCC" = yes;
11601 then CCSHARED
="-fPIC";
11602 else CCSHARED
="+z";
11604 Linux
*|GNU
*) CCSHARED
="-fPIC";;
11605 BSD
/OS
*/4*) CCSHARED
="-fpic";;
11606 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*) CCSHARED
="-fPIC";;
11607 OpenUNIX
*|UnixWare
*)
11608 if test "$GCC" = "yes"
11609 then CCSHARED
="-fPIC"
11610 else CCSHARED
="-KPIC"
11613 if test "$GCC" = "yes"
11614 then CCSHARED
="-fPIC"
11615 else CCSHARED
="-Kpic -belf"
11617 Monterey
*) CCSHARED
="-G";;
11618 IRIX
*/6*) case $CC in
11619 *gcc
*) CCSHARED
="-shared";;
11622 atheos
*) CCSHARED
="-fPIC";;
11625 { echo "$as_me:$LINENO: result: $CCSHARED" >&5
11626 echo "${ECHO_T}$CCSHARED" >&6; }
11627 # LINKFORSHARED are the flags passed to the $(CC) command that links
11628 # the python executable -- this is only needed for a few systems
11629 { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
11630 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
11631 if test -z "$LINKFORSHARED"
11633 case $ac_sys_system/$ac_sys_release in
11634 AIX
*) LINKFORSHARED
='-Wl,-bE:Modules/python.exp -lld';;
11636 LINKFORSHARED
="-Wl,-E -Wl,+s";;
11637 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
11638 BSD
/OS
/4*) LINKFORSHARED
="-Xlinker -export-dynamic";;
11639 Linux
*|GNU
*) LINKFORSHARED
="-Xlinker -export-dynamic";;
11640 # -u libsys_s pulls in all symbols in libsys
11642 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
11644 # not used by the core itself but which needs to be in the core so
11645 # that dynamically loaded extension modules have access to it.
11646 # -prebind is no longer used, because it actually seems to give a
11647 # slowdown in stead of a speedup, maybe due to the large number of
11648 # dynamic loads Python does.
11650 LINKFORSHARED
="$extra_undefs"
11651 if test "$enable_framework"
11653 LINKFORSHARED
="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
11655 LINKFORSHARED
="$LINKFORSHARED";;
11656 OpenUNIX
*|UnixWare
*) LINKFORSHARED
="-Wl,-Bexport";;
11657 SCO_SV
*) LINKFORSHARED
="-Wl,-Bexport";;
11658 ReliantUNIX
*) LINKFORSHARED
="-W1 -Blargedynsym";;
11659 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*)
11660 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
11662 LINKFORSHARED
="-Wl,--export-dynamic"
11664 SunOS
/5*) case $CC in
11666 if $CC -Xlinker --help 2>&1 |
grep export-dynamic
>/dev
/null
11668 LINKFORSHARED
="-Xlinker --export-dynamic"
11672 if test $enable_shared = "no"
11674 LINKFORSHARED
='-Wl,--out-implib=$(LDLIBRARY)'
11678 { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
11679 echo "${ECHO_T}$LINKFORSHARED" >&6; }
11682 { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
11683 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
11684 if test ! "$LIBRARY" = "$LDLIBRARY"
11686 case $ac_sys_system in
11688 # Cygwin needs CCSHARED when building extension DLLs
11689 # but not when building the interpreter DLL.
11690 CFLAGSFORSHARED
='';;
11692 CFLAGSFORSHARED
='$(CCSHARED)'
11695 { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
11696 echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
11698 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
11699 # library (with --enable-shared).
11700 # For platforms on which shared libraries are not allowed to have unresolved
11701 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
11702 # if it is not required, since it creates a dependency of the shared library
11703 # to LIBS. This, in turn, means that applications linking the shared libpython
11704 # don't need to link LIBS explicitly. The default should be only changed
11705 # on systems where this approach causes problems.
11707 { echo "$as_me:$LINENO: checking SHLIBS" >&5
11708 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
11709 case "$ac_sys_system" in
11713 { echo "$as_me:$LINENO: result: $SHLIBS" >&5
11714 echo "${ECHO_T}$SHLIBS" >&6; }
11717 # checks for libraries
11719 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11720 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11721 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11722 echo $ECHO_N "(cached) $ECHO_C" >&6
11724 ac_check_lib_save_LIBS
=$LIBS
11726 cat >conftest.
$ac_ext <<_ACEOF
11729 cat confdefs.h
>>conftest.
$ac_ext
11730 cat >>conftest.
$ac_ext <<_ACEOF
11731 /* end confdefs.h. */
11733 /* Override any GCC internal prototype to avoid an error.
11734 Use char because int might match the return type of a GCC
11735 builtin and then its argument prototype would still apply. */
11748 rm -f conftest.
$ac_objext conftest
$ac_exeext
11749 if { (ac_try
="$ac_link"
11750 case "(($ac_try" in
11751 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11752 *) ac_try_echo=$ac_try;;
11754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11755 (eval "$ac_link") 2>conftest.er1
11757 grep -v '^ *+' conftest.er1 >conftest.err
11759 cat conftest.err >&5
11760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761 (exit $ac_status); } && {
11762 test -z "$ac_c_werror_flag" ||
11763 test ! -s conftest.err
11764 } && test -s conftest$ac_exeext &&
11765 $as_test_x conftest$ac_exeext; then
11766 ac_cv_lib_dl_dlopen=yes
11768 echo "$as_me: failed program was:" >&5
11769 sed 's/^/| /' conftest.$ac_ext >&5
11771 ac_cv_lib_dl_dlopen=no
11774 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11775 conftest$ac_exeext conftest.$ac_ext
11776 LIBS=$ac_check_lib_save_LIBS
11778 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11779 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11780 if test $ac_cv_lib_dl_dlopen = yes; then
11781 cat >>confdefs.h <<_ACEOF
11782 #define HAVE_LIBDL 1
11788 # Dynamic linking for SunOS/Solaris and SYSV
11790 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11791 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
11792 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11793 echo $ECHO_N "(cached) $ECHO_C" >&6
11795 ac_check_lib_save_LIBS=$LIBS
11797 cat >conftest.$ac_ext <<_ACEOF
11800 cat confdefs.h >>conftest.$ac_ext
11801 cat >>conftest.$ac_ext <<_ACEOF
11802 /* end confdefs.h. */
11804 /* Override any GCC internal prototype to avoid an error.
11805 Use char because int might match the return type of a GCC
11806 builtin and then its argument prototype would still apply. */
11814 return shl_load ();
11819 rm -f conftest.$ac_objext conftest$ac_exeext
11820 if { (ac_try="$ac_link"
11821 case "(($ac_try" in
11822 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11823 *) ac_try_echo
=$ac_try;;
11825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11826 (eval "$ac_link") 2>conftest.er1
11828 grep -v '^ *+' conftest.er1
>conftest.err
11830 cat conftest.err
>&5
11831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832 (exit $ac_status); } && {
11833 test -z "$ac_c_werror_flag" ||
11834 test ! -s conftest.err
11835 } && test -s conftest
$ac_exeext &&
11836 $as_test_x conftest
$ac_exeext; then
11837 ac_cv_lib_dld_shl_load
=yes
11839 echo "$as_me: failed program was:" >&5
11840 sed 's/^/| /' conftest.
$ac_ext >&5
11842 ac_cv_lib_dld_shl_load
=no
11845 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11846 conftest
$ac_exeext conftest.
$ac_ext
11847 LIBS
=$ac_check_lib_save_LIBS
11849 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11850 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
11851 if test $ac_cv_lib_dld_shl_load = yes; then
11852 cat >>confdefs.h
<<_ACEOF
11853 #define HAVE_LIBDLD 1
11859 # Dynamic linking for HP-UX
11861 # only check for sem_ini if thread support is requested
11862 if test "$with_threads" = "yes" -o -z "$with_threads"; then
11863 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
11864 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
11865 if test "${ac_cv_search_sem_init+set}" = set; then
11866 echo $ECHO_N "(cached) $ECHO_C" >&6
11868 ac_func_search_save_LIBS
=$LIBS
11869 cat >conftest.
$ac_ext <<_ACEOF
11872 cat confdefs.h
>>conftest.
$ac_ext
11873 cat >>conftest.
$ac_ext <<_ACEOF
11874 /* end confdefs.h. */
11876 /* Override any GCC internal prototype to avoid an error.
11877 Use char because int might match the return type of a GCC
11878 builtin and then its argument prototype would still apply. */
11886 return sem_init ();
11891 for ac_lib
in '' pthread rt posix4
; do
11892 if test -z "$ac_lib"; then
11893 ac_res
="none required"
11896 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11898 rm -f conftest.
$ac_objext conftest
$ac_exeext
11899 if { (ac_try
="$ac_link"
11900 case "(($ac_try" in
11901 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11902 *) ac_try_echo=$ac_try;;
11904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11905 (eval "$ac_link") 2>conftest.er1
11907 grep -v '^ *+' conftest.er1 >conftest.err
11909 cat conftest.err >&5
11910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911 (exit $ac_status); } && {
11912 test -z "$ac_c_werror_flag" ||
11913 test ! -s conftest.err
11914 } && test -s conftest$ac_exeext &&
11915 $as_test_x conftest$ac_exeext; then
11916 ac_cv_search_sem_init=$ac_res
11918 echo "$as_me: failed program was:" >&5
11919 sed 's/^/| /' conftest.$ac_ext >&5
11924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11926 if test "${ac_cv_search_sem_init+set}" = set; then
11930 if test "${ac_cv_search_sem_init+set}" = set; then
11933 ac_cv_search_sem_init=no
11935 rm conftest.$ac_ext
11936 LIBS=$ac_func_search_save_LIBS
11938 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
11939 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
11940 ac_res=$ac_cv_search_sem_init
11941 if test "$ac_res" != no; then
11942 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11945 # 'Real Time' functions on Solaris
11946 # posix4 on Solaris 2.6
11947 # pthread (first!) on Linux
11950 # check if we need libintl for locale functions
11951 { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
11952 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
11953 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
11954 echo $ECHO_N "(cached) $ECHO_C" >&6
11956 ac_check_lib_save_LIBS=$LIBS
11957 LIBS="-lintl $LIBS"
11958 cat >conftest.$ac_ext <<_ACEOF
11961 cat confdefs.h >>conftest.$ac_ext
11962 cat >>conftest.$ac_ext <<_ACEOF
11963 /* end confdefs.h. */
11965 /* Override any GCC internal prototype to avoid an error.
11966 Use char because int might match the return type of a GCC
11967 builtin and then its argument prototype would still apply. */
11971 char textdomain ();
11975 return textdomain ();
11980 rm -f conftest.$ac_objext conftest$ac_exeext
11981 if { (ac_try="$ac_link"
11982 case "(($ac_try" in
11983 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11984 *) ac_try_echo
=$ac_try;;
11986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11987 (eval "$ac_link") 2>conftest.er1
11989 grep -v '^ *+' conftest.er1
>conftest.err
11991 cat conftest.err
>&5
11992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993 (exit $ac_status); } && {
11994 test -z "$ac_c_werror_flag" ||
11995 test ! -s conftest.err
11996 } && test -s conftest
$ac_exeext &&
11997 $as_test_x conftest
$ac_exeext; then
11998 ac_cv_lib_intl_textdomain
=yes
12000 echo "$as_me: failed program was:" >&5
12001 sed 's/^/| /' conftest.
$ac_ext >&5
12003 ac_cv_lib_intl_textdomain
=no
12006 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12007 conftest
$ac_exeext conftest.
$ac_ext
12008 LIBS
=$ac_check_lib_save_LIBS
12010 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
12011 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
12012 if test $ac_cv_lib_intl_textdomain = yes; then
12014 cat >>confdefs.h
<<\_ACEOF
12015 #define WITH_LIBINTL 1
12021 # checks for system dependent C++ extensions support
12022 case "$ac_sys_system" in
12023 AIX
*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
12024 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
12025 cat >conftest.
$ac_ext <<_ACEOF
12028 cat confdefs.h
>>conftest.
$ac_ext
12029 cat >>conftest.
$ac_ext <<_ACEOF
12030 /* end confdefs.h. */
12031 #include "/usr/lpp/xlC/include/load.h"
12035 loadAndInit("", 0, "")
12040 rm -f conftest.
$ac_objext conftest
$ac_exeext
12041 if { (ac_try
="$ac_link"
12042 case "(($ac_try" in
12043 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12044 *) ac_try_echo=$ac_try;;
12046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12047 (eval "$ac_link") 2>conftest.er1
12049 grep -v '^ *+' conftest.er1 >conftest.err
12051 cat conftest.err >&5
12052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053 (exit $ac_status); } && {
12054 test -z "$ac_c_werror_flag" ||
12055 test ! -s conftest.err
12056 } && test -s conftest$ac_exeext &&
12057 $as_test_x conftest$ac_exeext; then
12059 cat >>confdefs.h <<\_ACEOF
12060 #define AIX_GENUINE_CPLUSPLUS 1
12063 { echo "$as_me:$LINENO: result: yes" >&5
12064 echo "${ECHO_T}yes" >&6; }
12066 echo "$as_me: failed program was:" >&5
12067 sed 's/^/| /' conftest.$ac_ext >&5
12069 { echo "$as_me:$LINENO: result: no" >&5
12070 echo "${ECHO_T}no" >&6; }
12073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12074 conftest$ac_exeext conftest.$ac_ext;;
12078 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
12079 # BeOS' sockets are stashed in libnet.
12080 { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
12081 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
12082 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
12083 echo $ECHO_N "(cached) $ECHO_C" >&6
12085 ac_check_lib_save_LIBS=$LIBS
12087 cat >conftest.$ac_ext <<_ACEOF
12090 cat confdefs.h >>conftest.$ac_ext
12091 cat >>conftest.$ac_ext <<_ACEOF
12092 /* end confdefs.h. */
12094 /* Override any GCC internal prototype to avoid an error.
12095 Use char because int might match the return type of a GCC
12096 builtin and then its argument prototype would still apply. */
12109 rm -f conftest.$ac_objext conftest$ac_exeext
12110 if { (ac_try="$ac_link"
12111 case "(($ac_try" in
12112 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12113 *) ac_try_echo
=$ac_try;;
12115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12116 (eval "$ac_link") 2>conftest.er1
12118 grep -v '^ *+' conftest.er1
>conftest.err
12120 cat conftest.err
>&5
12121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122 (exit $ac_status); } && {
12123 test -z "$ac_c_werror_flag" ||
12124 test ! -s conftest.err
12125 } && test -s conftest
$ac_exeext &&
12126 $as_test_x conftest
$ac_exeext; then
12127 ac_cv_lib_nsl_t_open
=yes
12129 echo "$as_me: failed program was:" >&5
12130 sed 's/^/| /' conftest.
$ac_ext >&5
12132 ac_cv_lib_nsl_t_open
=no
12135 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12136 conftest
$ac_exeext conftest.
$ac_ext
12137 LIBS
=$ac_check_lib_save_LIBS
12139 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
12140 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
12141 if test $ac_cv_lib_nsl_t_open = yes; then
12145 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
12146 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
12147 if test "${ac_cv_lib_socket_socket+set}" = set; then
12148 echo $ECHO_N "(cached) $ECHO_C" >&6
12150 ac_check_lib_save_LIBS
=$LIBS
12151 LIBS
="-lsocket $LIBS $LIBS"
12152 cat >conftest.
$ac_ext <<_ACEOF
12155 cat confdefs.h
>>conftest.
$ac_ext
12156 cat >>conftest.
$ac_ext <<_ACEOF
12157 /* end confdefs.h. */
12159 /* Override any GCC internal prototype to avoid an error.
12160 Use char because int might match the return type of a GCC
12161 builtin and then its argument prototype would still apply. */
12174 rm -f conftest.
$ac_objext conftest
$ac_exeext
12175 if { (ac_try
="$ac_link"
12176 case "(($ac_try" in
12177 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12178 *) ac_try_echo=$ac_try;;
12180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12181 (eval "$ac_link") 2>conftest.er1
12183 grep -v '^ *+' conftest.er1 >conftest.err
12185 cat conftest.err >&5
12186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); } && {
12188 test -z "$ac_c_werror_flag" ||
12189 test ! -s conftest.err
12190 } && test -s conftest$ac_exeext &&
12191 $as_test_x conftest$ac_exeext; then
12192 ac_cv_lib_socket_socket=yes
12194 echo "$as_me: failed program was:" >&5
12195 sed 's/^/| /' conftest.$ac_ext >&5
12197 ac_cv_lib_socket_socket=no
12200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12201 conftest$ac_exeext conftest.$ac_ext
12202 LIBS=$ac_check_lib_save_LIBS
12204 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
12205 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
12206 if test $ac_cv_lib_socket_socket = yes; then
12207 LIBS="-lsocket $LIBS"
12211 case "$ac_sys_system" in
12213 { echo "$as_me:$LINENO: checking for socket in -lnet" >&5
12214 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6; }
12215 if test "${ac_cv_lib_net_socket+set}" = set; then
12216 echo $ECHO_N "(cached) $ECHO_C" >&6
12218 ac_check_lib_save_LIBS=$LIBS
12219 LIBS="-lnet $LIBS $LIBS"
12220 cat >conftest.$ac_ext <<_ACEOF
12223 cat confdefs.h >>conftest.$ac_ext
12224 cat >>conftest.$ac_ext <<_ACEOF
12225 /* end confdefs.h. */
12227 /* Override any GCC internal prototype to avoid an error.
12228 Use char because int might match the return type of a GCC
12229 builtin and then its argument prototype would still apply. */
12242 rm -f conftest.$ac_objext conftest$ac_exeext
12243 if { (ac_try="$ac_link"
12244 case "(($ac_try" in
12245 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12246 *) ac_try_echo
=$ac_try;;
12248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12249 (eval "$ac_link") 2>conftest.er1
12251 grep -v '^ *+' conftest.er1
>conftest.err
12253 cat conftest.err
>&5
12254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12255 (exit $ac_status); } && {
12256 test -z "$ac_c_werror_flag" ||
12257 test ! -s conftest.err
12258 } && test -s conftest
$ac_exeext &&
12259 $as_test_x conftest
$ac_exeext; then
12260 ac_cv_lib_net_socket
=yes
12262 echo "$as_me: failed program was:" >&5
12263 sed 's/^/| /' conftest.
$ac_ext >&5
12265 ac_cv_lib_net_socket
=no
12268 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12269 conftest
$ac_exeext conftest.
$ac_ext
12270 LIBS
=$ac_check_lib_save_LIBS
12272 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
12273 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6; }
12274 if test $ac_cv_lib_net_socket = yes; then
12281 { echo "$as_me:$LINENO: checking for --with-libs" >&5
12282 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
12284 # Check whether --with-libs was given.
12285 if test "${with_libs+set}" = set; then
12286 withval
=$with_libs;
12287 { echo "$as_me:$LINENO: result: $withval" >&5
12288 echo "${ECHO_T}$withval" >&6; }
12289 LIBS
="$withval $LIBS"
12292 { echo "$as_me:$LINENO: result: no" >&5
12293 echo "${ECHO_T}no" >&6; }
12297 # Check for use of the system libffi library
12298 if test "${ac_cv_header_ffi_h+set}" = set; then
12299 { echo "$as_me:$LINENO: checking for ffi.h" >&5
12300 echo $ECHO_N "checking for ffi.h... $ECHO_C" >&6; }
12301 if test "${ac_cv_header_ffi_h+set}" = set; then
12302 echo $ECHO_N "(cached) $ECHO_C" >&6
12304 { echo "$as_me:$LINENO: result: $ac_cv_header_ffi_h" >&5
12305 echo "${ECHO_T}$ac_cv_header_ffi_h" >&6; }
12307 # Is the header compilable?
12308 { echo "$as_me:$LINENO: checking ffi.h usability" >&5
12309 echo $ECHO_N "checking ffi.h usability... $ECHO_C" >&6; }
12310 cat >conftest.
$ac_ext <<_ACEOF
12313 cat confdefs.h
>>conftest.
$ac_ext
12314 cat >>conftest.
$ac_ext <<_ACEOF
12315 /* end confdefs.h. */
12316 $ac_includes_default
12319 rm -f conftest.
$ac_objext
12320 if { (ac_try
="$ac_compile"
12321 case "(($ac_try" in
12322 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12323 *) ac_try_echo=$ac_try;;
12325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12326 (eval "$ac_compile") 2>conftest.er1
12328 grep -v '^ *+' conftest.er1 >conftest.err
12330 cat conftest.err >&5
12331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332 (exit $ac_status); } && {
12333 test -z "$ac_c_werror_flag" ||
12334 test ! -s conftest.err
12335 } && test -s conftest.$ac_objext; then
12336 ac_header_compiler=yes
12338 echo "$as_me: failed program was:" >&5
12339 sed 's/^/| /' conftest.$ac_ext >&5
12341 ac_header_compiler=no
12344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12345 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12346 echo "${ECHO_T}$ac_header_compiler" >&6; }
12348 # Is the header present?
12349 { echo "$as_me:$LINENO: checking ffi.h presence" >&5
12350 echo $ECHO_N "checking ffi.h presence... $ECHO_C" >&6; }
12351 cat >conftest.$ac_ext <<_ACEOF
12354 cat confdefs.h >>conftest.$ac_ext
12355 cat >>conftest.$ac_ext <<_ACEOF
12356 /* end confdefs.h. */
12359 if { (ac_try="$ac_cpp conftest.$ac_ext"
12360 case "(($ac_try" in
12361 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12362 *) ac_try_echo
=$ac_try;;
12364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12365 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12367 grep -v '^ *+' conftest.er1
>conftest.err
12369 cat conftest.err
>&5
12370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371 (exit $ac_status); } >/dev
/null
&& {
12372 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12373 test ! -s conftest.err
12375 ac_header_preproc
=yes
12377 echo "$as_me: failed program was:" >&5
12378 sed 's/^/| /' conftest.
$ac_ext >&5
12380 ac_header_preproc
=no
12383 rm -f conftest.err conftest.
$ac_ext
12384 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12385 echo "${ECHO_T}$ac_header_preproc" >&6; }
12387 # So? What about this header?
12388 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12390 { echo "$as_me:$LINENO: WARNING: ffi.h: accepted by the compiler, rejected by the preprocessor!" >&5
12391 echo "$as_me: WARNING: ffi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12392 { echo "$as_me:$LINENO: WARNING: ffi.h: proceeding with the compiler's result" >&5
12393 echo "$as_me: WARNING: ffi.h: proceeding with the compiler's result" >&2;}
12394 ac_header_preproc
=yes
12397 { echo "$as_me:$LINENO: WARNING: ffi.h: present but cannot be compiled" >&5
12398 echo "$as_me: WARNING: ffi.h: present but cannot be compiled" >&2;}
12399 { echo "$as_me:$LINENO: WARNING: ffi.h: check for missing prerequisite headers?" >&5
12400 echo "$as_me: WARNING: ffi.h: check for missing prerequisite headers?" >&2;}
12401 { echo "$as_me:$LINENO: WARNING: ffi.h: see the Autoconf documentation" >&5
12402 echo "$as_me: WARNING: ffi.h: see the Autoconf documentation" >&2;}
12403 { echo "$as_me:$LINENO: WARNING: ffi.h: section \"Present But Cannot Be Compiled\"" >&5
12404 echo "$as_me: WARNING: ffi.h: section \"Present But Cannot Be Compiled\"" >&2;}
12405 { echo "$as_me:$LINENO: WARNING: ffi.h: proceeding with the preprocessor's result" >&5
12406 echo "$as_me: WARNING: ffi.h: proceeding with the preprocessor's result" >&2;}
12407 { echo "$as_me:$LINENO: WARNING: ffi.h: in the future, the compiler will take precedence" >&5
12408 echo "$as_me: WARNING: ffi.h: in the future, the compiler will take precedence" >&2;}
12410 ## ------------------------------------------------ ##
12411 ## Report this to http://www.python.org/python-bugs ##
12412 ## ------------------------------------------------ ##
12414 ) |
sed "s/^/$as_me: WARNING: /" >&2
12417 { echo "$as_me:$LINENO: checking for ffi.h" >&5
12418 echo $ECHO_N "checking for ffi.h... $ECHO_C" >&6; }
12419 if test "${ac_cv_header_ffi_h+set}" = set; then
12420 echo $ECHO_N "(cached) $ECHO_C" >&6
12422 ac_cv_header_ffi_h
=$ac_header_preproc
12424 { echo "$as_me:$LINENO: result: $ac_cv_header_ffi_h" >&5
12425 echo "${ECHO_T}$ac_cv_header_ffi_h" >&6; }
12430 { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
12431 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
12433 # Check whether --with-system_ffi was given.
12434 if test "${with_system_ffi+set}" = set; then
12435 withval
=$with_system_ffi;
12439 if test -z "$with_system_ffi" && test "$ac_cv_header_ffi_h" = yes; then
12440 case "$ac_sys_system/`uname -m`" in
12441 Linux
/arm
*) with_system_ffi
="yes"; CONFIG_ARGS
="$CONFIG_ARGS --with-system-ffi";;
12442 *) with_system_ffi
="no"
12445 { echo "$as_me:$LINENO: result: $with_system_ffi" >&5
12446 echo "${ECHO_T}$with_system_ffi" >&6; }
12448 # Determine if signalmodule should be used.
12451 { echo "$as_me:$LINENO: checking for --with-signal-module" >&5
12452 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; }
12454 # Check whether --with-signal-module was given.
12455 if test "${with_signal_module+set}" = set; then
12456 withval
=$with_signal_module;
12460 if test -z "$with_signal_module"
12461 then with_signal_module
="yes"
12463 { echo "$as_me:$LINENO: result: $with_signal_module" >&5
12464 echo "${ECHO_T}$with_signal_module" >&6; }
12466 if test "${with_signal_module}" = "yes"; then
12467 USE_SIGNAL_MODULE
=""
12470 USE_SIGNAL_MODULE
="#"
12471 SIGNAL_OBJS
="Parser/intrcheck.o Python/sigcheck.o"
12474 # This is used to generate Setup.config
12476 USE_THREAD_MODULE
=""
12478 { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
12479 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; }
12482 # Check whether --with-dec-threads was given.
12483 if test "${with_dec_threads+set}" = set; then
12484 withval
=$with_dec_threads;
12485 { echo "$as_me:$LINENO: result: $withval" >&5
12486 echo "${ECHO_T}$withval" >&6; }
12488 if test "${with_thread+set}" != set; then
12489 with_thread
="$withval";
12492 { echo "$as_me:$LINENO: result: no" >&5
12493 echo "${ECHO_T}no" >&6; }
12497 # Templates for things AC_DEFINEd more than once.
12498 # For a single AC_DEFINE, no template is needed.
12506 { echo "$as_me:$LINENO: checking for --with-threads" >&5
12507 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; }
12509 # Check whether --with-threads was given.
12510 if test "${with_threads+set}" = set; then
12511 withval
=$with_threads;
12515 # --with-thread is deprecated, but check for it anyway
12517 # Check whether --with-thread was given.
12518 if test "${with_thread+set}" = set; then
12519 withval
=$with_thread; with_threads
=$with_thread
12523 if test -z "$with_threads"
12524 then with_threads
="yes"
12526 { echo "$as_me:$LINENO: result: $with_threads" >&5
12527 echo "${ECHO_T}$with_threads" >&6; }
12530 if test "$with_threads" = "no"
12532 USE_THREAD_MODULE
="#"
12533 elif test "$ac_cv_pthread_is_default" = yes
12535 cat >>confdefs.h
<<\_ACEOF
12536 #define WITH_THREAD 1
12539 # Defining _REENTRANT on system with POSIX threads should not hurt.
12540 cat >>confdefs.h
<<\_ACEOF
12541 #define _REENTRANT 1
12545 THREADOBJ
="Python/thread.o"
12546 elif test "$ac_cv_kpthread" = "yes"
12549 if test "$ac_cv_cxx_thread" = "yes"; then
12550 CXX
="$CXX -Kpthread"
12552 cat >>confdefs.h
<<\_ACEOF
12553 #define WITH_THREAD 1
12557 THREADOBJ
="Python/thread.o"
12558 elif test "$ac_cv_kthread" = "yes"
12561 if test "$ac_cv_cxx_thread" = "yes"; then
12562 CXX
="$CXX -Kthread"
12564 cat >>confdefs.h
<<\_ACEOF
12565 #define WITH_THREAD 1
12569 THREADOBJ
="Python/thread.o"
12570 elif test "$ac_cv_pthread" = "yes"
12573 if test "$ac_cv_cxx_thread" = "yes"; then
12574 CXX
="$CXX -pthread"
12576 cat >>confdefs.h
<<\_ACEOF
12577 #define WITH_THREAD 1
12581 THREADOBJ
="Python/thread.o"
12583 if test ! -z "$with_threads" -a -d "$with_threads"
12584 then LDFLAGS
="$LDFLAGS -L$with_threads"
12586 if test ! -z "$withval" -a -d "$withval"
12587 then LDFLAGS
="$LDFLAGS -L$withval"
12590 # According to the POSIX spec, a pthreads implementation must
12591 # define _POSIX_THREADS in unistd.h. Some apparently don't
12592 # (e.g. gnu pth with pthread emulation)
12593 { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
12594 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; }
12595 cat >conftest.
$ac_ext <<_ACEOF
12598 cat confdefs.h
>>conftest.
$ac_ext
12599 cat >>conftest.
$ac_ext <<_ACEOF
12600 /* end confdefs.h. */
12602 #include <unistd.h>
12603 #ifdef _POSIX_THREADS
12608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12609 $EGREP "yes" >/dev
/null
2>&1; then
12610 unistd_defines_pthreads
=yes
12612 unistd_defines_pthreads
=no
12616 { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
12617 echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
12619 cat >>confdefs.h
<<\_ACEOF
12620 #define _REENTRANT 1
12623 if test "${ac_cv_header_cthreads_h+set}" = set; then
12624 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
12625 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
12626 if test "${ac_cv_header_cthreads_h+set}" = set; then
12627 echo $ECHO_N "(cached) $ECHO_C" >&6
12629 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
12630 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
12632 # Is the header compilable?
12633 { echo "$as_me:$LINENO: checking cthreads.h usability" >&5
12634 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; }
12635 cat >conftest.
$ac_ext <<_ACEOF
12638 cat confdefs.h
>>conftest.
$ac_ext
12639 cat >>conftest.
$ac_ext <<_ACEOF
12640 /* end confdefs.h. */
12641 $ac_includes_default
12642 #include <cthreads.h>
12644 rm -f conftest.
$ac_objext
12645 if { (ac_try
="$ac_compile"
12646 case "(($ac_try" in
12647 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12648 *) ac_try_echo=$ac_try;;
12650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12651 (eval "$ac_compile") 2>conftest.er1
12653 grep -v '^ *+' conftest.er1 >conftest.err
12655 cat conftest.err >&5
12656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657 (exit $ac_status); } && {
12658 test -z "$ac_c_werror_flag" ||
12659 test ! -s conftest.err
12660 } && test -s conftest.$ac_objext; then
12661 ac_header_compiler=yes
12663 echo "$as_me: failed program was:" >&5
12664 sed 's/^/| /' conftest.$ac_ext >&5
12666 ac_header_compiler=no
12669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12670 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12671 echo "${ECHO_T}$ac_header_compiler" >&6; }
12673 # Is the header present?
12674 { echo "$as_me:$LINENO: checking cthreads.h presence" >&5
12675 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; }
12676 cat >conftest.$ac_ext <<_ACEOF
12679 cat confdefs.h >>conftest.$ac_ext
12680 cat >>conftest.$ac_ext <<_ACEOF
12681 /* end confdefs.h. */
12682 #include <cthreads.h>
12684 if { (ac_try="$ac_cpp conftest.$ac_ext"
12685 case "(($ac_try" in
12686 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12687 *) ac_try_echo
=$ac_try;;
12689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12690 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12692 grep -v '^ *+' conftest.er1
>conftest.err
12694 cat conftest.err
>&5
12695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696 (exit $ac_status); } >/dev
/null
&& {
12697 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12698 test ! -s conftest.err
12700 ac_header_preproc
=yes
12702 echo "$as_me: failed program was:" >&5
12703 sed 's/^/| /' conftest.
$ac_ext >&5
12705 ac_header_preproc
=no
12708 rm -f conftest.err conftest.
$ac_ext
12709 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12710 echo "${ECHO_T}$ac_header_preproc" >&6; }
12712 # So? What about this header?
12713 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12715 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12716 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12717 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
12718 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
12719 ac_header_preproc
=yes
12722 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
12723 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
12724 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
12725 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
12726 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
12727 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
12728 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
12729 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12730 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
12731 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
12732 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
12733 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
12735 ## ------------------------------------------------ ##
12736 ## Report this to http://www.python.org/python-bugs ##
12737 ## ------------------------------------------------ ##
12739 ) |
sed "s/^/$as_me: WARNING: /" >&2
12742 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
12743 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
12744 if test "${ac_cv_header_cthreads_h+set}" = set; then
12745 echo $ECHO_N "(cached) $ECHO_C" >&6
12747 ac_cv_header_cthreads_h
=$ac_header_preproc
12749 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
12750 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
12753 if test $ac_cv_header_cthreads_h = yes; then
12754 cat >>confdefs.h
<<\_ACEOF
12755 #define WITH_THREAD 1
12758 cat >>confdefs.h
<<\_ACEOF
12759 #define C_THREADS 1
12763 cat >>confdefs.h
<<\_ACEOF
12764 #define HURD_C_THREADS 1
12767 LIBS
="$LIBS -lthreads"
12768 THREADOBJ
="Python/thread.o"
12771 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12772 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
12773 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
12774 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12775 echo $ECHO_N "(cached) $ECHO_C" >&6
12777 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
12778 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
12780 # Is the header compilable?
12781 { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
12782 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; }
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 #include <mach/cthreads.h>
12792 rm -f conftest.
$ac_objext
12793 if { (ac_try
="$ac_compile"
12794 case "(($ac_try" in
12795 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12796 *) ac_try_echo=$ac_try;;
12798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12799 (eval "$ac_compile") 2>conftest.er1
12801 grep -v '^ *+' conftest.er1 >conftest.err
12803 cat conftest.err >&5
12804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805 (exit $ac_status); } && {
12806 test -z "$ac_c_werror_flag" ||
12807 test ! -s conftest.err
12808 } && test -s conftest.$ac_objext; then
12809 ac_header_compiler=yes
12811 echo "$as_me: failed program was:" >&5
12812 sed 's/^/| /' conftest.$ac_ext >&5
12814 ac_header_compiler=no
12817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12818 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12819 echo "${ECHO_T}$ac_header_compiler" >&6; }
12821 # Is the header present?
12822 { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
12823 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; }
12824 cat >conftest.$ac_ext <<_ACEOF
12827 cat confdefs.h >>conftest.$ac_ext
12828 cat >>conftest.$ac_ext <<_ACEOF
12829 /* end confdefs.h. */
12830 #include <mach/cthreads.h>
12832 if { (ac_try="$ac_cpp conftest.$ac_ext"
12833 case "(($ac_try" in
12834 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12835 *) ac_try_echo
=$ac_try;;
12837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12838 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12840 grep -v '^ *+' conftest.er1
>conftest.err
12842 cat conftest.err
>&5
12843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844 (exit $ac_status); } >/dev
/null
&& {
12845 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12846 test ! -s conftest.err
12848 ac_header_preproc
=yes
12850 echo "$as_me: failed program was:" >&5
12851 sed 's/^/| /' conftest.
$ac_ext >&5
12853 ac_header_preproc
=no
12856 rm -f conftest.err conftest.
$ac_ext
12857 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12858 echo "${ECHO_T}$ac_header_preproc" >&6; }
12860 # So? What about this header?
12861 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12863 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
12864 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12865 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
12866 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
12867 ac_header_preproc
=yes
12870 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
12871 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
12872 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
12873 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
12874 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
12875 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
12876 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
12877 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
12878 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
12879 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
12880 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
12881 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
12883 ## ------------------------------------------------ ##
12884 ## Report this to http://www.python.org/python-bugs ##
12885 ## ------------------------------------------------ ##
12887 ) |
sed "s/^/$as_me: WARNING: /" >&2
12890 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
12891 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
12892 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
12893 echo $ECHO_N "(cached) $ECHO_C" >&6
12895 ac_cv_header_mach_cthreads_h
=$ac_header_preproc
12897 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
12898 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
12901 if test $ac_cv_header_mach_cthreads_h = yes; then
12902 cat >>confdefs.h
<<\_ACEOF
12903 #define WITH_THREAD 1
12906 cat >>confdefs.h
<<\_ACEOF
12907 #define C_THREADS 1
12911 cat >>confdefs.h
<<\_ACEOF
12912 #define MACH_C_THREADS 1
12915 THREADOBJ
="Python/thread.o"
12918 { echo "$as_me:$LINENO: checking for --with-pth" >&5
12919 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; }
12921 # Check whether --with-pth was given.
12922 if test "${with_pth+set}" = set; then
12923 withval
=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5
12924 echo "${ECHO_T}$withval" >&6; }
12925 cat >>confdefs.h
<<\_ACEOF
12926 #define WITH_THREAD 1
12930 cat >>confdefs.h
<<\_ACEOF
12935 THREADOBJ
="Python/thread.o"
12937 { echo "$as_me:$LINENO: result: no" >&5
12938 echo "${ECHO_T}no" >&6; }
12940 # Just looking for pthread_create in libpthread is not enough:
12941 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
12942 # So we really have to include pthread.h, and then link.
12944 LIBS
="$LIBS -lpthread"
12945 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
12946 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
12947 cat >conftest.
$ac_ext <<_ACEOF
12950 cat confdefs.h
>>conftest.
$ac_ext
12951 cat >>conftest.
$ac_ext <<_ACEOF
12952 /* end confdefs.h. */
12953 #include <pthread.h>
12955 void * start_routine (void *arg) { exit (0); }
12960 pthread_create (NULL, NULL, start_routine, NULL)
12965 rm -f conftest.
$ac_objext conftest
$ac_exeext
12966 if { (ac_try
="$ac_link"
12967 case "(($ac_try" in
12968 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12969 *) ac_try_echo=$ac_try;;
12971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12972 (eval "$ac_link") 2>conftest.er1
12974 grep -v '^ *+' conftest.er1 >conftest.err
12976 cat conftest.err >&5
12977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978 (exit $ac_status); } && {
12979 test -z "$ac_c_werror_flag" ||
12980 test ! -s conftest.err
12981 } && test -s conftest$ac_exeext &&
12982 $as_test_x conftest$ac_exeext; then
12984 { echo "$as_me:$LINENO: result: yes" >&5
12985 echo "${ECHO_T}yes" >&6; }
12986 cat >>confdefs.h <<\_ACEOF
12987 #define WITH_THREAD 1
12991 THREADOBJ="Python/thread.o"
12993 echo "$as_me: failed program was:" >&5
12994 sed 's/^/| /' conftest.$ac_ext >&5
12998 { echo "$as_me:$LINENO: checking for pthread_detach" >&5
12999 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; }
13000 if test "${ac_cv_func_pthread_detach+set}" = set; then
13001 echo $ECHO_N "(cached) $ECHO_C" >&6
13003 cat >conftest.$ac_ext <<_ACEOF
13006 cat confdefs.h >>conftest.$ac_ext
13007 cat >>conftest.$ac_ext <<_ACEOF
13008 /* end confdefs.h. */
13009 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
13010 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13011 #define pthread_detach innocuous_pthread_detach
13013 /* System header to define __stub macros and hopefully few prototypes,
13014 which can conflict with char pthread_detach (); below.
13015 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13016 <limits.h> exists even on freestanding compilers. */
13019 # include <limits.h>
13021 # include <assert.h>
13024 #undef pthread_detach
13026 /* Override any GCC internal prototype to avoid an error.
13027 Use char because int might match the return type of a GCC
13028 builtin and then its argument prototype would still apply. */
13032 char pthread_detach ();
13033 /* The GNU C library defines this for functions which it implements
13034 to always fail with ENOSYS. Some functions are actually named
13035 something starting with __ and the normal name is an alias. */
13036 #if defined __stub_pthread_detach || defined __stub___pthread_detach
13043 return pthread_detach ();
13048 rm -f conftest.$ac_objext conftest$ac_exeext
13049 if { (ac_try="$ac_link"
13050 case "(($ac_try" in
13051 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13052 *) ac_try_echo
=$ac_try;;
13054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13055 (eval "$ac_link") 2>conftest.er1
13057 grep -v '^ *+' conftest.er1
>conftest.err
13059 cat conftest.err
>&5
13060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061 (exit $ac_status); } && {
13062 test -z "$ac_c_werror_flag" ||
13063 test ! -s conftest.err
13064 } && test -s conftest
$ac_exeext &&
13065 $as_test_x conftest
$ac_exeext; then
13066 ac_cv_func_pthread_detach
=yes
13068 echo "$as_me: failed program was:" >&5
13069 sed 's/^/| /' conftest.
$ac_ext >&5
13071 ac_cv_func_pthread_detach
=no
13074 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13075 conftest
$ac_exeext conftest.
$ac_ext
13077 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
13078 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; }
13079 if test $ac_cv_func_pthread_detach = yes; then
13080 cat >>confdefs.h
<<\_ACEOF
13081 #define WITH_THREAD 1
13085 THREADOBJ
="Python/thread.o"
13088 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
13089 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
13090 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
13091 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
13092 echo $ECHO_N "(cached) $ECHO_C" >&6
13094 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
13095 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
13097 # Is the header compilable?
13098 { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
13099 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; }
13100 cat >conftest.
$ac_ext <<_ACEOF
13103 cat confdefs.h
>>conftest.
$ac_ext
13104 cat >>conftest.
$ac_ext <<_ACEOF
13105 /* end confdefs.h. */
13106 $ac_includes_default
13107 #include <atheos/threads.h>
13109 rm -f conftest.
$ac_objext
13110 if { (ac_try
="$ac_compile"
13111 case "(($ac_try" in
13112 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13113 *) ac_try_echo=$ac_try;;
13115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13116 (eval "$ac_compile") 2>conftest.er1
13118 grep -v '^ *+' conftest.er1 >conftest.err
13120 cat conftest.err >&5
13121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122 (exit $ac_status); } && {
13123 test -z "$ac_c_werror_flag" ||
13124 test ! -s conftest.err
13125 } && test -s conftest.$ac_objext; then
13126 ac_header_compiler=yes
13128 echo "$as_me: failed program was:" >&5
13129 sed 's/^/| /' conftest.$ac_ext >&5
13131 ac_header_compiler=no
13134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13135 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13136 echo "${ECHO_T}$ac_header_compiler" >&6; }
13138 # Is the header present?
13139 { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
13140 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; }
13141 cat >conftest.$ac_ext <<_ACEOF
13144 cat confdefs.h >>conftest.$ac_ext
13145 cat >>conftest.$ac_ext <<_ACEOF
13146 /* end confdefs.h. */
13147 #include <atheos/threads.h>
13149 if { (ac_try="$ac_cpp conftest.$ac_ext"
13150 case "(($ac_try" in
13151 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13152 *) ac_try_echo
=$ac_try;;
13154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13155 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13157 grep -v '^ *+' conftest.er1
>conftest.err
13159 cat conftest.err
>&5
13160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); } >/dev
/null
&& {
13162 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13163 test ! -s conftest.err
13165 ac_header_preproc
=yes
13167 echo "$as_me: failed program was:" >&5
13168 sed 's/^/| /' conftest.
$ac_ext >&5
13170 ac_header_preproc
=no
13173 rm -f conftest.err conftest.
$ac_ext
13174 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13175 echo "${ECHO_T}$ac_header_preproc" >&6; }
13177 # So? What about this header?
13178 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13180 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
13181 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13182 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
13183 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
13184 ac_header_preproc
=yes
13187 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
13188 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
13189 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
13190 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
13191 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
13192 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
13193 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
13194 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
13195 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
13196 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
13197 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
13198 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
13200 ## ------------------------------------------------ ##
13201 ## Report this to http://www.python.org/python-bugs ##
13202 ## ------------------------------------------------ ##
13204 ) |
sed "s/^/$as_me: WARNING: /" >&2
13207 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
13208 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
13209 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
13210 echo $ECHO_N "(cached) $ECHO_C" >&6
13212 ac_cv_header_atheos_threads_h
=$ac_header_preproc
13214 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
13215 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
13218 if test $ac_cv_header_atheos_threads_h = yes; then
13219 cat >>confdefs.h
<<\_ACEOF
13220 #define WITH_THREAD 1
13224 cat >>confdefs.h
<<\_ACEOF
13225 #define ATHEOS_THREADS 1
13228 THREADOBJ
="Python/thread.o"
13231 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
13232 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
13233 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
13234 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
13235 echo $ECHO_N "(cached) $ECHO_C" >&6
13237 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
13238 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
13240 # Is the header compilable?
13241 { echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
13242 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6; }
13243 cat >conftest.
$ac_ext <<_ACEOF
13246 cat confdefs.h
>>conftest.
$ac_ext
13247 cat >>conftest.
$ac_ext <<_ACEOF
13248 /* end confdefs.h. */
13249 $ac_includes_default
13250 #include <kernel/OS.h>
13252 rm -f conftest.
$ac_objext
13253 if { (ac_try
="$ac_compile"
13254 case "(($ac_try" in
13255 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13256 *) ac_try_echo=$ac_try;;
13258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13259 (eval "$ac_compile") 2>conftest.er1
13261 grep -v '^ *+' conftest.er1 >conftest.err
13263 cat conftest.err >&5
13264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13265 (exit $ac_status); } && {
13266 test -z "$ac_c_werror_flag" ||
13267 test ! -s conftest.err
13268 } && test -s conftest.$ac_objext; then
13269 ac_header_compiler=yes
13271 echo "$as_me: failed program was:" >&5
13272 sed 's/^/| /' conftest.$ac_ext >&5
13274 ac_header_compiler=no
13277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13278 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13279 echo "${ECHO_T}$ac_header_compiler" >&6; }
13281 # Is the header present?
13282 { echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
13283 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6; }
13284 cat >conftest.$ac_ext <<_ACEOF
13287 cat confdefs.h >>conftest.$ac_ext
13288 cat >>conftest.$ac_ext <<_ACEOF
13289 /* end confdefs.h. */
13290 #include <kernel/OS.h>
13292 if { (ac_try="$ac_cpp conftest.$ac_ext"
13293 case "(($ac_try" in
13294 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13295 *) ac_try_echo
=$ac_try;;
13297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13298 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13300 grep -v '^ *+' conftest.er1
>conftest.err
13302 cat conftest.err
>&5
13303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304 (exit $ac_status); } >/dev
/null
&& {
13305 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13306 test ! -s conftest.err
13308 ac_header_preproc
=yes
13310 echo "$as_me: failed program was:" >&5
13311 sed 's/^/| /' conftest.
$ac_ext >&5
13313 ac_header_preproc
=no
13316 rm -f conftest.err conftest.
$ac_ext
13317 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13318 echo "${ECHO_T}$ac_header_preproc" >&6; }
13320 # So? What about this header?
13321 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13323 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
13324 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13325 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
13326 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
13327 ac_header_preproc
=yes
13330 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
13331 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
13332 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
13333 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
13334 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
13335 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
13336 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
13337 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
13338 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
13339 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
13340 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
13341 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
13343 ## ------------------------------------------------ ##
13344 ## Report this to http://www.python.org/python-bugs ##
13345 ## ------------------------------------------------ ##
13347 ) |
sed "s/^/$as_me: WARNING: /" >&2
13350 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
13351 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
13352 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
13353 echo $ECHO_N "(cached) $ECHO_C" >&6
13355 ac_cv_header_kernel_OS_h
=$ac_header_preproc
13357 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
13358 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
13361 if test $ac_cv_header_kernel_OS_h = yes; then
13362 cat >>confdefs.h
<<\_ACEOF
13363 #define WITH_THREAD 1
13367 cat >>confdefs.h
<<\_ACEOF
13368 #define BEOS_THREADS 1
13371 THREADOBJ
="Python/thread.o"
13374 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
13375 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
13376 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
13377 echo $ECHO_N "(cached) $ECHO_C" >&6
13379 ac_check_lib_save_LIBS
=$LIBS
13380 LIBS
="-lpthreads $LIBS"
13381 cat >conftest.
$ac_ext <<_ACEOF
13384 cat confdefs.h
>>conftest.
$ac_ext
13385 cat >>conftest.
$ac_ext <<_ACEOF
13386 /* end confdefs.h. */
13388 /* Override any GCC internal prototype to avoid an error.
13389 Use char because int might match the return type of a GCC
13390 builtin and then its argument prototype would still apply. */
13394 char pthread_create ();
13398 return pthread_create ();
13403 rm -f conftest.
$ac_objext conftest
$ac_exeext
13404 if { (ac_try
="$ac_link"
13405 case "(($ac_try" in
13406 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13407 *) ac_try_echo=$ac_try;;
13409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13410 (eval "$ac_link") 2>conftest.er1
13412 grep -v '^ *+' conftest.er1 >conftest.err
13414 cat conftest.err >&5
13415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416 (exit $ac_status); } && {
13417 test -z "$ac_c_werror_flag" ||
13418 test ! -s conftest.err
13419 } && test -s conftest$ac_exeext &&
13420 $as_test_x conftest$ac_exeext; then
13421 ac_cv_lib_pthreads_pthread_create=yes
13423 echo "$as_me: failed program was:" >&5
13424 sed 's/^/| /' conftest.$ac_ext >&5
13426 ac_cv_lib_pthreads_pthread_create=no
13429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13430 conftest$ac_exeext conftest.$ac_ext
13431 LIBS=$ac_check_lib_save_LIBS
13433 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
13434 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
13435 if test $ac_cv_lib_pthreads_pthread_create = yes; then
13436 cat >>confdefs.h <<\_ACEOF
13437 #define WITH_THREAD 1
13441 LIBS="$LIBS -lpthreads"
13442 THREADOBJ="Python/thread.o"
13445 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
13446 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
13447 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
13448 echo $ECHO_N "(cached) $ECHO_C" >&6
13450 ac_check_lib_save_LIBS=$LIBS
13452 cat >conftest.$ac_ext <<_ACEOF
13455 cat confdefs.h >>conftest.$ac_ext
13456 cat >>conftest.$ac_ext <<_ACEOF
13457 /* end confdefs.h. */
13459 /* Override any GCC internal prototype to avoid an error.
13460 Use char because int might match the return type of a GCC
13461 builtin and then its argument prototype would still apply. */
13465 char pthread_create ();
13469 return pthread_create ();
13474 rm -f conftest.$ac_objext conftest$ac_exeext
13475 if { (ac_try="$ac_link"
13476 case "(($ac_try" in
13477 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13478 *) ac_try_echo
=$ac_try;;
13480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13481 (eval "$ac_link") 2>conftest.er1
13483 grep -v '^ *+' conftest.er1
>conftest.err
13485 cat conftest.err
>&5
13486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487 (exit $ac_status); } && {
13488 test -z "$ac_c_werror_flag" ||
13489 test ! -s conftest.err
13490 } && test -s conftest
$ac_exeext &&
13491 $as_test_x conftest
$ac_exeext; then
13492 ac_cv_lib_c_r_pthread_create
=yes
13494 echo "$as_me: failed program was:" >&5
13495 sed 's/^/| /' conftest.
$ac_ext >&5
13497 ac_cv_lib_c_r_pthread_create
=no
13500 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13501 conftest
$ac_exeext conftest.
$ac_ext
13502 LIBS
=$ac_check_lib_save_LIBS
13504 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
13505 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
13506 if test $ac_cv_lib_c_r_pthread_create = yes; then
13507 cat >>confdefs.h
<<\_ACEOF
13508 #define WITH_THREAD 1
13513 THREADOBJ
="Python/thread.o"
13516 { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
13517 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
13518 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
13519 echo $ECHO_N "(cached) $ECHO_C" >&6
13521 ac_check_lib_save_LIBS
=$LIBS
13522 LIBS
="-lpthread $LIBS"
13523 cat >conftest.
$ac_ext <<_ACEOF
13526 cat confdefs.h
>>conftest.
$ac_ext
13527 cat >>conftest.
$ac_ext <<_ACEOF
13528 /* end confdefs.h. */
13530 /* Override any GCC internal prototype to avoid an error.
13531 Use char because int might match the return type of a GCC
13532 builtin and then its argument prototype would still apply. */
13536 char __pthread_create_system ();
13540 return __pthread_create_system ();
13545 rm -f conftest.
$ac_objext conftest
$ac_exeext
13546 if { (ac_try
="$ac_link"
13547 case "(($ac_try" in
13548 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13549 *) ac_try_echo=$ac_try;;
13551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13552 (eval "$ac_link") 2>conftest.er1
13554 grep -v '^ *+' conftest.er1 >conftest.err
13556 cat conftest.err >&5
13557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13558 (exit $ac_status); } && {
13559 test -z "$ac_c_werror_flag" ||
13560 test ! -s conftest.err
13561 } && test -s conftest$ac_exeext &&
13562 $as_test_x conftest$ac_exeext; then
13563 ac_cv_lib_pthread___pthread_create_system=yes
13565 echo "$as_me: failed program was:" >&5
13566 sed 's/^/| /' conftest.$ac_ext >&5
13568 ac_cv_lib_pthread___pthread_create_system=no
13571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13572 conftest$ac_exeext conftest.$ac_ext
13573 LIBS=$ac_check_lib_save_LIBS
13575 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
13576 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
13577 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
13578 cat >>confdefs.h <<\_ACEOF
13579 #define WITH_THREAD 1
13583 LIBS="$LIBS -lpthread"
13584 THREADOBJ="Python/thread.o"
13587 { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
13588 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
13589 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
13590 echo $ECHO_N "(cached) $ECHO_C" >&6
13592 ac_check_lib_save_LIBS=$LIBS
13594 cat >conftest.$ac_ext <<_ACEOF
13597 cat confdefs.h >>conftest.$ac_ext
13598 cat >>conftest.$ac_ext <<_ACEOF
13599 /* end confdefs.h. */
13601 /* Override any GCC internal prototype to avoid an error.
13602 Use char because int might match the return type of a GCC
13603 builtin and then its argument prototype would still apply. */
13607 char pthread_create ();
13611 return pthread_create ();
13616 rm -f conftest.$ac_objext conftest$ac_exeext
13617 if { (ac_try="$ac_link"
13618 case "(($ac_try" in
13619 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13620 *) ac_try_echo
=$ac_try;;
13622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13623 (eval "$ac_link") 2>conftest.er1
13625 grep -v '^ *+' conftest.er1
>conftest.err
13627 cat conftest.err
>&5
13628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629 (exit $ac_status); } && {
13630 test -z "$ac_c_werror_flag" ||
13631 test ! -s conftest.err
13632 } && test -s conftest
$ac_exeext &&
13633 $as_test_x conftest
$ac_exeext; then
13634 ac_cv_lib_cma_pthread_create
=yes
13636 echo "$as_me: failed program was:" >&5
13637 sed 's/^/| /' conftest.
$ac_ext >&5
13639 ac_cv_lib_cma_pthread_create
=no
13642 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13643 conftest
$ac_exeext conftest.
$ac_ext
13644 LIBS
=$ac_check_lib_save_LIBS
13646 { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
13647 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
13648 if test $ac_cv_lib_cma_pthread_create = yes; then
13649 cat >>confdefs.h
<<\_ACEOF
13650 #define WITH_THREAD 1
13655 THREADOBJ
="Python/thread.o"
13658 USE_THREAD_MODULE
="#"
13678 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13679 conftest
$ac_exeext conftest.
$ac_ext
13689 { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
13690 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
13691 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
13692 echo $ECHO_N "(cached) $ECHO_C" >&6
13694 ac_check_lib_save_LIBS
=$LIBS
13696 cat >conftest.
$ac_ext <<_ACEOF
13699 cat confdefs.h
>>conftest.
$ac_ext
13700 cat >>conftest.
$ac_ext <<_ACEOF
13701 /* end confdefs.h. */
13703 /* Override any GCC internal prototype to avoid an error.
13704 Use char because int might match the return type of a GCC
13705 builtin and then its argument prototype would still apply. */
13713 return usconfig ();
13718 rm -f conftest.
$ac_objext conftest
$ac_exeext
13719 if { (ac_try
="$ac_link"
13720 case "(($ac_try" in
13721 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13722 *) ac_try_echo=$ac_try;;
13724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13725 (eval "$ac_link") 2>conftest.er1
13727 grep -v '^ *+' conftest.er1 >conftest.err
13729 cat conftest.err >&5
13730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731 (exit $ac_status); } && {
13732 test -z "$ac_c_werror_flag" ||
13733 test ! -s conftest.err
13734 } && test -s conftest$ac_exeext &&
13735 $as_test_x conftest$ac_exeext; then
13736 ac_cv_lib_mpc_usconfig=yes
13738 echo "$as_me: failed program was:" >&5
13739 sed 's/^/| /' conftest.$ac_ext >&5
13741 ac_cv_lib_mpc_usconfig=no
13744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13745 conftest$ac_exeext conftest.$ac_ext
13746 LIBS=$ac_check_lib_save_LIBS
13748 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
13749 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
13750 if test $ac_cv_lib_mpc_usconfig = yes; then
13751 cat >>confdefs.h <<\_ACEOF
13752 #define WITH_THREAD 1
13756 THREADOBJ="Python/thread.o"
13757 USE_THREAD_MODULE=""
13761 if test "$posix_threads" != "yes"; then
13762 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
13763 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
13764 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
13765 echo $ECHO_N "(cached) $ECHO_C" >&6
13767 ac_check_lib_save_LIBS=$LIBS
13768 LIBS="-lthread $LIBS"
13769 cat >conftest.$ac_ext <<_ACEOF
13772 cat confdefs.h >>conftest.$ac_ext
13773 cat >>conftest.$ac_ext <<_ACEOF
13774 /* end confdefs.h. */
13776 /* Override any GCC internal prototype to avoid an error.
13777 Use char because int might match the return type of a GCC
13778 builtin and then its argument prototype would still apply. */
13782 char thr_create ();
13786 return thr_create ();
13791 rm -f conftest.$ac_objext conftest$ac_exeext
13792 if { (ac_try="$ac_link"
13793 case "(($ac_try" in
13794 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13795 *) ac_try_echo
=$ac_try;;
13797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13798 (eval "$ac_link") 2>conftest.er1
13800 grep -v '^ *+' conftest.er1
>conftest.err
13802 cat conftest.err
>&5
13803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804 (exit $ac_status); } && {
13805 test -z "$ac_c_werror_flag" ||
13806 test ! -s conftest.err
13807 } && test -s conftest
$ac_exeext &&
13808 $as_test_x conftest
$ac_exeext; then
13809 ac_cv_lib_thread_thr_create
=yes
13811 echo "$as_me: failed program was:" >&5
13812 sed 's/^/| /' conftest.
$ac_ext >&5
13814 ac_cv_lib_thread_thr_create
=no
13817 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13818 conftest
$ac_exeext conftest.
$ac_ext
13819 LIBS
=$ac_check_lib_save_LIBS
13821 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
13822 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
13823 if test $ac_cv_lib_thread_thr_create = yes; then
13824 cat >>confdefs.h
<<\_ACEOF
13825 #define WITH_THREAD 1
13828 LIBS
="$LIBS -lthread"
13829 THREADOBJ
="Python/thread.o"
13830 USE_THREAD_MODULE
=""
13835 if test "$USE_THREAD_MODULE" != "#"
13837 # If the above checks didn't disable threads, (at least) OSF1
13838 # needs this '-threads' argument during linking.
13839 case $ac_sys_system in
13840 OSF1
) LDLAST
=-threads;;
13845 if test "$posix_threads" = "yes"; then
13846 if test "$unistd_defines_pthreads" = "no"; then
13848 cat >>confdefs.h
<<\_ACEOF
13849 #define _POSIX_THREADS 1
13854 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
13855 case $ac_sys_system/$ac_sys_release in
13857 cat >>confdefs.h
<<\_ACEOF
13858 #define HAVE_PTHREAD_DESTRUCTOR 1
13863 cat >>confdefs.h
<<\_ACEOF
13864 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
13870 { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
13871 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
13872 if test "${ac_cv_pthread_system_supported+set}" = set; then
13873 echo $ECHO_N "(cached) $ECHO_C" >&6
13875 if test "$cross_compiling" = yes; then
13876 ac_cv_pthread_system_supported
=no
13878 cat >conftest.
$ac_ext <<_ACEOF
13881 cat confdefs.h
>>conftest.
$ac_ext
13882 cat >>conftest.
$ac_ext <<_ACEOF
13883 /* end confdefs.h. */
13884 #include <pthread.h>
13885 void *foo(void *parm) {
13889 pthread_attr_t attr;
13891 if (pthread_attr_init(&attr)) exit(-1);
13892 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
13893 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
13897 rm -f conftest
$ac_exeext
13898 if { (ac_try
="$ac_link"
13899 case "(($ac_try" in
13900 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13901 *) ac_try_echo=$ac_try;;
13903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13904 (eval "$ac_link") 2>&5
13906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13907 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13908 { (case "(($ac_try" in
13909 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13910 *) ac_try_echo
=$ac_try;;
13912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13913 (eval "$ac_try") 2>&5
13915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13916 (exit $ac_status); }; }; then
13917 ac_cv_pthread_system_supported
=yes
13919 echo "$as_me: program exited with status $ac_status" >&5
13920 echo "$as_me: failed program was:" >&5
13921 sed 's/^/| /' conftest.
$ac_ext >&5
13923 ( exit $ac_status )
13924 ac_cv_pthread_system_supported
=no
13926 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13933 { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
13934 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
13935 if test "$ac_cv_pthread_system_supported" = "yes"; then
13937 cat >>confdefs.h
<<\_ACEOF
13938 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
13943 for ac_func
in pthread_sigmask
13945 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13946 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13947 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13948 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13949 echo $ECHO_N "(cached) $ECHO_C" >&6
13951 cat >conftest.
$ac_ext <<_ACEOF
13954 cat confdefs.h
>>conftest.
$ac_ext
13955 cat >>conftest.
$ac_ext <<_ACEOF
13956 /* end confdefs.h. */
13957 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13958 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13959 #define $ac_func innocuous_$ac_func
13961 /* System header to define __stub macros and hopefully few prototypes,
13962 which can conflict with char $ac_func (); below.
13963 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13964 <limits.h> exists even on freestanding compilers. */
13967 # include <limits.h>
13969 # include <assert.h>
13974 /* Override any GCC internal prototype to avoid an error.
13975 Use char because int might match the return type of a GCC
13976 builtin and then its argument prototype would still apply. */
13981 /* The GNU C library defines this for functions which it implements
13982 to always fail with ENOSYS. Some functions are actually named
13983 something starting with __ and the normal name is an alias. */
13984 #if defined __stub_$ac_func || defined __stub___$ac_func
13991 return $ac_func ();
13996 rm -f conftest.
$ac_objext conftest
$ac_exeext
13997 if { (ac_try
="$ac_link"
13998 case "(($ac_try" in
13999 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14000 *) ac_try_echo=$ac_try;;
14002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14003 (eval "$ac_link") 2>conftest.er1
14005 grep -v '^ *+' conftest.er1 >conftest.err
14007 cat conftest.err >&5
14008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009 (exit $ac_status); } && {
14010 test -z "$ac_c_werror_flag" ||
14011 test ! -s conftest.err
14012 } && test -s conftest$ac_exeext &&
14013 $as_test_x conftest$ac_exeext; then
14014 eval "$as_ac_var=yes"
14016 echo "$as_me: failed program was:" >&5
14017 sed 's/^/| /' conftest.$ac_ext >&5
14019 eval "$as_ac_var=no"
14022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14023 conftest$ac_exeext conftest.$ac_ext
14025 ac_res=`eval echo '${'$as_ac_var'}'`
14026 { echo "$as_me:$LINENO: result: $ac_res" >&5
14027 echo "${ECHO_T}$ac_res" >&6; }
14028 if test `eval echo '${'$as_ac_var'}'` = yes; then
14029 cat >>confdefs.h <<_ACEOF
14030 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
14032 case $ac_sys_system in
14035 cat >>confdefs.h <<\_ACEOF
14036 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
14047 # Check for enable-ipv6
14050 { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
14051 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
14052 # Check whether --enable-ipv6 was given.
14053 if test "${enable_ipv6+set}" = set; then
14054 enableval=$enable_ipv6; case "$enableval" in
14056 { echo "$as_me:$LINENO: result: no" >&5
14057 echo "${ECHO_T}no" >&6; }
14060 *) { echo "$as_me:$LINENO: result: yes" >&5
14061 echo "${ECHO_T}yes" >&6; }
14062 cat >>confdefs.h <<\_ACEOF
14063 #define ENABLE_IPV6 1
14071 if test "$cross_compiling" = yes; then
14072 { echo "$as_me:$LINENO: result: no" >&5
14073 echo "${ECHO_T}no" >&6; }
14077 cat >conftest.$ac_ext <<_ACEOF
14080 cat confdefs.h >>conftest.$ac_ext
14081 cat >>conftest.$ac_ext <<_ACEOF
14082 /* end confdefs.h. */
14083 /* AF_INET6 available check */
14084 #include <sys/types.h>
14085 #include <sys/socket.h>
14088 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
14095 rm -f conftest$ac_exeext
14096 if { (ac_try="$ac_link"
14097 case "(($ac_try" in
14098 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14099 *) ac_try_echo
=$ac_try;;
14101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14102 (eval "$ac_link") 2>&5
14104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
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_try") 2>&5
14113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114 (exit $ac_status); }; }; then
14115 { echo "$as_me:$LINENO: result: yes" >&5
14116 echo "${ECHO_T}yes" >&6; }
14119 echo "$as_me: program exited with status $ac_status" >&5
14120 echo "$as_me: failed program was:" >&5
14121 sed 's/^/| /' conftest.$ac_ext >&5
14123 ( exit $ac_status )
14124 { echo "$as_me:$LINENO: result: no" >&5
14125 echo "${ECHO_T}no" >&6; }
14128 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14133 if test "$ipv6" = "yes"; then
14134 { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
14135 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; }
14136 cat >conftest.$ac_ext <<_ACEOF
14139 cat confdefs.h >>conftest.$ac_ext
14140 cat >>conftest.$ac_ext <<_ACEOF
14141 /* end confdefs.h. */
14142 #include <sys/types.h>
14143 #include <netinet/in.h>
14147 struct sockaddr_in6 x;
14153 rm -f conftest.$ac_objext
14154 if { (ac_try="$ac_compile"
14155 case "(($ac_try" in
14156 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14157 *) ac_try_echo
=$ac_try;;
14159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14160 (eval "$ac_compile") 2>conftest.er1
14162 grep -v '^ *+' conftest.er1
>conftest.err
14164 cat conftest.err
>&5
14165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166 (exit $ac_status); } && {
14167 test -z "$ac_c_werror_flag" ||
14168 test ! -s conftest.err
14169 } && test -s conftest.
$ac_objext; then
14170 { echo "$as_me:$LINENO: result: yes" >&5
14171 echo "${ECHO_T}yes" >&6; }
14174 echo "$as_me: failed program was:" >&5
14175 sed 's/^/| /' conftest.
$ac_ext >&5
14177 { echo "$as_me:$LINENO: result: no" >&5
14178 echo "${ECHO_T}no" >&6; }
14182 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14185 if test "$ipv6" = "yes"; then
14186 cat >>confdefs.h
<<\_ACEOF
14187 #define ENABLE_IPV6 1
14199 if test "$ipv6" = "yes"; then
14200 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
14201 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
14202 for i
in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta
;
14206 cat >conftest.
$ac_ext <<_ACEOF
14209 cat confdefs.h
>>conftest.
$ac_ext
14210 cat >>conftest.
$ac_ext <<_ACEOF
14211 /* end confdefs.h. */
14213 #include <netinet/in.h>
14214 #ifdef IPV6_INRIA_VERSION
14218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14219 $EGREP "yes" >/dev
/null
2>&1; then
14226 cat >conftest.
$ac_ext <<_ACEOF
14229 cat confdefs.h
>>conftest.
$ac_ext
14230 cat >>conftest.
$ac_ext <<_ACEOF
14231 /* end confdefs.h. */
14233 #include <netinet/in.h>
14238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14239 $EGREP "yes" >/dev
/null
2>&1; then
14242 ipv6libdir
=/usr
/local
/v
6/lib
14249 cat >conftest.
$ac_ext <<_ACEOF
14252 cat confdefs.h
>>conftest.
$ac_ext
14253 cat >>conftest.
$ac_ext <<_ACEOF
14254 /* end confdefs.h. */
14256 #include <features.h>
14257 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
14261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14262 $EGREP "yes" >/dev
/null
2>&1; then
14270 if test -d /usr
/inet6
; then
14273 ipv6libdir
=/usr
/inet
6/lib
14274 BASECFLAGS
="-I/usr/inet6/include $BASECFLAGS"
14278 if test -f /etc
/netconfig
; then
14279 if /usr
/xpg
4/bin
/grep -q tcp6
/etc
/netconfig
; then
14286 cat >conftest.
$ac_ext <<_ACEOF
14289 cat confdefs.h
>>conftest.
$ac_ext
14290 cat >>conftest.
$ac_ext <<_ACEOF
14291 /* end confdefs.h. */
14293 #include <sys/param.h>
14294 #ifdef _TOSHIBA_INET6
14298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14299 $EGREP "yes" >/dev
/null
2>&1; then
14302 ipv6libdir
=/usr
/local
/v
6/lib
14308 cat >conftest.
$ac_ext <<_ACEOF
14311 cat confdefs.h
>>conftest.
$ac_ext
14312 cat >>conftest.
$ac_ext <<_ACEOF
14313 /* end confdefs.h. */
14315 #include </usr/local/v6/include/sys/v6config.h>
14320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14321 $EGREP "yes" >/dev
/null
2>&1; then
14324 ipv6libdir
=/usr
/local
/v
6/lib
;
14325 BASECFLAGS
="-I/usr/local/v6/include $BASECFLAGS"
14331 cat >conftest.
$ac_ext <<_ACEOF
14334 cat confdefs.h
>>conftest.
$ac_ext
14335 cat >>conftest.
$ac_ext <<_ACEOF
14336 /* end confdefs.h. */
14338 #include <sys/param.h>
14339 #ifdef _ZETA_MINAMI_INET6
14343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14344 $EGREP "yes" >/dev
/null
2>&1; then
14347 ipv6libdir
=/usr
/local
/v
6/lib
14353 if test "$ipv6type" != "unknown"; then
14357 { echo "$as_me:$LINENO: result: $ipv6type" >&5
14358 echo "${ECHO_T}$ipv6type" >&6; }
14361 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
14362 if test -d $ipv6libdir -a -f $ipv6libdir/lib
$ipv6lib.a
; then
14363 LIBS
="-L$ipv6libdir -l$ipv6lib $LIBS"
14364 echo "using lib$ipv6lib"
14366 if test $ipv6trylibc = "yes"; then
14369 echo 'Fatal: no $ipv6lib library found. cannot continue.'
14370 echo "You need to fetch lib$ipv6lib.a from appropriate"
14371 echo 'ipv6 kit and compile beforehand.'
14377 # Check for --with-doc-strings
14378 { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
14379 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
14381 # Check whether --with-doc-strings was given.
14382 if test "${with_doc_strings+set}" = set; then
14383 withval
=$with_doc_strings;
14387 if test -z "$with_doc_strings"
14388 then with_doc_strings
="yes"
14390 if test "$with_doc_strings" != "no"
14393 cat >>confdefs.h
<<\_ACEOF
14394 #define WITH_DOC_STRINGS 1
14398 { echo "$as_me:$LINENO: result: $with_doc_strings" >&5
14399 echo "${ECHO_T}$with_doc_strings" >&6; }
14401 # Check for Python-specific malloc support
14402 { echo "$as_me:$LINENO: checking for --with-tsc" >&5
14403 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
14405 # Check whether --with-tsc was given.
14406 if test "${with_tsc+set}" = set; then
14408 if test "$withval" != no
14411 cat >>confdefs.h
<<\_ACEOF
14415 { echo "$as_me:$LINENO: result: yes" >&5
14416 echo "${ECHO_T}yes" >&6; }
14417 else { echo "$as_me:$LINENO: result: no" >&5
14418 echo "${ECHO_T}no" >&6; }
14421 { echo "$as_me:$LINENO: result: no" >&5
14422 echo "${ECHO_T}no" >&6; }
14426 # Check for Python-specific malloc support
14427 { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
14428 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
14430 # Check whether --with-pymalloc was given.
14431 if test "${with_pymalloc+set}" = set; then
14432 withval
=$with_pymalloc;
14436 if test -z "$with_pymalloc"
14437 then with_pymalloc
="yes"
14439 if test "$with_pymalloc" != "no"
14442 cat >>confdefs.h
<<\_ACEOF
14443 #define WITH_PYMALLOC 1
14447 { echo "$as_me:$LINENO: result: $with_pymalloc" >&5
14448 echo "${ECHO_T}$with_pymalloc" >&6; }
14450 # Check for --with-wctype-functions
14451 { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
14452 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
14454 # Check whether --with-wctype-functions was given.
14455 if test "${with_wctype_functions+set}" = set; then
14456 withval
=$with_wctype_functions;
14457 if test "$withval" != no
14460 cat >>confdefs.h
<<\_ACEOF
14461 #define WANT_WCTYPE_FUNCTIONS 1
14464 { echo "$as_me:$LINENO: result: yes" >&5
14465 echo "${ECHO_T}yes" >&6; }
14466 else { echo "$as_me:$LINENO: result: no" >&5
14467 echo "${ECHO_T}no" >&6; }
14470 { echo "$as_me:$LINENO: result: no" >&5
14471 echo "${ECHO_T}no" >&6; }
14475 # -I${DLINCLDIR} is added to the compile rule for importdl.o
14479 # the dlopen() function means we might want to use dynload_shlib.o. some
14480 # platforms, such as AIX, have dlopen(), but don't want to use it.
14482 for ac_func
in dlopen
14484 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14485 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14486 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14487 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14488 echo $ECHO_N "(cached) $ECHO_C" >&6
14490 cat >conftest.
$ac_ext <<_ACEOF
14493 cat confdefs.h
>>conftest.
$ac_ext
14494 cat >>conftest.
$ac_ext <<_ACEOF
14495 /* end confdefs.h. */
14496 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14498 #define $ac_func innocuous_$ac_func
14500 /* System header to define __stub macros and hopefully few prototypes,
14501 which can conflict with char $ac_func (); below.
14502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14503 <limits.h> exists even on freestanding compilers. */
14506 # include <limits.h>
14508 # include <assert.h>
14513 /* Override any GCC internal prototype to avoid an error.
14514 Use char because int might match the return type of a GCC
14515 builtin and then its argument prototype would still apply. */
14520 /* The GNU C library defines this for functions which it implements
14521 to always fail with ENOSYS. Some functions are actually named
14522 something starting with __ and the normal name is an alias. */
14523 #if defined __stub_$ac_func || defined __stub___$ac_func
14530 return $ac_func ();
14535 rm -f conftest.
$ac_objext conftest
$ac_exeext
14536 if { (ac_try
="$ac_link"
14537 case "(($ac_try" in
14538 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14539 *) ac_try_echo=$ac_try;;
14541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14542 (eval "$ac_link") 2>conftest.er1
14544 grep -v '^ *+' conftest.er1 >conftest.err
14546 cat conftest.err >&5
14547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548 (exit $ac_status); } && {
14549 test -z "$ac_c_werror_flag" ||
14550 test ! -s conftest.err
14551 } && test -s conftest$ac_exeext &&
14552 $as_test_x conftest$ac_exeext; then
14553 eval "$as_ac_var=yes"
14555 echo "$as_me: failed program was:" >&5
14556 sed 's/^/| /' conftest.$ac_ext >&5
14558 eval "$as_ac_var=no"
14561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14562 conftest$ac_exeext conftest.$ac_ext
14564 ac_res=`eval echo '${'$as_ac_var'}'`
14565 { echo "$as_me:$LINENO: result: $ac_res" >&5
14566 echo "${ECHO_T}$ac_res" >&6; }
14567 if test `eval echo '${'$as_ac_var'}'` = yes; then
14568 cat >>confdefs.h <<_ACEOF
14569 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
14576 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
14577 # loading of modules.
14579 { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
14580 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
14581 if test -z "$DYNLOADFILE"
14583 case $ac_sys_system/$ac_sys_release in
14584 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
14585 if test "$ac_cv_func_dlopen" = yes
14586 then DYNLOADFILE="dynload_shlib.o"
14587 else DYNLOADFILE="dynload_aix.o"
14590 BeOS*) DYNLOADFILE="dynload_beos.o";;
14591 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
14592 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
14593 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
14594 atheos*) DYNLOADFILE="dynload_atheos.o";;
14596 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
14597 # out any dynamic loading
14598 if test "$ac_cv_func_dlopen" = yes
14599 then DYNLOADFILE="dynload_shlib.o"
14600 else DYNLOADFILE="dynload_stub.o"
14605 { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
14606 echo "${ECHO_T}$DYNLOADFILE" >&6; }
14607 if test "$DYNLOADFILE" != "dynload_stub.o"
14610 cat >>confdefs.h <<\_ACEOF
14611 #define HAVE_DYNAMIC_LOADING 1
14616 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
14619 { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
14620 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
14621 if test -z "$MACHDEP_OBJS"
14623 MACHDEP_OBJS=$extra_machdep_objs
14625 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
14627 { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
14628 echo "${ECHO_T}MACHDEP_OBJS" >&6; }
14630 # checks for library functions
14707 for ac_func in alarm bind_textdomain_codeset chown clock confstr ctermid \
14708 execv fork fpathconf ftime ftruncate \
14709 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
14710 getpriority getpwent getspnam getspent getsid getwd \
14711 kill killpg lchown lstat mkfifo mknod mktime \
14712 mremap nice pathconf pause plock poll pthread_init \
14713 putenv readlink realpath \
14714 select setegid seteuid setgid \
14715 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
14716 sigaction siginterrupt sigrelse strftime \
14717 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
14718 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
14720 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
14721 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14722 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14723 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14724 echo $ECHO_N "(cached) $ECHO_C" >&6
14726 cat >conftest.$ac_ext <<_ACEOF
14729 cat confdefs.h >>conftest.$ac_ext
14730 cat >>conftest.$ac_ext <<_ACEOF
14731 /* end confdefs.h. */
14732 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14733 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14734 #define $ac_func innocuous_$ac_func
14736 /* System header to define __stub macros and hopefully few prototypes,
14737 which can conflict with char $ac_func (); below.
14738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14739 <limits.h> exists even on freestanding compilers. */
14742 # include <limits.h>
14744 # include <assert.h>
14749 /* Override any GCC internal prototype to avoid an error.
14750 Use char because int might match the return type of a GCC
14751 builtin and then its argument prototype would still apply. */
14756 /* The GNU C library defines this for functions which it implements
14757 to always fail with ENOSYS. Some functions are actually named
14758 something starting with __ and the normal name is an alias. */
14759 #if defined __stub_$ac_func || defined __stub___$ac_func
14766 return $ac_func ();
14771 rm -f conftest.$ac_objext conftest$ac_exeext
14772 if { (ac_try="$ac_link"
14773 case "(($ac_try" in
14774 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14775 *) ac_try_echo
=$ac_try;;
14777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14778 (eval "$ac_link") 2>conftest.er1
14780 grep -v '^ *+' conftest.er1
>conftest.err
14782 cat conftest.err
>&5
14783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784 (exit $ac_status); } && {
14785 test -z "$ac_c_werror_flag" ||
14786 test ! -s conftest.err
14787 } && test -s conftest
$ac_exeext &&
14788 $as_test_x conftest
$ac_exeext; then
14789 eval "$as_ac_var=yes"
14791 echo "$as_me: failed program was:" >&5
14792 sed 's/^/| /' conftest.
$ac_ext >&5
14794 eval "$as_ac_var=no"
14797 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14798 conftest
$ac_exeext conftest.
$ac_ext
14800 ac_res
=`eval echo '${'$as_ac_var'}'`
14801 { echo "$as_me:$LINENO: result: $ac_res" >&5
14802 echo "${ECHO_T}$ac_res" >&6; }
14803 if test `eval echo '${'$as_ac_var'}'` = yes; then
14804 cat >>confdefs.h
<<_ACEOF
14805 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14812 # For some functions, having a definition is not sufficient, since
14813 # we want to take their address.
14814 { echo "$as_me:$LINENO: checking for chroot" >&5
14815 echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
14816 cat >conftest.
$ac_ext <<_ACEOF
14819 cat confdefs.h
>>conftest.
$ac_ext
14820 cat >>conftest.
$ac_ext <<_ACEOF
14821 /* end confdefs.h. */
14822 #include <unistd.h>
14831 rm -f conftest.
$ac_objext
14832 if { (ac_try
="$ac_compile"
14833 case "(($ac_try" in
14834 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14835 *) ac_try_echo=$ac_try;;
14837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14838 (eval "$ac_compile") 2>conftest.er1
14840 grep -v '^ *+' conftest.er1 >conftest.err
14842 cat conftest.err >&5
14843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14844 (exit $ac_status); } && {
14845 test -z "$ac_c_werror_flag" ||
14846 test ! -s conftest.err
14847 } && test -s conftest.$ac_objext; then
14849 cat >>confdefs.h <<\_ACEOF
14850 #define HAVE_CHROOT 1
14853 { echo "$as_me:$LINENO: result: yes" >&5
14854 echo "${ECHO_T}yes" >&6; }
14856 echo "$as_me: failed program was:" >&5
14857 sed 's/^/| /' conftest.$ac_ext >&5
14859 { echo "$as_me:$LINENO: result: no" >&5
14860 echo "${ECHO_T}no" >&6; }
14864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14865 { echo "$as_me:$LINENO: checking for link" >&5
14866 echo $ECHO_N "checking for link... $ECHO_C" >&6; }
14867 cat >conftest.$ac_ext <<_ACEOF
14870 cat confdefs.h >>conftest.$ac_ext
14871 cat >>conftest.$ac_ext <<_ACEOF
14872 /* end confdefs.h. */
14873 #include <unistd.h>
14882 rm -f conftest.$ac_objext
14883 if { (ac_try="$ac_compile"
14884 case "(($ac_try" in
14885 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14886 *) ac_try_echo
=$ac_try;;
14888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14889 (eval "$ac_compile") 2>conftest.er1
14891 grep -v '^ *+' conftest.er1
>conftest.err
14893 cat conftest.err
>&5
14894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895 (exit $ac_status); } && {
14896 test -z "$ac_c_werror_flag" ||
14897 test ! -s conftest.err
14898 } && test -s conftest.
$ac_objext; then
14900 cat >>confdefs.h
<<\_ACEOF
14901 #define HAVE_LINK 1
14904 { echo "$as_me:$LINENO: result: yes" >&5
14905 echo "${ECHO_T}yes" >&6; }
14907 echo "$as_me: failed program was:" >&5
14908 sed 's/^/| /' conftest.
$ac_ext >&5
14910 { echo "$as_me:$LINENO: result: no" >&5
14911 echo "${ECHO_T}no" >&6; }
14915 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14916 { echo "$as_me:$LINENO: checking for symlink" >&5
14917 echo $ECHO_N "checking for symlink... $ECHO_C" >&6; }
14918 cat >conftest.
$ac_ext <<_ACEOF
14921 cat confdefs.h
>>conftest.
$ac_ext
14922 cat >>conftest.
$ac_ext <<_ACEOF
14923 /* end confdefs.h. */
14924 #include <unistd.h>
14933 rm -f conftest.
$ac_objext
14934 if { (ac_try
="$ac_compile"
14935 case "(($ac_try" in
14936 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14937 *) ac_try_echo=$ac_try;;
14939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14940 (eval "$ac_compile") 2>conftest.er1
14942 grep -v '^ *+' conftest.er1 >conftest.err
14944 cat conftest.err >&5
14945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14946 (exit $ac_status); } && {
14947 test -z "$ac_c_werror_flag" ||
14948 test ! -s conftest.err
14949 } && test -s conftest.$ac_objext; then
14951 cat >>confdefs.h <<\_ACEOF
14952 #define HAVE_SYMLINK 1
14955 { echo "$as_me:$LINENO: result: yes" >&5
14956 echo "${ECHO_T}yes" >&6; }
14958 echo "$as_me: failed program was:" >&5
14959 sed 's/^/| /' conftest.$ac_ext >&5
14961 { echo "$as_me:$LINENO: result: no" >&5
14962 echo "${ECHO_T}no" >&6; }
14966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14967 { echo "$as_me:$LINENO: checking for fchdir" >&5
14968 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
14969 cat >conftest.$ac_ext <<_ACEOF
14972 cat confdefs.h >>conftest.$ac_ext
14973 cat >>conftest.$ac_ext <<_ACEOF
14974 /* end confdefs.h. */
14975 #include <unistd.h>
14984 rm -f conftest.$ac_objext
14985 if { (ac_try="$ac_compile"
14986 case "(($ac_try" in
14987 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14988 *) ac_try_echo
=$ac_try;;
14990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14991 (eval "$ac_compile") 2>conftest.er1
14993 grep -v '^ *+' conftest.er1
>conftest.err
14995 cat conftest.err
>&5
14996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14997 (exit $ac_status); } && {
14998 test -z "$ac_c_werror_flag" ||
14999 test ! -s conftest.err
15000 } && test -s conftest.
$ac_objext; then
15002 cat >>confdefs.h
<<\_ACEOF
15003 #define HAVE_FCHDIR 1
15006 { echo "$as_me:$LINENO: result: yes" >&5
15007 echo "${ECHO_T}yes" >&6; }
15009 echo "$as_me: failed program was:" >&5
15010 sed 's/^/| /' conftest.
$ac_ext >&5
15012 { echo "$as_me:$LINENO: result: no" >&5
15013 echo "${ECHO_T}no" >&6; }
15017 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15018 { echo "$as_me:$LINENO: checking for fsync" >&5
15019 echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
15020 cat >conftest.
$ac_ext <<_ACEOF
15023 cat confdefs.h
>>conftest.
$ac_ext
15024 cat >>conftest.
$ac_ext <<_ACEOF
15025 /* end confdefs.h. */
15026 #include <unistd.h>
15035 rm -f conftest.
$ac_objext
15036 if { (ac_try
="$ac_compile"
15037 case "(($ac_try" in
15038 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15039 *) ac_try_echo=$ac_try;;
15041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15042 (eval "$ac_compile") 2>conftest.er1
15044 grep -v '^ *+' conftest.er1 >conftest.err
15046 cat conftest.err >&5
15047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15048 (exit $ac_status); } && {
15049 test -z "$ac_c_werror_flag" ||
15050 test ! -s conftest.err
15051 } && test -s conftest.$ac_objext; then
15053 cat >>confdefs.h <<\_ACEOF
15054 #define HAVE_FSYNC 1
15057 { echo "$as_me:$LINENO: result: yes" >&5
15058 echo "${ECHO_T}yes" >&6; }
15060 echo "$as_me: failed program was:" >&5
15061 sed 's/^/| /' conftest.$ac_ext >&5
15063 { echo "$as_me:$LINENO: result: no" >&5
15064 echo "${ECHO_T}no" >&6; }
15068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15069 { echo "$as_me:$LINENO: checking for fdatasync" >&5
15070 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
15071 cat >conftest.$ac_ext <<_ACEOF
15074 cat confdefs.h >>conftest.$ac_ext
15075 cat >>conftest.$ac_ext <<_ACEOF
15076 /* end confdefs.h. */
15077 #include <unistd.h>
15086 rm -f conftest.$ac_objext
15087 if { (ac_try="$ac_compile"
15088 case "(($ac_try" in
15089 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15090 *) ac_try_echo
=$ac_try;;
15092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15093 (eval "$ac_compile") 2>conftest.er1
15095 grep -v '^ *+' conftest.er1
>conftest.err
15097 cat conftest.err
>&5
15098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099 (exit $ac_status); } && {
15100 test -z "$ac_c_werror_flag" ||
15101 test ! -s conftest.err
15102 } && test -s conftest.
$ac_objext; then
15104 cat >>confdefs.h
<<\_ACEOF
15105 #define HAVE_FDATASYNC 1
15108 { echo "$as_me:$LINENO: result: yes" >&5
15109 echo "${ECHO_T}yes" >&6; }
15111 echo "$as_me: failed program was:" >&5
15112 sed 's/^/| /' conftest.
$ac_ext >&5
15114 { echo "$as_me:$LINENO: result: no" >&5
15115 echo "${ECHO_T}no" >&6; }
15119 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15121 # On some systems (eg. FreeBSD 5), we would find a definition of the
15122 # functions ctermid_r, setgroups in the library, but no prototype
15123 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
15124 # address to avoid compiler warnings and potential miscompilations
15125 # because of the missing prototypes.
15127 { echo "$as_me:$LINENO: checking for ctermid_r" >&5
15128 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; }
15129 cat >conftest.
$ac_ext <<_ACEOF
15132 cat confdefs.h
>>conftest.
$ac_ext
15133 cat >>conftest.
$ac_ext <<_ACEOF
15134 /* end confdefs.h. */
15136 #include "confdefs.h"
15142 void* p = ctermid_r
15147 rm -f conftest.
$ac_objext
15148 if { (ac_try
="$ac_compile"
15149 case "(($ac_try" in
15150 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15151 *) ac_try_echo=$ac_try;;
15153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15154 (eval "$ac_compile") 2>conftest.er1
15156 grep -v '^ *+' conftest.er1 >conftest.err
15158 cat conftest.err >&5
15159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160 (exit $ac_status); } && {
15161 test -z "$ac_c_werror_flag" ||
15162 test ! -s conftest.err
15163 } && test -s conftest.$ac_objext; then
15165 cat >>confdefs.h <<\_ACEOF
15166 #define HAVE_CTERMID_R 1
15169 { echo "$as_me:$LINENO: result: yes" >&5
15170 echo "${ECHO_T}yes" >&6; }
15172 echo "$as_me: failed program was:" >&5
15173 sed 's/^/| /' conftest.$ac_ext >&5
15175 { echo "$as_me:$LINENO: result: no" >&5
15176 echo "${ECHO_T}no" >&6; }
15180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15182 { echo "$as_me:$LINENO: checking for flock" >&5
15183 echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
15184 cat >conftest.$ac_ext <<_ACEOF
15187 cat confdefs.h >>conftest.$ac_ext
15188 cat >>conftest.$ac_ext <<_ACEOF
15189 /* end confdefs.h. */
15191 #include "confdefs.h"
15192 #include <sys/file.h>
15202 rm -f conftest.$ac_objext
15203 if { (ac_try="$ac_compile"
15204 case "(($ac_try" in
15205 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15206 *) ac_try_echo
=$ac_try;;
15208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15209 (eval "$ac_compile") 2>conftest.er1
15211 grep -v '^ *+' conftest.er1
>conftest.err
15213 cat conftest.err
>&5
15214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15215 (exit $ac_status); } && {
15216 test -z "$ac_c_werror_flag" ||
15217 test ! -s conftest.err
15218 } && test -s conftest.
$ac_objext; then
15220 cat >>confdefs.h
<<\_ACEOF
15221 #define HAVE_FLOCK 1
15224 { echo "$as_me:$LINENO: result: yes" >&5
15225 echo "${ECHO_T}yes" >&6; }
15227 echo "$as_me: failed program was:" >&5
15228 sed 's/^/| /' conftest.
$ac_ext >&5
15230 { echo "$as_me:$LINENO: result: no" >&5
15231 echo "${ECHO_T}no" >&6; }
15235 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15237 { echo "$as_me:$LINENO: checking for getpagesize" >&5
15238 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
15239 cat >conftest.
$ac_ext <<_ACEOF
15242 cat confdefs.h
>>conftest.
$ac_ext
15243 cat >>conftest.
$ac_ext <<_ACEOF
15244 /* end confdefs.h. */
15246 #include "confdefs.h"
15247 #include <unistd.h>
15252 void* p = getpagesize
15257 rm -f conftest.
$ac_objext
15258 if { (ac_try
="$ac_compile"
15259 case "(($ac_try" in
15260 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15261 *) ac_try_echo=$ac_try;;
15263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15264 (eval "$ac_compile") 2>conftest.er1
15266 grep -v '^ *+' conftest.er1 >conftest.err
15268 cat conftest.err >&5
15269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270 (exit $ac_status); } && {
15271 test -z "$ac_c_werror_flag" ||
15272 test ! -s conftest.err
15273 } && test -s conftest.$ac_objext; then
15275 cat >>confdefs.h <<\_ACEOF
15276 #define HAVE_GETPAGESIZE 1
15279 { echo "$as_me:$LINENO: result: yes" >&5
15280 echo "${ECHO_T}yes" >&6; }
15282 echo "$as_me: failed program was:" >&5
15283 sed 's/^/| /' conftest.$ac_ext >&5
15285 { echo "$as_me:$LINENO: result: no" >&5
15286 echo "${ECHO_T}no" >&6; }
15290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15292 for ac_prog in true
15294 # Extract the first word of "$ac_prog", so it can be a program name with args.
15295 set dummy $ac_prog; ac_word=$2
15296 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15298 if test "${ac_cv_prog_TRUE+set}" = set; then
15299 echo $ECHO_N "(cached) $ECHO_C" >&6
15301 if test -n "$TRUE"; then
15302 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
15304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15305 for as_dir in $PATH
15308 test -z "$as_dir" && as_dir=.
15309 for ac_exec_ext in '' $ac_executable_extensions; do
15310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15311 ac_cv_prog_TRUE="$ac_prog"
15312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15321 TRUE=$ac_cv_prog_TRUE
15322 if test -n "$TRUE"; then
15323 { echo "$as_me:$LINENO: result: $TRUE" >&5
15324 echo "${ECHO_T}$TRUE" >&6; }
15326 { echo "$as_me:$LINENO: result: no" >&5
15327 echo "${ECHO_T}no" >&6; }
15331 test -n "$TRUE" && break
15333 test -n "$TRUE" || TRUE="/bin/true"
15336 { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
15337 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
15338 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
15339 echo $ECHO_N "(cached) $ECHO_C" >&6
15341 ac_check_lib_save_LIBS=$LIBS
15343 cat >conftest.$ac_ext <<_ACEOF
15346 cat confdefs.h >>conftest.$ac_ext
15347 cat >>conftest.$ac_ext <<_ACEOF
15348 /* end confdefs.h. */
15350 /* Override any GCC internal prototype to avoid an error.
15351 Use char because int might match the return type of a GCC
15352 builtin and then its argument prototype would still apply. */
15360 return inet_aton ();
15365 rm -f conftest.$ac_objext conftest$ac_exeext
15366 if { (ac_try="$ac_link"
15367 case "(($ac_try" in
15368 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15369 *) ac_try_echo
=$ac_try;;
15371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15372 (eval "$ac_link") 2>conftest.er1
15374 grep -v '^ *+' conftest.er1
>conftest.err
15376 cat conftest.err
>&5
15377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378 (exit $ac_status); } && {
15379 test -z "$ac_c_werror_flag" ||
15380 test ! -s conftest.err
15381 } && test -s conftest
$ac_exeext &&
15382 $as_test_x conftest
$ac_exeext; then
15383 ac_cv_lib_c_inet_aton
=yes
15385 echo "$as_me: failed program was:" >&5
15386 sed 's/^/| /' conftest.
$ac_ext >&5
15388 ac_cv_lib_c_inet_aton
=no
15391 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15392 conftest
$ac_exeext conftest.
$ac_ext
15393 LIBS
=$ac_check_lib_save_LIBS
15395 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
15396 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
15397 if test $ac_cv_lib_c_inet_aton = yes; then
15401 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
15402 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
15403 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
15404 echo $ECHO_N "(cached) $ECHO_C" >&6
15406 ac_check_lib_save_LIBS
=$LIBS
15407 LIBS
="-lresolv $LIBS"
15408 cat >conftest.
$ac_ext <<_ACEOF
15411 cat confdefs.h
>>conftest.
$ac_ext
15412 cat >>conftest.
$ac_ext <<_ACEOF
15413 /* end confdefs.h. */
15415 /* Override any GCC internal prototype to avoid an error.
15416 Use char because int might match the return type of a GCC
15417 builtin and then its argument prototype would still apply. */
15425 return inet_aton ();
15430 rm -f conftest.
$ac_objext conftest
$ac_exeext
15431 if { (ac_try
="$ac_link"
15432 case "(($ac_try" in
15433 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15434 *) ac_try_echo=$ac_try;;
15436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15437 (eval "$ac_link") 2>conftest.er1
15439 grep -v '^ *+' conftest.er1 >conftest.err
15441 cat conftest.err >&5
15442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443 (exit $ac_status); } && {
15444 test -z "$ac_c_werror_flag" ||
15445 test ! -s conftest.err
15446 } && test -s conftest$ac_exeext &&
15447 $as_test_x conftest$ac_exeext; then
15448 ac_cv_lib_resolv_inet_aton=yes
15450 echo "$as_me: failed program was:" >&5
15451 sed 's/^/| /' conftest.$ac_ext >&5
15453 ac_cv_lib_resolv_inet_aton=no
15456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15457 conftest$ac_exeext conftest.$ac_ext
15458 LIBS=$ac_check_lib_save_LIBS
15460 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
15461 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
15462 if test $ac_cv_lib_resolv_inet_aton = yes; then
15463 cat >>confdefs.h <<_ACEOF
15464 #define HAVE_LIBRESOLV 1
15467 LIBS="-lresolv $LIBS"
15475 case $ac_sys_system/$ac_sys_release in
15477 _CUR_CFLAGS="${CFLAGS}"
15478 _CUR_LDFLAGS="${LDFLAGS}"
15479 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
15480 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
15484 { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
15485 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
15486 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
15487 echo $ECHO_N "(cached) $ECHO_C" >&6
15489 ac_check_lib_save_LIBS=$LIBS
15491 cat >conftest.$ac_ext <<_ACEOF
15494 cat confdefs.h >>conftest.$ac_ext
15495 cat >>conftest.$ac_ext <<_ACEOF
15496 /* end confdefs.h. */
15498 /* Override any GCC internal prototype to avoid an error.
15499 Use char because int might match the return type of a GCC
15500 builtin and then its argument prototype would still apply. */
15504 char inflateCopy ();
15508 return inflateCopy ();
15513 rm -f conftest.$ac_objext conftest$ac_exeext
15514 if { (ac_try="$ac_link"
15515 case "(($ac_try" in
15516 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15517 *) ac_try_echo
=$ac_try;;
15519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15520 (eval "$ac_link") 2>conftest.er1
15522 grep -v '^ *+' conftest.er1
>conftest.err
15524 cat conftest.err
>&5
15525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15526 (exit $ac_status); } && {
15527 test -z "$ac_c_werror_flag" ||
15528 test ! -s conftest.err
15529 } && test -s conftest
$ac_exeext &&
15530 $as_test_x conftest
$ac_exeext; then
15531 ac_cv_lib_z_inflateCopy
=yes
15533 echo "$as_me: failed program was:" >&5
15534 sed 's/^/| /' conftest.
$ac_ext >&5
15536 ac_cv_lib_z_inflateCopy
=no
15539 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15540 conftest
$ac_exeext conftest.
$ac_ext
15541 LIBS
=$ac_check_lib_save_LIBS
15543 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
15544 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
15545 if test $ac_cv_lib_z_inflateCopy = yes; then
15547 cat >>confdefs.h
<<\_ACEOF
15548 #define HAVE_ZLIB_COPY 1
15554 case $ac_sys_system/$ac_sys_release in
15556 CFLAGS
="${_CUR_CFLAGS}"
15557 LDFLAGS
="${_CUR_LDFLAGS}"
15561 { echo "$as_me:$LINENO: checking for hstrerror" >&5
15562 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
15563 cat >conftest.
$ac_ext <<_ACEOF
15566 cat confdefs.h
>>conftest.
$ac_ext
15567 cat >>conftest.
$ac_ext <<_ACEOF
15568 /* end confdefs.h. */
15570 #include "confdefs.h"
15576 void* p = hstrerror; hstrerror(0)
15581 rm -f conftest.
$ac_objext conftest
$ac_exeext
15582 if { (ac_try
="$ac_link"
15583 case "(($ac_try" in
15584 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15585 *) ac_try_echo=$ac_try;;
15587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15588 (eval "$ac_link") 2>conftest.er1
15590 grep -v '^ *+' conftest.er1 >conftest.err
15592 cat conftest.err >&5
15593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 (exit $ac_status); } && {
15595 test -z "$ac_c_werror_flag" ||
15596 test ! -s conftest.err
15597 } && test -s conftest$ac_exeext &&
15598 $as_test_x conftest$ac_exeext; then
15600 cat >>confdefs.h <<\_ACEOF
15601 #define HAVE_HSTRERROR 1
15604 { echo "$as_me:$LINENO: result: yes" >&5
15605 echo "${ECHO_T}yes" >&6; }
15607 echo "$as_me: failed program was:" >&5
15608 sed 's/^/| /' conftest.$ac_ext >&5
15610 { echo "$as_me:$LINENO: result: no" >&5
15611 echo "${ECHO_T}no" >&6; }
15615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15616 conftest$ac_exeext conftest.$ac_ext
15618 { echo "$as_me:$LINENO: checking for inet_aton" >&5
15619 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
15620 cat >conftest.$ac_ext <<_ACEOF
15623 cat confdefs.h >>conftest.$ac_ext
15624 cat >>conftest.$ac_ext <<_ACEOF
15625 /* end confdefs.h. */
15627 #include "confdefs.h"
15628 #include <sys/types.h>
15629 #include <sys/socket.h>
15630 #include <netinet/in.h>
15631 #include <arpa/inet.h>
15636 void* p = inet_aton;inet_aton(0,0)
15641 rm -f conftest.$ac_objext conftest$ac_exeext
15642 if { (ac_try="$ac_link"
15643 case "(($ac_try" in
15644 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15645 *) ac_try_echo
=$ac_try;;
15647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15648 (eval "$ac_link") 2>conftest.er1
15650 grep -v '^ *+' conftest.er1
>conftest.err
15652 cat conftest.err
>&5
15653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654 (exit $ac_status); } && {
15655 test -z "$ac_c_werror_flag" ||
15656 test ! -s conftest.err
15657 } && test -s conftest
$ac_exeext &&
15658 $as_test_x conftest
$ac_exeext; then
15660 cat >>confdefs.h
<<\_ACEOF
15661 #define HAVE_INET_ATON 1
15664 { echo "$as_me:$LINENO: result: yes" >&5
15665 echo "${ECHO_T}yes" >&6; }
15667 echo "$as_me: failed program was:" >&5
15668 sed 's/^/| /' conftest.
$ac_ext >&5
15670 { echo "$as_me:$LINENO: result: no" >&5
15671 echo "${ECHO_T}no" >&6; }
15675 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15676 conftest
$ac_exeext conftest.
$ac_ext
15678 { echo "$as_me:$LINENO: checking for inet_pton" >&5
15679 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
15680 cat >conftest.
$ac_ext <<_ACEOF
15683 cat confdefs.h
>>conftest.
$ac_ext
15684 cat >>conftest.
$ac_ext <<_ACEOF
15685 /* end confdefs.h. */
15687 #include "confdefs.h"
15688 #include <sys/types.h>
15689 #include <sys/socket.h>
15690 #include <netinet/in.h>
15691 #include <arpa/inet.h>
15696 void* p = inet_pton
15701 rm -f conftest.
$ac_objext
15702 if { (ac_try
="$ac_compile"
15703 case "(($ac_try" in
15704 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15705 *) ac_try_echo=$ac_try;;
15707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15708 (eval "$ac_compile") 2>conftest.er1
15710 grep -v '^ *+' conftest.er1 >conftest.err
15712 cat conftest.err >&5
15713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15714 (exit $ac_status); } && {
15715 test -z "$ac_c_werror_flag" ||
15716 test ! -s conftest.err
15717 } && test -s conftest.$ac_objext; then
15719 cat >>confdefs.h <<\_ACEOF
15720 #define HAVE_INET_PTON 1
15723 { echo "$as_me:$LINENO: result: yes" >&5
15724 echo "${ECHO_T}yes" >&6; }
15726 echo "$as_me: failed program was:" >&5
15727 sed 's/^/| /' conftest.$ac_ext >&5
15729 { echo "$as_me:$LINENO: result: no" >&5
15730 echo "${ECHO_T}no" >&6; }
15734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15736 # On some systems, setgroups is in unistd.h, on others, in grp.h
15737 { echo "$as_me:$LINENO: checking for setgroups" >&5
15738 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
15739 cat >conftest.$ac_ext <<_ACEOF
15742 cat confdefs.h >>conftest.$ac_ext
15743 cat >>conftest.$ac_ext <<_ACEOF
15744 /* end confdefs.h. */
15746 #include "confdefs.h"
15747 #include <unistd.h>
15755 void* p = setgroups
15760 rm -f conftest.$ac_objext
15761 if { (ac_try="$ac_compile"
15762 case "(($ac_try" in
15763 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15764 *) ac_try_echo
=$ac_try;;
15766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15767 (eval "$ac_compile") 2>conftest.er1
15769 grep -v '^ *+' conftest.er1
>conftest.err
15771 cat conftest.err
>&5
15772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15773 (exit $ac_status); } && {
15774 test -z "$ac_c_werror_flag" ||
15775 test ! -s conftest.err
15776 } && test -s conftest.
$ac_objext; then
15778 cat >>confdefs.h
<<\_ACEOF
15779 #define HAVE_SETGROUPS 1
15782 { echo "$as_me:$LINENO: result: yes" >&5
15783 echo "${ECHO_T}yes" >&6; }
15785 echo "$as_me: failed program was:" >&5
15786 sed 's/^/| /' conftest.
$ac_ext >&5
15788 { echo "$as_me:$LINENO: result: no" >&5
15789 echo "${ECHO_T}no" >&6; }
15793 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15795 # check for openpty and forkpty
15798 for ac_func
in openpty
15800 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15801 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15802 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15803 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15804 echo $ECHO_N "(cached) $ECHO_C" >&6
15806 cat >conftest.
$ac_ext <<_ACEOF
15809 cat confdefs.h
>>conftest.
$ac_ext
15810 cat >>conftest.
$ac_ext <<_ACEOF
15811 /* end confdefs.h. */
15812 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15814 #define $ac_func innocuous_$ac_func
15816 /* System header to define __stub macros and hopefully few prototypes,
15817 which can conflict with char $ac_func (); below.
15818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15819 <limits.h> exists even on freestanding compilers. */
15822 # include <limits.h>
15824 # include <assert.h>
15829 /* Override any GCC internal prototype to avoid an error.
15830 Use char because int might match the return type of a GCC
15831 builtin and then its argument prototype would still apply. */
15836 /* The GNU C library defines this for functions which it implements
15837 to always fail with ENOSYS. Some functions are actually named
15838 something starting with __ and the normal name is an alias. */
15839 #if defined __stub_$ac_func || defined __stub___$ac_func
15846 return $ac_func ();
15851 rm -f conftest.
$ac_objext conftest
$ac_exeext
15852 if { (ac_try
="$ac_link"
15853 case "(($ac_try" in
15854 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15855 *) ac_try_echo=$ac_try;;
15857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15858 (eval "$ac_link") 2>conftest.er1
15860 grep -v '^ *+' conftest.er1 >conftest.err
15862 cat conftest.err >&5
15863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864 (exit $ac_status); } && {
15865 test -z "$ac_c_werror_flag" ||
15866 test ! -s conftest.err
15867 } && test -s conftest$ac_exeext &&
15868 $as_test_x conftest$ac_exeext; then
15869 eval "$as_ac_var=yes"
15871 echo "$as_me: failed program was:" >&5
15872 sed 's/^/| /' conftest.$ac_ext >&5
15874 eval "$as_ac_var=no"
15877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15878 conftest$ac_exeext conftest.$ac_ext
15880 ac_res=`eval echo '${'$as_ac_var'}'`
15881 { echo "$as_me:$LINENO: result: $ac_res" >&5
15882 echo "${ECHO_T}$ac_res" >&6; }
15883 if test `eval echo '${'$as_ac_var'}'` = yes; then
15884 cat >>confdefs.h <<_ACEOF
15885 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
15889 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15890 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
15891 if test "${ac_cv_lib_util_openpty+set}" = set; then
15892 echo $ECHO_N "(cached) $ECHO_C" >&6
15894 ac_check_lib_save_LIBS=$LIBS
15895 LIBS="-lutil $LIBS"
15896 cat >conftest.$ac_ext <<_ACEOF
15899 cat confdefs.h >>conftest.$ac_ext
15900 cat >>conftest.$ac_ext <<_ACEOF
15901 /* end confdefs.h. */
15903 /* Override any GCC internal prototype to avoid an error.
15904 Use char because int might match the return type of a GCC
15905 builtin and then its argument prototype would still apply. */
15918 rm -f conftest.$ac_objext conftest$ac_exeext
15919 if { (ac_try="$ac_link"
15920 case "(($ac_try" in
15921 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15922 *) ac_try_echo
=$ac_try;;
15924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15925 (eval "$ac_link") 2>conftest.er1
15927 grep -v '^ *+' conftest.er1
>conftest.err
15929 cat conftest.err
>&5
15930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15931 (exit $ac_status); } && {
15932 test -z "$ac_c_werror_flag" ||
15933 test ! -s conftest.err
15934 } && test -s conftest
$ac_exeext &&
15935 $as_test_x conftest
$ac_exeext; then
15936 ac_cv_lib_util_openpty
=yes
15938 echo "$as_me: failed program was:" >&5
15939 sed 's/^/| /' conftest.
$ac_ext >&5
15941 ac_cv_lib_util_openpty
=no
15944 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15945 conftest
$ac_exeext conftest.
$ac_ext
15946 LIBS
=$ac_check_lib_save_LIBS
15948 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15949 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
15950 if test $ac_cv_lib_util_openpty = yes; then
15951 cat >>confdefs.h
<<\_ACEOF
15952 #define HAVE_OPENPTY 1
15954 LIBS
="$LIBS -lutil"
15956 { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
15957 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
15958 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
15959 echo $ECHO_N "(cached) $ECHO_C" >&6
15961 ac_check_lib_save_LIBS
=$LIBS
15963 cat >conftest.
$ac_ext <<_ACEOF
15966 cat confdefs.h
>>conftest.
$ac_ext
15967 cat >>conftest.
$ac_ext <<_ACEOF
15968 /* end confdefs.h. */
15970 /* Override any GCC internal prototype to avoid an error.
15971 Use char because int might match the return type of a GCC
15972 builtin and then its argument prototype would still apply. */
15985 rm -f conftest.
$ac_objext conftest
$ac_exeext
15986 if { (ac_try
="$ac_link"
15987 case "(($ac_try" in
15988 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15989 *) ac_try_echo=$ac_try;;
15991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15992 (eval "$ac_link") 2>conftest.er1
15994 grep -v '^ *+' conftest.er1 >conftest.err
15996 cat conftest.err >&5
15997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15998 (exit $ac_status); } && {
15999 test -z "$ac_c_werror_flag" ||
16000 test ! -s conftest.err
16001 } && test -s conftest$ac_exeext &&
16002 $as_test_x conftest$ac_exeext; then
16003 ac_cv_lib_bsd_openpty=yes
16005 echo "$as_me: failed program was:" >&5
16006 sed 's/^/| /' conftest.$ac_ext >&5
16008 ac_cv_lib_bsd_openpty=no
16011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16012 conftest$ac_exeext conftest.$ac_ext
16013 LIBS=$ac_check_lib_save_LIBS
16015 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
16016 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
16017 if test $ac_cv_lib_bsd_openpty = yes; then
16018 cat >>confdefs.h <<\_ACEOF
16019 #define HAVE_OPENPTY 1
16032 for ac_func in forkpty
16034 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
16035 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16036 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16037 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16038 echo $ECHO_N "(cached) $ECHO_C" >&6
16040 cat >conftest.$ac_ext <<_ACEOF
16043 cat confdefs.h >>conftest.$ac_ext
16044 cat >>conftest.$ac_ext <<_ACEOF
16045 /* end confdefs.h. */
16046 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16048 #define $ac_func innocuous_$ac_func
16050 /* System header to define __stub macros and hopefully few prototypes,
16051 which can conflict with char $ac_func (); below.
16052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16053 <limits.h> exists even on freestanding compilers. */
16056 # include <limits.h>
16058 # include <assert.h>
16063 /* Override any GCC internal prototype to avoid an error.
16064 Use char because int might match the return type of a GCC
16065 builtin and then its argument prototype would still apply. */
16070 /* The GNU C library defines this for functions which it implements
16071 to always fail with ENOSYS. Some functions are actually named
16072 something starting with __ and the normal name is an alias. */
16073 #if defined __stub_$ac_func || defined __stub___$ac_func
16080 return $ac_func ();
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
16103 eval "$as_ac_var=yes"
16105 echo "$as_me: failed program was:" >&5
16106 sed 's/^/| /' conftest.
$ac_ext >&5
16108 eval "$as_ac_var=no"
16111 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16112 conftest
$ac_exeext conftest.
$ac_ext
16114 ac_res
=`eval echo '${'$as_ac_var'}'`
16115 { echo "$as_me:$LINENO: result: $ac_res" >&5
16116 echo "${ECHO_T}$ac_res" >&6; }
16117 if test `eval echo '${'$as_ac_var'}'` = yes; then
16118 cat >>confdefs.h
<<_ACEOF
16119 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16123 { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
16124 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
16125 if test "${ac_cv_lib_util_forkpty+set}" = set; then
16126 echo $ECHO_N "(cached) $ECHO_C" >&6
16128 ac_check_lib_save_LIBS
=$LIBS
16129 LIBS
="-lutil $LIBS"
16130 cat >conftest.
$ac_ext <<_ACEOF
16133 cat confdefs.h
>>conftest.
$ac_ext
16134 cat >>conftest.
$ac_ext <<_ACEOF
16135 /* end confdefs.h. */
16137 /* Override any GCC internal prototype to avoid an error.
16138 Use char because int might match the return type of a GCC
16139 builtin and then its argument prototype would still apply. */
16152 rm -f conftest.
$ac_objext conftest
$ac_exeext
16153 if { (ac_try
="$ac_link"
16154 case "(($ac_try" in
16155 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16156 *) ac_try_echo=$ac_try;;
16158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16159 (eval "$ac_link") 2>conftest.er1
16161 grep -v '^ *+' conftest.er1 >conftest.err
16163 cat conftest.err >&5
16164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16165 (exit $ac_status); } && {
16166 test -z "$ac_c_werror_flag" ||
16167 test ! -s conftest.err
16168 } && test -s conftest$ac_exeext &&
16169 $as_test_x conftest$ac_exeext; then
16170 ac_cv_lib_util_forkpty=yes
16172 echo "$as_me: failed program was:" >&5
16173 sed 's/^/| /' conftest.$ac_ext >&5
16175 ac_cv_lib_util_forkpty=no
16178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16179 conftest$ac_exeext conftest.$ac_ext
16180 LIBS=$ac_check_lib_save_LIBS
16182 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
16183 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
16184 if test $ac_cv_lib_util_forkpty = yes; then
16185 cat >>confdefs.h <<\_ACEOF
16186 #define HAVE_FORKPTY 1
16188 LIBS="$LIBS -lutil"
16190 { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
16191 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
16192 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
16193 echo $ECHO_N "(cached) $ECHO_C" >&6
16195 ac_check_lib_save_LIBS=$LIBS
16197 cat >conftest.$ac_ext <<_ACEOF
16200 cat confdefs.h >>conftest.$ac_ext
16201 cat >>conftest.$ac_ext <<_ACEOF
16202 /* end confdefs.h. */
16204 /* Override any GCC internal prototype to avoid an error.
16205 Use char because int might match the return type of a GCC
16206 builtin and then its argument prototype would still apply. */
16219 rm -f conftest.$ac_objext conftest$ac_exeext
16220 if { (ac_try="$ac_link"
16221 case "(($ac_try" in
16222 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16223 *) ac_try_echo
=$ac_try;;
16225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16226 (eval "$ac_link") 2>conftest.er1
16228 grep -v '^ *+' conftest.er1
>conftest.err
16230 cat conftest.err
>&5
16231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16232 (exit $ac_status); } && {
16233 test -z "$ac_c_werror_flag" ||
16234 test ! -s conftest.err
16235 } && test -s conftest
$ac_exeext &&
16236 $as_test_x conftest
$ac_exeext; then
16237 ac_cv_lib_bsd_forkpty
=yes
16239 echo "$as_me: failed program was:" >&5
16240 sed 's/^/| /' conftest.
$ac_ext >&5
16242 ac_cv_lib_bsd_forkpty
=no
16245 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16246 conftest
$ac_exeext conftest.
$ac_ext
16247 LIBS
=$ac_check_lib_save_LIBS
16249 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
16250 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
16251 if test $ac_cv_lib_bsd_forkpty = yes; then
16252 cat >>confdefs.h
<<\_ACEOF
16253 #define HAVE_FORKPTY 1
16266 # check for long file support functions
16273 for ac_func
in fseek64 fseeko fstatvfs ftell64 ftello statvfs
16275 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16276 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16277 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16278 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16279 echo $ECHO_N "(cached) $ECHO_C" >&6
16281 cat >conftest.
$ac_ext <<_ACEOF
16284 cat confdefs.h
>>conftest.
$ac_ext
16285 cat >>conftest.
$ac_ext <<_ACEOF
16286 /* end confdefs.h. */
16287 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16288 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16289 #define $ac_func innocuous_$ac_func
16291 /* System header to define __stub macros and hopefully few prototypes,
16292 which can conflict with char $ac_func (); below.
16293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16294 <limits.h> exists even on freestanding compilers. */
16297 # include <limits.h>
16299 # include <assert.h>
16304 /* Override any GCC internal prototype to avoid an error.
16305 Use char because int might match the return type of a GCC
16306 builtin and then its argument prototype would still apply. */
16311 /* The GNU C library defines this for functions which it implements
16312 to always fail with ENOSYS. Some functions are actually named
16313 something starting with __ and the normal name is an alias. */
16314 #if defined __stub_$ac_func || defined __stub___$ac_func
16321 return $ac_func ();
16326 rm -f conftest.
$ac_objext conftest
$ac_exeext
16327 if { (ac_try
="$ac_link"
16328 case "(($ac_try" in
16329 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16330 *) ac_try_echo=$ac_try;;
16332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16333 (eval "$ac_link") 2>conftest.er1
16335 grep -v '^ *+' conftest.er1 >conftest.err
16337 cat conftest.err >&5
16338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16339 (exit $ac_status); } && {
16340 test -z "$ac_c_werror_flag" ||
16341 test ! -s conftest.err
16342 } && test -s conftest$ac_exeext &&
16343 $as_test_x conftest$ac_exeext; then
16344 eval "$as_ac_var=yes"
16346 echo "$as_me: failed program was:" >&5
16347 sed 's/^/| /' conftest.$ac_ext >&5
16349 eval "$as_ac_var=no"
16352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16353 conftest$ac_exeext conftest.$ac_ext
16355 ac_res=`eval echo '${'$as_ac_var'}'`
16356 { echo "$as_me:$LINENO: result: $ac_res" >&5
16357 echo "${ECHO_T}$ac_res" >&6; }
16358 if test `eval echo '${'$as_ac_var'}'` = yes; then
16359 cat >>confdefs.h <<_ACEOF
16360 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
16372 for ac_func in dup2 getcwd strdup strerror memmove
16374 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
16375 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16376 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16377 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16378 echo $ECHO_N "(cached) $ECHO_C" >&6
16380 cat >conftest.$ac_ext <<_ACEOF
16383 cat confdefs.h >>conftest.$ac_ext
16384 cat >>conftest.$ac_ext <<_ACEOF
16385 /* end confdefs.h. */
16386 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16387 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16388 #define $ac_func innocuous_$ac_func
16390 /* System header to define __stub macros and hopefully few prototypes,
16391 which can conflict with char $ac_func (); below.
16392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16393 <limits.h> exists even on freestanding compilers. */
16396 # include <limits.h>
16398 # include <assert.h>
16403 /* Override any GCC internal prototype to avoid an error.
16404 Use char because int might match the return type of a GCC
16405 builtin and then its argument prototype would still apply. */
16410 /* The GNU C library defines this for functions which it implements
16411 to always fail with ENOSYS. Some functions are actually named
16412 something starting with __ and the normal name is an alias. */
16413 #if defined __stub_$ac_func || defined __stub___$ac_func
16420 return $ac_func ();
16425 rm -f conftest.$ac_objext conftest$ac_exeext
16426 if { (ac_try="$ac_link"
16427 case "(($ac_try" in
16428 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16429 *) ac_try_echo
=$ac_try;;
16431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16432 (eval "$ac_link") 2>conftest.er1
16434 grep -v '^ *+' conftest.er1
>conftest.err
16436 cat conftest.err
>&5
16437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16438 (exit $ac_status); } && {
16439 test -z "$ac_c_werror_flag" ||
16440 test ! -s conftest.err
16441 } && test -s conftest
$ac_exeext &&
16442 $as_test_x conftest
$ac_exeext; then
16443 eval "$as_ac_var=yes"
16445 echo "$as_me: failed program was:" >&5
16446 sed 's/^/| /' conftest.
$ac_ext >&5
16448 eval "$as_ac_var=no"
16451 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16452 conftest
$ac_exeext conftest.
$ac_ext
16454 ac_res
=`eval echo '${'$as_ac_var'}'`
16455 { echo "$as_me:$LINENO: result: $ac_res" >&5
16456 echo "${ECHO_T}$ac_res" >&6; }
16457 if test `eval echo '${'$as_ac_var'}'` = yes; then
16458 cat >>confdefs.h
<<_ACEOF
16459 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16463 case " $LIBOBJS " in
16464 *" $ac_func.$ac_objext "* ) ;;
16465 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
16474 for ac_func
in getpgrp
16476 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16477 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16478 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16479 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16480 echo $ECHO_N "(cached) $ECHO_C" >&6
16482 cat >conftest.
$ac_ext <<_ACEOF
16485 cat confdefs.h
>>conftest.
$ac_ext
16486 cat >>conftest.
$ac_ext <<_ACEOF
16487 /* end confdefs.h. */
16488 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16490 #define $ac_func innocuous_$ac_func
16492 /* System header to define __stub macros and hopefully few prototypes,
16493 which can conflict with char $ac_func (); below.
16494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16495 <limits.h> exists even on freestanding compilers. */
16498 # include <limits.h>
16500 # include <assert.h>
16505 /* Override any GCC internal prototype to avoid an error.
16506 Use char because int might match the return type of a GCC
16507 builtin and then its argument prototype would still apply. */
16512 /* The GNU C library defines this for functions which it implements
16513 to always fail with ENOSYS. Some functions are actually named
16514 something starting with __ and the normal name is an alias. */
16515 #if defined __stub_$ac_func || defined __stub___$ac_func
16522 return $ac_func ();
16527 rm -f conftest.
$ac_objext conftest
$ac_exeext
16528 if { (ac_try
="$ac_link"
16529 case "(($ac_try" in
16530 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16531 *) ac_try_echo=$ac_try;;
16533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16534 (eval "$ac_link") 2>conftest.er1
16536 grep -v '^ *+' conftest.er1 >conftest.err
16538 cat conftest.err >&5
16539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540 (exit $ac_status); } && {
16541 test -z "$ac_c_werror_flag" ||
16542 test ! -s conftest.err
16543 } && test -s conftest$ac_exeext &&
16544 $as_test_x conftest$ac_exeext; then
16545 eval "$as_ac_var=yes"
16547 echo "$as_me: failed program was:" >&5
16548 sed 's/^/| /' conftest.$ac_ext >&5
16550 eval "$as_ac_var=no"
16553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16554 conftest$ac_exeext conftest.$ac_ext
16556 ac_res=`eval echo '${'$as_ac_var'}'`
16557 { echo "$as_me:$LINENO: result: $ac_res" >&5
16558 echo "${ECHO_T}$ac_res" >&6; }
16559 if test `eval echo '${'$as_ac_var'}'` = yes; then
16560 cat >>confdefs.h <<_ACEOF
16561 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
16563 cat >conftest.$ac_ext <<_ACEOF
16566 cat confdefs.h >>conftest.$ac_ext
16567 cat >>conftest.$ac_ext <<_ACEOF
16568 /* end confdefs.h. */
16569 #include <unistd.h>
16578 rm -f conftest.$ac_objext
16579 if { (ac_try="$ac_compile"
16580 case "(($ac_try" in
16581 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16582 *) ac_try_echo
=$ac_try;;
16584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16585 (eval "$ac_compile") 2>conftest.er1
16587 grep -v '^ *+' conftest.er1
>conftest.err
16589 cat conftest.err
>&5
16590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16591 (exit $ac_status); } && {
16592 test -z "$ac_c_werror_flag" ||
16593 test ! -s conftest.err
16594 } && test -s conftest.
$ac_objext; then
16596 cat >>confdefs.h
<<\_ACEOF
16597 #define GETPGRP_HAVE_ARG 1
16602 echo "$as_me: failed program was:" >&5
16603 sed 's/^/| /' conftest.
$ac_ext >&5
16608 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16614 for ac_func
in setpgrp
16616 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16617 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16618 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16619 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16620 echo $ECHO_N "(cached) $ECHO_C" >&6
16622 cat >conftest.
$ac_ext <<_ACEOF
16625 cat confdefs.h
>>conftest.
$ac_ext
16626 cat >>conftest.
$ac_ext <<_ACEOF
16627 /* end confdefs.h. */
16628 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16629 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16630 #define $ac_func innocuous_$ac_func
16632 /* System header to define __stub macros and hopefully few prototypes,
16633 which can conflict with char $ac_func (); below.
16634 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16635 <limits.h> exists even on freestanding compilers. */
16638 # include <limits.h>
16640 # include <assert.h>
16645 /* Override any GCC internal prototype to avoid an error.
16646 Use char because int might match the return type of a GCC
16647 builtin and then its argument prototype would still apply. */
16652 /* The GNU C library defines this for functions which it implements
16653 to always fail with ENOSYS. Some functions are actually named
16654 something starting with __ and the normal name is an alias. */
16655 #if defined __stub_$ac_func || defined __stub___$ac_func
16662 return $ac_func ();
16667 rm -f conftest.
$ac_objext conftest
$ac_exeext
16668 if { (ac_try
="$ac_link"
16669 case "(($ac_try" in
16670 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16671 *) ac_try_echo=$ac_try;;
16673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16674 (eval "$ac_link") 2>conftest.er1
16676 grep -v '^ *+' conftest.er1 >conftest.err
16678 cat conftest.err >&5
16679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16680 (exit $ac_status); } && {
16681 test -z "$ac_c_werror_flag" ||
16682 test ! -s conftest.err
16683 } && test -s conftest$ac_exeext &&
16684 $as_test_x conftest$ac_exeext; then
16685 eval "$as_ac_var=yes"
16687 echo "$as_me: failed program was:" >&5
16688 sed 's/^/| /' conftest.$ac_ext >&5
16690 eval "$as_ac_var=no"
16693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16694 conftest$ac_exeext conftest.$ac_ext
16696 ac_res=`eval echo '${'$as_ac_var'}'`
16697 { echo "$as_me:$LINENO: result: $ac_res" >&5
16698 echo "${ECHO_T}$ac_res" >&6; }
16699 if test `eval echo '${'$as_ac_var'}'` = yes; then
16700 cat >>confdefs.h <<_ACEOF
16701 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
16703 cat >conftest.$ac_ext <<_ACEOF
16706 cat confdefs.h >>conftest.$ac_ext
16707 cat >>conftest.$ac_ext <<_ACEOF
16708 /* end confdefs.h. */
16709 #include <unistd.h>
16718 rm -f conftest.$ac_objext
16719 if { (ac_try="$ac_compile"
16720 case "(($ac_try" in
16721 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16722 *) ac_try_echo
=$ac_try;;
16724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16725 (eval "$ac_compile") 2>conftest.er1
16727 grep -v '^ *+' conftest.er1
>conftest.err
16729 cat conftest.err
>&5
16730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731 (exit $ac_status); } && {
16732 test -z "$ac_c_werror_flag" ||
16733 test ! -s conftest.err
16734 } && test -s conftest.
$ac_objext; then
16736 cat >>confdefs.h
<<\_ACEOF
16737 #define SETPGRP_HAVE_ARG 1
16742 echo "$as_me: failed program was:" >&5
16743 sed 's/^/| /' conftest.
$ac_ext >&5
16748 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16754 for ac_func
in gettimeofday
16756 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16757 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16758 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16759 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16760 echo $ECHO_N "(cached) $ECHO_C" >&6
16762 cat >conftest.
$ac_ext <<_ACEOF
16765 cat confdefs.h
>>conftest.
$ac_ext
16766 cat >>conftest.
$ac_ext <<_ACEOF
16767 /* end confdefs.h. */
16768 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16769 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16770 #define $ac_func innocuous_$ac_func
16772 /* System header to define __stub macros and hopefully few prototypes,
16773 which can conflict with char $ac_func (); below.
16774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16775 <limits.h> exists even on freestanding compilers. */
16778 # include <limits.h>
16780 # include <assert.h>
16785 /* Override any GCC internal prototype to avoid an error.
16786 Use char because int might match the return type of a GCC
16787 builtin and then its argument prototype would still apply. */
16792 /* The GNU C library defines this for functions which it implements
16793 to always fail with ENOSYS. Some functions are actually named
16794 something starting with __ and the normal name is an alias. */
16795 #if defined __stub_$ac_func || defined __stub___$ac_func
16802 return $ac_func ();
16807 rm -f conftest.
$ac_objext conftest
$ac_exeext
16808 if { (ac_try
="$ac_link"
16809 case "(($ac_try" in
16810 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16811 *) ac_try_echo=$ac_try;;
16813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16814 (eval "$ac_link") 2>conftest.er1
16816 grep -v '^ *+' conftest.er1 >conftest.err
16818 cat conftest.err >&5
16819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820 (exit $ac_status); } && {
16821 test -z "$ac_c_werror_flag" ||
16822 test ! -s conftest.err
16823 } && test -s conftest$ac_exeext &&
16824 $as_test_x conftest$ac_exeext; then
16825 eval "$as_ac_var=yes"
16827 echo "$as_me: failed program was:" >&5
16828 sed 's/^/| /' conftest.$ac_ext >&5
16830 eval "$as_ac_var=no"
16833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16834 conftest$ac_exeext conftest.$ac_ext
16836 ac_res=`eval echo '${'$as_ac_var'}'`
16837 { echo "$as_me:$LINENO: result: $ac_res" >&5
16838 echo "${ECHO_T}$ac_res" >&6; }
16839 if test `eval echo '${'$as_ac_var'}'` = yes; then
16840 cat >>confdefs.h <<_ACEOF
16841 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
16843 cat >conftest.$ac_ext <<_ACEOF
16846 cat confdefs.h >>conftest.$ac_ext
16847 cat >>conftest.$ac_ext <<_ACEOF
16848 /* end confdefs.h. */
16849 #include <sys/time.h>
16853 gettimeofday((struct timeval*)0,(struct timezone*)0);
16858 rm -f conftest.$ac_objext
16859 if { (ac_try="$ac_compile"
16860 case "(($ac_try" in
16861 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16862 *) ac_try_echo
=$ac_try;;
16864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16865 (eval "$ac_compile") 2>conftest.er1
16867 grep -v '^ *+' conftest.er1
>conftest.err
16869 cat conftest.err
>&5
16870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871 (exit $ac_status); } && {
16872 test -z "$ac_c_werror_flag" ||
16873 test ! -s conftest.err
16874 } && test -s conftest.
$ac_objext; then
16877 echo "$as_me: failed program was:" >&5
16878 sed 's/^/| /' conftest.
$ac_ext >&5
16881 cat >>confdefs.h
<<\_ACEOF
16882 #define GETTIMEOFDAY_NO_TZ 1
16888 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16894 { echo "$as_me:$LINENO: checking for major" >&5
16895 echo $ECHO_N "checking for major... $ECHO_C" >&6; }
16896 cat >conftest.
$ac_ext <<_ACEOF
16899 cat confdefs.h
>>conftest.
$ac_ext
16900 cat >>conftest.
$ac_ext <<_ACEOF
16901 /* end confdefs.h. */
16903 #if defined(MAJOR_IN_MKDEV)
16904 #include <sys/mkdev.h>
16905 #elif defined(MAJOR_IN_SYSMACROS)
16906 #include <sys/sysmacros.h>
16908 #include <sys/types.h>
16915 makedev(major(0),minor(0));
16921 rm -f conftest.
$ac_objext conftest
$ac_exeext
16922 if { (ac_try
="$ac_link"
16923 case "(($ac_try" in
16924 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16925 *) ac_try_echo=$ac_try;;
16927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16928 (eval "$ac_link") 2>conftest.er1
16930 grep -v '^ *+' conftest.er1 >conftest.err
16932 cat conftest.err >&5
16933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16934 (exit $ac_status); } && {
16935 test -z "$ac_c_werror_flag" ||
16936 test ! -s conftest.err
16937 } && test -s conftest$ac_exeext &&
16938 $as_test_x conftest$ac_exeext; then
16941 cat >>confdefs.h <<\_ACEOF
16942 #define HAVE_DEVICE_MACROS 1
16945 { echo "$as_me:$LINENO: result: yes" >&5
16946 echo "${ECHO_T}yes" >&6; }
16949 echo "$as_me: failed program was:" >&5
16950 sed 's/^/| /' conftest.$ac_ext >&5
16953 { echo "$as_me:$LINENO: result: no" >&5
16954 echo "${ECHO_T}no" >&6; }
16958 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16959 conftest$ac_exeext conftest.$ac_ext
16961 # On OSF/1 V5.1, getaddrinfo is available, but a define
16962 # for [no]getaddrinfo in netdb.h.
16963 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
16964 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
16965 cat >conftest.$ac_ext <<_ACEOF
16968 cat confdefs.h >>conftest.$ac_ext
16969 cat >>conftest.$ac_ext <<_ACEOF
16970 /* end confdefs.h. */
16972 #include <sys/types.h>
16973 #include <sys/socket.h>
16981 getaddrinfo(NULL, NULL, NULL, NULL);
16987 rm -f conftest.$ac_objext conftest$ac_exeext
16988 if { (ac_try="$ac_link"
16989 case "(($ac_try" in
16990 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16991 *) ac_try_echo
=$ac_try;;
16993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16994 (eval "$ac_link") 2>conftest.er1
16996 grep -v '^ *+' conftest.er1
>conftest.err
16998 cat conftest.err
>&5
16999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17000 (exit $ac_status); } && {
17001 test -z "$ac_c_werror_flag" ||
17002 test ! -s conftest.err
17003 } && test -s conftest
$ac_exeext &&
17004 $as_test_x conftest
$ac_exeext; then
17006 { echo "$as_me:$LINENO: result: yes" >&5
17007 echo "${ECHO_T}yes" >&6; }
17008 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
17009 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
17010 if test "$cross_compiling" = yes; then
17011 { echo "$as_me:$LINENO: result: buggy" >&5
17012 echo "${ECHO_T}buggy" >&6; }
17013 buggygetaddrinfo
=yes
17015 cat >conftest.
$ac_ext <<_ACEOF
17018 cat confdefs.h
>>conftest.
$ac_ext
17019 cat >>conftest.
$ac_ext <<_ACEOF
17020 /* end confdefs.h. */
17022 #include <sys/types.h>
17024 #include <string.h>
17025 #include <sys/socket.h>
17026 #include <netinet/in.h>
17030 int passive, gaierr, inet4 = 0, inet6 = 0;
17031 struct addrinfo hints, *ai, *aitop;
17032 char straddr[INET6_ADDRSTRLEN], strport[16];
17034 for (passive = 0; passive <= 1; passive++) {
17035 memset(&hints, 0, sizeof(hints));
17036 hints.ai_family = AF_UNSPEC;
17037 hints.ai_flags = passive ? AI_PASSIVE : 0;
17038 hints.ai_socktype = SOCK_STREAM;
17039 hints.ai_protocol = IPPROTO_TCP;
17040 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
17041 (void)gai_strerror(gaierr);
17044 for (ai = aitop; ai; ai = ai->ai_next) {
17045 if (ai->ai_addr == NULL ||
17046 ai->ai_addrlen == 0 ||
17047 getnameinfo(ai->ai_addr, ai->ai_addrlen,
17048 straddr, sizeof(straddr), strport, sizeof(strport),
17049 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
17052 switch (ai->ai_family) {
17054 if (strcmp(strport, "54321") != 0) {
17058 if (strcmp(straddr, "0.0.0.0") != 0) {
17062 if (strcmp(straddr, "127.0.0.1") != 0) {
17069 if (strcmp(strport, "54321") != 0) {
17073 if (strcmp(straddr, "::") != 0) {
17077 if (strcmp(straddr, "::1") != 0) {
17087 /* another family support? */
17093 if (!(inet4 == 0 || inet4 == 2))
17095 if (!(inet6 == 0 || inet6 == 2))
17099 freeaddrinfo(aitop);
17104 freeaddrinfo(aitop);
17109 rm -f conftest
$ac_exeext
17110 if { (ac_try
="$ac_link"
17111 case "(($ac_try" in
17112 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17113 *) ac_try_echo=$ac_try;;
17115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17116 (eval "$ac_link") 2>&5
17118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17120 { (case "(($ac_try" in
17121 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17122 *) ac_try_echo
=$ac_try;;
17124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17125 (eval "$ac_try") 2>&5
17127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128 (exit $ac_status); }; }; then
17129 { echo "$as_me:$LINENO: result: good" >&5
17130 echo "${ECHO_T}good" >&6; }
17131 buggygetaddrinfo
=no
17133 echo "$as_me: program exited with status $ac_status" >&5
17134 echo "$as_me: failed program was:" >&5
17135 sed 's/^/| /' conftest.
$ac_ext >&5
17137 ( exit $ac_status )
17138 { echo "$as_me:$LINENO: result: buggy" >&5
17139 echo "${ECHO_T}buggy" >&6; }
17140 buggygetaddrinfo
=yes
17142 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17147 echo "$as_me: failed program was:" >&5
17148 sed 's/^/| /' conftest.
$ac_ext >&5
17151 { echo "$as_me:$LINENO: result: no" >&5
17152 echo "${ECHO_T}no" >&6; }
17153 buggygetaddrinfo
=yes
17157 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17158 conftest
$ac_exeext conftest.
$ac_ext
17160 if test "$buggygetaddrinfo" = "yes"; then
17161 if test "$ipv6" = "yes"; then
17162 echo 'Fatal: You must get working getaddrinfo() function.'
17163 echo ' or you can specify "--disable-ipv6"'.
17168 cat >>confdefs.h
<<\_ACEOF
17169 #define HAVE_GETADDRINFO 1
17174 for ac_func
in getnameinfo
17176 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17177 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17178 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17179 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17180 echo $ECHO_N "(cached) $ECHO_C" >&6
17182 cat >conftest.
$ac_ext <<_ACEOF
17185 cat confdefs.h
>>conftest.
$ac_ext
17186 cat >>conftest.
$ac_ext <<_ACEOF
17187 /* end confdefs.h. */
17188 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17189 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17190 #define $ac_func innocuous_$ac_func
17192 /* System header to define __stub macros and hopefully few prototypes,
17193 which can conflict with char $ac_func (); below.
17194 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17195 <limits.h> exists even on freestanding compilers. */
17198 # include <limits.h>
17200 # include <assert.h>
17205 /* Override any GCC internal prototype to avoid an error.
17206 Use char because int might match the return type of a GCC
17207 builtin and then its argument prototype would still apply. */
17212 /* The GNU C library defines this for functions which it implements
17213 to always fail with ENOSYS. Some functions are actually named
17214 something starting with __ and the normal name is an alias. */
17215 #if defined __stub_$ac_func || defined __stub___$ac_func
17222 return $ac_func ();
17227 rm -f conftest.
$ac_objext conftest
$ac_exeext
17228 if { (ac_try
="$ac_link"
17229 case "(($ac_try" in
17230 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17231 *) ac_try_echo=$ac_try;;
17233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17234 (eval "$ac_link") 2>conftest.er1
17236 grep -v '^ *+' conftest.er1 >conftest.err
17238 cat conftest.err >&5
17239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240 (exit $ac_status); } && {
17241 test -z "$ac_c_werror_flag" ||
17242 test ! -s conftest.err
17243 } && test -s conftest$ac_exeext &&
17244 $as_test_x conftest$ac_exeext; then
17245 eval "$as_ac_var=yes"
17247 echo "$as_me: failed program was:" >&5
17248 sed 's/^/| /' conftest.$ac_ext >&5
17250 eval "$as_ac_var=no"
17253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17254 conftest$ac_exeext conftest.$ac_ext
17256 ac_res=`eval echo '${'$as_ac_var'}'`
17257 { echo "$as_me:$LINENO: result: $ac_res" >&5
17258 echo "${ECHO_T}$ac_res" >&6; }
17259 if test `eval echo '${'$as_ac_var'}'` = yes; then
17260 cat >>confdefs.h <<_ACEOF
17261 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17268 # checks for structures
17269 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
17270 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
17271 if test "${ac_cv_header_time+set}" = set; then
17272 echo $ECHO_N "(cached) $ECHO_C" >&6
17274 cat >conftest.$ac_ext <<_ACEOF
17277 cat confdefs.h >>conftest.$ac_ext
17278 cat >>conftest.$ac_ext <<_ACEOF
17279 /* end confdefs.h. */
17280 #include <sys/types.h>
17281 #include <sys/time.h>
17287 if ((struct tm *) 0)
17293 rm -f conftest.$ac_objext
17294 if { (ac_try="$ac_compile"
17295 case "(($ac_try" in
17296 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17297 *) ac_try_echo
=$ac_try;;
17299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17300 (eval "$ac_compile") 2>conftest.er1
17302 grep -v '^ *+' conftest.er1
>conftest.err
17304 cat conftest.err
>&5
17305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306 (exit $ac_status); } && {
17307 test -z "$ac_c_werror_flag" ||
17308 test ! -s conftest.err
17309 } && test -s conftest.
$ac_objext; then
17310 ac_cv_header_time
=yes
17312 echo "$as_me: failed program was:" >&5
17313 sed 's/^/| /' conftest.
$ac_ext >&5
17315 ac_cv_header_time
=no
17318 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17320 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
17321 echo "${ECHO_T}$ac_cv_header_time" >&6; }
17322 if test $ac_cv_header_time = yes; then
17324 cat >>confdefs.h
<<\_ACEOF
17325 #define TIME_WITH_SYS_TIME 1
17330 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17331 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17332 if test "${ac_cv_struct_tm+set}" = set; then
17333 echo $ECHO_N "(cached) $ECHO_C" >&6
17335 cat >conftest.
$ac_ext <<_ACEOF
17338 cat confdefs.h
>>conftest.
$ac_ext
17339 cat >>conftest.
$ac_ext <<_ACEOF
17340 /* end confdefs.h. */
17341 #include <sys/types.h>
17348 int *p = &tm.tm_sec;
17354 rm -f conftest.
$ac_objext
17355 if { (ac_try
="$ac_compile"
17356 case "(($ac_try" in
17357 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17358 *) ac_try_echo=$ac_try;;
17360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17361 (eval "$ac_compile") 2>conftest.er1
17363 grep -v '^ *+' conftest.er1 >conftest.err
17365 cat conftest.err >&5
17366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367 (exit $ac_status); } && {
17368 test -z "$ac_c_werror_flag" ||
17369 test ! -s conftest.err
17370 } && test -s conftest.$ac_objext; then
17371 ac_cv_struct_tm=time.h
17373 echo "$as_me: failed program was:" >&5
17374 sed 's/^/| /' conftest.$ac_ext >&5
17376 ac_cv_struct_tm=sys/time.h
17379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17381 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17382 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17383 if test $ac_cv_struct_tm = sys/time.h; then
17385 cat >>confdefs.h <<\_ACEOF
17386 #define TM_IN_SYS_TIME 1
17391 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
17392 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
17393 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
17394 echo $ECHO_N "(cached) $ECHO_C" >&6
17396 cat >conftest.$ac_ext <<_ACEOF
17399 cat confdefs.h >>conftest.$ac_ext
17400 cat >>conftest.$ac_ext <<_ACEOF
17401 /* end confdefs.h. */
17402 #include <sys/types.h>
17403 #include <$ac_cv_struct_tm>
17409 static struct tm ac_aggr;
17410 if (ac_aggr.tm_zone)
17416 rm -f conftest.$ac_objext
17417 if { (ac_try="$ac_compile"
17418 case "(($ac_try" in
17419 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17420 *) ac_try_echo
=$ac_try;;
17422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17423 (eval "$ac_compile") 2>conftest.er1
17425 grep -v '^ *+' conftest.er1
>conftest.err
17427 cat conftest.err
>&5
17428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17429 (exit $ac_status); } && {
17430 test -z "$ac_c_werror_flag" ||
17431 test ! -s conftest.err
17432 } && test -s conftest.
$ac_objext; then
17433 ac_cv_member_struct_tm_tm_zone
=yes
17435 echo "$as_me: failed program was:" >&5
17436 sed 's/^/| /' conftest.
$ac_ext >&5
17438 cat >conftest.
$ac_ext <<_ACEOF
17441 cat confdefs.h
>>conftest.
$ac_ext
17442 cat >>conftest.
$ac_ext <<_ACEOF
17443 /* end confdefs.h. */
17444 #include <sys/types.h>
17445 #include <$ac_cv_struct_tm>
17451 static struct tm ac_aggr;
17452 if (sizeof ac_aggr.tm_zone)
17458 rm -f conftest.
$ac_objext
17459 if { (ac_try
="$ac_compile"
17460 case "(($ac_try" in
17461 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17462 *) ac_try_echo=$ac_try;;
17464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17465 (eval "$ac_compile") 2>conftest.er1
17467 grep -v '^ *+' conftest.er1 >conftest.err
17469 cat conftest.err >&5
17470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17471 (exit $ac_status); } && {
17472 test -z "$ac_c_werror_flag" ||
17473 test ! -s conftest.err
17474 } && test -s conftest.$ac_objext; then
17475 ac_cv_member_struct_tm_tm_zone=yes
17477 echo "$as_me: failed program was:" >&5
17478 sed 's/^/| /' conftest.$ac_ext >&5
17480 ac_cv_member_struct_tm_tm_zone=no
17483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17488 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
17489 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
17490 if test $ac_cv_member_struct_tm_tm_zone = yes; then
17492 cat >>confdefs.h <<_ACEOF
17493 #define HAVE_STRUCT_TM_TM_ZONE 1
17499 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
17501 cat >>confdefs.h <<\_ACEOF
17502 #define HAVE_TM_ZONE 1
17506 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
17507 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
17508 if test "${ac_cv_have_decl_tzname+set}" = set; then
17509 echo $ECHO_N "(cached) $ECHO_C" >&6
17511 cat >conftest.$ac_ext <<_ACEOF
17514 cat confdefs.h >>conftest.$ac_ext
17515 cat >>conftest.$ac_ext <<_ACEOF
17516 /* end confdefs.h. */
17530 rm -f conftest.$ac_objext
17531 if { (ac_try="$ac_compile"
17532 case "(($ac_try" in
17533 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17534 *) ac_try_echo
=$ac_try;;
17536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17537 (eval "$ac_compile") 2>conftest.er1
17539 grep -v '^ *+' conftest.er1
>conftest.err
17541 cat conftest.err
>&5
17542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17543 (exit $ac_status); } && {
17544 test -z "$ac_c_werror_flag" ||
17545 test ! -s conftest.err
17546 } && test -s conftest.
$ac_objext; then
17547 ac_cv_have_decl_tzname
=yes
17549 echo "$as_me: failed program was:" >&5
17550 sed 's/^/| /' conftest.
$ac_ext >&5
17552 ac_cv_have_decl_tzname
=no
17555 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17557 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
17558 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
17559 if test $ac_cv_have_decl_tzname = yes; then
17561 cat >>confdefs.h
<<_ACEOF
17562 #define HAVE_DECL_TZNAME 1
17567 cat >>confdefs.h
<<_ACEOF
17568 #define HAVE_DECL_TZNAME 0
17575 { echo "$as_me:$LINENO: checking for tzname" >&5
17576 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
17577 if test "${ac_cv_var_tzname+set}" = set; then
17578 echo $ECHO_N "(cached) $ECHO_C" >&6
17580 cat >conftest.
$ac_ext <<_ACEOF
17583 cat confdefs.h
>>conftest.
$ac_ext
17584 cat >>conftest.
$ac_ext <<_ACEOF
17585 /* end confdefs.h. */
17587 #if !HAVE_DECL_TZNAME
17588 extern char *tzname[];
17594 return tzname[0][0];
17599 rm -f conftest.
$ac_objext conftest
$ac_exeext
17600 if { (ac_try
="$ac_link"
17601 case "(($ac_try" in
17602 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17603 *) ac_try_echo=$ac_try;;
17605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17606 (eval "$ac_link") 2>conftest.er1
17608 grep -v '^ *+' conftest.er1 >conftest.err
17610 cat conftest.err >&5
17611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612 (exit $ac_status); } && {
17613 test -z "$ac_c_werror_flag" ||
17614 test ! -s conftest.err
17615 } && test -s conftest$ac_exeext &&
17616 $as_test_x conftest$ac_exeext; then
17617 ac_cv_var_tzname=yes
17619 echo "$as_me: failed program was:" >&5
17620 sed 's/^/| /' conftest.$ac_ext >&5
17622 ac_cv_var_tzname=no
17625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17626 conftest$ac_exeext conftest.$ac_ext
17628 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
17629 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
17630 if test $ac_cv_var_tzname = yes; then
17632 cat >>confdefs.h <<\_ACEOF
17633 #define HAVE_TZNAME 1
17639 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
17640 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
17641 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
17642 echo $ECHO_N "(cached) $ECHO_C" >&6
17644 cat >conftest.$ac_ext <<_ACEOF
17647 cat confdefs.h >>conftest.$ac_ext
17648 cat >>conftest.$ac_ext <<_ACEOF
17649 /* end confdefs.h. */
17650 $ac_includes_default
17654 static struct stat ac_aggr;
17655 if (ac_aggr.st_rdev)
17661 rm -f conftest.$ac_objext
17662 if { (ac_try="$ac_compile"
17663 case "(($ac_try" in
17664 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17665 *) ac_try_echo
=$ac_try;;
17667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17668 (eval "$ac_compile") 2>conftest.er1
17670 grep -v '^ *+' conftest.er1
>conftest.err
17672 cat conftest.err
>&5
17673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17674 (exit $ac_status); } && {
17675 test -z "$ac_c_werror_flag" ||
17676 test ! -s conftest.err
17677 } && test -s conftest.
$ac_objext; then
17678 ac_cv_member_struct_stat_st_rdev
=yes
17680 echo "$as_me: failed program was:" >&5
17681 sed 's/^/| /' conftest.
$ac_ext >&5
17683 cat >conftest.
$ac_ext <<_ACEOF
17686 cat confdefs.h
>>conftest.
$ac_ext
17687 cat >>conftest.
$ac_ext <<_ACEOF
17688 /* end confdefs.h. */
17689 $ac_includes_default
17693 static struct stat ac_aggr;
17694 if (sizeof ac_aggr.st_rdev)
17700 rm -f conftest.
$ac_objext
17701 if { (ac_try
="$ac_compile"
17702 case "(($ac_try" in
17703 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17704 *) ac_try_echo=$ac_try;;
17706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17707 (eval "$ac_compile") 2>conftest.er1
17709 grep -v '^ *+' conftest.er1 >conftest.err
17711 cat conftest.err >&5
17712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17713 (exit $ac_status); } && {
17714 test -z "$ac_c_werror_flag" ||
17715 test ! -s conftest.err
17716 } && test -s conftest.$ac_objext; then
17717 ac_cv_member_struct_stat_st_rdev=yes
17719 echo "$as_me: failed program was:" >&5
17720 sed 's/^/| /' conftest.$ac_ext >&5
17722 ac_cv_member_struct_stat_st_rdev=no
17725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17730 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
17731 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
17732 if test $ac_cv_member_struct_stat_st_rdev = yes; then
17734 cat >>confdefs.h <<_ACEOF
17735 #define HAVE_STRUCT_STAT_ST_RDEV 1
17741 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
17742 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
17743 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
17744 echo $ECHO_N "(cached) $ECHO_C" >&6
17746 cat >conftest.$ac_ext <<_ACEOF
17749 cat confdefs.h >>conftest.$ac_ext
17750 cat >>conftest.$ac_ext <<_ACEOF
17751 /* end confdefs.h. */
17752 $ac_includes_default
17756 static struct stat ac_aggr;
17757 if (ac_aggr.st_blksize)
17763 rm -f conftest.$ac_objext
17764 if { (ac_try="$ac_compile"
17765 case "(($ac_try" in
17766 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17767 *) ac_try_echo
=$ac_try;;
17769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17770 (eval "$ac_compile") 2>conftest.er1
17772 grep -v '^ *+' conftest.er1
>conftest.err
17774 cat conftest.err
>&5
17775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776 (exit $ac_status); } && {
17777 test -z "$ac_c_werror_flag" ||
17778 test ! -s conftest.err
17779 } && test -s conftest.
$ac_objext; then
17780 ac_cv_member_struct_stat_st_blksize
=yes
17782 echo "$as_me: failed program was:" >&5
17783 sed 's/^/| /' conftest.
$ac_ext >&5
17785 cat >conftest.
$ac_ext <<_ACEOF
17788 cat confdefs.h
>>conftest.
$ac_ext
17789 cat >>conftest.
$ac_ext <<_ACEOF
17790 /* end confdefs.h. */
17791 $ac_includes_default
17795 static struct stat ac_aggr;
17796 if (sizeof ac_aggr.st_blksize)
17802 rm -f conftest.
$ac_objext
17803 if { (ac_try
="$ac_compile"
17804 case "(($ac_try" in
17805 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17806 *) ac_try_echo=$ac_try;;
17808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17809 (eval "$ac_compile") 2>conftest.er1
17811 grep -v '^ *+' conftest.er1 >conftest.err
17813 cat conftest.err >&5
17814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17815 (exit $ac_status); } && {
17816 test -z "$ac_c_werror_flag" ||
17817 test ! -s conftest.err
17818 } && test -s conftest.$ac_objext; then
17819 ac_cv_member_struct_stat_st_blksize=yes
17821 echo "$as_me: failed program was:" >&5
17822 sed 's/^/| /' conftest.$ac_ext >&5
17824 ac_cv_member_struct_stat_st_blksize=no
17827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17832 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
17833 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
17834 if test $ac_cv_member_struct_stat_st_blksize = yes; then
17836 cat >>confdefs.h <<_ACEOF
17837 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
17843 { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
17844 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
17845 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
17846 echo $ECHO_N "(cached) $ECHO_C" >&6
17848 cat >conftest.$ac_ext <<_ACEOF
17851 cat confdefs.h >>conftest.$ac_ext
17852 cat >>conftest.$ac_ext <<_ACEOF
17853 /* end confdefs.h. */
17854 $ac_includes_default
17858 static struct stat ac_aggr;
17859 if (ac_aggr.st_flags)
17865 rm -f conftest.$ac_objext
17866 if { (ac_try="$ac_compile"
17867 case "(($ac_try" in
17868 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17869 *) ac_try_echo
=$ac_try;;
17871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17872 (eval "$ac_compile") 2>conftest.er1
17874 grep -v '^ *+' conftest.er1
>conftest.err
17876 cat conftest.err
>&5
17877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17878 (exit $ac_status); } && {
17879 test -z "$ac_c_werror_flag" ||
17880 test ! -s conftest.err
17881 } && test -s conftest.
$ac_objext; then
17882 ac_cv_member_struct_stat_st_flags
=yes
17884 echo "$as_me: failed program was:" >&5
17885 sed 's/^/| /' conftest.
$ac_ext >&5
17887 cat >conftest.
$ac_ext <<_ACEOF
17890 cat confdefs.h
>>conftest.
$ac_ext
17891 cat >>conftest.
$ac_ext <<_ACEOF
17892 /* end confdefs.h. */
17893 $ac_includes_default
17897 static struct stat ac_aggr;
17898 if (sizeof ac_aggr.st_flags)
17904 rm -f conftest.
$ac_objext
17905 if { (ac_try
="$ac_compile"
17906 case "(($ac_try" in
17907 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17908 *) ac_try_echo=$ac_try;;
17910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17911 (eval "$ac_compile") 2>conftest.er1
17913 grep -v '^ *+' conftest.er1 >conftest.err
17915 cat conftest.err >&5
17916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17917 (exit $ac_status); } && {
17918 test -z "$ac_c_werror_flag" ||
17919 test ! -s conftest.err
17920 } && test -s conftest.$ac_objext; then
17921 ac_cv_member_struct_stat_st_flags=yes
17923 echo "$as_me: failed program was:" >&5
17924 sed 's/^/| /' conftest.$ac_ext >&5
17926 ac_cv_member_struct_stat_st_flags=no
17929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17934 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
17935 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
17936 if test $ac_cv_member_struct_stat_st_flags = yes; then
17938 cat >>confdefs.h <<_ACEOF
17939 #define HAVE_STRUCT_STAT_ST_FLAGS 1
17945 { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
17946 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
17947 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
17948 echo $ECHO_N "(cached) $ECHO_C" >&6
17950 cat >conftest.$ac_ext <<_ACEOF
17953 cat confdefs.h >>conftest.$ac_ext
17954 cat >>conftest.$ac_ext <<_ACEOF
17955 /* end confdefs.h. */
17956 $ac_includes_default
17960 static struct stat ac_aggr;
17961 if (ac_aggr.st_gen)
17967 rm -f conftest.$ac_objext
17968 if { (ac_try="$ac_compile"
17969 case "(($ac_try" in
17970 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17971 *) ac_try_echo
=$ac_try;;
17973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17974 (eval "$ac_compile") 2>conftest.er1
17976 grep -v '^ *+' conftest.er1
>conftest.err
17978 cat conftest.err
>&5
17979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17980 (exit $ac_status); } && {
17981 test -z "$ac_c_werror_flag" ||
17982 test ! -s conftest.err
17983 } && test -s conftest.
$ac_objext; then
17984 ac_cv_member_struct_stat_st_gen
=yes
17986 echo "$as_me: failed program was:" >&5
17987 sed 's/^/| /' conftest.
$ac_ext >&5
17989 cat >conftest.
$ac_ext <<_ACEOF
17992 cat confdefs.h
>>conftest.
$ac_ext
17993 cat >>conftest.
$ac_ext <<_ACEOF
17994 /* end confdefs.h. */
17995 $ac_includes_default
17999 static struct stat ac_aggr;
18000 if (sizeof ac_aggr.st_gen)
18006 rm -f conftest.
$ac_objext
18007 if { (ac_try
="$ac_compile"
18008 case "(($ac_try" in
18009 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18010 *) ac_try_echo=$ac_try;;
18012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18013 (eval "$ac_compile") 2>conftest.er1
18015 grep -v '^ *+' conftest.er1 >conftest.err
18017 cat conftest.err >&5
18018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019 (exit $ac_status); } && {
18020 test -z "$ac_c_werror_flag" ||
18021 test ! -s conftest.err
18022 } && test -s conftest.$ac_objext; then
18023 ac_cv_member_struct_stat_st_gen=yes
18025 echo "$as_me: failed program was:" >&5
18026 sed 's/^/| /' conftest.$ac_ext >&5
18028 ac_cv_member_struct_stat_st_gen=no
18031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18036 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
18037 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
18038 if test $ac_cv_member_struct_stat_st_gen = yes; then
18040 cat >>confdefs.h <<_ACEOF
18041 #define HAVE_STRUCT_STAT_ST_GEN 1
18047 { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
18048 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
18049 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
18050 echo $ECHO_N "(cached) $ECHO_C" >&6
18052 cat >conftest.$ac_ext <<_ACEOF
18055 cat confdefs.h >>conftest.$ac_ext
18056 cat >>conftest.$ac_ext <<_ACEOF
18057 /* end confdefs.h. */
18058 $ac_includes_default
18062 static struct stat ac_aggr;
18063 if (ac_aggr.st_birthtime)
18069 rm -f conftest.$ac_objext
18070 if { (ac_try="$ac_compile"
18071 case "(($ac_try" in
18072 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18073 *) ac_try_echo
=$ac_try;;
18075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18076 (eval "$ac_compile") 2>conftest.er1
18078 grep -v '^ *+' conftest.er1
>conftest.err
18080 cat conftest.err
>&5
18081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18082 (exit $ac_status); } && {
18083 test -z "$ac_c_werror_flag" ||
18084 test ! -s conftest.err
18085 } && test -s conftest.
$ac_objext; then
18086 ac_cv_member_struct_stat_st_birthtime
=yes
18088 echo "$as_me: failed program was:" >&5
18089 sed 's/^/| /' conftest.
$ac_ext >&5
18091 cat >conftest.
$ac_ext <<_ACEOF
18094 cat confdefs.h
>>conftest.
$ac_ext
18095 cat >>conftest.
$ac_ext <<_ACEOF
18096 /* end confdefs.h. */
18097 $ac_includes_default
18101 static struct stat ac_aggr;
18102 if (sizeof ac_aggr.st_birthtime)
18108 rm -f conftest.
$ac_objext
18109 if { (ac_try
="$ac_compile"
18110 case "(($ac_try" in
18111 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18112 *) ac_try_echo=$ac_try;;
18114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18115 (eval "$ac_compile") 2>conftest.er1
18117 grep -v '^ *+' conftest.er1 >conftest.err
18119 cat conftest.err >&5
18120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18121 (exit $ac_status); } && {
18122 test -z "$ac_c_werror_flag" ||
18123 test ! -s conftest.err
18124 } && test -s conftest.$ac_objext; then
18125 ac_cv_member_struct_stat_st_birthtime=yes
18127 echo "$as_me: failed program was:" >&5
18128 sed 's/^/| /' conftest.$ac_ext >&5
18130 ac_cv_member_struct_stat_st_birthtime=no
18133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18138 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
18139 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
18140 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
18142 cat >>confdefs.h <<_ACEOF
18143 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
18149 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
18150 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
18151 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
18152 echo $ECHO_N "(cached) $ECHO_C" >&6
18154 cat >conftest.$ac_ext <<_ACEOF
18157 cat confdefs.h >>conftest.$ac_ext
18158 cat >>conftest.$ac_ext <<_ACEOF
18159 /* end confdefs.h. */
18160 $ac_includes_default
18164 static struct stat ac_aggr;
18165 if (ac_aggr.st_blocks)
18171 rm -f conftest.$ac_objext
18172 if { (ac_try="$ac_compile"
18173 case "(($ac_try" in
18174 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18175 *) ac_try_echo
=$ac_try;;
18177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18178 (eval "$ac_compile") 2>conftest.er1
18180 grep -v '^ *+' conftest.er1
>conftest.err
18182 cat conftest.err
>&5
18183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18184 (exit $ac_status); } && {
18185 test -z "$ac_c_werror_flag" ||
18186 test ! -s conftest.err
18187 } && test -s conftest.
$ac_objext; then
18188 ac_cv_member_struct_stat_st_blocks
=yes
18190 echo "$as_me: failed program was:" >&5
18191 sed 's/^/| /' conftest.
$ac_ext >&5
18193 cat >conftest.
$ac_ext <<_ACEOF
18196 cat confdefs.h
>>conftest.
$ac_ext
18197 cat >>conftest.
$ac_ext <<_ACEOF
18198 /* end confdefs.h. */
18199 $ac_includes_default
18203 static struct stat ac_aggr;
18204 if (sizeof ac_aggr.st_blocks)
18210 rm -f conftest.
$ac_objext
18211 if { (ac_try
="$ac_compile"
18212 case "(($ac_try" in
18213 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18214 *) ac_try_echo=$ac_try;;
18216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18217 (eval "$ac_compile") 2>conftest.er1
18219 grep -v '^ *+' conftest.er1 >conftest.err
18221 cat conftest.err >&5
18222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223 (exit $ac_status); } && {
18224 test -z "$ac_c_werror_flag" ||
18225 test ! -s conftest.err
18226 } && test -s conftest.$ac_objext; then
18227 ac_cv_member_struct_stat_st_blocks=yes
18229 echo "$as_me: failed program was:" >&5
18230 sed 's/^/| /' conftest.$ac_ext >&5
18232 ac_cv_member_struct_stat_st_blocks=no
18235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18240 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
18241 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
18242 if test $ac_cv_member_struct_stat_st_blocks = yes; then
18244 cat >>confdefs.h <<_ACEOF
18245 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
18249 cat >>confdefs.h <<\_ACEOF
18250 #define HAVE_ST_BLOCKS 1
18254 case " $LIBOBJS " in
18255 *" fileblocks.$ac_objext "* ) ;;
18256 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
18264 { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
18265 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
18266 if test "${ac_cv_header_time_altzone+set}" = set; then
18267 echo $ECHO_N "(cached) $ECHO_C" >&6
18269 cat >conftest.$ac_ext <<_ACEOF
18272 cat confdefs.h >>conftest.$ac_ext
18273 cat >>conftest.$ac_ext <<_ACEOF
18274 /* end confdefs.h. */
18284 rm -f conftest.$ac_objext
18285 if { (ac_try="$ac_compile"
18286 case "(($ac_try" in
18287 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18288 *) ac_try_echo
=$ac_try;;
18290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18291 (eval "$ac_compile") 2>conftest.er1
18293 grep -v '^ *+' conftest.er1
>conftest.err
18295 cat conftest.err
>&5
18296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18297 (exit $ac_status); } && {
18298 test -z "$ac_c_werror_flag" ||
18299 test ! -s conftest.err
18300 } && test -s conftest.
$ac_objext; then
18301 ac_cv_header_time_altzone
=yes
18303 echo "$as_me: failed program was:" >&5
18304 sed 's/^/| /' conftest.
$ac_ext >&5
18306 ac_cv_header_time_altzone
=no
18309 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18312 { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
18313 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
18314 if test $ac_cv_header_time_altzone = yes; then
18316 cat >>confdefs.h
<<\_ACEOF
18317 #define HAVE_ALTZONE 1
18323 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
18324 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
18325 cat >conftest.
$ac_ext <<_ACEOF
18328 cat confdefs.h
>>conftest.
$ac_ext
18329 cat >>conftest.
$ac_ext <<_ACEOF
18330 /* end confdefs.h. */
18332 #include <sys/types.h>
18333 #include <sys/select.h>
18334 #include <sys/time.h>
18344 rm -f conftest.
$ac_objext
18345 if { (ac_try
="$ac_compile"
18346 case "(($ac_try" in
18347 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18348 *) ac_try_echo=$ac_try;;
18350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18351 (eval "$ac_compile") 2>conftest.er1
18353 grep -v '^ *+' conftest.er1 >conftest.err
18355 cat conftest.err >&5
18356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18357 (exit $ac_status); } && {
18358 test -z "$ac_c_werror_flag" ||
18359 test ! -s conftest.err
18360 } && test -s conftest.$ac_objext; then
18363 cat >>confdefs.h <<\_ACEOF
18364 #define SYS_SELECT_WITH_SYS_TIME 1
18370 echo "$as_me: failed program was:" >&5
18371 sed 's/^/| /' conftest.$ac_ext >&5
18376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18377 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
18378 echo "${ECHO_T}$was_it_defined" >&6; }
18380 { echo "$as_me:$LINENO: checking for addrinfo" >&5
18381 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
18382 if test "${ac_cv_struct_addrinfo+set}" = set; then
18383 echo $ECHO_N "(cached) $ECHO_C" >&6
18385 cat >conftest.$ac_ext <<_ACEOF
18388 cat confdefs.h >>conftest.$ac_ext
18389 cat >>conftest.$ac_ext <<_ACEOF
18390 /* end confdefs.h. */
18392 # include <netdb.h>
18401 rm -f conftest.$ac_objext
18402 if { (ac_try="$ac_compile"
18403 case "(($ac_try" in
18404 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18405 *) ac_try_echo
=$ac_try;;
18407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18408 (eval "$ac_compile") 2>conftest.er1
18410 grep -v '^ *+' conftest.er1
>conftest.err
18412 cat conftest.err
>&5
18413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18414 (exit $ac_status); } && {
18415 test -z "$ac_c_werror_flag" ||
18416 test ! -s conftest.err
18417 } && test -s conftest.
$ac_objext; then
18418 ac_cv_struct_addrinfo
=yes
18420 echo "$as_me: failed program was:" >&5
18421 sed 's/^/| /' conftest.
$ac_ext >&5
18423 ac_cv_struct_addrinfo
=no
18426 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18429 { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
18430 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
18431 if test $ac_cv_struct_addrinfo = yes; then
18433 cat >>confdefs.h
<<\_ACEOF
18434 #define HAVE_ADDRINFO 1
18439 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
18440 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
18441 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
18442 echo $ECHO_N "(cached) $ECHO_C" >&6
18444 cat >conftest.
$ac_ext <<_ACEOF
18447 cat confdefs.h
>>conftest.
$ac_ext
18448 cat >>conftest.
$ac_ext <<_ACEOF
18449 /* end confdefs.h. */
18451 # include <sys/types.h>
18452 # include <sys/socket.h>
18456 struct sockaddr_storage s
18461 rm -f conftest.
$ac_objext
18462 if { (ac_try
="$ac_compile"
18463 case "(($ac_try" in
18464 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18465 *) ac_try_echo=$ac_try;;
18467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18468 (eval "$ac_compile") 2>conftest.er1
18470 grep -v '^ *+' conftest.er1 >conftest.err
18472 cat conftest.err >&5
18473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18474 (exit $ac_status); } && {
18475 test -z "$ac_c_werror_flag" ||
18476 test ! -s conftest.err
18477 } && test -s conftest.$ac_objext; then
18478 ac_cv_struct_sockaddr_storage=yes
18480 echo "$as_me: failed program was:" >&5
18481 sed 's/^/| /' conftest.$ac_ext >&5
18483 ac_cv_struct_sockaddr_storage=no
18486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18489 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
18490 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
18491 if test $ac_cv_struct_sockaddr_storage = yes; then
18493 cat >>confdefs.h <<\_ACEOF
18494 #define HAVE_SOCKADDR_STORAGE 1
18499 # checks for compiler characteristics
18502 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
18503 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
18504 if test "${ac_cv_c_char_unsigned+set}" = set; then
18505 echo $ECHO_N "(cached) $ECHO_C" >&6
18507 cat >conftest.$ac_ext <<_ACEOF
18510 cat confdefs.h >>conftest.$ac_ext
18511 cat >>conftest.$ac_ext <<_ACEOF
18512 /* end confdefs.h. */
18513 $ac_includes_default
18517 static int test_array [1 - 2 * !(((char) -1) < 0)];
18524 rm -f conftest.$ac_objext
18525 if { (ac_try="$ac_compile"
18526 case "(($ac_try" in
18527 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18528 *) ac_try_echo
=$ac_try;;
18530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18531 (eval "$ac_compile") 2>conftest.er1
18533 grep -v '^ *+' conftest.er1
>conftest.err
18535 cat conftest.err
>&5
18536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18537 (exit $ac_status); } && {
18538 test -z "$ac_c_werror_flag" ||
18539 test ! -s conftest.err
18540 } && test -s conftest.
$ac_objext; then
18541 ac_cv_c_char_unsigned
=no
18543 echo "$as_me: failed program was:" >&5
18544 sed 's/^/| /' conftest.
$ac_ext >&5
18546 ac_cv_c_char_unsigned
=yes
18549 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18551 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
18552 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
18553 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
18554 cat >>confdefs.h
<<\_ACEOF
18555 #define __CHAR_UNSIGNED__ 1
18560 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18561 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18562 if test "${ac_cv_c_const+set}" = set; then
18563 echo $ECHO_N "(cached) $ECHO_C" >&6
18565 cat >conftest.
$ac_ext <<_ACEOF
18568 cat confdefs.h
>>conftest.
$ac_ext
18569 cat >>conftest.
$ac_ext <<_ACEOF
18570 /* end confdefs.h. */
18575 /* FIXME: Include the comments suggested by Paul. */
18576 #ifndef __cplusplus
18577 /* Ultrix mips cc rejects this. */
18578 typedef int charset[2];
18580 /* SunOS 4.1.1 cc rejects this. */
18581 char const *const *pcpcc;
18583 /* NEC SVR4.0.2 mips cc rejects this. */
18584 struct point {int x, y;};
18585 static struct point const zero = {0,0};
18586 /* AIX XL C 1.02.0.0 rejects this.
18587 It does not let you subtract one const X* pointer from another in
18588 an arm of an if-expression whose if-part is not a constant
18590 const char *g = "string";
18591 pcpcc = &g + (g ? g-g : 0);
18592 /* HPUX 7.0 cc rejects these. */
18594 ppc = (char**) pcpcc;
18595 pcpcc = (char const *const *) ppc;
18596 { /* SCO 3.2v4 cc rejects this. */
18598 char const *s = 0 ? (char *) 0 : (char const *) 0;
18603 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18604 int x[] = {25, 17};
18605 const int *foo = &x[0];
18608 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18609 typedef const int *iptr;
18613 { /* AIX XL C 1.02.0.0 rejects this saying
18614 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18615 struct s { int j; const int *ap[3]; };
18616 struct s *b; b->j = 5;
18618 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18619 const int foo = 10;
18620 if (!foo) return 0;
18622 return !cs[0] && !zero.x;
18629 rm -f conftest.
$ac_objext
18630 if { (ac_try
="$ac_compile"
18631 case "(($ac_try" in
18632 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18633 *) ac_try_echo=$ac_try;;
18635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18636 (eval "$ac_compile") 2>conftest.er1
18638 grep -v '^ *+' conftest.er1 >conftest.err
18640 cat conftest.err >&5
18641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18642 (exit $ac_status); } && {
18643 test -z "$ac_c_werror_flag" ||
18644 test ! -s conftest.err
18645 } && test -s conftest.$ac_objext; then
18648 echo "$as_me: failed program was:" >&5
18649 sed 's/^/| /' conftest.$ac_ext >&5
18654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18656 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18657 echo "${ECHO_T}$ac_cv_c_const" >&6; }
18658 if test $ac_cv_c_const = no; then
18660 cat >>confdefs.h <<\_ACEOF
18668 { echo "$as_me:$LINENO: checking for working volatile" >&5
18669 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
18670 cat >conftest.$ac_ext <<_ACEOF
18673 cat confdefs.h >>conftest.$ac_ext
18674 cat >>conftest.$ac_ext <<_ACEOF
18675 /* end confdefs.h. */
18680 volatile int x; x = 0;
18685 rm -f conftest.$ac_objext
18686 if { (ac_try="$ac_compile"
18687 case "(($ac_try" in
18688 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18689 *) ac_try_echo
=$ac_try;;
18691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18692 (eval "$ac_compile") 2>conftest.er1
18694 grep -v '^ *+' conftest.er1
>conftest.err
18696 cat conftest.err
>&5
18697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18698 (exit $ac_status); } && {
18699 test -z "$ac_c_werror_flag" ||
18700 test ! -s conftest.err
18701 } && test -s conftest.
$ac_objext; then
18704 echo "$as_me: failed program was:" >&5
18705 sed 's/^/| /' conftest.
$ac_ext >&5
18708 cat >>confdefs.h
<<\_ACEOF
18715 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18716 { echo "$as_me:$LINENO: result: $works" >&5
18717 echo "${ECHO_T}$works" >&6; }
18720 { echo "$as_me:$LINENO: checking for working signed char" >&5
18721 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
18722 cat >conftest.
$ac_ext <<_ACEOF
18725 cat confdefs.h
>>conftest.
$ac_ext
18726 cat >>conftest.
$ac_ext <<_ACEOF
18727 /* end confdefs.h. */
18737 rm -f conftest.
$ac_objext
18738 if { (ac_try
="$ac_compile"
18739 case "(($ac_try" in
18740 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18741 *) ac_try_echo=$ac_try;;
18743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18744 (eval "$ac_compile") 2>conftest.er1
18746 grep -v '^ *+' conftest.er1 >conftest.err
18748 cat conftest.err >&5
18749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18750 (exit $ac_status); } && {
18751 test -z "$ac_c_werror_flag" ||
18752 test ! -s conftest.err
18753 } && test -s conftest.$ac_objext; then
18756 echo "$as_me: failed program was:" >&5
18757 sed 's/^/| /' conftest.$ac_ext >&5
18760 cat >>confdefs.h <<\_ACEOF
18767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18768 { echo "$as_me:$LINENO: result: $works" >&5
18769 echo "${ECHO_T}$works" >&6; }
18772 { echo "$as_me:$LINENO: checking for prototypes" >&5
18773 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
18774 cat >conftest.$ac_ext <<_ACEOF
18777 cat confdefs.h >>conftest.$ac_ext
18778 cat >>conftest.$ac_ext <<_ACEOF
18779 /* end confdefs.h. */
18780 int foo(int x) { return 0; }
18789 rm -f conftest.$ac_objext
18790 if { (ac_try="$ac_compile"
18791 case "(($ac_try" in
18792 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18793 *) ac_try_echo
=$ac_try;;
18795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18796 (eval "$ac_compile") 2>conftest.er1
18798 grep -v '^ *+' conftest.er1
>conftest.err
18800 cat conftest.err
>&5
18801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18802 (exit $ac_status); } && {
18803 test -z "$ac_c_werror_flag" ||
18804 test ! -s conftest.err
18805 } && test -s conftest.
$ac_objext; then
18808 cat >>confdefs.h
<<\_ACEOF
18809 #define HAVE_PROTOTYPES 1
18812 have_prototypes
=yes
18815 echo "$as_me: failed program was:" >&5
18816 sed 's/^/| /' conftest.
$ac_ext >&5
18821 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18822 { echo "$as_me:$LINENO: result: $have_prototypes" >&5
18823 echo "${ECHO_T}$have_prototypes" >&6; }
18826 { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
18827 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
18828 cat >conftest.
$ac_ext <<_ACEOF
18831 cat confdefs.h
>>conftest.
$ac_ext
18832 cat >>conftest.
$ac_ext <<_ACEOF
18833 /* end confdefs.h. */
18835 #include <stdarg.h>
18836 int foo(int x, ...) {
18840 va_arg(va, char *);
18841 va_arg(va, double);
18848 return foo(10, "", 3.14);
18853 rm -f conftest.
$ac_objext
18854 if { (ac_try
="$ac_compile"
18855 case "(($ac_try" in
18856 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18857 *) ac_try_echo=$ac_try;;
18859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18860 (eval "$ac_compile") 2>conftest.er1
18862 grep -v '^ *+' conftest.er1 >conftest.err
18864 cat conftest.err >&5
18865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18866 (exit $ac_status); } && {
18867 test -z "$ac_c_werror_flag" ||
18868 test ! -s conftest.err
18869 } && test -s conftest.$ac_objext; then
18872 cat >>confdefs.h <<\_ACEOF
18873 #define HAVE_STDARG_PROTOTYPES 1
18879 echo "$as_me: failed program was:" >&5
18880 sed 's/^/| /' conftest.$ac_ext >&5
18885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18886 { echo "$as_me:$LINENO: result: $works" >&5
18887 echo "${ECHO_T}$works" >&6; }
18889 # check for socketpair
18890 { echo "$as_me:$LINENO: checking for socketpair" >&5
18891 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
18892 cat >conftest.$ac_ext <<_ACEOF
18895 cat confdefs.h >>conftest.$ac_ext
18896 cat >>conftest.$ac_ext <<_ACEOF
18897 /* end confdefs.h. */
18899 #include <sys/types.h>
18900 #include <sys/socket.h>
18910 rm -f conftest.$ac_objext
18911 if { (ac_try="$ac_compile"
18912 case "(($ac_try" in
18913 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18914 *) ac_try_echo
=$ac_try;;
18916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18917 (eval "$ac_compile") 2>conftest.er1
18919 grep -v '^ *+' conftest.er1
>conftest.err
18921 cat conftest.err
>&5
18922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18923 (exit $ac_status); } && {
18924 test -z "$ac_c_werror_flag" ||
18925 test ! -s conftest.err
18926 } && test -s conftest.
$ac_objext; then
18928 cat >>confdefs.h
<<\_ACEOF
18929 #define HAVE_SOCKETPAIR 1
18932 { echo "$as_me:$LINENO: result: yes" >&5
18933 echo "${ECHO_T}yes" >&6; }
18935 echo "$as_me: failed program was:" >&5
18936 sed 's/^/| /' conftest.
$ac_ext >&5
18938 { echo "$as_me:$LINENO: result: no" >&5
18939 echo "${ECHO_T}no" >&6; }
18943 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18945 # check if sockaddr has sa_len member
18946 { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
18947 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; }
18948 cat >conftest.
$ac_ext <<_ACEOF
18951 cat confdefs.h
>>conftest.
$ac_ext
18952 cat >>conftest.
$ac_ext <<_ACEOF
18953 /* end confdefs.h. */
18954 #include <sys/types.h>
18955 #include <sys/socket.h>
18965 rm -f conftest.
$ac_objext
18966 if { (ac_try
="$ac_compile"
18967 case "(($ac_try" in
18968 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18969 *) ac_try_echo=$ac_try;;
18971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18972 (eval "$ac_compile") 2>conftest.er1
18974 grep -v '^ *+' conftest.er1 >conftest.err
18976 cat conftest.err >&5
18977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18978 (exit $ac_status); } && {
18979 test -z "$ac_c_werror_flag" ||
18980 test ! -s conftest.err
18981 } && test -s conftest.$ac_objext; then
18982 { echo "$as_me:$LINENO: result: yes" >&5
18983 echo "${ECHO_T}yes" >&6; }
18985 cat >>confdefs.h <<\_ACEOF
18986 #define HAVE_SOCKADDR_SA_LEN 1
18990 echo "$as_me: failed program was:" >&5
18991 sed 's/^/| /' conftest.$ac_ext >&5
18993 { echo "$as_me:$LINENO: result: no" >&5
18994 echo "${ECHO_T}no" >&6; }
18997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18999 va_list_is_array=no
19000 { echo "$as_me:$LINENO: checking whether va_list is an array" >&5
19001 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
19002 cat >conftest.$ac_ext <<_ACEOF
19005 cat confdefs.h >>conftest.$ac_ext
19006 cat >>conftest.$ac_ext <<_ACEOF
19007 /* end confdefs.h. */
19009 #ifdef HAVE_STDARG_PROTOTYPES
19010 #include <stdarg.h>
19012 #include <varargs.h>
19018 va_list list1, list2; list1 = list2;
19023 rm -f conftest.$ac_objext
19024 if { (ac_try="$ac_compile"
19025 case "(($ac_try" in
19026 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19027 *) ac_try_echo
=$ac_try;;
19029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19030 (eval "$ac_compile") 2>conftest.er1
19032 grep -v '^ *+' conftest.er1
>conftest.err
19034 cat conftest.err
>&5
19035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036 (exit $ac_status); } && {
19037 test -z "$ac_c_werror_flag" ||
19038 test ! -s conftest.err
19039 } && test -s conftest.
$ac_objext; then
19042 echo "$as_me: failed program was:" >&5
19043 sed 's/^/| /' conftest.
$ac_ext >&5
19047 cat >>confdefs.h
<<\_ACEOF
19048 #define VA_LIST_IS_ARRAY 1
19051 va_list_is_array
=yes
19055 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19056 { echo "$as_me:$LINENO: result: $va_list_is_array" >&5
19057 echo "${ECHO_T}$va_list_is_array" >&6; }
19059 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
19063 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
19064 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
19065 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
19066 echo $ECHO_N "(cached) $ECHO_C" >&6
19068 cat >conftest.
$ac_ext <<_ACEOF
19071 cat confdefs.h
>>conftest.
$ac_ext
19072 cat >>conftest.
$ac_ext <<_ACEOF
19073 /* end confdefs.h. */
19074 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
19075 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19076 #define gethostbyname_r innocuous_gethostbyname_r
19078 /* System header to define __stub macros and hopefully few prototypes,
19079 which can conflict with char gethostbyname_r (); below.
19080 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19081 <limits.h> exists even on freestanding compilers. */
19084 # include <limits.h>
19086 # include <assert.h>
19089 #undef gethostbyname_r
19091 /* Override any GCC internal prototype to avoid an error.
19092 Use char because int might match the return type of a GCC
19093 builtin and then its argument prototype would still apply. */
19097 char gethostbyname_r ();
19098 /* The GNU C library defines this for functions which it implements
19099 to always fail with ENOSYS. Some functions are actually named
19100 something starting with __ and the normal name is an alias. */
19101 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
19108 return gethostbyname_r ();
19113 rm -f conftest.
$ac_objext conftest
$ac_exeext
19114 if { (ac_try
="$ac_link"
19115 case "(($ac_try" in
19116 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19117 *) ac_try_echo=$ac_try;;
19119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19120 (eval "$ac_link") 2>conftest.er1
19122 grep -v '^ *+' conftest.er1 >conftest.err
19124 cat conftest.err >&5
19125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19126 (exit $ac_status); } && {
19127 test -z "$ac_c_werror_flag" ||
19128 test ! -s conftest.err
19129 } && test -s conftest$ac_exeext &&
19130 $as_test_x conftest$ac_exeext; then
19131 ac_cv_func_gethostbyname_r=yes
19133 echo "$as_me: failed program was:" >&5
19134 sed 's/^/| /' conftest.$ac_ext >&5
19136 ac_cv_func_gethostbyname_r=no
19139 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19140 conftest$ac_exeext conftest.$ac_ext
19142 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
19143 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
19144 if test $ac_cv_func_gethostbyname_r = yes; then
19146 cat >>confdefs.h <<\_ACEOF
19147 #define HAVE_GETHOSTBYNAME_R 1
19150 { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
19151 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
19153 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
19154 cat >conftest.$ac_ext <<_ACEOF
19157 cat confdefs.h >>conftest.$ac_ext
19158 cat >>conftest.$ac_ext <<_ACEOF
19159 /* end confdefs.h. */
19161 # include <netdb.h>
19168 struct hostent *he, *res;
19173 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
19179 rm -f conftest.$ac_objext
19180 if { (ac_try="$ac_compile"
19181 case "(($ac_try" in
19182 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19183 *) ac_try_echo
=$ac_try;;
19185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19186 (eval "$ac_compile") 2>conftest.er1
19188 grep -v '^ *+' conftest.er1
>conftest.err
19190 cat conftest.err
>&5
19191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192 (exit $ac_status); } && {
19193 test -z "$ac_c_werror_flag" ||
19194 test ! -s conftest.err
19195 } && test -s conftest.
$ac_objext; then
19197 cat >>confdefs.h
<<\_ACEOF
19198 #define HAVE_GETHOSTBYNAME_R 1
19202 cat >>confdefs.h
<<\_ACEOF
19203 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
19206 { echo "$as_me:$LINENO: result: yes" >&5
19207 echo "${ECHO_T}yes" >&6; }
19210 echo "$as_me: failed program was:" >&5
19211 sed 's/^/| /' conftest.
$ac_ext >&5
19214 { echo "$as_me:$LINENO: result: no" >&5
19215 echo "${ECHO_T}no" >&6; }
19216 { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
19217 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
19218 cat >conftest.
$ac_ext <<_ACEOF
19221 cat confdefs.h
>>conftest.
$ac_ext
19222 cat >>conftest.
$ac_ext <<_ACEOF
19223 /* end confdefs.h. */
19225 # include <netdb.h>
19232 struct hostent *he;
19237 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
19243 rm -f conftest.
$ac_objext
19244 if { (ac_try
="$ac_compile"
19245 case "(($ac_try" in
19246 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19247 *) ac_try_echo=$ac_try;;
19249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19250 (eval "$ac_compile") 2>conftest.er1
19252 grep -v '^ *+' conftest.er1 >conftest.err
19254 cat conftest.err >&5
19255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19256 (exit $ac_status); } && {
19257 test -z "$ac_c_werror_flag" ||
19258 test ! -s conftest.err
19259 } && test -s conftest.$ac_objext; then
19261 cat >>confdefs.h <<\_ACEOF
19262 #define HAVE_GETHOSTBYNAME_R 1
19266 cat >>confdefs.h <<\_ACEOF
19267 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
19270 { echo "$as_me:$LINENO: result: yes" >&5
19271 echo "${ECHO_T}yes" >&6; }
19274 echo "$as_me: failed program was:" >&5
19275 sed 's/^/| /' conftest.$ac_ext >&5
19278 { echo "$as_me:$LINENO: result: no" >&5
19279 echo "${ECHO_T}no" >&6; }
19280 { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
19281 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
19282 cat >conftest.$ac_ext <<_ACEOF
19285 cat confdefs.h >>conftest.$ac_ext
19286 cat >>conftest.$ac_ext <<_ACEOF
19287 /* end confdefs.h. */
19289 # include <netdb.h>
19296 struct hostent *he;
19297 struct hostent_data data;
19299 (void) gethostbyname_r(name, he, &data);
19305 rm -f conftest.$ac_objext
19306 if { (ac_try="$ac_compile"
19307 case "(($ac_try" in
19308 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19309 *) ac_try_echo
=$ac_try;;
19311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19312 (eval "$ac_compile") 2>conftest.er1
19314 grep -v '^ *+' conftest.er1
>conftest.err
19316 cat conftest.err
>&5
19317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19318 (exit $ac_status); } && {
19319 test -z "$ac_c_werror_flag" ||
19320 test ! -s conftest.err
19321 } && test -s conftest.
$ac_objext; then
19323 cat >>confdefs.h
<<\_ACEOF
19324 #define HAVE_GETHOSTBYNAME_R 1
19328 cat >>confdefs.h
<<\_ACEOF
19329 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
19332 { echo "$as_me:$LINENO: result: yes" >&5
19333 echo "${ECHO_T}yes" >&6; }
19336 echo "$as_me: failed program was:" >&5
19337 sed 's/^/| /' conftest.
$ac_ext >&5
19340 { echo "$as_me:$LINENO: result: no" >&5
19341 echo "${ECHO_T}no" >&6; }
19345 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19349 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19353 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19359 for ac_func
in gethostbyname
19361 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19362 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19363 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19364 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19365 echo $ECHO_N "(cached) $ECHO_C" >&6
19367 cat >conftest.
$ac_ext <<_ACEOF
19370 cat confdefs.h
>>conftest.
$ac_ext
19371 cat >>conftest.
$ac_ext <<_ACEOF
19372 /* end confdefs.h. */
19373 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19374 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19375 #define $ac_func innocuous_$ac_func
19377 /* System header to define __stub macros and hopefully few prototypes,
19378 which can conflict with char $ac_func (); below.
19379 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19380 <limits.h> exists even on freestanding compilers. */
19383 # include <limits.h>
19385 # include <assert.h>
19390 /* Override any GCC internal prototype to avoid an error.
19391 Use char because int might match the return type of a GCC
19392 builtin and then its argument prototype would still apply. */
19397 /* The GNU C library defines this for functions which it implements
19398 to always fail with ENOSYS. Some functions are actually named
19399 something starting with __ and the normal name is an alias. */
19400 #if defined __stub_$ac_func || defined __stub___$ac_func
19407 return $ac_func ();
19412 rm -f conftest.
$ac_objext conftest
$ac_exeext
19413 if { (ac_try
="$ac_link"
19414 case "(($ac_try" in
19415 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19416 *) ac_try_echo=$ac_try;;
19418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19419 (eval "$ac_link") 2>conftest.er1
19421 grep -v '^ *+' conftest.er1 >conftest.err
19423 cat conftest.err >&5
19424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19425 (exit $ac_status); } && {
19426 test -z "$ac_c_werror_flag" ||
19427 test ! -s conftest.err
19428 } && test -s conftest$ac_exeext &&
19429 $as_test_x conftest$ac_exeext; then
19430 eval "$as_ac_var=yes"
19432 echo "$as_me: failed program was:" >&5
19433 sed 's/^/| /' conftest.$ac_ext >&5
19435 eval "$as_ac_var=no"
19438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19439 conftest$ac_exeext conftest.$ac_ext
19441 ac_res=`eval echo '${'$as_ac_var'}'`
19442 { echo "$as_me:$LINENO: result: $ac_res" >&5
19443 echo "${ECHO_T}$ac_res" >&6; }
19444 if test `eval echo '${'$as_ac_var'}'` = yes; then
19445 cat >>confdefs.h <<_ACEOF
19446 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
19461 # checks for system services
19464 # Linux requires this for correct f.p. operations
19465 { echo "$as_me:$LINENO: checking for __fpu_control" >&5
19466 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
19467 if test "${ac_cv_func___fpu_control+set}" = set; then
19468 echo $ECHO_N "(cached) $ECHO_C" >&6
19470 cat >conftest.$ac_ext <<_ACEOF
19473 cat confdefs.h >>conftest.$ac_ext
19474 cat >>conftest.$ac_ext <<_ACEOF
19475 /* end confdefs.h. */
19476 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
19477 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19478 #define __fpu_control innocuous___fpu_control
19480 /* System header to define __stub macros and hopefully few prototypes,
19481 which can conflict with char __fpu_control (); below.
19482 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19483 <limits.h> exists even on freestanding compilers. */
19486 # include <limits.h>
19488 # include <assert.h>
19491 #undef __fpu_control
19493 /* Override any GCC internal prototype to avoid an error.
19494 Use char because int might match the return type of a GCC
19495 builtin and then its argument prototype would still apply. */
19499 char __fpu_control ();
19500 /* The GNU C library defines this for functions which it implements
19501 to always fail with ENOSYS. Some functions are actually named
19502 something starting with __ and the normal name is an alias. */
19503 #if defined __stub___fpu_control || defined __stub_____fpu_control
19510 return __fpu_control ();
19515 rm -f conftest.$ac_objext conftest$ac_exeext
19516 if { (ac_try="$ac_link"
19517 case "(($ac_try" in
19518 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19519 *) ac_try_echo
=$ac_try;;
19521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19522 (eval "$ac_link") 2>conftest.er1
19524 grep -v '^ *+' conftest.er1
>conftest.err
19526 cat conftest.err
>&5
19527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19528 (exit $ac_status); } && {
19529 test -z "$ac_c_werror_flag" ||
19530 test ! -s conftest.err
19531 } && test -s conftest
$ac_exeext &&
19532 $as_test_x conftest
$ac_exeext; then
19533 ac_cv_func___fpu_control
=yes
19535 echo "$as_me: failed program was:" >&5
19536 sed 's/^/| /' conftest.
$ac_ext >&5
19538 ac_cv_func___fpu_control
=no
19541 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19542 conftest
$ac_exeext conftest.
$ac_ext
19544 { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
19545 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
19546 if test $ac_cv_func___fpu_control = yes; then
19550 { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
19551 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
19552 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
19553 echo $ECHO_N "(cached) $ECHO_C" >&6
19555 ac_check_lib_save_LIBS
=$LIBS
19556 LIBS
="-lieee $LIBS"
19557 cat >conftest.
$ac_ext <<_ACEOF
19560 cat confdefs.h
>>conftest.
$ac_ext
19561 cat >>conftest.
$ac_ext <<_ACEOF
19562 /* end confdefs.h. */
19564 /* Override any GCC internal prototype to avoid an error.
19565 Use char because int might match the return type of a GCC
19566 builtin and then its argument prototype would still apply. */
19570 char __fpu_control ();
19574 return __fpu_control ();
19579 rm -f conftest.
$ac_objext conftest
$ac_exeext
19580 if { (ac_try
="$ac_link"
19581 case "(($ac_try" in
19582 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19583 *) ac_try_echo=$ac_try;;
19585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19586 (eval "$ac_link") 2>conftest.er1
19588 grep -v '^ *+' conftest.er1 >conftest.err
19590 cat conftest.err >&5
19591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19592 (exit $ac_status); } && {
19593 test -z "$ac_c_werror_flag" ||
19594 test ! -s conftest.err
19595 } && test -s conftest$ac_exeext &&
19596 $as_test_x conftest$ac_exeext; then
19597 ac_cv_lib_ieee___fpu_control=yes
19599 echo "$as_me: failed program was:" >&5
19600 sed 's/^/| /' conftest.$ac_ext >&5
19602 ac_cv_lib_ieee___fpu_control=no
19605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19606 conftest$ac_exeext conftest.$ac_ext
19607 LIBS=$ac_check_lib_save_LIBS
19609 { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
19610 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
19611 if test $ac_cv_lib_ieee___fpu_control = yes; then
19612 cat >>confdefs.h <<_ACEOF
19613 #define HAVE_LIBIEEE 1
19616 LIBS="-lieee $LIBS"
19624 # Check for --with-fpectl
19625 { echo "$as_me:$LINENO: checking for --with-fpectl" >&5
19626 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
19628 # Check whether --with-fpectl was given.
19629 if test "${with_fpectl+set}" = set; then
19630 withval=$with_fpectl;
19631 if test "$withval" != no
19634 cat >>confdefs.h <<\_ACEOF
19635 #define WANT_SIGFPE_HANDLER 1
19638 { echo "$as_me:$LINENO: result: yes" >&5
19639 echo "${ECHO_T}yes" >&6; }
19640 else { echo "$as_me:$LINENO: result: no" >&5
19641 echo "${ECHO_T}no" >&6; }
19644 { echo "$as_me:$LINENO: result: no" >&5
19645 echo "${ECHO_T}no" >&6; }
19649 # check for --with-libm=...
19651 case $ac_sys_system in
19656 { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
19657 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
19659 # Check whether --with-libm was given.
19660 if test "${with_libm+set}" = set; then
19661 withval=$with_libm;
19662 if test "$withval" = no
19664 { echo "$as_me:$LINENO: result: force LIBM empty" >&5
19665 echo "${ECHO_T}force LIBM empty" >&6; }
19666 elif test "$withval" != yes
19668 { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
19669 echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
19670 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
19671 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
19672 { (exit 1); exit 1; }; }
19675 { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
19676 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
19680 # check for --with-libc=...
19682 { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
19683 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
19685 # Check whether --with-libc was given.
19686 if test "${with_libc+set}" = set; then
19687 withval=$with_libc;
19688 if test "$withval" = no
19690 { echo "$as_me:$LINENO: result: force LIBC empty" >&5
19691 echo "${ECHO_T}force LIBC empty" >&6; }
19692 elif test "$withval" != yes
19694 { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
19695 echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
19696 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
19697 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
19698 { (exit 1); exit 1; }; }
19701 { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
19702 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
19706 # check for hypot() in math library
19710 for ac_func in hypot
19712 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
19713 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19714 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19715 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19716 echo $ECHO_N "(cached) $ECHO_C" >&6
19718 cat >conftest.$ac_ext <<_ACEOF
19721 cat confdefs.h >>conftest.$ac_ext
19722 cat >>conftest.$ac_ext <<_ACEOF
19723 /* end confdefs.h. */
19724 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19725 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19726 #define $ac_func innocuous_$ac_func
19728 /* System header to define __stub macros and hopefully few prototypes,
19729 which can conflict with char $ac_func (); below.
19730 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19731 <limits.h> exists even on freestanding compilers. */
19734 # include <limits.h>
19736 # include <assert.h>
19741 /* Override any GCC internal prototype to avoid an error.
19742 Use char because int might match the return type of a GCC
19743 builtin and then its argument prototype would still apply. */
19748 /* The GNU C library defines this for functions which it implements
19749 to always fail with ENOSYS. Some functions are actually named
19750 something starting with __ and the normal name is an alias. */
19751 #if defined __stub_$ac_func || defined __stub___$ac_func
19758 return $ac_func ();
19763 rm -f conftest.$ac_objext conftest$ac_exeext
19764 if { (ac_try="$ac_link"
19765 case "(($ac_try" in
19766 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19767 *) ac_try_echo
=$ac_try;;
19769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19770 (eval "$ac_link") 2>conftest.er1
19772 grep -v '^ *+' conftest.er1
>conftest.err
19774 cat conftest.err
>&5
19775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776 (exit $ac_status); } && {
19777 test -z "$ac_c_werror_flag" ||
19778 test ! -s conftest.err
19779 } && test -s conftest
$ac_exeext &&
19780 $as_test_x conftest
$ac_exeext; then
19781 eval "$as_ac_var=yes"
19783 echo "$as_me: failed program was:" >&5
19784 sed 's/^/| /' conftest.
$ac_ext >&5
19786 eval "$as_ac_var=no"
19789 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19790 conftest
$ac_exeext conftest.
$ac_ext
19792 ac_res
=`eval echo '${'$as_ac_var'}'`
19793 { echo "$as_me:$LINENO: result: $ac_res" >&5
19794 echo "${ECHO_T}$ac_res" >&6; }
19795 if test `eval echo '${'$as_ac_var'}'` = yes; then
19796 cat >>confdefs.h
<<_ACEOF
19797 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19801 case " $LIBOBJS " in
19802 *" $ac_func.$ac_objext "* ) ;;
19803 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
19813 # check for wchar.h
19814 if test "${ac_cv_header_wchar_h+set}" = set; then
19815 { echo "$as_me:$LINENO: checking for wchar.h" >&5
19816 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
19817 if test "${ac_cv_header_wchar_h+set}" = set; then
19818 echo $ECHO_N "(cached) $ECHO_C" >&6
19820 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
19821 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
19823 # Is the header compilable?
19824 { echo "$as_me:$LINENO: checking wchar.h usability" >&5
19825 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; }
19826 cat >conftest.
$ac_ext <<_ACEOF
19829 cat confdefs.h
>>conftest.
$ac_ext
19830 cat >>conftest.
$ac_ext <<_ACEOF
19831 /* end confdefs.h. */
19832 $ac_includes_default
19835 rm -f conftest.
$ac_objext
19836 if { (ac_try
="$ac_compile"
19837 case "(($ac_try" in
19838 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19839 *) ac_try_echo=$ac_try;;
19841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19842 (eval "$ac_compile") 2>conftest.er1
19844 grep -v '^ *+' conftest.er1 >conftest.err
19846 cat conftest.err >&5
19847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848 (exit $ac_status); } && {
19849 test -z "$ac_c_werror_flag" ||
19850 test ! -s conftest.err
19851 } && test -s conftest.$ac_objext; then
19852 ac_header_compiler=yes
19854 echo "$as_me: failed program was:" >&5
19855 sed 's/^/| /' conftest.$ac_ext >&5
19857 ac_header_compiler=no
19860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19861 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19862 echo "${ECHO_T}$ac_header_compiler" >&6; }
19864 # Is the header present?
19865 { echo "$as_me:$LINENO: checking wchar.h presence" >&5
19866 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; }
19867 cat >conftest.$ac_ext <<_ACEOF
19870 cat confdefs.h >>conftest.$ac_ext
19871 cat >>conftest.$ac_ext <<_ACEOF
19872 /* end confdefs.h. */
19875 if { (ac_try="$ac_cpp conftest.$ac_ext"
19876 case "(($ac_try" in
19877 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19878 *) ac_try_echo
=$ac_try;;
19880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19881 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19883 grep -v '^ *+' conftest.er1
>conftest.err
19885 cat conftest.err
>&5
19886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887 (exit $ac_status); } >/dev
/null
&& {
19888 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19889 test ! -s conftest.err
19891 ac_header_preproc
=yes
19893 echo "$as_me: failed program was:" >&5
19894 sed 's/^/| /' conftest.
$ac_ext >&5
19896 ac_header_preproc
=no
19899 rm -f conftest.err conftest.
$ac_ext
19900 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19901 echo "${ECHO_T}$ac_header_preproc" >&6; }
19903 # So? What about this header?
19904 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19906 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
19907 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19908 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
19909 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
19910 ac_header_preproc
=yes
19913 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
19914 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
19915 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
19916 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
19917 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
19918 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
19919 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
19920 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
19921 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
19922 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
19923 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
19924 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
19926 ## ------------------------------------------------ ##
19927 ## Report this to http://www.python.org/python-bugs ##
19928 ## ------------------------------------------------ ##
19930 ) |
sed "s/^/$as_me: WARNING: /" >&2
19933 { echo "$as_me:$LINENO: checking for wchar.h" >&5
19934 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
19935 if test "${ac_cv_header_wchar_h+set}" = set; then
19936 echo $ECHO_N "(cached) $ECHO_C" >&6
19938 ac_cv_header_wchar_h
=$ac_header_preproc
19940 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
19941 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
19944 if test $ac_cv_header_wchar_h = yes; then
19947 cat >>confdefs.h
<<\_ACEOF
19948 #define HAVE_WCHAR_H 1
19960 # determine wchar_t size
19961 if test "$wchar_h" = yes
19963 { echo "$as_me:$LINENO: checking for wchar_t" >&5
19964 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
19965 if test "${ac_cv_type_wchar_t+set}" = set; then
19966 echo $ECHO_N "(cached) $ECHO_C" >&6
19968 cat >conftest.
$ac_ext <<_ACEOF
19971 cat confdefs.h
>>conftest.
$ac_ext
19972 cat >>conftest.
$ac_ext <<_ACEOF
19973 /* end confdefs.h. */
19976 typedef wchar_t ac__type_new_;
19980 if ((ac__type_new_ *) 0)
19982 if (sizeof (ac__type_new_))
19988 rm -f conftest.
$ac_objext
19989 if { (ac_try
="$ac_compile"
19990 case "(($ac_try" in
19991 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19992 *) ac_try_echo=$ac_try;;
19994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19995 (eval "$ac_compile") 2>conftest.er1
19997 grep -v '^ *+' conftest.er1 >conftest.err
19999 cat conftest.err >&5
20000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20001 (exit $ac_status); } && {
20002 test -z "$ac_c_werror_flag" ||
20003 test ! -s conftest.err
20004 } && test -s conftest.$ac_objext; then
20005 ac_cv_type_wchar_t=yes
20007 echo "$as_me: failed program was:" >&5
20008 sed 's/^/| /' conftest.$ac_ext >&5
20010 ac_cv_type_wchar_t=no
20013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20015 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
20016 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
20018 # The cast to long int works around a bug in the HP C Compiler
20019 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20020 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
20021 # This bug is HP SR number 8606223364.
20022 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
20023 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
20024 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
20025 echo $ECHO_N "(cached) $ECHO_C" >&6
20027 if test "$cross_compiling" = yes; then
20028 # Depending upon the size, compute the lo and hi bounds.
20029 cat >conftest.$ac_ext <<_ACEOF
20032 cat confdefs.h >>conftest.$ac_ext
20033 cat >>conftest.$ac_ext <<_ACEOF
20034 /* end confdefs.h. */
20037 typedef wchar_t ac__type_sizeof_;
20041 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20048 rm -f conftest.$ac_objext
20049 if { (ac_try="$ac_compile"
20050 case "(($ac_try" in
20051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20052 *) ac_try_echo=$ac_try;;
20054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20055 (eval "$ac_compile") 2>conftest.er1
20057 grep -v '^
*+' conftest.er1 >conftest.err
20059 cat conftest.err >&5
20060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20061 (exit $ac_status); } && {
20062 test -z "$ac_c_werror_flag" ||
20063 test ! -s conftest.err
20064 } && test -s conftest.$ac_objext; then
20067 cat >conftest.$ac_ext <<_ACEOF
20070 cat confdefs.h >>conftest.$ac_ext
20071 cat >>conftest.$ac_ext <<_ACEOF
20072 /* end confdefs.h. */
20075 typedef wchar_t ac__type_sizeof_;
20079 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20086 rm -f conftest.$ac_objext
20087 if { (ac_try="$ac_compile"
20088 case "(($ac_try" in
20089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20090 *) ac_try_echo=$ac_try;;
20092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20093 (eval "$ac_compile") 2>conftest.er1
20095 grep -v '^
*+' conftest.er1 >conftest.err
20097 cat conftest.err >&5
20098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20099 (exit $ac_status); } && {
20100 test -z "$ac_c_werror_flag" ||
20101 test ! -s conftest.err
20102 } && test -s conftest.$ac_objext; then
20103 ac_hi=$ac_mid; break
20105 echo "$as_me: failed program was:" >&5
20106 sed 's
/^
/|
/' conftest.$ac_ext >&5
20108 ac_lo=`expr $ac_mid + 1`
20109 if test $ac_lo -le $ac_mid; then
20113 ac_mid=`expr 2 '*' $ac_mid + 1`
20116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20119 echo "$as_me: failed program was:" >&5
20120 sed 's
/^
/|
/' conftest.$ac_ext >&5
20122 cat >conftest.$ac_ext <<_ACEOF
20125 cat confdefs.h >>conftest.$ac_ext
20126 cat >>conftest.$ac_ext <<_ACEOF
20127 /* end confdefs.h. */
20130 typedef wchar_t ac__type_sizeof_;
20134 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20141 rm -f conftest.$ac_objext
20142 if { (ac_try="$ac_compile"
20143 case "(($ac_try" in
20144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20145 *) ac_try_echo=$ac_try;;
20147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20148 (eval "$ac_compile") 2>conftest.er1
20150 grep -v '^
*+' conftest.er1 >conftest.err
20152 cat conftest.err >&5
20153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154 (exit $ac_status); } && {
20155 test -z "$ac_c_werror_flag" ||
20156 test ! -s conftest.err
20157 } && test -s conftest.$ac_objext; then
20160 cat >conftest.$ac_ext <<_ACEOF
20163 cat confdefs.h >>conftest.$ac_ext
20164 cat >>conftest.$ac_ext <<_ACEOF
20165 /* end confdefs.h. */
20168 typedef wchar_t ac__type_sizeof_;
20172 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20179 rm -f conftest.$ac_objext
20180 if { (ac_try="$ac_compile"
20181 case "(($ac_try" in
20182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20183 *) ac_try_echo=$ac_try;;
20185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20186 (eval "$ac_compile") 2>conftest.er1
20188 grep -v '^
*+' conftest.er1 >conftest.err
20190 cat conftest.err >&5
20191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20192 (exit $ac_status); } && {
20193 test -z "$ac_c_werror_flag" ||
20194 test ! -s conftest.err
20195 } && test -s conftest.$ac_objext; then
20196 ac_lo=$ac_mid; break
20198 echo "$as_me: failed program was:" >&5
20199 sed 's
/^
/|
/' conftest.$ac_ext >&5
20201 ac_hi=`expr '(' $ac_mid ')' - 1`
20202 if test $ac_mid -le $ac_hi; then
20206 ac_mid=`expr 2 '*' $ac_mid`
20209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20212 echo "$as_me: failed program was:" >&5
20213 sed 's
/^
/|
/' conftest.$ac_ext >&5
20218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20222 # Binary search between lo and hi bounds.
20223 while test "x$ac_lo" != "x$ac_hi"; do
20224 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20225 cat >conftest.$ac_ext <<_ACEOF
20228 cat confdefs.h >>conftest.$ac_ext
20229 cat >>conftest.$ac_ext <<_ACEOF
20230 /* end confdefs.h. */
20233 typedef wchar_t ac__type_sizeof_;
20237 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20244 rm -f conftest.$ac_objext
20245 if { (ac_try="$ac_compile"
20246 case "(($ac_try" in
20247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20248 *) ac_try_echo=$ac_try;;
20250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20251 (eval "$ac_compile") 2>conftest.er1
20253 grep -v '^
*+' conftest.er1 >conftest.err
20255 cat conftest.err >&5
20256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20257 (exit $ac_status); } && {
20258 test -z "$ac_c_werror_flag" ||
20259 test ! -s conftest.err
20260 } && test -s conftest.$ac_objext; then
20263 echo "$as_me: failed program was:" >&5
20264 sed 's
/^
/|
/' conftest.$ac_ext >&5
20266 ac_lo=`expr '(' $ac_mid ')' + 1`
20269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20272 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
20273 '') if test "$ac_cv_type_wchar_t" = yes; then
20274 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
20275 See \`config.log' for more details.
" >&5
20276 echo "$as_me: error
: cannot compute sizeof
(wchar_t
)
20277 See \
`config.log' for more details." >&2;}
20278 { (exit 77); exit 77; }; }
20280 ac_cv_sizeof_wchar_t=0
20284 cat >conftest.$ac_ext <<_ACEOF
20287 cat confdefs.h >>conftest.$ac_ext
20288 cat >>conftest.$ac_ext <<_ACEOF
20289 /* end confdefs.h. */
20292 typedef wchar_t ac__type_sizeof_;
20293 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20294 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20296 #include <stdlib.h>
20301 FILE *f = fopen ("conftest.val", "w");
20304 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20306 long int i = longval ();
20307 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20309 fprintf (f, "%ld\n", i);
20313 unsigned long int i = ulongval ();
20314 if (i != ((long int) (sizeof (ac__type_sizeof_))))
20316 fprintf (f, "%lu\n", i);
20318 return ferror (f) || fclose (f) != 0;
20324 rm -f conftest$ac_exeext
20325 if { (ac_try="$ac_link"
20326 case "(($ac_try" in
20327 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20328 *) ac_try_echo
=$ac_try;;
20330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20331 (eval "$ac_link") 2>&5
20333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20334 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20335 { (case "(($ac_try" in
20336 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20337 *) ac_try_echo=$ac_try;;
20339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20340 (eval "$ac_try") 2>&5
20342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343 (exit $ac_status); }; }; then
20344 ac_cv_sizeof_wchar_t=`cat conftest.val
`
20346 echo "$as_me: program exited with status $ac_status" >&5
20347 echo "$as_me: failed program was:" >&5
20348 sed 's/^/| /' conftest.$ac_ext >&5
20350 ( exit $ac_status )
20351 if test "$ac_cv_type_wchar_t" = yes; then
20352 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
20353 See \`config.log
' for more details." >&5
20354 echo "$as_me: error: cannot compute sizeof (wchar_t)
20355 See \`config.log' for more details.
" >&2;}
20356 { (exit 77); exit 77; }; }
20358 ac_cv_sizeof_wchar_t=0
20361 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20365 { echo "$as_me:$LINENO: result
: $ac_cv_sizeof_wchar_t" >&5
20366 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
20370 cat >>confdefs.h <<_ACEOF
20371 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
20377 { echo "$as_me:$LINENO: checking
for UCS-4 tcl
" >&5
20378 echo $ECHO_N "checking
for UCS-4 tcl...
$ECHO_C" >&6; }
20380 cat >conftest.$ac_ext <<_ACEOF
20383 cat confdefs.h >>conftest.$ac_ext
20384 cat >>conftest.$ac_ext <<_ACEOF
20385 /* end confdefs.h. */
20388 #if TCL_UTF_MAX != 6
20389 # error "NOT UCS4_TCL
"
20399 rm -f conftest.$ac_objext
20400 if { (ac_try="$ac_compile"
20401 case "(($ac_try" in
20402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20403 *) ac_try_echo=$ac_try;;
20405 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20406 (eval "$ac_compile") 2>conftest.er1
20408 grep -v '^ *+' conftest.er1 >conftest.err
20410 cat conftest.err >&5
20411 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20412 (exit $ac_status); } && {
20413 test -z "$ac_c_werror_flag" ||
20414 test ! -s conftest.err
20415 } && test -s conftest.$ac_objext; then
20418 cat >>confdefs.h <<\_ACEOF
20419 #define HAVE_UCS4_TCL 1
20425 echo "$as_me: failed program was
:" >&5
20426 sed 's/^/| /' conftest.$ac_ext >&5
20431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20432 { echo "$as_me:$LINENO: result
: $have_ucs4_tcl" >&5
20433 echo "${ECHO_T}$have_ucs4_tcl" >&6; }
20435 # check whether wchar_t is signed or not
20436 if test "$wchar_h" = yes
20438 # check whether wchar_t is signed or not
20439 { echo "$as_me:$LINENO: checking whether wchar_t is signed
" >&5
20440 echo $ECHO_N "checking whether wchar_t is signed...
$ECHO_C" >&6; }
20441 if test "${ac_cv_wchar_t_signed+set}" = set; then
20442 echo $ECHO_N "(cached
) $ECHO_C" >&6
20445 if test "$cross_compiling" = yes; then
20446 ac_cv_wchar_t_signed=yes
20448 cat >conftest.$ac_ext <<_ACEOF
20451 cat confdefs.h >>conftest.$ac_ext
20452 cat >>conftest.$ac_ext <<_ACEOF
20453 /* end confdefs.h. */
20458 /* Success: exit code 0 */
20459 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
20463 rm -f conftest$ac_exeext
20464 if { (ac_try="$ac_link"
20465 case "(($ac_try" in
20466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20467 *) ac_try_echo=$ac_try;;
20469 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20470 (eval "$ac_link") 2>&5
20472 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20473 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20474 { (case "(($ac_try" in
20475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20476 *) ac_try_echo=$ac_try;;
20478 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20479 (eval "$ac_try") 2>&5
20481 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20482 (exit $ac_status); }; }; then
20483 ac_cv_wchar_t_signed=yes
20485 echo "$as_me: program exited with status
$ac_status" >&5
20486 echo "$as_me: failed program was
:" >&5
20487 sed 's/^/| /' conftest.$ac_ext >&5
20489 ( exit $ac_status )
20490 ac_cv_wchar_t_signed=no
20492 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20498 { echo "$as_me:$LINENO: result
: $ac_cv_wchar_t_signed" >&5
20499 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
20502 { echo "$as_me:$LINENO: checking what
type to use
for unicode
" >&5
20503 echo $ECHO_N "checking what
type to use
for unicode...
$ECHO_C" >&6; }
20504 # Check whether --enable-unicode was given.
20505 if test "${enable_unicode+set}" = set; then
20506 enableval=$enable_unicode;
20512 if test $enable_unicode = yes
20514 # Without any arguments, Py_UNICODE defaults to two-byte mode
20515 case "$have_ucs4_tcl" in
20516 yes) enable_unicode="ucs4
"
20518 *) enable_unicode="ucs2
"
20525 case "$enable_unicode" in
20526 ucs2) unicode_size="2"
20527 cat >>confdefs.h <<\_ACEOF
20528 #define Py_UNICODE_SIZE 2
20532 ucs4) unicode_size="4"
20533 cat >>confdefs.h <<\_ACEOF
20534 #define Py_UNICODE_SIZE 4
20544 if test "$enable_unicode" = "no
"
20547 { echo "$as_me:$LINENO: result
: not used
" >&5
20548 echo "${ECHO_T}not used
" >&6; }
20550 UNICODE_OBJS="Objects
/unicodeobject.o Objects
/unicodectype.o
"
20552 cat >>confdefs.h <<\_ACEOF
20553 #define Py_USING_UNICODE 1
20557 # wchar_t is only usable if it maps to an unsigned type
20558 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
20559 -a "$ac_cv_wchar_t_signed" = "no
"
20561 PY_UNICODE_TYPE="wchar_t
"
20563 cat >>confdefs.h <<\_ACEOF
20564 #define HAVE_USABLE_WCHAR_T 1
20567 cat >>confdefs.h <<\_ACEOF
20568 #define PY_UNICODE_TYPE wchar_t
20571 elif test "$ac_cv_sizeof_short" = "$unicode_size"
20573 PY_UNICODE_TYPE="unsigned short
"
20574 cat >>confdefs.h <<\_ACEOF
20575 #define PY_UNICODE_TYPE unsigned short
20578 elif test "$ac_cv_sizeof_long" = "$unicode_size"
20580 PY_UNICODE_TYPE="unsigned long
"
20581 cat >>confdefs.h <<\_ACEOF
20582 #define PY_UNICODE_TYPE unsigned long
20586 PY_UNICODE_TYPE="no
type found
"
20588 { echo "$as_me:$LINENO: result
: $PY_UNICODE_TYPE" >&5
20589 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
20592 # check for endianness
20593 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian
" >&5
20594 echo $ECHO_N "checking whether byte ordering is bigendian...
$ECHO_C" >&6; }
20595 if test "${ac_cv_c_bigendian+set}" = set; then
20596 echo $ECHO_N "(cached
) $ECHO_C" >&6
20598 # See if sys/param.h defines the BYTE_ORDER macro.
20599 cat >conftest.$ac_ext <<_ACEOF
20602 cat confdefs.h >>conftest.$ac_ext
20603 cat >>conftest.$ac_ext <<_ACEOF
20604 /* end confdefs.h. */
20605 #include <sys/types.h>
20606 #include <sys/param.h>
20611 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
20612 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
20613 bogus endian macros
20620 rm -f conftest.$ac_objext
20621 if { (ac_try="$ac_compile"
20622 case "(($ac_try" in
20623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20624 *) ac_try_echo=$ac_try;;
20626 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20627 (eval "$ac_compile") 2>conftest.er1
20629 grep -v '^ *+' conftest.er1 >conftest.err
20631 cat conftest.err >&5
20632 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20633 (exit $ac_status); } && {
20634 test -z "$ac_c_werror_flag" ||
20635 test ! -s conftest.err
20636 } && test -s conftest.$ac_objext; then
20637 # It does; now see whether it defined to BIG_ENDIAN or not.
20638 cat >conftest.$ac_ext <<_ACEOF
20641 cat confdefs.h >>conftest.$ac_ext
20642 cat >>conftest.$ac_ext <<_ACEOF
20643 /* end confdefs.h. */
20644 #include <sys/types.h>
20645 #include <sys/param.h>
20650 #if BYTE_ORDER != BIG_ENDIAN
20658 rm -f conftest.$ac_objext
20659 if { (ac_try="$ac_compile"
20660 case "(($ac_try" in
20661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20662 *) ac_try_echo=$ac_try;;
20664 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20665 (eval "$ac_compile") 2>conftest.er1
20667 grep -v '^ *+' conftest.er1 >conftest.err
20669 cat conftest.err >&5
20670 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20671 (exit $ac_status); } && {
20672 test -z "$ac_c_werror_flag" ||
20673 test ! -s conftest.err
20674 } && test -s conftest.$ac_objext; then
20675 ac_cv_c_bigendian=yes
20677 echo "$as_me: failed program was
:" >&5
20678 sed 's/^/| /' conftest.$ac_ext >&5
20680 ac_cv_c_bigendian=no
20683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20685 echo "$as_me: failed program was
:" >&5
20686 sed 's/^/| /' conftest.$ac_ext >&5
20688 # It does not; compile a test program.
20689 if test "$cross_compiling" = yes; then
20690 # try to guess the endianness by grepping values into an object file
20691 ac_cv_c_bigendian=unknown
20692 cat >conftest.$ac_ext <<_ACEOF
20695 cat confdefs.h >>conftest.$ac_ext
20696 cat >>conftest.$ac_ext <<_ACEOF
20697 /* end confdefs.h. */
20698 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20699 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20700 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20701 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20702 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20703 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20707 _ascii (); _ebcdic ();
20712 rm -f conftest.$ac_objext
20713 if { (ac_try="$ac_compile"
20714 case "(($ac_try" in
20715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20716 *) ac_try_echo=$ac_try;;
20718 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20719 (eval "$ac_compile") 2>conftest.er1
20721 grep -v '^ *+' conftest.er1 >conftest.err
20723 cat conftest.err >&5
20724 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20725 (exit $ac_status); } && {
20726 test -z "$ac_c_werror_flag" ||
20727 test ! -s conftest.err
20728 } && test -s conftest.$ac_objext; then
20729 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20730 ac_cv_c_bigendian=yes
20732 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20733 if test "$ac_cv_c_bigendian" = unknown; then
20734 ac_cv_c_bigendian=no
20736 # finding both strings is unlikely to happen, but who knows?
20737 ac_cv_c_bigendian=unknown
20741 echo "$as_me: failed program was
:" >&5
20742 sed 's/^/| /' conftest.$ac_ext >&5
20747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20749 cat >conftest.$ac_ext <<_ACEOF
20752 cat confdefs.h >>conftest.$ac_ext
20753 cat >>conftest.$ac_ext <<_ACEOF
20754 /* end confdefs.h. */
20755 $ac_includes_default
20760 /* Are we little or big endian? From Harbison&Steele. */
20764 char c[sizeof (long int)];
20767 return u.c[sizeof (long int) - 1] == 1;
20773 rm -f conftest$ac_exeext
20774 if { (ac_try="$ac_link"
20775 case "(($ac_try" in
20776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20777 *) ac_try_echo=$ac_try;;
20779 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20780 (eval "$ac_link") 2>&5
20782 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20783 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20784 { (case "(($ac_try" in
20785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20786 *) ac_try_echo=$ac_try;;
20788 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20789 (eval "$ac_try") 2>&5
20791 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20792 (exit $ac_status); }; }; then
20793 ac_cv_c_bigendian=no
20795 echo "$as_me: program exited with status
$ac_status" >&5
20796 echo "$as_me: failed program was
:" >&5
20797 sed 's/^/| /' conftest.$ac_ext >&5
20799 ( exit $ac_status )
20800 ac_cv_c_bigendian=yes
20802 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20810 { echo "$as_me:$LINENO: result
: $ac_cv_c_bigendian" >&5
20811 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
20812 case $ac_cv_c_bigendian in
20815 cat >>confdefs.h <<\_ACEOF
20816 #define WORDS_BIGENDIAN 1
20822 { { echo "$as_me:$LINENO: error
: unknown endianness
20823 presetting ac_cv_c_bigendian
=no
(or
yes) will
help" >&5
20824 echo "$as_me: error
: unknown endianness
20825 presetting ac_cv_c_bigendian
=no
(or
yes) will
help" >&2;}
20826 { (exit 1); exit 1; }; } ;;
20832 # Check whether right shifting a negative integer extends the sign bit
20833 # or fills with zeros (like the Cray J90, according to Tim Peters).
20834 { echo "$as_me:$LINENO: checking whether right
shift extends the sign bit
" >&5
20835 echo $ECHO_N "checking whether right
shift extends the sign bit...
$ECHO_C" >&6; }
20836 if test "${ac_cv_rshift_extends_sign+set}" = set; then
20837 echo $ECHO_N "(cached
) $ECHO_C" >&6
20840 if test "$cross_compiling" = yes; then
20841 ac_cv_rshift_extends_sign=yes
20843 cat >conftest.$ac_ext <<_ACEOF
20846 cat confdefs.h >>conftest.$ac_ext
20847 cat >>conftest.$ac_ext <<_ACEOF
20848 /* end confdefs.h. */
20852 exit(((-1)>>3 == -1) ? 0 : 1);
20856 rm -f conftest$ac_exeext
20857 if { (ac_try="$ac_link"
20858 case "(($ac_try" in
20859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20860 *) ac_try_echo=$ac_try;;
20862 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20863 (eval "$ac_link") 2>&5
20865 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20866 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20867 { (case "(($ac_try" in
20868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20869 *) ac_try_echo=$ac_try;;
20871 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20872 (eval "$ac_try") 2>&5
20874 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20875 (exit $ac_status); }; }; then
20876 ac_cv_rshift_extends_sign=yes
20878 echo "$as_me: program exited with status
$ac_status" >&5
20879 echo "$as_me: failed program was
:" >&5
20880 sed 's/^/| /' conftest.$ac_ext >&5
20882 ( exit $ac_status )
20883 ac_cv_rshift_extends_sign=no
20885 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20891 { echo "$as_me:$LINENO: result
: $ac_cv_rshift_extends_sign" >&5
20892 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
20893 if test "$ac_cv_rshift_extends_sign" = no
20896 cat >>confdefs.h <<\_ACEOF
20897 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
20902 # check for getc_unlocked and related locking functions
20903 { echo "$as_me:$LINENO: checking
for getc_unlocked
() and friends
" >&5
20904 echo $ECHO_N "checking
for getc_unlocked
() and friends...
$ECHO_C" >&6; }
20905 if test "${ac_cv_have_getc_unlocked+set}" = set; then
20906 echo $ECHO_N "(cached
) $ECHO_C" >&6
20909 cat >conftest.$ac_ext <<_ACEOF
20912 cat confdefs.h >>conftest.$ac_ext
20913 cat >>conftest.$ac_ext <<_ACEOF
20914 /* end confdefs.h. */
20920 FILE *f = fopen("/dev
/null
", "r
");
20929 rm -f conftest.$ac_objext conftest$ac_exeext
20930 if { (ac_try="$ac_link"
20931 case "(($ac_try" in
20932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20933 *) ac_try_echo=$ac_try;;
20935 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20936 (eval "$ac_link") 2>conftest.er1
20938 grep -v '^ *+' conftest.er1 >conftest.err
20940 cat conftest.err >&5
20941 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20942 (exit $ac_status); } && {
20943 test -z "$ac_c_werror_flag" ||
20944 test ! -s conftest.err
20945 } && test -s conftest$ac_exeext &&
20946 $as_test_x conftest$ac_exeext; then
20947 ac_cv_have_getc_unlocked=yes
20949 echo "$as_me: failed program was
:" >&5
20950 sed 's/^/| /' conftest.$ac_ext >&5
20952 ac_cv_have_getc_unlocked=no
20955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20956 conftest$ac_exeext conftest.$ac_ext
20959 { echo "$as_me:$LINENO: result
: $ac_cv_have_getc_unlocked" >&5
20960 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
20961 if test "$ac_cv_have_getc_unlocked" = yes
20964 cat >>confdefs.h <<\_ACEOF
20965 #define HAVE_GETC_UNLOCKED 1
20970 # check where readline lives
20971 # save the value of LIBS so we don't actually link Python with readline
20972 LIBS_no_readline=$LIBS
20974 { echo "$as_me:$LINENO: checking
for readline
in -lreadline" >&5
20975 echo $ECHO_N "checking
for readline
in -lreadline...
$ECHO_C" >&6; }
20976 if test "${ac_cv_lib_readline_readline+set}" = set; then
20977 echo $ECHO_N "(cached
) $ECHO_C" >&6
20979 ac_check_lib_save_LIBS=$LIBS
20980 LIBS="-lreadline $LIBS"
20981 cat >conftest.$ac_ext <<_ACEOF
20984 cat confdefs.h >>conftest.$ac_ext
20985 cat >>conftest.$ac_ext <<_ACEOF
20986 /* end confdefs.h. */
20988 /* Override any GCC internal prototype to avoid an error.
20989 Use char because int might match the return type of a GCC
20990 builtin and then its argument prototype would still apply. */
20998 return readline ();
21003 rm -f conftest.$ac_objext conftest$ac_exeext
21004 if { (ac_try="$ac_link"
21005 case "(($ac_try" in
21006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21007 *) ac_try_echo=$ac_try;;
21009 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21010 (eval "$ac_link") 2>conftest.er1
21012 grep -v '^ *+' conftest.er1 >conftest.err
21014 cat conftest.err >&5
21015 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21016 (exit $ac_status); } && {
21017 test -z "$ac_c_werror_flag" ||
21018 test ! -s conftest.err
21019 } && test -s conftest$ac_exeext &&
21020 $as_test_x conftest$ac_exeext; then
21021 ac_cv_lib_readline_readline=yes
21023 echo "$as_me: failed program was
:" >&5
21024 sed 's/^/| /' conftest.$ac_ext >&5
21026 ac_cv_lib_readline_readline=no
21029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21030 conftest$ac_exeext conftest.$ac_ext
21031 LIBS=$ac_check_lib_save_LIBS
21033 { echo "$as_me:$LINENO: result
: $ac_cv_lib_readline_readline" >&5
21034 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; }
21035 if test $ac_cv_lib_readline_readline = yes; then
21036 cat >>confdefs.h <<_ACEOF
21037 #define HAVE_LIBREADLINE 1
21040 LIBS="-lreadline $LIBS"
21044 if test "$ac_cv_have_readline_readline" = no
21047 { echo "$as_me:$LINENO: checking
for readline
in -ltermcap" >&5
21048 echo $ECHO_N "checking
for readline
in -ltermcap...
$ECHO_C" >&6; }
21049 if test "${ac_cv_lib_termcap_readline+set}" = set; then
21050 echo $ECHO_N "(cached
) $ECHO_C" >&6
21052 ac_check_lib_save_LIBS=$LIBS
21053 LIBS="-ltermcap $LIBS"
21054 cat >conftest.$ac_ext <<_ACEOF
21057 cat confdefs.h >>conftest.$ac_ext
21058 cat >>conftest.$ac_ext <<_ACEOF
21059 /* end confdefs.h. */
21061 /* Override any GCC internal prototype to avoid an error.
21062 Use char because int might match the return type of a GCC
21063 builtin and then its argument prototype would still apply. */
21071 return readline ();
21076 rm -f conftest.$ac_objext conftest$ac_exeext
21077 if { (ac_try="$ac_link"
21078 case "(($ac_try" in
21079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21080 *) ac_try_echo=$ac_try;;
21082 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21083 (eval "$ac_link") 2>conftest.er1
21085 grep -v '^ *+' conftest.er1 >conftest.err
21087 cat conftest.err >&5
21088 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21089 (exit $ac_status); } && {
21090 test -z "$ac_c_werror_flag" ||
21091 test ! -s conftest.err
21092 } && test -s conftest$ac_exeext &&
21093 $as_test_x conftest$ac_exeext; then
21094 ac_cv_lib_termcap_readline=yes
21096 echo "$as_me: failed program was
:" >&5
21097 sed 's/^/| /' conftest.$ac_ext >&5
21099 ac_cv_lib_termcap_readline=no
21102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21103 conftest$ac_exeext conftest.$ac_ext
21104 LIBS=$ac_check_lib_save_LIBS
21106 { echo "$as_me:$LINENO: result
: $ac_cv_lib_termcap_readline" >&5
21107 echo "${ECHO_T}$ac_cv_lib_termcap_readline" >&6; }
21108 if test $ac_cv_lib_termcap_readline = yes; then
21109 cat >>confdefs.h <<_ACEOF
21110 #define HAVE_LIBTERMCAP 1
21113 LIBS="-ltermcap $LIBS"
21119 # check for readline 2.1
21120 { echo "$as_me:$LINENO: checking
for rl_callback_handler_install
in -lreadline" >&5
21121 echo $ECHO_N "checking
for rl_callback_handler_install
in -lreadline...
$ECHO_C" >&6; }
21122 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
21123 echo $ECHO_N "(cached
) $ECHO_C" >&6
21125 ac_check_lib_save_LIBS=$LIBS
21126 LIBS="-lreadline $LIBS"
21127 cat >conftest.$ac_ext <<_ACEOF
21130 cat confdefs.h >>conftest.$ac_ext
21131 cat >>conftest.$ac_ext <<_ACEOF
21132 /* end confdefs.h. */
21134 /* Override any GCC internal prototype to avoid an error.
21135 Use char because int might match the return type of a GCC
21136 builtin and then its argument prototype would still apply. */
21140 char rl_callback_handler_install ();
21144 return rl_callback_handler_install ();
21149 rm -f conftest.$ac_objext conftest$ac_exeext
21150 if { (ac_try="$ac_link"
21151 case "(($ac_try" in
21152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21153 *) ac_try_echo=$ac_try;;
21155 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21156 (eval "$ac_link") 2>conftest.er1
21158 grep -v '^ *+' conftest.er1 >conftest.err
21160 cat conftest.err >&5
21161 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21162 (exit $ac_status); } && {
21163 test -z "$ac_c_werror_flag" ||
21164 test ! -s conftest.err
21165 } && test -s conftest$ac_exeext &&
21166 $as_test_x conftest$ac_exeext; then
21167 ac_cv_lib_readline_rl_callback_handler_install=yes
21169 echo "$as_me: failed program was
:" >&5
21170 sed 's/^/| /' conftest.$ac_ext >&5
21172 ac_cv_lib_readline_rl_callback_handler_install=no
21175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21176 conftest$ac_exeext conftest.$ac_ext
21177 LIBS=$ac_check_lib_save_LIBS
21179 { echo "$as_me:$LINENO: result
: $ac_cv_lib_readline_rl_callback_handler_install" >&5
21180 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
21181 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
21183 cat >>confdefs.h <<\_ACEOF
21184 #define HAVE_RL_CALLBACK 1
21190 # check for readline 2.2
21191 cat >conftest.$ac_ext <<_ACEOF
21194 cat confdefs.h >>conftest.$ac_ext
21195 cat >>conftest.$ac_ext <<_ACEOF
21196 /* end confdefs.h. */
21197 #include <readline/readline.h>
21199 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21200 case "(($ac_try" in
21201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21202 *) ac_try_echo=$ac_try;;
21204 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21205 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21207 grep -v '^ *+' conftest.er1 >conftest.err
21209 cat conftest.err >&5
21210 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21211 (exit $ac_status); } >/dev/null && {
21212 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21213 test ! -s conftest.err
21217 echo "$as_me: failed program was
:" >&5
21218 sed 's/^/| /' conftest.$ac_ext >&5
21223 rm -f conftest.err conftest.$ac_ext
21224 if test $have_readline = yes
21226 cat >conftest.$ac_ext <<_ACEOF
21229 cat confdefs.h >>conftest.$ac_ext
21230 cat >>conftest.$ac_ext <<_ACEOF
21231 /* end confdefs.h. */
21232 #include <readline/readline.h>
21235 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
21236 $EGREP "extern int rl_completion_append_character
;" >/dev/null 2>&1; then
21238 cat >>confdefs.h <<\_ACEOF
21239 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
21247 # check for readline 4.0
21248 { echo "$as_me:$LINENO: checking
for rl_pre_input_hook
in -lreadline" >&5
21249 echo $ECHO_N "checking
for rl_pre_input_hook
in -lreadline...
$ECHO_C" >&6; }
21250 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
21251 echo $ECHO_N "(cached
) $ECHO_C" >&6
21253 ac_check_lib_save_LIBS=$LIBS
21254 LIBS="-lreadline $LIBS"
21255 cat >conftest.$ac_ext <<_ACEOF
21258 cat confdefs.h >>conftest.$ac_ext
21259 cat >>conftest.$ac_ext <<_ACEOF
21260 /* end confdefs.h. */
21262 /* Override any GCC internal prototype to avoid an error.
21263 Use char because int might match the return type of a GCC
21264 builtin and then its argument prototype would still apply. */
21268 char rl_pre_input_hook ();
21272 return rl_pre_input_hook ();
21277 rm -f conftest.$ac_objext conftest$ac_exeext
21278 if { (ac_try="$ac_link"
21279 case "(($ac_try" in
21280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21281 *) ac_try_echo=$ac_try;;
21283 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21284 (eval "$ac_link") 2>conftest.er1
21286 grep -v '^ *+' conftest.er1 >conftest.err
21288 cat conftest.err >&5
21289 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21290 (exit $ac_status); } && {
21291 test -z "$ac_c_werror_flag" ||
21292 test ! -s conftest.err
21293 } && test -s conftest$ac_exeext &&
21294 $as_test_x conftest$ac_exeext; then
21295 ac_cv_lib_readline_rl_pre_input_hook=yes
21297 echo "$as_me: failed program was
:" >&5
21298 sed 's/^/| /' conftest.$ac_ext >&5
21300 ac_cv_lib_readline_rl_pre_input_hook=no
21303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21304 conftest$ac_exeext conftest.$ac_ext
21305 LIBS=$ac_check_lib_save_LIBS
21307 { echo "$as_me:$LINENO: result
: $ac_cv_lib_readline_rl_pre_input_hook" >&5
21308 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
21309 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
21311 cat >>confdefs.h <<\_ACEOF
21312 #define HAVE_RL_PRE_INPUT_HOOK 1
21318 # check for readline 4.2
21319 { echo "$as_me:$LINENO: checking
for rl_completion_matches
in -lreadline" >&5
21320 echo $ECHO_N "checking
for rl_completion_matches
in -lreadline...
$ECHO_C" >&6; }
21321 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
21322 echo $ECHO_N "(cached
) $ECHO_C" >&6
21324 ac_check_lib_save_LIBS=$LIBS
21325 LIBS="-lreadline $LIBS"
21326 cat >conftest.$ac_ext <<_ACEOF
21329 cat confdefs.h >>conftest.$ac_ext
21330 cat >>conftest.$ac_ext <<_ACEOF
21331 /* end confdefs.h. */
21333 /* Override any GCC internal prototype to avoid an error.
21334 Use char because int might match the return type of a GCC
21335 builtin and then its argument prototype would still apply. */
21339 char rl_completion_matches ();
21343 return rl_completion_matches ();
21348 rm -f conftest.$ac_objext conftest$ac_exeext
21349 if { (ac_try="$ac_link"
21350 case "(($ac_try" in
21351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21352 *) ac_try_echo=$ac_try;;
21354 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21355 (eval "$ac_link") 2>conftest.er1
21357 grep -v '^ *+' conftest.er1 >conftest.err
21359 cat conftest.err >&5
21360 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21361 (exit $ac_status); } && {
21362 test -z "$ac_c_werror_flag" ||
21363 test ! -s conftest.err
21364 } && test -s conftest$ac_exeext &&
21365 $as_test_x conftest$ac_exeext; then
21366 ac_cv_lib_readline_rl_completion_matches=yes
21368 echo "$as_me: failed program was
:" >&5
21369 sed 's/^/| /' conftest.$ac_ext >&5
21371 ac_cv_lib_readline_rl_completion_matches=no
21374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21375 conftest$ac_exeext conftest.$ac_ext
21376 LIBS=$ac_check_lib_save_LIBS
21378 { echo "$as_me:$LINENO: result
: $ac_cv_lib_readline_rl_completion_matches" >&5
21379 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
21380 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
21382 cat >>confdefs.h <<\_ACEOF
21383 #define HAVE_RL_COMPLETION_MATCHES 1
21389 # also in readline 4.2
21390 cat >conftest.$ac_ext <<_ACEOF
21393 cat confdefs.h >>conftest.$ac_ext
21394 cat >>conftest.$ac_ext <<_ACEOF
21395 /* end confdefs.h. */
21396 #include <readline/readline.h>
21398 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21399 case "(($ac_try" in
21400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21401 *) ac_try_echo=$ac_try;;
21403 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21404 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21406 grep -v '^ *+' conftest.er1 >conftest.err
21408 cat conftest.err >&5
21409 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21410 (exit $ac_status); } >/dev/null && {
21411 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21412 test ! -s conftest.err
21416 echo "$as_me: failed program was
:" >&5
21417 sed 's/^/| /' conftest.$ac_ext >&5
21422 rm -f conftest.err conftest.$ac_ext
21423 if test $have_readline = yes
21425 cat >conftest.$ac_ext <<_ACEOF
21428 cat confdefs.h >>conftest.$ac_ext
21429 cat >>conftest.$ac_ext <<_ACEOF
21430 /* end confdefs.h. */
21431 #include <readline/readline.h>
21434 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
21435 $EGREP "extern int rl_catch_signals
;" >/dev/null 2>&1; then
21437 cat >>confdefs.h <<\_ACEOF
21438 #define HAVE_RL_CATCH_SIGNAL 1
21446 # End of readline checks: restore LIBS
21447 LIBS=$LIBS_no_readline
21449 { echo "$as_me:$LINENO: checking
for broken nice
()" >&5
21450 echo $ECHO_N "checking
for broken nice
()...
$ECHO_C" >&6; }
21451 if test "${ac_cv_broken_nice+set}" = set; then
21452 echo $ECHO_N "(cached
) $ECHO_C" >&6
21455 if test "$cross_compiling" = yes; then
21456 ac_cv_broken_nice=no
21458 cat >conftest.$ac_ext <<_ACEOF
21461 cat confdefs.h >>conftest.$ac_ext
21462 cat >>conftest.$ac_ext <<_ACEOF
21463 /* end confdefs.h. */
21467 int val1 = nice(1);
21468 if (val1 != -1 && val1 == nice(2))
21474 rm -f conftest$ac_exeext
21475 if { (ac_try="$ac_link"
21476 case "(($ac_try" in
21477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21478 *) ac_try_echo=$ac_try;;
21480 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21481 (eval "$ac_link") 2>&5
21483 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21484 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21485 { (case "(($ac_try" in
21486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21487 *) ac_try_echo=$ac_try;;
21489 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21490 (eval "$ac_try") 2>&5
21492 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21493 (exit $ac_status); }; }; then
21494 ac_cv_broken_nice=yes
21496 echo "$as_me: program exited with status
$ac_status" >&5
21497 echo "$as_me: failed program was
:" >&5
21498 sed 's/^/| /' conftest.$ac_ext >&5
21500 ( exit $ac_status )
21501 ac_cv_broken_nice=no
21503 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21509 { echo "$as_me:$LINENO: result
: $ac_cv_broken_nice" >&5
21510 echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
21511 if test "$ac_cv_broken_nice" = yes
21514 cat >>confdefs.h <<\_ACEOF
21515 #define HAVE_BROKEN_NICE 1
21520 { echo "$as_me:$LINENO: checking
for broken poll
()" >&5
21521 echo $ECHO_N "checking
for broken poll
()...
$ECHO_C" >&6; }
21522 if test "$cross_compiling" = yes; then
21523 ac_cv_broken_poll=no
21525 cat >conftest.$ac_ext <<_ACEOF
21528 cat confdefs.h >>conftest.$ac_ext
21529 cat >>conftest.$ac_ext <<_ACEOF
21530 /* end confdefs.h. */
21536 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
21540 int poll_test = poll (&poll_struct, 1, 0);
21546 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
21557 rm -f conftest$ac_exeext
21558 if { (ac_try="$ac_link"
21559 case "(($ac_try" in
21560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21561 *) ac_try_echo=$ac_try;;
21563 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21564 (eval "$ac_link") 2>&5
21566 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21567 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21568 { (case "(($ac_try" in
21569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21570 *) ac_try_echo=$ac_try;;
21572 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21573 (eval "$ac_try") 2>&5
21575 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21576 (exit $ac_status); }; }; then
21577 ac_cv_broken_poll=yes
21579 echo "$as_me: program exited with status
$ac_status" >&5
21580 echo "$as_me: failed program was
:" >&5
21581 sed 's/^/| /' conftest.$ac_ext >&5
21583 ( exit $ac_status )
21584 ac_cv_broken_poll=no
21586 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21590 { echo "$as_me:$LINENO: result
: $ac_cv_broken_poll" >&5
21591 echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
21592 if test "$ac_cv_broken_poll" = yes
21595 cat >>confdefs.h <<\_ACEOF
21596 #define HAVE_BROKEN_POLL 1
21601 # Before we can test tzset, we need to check if struct tm has a tm_zone
21602 # (which is not required by ISO C or UNIX spec) and/or if we support
21604 { echo "$as_me:$LINENO: checking
for struct tm.tm_zone
" >&5
21605 echo $ECHO_N "checking
for struct tm.tm_zone...
$ECHO_C" >&6; }
21606 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21607 echo $ECHO_N "(cached
) $ECHO_C" >&6
21609 cat >conftest.$ac_ext <<_ACEOF
21612 cat confdefs.h >>conftest.$ac_ext
21613 cat >>conftest.$ac_ext <<_ACEOF
21614 /* end confdefs.h. */
21615 #include <sys/types.h>
21616 #include <$ac_cv_struct_tm>
21622 static struct tm ac_aggr;
21623 if (ac_aggr.tm_zone)
21629 rm -f conftest.$ac_objext
21630 if { (ac_try="$ac_compile"
21631 case "(($ac_try" in
21632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21633 *) ac_try_echo=$ac_try;;
21635 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21636 (eval "$ac_compile") 2>conftest.er1
21638 grep -v '^ *+' conftest.er1 >conftest.err
21640 cat conftest.err >&5
21641 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21642 (exit $ac_status); } && {
21643 test -z "$ac_c_werror_flag" ||
21644 test ! -s conftest.err
21645 } && test -s conftest.$ac_objext; then
21646 ac_cv_member_struct_tm_tm_zone=yes
21648 echo "$as_me: failed program was
:" >&5
21649 sed 's/^/| /' conftest.$ac_ext >&5
21651 cat >conftest.$ac_ext <<_ACEOF
21654 cat confdefs.h >>conftest.$ac_ext
21655 cat >>conftest.$ac_ext <<_ACEOF
21656 /* end confdefs.h. */
21657 #include <sys/types.h>
21658 #include <$ac_cv_struct_tm>
21664 static struct tm ac_aggr;
21665 if (sizeof ac_aggr.tm_zone)
21671 rm -f conftest.$ac_objext
21672 if { (ac_try="$ac_compile"
21673 case "(($ac_try" in
21674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21675 *) ac_try_echo=$ac_try;;
21677 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21678 (eval "$ac_compile") 2>conftest.er1
21680 grep -v '^ *+' conftest.er1 >conftest.err
21682 cat conftest.err >&5
21683 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21684 (exit $ac_status); } && {
21685 test -z "$ac_c_werror_flag" ||
21686 test ! -s conftest.err
21687 } && test -s conftest.$ac_objext; then
21688 ac_cv_member_struct_tm_tm_zone=yes
21690 echo "$as_me: failed program was
:" >&5
21691 sed 's/^/| /' conftest.$ac_ext >&5
21693 ac_cv_member_struct_tm_tm_zone=no
21696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21701 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_tm_tm_zone" >&5
21702 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
21703 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21705 cat >>confdefs.h <<_ACEOF
21706 #define HAVE_STRUCT_TM_TM_ZONE 1
21712 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21714 cat >>confdefs.h <<\_ACEOF
21715 #define HAVE_TM_ZONE 1
21719 { echo "$as_me:$LINENO: checking whether tzname is declared
" >&5
21720 echo $ECHO_N "checking whether tzname is declared...
$ECHO_C" >&6; }
21721 if test "${ac_cv_have_decl_tzname+set}" = set; then
21722 echo $ECHO_N "(cached
) $ECHO_C" >&6
21724 cat >conftest.$ac_ext <<_ACEOF
21727 cat confdefs.h >>conftest.$ac_ext
21728 cat >>conftest.$ac_ext <<_ACEOF
21729 /* end confdefs.h. */
21743 rm -f conftest.$ac_objext
21744 if { (ac_try="$ac_compile"
21745 case "(($ac_try" in
21746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21747 *) ac_try_echo=$ac_try;;
21749 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21750 (eval "$ac_compile") 2>conftest.er1
21752 grep -v '^ *+' conftest.er1 >conftest.err
21754 cat conftest.err >&5
21755 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21756 (exit $ac_status); } && {
21757 test -z "$ac_c_werror_flag" ||
21758 test ! -s conftest.err
21759 } && test -s conftest.$ac_objext; then
21760 ac_cv_have_decl_tzname=yes
21762 echo "$as_me: failed program was
:" >&5
21763 sed 's/^/| /' conftest.$ac_ext >&5
21765 ac_cv_have_decl_tzname=no
21768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21770 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_tzname" >&5
21771 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
21772 if test $ac_cv_have_decl_tzname = yes; then
21774 cat >>confdefs.h <<_ACEOF
21775 #define HAVE_DECL_TZNAME 1
21780 cat >>confdefs.h <<_ACEOF
21781 #define HAVE_DECL_TZNAME 0
21788 { echo "$as_me:$LINENO: checking
for tzname
" >&5
21789 echo $ECHO_N "checking
for tzname...
$ECHO_C" >&6; }
21790 if test "${ac_cv_var_tzname+set}" = set; then
21791 echo $ECHO_N "(cached
) $ECHO_C" >&6
21793 cat >conftest.$ac_ext <<_ACEOF
21796 cat confdefs.h >>conftest.$ac_ext
21797 cat >>conftest.$ac_ext <<_ACEOF
21798 /* end confdefs.h. */
21800 #if !HAVE_DECL_TZNAME
21801 extern char *tzname[];
21807 return tzname[0][0];
21812 rm -f conftest.$ac_objext conftest$ac_exeext
21813 if { (ac_try="$ac_link"
21814 case "(($ac_try" in
21815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21816 *) ac_try_echo=$ac_try;;
21818 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21819 (eval "$ac_link") 2>conftest.er1
21821 grep -v '^ *+' conftest.er1 >conftest.err
21823 cat conftest.err >&5
21824 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21825 (exit $ac_status); } && {
21826 test -z "$ac_c_werror_flag" ||
21827 test ! -s conftest.err
21828 } && test -s conftest$ac_exeext &&
21829 $as_test_x conftest$ac_exeext; then
21830 ac_cv_var_tzname=yes
21832 echo "$as_me: failed program was
:" >&5
21833 sed 's/^/| /' conftest.$ac_ext >&5
21835 ac_cv_var_tzname=no
21838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21839 conftest$ac_exeext conftest.$ac_ext
21841 { echo "$as_me:$LINENO: result
: $ac_cv_var_tzname" >&5
21842 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
21843 if test $ac_cv_var_tzname = yes; then
21845 cat >>confdefs.h <<\_ACEOF
21846 #define HAVE_TZNAME 1
21853 # check tzset(3) exists and works like we expect it to
21854 { echo "$as_me:$LINENO: checking
for working tzset
()" >&5
21855 echo $ECHO_N "checking
for working tzset
()...
$ECHO_C" >&6; }
21856 if test "${ac_cv_working_tzset+set}" = set; then
21857 echo $ECHO_N "(cached
) $ECHO_C" >&6
21860 if test "$cross_compiling" = yes; then
21861 ac_cv_working_tzset=no
21863 cat >conftest.$ac_ext <<_ACEOF
21866 cat confdefs.h >>conftest.$ac_ext
21867 cat >>conftest.$ac_ext <<_ACEOF
21868 /* end confdefs.h. */
21870 #include <stdlib.h>
21872 #include <string.h>
21875 extern char *tzname[];
21880 /* Note that we need to ensure that not only does tzset(3)
21881 do 'something' with localtime, but it works as documented
21882 in the library reference and as expected by the test suite.
21883 This includes making sure that tzname is set properly if
21884 tm->tm_zone does not exist since it is the alternative way
21885 of getting timezone info.
21887 Red Hat 6.2 doesn't understand the southern hemisphere
21888 after New Year's Day.
21891 time_t groundhogday = 1044144000; /* GMT-based */
21892 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
21894 putenv("TZ
=UTC
+0");
21896 if (localtime(&groundhogday)->tm_hour != 0)
21899 /* For UTC, tzname[1] is sometimes "", sometimes " " */
21900 if (strcmp(tzname[0], "UTC
") ||
21901 (tzname[1][0] != 0 && tzname[1][0] != ' '))
21905 putenv("TZ
=EST
+5EDT
,M4.1
.0,M10.5
.0");
21907 if (localtime(&groundhogday)->tm_hour != 19)
21910 if (strcmp(tzname[0], "EST
") || strcmp(tzname[1], "EDT
"))
21914 putenv("TZ
=AEST-10AEDT-11
,M10.5
.0,M3.5
.0");
21916 if (localtime(&groundhogday)->tm_hour != 11)
21919 if (strcmp(tzname[0], "AEST
") || strcmp(tzname[1], "AEDT
"))
21923 #if HAVE_STRUCT_TM_TM_ZONE
21924 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT
"))
21926 if (strcmp(localtime(&midyear)->tm_zone, "AEST
"))
21934 rm -f conftest$ac_exeext
21935 if { (ac_try="$ac_link"
21936 case "(($ac_try" in
21937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21938 *) ac_try_echo=$ac_try;;
21940 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21941 (eval "$ac_link") 2>&5
21943 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21944 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21945 { (case "(($ac_try" in
21946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21947 *) ac_try_echo=$ac_try;;
21949 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21950 (eval "$ac_try") 2>&5
21952 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21953 (exit $ac_status); }; }; then
21954 ac_cv_working_tzset=yes
21956 echo "$as_me: program exited with status
$ac_status" >&5
21957 echo "$as_me: failed program was
:" >&5
21958 sed 's/^/| /' conftest.$ac_ext >&5
21960 ( exit $ac_status )
21961 ac_cv_working_tzset=no
21963 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21969 { echo "$as_me:$LINENO: result
: $ac_cv_working_tzset" >&5
21970 echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
21971 if test "$ac_cv_working_tzset" = yes
21974 cat >>confdefs.h <<\_ACEOF
21975 #define HAVE_WORKING_TZSET 1
21980 # Look for subsecond timestamps in struct stat
21981 { echo "$as_me:$LINENO: checking
for tv_nsec
in struct stat
" >&5
21982 echo $ECHO_N "checking
for tv_nsec
in struct stat...
$ECHO_C" >&6; }
21983 if test "${ac_cv_stat_tv_nsec+set}" = set; then
21984 echo $ECHO_N "(cached
) $ECHO_C" >&6
21986 cat >conftest.$ac_ext <<_ACEOF
21989 cat confdefs.h >>conftest.$ac_ext
21990 cat >>conftest.$ac_ext <<_ACEOF
21991 /* end confdefs.h. */
21992 #include <sys/stat.h>
21998 st.st_mtim.tv_nsec = 1;
22004 rm -f conftest.$ac_objext
22005 if { (ac_try="$ac_compile"
22006 case "(($ac_try" in
22007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22008 *) ac_try_echo=$ac_try;;
22010 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22011 (eval "$ac_compile") 2>conftest.er1
22013 grep -v '^ *+' conftest.er1 >conftest.err
22015 cat conftest.err >&5
22016 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22017 (exit $ac_status); } && {
22018 test -z "$ac_c_werror_flag" ||
22019 test ! -s conftest.err
22020 } && test -s conftest.$ac_objext; then
22021 ac_cv_stat_tv_nsec=yes
22023 echo "$as_me: failed program was
:" >&5
22024 sed 's/^/| /' conftest.$ac_ext >&5
22026 ac_cv_stat_tv_nsec=no
22029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22032 { echo "$as_me:$LINENO: result
: $ac_cv_stat_tv_nsec" >&5
22033 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
22034 if test "$ac_cv_stat_tv_nsec" = yes
22037 cat >>confdefs.h <<\_ACEOF
22038 #define HAVE_STAT_TV_NSEC 1
22043 # Look for BSD style subsecond timestamps in struct stat
22044 { echo "$as_me:$LINENO: checking
for tv_nsec2
in struct stat
" >&5
22045 echo $ECHO_N "checking
for tv_nsec2
in struct stat...
$ECHO_C" >&6; }
22046 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
22047 echo $ECHO_N "(cached
) $ECHO_C" >&6
22049 cat >conftest.$ac_ext <<_ACEOF
22052 cat confdefs.h >>conftest.$ac_ext
22053 cat >>conftest.$ac_ext <<_ACEOF
22054 /* end confdefs.h. */
22055 #include <sys/stat.h>
22061 st.st_mtimespec.tv_nsec = 1;
22067 rm -f conftest.$ac_objext
22068 if { (ac_try="$ac_compile"
22069 case "(($ac_try" in
22070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22071 *) ac_try_echo=$ac_try;;
22073 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22074 (eval "$ac_compile") 2>conftest.er1
22076 grep -v '^ *+' conftest.er1 >conftest.err
22078 cat conftest.err >&5
22079 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22080 (exit $ac_status); } && {
22081 test -z "$ac_c_werror_flag" ||
22082 test ! -s conftest.err
22083 } && test -s conftest.$ac_objext; then
22084 ac_cv_stat_tv_nsec2=yes
22086 echo "$as_me: failed program was
:" >&5
22087 sed 's/^/| /' conftest.$ac_ext >&5
22089 ac_cv_stat_tv_nsec2=no
22092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22095 { echo "$as_me:$LINENO: result
: $ac_cv_stat_tv_nsec2" >&5
22096 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
22097 if test "$ac_cv_stat_tv_nsec2" = yes
22100 cat >>confdefs.h <<\_ACEOF
22101 #define HAVE_STAT_TV_NSEC2 1
22106 # On HP/UX 11.0, mvwdelch is a block with a return statement
22107 { echo "$as_me:$LINENO: checking whether mvwdelch is an expression
" >&5
22108 echo $ECHO_N "checking whether mvwdelch is an expression...
$ECHO_C" >&6; }
22109 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
22110 echo $ECHO_N "(cached
) $ECHO_C" >&6
22112 cat >conftest.$ac_ext <<_ACEOF
22115 cat confdefs.h >>conftest.$ac_ext
22116 cat >>conftest.$ac_ext <<_ACEOF
22117 /* end confdefs.h. */
22118 #include <curses.h>
22124 rtn = mvwdelch(0,0,0);
22130 rm -f conftest.$ac_objext
22131 if { (ac_try="$ac_compile"
22132 case "(($ac_try" in
22133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22134 *) ac_try_echo=$ac_try;;
22136 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22137 (eval "$ac_compile") 2>conftest.er1
22139 grep -v '^ *+' conftest.er1 >conftest.err
22141 cat conftest.err >&5
22142 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22143 (exit $ac_status); } && {
22144 test -z "$ac_c_werror_flag" ||
22145 test ! -s conftest.err
22146 } && test -s conftest.$ac_objext; then
22147 ac_cv_mvwdelch_is_expression=yes
22149 echo "$as_me: failed program was
:" >&5
22150 sed 's/^/| /' conftest.$ac_ext >&5
22152 ac_cv_mvwdelch_is_expression=no
22155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22158 { echo "$as_me:$LINENO: result
: $ac_cv_mvwdelch_is_expression" >&5
22159 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
22161 if test "$ac_cv_mvwdelch_is_expression" = yes
22164 cat >>confdefs.h <<\_ACEOF
22165 #define MVWDELCH_IS_EXPRESSION 1
22170 { echo "$as_me:$LINENO: checking whether WINDOW has _flags
" >&5
22171 echo $ECHO_N "checking whether WINDOW has _flags...
$ECHO_C" >&6; }
22172 if test "${ac_cv_window_has_flags+set}" = set; then
22173 echo $ECHO_N "(cached
) $ECHO_C" >&6
22175 cat >conftest.$ac_ext <<_ACEOF
22178 cat confdefs.h >>conftest.$ac_ext
22179 cat >>conftest.$ac_ext <<_ACEOF
22180 /* end confdefs.h. */
22181 #include <curses.h>
22193 rm -f conftest.$ac_objext
22194 if { (ac_try="$ac_compile"
22195 case "(($ac_try" in
22196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22197 *) ac_try_echo=$ac_try;;
22199 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22200 (eval "$ac_compile") 2>conftest.er1
22202 grep -v '^ *+' conftest.er1 >conftest.err
22204 cat conftest.err >&5
22205 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22206 (exit $ac_status); } && {
22207 test -z "$ac_c_werror_flag" ||
22208 test ! -s conftest.err
22209 } && test -s conftest.$ac_objext; then
22210 ac_cv_window_has_flags=yes
22212 echo "$as_me: failed program was
:" >&5
22213 sed 's/^/| /' conftest.$ac_ext >&5
22215 ac_cv_window_has_flags=no
22218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22221 { echo "$as_me:$LINENO: result
: $ac_cv_window_has_flags" >&5
22222 echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
22225 if test "$ac_cv_window_has_flags" = yes
22228 cat >>confdefs.h <<\_ACEOF
22229 #define WINDOW_HAS_FLAGS 1
22234 { echo "$as_me:$LINENO: checking
for is_term_resized
" >&5
22235 echo $ECHO_N "checking
for is_term_resized...
$ECHO_C" >&6; }
22236 cat >conftest.$ac_ext <<_ACEOF
22239 cat confdefs.h >>conftest.$ac_ext
22240 cat >>conftest.$ac_ext <<_ACEOF
22241 /* end confdefs.h. */
22242 #include <curses.h>
22246 void *x=is_term_resized
22251 rm -f conftest.$ac_objext
22252 if { (ac_try="$ac_compile"
22253 case "(($ac_try" in
22254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22255 *) ac_try_echo=$ac_try;;
22257 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22258 (eval "$ac_compile") 2>conftest.er1
22260 grep -v '^ *+' conftest.er1 >conftest.err
22262 cat conftest.err >&5
22263 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22264 (exit $ac_status); } && {
22265 test -z "$ac_c_werror_flag" ||
22266 test ! -s conftest.err
22267 } && test -s conftest.$ac_objext; then
22269 cat >>confdefs.h <<\_ACEOF
22270 #define HAVE_CURSES_IS_TERM_RESIZED 1
22273 { echo "$as_me:$LINENO: result
: yes" >&5
22274 echo "${ECHO_T}yes" >&6; }
22276 echo "$as_me: failed program was
:" >&5
22277 sed 's/^/| /' conftest.$ac_ext >&5
22279 { echo "$as_me:$LINENO: result
: no
" >&5
22280 echo "${ECHO_T}no
" >&6; }
22284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22286 { echo "$as_me:$LINENO: checking
for resize_term
" >&5
22287 echo $ECHO_N "checking
for resize_term...
$ECHO_C" >&6; }
22288 cat >conftest.$ac_ext <<_ACEOF
22291 cat confdefs.h >>conftest.$ac_ext
22292 cat >>conftest.$ac_ext <<_ACEOF
22293 /* end confdefs.h. */
22294 #include <curses.h>
22298 void *x=resize_term
22303 rm -f conftest.$ac_objext
22304 if { (ac_try="$ac_compile"
22305 case "(($ac_try" in
22306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22307 *) ac_try_echo=$ac_try;;
22309 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22310 (eval "$ac_compile") 2>conftest.er1
22312 grep -v '^ *+' conftest.er1 >conftest.err
22314 cat conftest.err >&5
22315 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22316 (exit $ac_status); } && {
22317 test -z "$ac_c_werror_flag" ||
22318 test ! -s conftest.err
22319 } && test -s conftest.$ac_objext; then
22321 cat >>confdefs.h <<\_ACEOF
22322 #define HAVE_CURSES_RESIZE_TERM 1
22325 { echo "$as_me:$LINENO: result
: yes" >&5
22326 echo "${ECHO_T}yes" >&6; }
22328 echo "$as_me: failed program was
:" >&5
22329 sed 's/^/| /' conftest.$ac_ext >&5
22331 { echo "$as_me:$LINENO: result
: no
" >&5
22332 echo "${ECHO_T}no
" >&6; }
22336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22338 { echo "$as_me:$LINENO: checking
for resizeterm
" >&5
22339 echo $ECHO_N "checking
for resizeterm...
$ECHO_C" >&6; }
22340 cat >conftest.$ac_ext <<_ACEOF
22343 cat confdefs.h >>conftest.$ac_ext
22344 cat >>conftest.$ac_ext <<_ACEOF
22345 /* end confdefs.h. */
22346 #include <curses.h>
22355 rm -f conftest.$ac_objext
22356 if { (ac_try="$ac_compile"
22357 case "(($ac_try" in
22358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22359 *) ac_try_echo=$ac_try;;
22361 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22362 (eval "$ac_compile") 2>conftest.er1
22364 grep -v '^ *+' conftest.er1 >conftest.err
22366 cat conftest.err >&5
22367 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22368 (exit $ac_status); } && {
22369 test -z "$ac_c_werror_flag" ||
22370 test ! -s conftest.err
22371 } && test -s conftest.$ac_objext; then
22373 cat >>confdefs.h <<\_ACEOF
22374 #define HAVE_CURSES_RESIZETERM 1
22377 { echo "$as_me:$LINENO: result
: yes" >&5
22378 echo "${ECHO_T}yes" >&6; }
22380 echo "$as_me: failed program was
:" >&5
22381 sed 's/^/| /' conftest.$ac_ext >&5
22383 { echo "$as_me:$LINENO: result
: no
" >&5
22384 echo "${ECHO_T}no
" >&6; }
22388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22390 { echo "$as_me:$LINENO: checking
for /dev
/ptmx
" >&5
22391 echo $ECHO_N "checking
for /dev
/ptmx...
$ECHO_C" >&6; }
22393 if test -r /dev/ptmx
22395 { echo "$as_me:$LINENO: result
: yes" >&5
22396 echo "${ECHO_T}yes" >&6; }
22398 cat >>confdefs.h <<\_ACEOF
22399 #define HAVE_DEV_PTMX 1
22403 { echo "$as_me:$LINENO: result
: no
" >&5
22404 echo "${ECHO_T}no
" >&6; }
22407 { echo "$as_me:$LINENO: checking
for /dev
/ptc
" >&5
22408 echo $ECHO_N "checking
for /dev
/ptc...
$ECHO_C" >&6; }
22410 if test -r /dev/ptc
22412 { echo "$as_me:$LINENO: result
: yes" >&5
22413 echo "${ECHO_T}yes" >&6; }
22415 cat >>confdefs.h <<\_ACEOF
22416 #define HAVE_DEV_PTC 1
22420 { echo "$as_me:$LINENO: result
: no
" >&5
22421 echo "${ECHO_T}no
" >&6; }
22426 { echo "$as_me:$LINENO: checking
for kOSADebuggerCreateSession
" >&5
22427 echo $ECHO_N "checking
for kOSADebuggerCreateSession...
$ECHO_C" >&6; }
22428 OLD_CFLAGS="${CFLAGS}"
22429 CFLAGS="${CFLAGS} -Wall -framework Carbon
"
22430 cat >conftest.$ac_ext <<_ACEOF
22433 cat confdefs.h >>conftest.$ac_ext
22434 cat >>conftest.$ac_ext <<_ACEOF
22435 /* end confdefs.h. */
22436 #include <Carbon/Carbon.h>
22440 kOSADebuggerCreateSession
22445 rm -f conftest.$ac_objext
22446 if { (ac_try="$ac_compile"
22447 case "(($ac_try" in
22448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22449 *) ac_try_echo=$ac_try;;
22451 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22452 (eval "$ac_compile") 2>conftest.er1
22454 grep -v '^ *+' conftest.er1 >conftest.err
22456 cat conftest.err >&5
22457 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22458 (exit $ac_status); } && {
22459 test -z "$ac_c_werror_flag" ||
22460 test ! -s conftest.err
22461 } && test -s conftest.$ac_objext; then
22464 echo "$as_me: failed program was
:" >&5
22465 sed 's/^/| /' conftest.$ac_ext >&5
22470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22471 if test $have_osa_debug = yes
22473 { echo "$as_me:$LINENO: result
: yes" >&5
22474 echo "${ECHO_T}yes" >&6; }
22476 cat >>confdefs.h <<\_ACEOF
22477 #define HAVE_OSA_DEBUG 1
22481 { echo "$as_me:$LINENO: result
: no
" >&5
22482 echo "${ECHO_T}no
" >&6; }
22484 CFLAGS="${OLD_CFLAGS}"
22490 { echo "$as_me:$LINENO: checking
for %zd
printf() format support
" >&5
22491 echo $ECHO_N "checking
for %zd
printf() format support...
$ECHO_C" >&6; }
22492 if test "$cross_compiling" = yes; then
22493 { { echo "$as_me:$LINENO: error
: cannot run
test program
while cross compiling
22494 See \
`config.log' for more details." >&5
22495 echo "$as_me: error: cannot run test program while cross compiling
22496 See \`config.log
' for more details." >&2;}
22497 { (exit 1); exit 1; }; }
22499 cat >conftest.$ac_ext <<_ACEOF
22502 cat confdefs.h >>conftest.$ac_ext
22503 cat >>conftest.$ac_ext <<_ACEOF
22504 /* end confdefs.h. */
22506 #include <stddef.h>
22507 #include <string.h>
22509 #ifdef HAVE_SYS_TYPES_H
22510 #include <sys/types.h>
22513 #ifdef HAVE_SSIZE_T
22514 typedef ssize_t Py_ssize_t;
22515 #elif SIZEOF_VOID_P == SIZEOF_LONG
22516 typedef long Py_ssize_t;
22518 typedef int Py_ssize_t;
22525 if(sprintf(buffer, "%zd", (size_t)123) < 0)
22528 if (strcmp(buffer, "123"))
22531 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
22534 if (strcmp(buffer, "-123"))
22540 rm -f conftest$ac_exeext
22541 if { (ac_try="$ac_link"
22542 case "(($ac_try" in
22543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22544 *) ac_try_echo=$ac_try;;
22546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22547 (eval "$ac_link") 2>&5
22549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22550 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
22551 { (case "(($ac_try" in
22552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22553 *) ac_try_echo=$ac_try;;
22555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22556 (eval "$ac_try") 2>&5
22558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22559 (exit $ac_status); }; }; then
22560 { echo "$as_me:$LINENO: result: yes" >&5
22561 echo "${ECHO_T}yes" >&6; }
22563 cat >>confdefs.h <<\_ACEOF
22564 #define PY_FORMAT_SIZE_T "z"
22568 echo "$as_me: program exited with status $ac_status" >&5
22569 echo "$as_me: failed program was:" >&5
22570 sed 's
/^
/|
/' conftest.$ac_ext >&5
22572 ( exit $ac_status )
22573 { echo "$as_me:$LINENO: result: no" >&5
22574 echo "${ECHO_T}no" >&6; }
22576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22581 { echo "$as_me:$LINENO: checking for socklen_t" >&5
22582 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
22583 if test "${ac_cv_type_socklen_t+set}" = set; then
22584 echo $ECHO_N "(cached) $ECHO_C" >&6
22586 cat >conftest.$ac_ext <<_ACEOF
22589 cat confdefs.h >>conftest.$ac_ext
22590 cat >>conftest.$ac_ext <<_ACEOF
22591 /* end confdefs.h. */
22593 #ifdef HAVE_SYS_TYPES_H
22594 #include <sys/types.h>
22596 #ifdef HAVE_SYS_SOCKET_H
22597 #include <sys/socket.h>
22601 typedef socklen_t ac__type_new_;
22605 if ((ac__type_new_ *) 0)
22607 if (sizeof (ac__type_new_))
22613 rm -f conftest.$ac_objext
22614 if { (ac_try="$ac_compile"
22615 case "(($ac_try" in
22616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22617 *) ac_try_echo=$ac_try;;
22619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22620 (eval "$ac_compile") 2>conftest.er1
22622 grep -v '^
*+' conftest.er1 >conftest.err
22624 cat conftest.err >&5
22625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22626 (exit $ac_status); } && {
22627 test -z "$ac_c_werror_flag" ||
22628 test ! -s conftest.err
22629 } && test -s conftest.$ac_objext; then
22630 ac_cv_type_socklen_t=yes
22632 echo "$as_me: failed program was:" >&5
22633 sed 's
/^
/|
/' conftest.$ac_ext >&5
22635 ac_cv_type_socklen_t=no
22638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22640 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
22641 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
22642 if test $ac_cv_type_socklen_t = yes; then
22646 cat >>confdefs.h <<\_ACEOF
22647 #define socklen_t int
22655 for h in `(cd $srcdir;echo Python/thread_*.h)`
22657 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
22661 SRCDIRS="Parser Grammar Objects Python Modules Mac"
22662 { echo "$as_me:$LINENO: checking for build directories" >&5
22663 echo $ECHO_N "checking for build directories... $ECHO_C" >&6; }
22664 for dir in $SRCDIRS; do
22665 if test ! -d $dir; then
22669 { echo "$as_me:$LINENO: result: done" >&5
22670 echo "${ECHO_T}done" >&6; }
22672 # generate output files
22673 ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config"
22675 cat >confcache <<\_ACEOF
22676 # This file is a shell script that caches the results of configure
22677 # tests run on this system so they can be shared between configure
22678 # scripts and configure runs, see configure's option
--config-cache.
22679 # It is not useful on other systems. If it contains results you don't
22680 # want to keep, you may remove or edit it.
22682 # config.status only pays attention to the cache file if you give it
22683 # the --recheck option to rerun configure.
22685 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22686 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22687 # following values.
22691 # The following way of writing the cache mishandles newlines in values,
22692 # but we know of no workaround that is simple, portable, and efficient.
22693 # So, we kill variables containing newlines.
22694 # Ultrix sh set writes to stderr and can't be redirected directly,
22695 # and sets the high bit in the cache file unless we assign to the vars.
22697 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22698 eval ac_val
=\$
$ac_var
22702 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22703 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22706 _ | IFS | as_nl
) ;; #(
22707 *) $as_unset $ac_var ;;
22713 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22714 *${as_nl}ac_space
=\
*)
22715 # `set' does not quote correctly, so add quotes (double-quote
22716 # substitution turns \\\\ into \\, and sed turns \\ into \).
22719 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22722 # `set' quotes correctly as required by POSIX, so do not add quotes.
22723 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22732 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22734 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22736 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
22737 if test -w "$cache_file"; then
22738 test "x$cache_file" != "x/dev/null" &&
22739 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22740 echo "$as_me: updating cache $cache_file" >&6;}
22741 cat confcache
>$cache_file
22743 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22744 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22749 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
22750 # Let make expand exec_prefix.
22751 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
22753 DEFS
=-DHAVE_CONFIG_H
22757 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
22758 # 1. Remove the extension, and $U if already installed.
22759 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
22760 ac_i
=`echo "$ac_i" | sed "$ac_script"`
22761 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22762 # will be set to the directory where LIBOBJS objects are built.
22763 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22764 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22766 LIBOBJS
=$ac_libobjs
22768 LTLIBOBJS
=$ac_ltlibobjs
22772 : ${CONFIG_STATUS=./config.status}
22773 ac_clean_files_save
=$ac_clean_files
22774 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
22775 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22776 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22777 cat >$CONFIG_STATUS <<_ACEOF
22779 # Generated by $as_me.
22780 # Run this file to recreate the current configuration.
22781 # Compiler output produced by configure, useful for debugging
22782 # configure, is in config.log if it exists.
22785 ac_cs_recheck=false
22787 SHELL=\${CONFIG_SHELL-$SHELL}
22790 cat >>$CONFIG_STATUS <<\_ACEOF
22791 ## --------------------- ##
22792 ## M4sh Initialization. ##
22793 ## --------------------- ##
22795 # Be more Bourne compatible
22796 DUALCASE
=1; export DUALCASE
# for MKS sh
22797 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
22800 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22801 # is contrary to our usage. Disable this feature.
22802 alias -g '${1+"$@"}'='"$@"'
22803 setopt NO_GLOB_SUBST
22805 case `(set -o) 2>/dev/null` in
22806 *posix
*) set -o posix
;;
22815 # Avoid depending upon Character Ranges.
22816 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
22817 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22818 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
22819 as_cr_digits
='0123456789'
22820 as_cr_alnum
=$as_cr_Letters$as_cr_digits
22822 # The user is always right.
22823 if test "${PATH_SEPARATOR+set}" != set; then
22824 echo "#! /bin/sh" >conf$$.sh
22825 echo "exit 0" >>conf$$.sh
22827 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
22835 # Support unset when possible.
22836 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
22844 # We need space, tab and new line, in precisely that order. Quoting is
22845 # there to prevent editors from complaining about space-tab.
22846 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22847 # splitting by setting IFS to empty value.)
22852 # Find who we are. Look in the path if we contain no directory separator.
22854 *[\\/]* ) as_myself
=$0 ;;
22855 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22856 for as_dir
in $PATH
22859 test -z "$as_dir" && as_dir
=.
22860 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
22866 # We did not find ourselves, most probably we were run as `sh COMMAND'
22867 # in which case we are not to be found in the path.
22868 if test "x$as_myself" = x
; then
22871 if test ! -f "$as_myself"; then
22872 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22873 { (exit 1); exit 1; }
22876 # Work around bugs in pre-3.0 UWIN ksh.
22877 for as_var
in ENV MAIL MAILPATH
22878 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
22886 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22887 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22888 LC_TELEPHONE LC_TIME
22890 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22891 eval $as_var=C
; export $as_var
22893 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
22897 # Required to use basename.
22898 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
22899 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
22905 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22906 as_basename
=basename
22912 # Name of the executable.
22913 as_me
=`$as_basename -- "$0" ||
22914 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22915 X"$0" : 'X\(//\)$' \| \
22916 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22918 sed '/^.*\/\([^/][^/]*\)\/*$/{
22937 as_lineno_1
=$LINENO
22938 as_lineno_2
=$LINENO
22939 test "x$as_lineno_1" != "x$as_lineno_2" &&
22940 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
22942 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22943 # uniformly replaced by the line number. The first 'sed' inserts a
22944 # line-number line after each line using $LINENO; the second 'sed'
22945 # does the real work. The second script uses 'N' to pair each
22946 # line-number line with the line containing $LINENO, and appends
22947 # trailing '-' during substitution so that $LINENO is not a special
22948 # case at line end.
22949 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22950 # scripts with optimization help from Paolo Bonzini. Blame Lee
22951 # E. McMahon (1931-1989) for sed's syntax. :-)
22963 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22966 ' >$as_me.lineno
&&
22967 chmod +x
"$as_me.lineno" ||
22968 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22969 { (exit 1); exit 1; }; }
22971 # Don't try to exec as it changes $[0], causing all sort of problems
22972 # (the dirname of $[0] is not the place where we might find the
22973 # original and so on. Autoconf is especially sensitive to this).
22974 .
"./$as_me.lineno"
22975 # Exit status is that of the last command.
22980 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
22986 ECHO_C
= ECHO_N
= ECHO_T
=
22987 case `echo -n x` in
22989 case `echo 'x\c'` in
22990 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
22997 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
22998 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23004 rm -f conf$$ conf$$.exe conf$$.
file
23005 if test -d conf$$.dir
; then
23006 rm -f conf$$.dir
/conf$$.
file
23012 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
23014 # ... but there are two gotchas:
23015 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23016 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23017 # In both cases, we have to default to `cp -p'.
23018 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
23020 elif ln conf$$.
file conf$$
2>/dev
/null
; then
23025 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
23026 rmdir conf$$.dir
2>/dev
/null
23028 if mkdir
-p .
2>/dev
/null
; then
23031 test -d .
/-p && rmdir .
/-p
23035 if test -x / >/dev
/null
2>&1; then
23036 as_test_x
='test -x'
23038 if ls -dL / >/dev
/null
2>&1; then
23045 if test -d "$1"; then
23051 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23052 ???[sx]*):;;*)false;;esac;fi
23056 as_executable_p
=$as_test_x
23058 # Sed expression to map a string onto a valid CPP name.
23059 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23061 # Sed expression to map a string onto a valid variable name.
23062 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23067 # Save the log message, to keep $[0] and so on meaningful, and to
23068 # report actual input values of CONFIG_FILES etc. instead of their
23069 # values after options handling.
23071 This file was extended by python $as_me 2.5, which was
23072 generated by GNU Autoconf 2.61. Invocation command line was
23074 CONFIG_FILES = $CONFIG_FILES
23075 CONFIG_HEADERS = $CONFIG_HEADERS
23076 CONFIG_LINKS = $CONFIG_LINKS
23077 CONFIG_COMMANDS = $CONFIG_COMMANDS
23080 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23085 cat >>$CONFIG_STATUS <<_ACEOF
23086 # Files that config.status was made for.
23087 config_files="$ac_config_files"
23088 config_headers="$ac_config_headers"
23092 cat >>$CONFIG_STATUS <<\_ACEOF
23094 \`$as_me' instantiates files from templates according to the
23095 current configuration.
23097 Usage: $0 [OPTIONS] [FILE]...
23099 -h, --help print this help, then exit
23100 -V, --version print version number and configuration settings, then exit
23101 -q, --quiet do not print progress messages
23102 -d, --debug don't remove temporary files
23103 --recheck update $as_me by reconfiguring in the same conditions
23104 --file=FILE[:TEMPLATE]
23105 instantiate the configuration file FILE
23106 --header=FILE[:TEMPLATE]
23107 instantiate the configuration header FILE
23109 Configuration files:
23112 Configuration headers:
23115 Report bugs to <bug-autoconf@gnu.org>."
23118 cat >>$CONFIG_STATUS <<_ACEOF
23120 python config.status 2.5
23121 configured by $0, generated by GNU Autoconf 2.61,
23122 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23124 Copyright (C) 2006 Free Software Foundation, Inc.
23125 This config.status script is free software; the Free Software Foundation
23126 gives unlimited permission to copy, distribute and modify it."
23133 cat >>$CONFIG_STATUS <<\_ACEOF
23134 # If no file are specified by the user, then we need to provide default
23135 # value. By we need to know if files were specified by the user.
23141 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
23142 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
23153 # Handling of the options.
23154 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
23156 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
23157 echo "$ac_cs_version"; exit ;;
23158 --debug |
--debu |
--deb |
--de |
--d |
-d )
23160 --file |
--fil |
--fi |
--f )
23162 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
23163 ac_need_defaults
=false
;;
23164 --header |
--heade |
--head |
--hea )
23166 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
23167 ac_need_defaults
=false
;;
23169 # Conflict between --help and --header
23170 { echo "$as_me: error: ambiguous option: $1
23171 Try \`$0 --help' for more information." >&2
23172 { (exit 1); exit 1; }; };;
23173 --help |
--hel |
-h )
23174 echo "$ac_cs_usage"; exit ;;
23175 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
23176 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
23179 # This is an error.
23180 -*) { echo "$as_me: error: unrecognized option: $1
23181 Try \`$0 --help' for more information." >&2
23182 { (exit 1); exit 1; }; } ;;
23184 *) ac_config_targets
="$ac_config_targets $1"
23185 ac_need_defaults
=false
;;
23191 ac_configure_extra_args
=
23193 if $ac_cs_silent; then
23195 ac_configure_extra_args
="$ac_configure_extra_args --silent"
23199 cat >>$CONFIG_STATUS <<_ACEOF
23200 if \$ac_cs_recheck; then
23201 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23202 CONFIG_SHELL=$SHELL
23203 export CONFIG_SHELL
23204 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23208 cat >>$CONFIG_STATUS <<\_ACEOF
23212 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23213 ## Running $as_me. ##
23219 cat >>$CONFIG_STATUS <<_ACEOF
23222 cat >>$CONFIG_STATUS <<\_ACEOF
23224 # Handling of arguments.
23225 for ac_config_target
in $ac_config_targets
23227 case $ac_config_target in
23228 "pyconfig.h") CONFIG_HEADERS
="$CONFIG_HEADERS pyconfig.h" ;;
23229 "Mac/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/Makefile" ;;
23230 "Mac/PythonLauncher/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
23231 "Mac/IDLE/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/IDLE/Makefile" ;;
23232 "Makefile.pre") CONFIG_FILES
="$CONFIG_FILES Makefile.pre" ;;
23233 "Modules/Setup.config") CONFIG_FILES
="$CONFIG_FILES Modules/Setup.config" ;;
23235 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23236 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23237 { (exit 1); exit 1; }; };;
23242 # If the user did not use the arguments to specify the items to instantiate,
23243 # then the envvar interface is used. Set only those that are not.
23244 # We use the long form for the default assignment because of an extremely
23245 # bizarre bug on SunOS 4.1.3.
23246 if $ac_need_defaults; then
23247 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
23248 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
23251 # Have a temporary directory for convenience. Make it in the build tree
23252 # simply because there is no reason against having it here, and in addition,
23253 # creating and moving files from /tmp can sometimes cause problems.
23254 # Hook for its removal unless debugging.
23255 # Note that there is a small window in which the directory will not be cleaned:
23256 # after its creation but before its name has been assigned to `$tmp'.
23260 trap 'exit_status=$?
23261 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23263 trap '{ (exit 1); exit 1; }' 1 2 13 15
23265 # Create a (secure) tmp directory for tmp files.
23268 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23269 test -n "$tmp" && test -d "$tmp"
23272 tmp
=.
/conf$$
-$RANDOM
23273 (umask 077 && mkdir
"$tmp")
23276 echo "$me: cannot create a temporary directory in ." >&2
23277 { (exit 1); exit 1; }
23281 # Set up the sed scripts for CONFIG_FILES section.
23284 # No need to generate the scripts if there are no CONFIG_FILES.
23285 # This happens for instance when ./config.status config.h
23286 if test -n "$CONFIG_FILES"; then
23293 for ac_last_try
in false false false false false
:; do
23294 cat >conf$
$subs.
sed <<_ACEOF
23295 SHELL!$SHELL$ac_delim
23296 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23297 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23298 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23299 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23300 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23301 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23302 exec_prefix!$exec_prefix$ac_delim
23303 prefix!$prefix$ac_delim
23304 program_transform_name!$program_transform_name$ac_delim
23305 bindir!$bindir$ac_delim
23306 sbindir!$sbindir$ac_delim
23307 libexecdir!$libexecdir$ac_delim
23308 datarootdir!$datarootdir$ac_delim
23309 datadir!$datadir$ac_delim
23310 sysconfdir!$sysconfdir$ac_delim
23311 sharedstatedir!$sharedstatedir$ac_delim
23312 localstatedir!$localstatedir$ac_delim
23313 includedir!$includedir$ac_delim
23314 oldincludedir!$oldincludedir$ac_delim
23315 docdir!$docdir$ac_delim
23316 infodir!$infodir$ac_delim
23317 htmldir!$htmldir$ac_delim
23318 dvidir!$dvidir$ac_delim
23319 pdfdir!$pdfdir$ac_delim
23320 psdir!$psdir$ac_delim
23321 libdir!$libdir$ac_delim
23322 localedir!$localedir$ac_delim
23323 mandir!$mandir$ac_delim
23324 DEFS!$DEFS$ac_delim
23325 ECHO_C!$ECHO_C$ac_delim
23326 ECHO_N!$ECHO_N$ac_delim
23327 ECHO_T!$ECHO_T$ac_delim
23328 LIBS!$LIBS$ac_delim
23329 build_alias!$build_alias$ac_delim
23330 host_alias!$host_alias$ac_delim
23331 target_alias!$target_alias$ac_delim
23332 VERSION!$VERSION$ac_delim
23333 SOVERSION!$SOVERSION$ac_delim
23334 CONFIG_ARGS!$CONFIG_ARGS$ac_delim
23335 UNIVERSALSDK!$UNIVERSALSDK$ac_delim
23336 PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
23337 PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
23338 PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
23339 PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
23340 FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
23341 FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
23342 FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
23343 FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
23344 FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
23345 MACHDEP!$MACHDEP$ac_delim
23346 SGI_ABI!$SGI_ABI$ac_delim
23347 EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim
23348 EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim
23349 CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
23350 EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
23352 CFLAGS!$CFLAGS$ac_delim
23353 LDFLAGS!$LDFLAGS$ac_delim
23354 CPPFLAGS!$CPPFLAGS$ac_delim
23355 ac_ct_CC!$ac_ct_CC$ac_delim
23356 EXEEXT!$EXEEXT$ac_delim
23357 OBJEXT!$OBJEXT$ac_delim
23359 MAINCC!$MAINCC$ac_delim
23361 GREP!$GREP$ac_delim
23362 EGREP!$EGREP$ac_delim
23363 BUILDEXEEXT!$BUILDEXEEXT$ac_delim
23364 LIBRARY!$LIBRARY$ac_delim
23365 LDLIBRARY!$LDLIBRARY$ac_delim
23366 DLLLIBRARY!$DLLLIBRARY$ac_delim
23367 BLDLIBRARY!$BLDLIBRARY$ac_delim
23368 LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
23369 INSTSONAME!$INSTSONAME$ac_delim
23370 RUNSHARED!$RUNSHARED$ac_delim
23371 LINKCC!$LINKCC$ac_delim
23372 RANLIB!$RANLIB$ac_delim
23374 SVNVERSION!$SVNVERSION$ac_delim
23375 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23376 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23377 INSTALL_DATA!$INSTALL_DATA$ac_delim
23380 BASECFLAGS!$BASECFLAGS$ac_delim
23381 OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
23382 LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
23384 LDSHARED!$LDSHARED$ac_delim
23385 BLDSHARED!$BLDSHARED$ac_delim
23386 CCSHARED!$CCSHARED$ac_delim
23387 LINKFORSHARED!$LINKFORSHARED$ac_delim
23388 CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
23389 SHLIBS!$SHLIBS$ac_delim
23390 USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
23391 SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
23394 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23396 elif $ac_last_try; then
23397 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23398 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23399 { (exit 1); exit 1; }; }
23401 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
23405 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23406 if test -n "$ac_eof"; then
23407 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
23408 ac_eof
=`expr $ac_eof + 1`
23411 cat >>$CONFIG_STATUS <<_ACEOF
23412 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23413 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23416 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23417 s/^/s,@/; s/!/@,|#_!!_#|/
23420 s/'"$ac_delim"'$/,g/; t
23422 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23423 ' >>$CONFIG_STATUS <conf$
$subs.
sed
23424 rm -f conf$
$subs.
sed
23425 cat >>$CONFIG_STATUS <<_ACEOF
23431 for ac_last_try
in false false false false false
:; do
23432 cat >conf$
$subs.
sed <<_ACEOF
23433 USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
23434 LDLAST!$LDLAST$ac_delim
23435 THREADOBJ!$THREADOBJ$ac_delim
23436 DLINCLDIR!$DLINCLDIR$ac_delim
23437 DYNLOADFILE!$DYNLOADFILE$ac_delim
23438 MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
23439 TRUE!$TRUE$ac_delim
23440 LIBOBJS!$LIBOBJS$ac_delim
23441 HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
23442 HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
23443 HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
23444 HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
23445 HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
23446 LIBM!$LIBM$ac_delim
23447 LIBC!$LIBC$ac_delim
23448 UNICODE_OBJS!$UNICODE_OBJS$ac_delim
23449 THREADHEADERS!$THREADHEADERS$ac_delim
23450 SRCDIRS!$SRCDIRS$ac_delim
23451 LTLIBOBJS!$LTLIBOBJS$ac_delim
23454 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 19; then
23456 elif $ac_last_try; then
23457 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23458 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23459 { (exit 1); exit 1; }; }
23461 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
23465 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23466 if test -n "$ac_eof"; then
23467 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
23468 ac_eof
=`expr $ac_eof + 1`
23471 cat >>$CONFIG_STATUS <<_ACEOF
23472 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23473 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23476 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23477 s/^/s,@/; s/!/@,|#_!!_#|/
23480 s/'"$ac_delim"'$/,g/; t
23482 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23483 ' >>$CONFIG_STATUS <conf$
$subs.
sed
23484 rm -f conf$
$subs.
sed
23485 cat >>$CONFIG_STATUS <<_ACEOF
23492 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23493 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23494 # trailing colons and then remove the whole line if VPATH becomes empty
23495 # (actually we leave an empty line to preserve line numbers).
23496 if test "x$srcdir" = x.
; then
23497 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
23498 s/:*\$(srcdir):*/:/
23499 s/:*\${srcdir}:*/:/
23501 s/^\([^=]*=[ ]*\):*/\1/
23507 cat >>$CONFIG_STATUS <<\_ACEOF
23508 fi # test -n "$CONFIG_FILES"
23511 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
23514 :[FHLC
]) ac_mode
=$ac_tag; continue;;
23516 case $ac_mode$ac_tag in
23518 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23519 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23520 { (exit 1); exit 1; }; };;
23521 :[FH
]-) ac_tag
=-:-;;
23522 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
23539 -) ac_f
="$tmp/stdin";;
23540 *) # Look for the file first in the build tree, then in the source tree
23541 # (if the path is not absolute). The absolute path cannot be DOS-style,
23542 # because $ac_f cannot contain `:'.
23546 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
23548 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23549 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23550 { (exit 1); exit 1; }; };;
23552 ac_file_inputs
="$ac_file_inputs $ac_f"
23555 # Let's still pretend it is `configure' which instantiates (i.e., don't
23556 # use $as_me), people would be surprised to read:
23557 # /* config.h. Generated by config.status. */
23558 configure_input
="Generated from "`IFS=:
23559 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23560 if test x
"$ac_file" != x-
; then
23561 configure_input
="$ac_file. $configure_input"
23562 { echo "$as_me:$LINENO: creating $ac_file" >&5
23563 echo "$as_me: creating $ac_file" >&6;}
23567 *:-:* |
*:-) cat >"$tmp/stdin";;
23572 ac_dir
=`$as_dirname -- "$ac_file" ||
23573 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23574 X"$ac_file" : 'X\(//\)[^/]' \| \
23575 X"$ac_file" : 'X\(//\)$' \| \
23576 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23578 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23582 /^X\(\/\/\)[^/].*/{
23597 -*) as_dir
=.
/$as_dir;;
23599 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
23603 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23604 *) as_qdir
=$as_dir;;
23606 as_dirs
="'$as_qdir' $as_dirs"
23607 as_dir
=`$as_dirname -- "$as_dir" ||
23608 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23609 X"$as_dir" : 'X\(//\)[^/]' \| \
23610 X"$as_dir" : 'X\(//\)$' \| \
23611 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23613 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23617 /^X\(\/\/\)[^/].*/{
23630 test -d "$as_dir" && break
23632 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
23633 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23634 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23635 { (exit 1); exit 1; }; }; }
23639 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
23641 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23642 # A ".." for each directory in $ac_dir_suffix.
23643 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23644 case $ac_top_builddir_sub in
23645 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
23646 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
23649 ac_abs_top_builddir
=$ac_pwd
23650 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
23651 # for backward compatibility:
23652 ac_top_builddir
=$ac_top_build_prefix
23655 .
) # We are building in place.
23657 ac_top_srcdir
=$ac_top_builddir_sub
23658 ac_abs_top_srcdir
=$ac_pwd ;;
23659 [\\/]* | ?
:[\\/]* ) # Absolute name.
23660 ac_srcdir
=$srcdir$ac_dir_suffix;
23661 ac_top_srcdir
=$srcdir
23662 ac_abs_top_srcdir
=$srcdir ;;
23663 *) # Relative name.
23664 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
23665 ac_top_srcdir
=$ac_top_build_prefix$srcdir
23666 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
23668 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
23678 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
23679 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
23683 cat >>$CONFIG_STATUS <<\_ACEOF
23684 # If the template does not know about datarootdir, expand it.
23685 # FIXME: This hack should be removed a few years after 2.60.
23686 ac_datarootdir_hack
=; ac_datarootdir_seen
=
23688 case `sed -n '/datarootdir/ {
23697 ' $ac_file_inputs` in
23698 *datarootdir
*) ac_datarootdir_seen
=yes;;
23699 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
23700 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23701 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23703 cat >>$CONFIG_STATUS <<_ACEOF
23704 ac_datarootdir_hack='
23705 s&@datadir@&$datadir&g
23706 s&@docdir@&$docdir&g
23707 s&@infodir@&$infodir&g
23708 s&@localedir@&$localedir&g
23709 s&@mandir@&$mandir&g
23710 s&\\\${datarootdir}&$datarootdir&g' ;;
23714 # Neutralize VPATH when `$srcdir' = `.'.
23715 # Shell code in configure.ac might set extrasub.
23716 # FIXME: do we really want to maintain this feature?
23717 cat >>$CONFIG_STATUS <<_ACEOF
23721 cat >>$CONFIG_STATUS <<\_ACEOF
23723 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
23724 s
&@configure_input@
&$configure_input&;t t
23725 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
23726 s
&@srcdir@
&$ac_srcdir&;t t
23727 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
23728 s
&@top_srcdir@
&$ac_top_srcdir&;t t
23729 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
23730 s
&@builddir@
&$ac_builddir&;t t
23731 s
&@abs_builddir@
&$ac_abs_builddir&;t t
23732 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
23733 s
&@INSTALL@
&$ac_INSTALL&;t t
23734 $ac_datarootdir_hack
23735 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
23737 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23738 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
23739 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
23740 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
23741 which seems to be undefined. Please make sure it is defined." >&5
23742 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
23743 which seems to be undefined. Please make sure it is defined." >&2;}
23747 -) cat "$tmp/out"; rm -f "$tmp/out";;
23748 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23757 # Transform confdefs.h into a sed script `conftest.defines', that
23758 # substitutes the proper values into config.h.in to produce config.h.
23759 rm -f conftest.defines conftest.
tail
23760 # First, append a space to every undef/define line, to ease matching.
23761 echo 's/$/ /' >conftest.defines
23762 # Then, protect against being on the right side of a sed subst, or in
23763 # an unquoted here document, in config.status. If some macros were
23764 # called several times there might be several #defines for the same
23765 # symbol, which is useless. But do not sort them, since the last
23766 # AC_DEFINE must be honored.
23767 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
23768 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23769 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23770 # PARAMS is the parameter list in the macro definition--in most cases, it's
23771 # just an empty string.
23772 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23773 ac_dB
='\\)[ (].*,\\1define\\2'
23781 s/^[ ]*#[ ]*define[ ][ ]*//
23786 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23787 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23788 ' >>conftest.defines
23790 # Remove the space that was appended to ease matching.
23791 # Then replace #undef with comments. This is necessary, for
23792 # example, in the case of _POSIX_SOURCE, which is predefined and required
23793 # on some systems where configure will not decide to define it.
23794 # (The regexp can be short, since the line contains either #define or #undef.)
23796 s,^[ #]*u.*,/* & */,' >>conftest.defines
23798 # Break up conftest.defines:
23799 ac_max_sed_lines
=50
23801 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23802 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23803 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23805 ac_in
='$ac_file_inputs'
23806 ac_out
='"$tmp/out1"'
23807 ac_nxt
='"$tmp/out2"'
23811 # Write a here document:
23812 cat >>$CONFIG_STATUS <<_ACEOF
23813 # First, check the format of the line:
23814 cat >"\$tmp/defines.sed" <<\\CEOF
23815 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23816 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23820 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
23822 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23823 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
23824 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
23825 grep . conftest.
tail >/dev
/null ||
break
23826 rm -f conftest.defines
23827 mv conftest.
tail conftest.defines
23829 rm -f conftest.defines conftest.
tail
23831 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23832 cat >>$CONFIG_STATUS <<\_ACEOF
23833 if test x
"$ac_file" != x-
; then
23834 echo "/* $configure_input */" >"$tmp/config.h"
23835 cat "$ac_result" >>"$tmp/config.h"
23836 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
23837 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23838 echo "$as_me: $ac_file is unchanged" >&6;}
23841 mv "$tmp/config.h" $ac_file
23844 echo "/* $configure_input */"
23856 { (exit 0); exit 0; }
23858 chmod +x
$CONFIG_STATUS
23859 ac_clean_files
=$ac_clean_files_save
23862 # configure is writing to config.log, and then calls config.status.
23863 # config.status does its own redirection, appending to config.log.
23864 # Unfortunately, on DOS this fails, as config.log is still kept open
23865 # by configure, so config.status won't be able to write to it; its
23866 # output is simply discarded. So we exec the FD to /dev/null,
23867 # effectively closing config.log, so it can be properly (re)opened and
23868 # appended to by config.status. When coming back to configure, we
23869 # need to make the FD available again.
23870 if test "$no_create" != yes; then
23872 ac_config_status_args
=
23873 test "$silent" = yes &&
23874 ac_config_status_args
="$ac_config_status_args --quiet"
23876 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
23878 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23879 # would make configure fail if this is the last instruction.
23880 $ac_cs_success ||
{ (exit 1); exit 1; }
23884 echo "creating Modules/Setup"
23885 if test ! -f Modules
/Setup
23887 cp $srcdir/Modules
/Setup.dist Modules
/Setup
23890 echo "creating Modules/Setup.local"
23891 if test ! -f Modules
/Setup.
local
23893 echo "# Edit this file for local setup changes" >Modules
/Setup.
local
23896 echo "creating Makefile"
23897 $SHELL $srcdir/Modules
/makesetup
-c $srcdir/Modules
/config.c.
in \
23898 -s Modules Modules
/Setup.config \
23899 Modules
/Setup.
local Modules
/Setup
23900 mv config.c Modules