2 # From configure.in Revision: 60536 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for python 2.6.
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.6'
579 PACKAGE_STRING
='python 2.6'
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.6 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.6:";;
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 against 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.6
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.6, 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 # Check whether GCC supports PyArg_ParseTuple format
4715 if test "$GCC" = "yes"
4717 { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
4718 echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; }
4720 CFLAGS
="$CFLAGS -Werror"
4721 cat >conftest.
$ac_ext <<_ACEOF
4724 cat confdefs.h
>>conftest.
$ac_ext
4725 cat >>conftest.
$ac_ext <<_ACEOF
4726 /* end confdefs.h. */
4728 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
4738 rm -f conftest.
$ac_objext
4739 if { (ac_try
="$ac_compile"
4741 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4742 *) ac_try_echo=$ac_try;;
4744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4745 (eval "$ac_compile") 2>conftest.er1
4747 grep -v '^ *+' conftest.er1 >conftest.err
4749 cat conftest.err >&5
4750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751 (exit $ac_status); } && {
4752 test -z "$ac_c_werror_flag" ||
4753 test ! -s conftest.err
4754 } && test -s conftest.$ac_objext; then
4756 cat >>confdefs.h <<\_ACEOF
4757 #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
4760 { echo "$as_me:$LINENO: result: yes" >&5
4761 echo "${ECHO_T}yes" >&6; }
4763 echo "$as_me: failed program was:" >&5
4764 sed 's/^/| /' conftest.$ac_ext >&5
4766 { echo "$as_me:$LINENO: result: no" >&5
4767 echo "${ECHO_T}no" >&6; }
4771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4775 # On some compilers, pthreads are available without further options
4776 # (e.g. MacOS X). On some of these systems, the compiler will not
4777 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4778 # So we have to see first whether pthreads are available without
4779 # options before we can check whether -Kpthread improves anything.
4780 { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4781 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; }
4782 if test "${ac_cv_pthread_is_default+set}" = set; then
4783 echo $ECHO_N "(cached) $ECHO_C" >&6
4785 if test "$cross_compiling" = yes; then
4786 ac_cv_pthread_is_default=no
4788 cat >conftest.$ac_ext <<_ACEOF
4791 cat confdefs.h >>conftest.$ac_ext
4792 cat >>conftest.$ac_ext <<_ACEOF
4793 /* end confdefs.h. */
4795 #include <pthread.h>
4797 void* routine(void* p){return NULL;}
4801 if(pthread_create(&p,NULL,routine,NULL)!=0)
4803 (void)pthread_detach(p);
4808 rm -f conftest$ac_exeext
4809 if { (ac_try="$ac_link"
4811 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4812 *) ac_try_echo
=$ac_try;;
4814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4815 (eval "$ac_link") 2>&5
4817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4819 { (case "(($ac_try" in
4820 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4821 *) ac_try_echo=$ac_try;;
4823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4824 (eval "$ac_try") 2>&5
4826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827 (exit $ac_status); }; }; then
4829 ac_cv_pthread_is_default=yes
4834 echo "$as_me: program exited with status $ac_status" >&5
4835 echo "$as_me: failed program was:" >&5
4836 sed 's/^/| /' conftest.$ac_ext >&5
4839 ac_cv_pthread_is_default=no
4841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4848 { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
4849 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; }
4852 if test $ac_cv_pthread_is_default = yes
4856 # -Kpthread, if available, provides the right #defines
4857 # and linker options to make pthread_create available
4858 # Some compilers won't report that they do not support -Kpthread,
4859 # so we need to run a program to see whether it really made the
4860 # function available.
4861 { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
4862 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; }
4863 if test "${ac_cv_kpthread+set}" = set; then
4864 echo $ECHO_N "(cached) $ECHO_C" >&6
4868 if test "$cross_compiling" = yes; then
4871 cat >conftest.$ac_ext <<_ACEOF
4874 cat confdefs.h >>conftest.$ac_ext
4875 cat >>conftest.$ac_ext <<_ACEOF
4876 /* end confdefs.h. */
4878 #include <pthread.h>
4880 void* routine(void* p){return NULL;}
4884 if(pthread_create(&p,NULL,routine,NULL)!=0)
4886 (void)pthread_detach(p);
4891 rm -f conftest$ac_exeext
4892 if { (ac_try="$ac_link"
4894 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4895 *) ac_try_echo
=$ac_try;;
4897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4898 (eval "$ac_link") 2>&5
4900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4902 { (case "(($ac_try" in
4903 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4904 *) ac_try_echo=$ac_try;;
4906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4907 (eval "$ac_try") 2>&5
4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910 (exit $ac_status); }; }; then
4913 echo "$as_me: program exited with status $ac_status" >&5
4914 echo "$as_me: failed program was:" >&5
4915 sed 's/^/| /' conftest.$ac_ext >&5
4920 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4927 { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
4928 echo "${ECHO_T}$ac_cv_kpthread" >&6; }
4931 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
4933 # -Kthread, if available, provides the right #defines
4934 # and linker options to make pthread_create available
4935 # Some compilers won't report that they do not support -Kthread,
4936 # so we need to run a program to see whether it really made the
4937 # function available.
4938 { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
4939 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; }
4940 if test "${ac_cv_kthread+set}" = set; then
4941 echo $ECHO_N "(cached) $ECHO_C" >&6
4945 if test "$cross_compiling" = yes; then
4948 cat >conftest.$ac_ext <<_ACEOF
4951 cat confdefs.h >>conftest.$ac_ext
4952 cat >>conftest.$ac_ext <<_ACEOF
4953 /* end confdefs.h. */
4955 #include <pthread.h>
4957 void* routine(void* p){return NULL;}
4961 if(pthread_create(&p,NULL,routine,NULL)!=0)
4963 (void)pthread_detach(p);
4968 rm -f conftest$ac_exeext
4969 if { (ac_try="$ac_link"
4971 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4972 *) ac_try_echo
=$ac_try;;
4974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4975 (eval "$ac_link") 2>&5
4977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4979 { (case "(($ac_try" in
4980 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4981 *) ac_try_echo=$ac_try;;
4983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4984 (eval "$ac_try") 2>&5
4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); }; }; then
4990 echo "$as_me: program exited with status $ac_status" >&5
4991 echo "$as_me: failed program was:" >&5
4992 sed 's/^/| /' conftest.$ac_ext >&5
4997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5004 { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
5005 echo "${ECHO_T}$ac_cv_kthread" >&6; }
5008 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
5010 # -pthread, if available, provides the right #defines
5011 # and linker options to make pthread_create available
5012 # Some compilers won't report that they do not support -pthread,
5013 # so we need to run a program to see whether it really made the
5014 # function available.
5015 { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
5016 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; }
5017 if test "${ac_cv_thread+set}" = set; then
5018 echo $ECHO_N "(cached) $ECHO_C" >&6
5022 if test "$cross_compiling" = yes; then
5025 cat >conftest.$ac_ext <<_ACEOF
5028 cat confdefs.h >>conftest.$ac_ext
5029 cat >>conftest.$ac_ext <<_ACEOF
5030 /* end confdefs.h. */
5032 #include <pthread.h>
5034 void* routine(void* p){return NULL;}
5038 if(pthread_create(&p,NULL,routine,NULL)!=0)
5040 (void)pthread_detach(p);
5045 rm -f conftest$ac_exeext
5046 if { (ac_try="$ac_link"
5048 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5049 *) ac_try_echo
=$ac_try;;
5051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5052 (eval "$ac_link") 2>&5
5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5056 { (case "(($ac_try" in
5057 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5058 *) ac_try_echo=$ac_try;;
5060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5061 (eval "$ac_try") 2>&5
5063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064 (exit $ac_status); }; }; then
5067 echo "$as_me: program exited with status $ac_status" >&5
5068 echo "$as_me: failed program was:" >&5
5069 sed 's/^/| /' conftest.$ac_ext >&5
5074 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5081 { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
5082 echo "${ECHO_T}$ac_cv_pthread" >&6; }
5085 # If we have set a CC compiler flag for thread support then
5086 # check if it works for CXX, too.
5090 { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
5091 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; }
5094 if test "$ac_cv_kpthread" = "yes"
5096 CXX="$CXX -Kpthread"
5097 ac_cv_cxx_thread=yes
5098 elif test "$ac_cv_kthread" = "yes"
5101 ac_cv_cxx_thread=yes
5102 elif test "$ac_cv_pthread" = "yes"
5105 ac_cv_cxx_thread=yes
5108 if test $ac_cv_cxx_thread = yes
5110 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
5111 $CXX -c conftest.$ac_ext 2>&5
5112 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
5113 && test -s conftest$ac_exeext && ./conftest$ac_exeext
5115 ac_cv_cxx_thread=yes
5121 { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
5122 echo "${ECHO_T}$ac_cv_cxx_thread" >&6; }
5127 # checks for header files
5128 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5129 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5130 if test "${ac_cv_header_stdc+set}" = set; then
5131 echo $ECHO_N "(cached) $ECHO_C" >&6
5133 cat >conftest.$ac_ext <<_ACEOF
5136 cat confdefs.h >>conftest.$ac_ext
5137 cat >>conftest.$ac_ext <<_ACEOF
5138 /* end confdefs.h. */
5152 rm -f conftest.$ac_objext
5153 if { (ac_try="$ac_compile"
5155 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5156 *) ac_try_echo
=$ac_try;;
5158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5159 (eval "$ac_compile") 2>conftest.er1
5161 grep -v '^ *+' conftest.er1
>conftest.err
5163 cat conftest.err
>&5
5164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165 (exit $ac_status); } && {
5166 test -z "$ac_c_werror_flag" ||
5167 test ! -s conftest.err
5168 } && test -s conftest.
$ac_objext; then
5169 ac_cv_header_stdc
=yes
5171 echo "$as_me: failed program was:" >&5
5172 sed 's/^/| /' conftest.
$ac_ext >&5
5174 ac_cv_header_stdc
=no
5177 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5179 if test $ac_cv_header_stdc = yes; then
5180 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5181 cat >conftest.
$ac_ext <<_ACEOF
5184 cat confdefs.h
>>conftest.
$ac_ext
5185 cat >>conftest.
$ac_ext <<_ACEOF
5186 /* end confdefs.h. */
5190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5191 $EGREP "memchr" >/dev
/null
2>&1; then
5194 ac_cv_header_stdc
=no
5200 if test $ac_cv_header_stdc = yes; then
5201 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5202 cat >conftest.
$ac_ext <<_ACEOF
5205 cat confdefs.h
>>conftest.
$ac_ext
5206 cat >>conftest.
$ac_ext <<_ACEOF
5207 /* end confdefs.h. */
5211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5212 $EGREP "free" >/dev
/null
2>&1; then
5215 ac_cv_header_stdc
=no
5221 if test $ac_cv_header_stdc = yes; then
5222 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5223 if test "$cross_compiling" = yes; then
5226 cat >conftest.
$ac_ext <<_ACEOF
5229 cat confdefs.h
>>conftest.
$ac_ext
5230 cat >>conftest.
$ac_ext <<_ACEOF
5231 /* end confdefs.h. */
5234 #if ((' ' & 0x0FF) == 0x020)
5235 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5236 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5238 # define ISLOWER(c) \
5239 (('a' <= (c) && (c) <= 'i') \
5240 || ('j' <= (c) && (c) <= 'r') \
5241 || ('s' <= (c) && (c) <= 'z'))
5242 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5245 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5250 for (i = 0; i < 256; i++)
5251 if (XOR (islower (i), ISLOWER (i))
5252 || toupper (i) != TOUPPER (i))
5257 rm -f conftest
$ac_exeext
5258 if { (ac_try
="$ac_link"
5260 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5261 *) ac_try_echo=$ac_try;;
5263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5264 (eval "$ac_link") 2>&5
5266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5268 { (case "(($ac_try" in
5269 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5270 *) ac_try_echo
=$ac_try;;
5272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5273 (eval "$ac_try") 2>&5
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); }; }; then
5279 echo "$as_me: program exited with status $ac_status" >&5
5280 echo "$as_me: failed program was:" >&5
5281 sed 's/^/| /' conftest.
$ac_ext >&5
5284 ac_cv_header_stdc
=no
5286 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5292 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5293 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5294 if test $ac_cv_header_stdc = yes; then
5296 cat >>confdefs.h
<<\_ACEOF
5297 #define STDC_HEADERS 1
5302 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5312 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5313 inttypes.h stdint.h unistd.h
5315 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5316 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5318 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5319 echo $ECHO_N "(cached) $ECHO_C" >&6
5321 cat >conftest.
$ac_ext <<_ACEOF
5324 cat confdefs.h
>>conftest.
$ac_ext
5325 cat >>conftest.
$ac_ext <<_ACEOF
5326 /* end confdefs.h. */
5327 $ac_includes_default
5329 #include <$ac_header>
5331 rm -f conftest.
$ac_objext
5332 if { (ac_try
="$ac_compile"
5334 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5335 *) ac_try_echo=$ac_try;;
5337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5338 (eval "$ac_compile") 2>conftest.er1
5340 grep -v '^ *+' conftest.er1 >conftest.err
5342 cat conftest.err >&5
5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344 (exit $ac_status); } && {
5345 test -z "$ac_c_werror_flag" ||
5346 test ! -s conftest.err
5347 } && test -s conftest.$ac_objext; then
5348 eval "$as_ac_Header=yes"
5350 echo "$as_me: failed program was:" >&5
5351 sed 's/^/| /' conftest.$ac_ext >&5
5353 eval "$as_ac_Header=no"
5356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5358 ac_res=`eval echo '${'$as_ac_Header'}'`
5359 { echo "$as_me:$LINENO: result: $ac_res" >&5
5360 echo "${ECHO_T}$ac_res" >&6; }
5361 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5362 cat >>confdefs.h <<_ACEOF
5363 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5421 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
5423 io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
5424 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
5426 sys/audioio.h sys/bsdtty.h sys/file.h sys/loadavg.h sys/lock.h sys/mkdev.h \
5428 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
5430 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
5431 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
5432 bluetooth/bluetooth.h linux/tipc.h
5434 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5435 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5436 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5438 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5439 echo $ECHO_N "(cached) $ECHO_C" >&6
5441 ac_res=`eval echo '${'$as_ac_Header'}'`
5442 { echo "$as_me:$LINENO: result: $ac_res" >&5
5443 echo "${ECHO_T}$ac_res" >&6; }
5445 # Is the header compilable?
5446 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5447 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5448 cat >conftest.$ac_ext <<_ACEOF
5451 cat confdefs.h >>conftest.$ac_ext
5452 cat >>conftest.$ac_ext <<_ACEOF
5453 /* end confdefs.h. */
5454 $ac_includes_default
5455 #include <$ac_header>
5457 rm -f conftest.$ac_objext
5458 if { (ac_try="$ac_compile"
5460 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5461 *) ac_try_echo
=$ac_try;;
5463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5464 (eval "$ac_compile") 2>conftest.er1
5466 grep -v '^ *+' conftest.er1
>conftest.err
5468 cat conftest.err
>&5
5469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470 (exit $ac_status); } && {
5471 test -z "$ac_c_werror_flag" ||
5472 test ! -s conftest.err
5473 } && test -s conftest.
$ac_objext; then
5474 ac_header_compiler
=yes
5476 echo "$as_me: failed program was:" >&5
5477 sed 's/^/| /' conftest.
$ac_ext >&5
5479 ac_header_compiler
=no
5482 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5483 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5484 echo "${ECHO_T}$ac_header_compiler" >&6; }
5486 # Is the header present?
5487 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5488 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5489 cat >conftest.
$ac_ext <<_ACEOF
5492 cat confdefs.h
>>conftest.
$ac_ext
5493 cat >>conftest.
$ac_ext <<_ACEOF
5494 /* end confdefs.h. */
5495 #include <$ac_header>
5497 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5499 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5500 *) ac_try_echo=$ac_try;;
5502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5503 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5505 grep -v '^ *+' conftest.er1 >conftest.err
5507 cat conftest.err >&5
5508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509 (exit $ac_status); } >/dev/null && {
5510 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5511 test ! -s conftest.err
5513 ac_header_preproc=yes
5515 echo "$as_me: failed program was:" >&5
5516 sed 's/^/| /' conftest.$ac_ext >&5
5518 ac_header_preproc=no
5521 rm -f conftest.err conftest.$ac_ext
5522 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5523 echo "${ECHO_T}$ac_header_preproc" >&6; }
5525 # So? What about this header?
5526 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5528 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5529 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5530 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5531 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5532 ac_header_preproc=yes
5535 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5536 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5537 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5538 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5539 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5540 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5541 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5542 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5543 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5544 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5545 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5546 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5548 ## ------------------------------------------------ ##
5549 ## Report this to http://www.python.org/python-bugs ##
5550 ## ------------------------------------------------ ##
5552 ) | sed "s/^/$as_me: WARNING: /" >&2
5555 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5557 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5558 echo $ECHO_N "(cached) $ECHO_C" >&6
5560 eval "$as_ac_Header=\$ac_header_preproc"
5562 ac_res=`eval echo '${'$as_ac_Header'}'`
5563 { echo "$as_me:$LINENO: result: $ac_res" >&5
5564 echo "${ECHO_T}$ac_res" >&6; }
5567 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5568 cat >>confdefs.h <<_ACEOF
5569 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5582 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5583 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" |
$as_tr_sh`
5584 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5585 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5586 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5587 echo $ECHO_N "(cached) $ECHO_C" >&6
5589 cat >conftest.$ac_ext <<_ACEOF
5592 cat confdefs.h >>conftest.$ac_ext
5593 cat >>conftest.$ac_ext <<_ACEOF
5594 /* end confdefs.h. */
5595 #include <sys/types.h>
5607 rm -f conftest.$ac_objext
5608 if { (ac_try="$ac_compile"
5610 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5611 *) ac_try_echo
=$ac_try;;
5613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5614 (eval "$ac_compile") 2>conftest.er1
5616 grep -v '^ *+' conftest.er1
>conftest.err
5618 cat conftest.err
>&5
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); } && {
5621 test -z "$ac_c_werror_flag" ||
5622 test ! -s conftest.err
5623 } && test -s conftest.
$ac_objext; then
5624 eval "$as_ac_Header=yes"
5626 echo "$as_me: failed program was:" >&5
5627 sed 's/^/| /' conftest.
$ac_ext >&5
5629 eval "$as_ac_Header=no"
5632 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5634 ac_res
=`eval echo '${'$as_ac_Header'}'`
5635 { echo "$as_me:$LINENO: result: $ac_res" >&5
5636 echo "${ECHO_T}$ac_res" >&6; }
5637 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5638 cat >>confdefs.h
<<_ACEOF
5639 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5642 ac_header_dirent
=$ac_hdr; break
5646 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5647 if test $ac_header_dirent = dirent.h
; then
5648 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5649 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5650 if test "${ac_cv_search_opendir+set}" = set; then
5651 echo $ECHO_N "(cached) $ECHO_C" >&6
5653 ac_func_search_save_LIBS
=$LIBS
5654 cat >conftest.
$ac_ext <<_ACEOF
5657 cat confdefs.h
>>conftest.
$ac_ext
5658 cat >>conftest.
$ac_ext <<_ACEOF
5659 /* end confdefs.h. */
5661 /* Override any GCC internal prototype to avoid an error.
5662 Use char because int might match the return type of a GCC
5663 builtin and then its argument prototype would still apply. */
5676 for ac_lib
in '' dir
; do
5677 if test -z "$ac_lib"; then
5678 ac_res
="none required"
5681 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5683 rm -f conftest.
$ac_objext conftest
$ac_exeext
5684 if { (ac_try
="$ac_link"
5686 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5687 *) ac_try_echo=$ac_try;;
5689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5690 (eval "$ac_link") 2>conftest.er1
5692 grep -v '^ *+' conftest.er1 >conftest.err
5694 cat conftest.err >&5
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); } && {
5697 test -z "$ac_c_werror_flag" ||
5698 test ! -s conftest.err
5699 } && test -s conftest$ac_exeext &&
5700 $as_test_x conftest$ac_exeext; then
5701 ac_cv_search_opendir=$ac_res
5703 echo "$as_me: failed program was:" >&5
5704 sed 's/^/| /' conftest.$ac_ext >&5
5709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5711 if test "${ac_cv_search_opendir+set}" = set; then
5715 if test "${ac_cv_search_opendir+set}" = set; then
5718 ac_cv_search_opendir=no
5721 LIBS=$ac_func_search_save_LIBS
5723 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5724 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5725 ac_res=$ac_cv_search_opendir
5726 if test "$ac_res" != no; then
5727 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5732 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5733 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5734 if test "${ac_cv_search_opendir+set}" = set; then
5735 echo $ECHO_N "(cached) $ECHO_C" >&6
5737 ac_func_search_save_LIBS=$LIBS
5738 cat >conftest.$ac_ext <<_ACEOF
5741 cat confdefs.h >>conftest.$ac_ext
5742 cat >>conftest.$ac_ext <<_ACEOF
5743 /* end confdefs.h. */
5745 /* Override any GCC internal prototype to avoid an error.
5746 Use char because int might match the return type of a GCC
5747 builtin and then its argument prototype would still apply. */
5760 for ac_lib in '' x; do
5761 if test -z "$ac_lib"; then
5762 ac_res="none required"
5765 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5767 rm -f conftest.$ac_objext conftest$ac_exeext
5768 if { (ac_try="$ac_link"
5770 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5771 *) ac_try_echo
=$ac_try;;
5773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5774 (eval "$ac_link") 2>conftest.er1
5776 grep -v '^ *+' conftest.er1
>conftest.err
5778 cat conftest.err
>&5
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); } && {
5781 test -z "$ac_c_werror_flag" ||
5782 test ! -s conftest.err
5783 } && test -s conftest
$ac_exeext &&
5784 $as_test_x conftest
$ac_exeext; then
5785 ac_cv_search_opendir
=$ac_res
5787 echo "$as_me: failed program was:" >&5
5788 sed 's/^/| /' conftest.
$ac_ext >&5
5793 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5795 if test "${ac_cv_search_opendir+set}" = set; then
5799 if test "${ac_cv_search_opendir+set}" = set; then
5802 ac_cv_search_opendir
=no
5805 LIBS
=$ac_func_search_save_LIBS
5807 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5808 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5809 ac_res
=$ac_cv_search_opendir
5810 if test "$ac_res" != no
; then
5811 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5817 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5818 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
5819 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5820 echo $ECHO_N "(cached) $ECHO_C" >&6
5822 cat >conftest.
$ac_ext <<_ACEOF
5825 cat confdefs.h
>>conftest.
$ac_ext
5826 cat >>conftest.
$ac_ext <<_ACEOF
5827 /* end confdefs.h. */
5828 #include <sys/types.h>
5832 return makedev(0, 0);
5837 rm -f conftest.
$ac_objext conftest
$ac_exeext
5838 if { (ac_try
="$ac_link"
5840 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5841 *) ac_try_echo=$ac_try;;
5843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5844 (eval "$ac_link") 2>conftest.er1
5846 grep -v '^ *+' conftest.er1 >conftest.err
5848 cat conftest.err >&5
5849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850 (exit $ac_status); } && {
5851 test -z "$ac_c_werror_flag" ||
5852 test ! -s conftest.err
5853 } && test -s conftest$ac_exeext &&
5854 $as_test_x conftest$ac_exeext; then
5855 ac_cv_header_sys_types_h_makedev=yes
5857 echo "$as_me: failed program was:" >&5
5858 sed 's/^/| /' conftest.$ac_ext >&5
5860 ac_cv_header_sys_types_h_makedev=no
5863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5864 conftest$ac_exeext conftest.$ac_ext
5867 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
5868 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
5870 if test $ac_cv_header_sys_types_h_makedev = no; then
5871 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5872 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5873 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
5874 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5875 echo $ECHO_N "(cached) $ECHO_C" >&6
5877 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5878 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
5880 # Is the header compilable?
5881 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
5882 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
5883 cat >conftest.$ac_ext <<_ACEOF
5886 cat confdefs.h >>conftest.$ac_ext
5887 cat >>conftest.$ac_ext <<_ACEOF
5888 /* end confdefs.h. */
5889 $ac_includes_default
5890 #include <sys/mkdev.h>
5892 rm -f conftest.$ac_objext
5893 if { (ac_try="$ac_compile"
5895 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5896 *) ac_try_echo
=$ac_try;;
5898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5899 (eval "$ac_compile") 2>conftest.er1
5901 grep -v '^ *+' conftest.er1
>conftest.err
5903 cat conftest.err
>&5
5904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905 (exit $ac_status); } && {
5906 test -z "$ac_c_werror_flag" ||
5907 test ! -s conftest.err
5908 } && test -s conftest.
$ac_objext; then
5909 ac_header_compiler
=yes
5911 echo "$as_me: failed program was:" >&5
5912 sed 's/^/| /' conftest.
$ac_ext >&5
5914 ac_header_compiler
=no
5917 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5918 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5919 echo "${ECHO_T}$ac_header_compiler" >&6; }
5921 # Is the header present?
5922 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
5923 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
5924 cat >conftest.
$ac_ext <<_ACEOF
5927 cat confdefs.h
>>conftest.
$ac_ext
5928 cat >>conftest.
$ac_ext <<_ACEOF
5929 /* end confdefs.h. */
5930 #include <sys/mkdev.h>
5932 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5934 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5935 *) ac_try_echo=$ac_try;;
5937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5938 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5940 grep -v '^ *+' conftest.er1 >conftest.err
5942 cat conftest.err >&5
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); } >/dev/null && {
5945 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5946 test ! -s conftest.err
5948 ac_header_preproc=yes
5950 echo "$as_me: failed program was:" >&5
5951 sed 's/^/| /' conftest.$ac_ext >&5
5953 ac_header_preproc=no
5956 rm -f conftest.err conftest.$ac_ext
5957 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5958 echo "${ECHO_T}$ac_header_preproc" >&6; }
5960 # So? What about this header?
5961 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5963 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
5964 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5965 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
5966 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
5967 ac_header_preproc=yes
5970 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
5971 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
5972 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
5973 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
5974 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
5975 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
5976 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
5977 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
5978 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
5979 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
5980 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
5981 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
5983 ## ------------------------------------------------ ##
5984 ## Report this to http://www.python.org/python-bugs ##
5985 ## ------------------------------------------------ ##
5987 ) | sed "s/^/$as_me: WARNING: /" >&2
5990 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5991 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
5992 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5993 echo $ECHO_N "(cached) $ECHO_C" >&6
5995 ac_cv_header_sys_mkdev_h=$ac_header_preproc
5997 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5998 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6001 if test $ac_cv_header_sys_mkdev_h = yes; then
6003 cat >>confdefs.h <<\_ACEOF
6004 #define MAJOR_IN_MKDEV 1
6011 if test $ac_cv_header_sys_mkdev_h = no; then
6012 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6013 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6014 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6015 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6016 echo $ECHO_N "(cached) $ECHO_C" >&6
6018 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6019 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6021 # Is the header compilable?
6022 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6023 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
6024 cat >conftest.$ac_ext <<_ACEOF
6027 cat confdefs.h >>conftest.$ac_ext
6028 cat >>conftest.$ac_ext <<_ACEOF
6029 /* end confdefs.h. */
6030 $ac_includes_default
6031 #include <sys/sysmacros.h>
6033 rm -f conftest.$ac_objext
6034 if { (ac_try="$ac_compile"
6036 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6037 *) ac_try_echo
=$ac_try;;
6039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6040 (eval "$ac_compile") 2>conftest.er1
6042 grep -v '^ *+' conftest.er1
>conftest.err
6044 cat conftest.err
>&5
6045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046 (exit $ac_status); } && {
6047 test -z "$ac_c_werror_flag" ||
6048 test ! -s conftest.err
6049 } && test -s conftest.
$ac_objext; then
6050 ac_header_compiler
=yes
6052 echo "$as_me: failed program was:" >&5
6053 sed 's/^/| /' conftest.
$ac_ext >&5
6055 ac_header_compiler
=no
6058 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6059 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6060 echo "${ECHO_T}$ac_header_compiler" >&6; }
6062 # Is the header present?
6063 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6064 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
6065 cat >conftest.
$ac_ext <<_ACEOF
6068 cat confdefs.h
>>conftest.
$ac_ext
6069 cat >>conftest.
$ac_ext <<_ACEOF
6070 /* end confdefs.h. */
6071 #include <sys/sysmacros.h>
6073 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6075 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6076 *) ac_try_echo=$ac_try;;
6078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6079 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6081 grep -v '^ *+' conftest.er1 >conftest.err
6083 cat conftest.err >&5
6084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085 (exit $ac_status); } >/dev/null && {
6086 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6087 test ! -s conftest.err
6089 ac_header_preproc=yes
6091 echo "$as_me: failed program was:" >&5
6092 sed 's/^/| /' conftest.$ac_ext >&5
6094 ac_header_preproc=no
6097 rm -f conftest.err conftest.$ac_ext
6098 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6099 echo "${ECHO_T}$ac_header_preproc" >&6; }
6101 # So? What about this header?
6102 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6104 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6105 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6106 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6107 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
6108 ac_header_preproc=yes
6111 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6112 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6113 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6114 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6115 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6116 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6117 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
6118 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
6119 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6120 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
6121 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6122 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
6124 ## ------------------------------------------------ ##
6125 ## Report this to http://www.python.org/python-bugs ##
6126 ## ------------------------------------------------ ##
6128 ) | sed "s/^/$as_me: WARNING: /" >&2
6131 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6132 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6133 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6134 echo $ECHO_N "(cached) $ECHO_C" >&6
6136 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
6138 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6139 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6142 if test $ac_cv_header_sys_sysmacros_h = yes; then
6144 cat >>confdefs.h <<\_ACEOF
6145 #define MAJOR_IN_SYSMACROS 1
6155 # On Solaris, term.h requires curses.h
6157 for ac_header in term.h
6159 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6160 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6162 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6163 echo $ECHO_N "(cached) $ECHO_C" >&6
6165 cat >conftest.$ac_ext <<_ACEOF
6168 cat confdefs.h >>conftest.$ac_ext
6169 cat >>conftest.$ac_ext <<_ACEOF
6170 /* end confdefs.h. */
6172 #ifdef HAVE_CURSES_H
6177 #include <$ac_header>
6179 rm -f conftest.$ac_objext
6180 if { (ac_try="$ac_compile"
6182 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6183 *) ac_try_echo
=$ac_try;;
6185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6186 (eval "$ac_compile") 2>conftest.er1
6188 grep -v '^ *+' conftest.er1
>conftest.err
6190 cat conftest.err
>&5
6191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192 (exit $ac_status); } && {
6193 test -z "$ac_c_werror_flag" ||
6194 test ! -s conftest.err
6195 } && test -s conftest.
$ac_objext; then
6196 eval "$as_ac_Header=yes"
6198 echo "$as_me: failed program was:" >&5
6199 sed 's/^/| /' conftest.
$ac_ext >&5
6201 eval "$as_ac_Header=no"
6204 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6206 ac_res
=`eval echo '${'$as_ac_Header'}'`
6207 { echo "$as_me:$LINENO: result: $ac_res" >&5
6208 echo "${ECHO_T}$ac_res" >&6; }
6209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6210 cat >>confdefs.h
<<_ACEOF
6211 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6219 # On Linux, netlink.h requires asm/types.h
6221 for ac_header
in linux
/netlink.h
6223 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6224 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6226 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6227 echo $ECHO_N "(cached) $ECHO_C" >&6
6229 cat >conftest.
$ac_ext <<_ACEOF
6232 cat confdefs.h
>>conftest.
$ac_ext
6233 cat >>conftest.
$ac_ext <<_ACEOF
6234 /* end confdefs.h. */
6236 #ifdef HAVE_ASM_TYPES_H
6237 #include <asm/types.h>
6239 #ifdef HAVE_SYS_SOCKET_H
6240 #include <sys/socket.h>
6244 #include <$ac_header>
6246 rm -f conftest.
$ac_objext
6247 if { (ac_try
="$ac_compile"
6249 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6250 *) ac_try_echo=$ac_try;;
6252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6253 (eval "$ac_compile") 2>conftest.er1
6255 grep -v '^ *+' conftest.er1 >conftest.err
6257 cat conftest.err >&5
6258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6259 (exit $ac_status); } && {
6260 test -z "$ac_c_werror_flag" ||
6261 test ! -s conftest.err
6262 } && test -s conftest.$ac_objext; then
6263 eval "$as_ac_Header=yes"
6265 echo "$as_me: failed program was:" >&5
6266 sed 's/^/| /' conftest.$ac_ext >&5
6268 eval "$as_ac_Header=no"
6271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6273 ac_res=`eval echo '${'$as_ac_Header'}'`
6274 { echo "$as_me:$LINENO: result: $ac_res" >&5
6275 echo "${ECHO_T}$ac_res" >&6; }
6276 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6277 cat >>confdefs.h <<_ACEOF
6278 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6286 # checks for typedefs
6288 { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
6289 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6; }
6290 cat >conftest.$ac_ext <<_ACEOF
6293 cat confdefs.h >>conftest.$ac_ext
6294 cat >>conftest.$ac_ext <<_ACEOF
6295 /* end confdefs.h. */
6299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6300 $EGREP "clock_t" >/dev/null 2>&1; then
6305 cat >>confdefs.h <<\_ACEOF
6306 #define clock_t long
6313 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
6314 echo "${ECHO_T}$was_it_defined" >&6; }
6316 # Check whether using makedev requires defining _OSF_SOURCE
6317 { echo "$as_me:$LINENO: checking for makedev" >&5
6318 echo $ECHO_N "checking for makedev... $ECHO_C" >&6; }
6319 cat >conftest.$ac_ext <<_ACEOF
6322 cat confdefs.h >>conftest.$ac_ext
6323 cat >>conftest.$ac_ext <<_ACEOF
6324 /* end confdefs.h. */
6325 #include <sys/types.h>
6334 rm -f conftest.$ac_objext conftest$ac_exeext
6335 if { (ac_try="$ac_link"
6337 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6338 *) ac_try_echo
=$ac_try;;
6340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6341 (eval "$ac_link") 2>conftest.er1
6343 grep -v '^ *+' conftest.er1
>conftest.err
6345 cat conftest.err
>&5
6346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347 (exit $ac_status); } && {
6348 test -z "$ac_c_werror_flag" ||
6349 test ! -s conftest.err
6350 } && test -s conftest
$ac_exeext &&
6351 $as_test_x conftest
$ac_exeext; then
6352 ac_cv_has_makedev
=yes
6354 echo "$as_me: failed program was:" >&5
6355 sed 's/^/| /' conftest.
$ac_ext >&5
6357 ac_cv_has_makedev
=no
6360 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6361 conftest
$ac_exeext conftest.
$ac_ext
6362 if test "$ac_cv_has_makedev" = "no"; then
6363 # we didn't link, try if _OSF_SOURCE will allow us to link
6364 cat >conftest.
$ac_ext <<_ACEOF
6367 cat confdefs.h
>>conftest.
$ac_ext
6368 cat >>conftest.
$ac_ext <<_ACEOF
6369 /* end confdefs.h. */
6371 #define _OSF_SOURCE 1
6372 #include <sys/types.h>
6382 rm -f conftest.
$ac_objext conftest
$ac_exeext
6383 if { (ac_try
="$ac_link"
6385 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6386 *) ac_try_echo=$ac_try;;
6388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6389 (eval "$ac_link") 2>conftest.er1
6391 grep -v '^ *+' conftest.er1 >conftest.err
6393 cat conftest.err >&5
6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395 (exit $ac_status); } && {
6396 test -z "$ac_c_werror_flag" ||
6397 test ! -s conftest.err
6398 } && test -s conftest$ac_exeext &&
6399 $as_test_x conftest$ac_exeext; then
6400 ac_cv_has_makedev=yes
6402 echo "$as_me: failed program was:" >&5
6403 sed 's/^/| /' conftest.$ac_ext >&5
6405 ac_cv_has_makedev=no
6408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6409 conftest$ac_exeext conftest.$ac_ext
6410 if test "$ac_cv_has_makedev" = "yes"; then
6412 cat >>confdefs.h <<\_ACEOF
6413 #define _OSF_SOURCE 1
6418 { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
6419 echo "${ECHO_T}$ac_cv_has_makedev" >&6; }
6420 if test "$ac_cv_has_makedev" = "yes"; then
6422 cat >>confdefs.h <<\_ACEOF
6423 #define HAVE_MAKEDEV 1
6428 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
6429 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
6430 # defined, but the compiler does not support pragma redefine_extname,
6431 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
6432 # structures (such as rlimit64) without declaring them. As a
6433 # work-around, disable LFS on such configurations
6436 { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
6437 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; }
6438 cat >conftest.$ac_ext <<_ACEOF
6441 cat confdefs.h >>conftest.$ac_ext
6442 cat >>conftest.$ac_ext <<_ACEOF
6443 /* end confdefs.h. */
6445 #define _LARGEFILE_SOURCE 1
6446 #define _FILE_OFFSET_BITS 64
6447 #include <sys/resource.h>
6457 rm -f conftest.$ac_objext
6458 if { (ac_try="$ac_compile"
6460 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6461 *) ac_try_echo
=$ac_try;;
6463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6464 (eval "$ac_compile") 2>conftest.er1
6466 grep -v '^ *+' conftest.er1
>conftest.err
6468 cat conftest.err
>&5
6469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470 (exit $ac_status); } && {
6471 test -z "$ac_c_werror_flag" ||
6472 test ! -s conftest.err
6473 } && test -s conftest.
$ac_objext; then
6476 echo "$as_me: failed program was:" >&5
6477 sed 's/^/| /' conftest.
$ac_ext >&5
6482 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6483 { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
6484 echo "${ECHO_T}$sol_lfs_bug" >&6; }
6485 if test "$sol_lfs_bug" = "yes"; then
6489 if test "$use_lfs" = "yes"; then
6490 # Two defines needed to enable largefile support on various platforms
6491 # These may affect some typedefs
6493 cat >>confdefs.h
<<\_ACEOF
6494 #define _LARGEFILE_SOURCE 1
6498 cat >>confdefs.h
<<\_ACEOF
6499 #define _FILE_OFFSET_BITS 64
6504 # Add some code to confdefs.h so that the test for off_t works on SCO
6505 cat >> confdefs.h
<<\EOF
6511 # Type availability checks
6512 { echo "$as_me:$LINENO: checking for mode_t" >&5
6513 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
6514 if test "${ac_cv_type_mode_t+set}" = set; then
6515 echo $ECHO_N "(cached) $ECHO_C" >&6
6517 cat >conftest.
$ac_ext <<_ACEOF
6520 cat confdefs.h
>>conftest.
$ac_ext
6521 cat >>conftest.
$ac_ext <<_ACEOF
6522 /* end confdefs.h. */
6523 $ac_includes_default
6524 typedef mode_t ac__type_new_;
6528 if ((ac__type_new_ *) 0)
6530 if (sizeof (ac__type_new_))
6536 rm -f conftest.
$ac_objext
6537 if { (ac_try
="$ac_compile"
6539 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6540 *) ac_try_echo=$ac_try;;
6542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6543 (eval "$ac_compile") 2>conftest.er1
6545 grep -v '^ *+' conftest.er1 >conftest.err
6547 cat conftest.err >&5
6548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549 (exit $ac_status); } && {
6550 test -z "$ac_c_werror_flag" ||
6551 test ! -s conftest.err
6552 } && test -s conftest.$ac_objext; then
6553 ac_cv_type_mode_t=yes
6555 echo "$as_me: failed program was:" >&5
6556 sed 's/^/| /' conftest.$ac_ext >&5
6558 ac_cv_type_mode_t=no
6561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6563 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6564 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
6565 if test $ac_cv_type_mode_t = yes; then
6569 cat >>confdefs.h <<_ACEOF
6575 { echo "$as_me:$LINENO: checking for off_t" >&5
6576 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6577 if test "${ac_cv_type_off_t+set}" = set; then
6578 echo $ECHO_N "(cached) $ECHO_C" >&6
6580 cat >conftest.$ac_ext <<_ACEOF
6583 cat confdefs.h >>conftest.$ac_ext
6584 cat >>conftest.$ac_ext <<_ACEOF
6585 /* end confdefs.h. */
6586 $ac_includes_default
6587 typedef off_t ac__type_new_;
6591 if ((ac__type_new_ *) 0)
6593 if (sizeof (ac__type_new_))
6599 rm -f conftest.$ac_objext
6600 if { (ac_try="$ac_compile"
6602 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6603 *) ac_try_echo
=$ac_try;;
6605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6606 (eval "$ac_compile") 2>conftest.er1
6608 grep -v '^ *+' conftest.er1
>conftest.err
6610 cat conftest.err
>&5
6611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612 (exit $ac_status); } && {
6613 test -z "$ac_c_werror_flag" ||
6614 test ! -s conftest.err
6615 } && test -s conftest.
$ac_objext; then
6616 ac_cv_type_off_t
=yes
6618 echo "$as_me: failed program was:" >&5
6619 sed 's/^/| /' conftest.
$ac_ext >&5
6624 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6626 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6627 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6628 if test $ac_cv_type_off_t = yes; then
6632 cat >>confdefs.h
<<_ACEOF
6633 #define off_t long int
6638 { echo "$as_me:$LINENO: checking for pid_t" >&5
6639 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
6640 if test "${ac_cv_type_pid_t+set}" = set; then
6641 echo $ECHO_N "(cached) $ECHO_C" >&6
6643 cat >conftest.
$ac_ext <<_ACEOF
6646 cat confdefs.h
>>conftest.
$ac_ext
6647 cat >>conftest.
$ac_ext <<_ACEOF
6648 /* end confdefs.h. */
6649 $ac_includes_default
6650 typedef pid_t ac__type_new_;
6654 if ((ac__type_new_ *) 0)
6656 if (sizeof (ac__type_new_))
6662 rm -f conftest.
$ac_objext
6663 if { (ac_try
="$ac_compile"
6665 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6666 *) ac_try_echo=$ac_try;;
6668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6669 (eval "$ac_compile") 2>conftest.er1
6671 grep -v '^ *+' conftest.er1 >conftest.err
6673 cat conftest.err >&5
6674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675 (exit $ac_status); } && {
6676 test -z "$ac_c_werror_flag" ||
6677 test ! -s conftest.err
6678 } && test -s conftest.$ac_objext; then
6679 ac_cv_type_pid_t=yes
6681 echo "$as_me: failed program was:" >&5
6682 sed 's/^/| /' conftest.$ac_ext >&5
6687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6689 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6690 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
6691 if test $ac_cv_type_pid_t = yes; then
6695 cat >>confdefs.h <<_ACEOF
6701 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6702 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6703 if test "${ac_cv_type_signal+set}" = set; then
6704 echo $ECHO_N "(cached) $ECHO_C" >&6
6706 cat >conftest.$ac_ext <<_ACEOF
6709 cat confdefs.h >>conftest.$ac_ext
6710 cat >>conftest.$ac_ext <<_ACEOF
6711 /* end confdefs.h. */
6712 #include <sys/types.h>
6718 return *(signal (0, 0)) (0) == 1;
6723 rm -f conftest.$ac_objext
6724 if { (ac_try="$ac_compile"
6726 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6727 *) ac_try_echo
=$ac_try;;
6729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6730 (eval "$ac_compile") 2>conftest.er1
6732 grep -v '^ *+' conftest.er1
>conftest.err
6734 cat conftest.err
>&5
6735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736 (exit $ac_status); } && {
6737 test -z "$ac_c_werror_flag" ||
6738 test ! -s conftest.err
6739 } && test -s conftest.
$ac_objext; then
6740 ac_cv_type_signal
=int
6742 echo "$as_me: failed program was:" >&5
6743 sed 's/^/| /' conftest.
$ac_ext >&5
6745 ac_cv_type_signal
=void
6748 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6750 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6751 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6753 cat >>confdefs.h
<<_ACEOF
6754 #define RETSIGTYPE $ac_cv_type_signal
6758 { echo "$as_me:$LINENO: checking for size_t" >&5
6759 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6760 if test "${ac_cv_type_size_t+set}" = set; then
6761 echo $ECHO_N "(cached) $ECHO_C" >&6
6763 cat >conftest.
$ac_ext <<_ACEOF
6766 cat confdefs.h
>>conftest.
$ac_ext
6767 cat >>conftest.
$ac_ext <<_ACEOF
6768 /* end confdefs.h. */
6769 $ac_includes_default
6770 typedef size_t ac__type_new_;
6774 if ((ac__type_new_ *) 0)
6776 if (sizeof (ac__type_new_))
6782 rm -f conftest.
$ac_objext
6783 if { (ac_try
="$ac_compile"
6785 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6786 *) ac_try_echo=$ac_try;;
6788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6789 (eval "$ac_compile") 2>conftest.er1
6791 grep -v '^ *+' conftest.er1 >conftest.err
6793 cat conftest.err >&5
6794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795 (exit $ac_status); } && {
6796 test -z "$ac_c_werror_flag" ||
6797 test ! -s conftest.err
6798 } && test -s conftest.$ac_objext; then
6799 ac_cv_type_size_t=yes
6801 echo "$as_me: failed program was:" >&5
6802 sed 's/^/| /' conftest.$ac_ext >&5
6804 ac_cv_type_size_t=no
6807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6809 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6810 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
6811 if test $ac_cv_type_size_t = yes; then
6815 cat >>confdefs.h <<_ACEOF
6816 #define size_t unsigned int
6821 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6822 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
6823 if test "${ac_cv_type_uid_t+set}" = set; then
6824 echo $ECHO_N "(cached) $ECHO_C" >&6
6826 cat >conftest.$ac_ext <<_ACEOF
6829 cat confdefs.h >>conftest.$ac_ext
6830 cat >>conftest.$ac_ext <<_ACEOF
6831 /* end confdefs.h. */
6832 #include <sys/types.h>
6835 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6836 $EGREP "uid_t" >/dev/null 2>&1; then
6837 ac_cv_type_uid_t=yes
6844 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6845 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
6846 if test $ac_cv_type_uid_t = no; then
6848 cat >>confdefs.h <<\_ACEOF
6853 cat >>confdefs.h <<\_ACEOF
6859 { echo "$as_me:$LINENO: checking for ssize_t" >&5
6860 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
6861 if test "${ac_cv_type_ssize_t+set}" = set; then
6862 echo $ECHO_N "(cached) $ECHO_C" >&6
6864 cat >conftest.$ac_ext <<_ACEOF
6867 cat confdefs.h >>conftest.$ac_ext
6868 cat >>conftest.$ac_ext <<_ACEOF
6869 /* end confdefs.h. */
6870 $ac_includes_default
6871 typedef ssize_t ac__type_new_;
6875 if ((ac__type_new_ *) 0)
6877 if (sizeof (ac__type_new_))
6883 rm -f conftest.$ac_objext
6884 if { (ac_try="$ac_compile"
6886 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6887 *) ac_try_echo
=$ac_try;;
6889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6890 (eval "$ac_compile") 2>conftest.er1
6892 grep -v '^ *+' conftest.er1
>conftest.err
6894 cat conftest.err
>&5
6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); } && {
6897 test -z "$ac_c_werror_flag" ||
6898 test ! -s conftest.err
6899 } && test -s conftest.
$ac_objext; then
6900 ac_cv_type_ssize_t
=yes
6902 echo "$as_me: failed program was:" >&5
6903 sed 's/^/| /' conftest.
$ac_ext >&5
6905 ac_cv_type_ssize_t
=no
6908 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6910 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6911 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
6912 if test $ac_cv_type_ssize_t = yes; then
6914 cat >>confdefs.h
<<\_ACEOF
6915 #define HAVE_SSIZE_T 1
6921 # Sizes of various common basic types
6922 # ANSI C requires sizeof(char) == 1, so no need to check it
6923 { echo "$as_me:$LINENO: checking for int" >&5
6924 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
6925 if test "${ac_cv_type_int+set}" = set; then
6926 echo $ECHO_N "(cached) $ECHO_C" >&6
6928 cat >conftest.
$ac_ext <<_ACEOF
6931 cat confdefs.h
>>conftest.
$ac_ext
6932 cat >>conftest.
$ac_ext <<_ACEOF
6933 /* end confdefs.h. */
6934 $ac_includes_default
6935 typedef int ac__type_new_;
6939 if ((ac__type_new_ *) 0)
6941 if (sizeof (ac__type_new_))
6947 rm -f conftest.
$ac_objext
6948 if { (ac_try
="$ac_compile"
6950 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6951 *) ac_try_echo=$ac_try;;
6953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6954 (eval "$ac_compile") 2>conftest.er1
6956 grep -v '^ *+' conftest.er1 >conftest.err
6958 cat conftest.err >&5
6959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960 (exit $ac_status); } && {
6961 test -z "$ac_c_werror_flag" ||
6962 test ! -s conftest.err
6963 } && test -s conftest.$ac_objext; then
6966 echo "$as_me: failed program was:" >&5
6967 sed 's/^/| /' conftest.$ac_ext >&5
6972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6974 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6975 echo "${ECHO_T}$ac_cv_type_int" >&6; }
6977 # The cast to long int works around a bug in the HP C Compiler
6978 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6979 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
6980 # This bug is HP SR number 8606223364.
6981 { echo "$as_me:$LINENO: checking size of int" >&5
6982 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
6983 if test "${ac_cv_sizeof_int+set}" = set; then
6984 echo $ECHO_N "(cached) $ECHO_C" >&6
6986 if test "$cross_compiling" = yes; then
6987 # Depending upon the size, compute the lo and hi bounds.
6988 cat >conftest.$ac_ext <<_ACEOF
6991 cat confdefs.h >>conftest.$ac_ext
6992 cat >>conftest.$ac_ext <<_ACEOF
6993 /* end confdefs.h. */
6994 $ac_includes_default
6995 typedef int ac__type_sizeof_;
6999 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7006 rm -f conftest.$ac_objext
7007 if { (ac_try="$ac_compile"
7009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7010 *) ac_try_echo=$ac_try;;
7012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7013 (eval "$ac_compile") 2>conftest.er1
7015 grep -v '^
*+' conftest.er1 >conftest.err
7017 cat conftest.err >&5
7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); } && {
7020 test -z "$ac_c_werror_flag" ||
7021 test ! -s conftest.err
7022 } && test -s conftest.$ac_objext; then
7025 cat >conftest.$ac_ext <<_ACEOF
7028 cat confdefs.h >>conftest.$ac_ext
7029 cat >>conftest.$ac_ext <<_ACEOF
7030 /* end confdefs.h. */
7031 $ac_includes_default
7032 typedef int ac__type_sizeof_;
7036 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7043 rm -f conftest.$ac_objext
7044 if { (ac_try="$ac_compile"
7046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7047 *) ac_try_echo=$ac_try;;
7049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7050 (eval "$ac_compile") 2>conftest.er1
7052 grep -v '^
*+' conftest.er1 >conftest.err
7054 cat conftest.err >&5
7055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056 (exit $ac_status); } && {
7057 test -z "$ac_c_werror_flag" ||
7058 test ! -s conftest.err
7059 } && test -s conftest.$ac_objext; then
7060 ac_hi=$ac_mid; break
7062 echo "$as_me: failed program was:" >&5
7063 sed 's
/^
/|
/' conftest.$ac_ext >&5
7065 ac_lo=`expr $ac_mid + 1`
7066 if test $ac_lo -le $ac_mid; then
7070 ac_mid=`expr 2 '*' $ac_mid + 1`
7073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7076 echo "$as_me: failed program was:" >&5
7077 sed 's
/^
/|
/' conftest.$ac_ext >&5
7079 cat >conftest.$ac_ext <<_ACEOF
7082 cat confdefs.h >>conftest.$ac_ext
7083 cat >>conftest.$ac_ext <<_ACEOF
7084 /* end confdefs.h. */
7085 $ac_includes_default
7086 typedef int ac__type_sizeof_;
7090 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7097 rm -f conftest.$ac_objext
7098 if { (ac_try="$ac_compile"
7100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7101 *) ac_try_echo=$ac_try;;
7103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7104 (eval "$ac_compile") 2>conftest.er1
7106 grep -v '^
*+' conftest.er1 >conftest.err
7108 cat conftest.err >&5
7109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110 (exit $ac_status); } && {
7111 test -z "$ac_c_werror_flag" ||
7112 test ! -s conftest.err
7113 } && test -s conftest.$ac_objext; then
7116 cat >conftest.$ac_ext <<_ACEOF
7119 cat confdefs.h >>conftest.$ac_ext
7120 cat >>conftest.$ac_ext <<_ACEOF
7121 /* end confdefs.h. */
7122 $ac_includes_default
7123 typedef int ac__type_sizeof_;
7127 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7134 rm -f conftest.$ac_objext
7135 if { (ac_try="$ac_compile"
7137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7138 *) ac_try_echo=$ac_try;;
7140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7141 (eval "$ac_compile") 2>conftest.er1
7143 grep -v '^
*+' conftest.er1 >conftest.err
7145 cat conftest.err >&5
7146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147 (exit $ac_status); } && {
7148 test -z "$ac_c_werror_flag" ||
7149 test ! -s conftest.err
7150 } && test -s conftest.$ac_objext; then
7151 ac_lo=$ac_mid; break
7153 echo "$as_me: failed program was:" >&5
7154 sed 's
/^
/|
/' conftest.$ac_ext >&5
7156 ac_hi=`expr '(' $ac_mid ')' - 1`
7157 if test $ac_mid -le $ac_hi; then
7161 ac_mid=`expr 2 '*' $ac_mid`
7164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7167 echo "$as_me: failed program was:" >&5
7168 sed 's
/^
/|
/' conftest.$ac_ext >&5
7173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7177 # Binary search between lo and hi bounds.
7178 while test "x$ac_lo" != "x$ac_hi"; do
7179 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7180 cat >conftest.$ac_ext <<_ACEOF
7183 cat confdefs.h >>conftest.$ac_ext
7184 cat >>conftest.$ac_ext <<_ACEOF
7185 /* end confdefs.h. */
7186 $ac_includes_default
7187 typedef int ac__type_sizeof_;
7191 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7198 rm -f conftest.$ac_objext
7199 if { (ac_try="$ac_compile"
7201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7202 *) ac_try_echo=$ac_try;;
7204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7205 (eval "$ac_compile") 2>conftest.er1
7207 grep -v '^
*+' conftest.er1 >conftest.err
7209 cat conftest.err >&5
7210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211 (exit $ac_status); } && {
7212 test -z "$ac_c_werror_flag" ||
7213 test ! -s conftest.err
7214 } && test -s conftest.$ac_objext; then
7217 echo "$as_me: failed program was:" >&5
7218 sed 's
/^
/|
/' conftest.$ac_ext >&5
7220 ac_lo=`expr '(' $ac_mid ')' + 1`
7223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7226 ?*) ac_cv_sizeof_int=$ac_lo;;
7227 '') if test "$ac_cv_type_int" = yes; then
7228 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7229 See \`config.log' for more details.
" >&5
7230 echo "$as_me: error
: cannot compute sizeof
(int
)
7231 See \
`config.log' for more details." >&2;}
7232 { (exit 77); exit 77; }; }
7238 cat >conftest.$ac_ext <<_ACEOF
7241 cat confdefs.h >>conftest.$ac_ext
7242 cat >>conftest.$ac_ext <<_ACEOF
7243 /* end confdefs.h. */
7244 $ac_includes_default
7245 typedef int ac__type_sizeof_;
7246 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7247 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7254 FILE *f = fopen ("conftest.val", "w");
7257 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7259 long int i = longval ();
7260 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7262 fprintf (f, "%ld\n", i);
7266 unsigned long int i = ulongval ();
7267 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7269 fprintf (f, "%lu\n", i);
7271 return ferror (f) || fclose (f) != 0;
7277 rm -f conftest$ac_exeext
7278 if { (ac_try="$ac_link"
7280 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7281 *) ac_try_echo
=$ac_try;;
7283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7284 (eval "$ac_link") 2>&5
7286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7288 { (case "(($ac_try" in
7289 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7290 *) ac_try_echo=$ac_try;;
7292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7293 (eval "$ac_try") 2>&5
7295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296 (exit $ac_status); }; }; then
7297 ac_cv_sizeof_int=`cat conftest.val
`
7299 echo "$as_me: program exited with status $ac_status" >&5
7300 echo "$as_me: failed program was:" >&5
7301 sed 's/^/| /' conftest.$ac_ext >&5
7304 if test "$ac_cv_type_int" = yes; then
7305 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7306 See \`config.log
' for more details." >&5
7307 echo "$as_me: error: cannot compute sizeof (int)
7308 See \`config.log' for more details.
" >&2;}
7309 { (exit 77); exit 77; }; }
7314 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7318 { echo "$as_me:$LINENO: result
: $ac_cv_sizeof_int" >&5
7319 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7323 cat >>confdefs.h <<_ACEOF
7324 #define SIZEOF_INT $ac_cv_sizeof_int
7328 { echo "$as_me:$LINENO: checking
for long
" >&5
7329 echo $ECHO_N "checking
for long...
$ECHO_C" >&6; }
7330 if test "${ac_cv_type_long+set}" = set; then
7331 echo $ECHO_N "(cached
) $ECHO_C" >&6
7333 cat >conftest.$ac_ext <<_ACEOF
7336 cat confdefs.h >>conftest.$ac_ext
7337 cat >>conftest.$ac_ext <<_ACEOF
7338 /* end confdefs.h. */
7339 $ac_includes_default
7340 typedef long ac__type_new_;
7344 if ((ac__type_new_ *) 0)
7346 if (sizeof (ac__type_new_))
7352 rm -f conftest.$ac_objext
7353 if { (ac_try="$ac_compile"
7355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7356 *) ac_try_echo=$ac_try;;
7358 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7359 (eval "$ac_compile") 2>conftest.er1
7361 grep -v '^ *+' conftest.er1 >conftest.err
7363 cat conftest.err >&5
7364 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7365 (exit $ac_status); } && {
7366 test -z "$ac_c_werror_flag" ||
7367 test ! -s conftest.err
7368 } && test -s conftest.$ac_objext; then
7371 echo "$as_me: failed program was
:" >&5
7372 sed 's/^/| /' conftest.$ac_ext >&5
7377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7379 { echo "$as_me:$LINENO: result
: $ac_cv_type_long" >&5
7380 echo "${ECHO_T}$ac_cv_type_long" >&6; }
7382 # The cast to long int works around a bug in the HP C Compiler
7383 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7384 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7385 # This bug is HP SR number 8606223364.
7386 { echo "$as_me:$LINENO: checking size of long
" >&5
7387 echo $ECHO_N "checking size of long...
$ECHO_C" >&6; }
7388 if test "${ac_cv_sizeof_long+set}" = set; then
7389 echo $ECHO_N "(cached
) $ECHO_C" >&6
7391 if test "$cross_compiling" = yes; then
7392 # Depending upon the size, compute the lo and hi bounds.
7393 cat >conftest.$ac_ext <<_ACEOF
7396 cat confdefs.h >>conftest.$ac_ext
7397 cat >>conftest.$ac_ext <<_ACEOF
7398 /* end confdefs.h. */
7399 $ac_includes_default
7400 typedef long ac__type_sizeof_;
7404 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7411 rm -f conftest.$ac_objext
7412 if { (ac_try="$ac_compile"
7414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7415 *) ac_try_echo=$ac_try;;
7417 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7418 (eval "$ac_compile") 2>conftest.er1
7420 grep -v '^ *+' conftest.er1 >conftest.err
7422 cat conftest.err >&5
7423 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7424 (exit $ac_status); } && {
7425 test -z "$ac_c_werror_flag" ||
7426 test ! -s conftest.err
7427 } && test -s conftest.$ac_objext; then
7430 cat >conftest.$ac_ext <<_ACEOF
7433 cat confdefs.h >>conftest.$ac_ext
7434 cat >>conftest.$ac_ext <<_ACEOF
7435 /* end confdefs.h. */
7436 $ac_includes_default
7437 typedef long ac__type_sizeof_;
7441 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7448 rm -f conftest.$ac_objext
7449 if { (ac_try="$ac_compile"
7451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7452 *) ac_try_echo=$ac_try;;
7454 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7455 (eval "$ac_compile") 2>conftest.er1
7457 grep -v '^ *+' conftest.er1 >conftest.err
7459 cat conftest.err >&5
7460 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7461 (exit $ac_status); } && {
7462 test -z "$ac_c_werror_flag" ||
7463 test ! -s conftest.err
7464 } && test -s conftest.$ac_objext; then
7465 ac_hi=$ac_mid; break
7467 echo "$as_me: failed program was
:" >&5
7468 sed 's/^/| /' conftest.$ac_ext >&5
7470 ac_lo=`expr $ac_mid + 1`
7471 if test $ac_lo -le $ac_mid; then
7475 ac_mid=`expr 2 '*' $ac_mid + 1`
7478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7481 echo "$as_me: failed program was
:" >&5
7482 sed 's/^/| /' conftest.$ac_ext >&5
7484 cat >conftest.$ac_ext <<_ACEOF
7487 cat confdefs.h >>conftest.$ac_ext
7488 cat >>conftest.$ac_ext <<_ACEOF
7489 /* end confdefs.h. */
7490 $ac_includes_default
7491 typedef long ac__type_sizeof_;
7495 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7502 rm -f conftest.$ac_objext
7503 if { (ac_try="$ac_compile"
7505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7506 *) ac_try_echo=$ac_try;;
7508 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7509 (eval "$ac_compile") 2>conftest.er1
7511 grep -v '^ *+' conftest.er1 >conftest.err
7513 cat conftest.err >&5
7514 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7515 (exit $ac_status); } && {
7516 test -z "$ac_c_werror_flag" ||
7517 test ! -s conftest.err
7518 } && test -s conftest.$ac_objext; then
7521 cat >conftest.$ac_ext <<_ACEOF
7524 cat confdefs.h >>conftest.$ac_ext
7525 cat >>conftest.$ac_ext <<_ACEOF
7526 /* end confdefs.h. */
7527 $ac_includes_default
7528 typedef long ac__type_sizeof_;
7532 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7539 rm -f conftest.$ac_objext
7540 if { (ac_try="$ac_compile"
7542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7543 *) ac_try_echo=$ac_try;;
7545 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7546 (eval "$ac_compile") 2>conftest.er1
7548 grep -v '^ *+' conftest.er1 >conftest.err
7550 cat conftest.err >&5
7551 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7552 (exit $ac_status); } && {
7553 test -z "$ac_c_werror_flag" ||
7554 test ! -s conftest.err
7555 } && test -s conftest.$ac_objext; then
7556 ac_lo=$ac_mid; break
7558 echo "$as_me: failed program was
:" >&5
7559 sed 's/^/| /' conftest.$ac_ext >&5
7561 ac_hi=`expr '(' $ac_mid ')' - 1`
7562 if test $ac_mid -le $ac_hi; then
7566 ac_mid=`expr 2 '*' $ac_mid`
7569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7572 echo "$as_me: failed program was
:" >&5
7573 sed 's/^/| /' conftest.$ac_ext >&5
7578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7582 # Binary search between lo and hi bounds.
7583 while test "x
$ac_lo" != "x
$ac_hi"; do
7584 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7585 cat >conftest.$ac_ext <<_ACEOF
7588 cat confdefs.h >>conftest.$ac_ext
7589 cat >>conftest.$ac_ext <<_ACEOF
7590 /* end confdefs.h. */
7591 $ac_includes_default
7592 typedef long ac__type_sizeof_;
7596 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7603 rm -f conftest.$ac_objext
7604 if { (ac_try="$ac_compile"
7606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7607 *) ac_try_echo=$ac_try;;
7609 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7610 (eval "$ac_compile") 2>conftest.er1
7612 grep -v '^ *+' conftest.er1 >conftest.err
7614 cat conftest.err >&5
7615 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7616 (exit $ac_status); } && {
7617 test -z "$ac_c_werror_flag" ||
7618 test ! -s conftest.err
7619 } && test -s conftest.$ac_objext; then
7622 echo "$as_me: failed program was
:" >&5
7623 sed 's/^/| /' conftest.$ac_ext >&5
7625 ac_lo=`expr '(' $ac_mid ')' + 1`
7628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7631 ?*) ac_cv_sizeof_long=$ac_lo;;
7632 '') if test "$ac_cv_type_long" = yes; then
7633 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long
)
7634 See \
`config.log' for more details." >&5
7635 echo "$as_me: error: cannot compute sizeof (long)
7636 See \`config.log
' for more details." >&2;}
7637 { (exit 77); exit 77; }; }
7643 cat >conftest.$ac_ext <<_ACEOF
7646 cat confdefs.h >>conftest.$ac_ext
7647 cat >>conftest.$ac_ext <<_ACEOF
7648 /* end confdefs.h. */
7649 $ac_includes_default
7650 typedef long ac__type_sizeof_;
7651 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7652 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7659 FILE *f = fopen ("conftest.val", "w");
7662 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7664 long int i = longval ();
7665 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7667 fprintf (f, "%ld\n", i);
7671 unsigned long int i = ulongval ();
7672 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7674 fprintf (f, "%lu\n", i);
7676 return ferror (f) || fclose (f) != 0;
7682 rm -f conftest$ac_exeext
7683 if { (ac_try="$ac_link"
7685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7686 *) ac_try_echo=$ac_try;;
7688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7689 (eval "$ac_link") 2>&5
7691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
7693 { (case "(($ac_try" in
7694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7695 *) ac_try_echo=$ac_try;;
7697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7698 (eval "$ac_try") 2>&5
7700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701 (exit $ac_status); }; }; then
7702 ac_cv_sizeof_long=`cat conftest.val`
7704 echo "$as_me: program exited with status $ac_status" >&5
7705 echo "$as_me: failed program was:" >&5
7706 sed 's
/^
/|
/' conftest.$ac_ext >&5
7709 if test "$ac_cv_type_long" = yes; then
7710 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
7711 See \`config.log' for more details.
" >&5
7712 echo "$as_me: error
: cannot compute sizeof
(long
)
7713 See \
`config.log' for more details." >&2;}
7714 { (exit 77); exit 77; }; }
7719 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7723 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7724 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
7728 cat >>confdefs.h <<_ACEOF
7729 #define SIZEOF_LONG $ac_cv_sizeof_long
7733 { echo "$as_me:$LINENO: checking for void *" >&5
7734 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
7735 if test "${ac_cv_type_void_p+set}" = set; then
7736 echo $ECHO_N "(cached) $ECHO_C" >&6
7738 cat >conftest.$ac_ext <<_ACEOF
7741 cat confdefs.h >>conftest.$ac_ext
7742 cat >>conftest.$ac_ext <<_ACEOF
7743 /* end confdefs.h. */
7744 $ac_includes_default
7745 typedef void * ac__type_new_;
7749 if ((ac__type_new_ *) 0)
7751 if (sizeof (ac__type_new_))
7757 rm -f conftest.$ac_objext
7758 if { (ac_try="$ac_compile"
7760 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7761 *) ac_try_echo
=$ac_try;;
7763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7764 (eval "$ac_compile") 2>conftest.er1
7766 grep -v '^ *+' conftest.er1
>conftest.err
7768 cat conftest.err
>&5
7769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770 (exit $ac_status); } && {
7771 test -z "$ac_c_werror_flag" ||
7772 test ! -s conftest.err
7773 } && test -s conftest.
$ac_objext; then
7774 ac_cv_type_void_p
=yes
7776 echo "$as_me: failed program was:" >&5
7777 sed 's/^/| /' conftest.
$ac_ext >&5
7779 ac_cv_type_void_p
=no
7782 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7784 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
7785 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
7787 # The cast to long int works around a bug in the HP C Compiler
7788 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7789 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7790 # This bug is HP SR number 8606223364.
7791 { echo "$as_me:$LINENO: checking size of void *" >&5
7792 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
7793 if test "${ac_cv_sizeof_void_p+set}" = set; then
7794 echo $ECHO_N "(cached) $ECHO_C" >&6
7796 if test "$cross_compiling" = yes; then
7797 # Depending upon the size, compute the lo and hi bounds.
7798 cat >conftest.
$ac_ext <<_ACEOF
7801 cat confdefs.h
>>conftest.
$ac_ext
7802 cat >>conftest.
$ac_ext <<_ACEOF
7803 /* end confdefs.h. */
7804 $ac_includes_default
7805 typedef void * ac__type_sizeof_;
7809 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7816 rm -f conftest.
$ac_objext
7817 if { (ac_try
="$ac_compile"
7819 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7820 *) ac_try_echo=$ac_try;;
7822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7823 (eval "$ac_compile") 2>conftest.er1
7825 grep -v '^ *+' conftest.er1 >conftest.err
7827 cat conftest.err >&5
7828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829 (exit $ac_status); } && {
7830 test -z "$ac_c_werror_flag" ||
7831 test ! -s conftest.err
7832 } && test -s conftest.$ac_objext; then
7835 cat >conftest.$ac_ext <<_ACEOF
7838 cat confdefs.h >>conftest.$ac_ext
7839 cat >>conftest.$ac_ext <<_ACEOF
7840 /* end confdefs.h. */
7841 $ac_includes_default
7842 typedef void * ac__type_sizeof_;
7846 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7853 rm -f conftest.$ac_objext
7854 if { (ac_try="$ac_compile"
7856 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7857 *) ac_try_echo
=$ac_try;;
7859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7860 (eval "$ac_compile") 2>conftest.er1
7862 grep -v '^ *+' conftest.er1
>conftest.err
7864 cat conftest.err
>&5
7865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866 (exit $ac_status); } && {
7867 test -z "$ac_c_werror_flag" ||
7868 test ! -s conftest.err
7869 } && test -s conftest.
$ac_objext; then
7870 ac_hi
=$ac_mid; break
7872 echo "$as_me: failed program was:" >&5
7873 sed 's/^/| /' conftest.
$ac_ext >&5
7875 ac_lo
=`expr $ac_mid + 1`
7876 if test $ac_lo -le $ac_mid; then
7880 ac_mid
=`expr 2 '*' $ac_mid + 1`
7883 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7886 echo "$as_me: failed program was:" >&5
7887 sed 's/^/| /' conftest.
$ac_ext >&5
7889 cat >conftest.
$ac_ext <<_ACEOF
7892 cat confdefs.h
>>conftest.
$ac_ext
7893 cat >>conftest.
$ac_ext <<_ACEOF
7894 /* end confdefs.h. */
7895 $ac_includes_default
7896 typedef void * ac__type_sizeof_;
7900 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7907 rm -f conftest.
$ac_objext
7908 if { (ac_try
="$ac_compile"
7910 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7911 *) ac_try_echo=$ac_try;;
7913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7914 (eval "$ac_compile") 2>conftest.er1
7916 grep -v '^ *+' conftest.er1 >conftest.err
7918 cat conftest.err >&5
7919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920 (exit $ac_status); } && {
7921 test -z "$ac_c_werror_flag" ||
7922 test ! -s conftest.err
7923 } && test -s conftest.$ac_objext; then
7926 cat >conftest.$ac_ext <<_ACEOF
7929 cat confdefs.h >>conftest.$ac_ext
7930 cat >>conftest.$ac_ext <<_ACEOF
7931 /* end confdefs.h. */
7932 $ac_includes_default
7933 typedef void * ac__type_sizeof_;
7937 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7944 rm -f conftest.$ac_objext
7945 if { (ac_try="$ac_compile"
7947 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7948 *) ac_try_echo
=$ac_try;;
7950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7951 (eval "$ac_compile") 2>conftest.er1
7953 grep -v '^ *+' conftest.er1
>conftest.err
7955 cat conftest.err
>&5
7956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957 (exit $ac_status); } && {
7958 test -z "$ac_c_werror_flag" ||
7959 test ! -s conftest.err
7960 } && test -s conftest.
$ac_objext; then
7961 ac_lo
=$ac_mid; break
7963 echo "$as_me: failed program was:" >&5
7964 sed 's/^/| /' conftest.
$ac_ext >&5
7966 ac_hi
=`expr '(' $ac_mid ')' - 1`
7967 if test $ac_mid -le $ac_hi; then
7971 ac_mid
=`expr 2 '*' $ac_mid`
7974 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7977 echo "$as_me: failed program was:" >&5
7978 sed 's/^/| /' conftest.
$ac_ext >&5
7983 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7986 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7987 # Binary search between lo and hi bounds.
7988 while test "x$ac_lo" != "x$ac_hi"; do
7989 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7990 cat >conftest.
$ac_ext <<_ACEOF
7993 cat confdefs.h
>>conftest.
$ac_ext
7994 cat >>conftest.
$ac_ext <<_ACEOF
7995 /* end confdefs.h. */
7996 $ac_includes_default
7997 typedef void * ac__type_sizeof_;
8001 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8008 rm -f conftest.
$ac_objext
8009 if { (ac_try
="$ac_compile"
8011 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8012 *) ac_try_echo=$ac_try;;
8014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8015 (eval "$ac_compile") 2>conftest.er1
8017 grep -v '^ *+' conftest.er1 >conftest.err
8019 cat conftest.err >&5
8020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8021 (exit $ac_status); } && {
8022 test -z "$ac_c_werror_flag" ||
8023 test ! -s conftest.err
8024 } && test -s conftest.$ac_objext; then
8027 echo "$as_me: failed program was:" >&5
8028 sed 's/^/| /' conftest.$ac_ext >&5
8030 ac_lo=`expr '(' $ac_mid ')' + 1`
8033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8036 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8037 '') if test "$ac_cv_type_void_p" = yes; then
8038 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8039 See \`config.log
' for more details." >&5
8040 echo "$as_me: error: cannot compute sizeof (void *)
8041 See \`config.log' for more details.
" >&2;}
8042 { (exit 77); exit 77; }; }
8044 ac_cv_sizeof_void_p=0
8048 cat >conftest.$ac_ext <<_ACEOF
8051 cat confdefs.h >>conftest.$ac_ext
8052 cat >>conftest.$ac_ext <<_ACEOF
8053 /* end confdefs.h. */
8054 $ac_includes_default
8055 typedef void * ac__type_sizeof_;
8056 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8057 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8064 FILE *f = fopen ("conftest.val
", "w
");
8067 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8069 long int i = longval ();
8070 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8072 fprintf (f, "%ld
\n", i);
8076 unsigned long int i = ulongval ();
8077 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8079 fprintf (f, "%lu
\n", i);
8081 return ferror (f) || fclose (f) != 0;
8087 rm -f conftest$ac_exeext
8088 if { (ac_try="$ac_link"
8090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8091 *) ac_try_echo=$ac_try;;
8093 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8094 (eval "$ac_link") 2>&5
8096 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8097 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8098 { (case "(($ac_try" in
8099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8100 *) ac_try_echo=$ac_try;;
8102 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8103 (eval "$ac_try") 2>&5
8105 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8106 (exit $ac_status); }; }; then
8107 ac_cv_sizeof_void_p=`cat conftest.val`
8109 echo "$as_me: program exited with status
$ac_status" >&5
8110 echo "$as_me: failed program was
:" >&5
8111 sed 's/^/| /' conftest.$ac_ext >&5
8114 if test "$ac_cv_type_void_p" = yes; then
8115 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(void
*)
8116 See \
`config.log' for more details." >&5
8117 echo "$as_me: error: cannot compute sizeof (void *)
8118 See \`config.log
' for more details." >&2;}
8119 { (exit 77); exit 77; }; }
8121 ac_cv_sizeof_void_p=0
8124 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8128 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8129 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8133 cat >>confdefs.h <<_ACEOF
8134 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8138 { echo "$as_me:$LINENO: checking for short" >&5
8139 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
8140 if test "${ac_cv_type_short+set}" = set; then
8141 echo $ECHO_N "(cached) $ECHO_C" >&6
8143 cat >conftest.$ac_ext <<_ACEOF
8146 cat confdefs.h >>conftest.$ac_ext
8147 cat >>conftest.$ac_ext <<_ACEOF
8148 /* end confdefs.h. */
8149 $ac_includes_default
8150 typedef short ac__type_new_;
8154 if ((ac__type_new_ *) 0)
8156 if (sizeof (ac__type_new_))
8162 rm -f conftest.$ac_objext
8163 if { (ac_try="$ac_compile"
8165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8166 *) ac_try_echo=$ac_try;;
8168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8169 (eval "$ac_compile") 2>conftest.er1
8171 grep -v '^
*+' conftest.er1 >conftest.err
8173 cat conftest.err >&5
8174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); } && {
8176 test -z "$ac_c_werror_flag" ||
8177 test ! -s conftest.err
8178 } && test -s conftest.$ac_objext; then
8179 ac_cv_type_short=yes
8181 echo "$as_me: failed program was:" >&5
8182 sed 's
/^
/|
/' conftest.$ac_ext >&5
8187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8189 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8190 echo "${ECHO_T}$ac_cv_type_short" >&6; }
8192 # The cast to long int works around a bug in the HP C Compiler
8193 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8194 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8195 # This bug is HP SR number 8606223364.
8196 { echo "$as_me:$LINENO: checking size of short" >&5
8197 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8198 if test "${ac_cv_sizeof_short+set}" = set; then
8199 echo $ECHO_N "(cached) $ECHO_C" >&6
8201 if test "$cross_compiling" = yes; then
8202 # Depending upon the size, compute the lo and hi bounds.
8203 cat >conftest.
$ac_ext <<_ACEOF
8206 cat confdefs.h
>>conftest.
$ac_ext
8207 cat >>conftest.
$ac_ext <<_ACEOF
8208 /* end confdefs.h. */
8209 $ac_includes_default
8210 typedef short ac__type_sizeof_;
8214 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8221 rm -f conftest.
$ac_objext
8222 if { (ac_try
="$ac_compile"
8224 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8225 *) ac_try_echo=$ac_try;;
8227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8228 (eval "$ac_compile") 2>conftest.er1
8230 grep -v '^ *+' conftest.er1 >conftest.err
8232 cat conftest.err >&5
8233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234 (exit $ac_status); } && {
8235 test -z "$ac_c_werror_flag" ||
8236 test ! -s conftest.err
8237 } && test -s conftest.$ac_objext; then
8240 cat >conftest.$ac_ext <<_ACEOF
8243 cat confdefs.h >>conftest.$ac_ext
8244 cat >>conftest.$ac_ext <<_ACEOF
8245 /* end confdefs.h. */
8246 $ac_includes_default
8247 typedef short ac__type_sizeof_;
8251 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8258 rm -f conftest.$ac_objext
8259 if { (ac_try="$ac_compile"
8261 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8262 *) ac_try_echo
=$ac_try;;
8264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8265 (eval "$ac_compile") 2>conftest.er1
8267 grep -v '^ *+' conftest.er1
>conftest.err
8269 cat conftest.err
>&5
8270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271 (exit $ac_status); } && {
8272 test -z "$ac_c_werror_flag" ||
8273 test ! -s conftest.err
8274 } && test -s conftest.
$ac_objext; then
8275 ac_hi
=$ac_mid; break
8277 echo "$as_me: failed program was:" >&5
8278 sed 's/^/| /' conftest.
$ac_ext >&5
8280 ac_lo
=`expr $ac_mid + 1`
8281 if test $ac_lo -le $ac_mid; then
8285 ac_mid
=`expr 2 '*' $ac_mid + 1`
8288 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8291 echo "$as_me: failed program was:" >&5
8292 sed 's/^/| /' conftest.
$ac_ext >&5
8294 cat >conftest.
$ac_ext <<_ACEOF
8297 cat confdefs.h
>>conftest.
$ac_ext
8298 cat >>conftest.
$ac_ext <<_ACEOF
8299 /* end confdefs.h. */
8300 $ac_includes_default
8301 typedef short ac__type_sizeof_;
8305 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8312 rm -f conftest.
$ac_objext
8313 if { (ac_try
="$ac_compile"
8315 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8316 *) ac_try_echo=$ac_try;;
8318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8319 (eval "$ac_compile") 2>conftest.er1
8321 grep -v '^ *+' conftest.er1 >conftest.err
8323 cat conftest.err >&5
8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325 (exit $ac_status); } && {
8326 test -z "$ac_c_werror_flag" ||
8327 test ! -s conftest.err
8328 } && test -s conftest.$ac_objext; then
8331 cat >conftest.$ac_ext <<_ACEOF
8334 cat confdefs.h >>conftest.$ac_ext
8335 cat >>conftest.$ac_ext <<_ACEOF
8336 /* end confdefs.h. */
8337 $ac_includes_default
8338 typedef short ac__type_sizeof_;
8342 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8349 rm -f conftest.$ac_objext
8350 if { (ac_try="$ac_compile"
8352 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8353 *) ac_try_echo
=$ac_try;;
8355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8356 (eval "$ac_compile") 2>conftest.er1
8358 grep -v '^ *+' conftest.er1
>conftest.err
8360 cat conftest.err
>&5
8361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362 (exit $ac_status); } && {
8363 test -z "$ac_c_werror_flag" ||
8364 test ! -s conftest.err
8365 } && test -s conftest.
$ac_objext; then
8366 ac_lo
=$ac_mid; break
8368 echo "$as_me: failed program was:" >&5
8369 sed 's/^/| /' conftest.
$ac_ext >&5
8371 ac_hi
=`expr '(' $ac_mid ')' - 1`
8372 if test $ac_mid -le $ac_hi; then
8376 ac_mid
=`expr 2 '*' $ac_mid`
8379 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8382 echo "$as_me: failed program was:" >&5
8383 sed 's/^/| /' conftest.
$ac_ext >&5
8388 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8391 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8392 # Binary search between lo and hi bounds.
8393 while test "x$ac_lo" != "x$ac_hi"; do
8394 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8395 cat >conftest.
$ac_ext <<_ACEOF
8398 cat confdefs.h
>>conftest.
$ac_ext
8399 cat >>conftest.
$ac_ext <<_ACEOF
8400 /* end confdefs.h. */
8401 $ac_includes_default
8402 typedef short ac__type_sizeof_;
8406 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8413 rm -f conftest.
$ac_objext
8414 if { (ac_try
="$ac_compile"
8416 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8417 *) ac_try_echo=$ac_try;;
8419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8420 (eval "$ac_compile") 2>conftest.er1
8422 grep -v '^ *+' conftest.er1 >conftest.err
8424 cat conftest.err >&5
8425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426 (exit $ac_status); } && {
8427 test -z "$ac_c_werror_flag" ||
8428 test ! -s conftest.err
8429 } && test -s conftest.$ac_objext; then
8432 echo "$as_me: failed program was:" >&5
8433 sed 's/^/| /' conftest.$ac_ext >&5
8435 ac_lo=`expr '(' $ac_mid ')' + 1`
8438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8441 ?*) ac_cv_sizeof_short=$ac_lo;;
8442 '') if test "$ac_cv_type_short" = yes; then
8443 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8444 See \`config.log
' for more details." >&5
8445 echo "$as_me: error: cannot compute sizeof (short)
8446 See \`config.log' for more details.
" >&2;}
8447 { (exit 77); exit 77; }; }
8449 ac_cv_sizeof_short=0
8453 cat >conftest.$ac_ext <<_ACEOF
8456 cat confdefs.h >>conftest.$ac_ext
8457 cat >>conftest.$ac_ext <<_ACEOF
8458 /* end confdefs.h. */
8459 $ac_includes_default
8460 typedef short ac__type_sizeof_;
8461 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8462 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8469 FILE *f = fopen ("conftest.val
", "w
");
8472 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8474 long int i = longval ();
8475 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8477 fprintf (f, "%ld
\n", i);
8481 unsigned long int i = ulongval ();
8482 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8484 fprintf (f, "%lu
\n", i);
8486 return ferror (f) || fclose (f) != 0;
8492 rm -f conftest$ac_exeext
8493 if { (ac_try="$ac_link"
8495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8496 *) ac_try_echo=$ac_try;;
8498 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8499 (eval "$ac_link") 2>&5
8501 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8502 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8503 { (case "(($ac_try" in
8504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8505 *) ac_try_echo=$ac_try;;
8507 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8508 (eval "$ac_try") 2>&5
8510 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8511 (exit $ac_status); }; }; then
8512 ac_cv_sizeof_short=`cat conftest.val`
8514 echo "$as_me: program exited with status
$ac_status" >&5
8515 echo "$as_me: failed program was
:" >&5
8516 sed 's/^/| /' conftest.$ac_ext >&5
8519 if test "$ac_cv_type_short" = yes; then
8520 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(short
)
8521 See \
`config.log' for more details." >&5
8522 echo "$as_me: error: cannot compute sizeof (short)
8523 See \`config.log
' for more details." >&2;}
8524 { (exit 77); exit 77; }; }
8526 ac_cv_sizeof_short=0
8529 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8533 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
8534 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
8538 cat >>confdefs.h <<_ACEOF
8539 #define SIZEOF_SHORT $ac_cv_sizeof_short
8543 { echo "$as_me:$LINENO: checking for float" >&5
8544 echo $ECHO_N "checking for float... $ECHO_C" >&6; }
8545 if test "${ac_cv_type_float+set}" = set; then
8546 echo $ECHO_N "(cached) $ECHO_C" >&6
8548 cat >conftest.$ac_ext <<_ACEOF
8551 cat confdefs.h >>conftest.$ac_ext
8552 cat >>conftest.$ac_ext <<_ACEOF
8553 /* end confdefs.h. */
8554 $ac_includes_default
8555 typedef float ac__type_new_;
8559 if ((ac__type_new_ *) 0)
8561 if (sizeof (ac__type_new_))
8567 rm -f conftest.$ac_objext
8568 if { (ac_try="$ac_compile"
8570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8571 *) ac_try_echo=$ac_try;;
8573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8574 (eval "$ac_compile") 2>conftest.er1
8576 grep -v '^
*+' conftest.er1 >conftest.err
8578 cat conftest.err >&5
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); } && {
8581 test -z "$ac_c_werror_flag" ||
8582 test ! -s conftest.err
8583 } && test -s conftest.$ac_objext; then
8584 ac_cv_type_float=yes
8586 echo "$as_me: failed program was:" >&5
8587 sed 's
/^
/|
/' conftest.$ac_ext >&5
8592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8594 { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
8595 echo "${ECHO_T}$ac_cv_type_float" >&6; }
8597 # The cast to long int works around a bug in the HP C Compiler
8598 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8599 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8600 # This bug is HP SR number 8606223364.
8601 { echo "$as_me:$LINENO: checking size of float" >&5
8602 echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
8603 if test "${ac_cv_sizeof_float+set}" = set; then
8604 echo $ECHO_N "(cached) $ECHO_C" >&6
8606 if test "$cross_compiling" = yes; then
8607 # Depending upon the size, compute the lo and hi bounds.
8608 cat >conftest.
$ac_ext <<_ACEOF
8611 cat confdefs.h
>>conftest.
$ac_ext
8612 cat >>conftest.
$ac_ext <<_ACEOF
8613 /* end confdefs.h. */
8614 $ac_includes_default
8615 typedef float ac__type_sizeof_;
8619 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8626 rm -f conftest.
$ac_objext
8627 if { (ac_try
="$ac_compile"
8629 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8630 *) ac_try_echo=$ac_try;;
8632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8633 (eval "$ac_compile") 2>conftest.er1
8635 grep -v '^ *+' conftest.er1 >conftest.err
8637 cat conftest.err >&5
8638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639 (exit $ac_status); } && {
8640 test -z "$ac_c_werror_flag" ||
8641 test ! -s conftest.err
8642 } && test -s conftest.$ac_objext; then
8645 cat >conftest.$ac_ext <<_ACEOF
8648 cat confdefs.h >>conftest.$ac_ext
8649 cat >>conftest.$ac_ext <<_ACEOF
8650 /* end confdefs.h. */
8651 $ac_includes_default
8652 typedef float ac__type_sizeof_;
8656 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8663 rm -f conftest.$ac_objext
8664 if { (ac_try="$ac_compile"
8666 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8667 *) ac_try_echo
=$ac_try;;
8669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8670 (eval "$ac_compile") 2>conftest.er1
8672 grep -v '^ *+' conftest.er1
>conftest.err
8674 cat conftest.err
>&5
8675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676 (exit $ac_status); } && {
8677 test -z "$ac_c_werror_flag" ||
8678 test ! -s conftest.err
8679 } && test -s conftest.
$ac_objext; then
8680 ac_hi
=$ac_mid; break
8682 echo "$as_me: failed program was:" >&5
8683 sed 's/^/| /' conftest.
$ac_ext >&5
8685 ac_lo
=`expr $ac_mid + 1`
8686 if test $ac_lo -le $ac_mid; then
8690 ac_mid
=`expr 2 '*' $ac_mid + 1`
8693 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8696 echo "$as_me: failed program was:" >&5
8697 sed 's/^/| /' conftest.
$ac_ext >&5
8699 cat >conftest.
$ac_ext <<_ACEOF
8702 cat confdefs.h
>>conftest.
$ac_ext
8703 cat >>conftest.
$ac_ext <<_ACEOF
8704 /* end confdefs.h. */
8705 $ac_includes_default
8706 typedef float ac__type_sizeof_;
8710 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8717 rm -f conftest.
$ac_objext
8718 if { (ac_try
="$ac_compile"
8720 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8721 *) ac_try_echo=$ac_try;;
8723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8724 (eval "$ac_compile") 2>conftest.er1
8726 grep -v '^ *+' conftest.er1 >conftest.err
8728 cat conftest.err >&5
8729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730 (exit $ac_status); } && {
8731 test -z "$ac_c_werror_flag" ||
8732 test ! -s conftest.err
8733 } && test -s conftest.$ac_objext; then
8736 cat >conftest.$ac_ext <<_ACEOF
8739 cat confdefs.h >>conftest.$ac_ext
8740 cat >>conftest.$ac_ext <<_ACEOF
8741 /* end confdefs.h. */
8742 $ac_includes_default
8743 typedef float ac__type_sizeof_;
8747 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8754 rm -f conftest.$ac_objext
8755 if { (ac_try="$ac_compile"
8757 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8758 *) ac_try_echo
=$ac_try;;
8760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8761 (eval "$ac_compile") 2>conftest.er1
8763 grep -v '^ *+' conftest.er1
>conftest.err
8765 cat conftest.err
>&5
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); } && {
8768 test -z "$ac_c_werror_flag" ||
8769 test ! -s conftest.err
8770 } && test -s conftest.
$ac_objext; then
8771 ac_lo
=$ac_mid; break
8773 echo "$as_me: failed program was:" >&5
8774 sed 's/^/| /' conftest.
$ac_ext >&5
8776 ac_hi
=`expr '(' $ac_mid ')' - 1`
8777 if test $ac_mid -le $ac_hi; then
8781 ac_mid
=`expr 2 '*' $ac_mid`
8784 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8787 echo "$as_me: failed program was:" >&5
8788 sed 's/^/| /' conftest.
$ac_ext >&5
8793 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8796 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8797 # Binary search between lo and hi bounds.
8798 while test "x$ac_lo" != "x$ac_hi"; do
8799 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8800 cat >conftest.
$ac_ext <<_ACEOF
8803 cat confdefs.h
>>conftest.
$ac_ext
8804 cat >>conftest.
$ac_ext <<_ACEOF
8805 /* end confdefs.h. */
8806 $ac_includes_default
8807 typedef float ac__type_sizeof_;
8811 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8818 rm -f conftest.
$ac_objext
8819 if { (ac_try
="$ac_compile"
8821 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8822 *) ac_try_echo=$ac_try;;
8824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8825 (eval "$ac_compile") 2>conftest.er1
8827 grep -v '^ *+' conftest.er1 >conftest.err
8829 cat conftest.err >&5
8830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831 (exit $ac_status); } && {
8832 test -z "$ac_c_werror_flag" ||
8833 test ! -s conftest.err
8834 } && test -s conftest.$ac_objext; then
8837 echo "$as_me: failed program was:" >&5
8838 sed 's/^/| /' conftest.$ac_ext >&5
8840 ac_lo=`expr '(' $ac_mid ')' + 1`
8843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8846 ?*) ac_cv_sizeof_float=$ac_lo;;
8847 '') if test "$ac_cv_type_float" = yes; then
8848 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
8849 See \`config.log
' for more details." >&5
8850 echo "$as_me: error: cannot compute sizeof (float)
8851 See \`config.log' for more details.
" >&2;}
8852 { (exit 77); exit 77; }; }
8854 ac_cv_sizeof_float=0
8858 cat >conftest.$ac_ext <<_ACEOF
8861 cat confdefs.h >>conftest.$ac_ext
8862 cat >>conftest.$ac_ext <<_ACEOF
8863 /* end confdefs.h. */
8864 $ac_includes_default
8865 typedef float ac__type_sizeof_;
8866 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8867 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8874 FILE *f = fopen ("conftest.val
", "w
");
8877 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8879 long int i = longval ();
8880 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8882 fprintf (f, "%ld
\n", i);
8886 unsigned long int i = ulongval ();
8887 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8889 fprintf (f, "%lu
\n", i);
8891 return ferror (f) || fclose (f) != 0;
8897 rm -f conftest$ac_exeext
8898 if { (ac_try="$ac_link"
8900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8901 *) ac_try_echo=$ac_try;;
8903 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8904 (eval "$ac_link") 2>&5
8906 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8907 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8908 { (case "(($ac_try" in
8909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8910 *) ac_try_echo=$ac_try;;
8912 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8913 (eval "$ac_try") 2>&5
8915 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8916 (exit $ac_status); }; }; then
8917 ac_cv_sizeof_float=`cat conftest.val`
8919 echo "$as_me: program exited with status
$ac_status" >&5
8920 echo "$as_me: failed program was
:" >&5
8921 sed 's/^/| /' conftest.$ac_ext >&5
8924 if test "$ac_cv_type_float" = yes; then
8925 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(float
)
8926 See \
`config.log' for more details." >&5
8927 echo "$as_me: error: cannot compute sizeof (float)
8928 See \`config.log
' for more details." >&2;}
8929 { (exit 77); exit 77; }; }
8931 ac_cv_sizeof_float=0
8934 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8938 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
8939 echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
8943 cat >>confdefs.h <<_ACEOF
8944 #define SIZEOF_FLOAT $ac_cv_sizeof_float
8948 { echo "$as_me:$LINENO: checking for double" >&5
8949 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
8950 if test "${ac_cv_type_double+set}" = set; then
8951 echo $ECHO_N "(cached) $ECHO_C" >&6
8953 cat >conftest.$ac_ext <<_ACEOF
8956 cat confdefs.h >>conftest.$ac_ext
8957 cat >>conftest.$ac_ext <<_ACEOF
8958 /* end confdefs.h. */
8959 $ac_includes_default
8960 typedef double ac__type_new_;
8964 if ((ac__type_new_ *) 0)
8966 if (sizeof (ac__type_new_))
8972 rm -f conftest.$ac_objext
8973 if { (ac_try="$ac_compile"
8975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8976 *) ac_try_echo=$ac_try;;
8978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8979 (eval "$ac_compile") 2>conftest.er1
8981 grep -v '^
*+' conftest.er1 >conftest.err
8983 cat conftest.err >&5
8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 (exit $ac_status); } && {
8986 test -z "$ac_c_werror_flag" ||
8987 test ! -s conftest.err
8988 } && test -s conftest.$ac_objext; then
8989 ac_cv_type_double=yes
8991 echo "$as_me: failed program was:" >&5
8992 sed 's
/^
/|
/' conftest.$ac_ext >&5
8994 ac_cv_type_double=no
8997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8999 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
9000 echo "${ECHO_T}$ac_cv_type_double" >&6; }
9002 # The cast to long int works around a bug in the HP C Compiler
9003 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9004 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9005 # This bug is HP SR number 8606223364.
9006 { echo "$as_me:$LINENO: checking size of double" >&5
9007 echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
9008 if test "${ac_cv_sizeof_double+set}" = set; then
9009 echo $ECHO_N "(cached) $ECHO_C" >&6
9011 if test "$cross_compiling" = yes; then
9012 # Depending upon the size, compute the lo and hi bounds.
9013 cat >conftest.
$ac_ext <<_ACEOF
9016 cat confdefs.h
>>conftest.
$ac_ext
9017 cat >>conftest.
$ac_ext <<_ACEOF
9018 /* end confdefs.h. */
9019 $ac_includes_default
9020 typedef double ac__type_sizeof_;
9024 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9031 rm -f conftest.
$ac_objext
9032 if { (ac_try
="$ac_compile"
9034 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9035 *) ac_try_echo=$ac_try;;
9037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9038 (eval "$ac_compile") 2>conftest.er1
9040 grep -v '^ *+' conftest.er1 >conftest.err
9042 cat conftest.err >&5
9043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044 (exit $ac_status); } && {
9045 test -z "$ac_c_werror_flag" ||
9046 test ! -s conftest.err
9047 } && test -s conftest.$ac_objext; then
9050 cat >conftest.$ac_ext <<_ACEOF
9053 cat confdefs.h >>conftest.$ac_ext
9054 cat >>conftest.$ac_ext <<_ACEOF
9055 /* end confdefs.h. */
9056 $ac_includes_default
9057 typedef double ac__type_sizeof_;
9061 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9068 rm -f conftest.$ac_objext
9069 if { (ac_try="$ac_compile"
9071 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9072 *) ac_try_echo
=$ac_try;;
9074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9075 (eval "$ac_compile") 2>conftest.er1
9077 grep -v '^ *+' conftest.er1
>conftest.err
9079 cat conftest.err
>&5
9080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081 (exit $ac_status); } && {
9082 test -z "$ac_c_werror_flag" ||
9083 test ! -s conftest.err
9084 } && test -s conftest.
$ac_objext; then
9085 ac_hi
=$ac_mid; break
9087 echo "$as_me: failed program was:" >&5
9088 sed 's/^/| /' conftest.
$ac_ext >&5
9090 ac_lo
=`expr $ac_mid + 1`
9091 if test $ac_lo -le $ac_mid; then
9095 ac_mid
=`expr 2 '*' $ac_mid + 1`
9098 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9101 echo "$as_me: failed program was:" >&5
9102 sed 's/^/| /' conftest.
$ac_ext >&5
9104 cat >conftest.
$ac_ext <<_ACEOF
9107 cat confdefs.h
>>conftest.
$ac_ext
9108 cat >>conftest.
$ac_ext <<_ACEOF
9109 /* end confdefs.h. */
9110 $ac_includes_default
9111 typedef double ac__type_sizeof_;
9115 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9122 rm -f conftest.
$ac_objext
9123 if { (ac_try
="$ac_compile"
9125 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9126 *) ac_try_echo=$ac_try;;
9128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9129 (eval "$ac_compile") 2>conftest.er1
9131 grep -v '^ *+' conftest.er1 >conftest.err
9133 cat conftest.err >&5
9134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9135 (exit $ac_status); } && {
9136 test -z "$ac_c_werror_flag" ||
9137 test ! -s conftest.err
9138 } && test -s conftest.$ac_objext; then
9141 cat >conftest.$ac_ext <<_ACEOF
9144 cat confdefs.h >>conftest.$ac_ext
9145 cat >>conftest.$ac_ext <<_ACEOF
9146 /* end confdefs.h. */
9147 $ac_includes_default
9148 typedef double ac__type_sizeof_;
9152 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9159 rm -f conftest.$ac_objext
9160 if { (ac_try="$ac_compile"
9162 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9163 *) ac_try_echo
=$ac_try;;
9165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9166 (eval "$ac_compile") 2>conftest.er1
9168 grep -v '^ *+' conftest.er1
>conftest.err
9170 cat conftest.err
>&5
9171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172 (exit $ac_status); } && {
9173 test -z "$ac_c_werror_flag" ||
9174 test ! -s conftest.err
9175 } && test -s conftest.
$ac_objext; then
9176 ac_lo
=$ac_mid; break
9178 echo "$as_me: failed program was:" >&5
9179 sed 's/^/| /' conftest.
$ac_ext >&5
9181 ac_hi
=`expr '(' $ac_mid ')' - 1`
9182 if test $ac_mid -le $ac_hi; then
9186 ac_mid
=`expr 2 '*' $ac_mid`
9189 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9192 echo "$as_me: failed program was:" >&5
9193 sed 's/^/| /' conftest.
$ac_ext >&5
9198 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9201 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9202 # Binary search between lo and hi bounds.
9203 while test "x$ac_lo" != "x$ac_hi"; do
9204 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9205 cat >conftest.
$ac_ext <<_ACEOF
9208 cat confdefs.h
>>conftest.
$ac_ext
9209 cat >>conftest.
$ac_ext <<_ACEOF
9210 /* end confdefs.h. */
9211 $ac_includes_default
9212 typedef double ac__type_sizeof_;
9216 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9223 rm -f conftest.
$ac_objext
9224 if { (ac_try
="$ac_compile"
9226 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9227 *) ac_try_echo=$ac_try;;
9229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9230 (eval "$ac_compile") 2>conftest.er1
9232 grep -v '^ *+' conftest.er1 >conftest.err
9234 cat conftest.err >&5
9235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236 (exit $ac_status); } && {
9237 test -z "$ac_c_werror_flag" ||
9238 test ! -s conftest.err
9239 } && test -s conftest.$ac_objext; then
9242 echo "$as_me: failed program was:" >&5
9243 sed 's/^/| /' conftest.$ac_ext >&5
9245 ac_lo=`expr '(' $ac_mid ')' + 1`
9248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9251 ?*) ac_cv_sizeof_double=$ac_lo;;
9252 '') if test "$ac_cv_type_double" = yes; then
9253 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9254 See \`config.log
' for more details." >&5
9255 echo "$as_me: error: cannot compute sizeof (double)
9256 See \`config.log' for more details.
" >&2;}
9257 { (exit 77); exit 77; }; }
9259 ac_cv_sizeof_double=0
9263 cat >conftest.$ac_ext <<_ACEOF
9266 cat confdefs.h >>conftest.$ac_ext
9267 cat >>conftest.$ac_ext <<_ACEOF
9268 /* end confdefs.h. */
9269 $ac_includes_default
9270 typedef double ac__type_sizeof_;
9271 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9272 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9279 FILE *f = fopen ("conftest.val
", "w
");
9282 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9284 long int i = longval ();
9285 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9287 fprintf (f, "%ld
\n", i);
9291 unsigned long int i = ulongval ();
9292 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9294 fprintf (f, "%lu
\n", i);
9296 return ferror (f) || fclose (f) != 0;
9302 rm -f conftest$ac_exeext
9303 if { (ac_try="$ac_link"
9305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9306 *) ac_try_echo=$ac_try;;
9308 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9309 (eval "$ac_link") 2>&5
9311 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9312 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9313 { (case "(($ac_try" in
9314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9315 *) ac_try_echo=$ac_try;;
9317 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9318 (eval "$ac_try") 2>&5
9320 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9321 (exit $ac_status); }; }; then
9322 ac_cv_sizeof_double=`cat conftest.val`
9324 echo "$as_me: program exited with status
$ac_status" >&5
9325 echo "$as_me: failed program was
:" >&5
9326 sed 's/^/| /' conftest.$ac_ext >&5
9329 if test "$ac_cv_type_double" = yes; then
9330 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(double
)
9331 See \
`config.log' for more details." >&5
9332 echo "$as_me: error: cannot compute sizeof (double)
9333 See \`config.log
' for more details." >&2;}
9334 { (exit 77); exit 77; }; }
9336 ac_cv_sizeof_double=0
9339 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9343 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
9344 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
9348 cat >>confdefs.h <<_ACEOF
9349 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
9353 { echo "$as_me:$LINENO: checking for fpos_t" >&5
9354 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; }
9355 if test "${ac_cv_type_fpos_t+set}" = set; then
9356 echo $ECHO_N "(cached) $ECHO_C" >&6
9358 cat >conftest.$ac_ext <<_ACEOF
9361 cat confdefs.h >>conftest.$ac_ext
9362 cat >>conftest.$ac_ext <<_ACEOF
9363 /* end confdefs.h. */
9364 $ac_includes_default
9365 typedef fpos_t ac__type_new_;
9369 if ((ac__type_new_ *) 0)
9371 if (sizeof (ac__type_new_))
9377 rm -f conftest.$ac_objext
9378 if { (ac_try="$ac_compile"
9380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9381 *) ac_try_echo=$ac_try;;
9383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9384 (eval "$ac_compile") 2>conftest.er1
9386 grep -v '^
*+' conftest.er1 >conftest.err
9388 cat conftest.err >&5
9389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390 (exit $ac_status); } && {
9391 test -z "$ac_c_werror_flag" ||
9392 test ! -s conftest.err
9393 } && test -s conftest.$ac_objext; then
9394 ac_cv_type_fpos_t=yes
9396 echo "$as_me: failed program was:" >&5
9397 sed 's
/^
/|
/' conftest.$ac_ext >&5
9399 ac_cv_type_fpos_t=no
9402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9404 { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
9405 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; }
9407 # The cast to long int works around a bug in the HP C Compiler
9408 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9409 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9410 # This bug is HP SR number 8606223364.
9411 { echo "$as_me:$LINENO: checking size of fpos_t" >&5
9412 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; }
9413 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
9414 echo $ECHO_N "(cached) $ECHO_C" >&6
9416 if test "$cross_compiling" = yes; then
9417 # Depending upon the size, compute the lo and hi bounds.
9418 cat >conftest.
$ac_ext <<_ACEOF
9421 cat confdefs.h
>>conftest.
$ac_ext
9422 cat >>conftest.
$ac_ext <<_ACEOF
9423 /* end confdefs.h. */
9424 $ac_includes_default
9425 typedef fpos_t ac__type_sizeof_;
9429 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9436 rm -f conftest.
$ac_objext
9437 if { (ac_try
="$ac_compile"
9439 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9440 *) ac_try_echo=$ac_try;;
9442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9443 (eval "$ac_compile") 2>conftest.er1
9445 grep -v '^ *+' conftest.er1 >conftest.err
9447 cat conftest.err >&5
9448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449 (exit $ac_status); } && {
9450 test -z "$ac_c_werror_flag" ||
9451 test ! -s conftest.err
9452 } && test -s conftest.$ac_objext; then
9455 cat >conftest.$ac_ext <<_ACEOF
9458 cat confdefs.h >>conftest.$ac_ext
9459 cat >>conftest.$ac_ext <<_ACEOF
9460 /* end confdefs.h. */
9461 $ac_includes_default
9462 typedef fpos_t ac__type_sizeof_;
9466 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9473 rm -f conftest.$ac_objext
9474 if { (ac_try="$ac_compile"
9476 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9477 *) ac_try_echo
=$ac_try;;
9479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9480 (eval "$ac_compile") 2>conftest.er1
9482 grep -v '^ *+' conftest.er1
>conftest.err
9484 cat conftest.err
>&5
9485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486 (exit $ac_status); } && {
9487 test -z "$ac_c_werror_flag" ||
9488 test ! -s conftest.err
9489 } && test -s conftest.
$ac_objext; then
9490 ac_hi
=$ac_mid; break
9492 echo "$as_me: failed program was:" >&5
9493 sed 's/^/| /' conftest.
$ac_ext >&5
9495 ac_lo
=`expr $ac_mid + 1`
9496 if test $ac_lo -le $ac_mid; then
9500 ac_mid
=`expr 2 '*' $ac_mid + 1`
9503 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9506 echo "$as_me: failed program was:" >&5
9507 sed 's/^/| /' conftest.
$ac_ext >&5
9509 cat >conftest.
$ac_ext <<_ACEOF
9512 cat confdefs.h
>>conftest.
$ac_ext
9513 cat >>conftest.
$ac_ext <<_ACEOF
9514 /* end confdefs.h. */
9515 $ac_includes_default
9516 typedef fpos_t ac__type_sizeof_;
9520 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9527 rm -f conftest.
$ac_objext
9528 if { (ac_try
="$ac_compile"
9530 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9531 *) ac_try_echo=$ac_try;;
9533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9534 (eval "$ac_compile") 2>conftest.er1
9536 grep -v '^ *+' conftest.er1 >conftest.err
9538 cat conftest.err >&5
9539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540 (exit $ac_status); } && {
9541 test -z "$ac_c_werror_flag" ||
9542 test ! -s conftest.err
9543 } && test -s conftest.$ac_objext; then
9546 cat >conftest.$ac_ext <<_ACEOF
9549 cat confdefs.h >>conftest.$ac_ext
9550 cat >>conftest.$ac_ext <<_ACEOF
9551 /* end confdefs.h. */
9552 $ac_includes_default
9553 typedef fpos_t ac__type_sizeof_;
9557 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9564 rm -f conftest.$ac_objext
9565 if { (ac_try="$ac_compile"
9567 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9568 *) ac_try_echo
=$ac_try;;
9570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9571 (eval "$ac_compile") 2>conftest.er1
9573 grep -v '^ *+' conftest.er1
>conftest.err
9575 cat conftest.err
>&5
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 (exit $ac_status); } && {
9578 test -z "$ac_c_werror_flag" ||
9579 test ! -s conftest.err
9580 } && test -s conftest.
$ac_objext; then
9581 ac_lo
=$ac_mid; break
9583 echo "$as_me: failed program was:" >&5
9584 sed 's/^/| /' conftest.
$ac_ext >&5
9586 ac_hi
=`expr '(' $ac_mid ')' - 1`
9587 if test $ac_mid -le $ac_hi; then
9591 ac_mid
=`expr 2 '*' $ac_mid`
9594 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9597 echo "$as_me: failed program was:" >&5
9598 sed 's/^/| /' conftest.
$ac_ext >&5
9603 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9606 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9607 # Binary search between lo and hi bounds.
9608 while test "x$ac_lo" != "x$ac_hi"; do
9609 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9610 cat >conftest.
$ac_ext <<_ACEOF
9613 cat confdefs.h
>>conftest.
$ac_ext
9614 cat >>conftest.
$ac_ext <<_ACEOF
9615 /* end confdefs.h. */
9616 $ac_includes_default
9617 typedef fpos_t ac__type_sizeof_;
9621 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9628 rm -f conftest.
$ac_objext
9629 if { (ac_try
="$ac_compile"
9631 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9632 *) ac_try_echo=$ac_try;;
9634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9635 (eval "$ac_compile") 2>conftest.er1
9637 grep -v '^ *+' conftest.er1 >conftest.err
9639 cat conftest.err >&5
9640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641 (exit $ac_status); } && {
9642 test -z "$ac_c_werror_flag" ||
9643 test ! -s conftest.err
9644 } && test -s conftest.$ac_objext; then
9647 echo "$as_me: failed program was:" >&5
9648 sed 's/^/| /' conftest.$ac_ext >&5
9650 ac_lo=`expr '(' $ac_mid ')' + 1`
9653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9656 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
9657 '') if test "$ac_cv_type_fpos_t" = yes; then
9658 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
9659 See \`config.log
' for more details." >&5
9660 echo "$as_me: error: cannot compute sizeof (fpos_t)
9661 See \`config.log' for more details.
" >&2;}
9662 { (exit 77); exit 77; }; }
9664 ac_cv_sizeof_fpos_t=0
9668 cat >conftest.$ac_ext <<_ACEOF
9671 cat confdefs.h >>conftest.$ac_ext
9672 cat >>conftest.$ac_ext <<_ACEOF
9673 /* end confdefs.h. */
9674 $ac_includes_default
9675 typedef fpos_t ac__type_sizeof_;
9676 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9677 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9684 FILE *f = fopen ("conftest.val
", "w
");
9687 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9689 long int i = longval ();
9690 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9692 fprintf (f, "%ld
\n", i);
9696 unsigned long int i = ulongval ();
9697 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9699 fprintf (f, "%lu
\n", i);
9701 return ferror (f) || fclose (f) != 0;
9707 rm -f conftest$ac_exeext
9708 if { (ac_try="$ac_link"
9710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9711 *) ac_try_echo=$ac_try;;
9713 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9714 (eval "$ac_link") 2>&5
9716 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9717 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9718 { (case "(($ac_try" in
9719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9720 *) ac_try_echo=$ac_try;;
9722 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9723 (eval "$ac_try") 2>&5
9725 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9726 (exit $ac_status); }; }; then
9727 ac_cv_sizeof_fpos_t=`cat conftest.val`
9729 echo "$as_me: program exited with status
$ac_status" >&5
9730 echo "$as_me: failed program was
:" >&5
9731 sed 's/^/| /' conftest.$ac_ext >&5
9734 if test "$ac_cv_type_fpos_t" = yes; then
9735 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(fpos_t
)
9736 See \
`config.log' for more details." >&5
9737 echo "$as_me: error: cannot compute sizeof (fpos_t)
9738 See \`config.log
' for more details." >&2;}
9739 { (exit 77); exit 77; }; }
9741 ac_cv_sizeof_fpos_t=0
9744 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9748 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
9749 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; }
9753 cat >>confdefs.h <<_ACEOF
9754 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
9758 { echo "$as_me:$LINENO: checking for size_t" >&5
9759 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
9760 if test "${ac_cv_type_size_t+set}" = set; then
9761 echo $ECHO_N "(cached) $ECHO_C" >&6
9763 cat >conftest.$ac_ext <<_ACEOF
9766 cat confdefs.h >>conftest.$ac_ext
9767 cat >>conftest.$ac_ext <<_ACEOF
9768 /* end confdefs.h. */
9769 $ac_includes_default
9770 typedef size_t ac__type_new_;
9774 if ((ac__type_new_ *) 0)
9776 if (sizeof (ac__type_new_))
9782 rm -f conftest.$ac_objext
9783 if { (ac_try="$ac_compile"
9785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9786 *) ac_try_echo=$ac_try;;
9788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9789 (eval "$ac_compile") 2>conftest.er1
9791 grep -v '^
*+' conftest.er1 >conftest.err
9793 cat conftest.err >&5
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); } && {
9796 test -z "$ac_c_werror_flag" ||
9797 test ! -s conftest.err
9798 } && test -s conftest.$ac_objext; then
9799 ac_cv_type_size_t=yes
9801 echo "$as_me: failed program was:" >&5
9802 sed 's
/^
/|
/' conftest.$ac_ext >&5
9804 ac_cv_type_size_t=no
9807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9809 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9810 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
9812 # The cast to long int works around a bug in the HP C Compiler
9813 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9814 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9815 # This bug is HP SR number 8606223364.
9816 { echo "$as_me:$LINENO: checking size of size_t" >&5
9817 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
9818 if test "${ac_cv_sizeof_size_t+set}" = set; then
9819 echo $ECHO_N "(cached) $ECHO_C" >&6
9821 if test "$cross_compiling" = yes; then
9822 # Depending upon the size, compute the lo and hi bounds.
9823 cat >conftest.
$ac_ext <<_ACEOF
9826 cat confdefs.h
>>conftest.
$ac_ext
9827 cat >>conftest.
$ac_ext <<_ACEOF
9828 /* end confdefs.h. */
9829 $ac_includes_default
9830 typedef size_t ac__type_sizeof_;
9834 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9841 rm -f conftest.
$ac_objext
9842 if { (ac_try
="$ac_compile"
9844 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9845 *) ac_try_echo=$ac_try;;
9847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9848 (eval "$ac_compile") 2>conftest.er1
9850 grep -v '^ *+' conftest.er1 >conftest.err
9852 cat conftest.err >&5
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); } && {
9855 test -z "$ac_c_werror_flag" ||
9856 test ! -s conftest.err
9857 } && test -s conftest.$ac_objext; then
9860 cat >conftest.$ac_ext <<_ACEOF
9863 cat confdefs.h >>conftest.$ac_ext
9864 cat >>conftest.$ac_ext <<_ACEOF
9865 /* end confdefs.h. */
9866 $ac_includes_default
9867 typedef size_t ac__type_sizeof_;
9871 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9878 rm -f conftest.$ac_objext
9879 if { (ac_try="$ac_compile"
9881 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9882 *) ac_try_echo
=$ac_try;;
9884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9885 (eval "$ac_compile") 2>conftest.er1
9887 grep -v '^ *+' conftest.er1
>conftest.err
9889 cat conftest.err
>&5
9890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891 (exit $ac_status); } && {
9892 test -z "$ac_c_werror_flag" ||
9893 test ! -s conftest.err
9894 } && test -s conftest.
$ac_objext; then
9895 ac_hi
=$ac_mid; break
9897 echo "$as_me: failed program was:" >&5
9898 sed 's/^/| /' conftest.
$ac_ext >&5
9900 ac_lo
=`expr $ac_mid + 1`
9901 if test $ac_lo -le $ac_mid; then
9905 ac_mid
=`expr 2 '*' $ac_mid + 1`
9908 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9911 echo "$as_me: failed program was:" >&5
9912 sed 's/^/| /' conftest.
$ac_ext >&5
9914 cat >conftest.
$ac_ext <<_ACEOF
9917 cat confdefs.h
>>conftest.
$ac_ext
9918 cat >>conftest.
$ac_ext <<_ACEOF
9919 /* end confdefs.h. */
9920 $ac_includes_default
9921 typedef size_t ac__type_sizeof_;
9925 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9932 rm -f conftest.
$ac_objext
9933 if { (ac_try
="$ac_compile"
9935 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9936 *) ac_try_echo=$ac_try;;
9938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9939 (eval "$ac_compile") 2>conftest.er1
9941 grep -v '^ *+' conftest.er1 >conftest.err
9943 cat conftest.err >&5
9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945 (exit $ac_status); } && {
9946 test -z "$ac_c_werror_flag" ||
9947 test ! -s conftest.err
9948 } && test -s conftest.$ac_objext; then
9951 cat >conftest.$ac_ext <<_ACEOF
9954 cat confdefs.h >>conftest.$ac_ext
9955 cat >>conftest.$ac_ext <<_ACEOF
9956 /* end confdefs.h. */
9957 $ac_includes_default
9958 typedef size_t ac__type_sizeof_;
9962 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9969 rm -f conftest.$ac_objext
9970 if { (ac_try="$ac_compile"
9972 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9973 *) ac_try_echo
=$ac_try;;
9975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9976 (eval "$ac_compile") 2>conftest.er1
9978 grep -v '^ *+' conftest.er1
>conftest.err
9980 cat conftest.err
>&5
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); } && {
9983 test -z "$ac_c_werror_flag" ||
9984 test ! -s conftest.err
9985 } && test -s conftest.
$ac_objext; then
9986 ac_lo
=$ac_mid; break
9988 echo "$as_me: failed program was:" >&5
9989 sed 's/^/| /' conftest.
$ac_ext >&5
9991 ac_hi
=`expr '(' $ac_mid ')' - 1`
9992 if test $ac_mid -le $ac_hi; then
9996 ac_mid
=`expr 2 '*' $ac_mid`
9999 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10002 echo "$as_me: failed program was:" >&5
10003 sed 's/^/| /' conftest.
$ac_ext >&5
10008 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10011 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10012 # Binary search between lo and hi bounds.
10013 while test "x$ac_lo" != "x$ac_hi"; do
10014 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10015 cat >conftest.
$ac_ext <<_ACEOF
10018 cat confdefs.h
>>conftest.
$ac_ext
10019 cat >>conftest.
$ac_ext <<_ACEOF
10020 /* end confdefs.h. */
10021 $ac_includes_default
10022 typedef size_t ac__type_sizeof_;
10026 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10033 rm -f conftest.
$ac_objext
10034 if { (ac_try
="$ac_compile"
10035 case "(($ac_try" in
10036 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10037 *) ac_try_echo=$ac_try;;
10039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10040 (eval "$ac_compile") 2>conftest.er1
10042 grep -v '^ *+' conftest.er1 >conftest.err
10044 cat conftest.err >&5
10045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046 (exit $ac_status); } && {
10047 test -z "$ac_c_werror_flag" ||
10048 test ! -s conftest.err
10049 } && test -s conftest.$ac_objext; then
10052 echo "$as_me: failed program was:" >&5
10053 sed 's/^/| /' conftest.$ac_ext >&5
10055 ac_lo=`expr '(' $ac_mid ')' + 1`
10058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10061 ?*) ac_cv_sizeof_size_t=$ac_lo;;
10062 '') if test "$ac_cv_type_size_t" = yes; then
10063 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10064 See \`config.log
' for more details." >&5
10065 echo "$as_me: error: cannot compute sizeof (size_t)
10066 See \`config.log' for more details.
" >&2;}
10067 { (exit 77); exit 77; }; }
10069 ac_cv_sizeof_size_t=0
10073 cat >conftest.$ac_ext <<_ACEOF
10076 cat confdefs.h >>conftest.$ac_ext
10077 cat >>conftest.$ac_ext <<_ACEOF
10078 /* end confdefs.h. */
10079 $ac_includes_default
10080 typedef size_t ac__type_sizeof_;
10081 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10082 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10084 #include <stdlib.h>
10089 FILE *f = fopen ("conftest.val
", "w
");
10092 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10094 long int i = longval ();
10095 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10097 fprintf (f, "%ld
\n", i);
10101 unsigned long int i = ulongval ();
10102 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10104 fprintf (f, "%lu
\n", i);
10106 return ferror (f) || fclose (f) != 0;
10112 rm -f conftest$ac_exeext
10113 if { (ac_try="$ac_link"
10114 case "(($ac_try" in
10115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10116 *) ac_try_echo=$ac_try;;
10118 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10119 (eval "$ac_link") 2>&5
10121 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10122 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10123 { (case "(($ac_try" in
10124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10125 *) ac_try_echo=$ac_try;;
10127 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10128 (eval "$ac_try") 2>&5
10130 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10131 (exit $ac_status); }; }; then
10132 ac_cv_sizeof_size_t=`cat conftest.val`
10134 echo "$as_me: program exited with status
$ac_status" >&5
10135 echo "$as_me: failed program was
:" >&5
10136 sed 's/^/| /' conftest.$ac_ext >&5
10138 ( exit $ac_status )
10139 if test "$ac_cv_type_size_t" = yes; then
10140 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(size_t
)
10141 See \
`config.log' for more details." >&5
10142 echo "$as_me: error: cannot compute sizeof (size_t)
10143 See \`config.log
' for more details." >&2;}
10144 { (exit 77); exit 77; }; }
10146 ac_cv_sizeof_size_t=0
10149 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10153 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10154 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
10158 cat >>confdefs.h <<_ACEOF
10159 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10163 { echo "$as_me:$LINENO: checking for pid_t" >&5
10164 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10165 if test "${ac_cv_type_pid_t+set}" = set; then
10166 echo $ECHO_N "(cached) $ECHO_C" >&6
10168 cat >conftest.$ac_ext <<_ACEOF
10171 cat confdefs.h >>conftest.$ac_ext
10172 cat >>conftest.$ac_ext <<_ACEOF
10173 /* end confdefs.h. */
10174 $ac_includes_default
10175 typedef pid_t ac__type_new_;
10179 if ((ac__type_new_ *) 0)
10181 if (sizeof (ac__type_new_))
10187 rm -f conftest.$ac_objext
10188 if { (ac_try="$ac_compile"
10189 case "(($ac_try" in
10190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10191 *) ac_try_echo=$ac_try;;
10193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10194 (eval "$ac_compile") 2>conftest.er1
10196 grep -v '^
*+' conftest.er1 >conftest.err
10198 cat conftest.err >&5
10199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); } && {
10201 test -z "$ac_c_werror_flag" ||
10202 test ! -s conftest.err
10203 } && test -s conftest.$ac_objext; then
10204 ac_cv_type_pid_t=yes
10206 echo "$as_me: failed program was:" >&5
10207 sed 's
/^
/|
/' conftest.$ac_ext >&5
10209 ac_cv_type_pid_t=no
10212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10214 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10215 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10217 # The cast to long int works around a bug in the HP C Compiler
10218 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10219 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10220 # This bug is HP SR number 8606223364.
10221 { echo "$as_me:$LINENO: checking size of pid_t" >&5
10222 echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; }
10223 if test "${ac_cv_sizeof_pid_t+set}" = set; then
10224 echo $ECHO_N "(cached) $ECHO_C" >&6
10226 if test "$cross_compiling" = yes; then
10227 # Depending upon the size, compute the lo and hi bounds.
10228 cat >conftest.
$ac_ext <<_ACEOF
10231 cat confdefs.h
>>conftest.
$ac_ext
10232 cat >>conftest.
$ac_ext <<_ACEOF
10233 /* end confdefs.h. */
10234 $ac_includes_default
10235 typedef pid_t ac__type_sizeof_;
10239 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10246 rm -f conftest.
$ac_objext
10247 if { (ac_try
="$ac_compile"
10248 case "(($ac_try" in
10249 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10250 *) ac_try_echo=$ac_try;;
10252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10253 (eval "$ac_compile") 2>conftest.er1
10255 grep -v '^ *+' conftest.er1 >conftest.err
10257 cat conftest.err >&5
10258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259 (exit $ac_status); } && {
10260 test -z "$ac_c_werror_flag" ||
10261 test ! -s conftest.err
10262 } && test -s conftest.$ac_objext; then
10265 cat >conftest.$ac_ext <<_ACEOF
10268 cat confdefs.h >>conftest.$ac_ext
10269 cat >>conftest.$ac_ext <<_ACEOF
10270 /* end confdefs.h. */
10271 $ac_includes_default
10272 typedef pid_t ac__type_sizeof_;
10276 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10283 rm -f conftest.$ac_objext
10284 if { (ac_try="$ac_compile"
10285 case "(($ac_try" in
10286 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10287 *) ac_try_echo
=$ac_try;;
10289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10290 (eval "$ac_compile") 2>conftest.er1
10292 grep -v '^ *+' conftest.er1
>conftest.err
10294 cat conftest.err
>&5
10295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296 (exit $ac_status); } && {
10297 test -z "$ac_c_werror_flag" ||
10298 test ! -s conftest.err
10299 } && test -s conftest.
$ac_objext; then
10300 ac_hi
=$ac_mid; break
10302 echo "$as_me: failed program was:" >&5
10303 sed 's/^/| /' conftest.
$ac_ext >&5
10305 ac_lo
=`expr $ac_mid + 1`
10306 if test $ac_lo -le $ac_mid; then
10310 ac_mid
=`expr 2 '*' $ac_mid + 1`
10313 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10316 echo "$as_me: failed program was:" >&5
10317 sed 's/^/| /' conftest.
$ac_ext >&5
10319 cat >conftest.
$ac_ext <<_ACEOF
10322 cat confdefs.h
>>conftest.
$ac_ext
10323 cat >>conftest.
$ac_ext <<_ACEOF
10324 /* end confdefs.h. */
10325 $ac_includes_default
10326 typedef pid_t ac__type_sizeof_;
10330 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10337 rm -f conftest.
$ac_objext
10338 if { (ac_try
="$ac_compile"
10339 case "(($ac_try" in
10340 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10341 *) ac_try_echo=$ac_try;;
10343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10344 (eval "$ac_compile") 2>conftest.er1
10346 grep -v '^ *+' conftest.er1 >conftest.err
10348 cat conftest.err >&5
10349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350 (exit $ac_status); } && {
10351 test -z "$ac_c_werror_flag" ||
10352 test ! -s conftest.err
10353 } && test -s conftest.$ac_objext; then
10356 cat >conftest.$ac_ext <<_ACEOF
10359 cat confdefs.h >>conftest.$ac_ext
10360 cat >>conftest.$ac_ext <<_ACEOF
10361 /* end confdefs.h. */
10362 $ac_includes_default
10363 typedef pid_t ac__type_sizeof_;
10367 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10374 rm -f conftest.$ac_objext
10375 if { (ac_try="$ac_compile"
10376 case "(($ac_try" in
10377 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10378 *) ac_try_echo
=$ac_try;;
10380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10381 (eval "$ac_compile") 2>conftest.er1
10383 grep -v '^ *+' conftest.er1
>conftest.err
10385 cat conftest.err
>&5
10386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387 (exit $ac_status); } && {
10388 test -z "$ac_c_werror_flag" ||
10389 test ! -s conftest.err
10390 } && test -s conftest.
$ac_objext; then
10391 ac_lo
=$ac_mid; break
10393 echo "$as_me: failed program was:" >&5
10394 sed 's/^/| /' conftest.
$ac_ext >&5
10396 ac_hi
=`expr '(' $ac_mid ')' - 1`
10397 if test $ac_mid -le $ac_hi; then
10401 ac_mid
=`expr 2 '*' $ac_mid`
10404 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10407 echo "$as_me: failed program was:" >&5
10408 sed 's/^/| /' conftest.
$ac_ext >&5
10413 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10416 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10417 # Binary search between lo and hi bounds.
10418 while test "x$ac_lo" != "x$ac_hi"; do
10419 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10420 cat >conftest.
$ac_ext <<_ACEOF
10423 cat confdefs.h
>>conftest.
$ac_ext
10424 cat >>conftest.
$ac_ext <<_ACEOF
10425 /* end confdefs.h. */
10426 $ac_includes_default
10427 typedef pid_t ac__type_sizeof_;
10431 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10438 rm -f conftest.
$ac_objext
10439 if { (ac_try
="$ac_compile"
10440 case "(($ac_try" in
10441 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10442 *) ac_try_echo=$ac_try;;
10444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10445 (eval "$ac_compile") 2>conftest.er1
10447 grep -v '^ *+' conftest.er1 >conftest.err
10449 cat conftest.err >&5
10450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451 (exit $ac_status); } && {
10452 test -z "$ac_c_werror_flag" ||
10453 test ! -s conftest.err
10454 } && test -s conftest.$ac_objext; then
10457 echo "$as_me: failed program was:" >&5
10458 sed 's/^/| /' conftest.$ac_ext >&5
10460 ac_lo=`expr '(' $ac_mid ')' + 1`
10463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10466 ?*) ac_cv_sizeof_pid_t=$ac_lo;;
10467 '') if test "$ac_cv_type_pid_t" = yes; then
10468 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
10469 See \`config.log
' for more details." >&5
10470 echo "$as_me: error: cannot compute sizeof (pid_t)
10471 See \`config.log' for more details.
" >&2;}
10472 { (exit 77); exit 77; }; }
10474 ac_cv_sizeof_pid_t=0
10478 cat >conftest.$ac_ext <<_ACEOF
10481 cat confdefs.h >>conftest.$ac_ext
10482 cat >>conftest.$ac_ext <<_ACEOF
10483 /* end confdefs.h. */
10484 $ac_includes_default
10485 typedef pid_t ac__type_sizeof_;
10486 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10487 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10489 #include <stdlib.h>
10494 FILE *f = fopen ("conftest.val
", "w
");
10497 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10499 long int i = longval ();
10500 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10502 fprintf (f, "%ld
\n", i);
10506 unsigned long int i = ulongval ();
10507 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10509 fprintf (f, "%lu
\n", i);
10511 return ferror (f) || fclose (f) != 0;
10517 rm -f conftest$ac_exeext
10518 if { (ac_try="$ac_link"
10519 case "(($ac_try" in
10520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10521 *) ac_try_echo=$ac_try;;
10523 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10524 (eval "$ac_link") 2>&5
10526 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10527 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10528 { (case "(($ac_try" in
10529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10530 *) ac_try_echo=$ac_try;;
10532 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10533 (eval "$ac_try") 2>&5
10535 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10536 (exit $ac_status); }; }; then
10537 ac_cv_sizeof_pid_t=`cat conftest.val`
10539 echo "$as_me: program exited with status
$ac_status" >&5
10540 echo "$as_me: failed program was
:" >&5
10541 sed 's/^/| /' conftest.$ac_ext >&5
10543 ( exit $ac_status )
10544 if test "$ac_cv_type_pid_t" = yes; then
10545 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(pid_t
)
10546 See \
`config.log' for more details." >&5
10547 echo "$as_me: error: cannot compute sizeof (pid_t)
10548 See \`config.log
' for more details." >&2;}
10549 { (exit 77); exit 77; }; }
10551 ac_cv_sizeof_pid_t=0
10554 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10558 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
10559 echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; }
10563 cat >>confdefs.h <<_ACEOF
10564 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
10569 { echo "$as_me:$LINENO: checking for long long support" >&5
10570 echo $ECHO_N "checking for long long support... $ECHO_C" >&6; }
10572 cat >conftest.$ac_ext <<_ACEOF
10575 cat confdefs.h >>conftest.$ac_ext
10576 cat >>conftest.$ac_ext <<_ACEOF
10577 /* end confdefs.h. */
10582 long long x; x = (long long)0;
10587 rm -f conftest.$ac_objext
10588 if { (ac_try="$ac_compile"
10589 case "(($ac_try" in
10590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10591 *) ac_try_echo=$ac_try;;
10593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10594 (eval "$ac_compile") 2>conftest.er1
10596 grep -v '^
*+' conftest.er1 >conftest.err
10598 cat conftest.err >&5
10599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600 (exit $ac_status); } && {
10601 test -z "$ac_c_werror_flag" ||
10602 test ! -s conftest.err
10603 } && test -s conftest.$ac_objext; then
10606 cat >>confdefs.h <<\_ACEOF
10607 #define HAVE_LONG_LONG 1
10613 echo "$as_me: failed program was:" >&5
10614 sed 's
/^
/|
/' conftest.$ac_ext >&5
10619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10620 { echo "$as_me:$LINENO: result: $have_long_long" >&5
10621 echo "${ECHO_T}$have_long_long" >&6; }
10622 if test "$have_long_long" = yes ; then
10623 { echo "$as_me:$LINENO: checking for long long" >&5
10624 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
10625 if test "${ac_cv_type_long_long+set}" = set; then
10626 echo $ECHO_N "(cached) $ECHO_C" >&6
10628 cat >conftest.$ac_ext <<_ACEOF
10631 cat confdefs.h >>conftest.$ac_ext
10632 cat >>conftest.$ac_ext <<_ACEOF
10633 /* end confdefs.h. */
10634 $ac_includes_default
10635 typedef long long ac__type_new_;
10639 if ((ac__type_new_ *) 0)
10641 if (sizeof (ac__type_new_))
10647 rm -f conftest.$ac_objext
10648 if { (ac_try="$ac_compile"
10649 case "(($ac_try" in
10650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10651 *) ac_try_echo=$ac_try;;
10653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10654 (eval "$ac_compile") 2>conftest.er1
10656 grep -v '^
*+' conftest.er1 >conftest.err
10658 cat conftest.err >&5
10659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660 (exit $ac_status); } && {
10661 test -z "$ac_c_werror_flag" ||
10662 test ! -s conftest.err
10663 } && test -s conftest.$ac_objext; then
10664 ac_cv_type_long_long=yes
10666 echo "$as_me: failed program was:" >&5
10667 sed 's
/^
/|
/' conftest.$ac_ext >&5
10669 ac_cv_type_long_long=no
10672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10674 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
10675 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
10677 # The cast to long int works around a bug in the HP C Compiler
10678 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10679 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10680 # This bug is HP SR number 8606223364.
10681 { echo "$as_me:$LINENO: checking size of long long" >&5
10682 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
10683 if test "${ac_cv_sizeof_long_long+set}" = set; then
10684 echo $ECHO_N "(cached) $ECHO_C" >&6
10686 if test "$cross_compiling" = yes; then
10687 # Depending upon the size, compute the lo and hi bounds.
10688 cat >conftest.
$ac_ext <<_ACEOF
10691 cat confdefs.h
>>conftest.
$ac_ext
10692 cat >>conftest.
$ac_ext <<_ACEOF
10693 /* end confdefs.h. */
10694 $ac_includes_default
10695 typedef long long ac__type_sizeof_;
10699 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10706 rm -f conftest.
$ac_objext
10707 if { (ac_try
="$ac_compile"
10708 case "(($ac_try" in
10709 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10710 *) ac_try_echo=$ac_try;;
10712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10713 (eval "$ac_compile") 2>conftest.er1
10715 grep -v '^ *+' conftest.er1 >conftest.err
10717 cat conftest.err >&5
10718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719 (exit $ac_status); } && {
10720 test -z "$ac_c_werror_flag" ||
10721 test ! -s conftest.err
10722 } && test -s conftest.$ac_objext; then
10725 cat >conftest.$ac_ext <<_ACEOF
10728 cat confdefs.h >>conftest.$ac_ext
10729 cat >>conftest.$ac_ext <<_ACEOF
10730 /* end confdefs.h. */
10731 $ac_includes_default
10732 typedef long long ac__type_sizeof_;
10736 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10743 rm -f conftest.$ac_objext
10744 if { (ac_try="$ac_compile"
10745 case "(($ac_try" in
10746 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10747 *) ac_try_echo
=$ac_try;;
10749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10750 (eval "$ac_compile") 2>conftest.er1
10752 grep -v '^ *+' conftest.er1
>conftest.err
10754 cat conftest.err
>&5
10755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756 (exit $ac_status); } && {
10757 test -z "$ac_c_werror_flag" ||
10758 test ! -s conftest.err
10759 } && test -s conftest.
$ac_objext; then
10760 ac_hi
=$ac_mid; break
10762 echo "$as_me: failed program was:" >&5
10763 sed 's/^/| /' conftest.
$ac_ext >&5
10765 ac_lo
=`expr $ac_mid + 1`
10766 if test $ac_lo -le $ac_mid; then
10770 ac_mid
=`expr 2 '*' $ac_mid + 1`
10773 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10776 echo "$as_me: failed program was:" >&5
10777 sed 's/^/| /' conftest.
$ac_ext >&5
10779 cat >conftest.
$ac_ext <<_ACEOF
10782 cat confdefs.h
>>conftest.
$ac_ext
10783 cat >>conftest.
$ac_ext <<_ACEOF
10784 /* end confdefs.h. */
10785 $ac_includes_default
10786 typedef long long ac__type_sizeof_;
10790 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10797 rm -f conftest.
$ac_objext
10798 if { (ac_try
="$ac_compile"
10799 case "(($ac_try" in
10800 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10801 *) ac_try_echo=$ac_try;;
10803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10804 (eval "$ac_compile") 2>conftest.er1
10806 grep -v '^ *+' conftest.er1 >conftest.err
10808 cat conftest.err >&5
10809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810 (exit $ac_status); } && {
10811 test -z "$ac_c_werror_flag" ||
10812 test ! -s conftest.err
10813 } && test -s conftest.$ac_objext; then
10816 cat >conftest.$ac_ext <<_ACEOF
10819 cat confdefs.h >>conftest.$ac_ext
10820 cat >>conftest.$ac_ext <<_ACEOF
10821 /* end confdefs.h. */
10822 $ac_includes_default
10823 typedef long long ac__type_sizeof_;
10827 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10834 rm -f conftest.$ac_objext
10835 if { (ac_try="$ac_compile"
10836 case "(($ac_try" in
10837 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10838 *) ac_try_echo
=$ac_try;;
10840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10841 (eval "$ac_compile") 2>conftest.er1
10843 grep -v '^ *+' conftest.er1
>conftest.err
10845 cat conftest.err
>&5
10846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847 (exit $ac_status); } && {
10848 test -z "$ac_c_werror_flag" ||
10849 test ! -s conftest.err
10850 } && test -s conftest.
$ac_objext; then
10851 ac_lo
=$ac_mid; break
10853 echo "$as_me: failed program was:" >&5
10854 sed 's/^/| /' conftest.
$ac_ext >&5
10856 ac_hi
=`expr '(' $ac_mid ')' - 1`
10857 if test $ac_mid -le $ac_hi; then
10861 ac_mid
=`expr 2 '*' $ac_mid`
10864 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10867 echo "$as_me: failed program was:" >&5
10868 sed 's/^/| /' conftest.
$ac_ext >&5
10873 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10876 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10877 # Binary search between lo and hi bounds.
10878 while test "x$ac_lo" != "x$ac_hi"; do
10879 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10880 cat >conftest.
$ac_ext <<_ACEOF
10883 cat confdefs.h
>>conftest.
$ac_ext
10884 cat >>conftest.
$ac_ext <<_ACEOF
10885 /* end confdefs.h. */
10886 $ac_includes_default
10887 typedef long long ac__type_sizeof_;
10891 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10898 rm -f conftest.
$ac_objext
10899 if { (ac_try
="$ac_compile"
10900 case "(($ac_try" in
10901 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10902 *) ac_try_echo=$ac_try;;
10904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10905 (eval "$ac_compile") 2>conftest.er1
10907 grep -v '^ *+' conftest.er1 >conftest.err
10909 cat conftest.err >&5
10910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10911 (exit $ac_status); } && {
10912 test -z "$ac_c_werror_flag" ||
10913 test ! -s conftest.err
10914 } && test -s conftest.$ac_objext; then
10917 echo "$as_me: failed program was:" >&5
10918 sed 's/^/| /' conftest.$ac_ext >&5
10920 ac_lo=`expr '(' $ac_mid ')' + 1`
10923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10926 ?*) ac_cv_sizeof_long_long=$ac_lo;;
10927 '') if test "$ac_cv_type_long_long" = yes; then
10928 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
10929 See \`config.log
' for more details." >&5
10930 echo "$as_me: error: cannot compute sizeof (long long)
10931 See \`config.log' for more details.
" >&2;}
10932 { (exit 77); exit 77; }; }
10934 ac_cv_sizeof_long_long=0
10938 cat >conftest.$ac_ext <<_ACEOF
10941 cat confdefs.h >>conftest.$ac_ext
10942 cat >>conftest.$ac_ext <<_ACEOF
10943 /* end confdefs.h. */
10944 $ac_includes_default
10945 typedef long long ac__type_sizeof_;
10946 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10947 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10949 #include <stdlib.h>
10954 FILE *f = fopen ("conftest.val
", "w
");
10957 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10959 long int i = longval ();
10960 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10962 fprintf (f, "%ld
\n", i);
10966 unsigned long int i = ulongval ();
10967 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10969 fprintf (f, "%lu
\n", i);
10971 return ferror (f) || fclose (f) != 0;
10977 rm -f conftest$ac_exeext
10978 if { (ac_try="$ac_link"
10979 case "(($ac_try" in
10980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10981 *) ac_try_echo=$ac_try;;
10983 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10984 (eval "$ac_link") 2>&5
10986 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10987 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10988 { (case "(($ac_try" in
10989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10990 *) ac_try_echo=$ac_try;;
10992 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10993 (eval "$ac_try") 2>&5
10995 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10996 (exit $ac_status); }; }; then
10997 ac_cv_sizeof_long_long=`cat conftest.val`
10999 echo "$as_me: program exited with status
$ac_status" >&5
11000 echo "$as_me: failed program was
:" >&5
11001 sed 's/^/| /' conftest.$ac_ext >&5
11003 ( exit $ac_status )
11004 if test "$ac_cv_type_long_long" = yes; then
11005 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long long
)
11006 See \
`config.log' for more details." >&5
11007 echo "$as_me: error: cannot compute sizeof (long long)
11008 See \`config.log
' for more details." >&2;}
11009 { (exit 77); exit 77; }; }
11011 ac_cv_sizeof_long_long=0
11014 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11018 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11019 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
11023 cat >>confdefs.h <<_ACEOF
11024 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11030 { echo "$as_me:$LINENO: checking for _Bool support" >&5
11031 echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; }
11033 cat >conftest.$ac_ext <<_ACEOF
11036 cat confdefs.h >>conftest.$ac_ext
11037 cat >>conftest.$ac_ext <<_ACEOF
11038 /* end confdefs.h. */
11043 _Bool x; x = (_Bool)0;
11048 rm -f conftest.$ac_objext
11049 if { (ac_try="$ac_compile"
11050 case "(($ac_try" in
11051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11052 *) ac_try_echo=$ac_try;;
11054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11055 (eval "$ac_compile") 2>conftest.er1
11057 grep -v '^
*+' conftest.er1 >conftest.err
11059 cat conftest.err >&5
11060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061 (exit $ac_status); } && {
11062 test -z "$ac_c_werror_flag" ||
11063 test ! -s conftest.err
11064 } && test -s conftest.$ac_objext; then
11067 cat >>confdefs.h <<\_ACEOF
11068 #define HAVE_C99_BOOL 1
11074 echo "$as_me: failed program was:" >&5
11075 sed 's
/^
/|
/' conftest.$ac_ext >&5
11080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11081 { echo "$as_me:$LINENO: result: $have_c99_bool" >&5
11082 echo "${ECHO_T}$have_c99_bool" >&6; }
11083 if test "$have_c99_bool" = yes ; then
11084 { echo "$as_me:$LINENO: checking for _Bool" >&5
11085 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
11086 if test "${ac_cv_type__Bool+set}" = set; then
11087 echo $ECHO_N "(cached) $ECHO_C" >&6
11089 cat >conftest.$ac_ext <<_ACEOF
11092 cat confdefs.h >>conftest.$ac_ext
11093 cat >>conftest.$ac_ext <<_ACEOF
11094 /* end confdefs.h. */
11095 $ac_includes_default
11096 typedef _Bool ac__type_new_;
11100 if ((ac__type_new_ *) 0)
11102 if (sizeof (ac__type_new_))
11108 rm -f conftest.$ac_objext
11109 if { (ac_try="$ac_compile"
11110 case "(($ac_try" in
11111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11112 *) ac_try_echo=$ac_try;;
11114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11115 (eval "$ac_compile") 2>conftest.er1
11117 grep -v '^
*+' conftest.er1 >conftest.err
11119 cat conftest.err >&5
11120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121 (exit $ac_status); } && {
11122 test -z "$ac_c_werror_flag" ||
11123 test ! -s conftest.err
11124 } && test -s conftest.$ac_objext; then
11125 ac_cv_type__Bool=yes
11127 echo "$as_me: failed program was:" >&5
11128 sed 's
/^
/|
/' conftest.$ac_ext >&5
11130 ac_cv_type__Bool=no
11133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11135 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
11136 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
11138 # The cast to long int works around a bug in the HP C Compiler
11139 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11140 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11141 # This bug is HP SR number 8606223364.
11142 { echo "$as_me:$LINENO: checking size of _Bool" >&5
11143 echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; }
11144 if test "${ac_cv_sizeof__Bool+set}" = set; then
11145 echo $ECHO_N "(cached) $ECHO_C" >&6
11147 if test "$cross_compiling" = yes; then
11148 # Depending upon the size, compute the lo and hi bounds.
11149 cat >conftest.
$ac_ext <<_ACEOF
11152 cat confdefs.h
>>conftest.
$ac_ext
11153 cat >>conftest.
$ac_ext <<_ACEOF
11154 /* end confdefs.h. */
11155 $ac_includes_default
11156 typedef _Bool ac__type_sizeof_;
11160 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11167 rm -f conftest.
$ac_objext
11168 if { (ac_try
="$ac_compile"
11169 case "(($ac_try" in
11170 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11171 *) ac_try_echo=$ac_try;;
11173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11174 (eval "$ac_compile") 2>conftest.er1
11176 grep -v '^ *+' conftest.er1 >conftest.err
11178 cat conftest.err >&5
11179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180 (exit $ac_status); } && {
11181 test -z "$ac_c_werror_flag" ||
11182 test ! -s conftest.err
11183 } && test -s conftest.$ac_objext; then
11186 cat >conftest.$ac_ext <<_ACEOF
11189 cat confdefs.h >>conftest.$ac_ext
11190 cat >>conftest.$ac_ext <<_ACEOF
11191 /* end confdefs.h. */
11192 $ac_includes_default
11193 typedef _Bool ac__type_sizeof_;
11197 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11204 rm -f conftest.$ac_objext
11205 if { (ac_try="$ac_compile"
11206 case "(($ac_try" in
11207 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11208 *) ac_try_echo
=$ac_try;;
11210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11211 (eval "$ac_compile") 2>conftest.er1
11213 grep -v '^ *+' conftest.er1
>conftest.err
11215 cat conftest.err
>&5
11216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11217 (exit $ac_status); } && {
11218 test -z "$ac_c_werror_flag" ||
11219 test ! -s conftest.err
11220 } && test -s conftest.
$ac_objext; then
11221 ac_hi
=$ac_mid; break
11223 echo "$as_me: failed program was:" >&5
11224 sed 's/^/| /' conftest.
$ac_ext >&5
11226 ac_lo
=`expr $ac_mid + 1`
11227 if test $ac_lo -le $ac_mid; then
11231 ac_mid
=`expr 2 '*' $ac_mid + 1`
11234 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11237 echo "$as_me: failed program was:" >&5
11238 sed 's/^/| /' conftest.
$ac_ext >&5
11240 cat >conftest.
$ac_ext <<_ACEOF
11243 cat confdefs.h
>>conftest.
$ac_ext
11244 cat >>conftest.
$ac_ext <<_ACEOF
11245 /* end confdefs.h. */
11246 $ac_includes_default
11247 typedef _Bool ac__type_sizeof_;
11251 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11258 rm -f conftest.
$ac_objext
11259 if { (ac_try
="$ac_compile"
11260 case "(($ac_try" in
11261 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11262 *) ac_try_echo=$ac_try;;
11264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11265 (eval "$ac_compile") 2>conftest.er1
11267 grep -v '^ *+' conftest.er1 >conftest.err
11269 cat conftest.err >&5
11270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271 (exit $ac_status); } && {
11272 test -z "$ac_c_werror_flag" ||
11273 test ! -s conftest.err
11274 } && test -s conftest.$ac_objext; then
11277 cat >conftest.$ac_ext <<_ACEOF
11280 cat confdefs.h >>conftest.$ac_ext
11281 cat >>conftest.$ac_ext <<_ACEOF
11282 /* end confdefs.h. */
11283 $ac_includes_default
11284 typedef _Bool ac__type_sizeof_;
11288 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11295 rm -f conftest.$ac_objext
11296 if { (ac_try="$ac_compile"
11297 case "(($ac_try" in
11298 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11299 *) ac_try_echo
=$ac_try;;
11301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11302 (eval "$ac_compile") 2>conftest.er1
11304 grep -v '^ *+' conftest.er1
>conftest.err
11306 cat conftest.err
>&5
11307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308 (exit $ac_status); } && {
11309 test -z "$ac_c_werror_flag" ||
11310 test ! -s conftest.err
11311 } && test -s conftest.
$ac_objext; then
11312 ac_lo
=$ac_mid; break
11314 echo "$as_me: failed program was:" >&5
11315 sed 's/^/| /' conftest.
$ac_ext >&5
11317 ac_hi
=`expr '(' $ac_mid ')' - 1`
11318 if test $ac_mid -le $ac_hi; then
11322 ac_mid
=`expr 2 '*' $ac_mid`
11325 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11328 echo "$as_me: failed program was:" >&5
11329 sed 's/^/| /' conftest.
$ac_ext >&5
11334 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11337 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11338 # Binary search between lo and hi bounds.
11339 while test "x$ac_lo" != "x$ac_hi"; do
11340 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11341 cat >conftest.
$ac_ext <<_ACEOF
11344 cat confdefs.h
>>conftest.
$ac_ext
11345 cat >>conftest.
$ac_ext <<_ACEOF
11346 /* end confdefs.h. */
11347 $ac_includes_default
11348 typedef _Bool ac__type_sizeof_;
11352 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11359 rm -f conftest.
$ac_objext
11360 if { (ac_try
="$ac_compile"
11361 case "(($ac_try" in
11362 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11363 *) ac_try_echo=$ac_try;;
11365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11366 (eval "$ac_compile") 2>conftest.er1
11368 grep -v '^ *+' conftest.er1 >conftest.err
11370 cat conftest.err >&5
11371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11372 (exit $ac_status); } && {
11373 test -z "$ac_c_werror_flag" ||
11374 test ! -s conftest.err
11375 } && test -s conftest.$ac_objext; then
11378 echo "$as_me: failed program was:" >&5
11379 sed 's/^/| /' conftest.$ac_ext >&5
11381 ac_lo=`expr '(' $ac_mid ')' + 1`
11384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11387 ?*) ac_cv_sizeof__Bool=$ac_lo;;
11388 '') if test "$ac_cv_type__Bool" = yes; then
11389 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
11390 See \`config.log
' for more details." >&5
11391 echo "$as_me: error: cannot compute sizeof (_Bool)
11392 See \`config.log' for more details.
" >&2;}
11393 { (exit 77); exit 77; }; }
11395 ac_cv_sizeof__Bool=0
11399 cat >conftest.$ac_ext <<_ACEOF
11402 cat confdefs.h >>conftest.$ac_ext
11403 cat >>conftest.$ac_ext <<_ACEOF
11404 /* end confdefs.h. */
11405 $ac_includes_default
11406 typedef _Bool ac__type_sizeof_;
11407 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11408 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11410 #include <stdlib.h>
11415 FILE *f = fopen ("conftest.val
", "w
");
11418 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11420 long int i = longval ();
11421 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11423 fprintf (f, "%ld
\n", i);
11427 unsigned long int i = ulongval ();
11428 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11430 fprintf (f, "%lu
\n", i);
11432 return ferror (f) || fclose (f) != 0;
11438 rm -f conftest$ac_exeext
11439 if { (ac_try="$ac_link"
11440 case "(($ac_try" in
11441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11442 *) ac_try_echo=$ac_try;;
11444 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11445 (eval "$ac_link") 2>&5
11447 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11448 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11449 { (case "(($ac_try" in
11450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11451 *) ac_try_echo=$ac_try;;
11453 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11454 (eval "$ac_try") 2>&5
11456 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11457 (exit $ac_status); }; }; then
11458 ac_cv_sizeof__Bool=`cat conftest.val`
11460 echo "$as_me: program exited with status
$ac_status" >&5
11461 echo "$as_me: failed program was
:" >&5
11462 sed 's/^/| /' conftest.$ac_ext >&5
11464 ( exit $ac_status )
11465 if test "$ac_cv_type__Bool" = yes; then
11466 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(_Bool
)
11467 See \
`config.log' for more details." >&5
11468 echo "$as_me: error: cannot compute sizeof (_Bool)
11469 See \`config.log
' for more details." >&2;}
11470 { (exit 77); exit 77; }; }
11472 ac_cv_sizeof__Bool=0
11475 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11479 { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
11480 echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; }
11484 cat >>confdefs.h <<_ACEOF
11485 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
11491 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
11492 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
11493 if test "${ac_cv_type_uintptr_t+set}" = set; then
11494 echo $ECHO_N "(cached) $ECHO_C" >&6
11496 cat >conftest.$ac_ext <<_ACEOF
11499 cat confdefs.h >>conftest.$ac_ext
11500 cat >>conftest.$ac_ext <<_ACEOF
11501 /* end confdefs.h. */
11502 #ifdef HAVE_STDINT_H
11503 #include <stdint.h>
11506 typedef uintptr_t ac__type_new_;
11510 if ((ac__type_new_ *) 0)
11512 if (sizeof (ac__type_new_))
11518 rm -f conftest.$ac_objext
11519 if { (ac_try="$ac_compile"
11520 case "(($ac_try" in
11521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11522 *) ac_try_echo=$ac_try;;
11524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11525 (eval "$ac_compile") 2>conftest.er1
11527 grep -v '^
*+' conftest.er1 >conftest.err
11529 cat conftest.err >&5
11530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531 (exit $ac_status); } && {
11532 test -z "$ac_c_werror_flag" ||
11533 test ! -s conftest.err
11534 } && test -s conftest.$ac_objext; then
11535 ac_cv_type_uintptr_t=yes
11537 echo "$as_me: failed program was:" >&5
11538 sed 's
/^
/|
/' conftest.$ac_ext >&5
11540 ac_cv_type_uintptr_t=no
11543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11545 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11546 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
11547 if test $ac_cv_type_uintptr_t = yes; then
11549 cat >>confdefs.h <<_ACEOF
11550 #define HAVE_UINTPTR_T 1
11553 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
11554 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
11555 if test "${ac_cv_type_uintptr_t+set}" = set; then
11556 echo $ECHO_N "(cached) $ECHO_C" >&6
11558 cat >conftest.$ac_ext <<_ACEOF
11561 cat confdefs.h >>conftest.$ac_ext
11562 cat >>conftest.$ac_ext <<_ACEOF
11563 /* end confdefs.h. */
11564 $ac_includes_default
11565 typedef uintptr_t ac__type_new_;
11569 if ((ac__type_new_ *) 0)
11571 if (sizeof (ac__type_new_))
11577 rm -f conftest.$ac_objext
11578 if { (ac_try="$ac_compile"
11579 case "(($ac_try" in
11580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11581 *) ac_try_echo=$ac_try;;
11583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11584 (eval "$ac_compile") 2>conftest.er1
11586 grep -v '^
*+' conftest.er1 >conftest.err
11588 cat conftest.err >&5
11589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11590 (exit $ac_status); } && {
11591 test -z "$ac_c_werror_flag" ||
11592 test ! -s conftest.err
11593 } && test -s conftest.$ac_objext; then
11594 ac_cv_type_uintptr_t=yes
11596 echo "$as_me: failed program was:" >&5
11597 sed 's
/^
/|
/' conftest.$ac_ext >&5
11599 ac_cv_type_uintptr_t=no
11602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11604 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11605 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
11607 # The cast to long int works around a bug in the HP C Compiler
11608 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11609 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11610 # This bug is HP SR number 8606223364.
11611 { echo "$as_me:$LINENO: checking size of uintptr_t" >&5
11612 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; }
11613 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
11614 echo $ECHO_N "(cached) $ECHO_C" >&6
11616 if test "$cross_compiling" = yes; then
11617 # Depending upon the size, compute the lo and hi bounds.
11618 cat >conftest.
$ac_ext <<_ACEOF
11621 cat confdefs.h
>>conftest.
$ac_ext
11622 cat >>conftest.
$ac_ext <<_ACEOF
11623 /* end confdefs.h. */
11624 $ac_includes_default
11625 typedef uintptr_t ac__type_sizeof_;
11629 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11636 rm -f conftest.
$ac_objext
11637 if { (ac_try
="$ac_compile"
11638 case "(($ac_try" in
11639 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11640 *) ac_try_echo=$ac_try;;
11642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11643 (eval "$ac_compile") 2>conftest.er1
11645 grep -v '^ *+' conftest.er1 >conftest.err
11647 cat conftest.err >&5
11648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649 (exit $ac_status); } && {
11650 test -z "$ac_c_werror_flag" ||
11651 test ! -s conftest.err
11652 } && test -s conftest.$ac_objext; then
11655 cat >conftest.$ac_ext <<_ACEOF
11658 cat confdefs.h >>conftest.$ac_ext
11659 cat >>conftest.$ac_ext <<_ACEOF
11660 /* end confdefs.h. */
11661 $ac_includes_default
11662 typedef uintptr_t ac__type_sizeof_;
11666 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11673 rm -f conftest.$ac_objext
11674 if { (ac_try="$ac_compile"
11675 case "(($ac_try" in
11676 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11677 *) ac_try_echo
=$ac_try;;
11679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11680 (eval "$ac_compile") 2>conftest.er1
11682 grep -v '^ *+' conftest.er1
>conftest.err
11684 cat conftest.err
>&5
11685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686 (exit $ac_status); } && {
11687 test -z "$ac_c_werror_flag" ||
11688 test ! -s conftest.err
11689 } && test -s conftest.
$ac_objext; then
11690 ac_hi
=$ac_mid; break
11692 echo "$as_me: failed program was:" >&5
11693 sed 's/^/| /' conftest.
$ac_ext >&5
11695 ac_lo
=`expr $ac_mid + 1`
11696 if test $ac_lo -le $ac_mid; then
11700 ac_mid
=`expr 2 '*' $ac_mid + 1`
11703 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11706 echo "$as_me: failed program was:" >&5
11707 sed 's/^/| /' conftest.
$ac_ext >&5
11709 cat >conftest.
$ac_ext <<_ACEOF
11712 cat confdefs.h
>>conftest.
$ac_ext
11713 cat >>conftest.
$ac_ext <<_ACEOF
11714 /* end confdefs.h. */
11715 $ac_includes_default
11716 typedef uintptr_t ac__type_sizeof_;
11720 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11727 rm -f conftest.
$ac_objext
11728 if { (ac_try
="$ac_compile"
11729 case "(($ac_try" in
11730 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11731 *) ac_try_echo=$ac_try;;
11733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11734 (eval "$ac_compile") 2>conftest.er1
11736 grep -v '^ *+' conftest.er1 >conftest.err
11738 cat conftest.err >&5
11739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740 (exit $ac_status); } && {
11741 test -z "$ac_c_werror_flag" ||
11742 test ! -s conftest.err
11743 } && test -s conftest.$ac_objext; then
11746 cat >conftest.$ac_ext <<_ACEOF
11749 cat confdefs.h >>conftest.$ac_ext
11750 cat >>conftest.$ac_ext <<_ACEOF
11751 /* end confdefs.h. */
11752 $ac_includes_default
11753 typedef uintptr_t ac__type_sizeof_;
11757 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11764 rm -f conftest.$ac_objext
11765 if { (ac_try="$ac_compile"
11766 case "(($ac_try" in
11767 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11768 *) ac_try_echo
=$ac_try;;
11770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11771 (eval "$ac_compile") 2>conftest.er1
11773 grep -v '^ *+' conftest.er1
>conftest.err
11775 cat conftest.err
>&5
11776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777 (exit $ac_status); } && {
11778 test -z "$ac_c_werror_flag" ||
11779 test ! -s conftest.err
11780 } && test -s conftest.
$ac_objext; then
11781 ac_lo
=$ac_mid; break
11783 echo "$as_me: failed program was:" >&5
11784 sed 's/^/| /' conftest.
$ac_ext >&5
11786 ac_hi
=`expr '(' $ac_mid ')' - 1`
11787 if test $ac_mid -le $ac_hi; then
11791 ac_mid
=`expr 2 '*' $ac_mid`
11794 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11797 echo "$as_me: failed program was:" >&5
11798 sed 's/^/| /' conftest.
$ac_ext >&5
11803 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11806 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11807 # Binary search between lo and hi bounds.
11808 while test "x$ac_lo" != "x$ac_hi"; do
11809 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11810 cat >conftest.
$ac_ext <<_ACEOF
11813 cat confdefs.h
>>conftest.
$ac_ext
11814 cat >>conftest.
$ac_ext <<_ACEOF
11815 /* end confdefs.h. */
11816 $ac_includes_default
11817 typedef uintptr_t ac__type_sizeof_;
11821 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11828 rm -f conftest.
$ac_objext
11829 if { (ac_try
="$ac_compile"
11830 case "(($ac_try" in
11831 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11832 *) ac_try_echo=$ac_try;;
11834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11835 (eval "$ac_compile") 2>conftest.er1
11837 grep -v '^ *+' conftest.er1 >conftest.err
11839 cat conftest.err >&5
11840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); } && {
11842 test -z "$ac_c_werror_flag" ||
11843 test ! -s conftest.err
11844 } && test -s conftest.$ac_objext; then
11847 echo "$as_me: failed program was:" >&5
11848 sed 's/^/| /' conftest.$ac_ext >&5
11850 ac_lo=`expr '(' $ac_mid ')' + 1`
11853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11856 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
11857 '') if test "$ac_cv_type_uintptr_t" = yes; then
11858 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
11859 See \`config.log
' for more details." >&5
11860 echo "$as_me: error: cannot compute sizeof (uintptr_t)
11861 See \`config.log' for more details.
" >&2;}
11862 { (exit 77); exit 77; }; }
11864 ac_cv_sizeof_uintptr_t=0
11868 cat >conftest.$ac_ext <<_ACEOF
11871 cat confdefs.h >>conftest.$ac_ext
11872 cat >>conftest.$ac_ext <<_ACEOF
11873 /* end confdefs.h. */
11874 $ac_includes_default
11875 typedef uintptr_t ac__type_sizeof_;
11876 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11877 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11879 #include <stdlib.h>
11884 FILE *f = fopen ("conftest.val
", "w
");
11887 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11889 long int i = longval ();
11890 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11892 fprintf (f, "%ld
\n", i);
11896 unsigned long int i = ulongval ();
11897 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11899 fprintf (f, "%lu
\n", i);
11901 return ferror (f) || fclose (f) != 0;
11907 rm -f conftest$ac_exeext
11908 if { (ac_try="$ac_link"
11909 case "(($ac_try" in
11910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11911 *) ac_try_echo=$ac_try;;
11913 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11914 (eval "$ac_link") 2>&5
11916 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11917 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11918 { (case "(($ac_try" in
11919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11920 *) ac_try_echo=$ac_try;;
11922 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11923 (eval "$ac_try") 2>&5
11925 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11926 (exit $ac_status); }; }; then
11927 ac_cv_sizeof_uintptr_t=`cat conftest.val`
11929 echo "$as_me: program exited with status
$ac_status" >&5
11930 echo "$as_me: failed program was
:" >&5
11931 sed 's/^/| /' conftest.$ac_ext >&5
11933 ( exit $ac_status )
11934 if test "$ac_cv_type_uintptr_t" = yes; then
11935 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(uintptr_t
)
11936 See \
`config.log' for more details." >&5
11937 echo "$as_me: error: cannot compute sizeof (uintptr_t)
11938 See \`config.log
' for more details." >&2;}
11939 { (exit 77); exit 77; }; }
11941 ac_cv_sizeof_uintptr_t=0
11944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11948 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
11949 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; }
11953 cat >>confdefs.h <<_ACEOF
11954 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
11962 # Hmph. AC_CHECK_SIZEOF() doesn't include
<sys
/types.h
>.
11963 { echo "$as_me:$LINENO: checking size of off_t" >&5
11964 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
11965 if test "${ac_cv_sizeof_off_t+set}" = set; then
11966 echo $ECHO_N "(cached) $ECHO_C" >&6
11968 if test "$cross_compiling" = yes; then
11969 ac_cv_sizeof_off_t
=4
11971 cat >conftest.
$ac_ext <<_ACEOF
11974 cat confdefs.h
>>conftest.
$ac_ext
11975 cat >>conftest.
$ac_ext <<_ACEOF
11976 /* end confdefs.h. */
11978 #include <sys/types.h>
11981 FILE *f=fopen("conftestval", "w");
11983 fprintf(f, "%d\n", sizeof(off_t));
11987 rm -f conftest
$ac_exeext
11988 if { (ac_try
="$ac_link"
11989 case "(($ac_try" in
11990 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11991 *) ac_try_echo=$ac_try;;
11993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11994 (eval "$ac_link") 2>&5
11996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11997 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11998 { (case "(($ac_try" in
11999 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12000 *) ac_try_echo
=$ac_try;;
12002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12003 (eval "$ac_try") 2>&5
12005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006 (exit $ac_status); }; }; then
12007 ac_cv_sizeof_off_t
=`cat conftestval`
12009 echo "$as_me: program exited with status $ac_status" >&5
12010 echo "$as_me: failed program was:" >&5
12011 sed 's/^/| /' conftest.
$ac_ext >&5
12013 ( exit $ac_status )
12014 ac_cv_sizeof_off_t
=0
12016 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12023 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
12024 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
12026 cat >>confdefs.h
<<_ACEOF
12027 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12031 { echo "$as_me:$LINENO: checking whether to enable large file support" >&5
12032 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; }
12033 if test "$have_long_long" = yes -a \
12034 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
12035 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
12037 cat >>confdefs.h
<<\_ACEOF
12038 #define HAVE_LARGEFILE_SUPPORT 1
12041 { echo "$as_me:$LINENO: result: yes" >&5
12042 echo "${ECHO_T}yes" >&6; }
12044 { echo "$as_me:$LINENO: result: no" >&5
12045 echo "${ECHO_T}no" >&6; }
12048 # AC_CHECK_SIZEOF() doesn't include <time.h>.
12049 { echo "$as_me:$LINENO: checking size of time_t" >&5
12050 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
12051 if test "${ac_cv_sizeof_time_t+set}" = set; then
12052 echo $ECHO_N "(cached) $ECHO_C" >&6
12054 if test "$cross_compiling" = yes; then
12055 ac_cv_sizeof_time_t
=4
12057 cat >conftest.
$ac_ext <<_ACEOF
12060 cat confdefs.h
>>conftest.
$ac_ext
12061 cat >>conftest.
$ac_ext <<_ACEOF
12062 /* end confdefs.h. */
12067 FILE *f=fopen("conftestval", "w");
12069 fprintf(f, "%d\n", sizeof(time_t));
12073 rm -f conftest
$ac_exeext
12074 if { (ac_try
="$ac_link"
12075 case "(($ac_try" in
12076 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12077 *) ac_try_echo=$ac_try;;
12079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12080 (eval "$ac_link") 2>&5
12082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12084 { (case "(($ac_try" in
12085 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12086 *) ac_try_echo
=$ac_try;;
12088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12089 (eval "$ac_try") 2>&5
12091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092 (exit $ac_status); }; }; then
12093 ac_cv_sizeof_time_t
=`cat conftestval`
12095 echo "$as_me: program exited with status $ac_status" >&5
12096 echo "$as_me: failed program was:" >&5
12097 sed 's/^/| /' conftest.
$ac_ext >&5
12099 ( exit $ac_status )
12100 ac_cv_sizeof_time_t
=0
12102 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12109 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
12110 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
12112 cat >>confdefs.h
<<_ACEOF
12113 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
12118 # if have pthread_t then define SIZEOF_PTHREAD_T
12120 if test "$ac_cv_kpthread" = "yes"
12121 then CC
="$CC -Kpthread"
12122 elif test "$ac_cv_kthread" = "yes"
12123 then CC
="$CC -Kthread"
12124 elif test "$ac_cv_pthread" = "yes"
12125 then CC
="$CC -pthread"
12127 { echo "$as_me:$LINENO: checking for pthread_t" >&5
12128 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
12130 cat >conftest.
$ac_ext <<_ACEOF
12133 cat confdefs.h
>>conftest.
$ac_ext
12134 cat >>conftest.
$ac_ext <<_ACEOF
12135 /* end confdefs.h. */
12136 #include <pthread.h>
12140 pthread_t x; x = *(pthread_t*)0;
12145 rm -f conftest.
$ac_objext
12146 if { (ac_try
="$ac_compile"
12147 case "(($ac_try" in
12148 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12149 *) ac_try_echo=$ac_try;;
12151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12152 (eval "$ac_compile") 2>conftest.er1
12154 grep -v '^ *+' conftest.er1 >conftest.err
12156 cat conftest.err >&5
12157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158 (exit $ac_status); } && {
12159 test -z "$ac_c_werror_flag" ||
12160 test ! -s conftest.err
12161 } && test -s conftest.$ac_objext; then
12164 echo "$as_me: failed program was:" >&5
12165 sed 's/^/| /' conftest.$ac_ext >&5
12170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12171 { echo "$as_me:$LINENO: result: $have_pthread_t" >&5
12172 echo "${ECHO_T}$have_pthread_t" >&6; }
12173 if test "$have_pthread_t" = yes ; then
12174 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
12175 { echo "$as_me:$LINENO: checking size of pthread_t" >&5
12176 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; }
12177 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
12178 echo $ECHO_N "(cached) $ECHO_C" >&6
12180 if test "$cross_compiling" = yes; then
12181 ac_cv_sizeof_pthread_t=4
12183 cat >conftest.$ac_ext <<_ACEOF
12186 cat confdefs.h >>conftest.$ac_ext
12187 cat >>conftest.$ac_ext <<_ACEOF
12188 /* end confdefs.h. */
12190 #include <pthread.h>
12193 FILE *f=fopen("conftestval", "w");
12195 fprintf(f, "%d\n", sizeof(pthread_t));
12199 rm -f conftest$ac_exeext
12200 if { (ac_try="$ac_link"
12201 case "(($ac_try" in
12202 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12203 *) ac_try_echo
=$ac_try;;
12205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12206 (eval "$ac_link") 2>&5
12208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12209 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12210 { (case "(($ac_try" in
12211 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12212 *) ac_try_echo=$ac_try;;
12214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12215 (eval "$ac_try") 2>&5
12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); }; }; then
12219 ac_cv_sizeof_pthread_t=`cat conftestval
`
12221 echo "$as_me: program exited with status $ac_status" >&5
12222 echo "$as_me: failed program was:" >&5
12223 sed 's/^/| /' conftest.$ac_ext >&5
12225 ( exit $ac_status )
12226 ac_cv_sizeof_pthread_t=0
12228 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12235 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
12236 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; }
12238 cat >>confdefs.h <<_ACEOF
12239 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
12245 { echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
12246 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6; }
12247 # Check whether --enable-toolbox-glue was given.
12248 if test "${enable_toolbox_glue+set}" = set; then
12249 enableval=$enable_toolbox_glue;
12253 if test -z "$enable_toolbox_glue"
12255 case $ac_sys_system/$ac_sys_release in
12257 enable_toolbox_glue="yes";;
12259 enable_toolbox_glue="no";;
12262 case "$enable_toolbox_glue" in
12264 extra_machdep_objs="Python/mactoolboxglue.o"
12265 extra_undefs="-u _PyMac_Error"
12267 cat >>confdefs.h <<\_ACEOF
12268 #define USE_TOOLBOX_OBJECT_GLUE 1
12273 extra_machdep_objs=""
12277 { echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
12278 echo "${ECHO_T}$enable_toolbox_glue" >&6; }
12281 case $ac_sys_system/$ac_sys_release in
12282 Darwin/[01567]\..*)
12283 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
12286 OTHER_LIBTOOL_OPT=""
12291 case $ac_sys_system/$ac_sys_release in
12292 Darwin/[01567]\..*)
12293 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
12294 if test "${enable_universalsdk}"; then
12297 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch
`"
12299 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12300 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
12302 gcc_version=`gcc
-v 2>&1 |
grep version | cut
-d\
-f3`
12303 if test ${gcc_version} '<' 4.0
12305 LIBTOOL_CRUFT="-lcc_dynamic"
12309 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch
`"
12310 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12311 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
12314 { echo "$as_me:$LINENO: checking for --enable-framework" >&5
12315 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; }
12316 if test "$enable_framework"
12318 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
12319 # -F. is needed to allow linking to the framework while
12320 # in the build location.
12322 cat >>confdefs.h <<\_ACEOF
12323 #define WITH_NEXT_FRAMEWORK 1
12326 { echo "$as_me:$LINENO: result: yes" >&5
12327 echo "${ECHO_T}yes" >&6; }
12329 { echo "$as_me:$LINENO: result: no" >&5
12330 echo "${ECHO_T}no" >&6; }
12333 { echo "$as_me:$LINENO: checking for dyld" >&5
12334 echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
12335 case $ac_sys_system/$ac_sys_release in
12338 cat >>confdefs.h <<\_ACEOF
12339 #define WITH_DYLD 1
12342 { echo "$as_me:$LINENO: result: always on for Darwin" >&5
12343 echo "${ECHO_T}always on for Darwin" >&6; }
12346 { echo "$as_me:$LINENO: result: no" >&5
12347 echo "${ECHO_T}no" >&6; }
12351 # Set info about shared libraries.
12357 # SO is the extension of shared libraries `(including the dot
!)
12358 # -- usually .so, .sl on HP-UX, .dll on Cygwin
12359 { echo "$as_me:$LINENO: checking SO" >&5
12360 echo $ECHO_N "checking SO... $ECHO_C" >&6; }
12363 case $ac_sys_system in
12374 # this might also be a termcap variable, see #610332
12376 echo '====================================================================='
12378 echo '+ WARNING: You have set SO in your environment. +'
12379 echo '+ Do you really mean to change the extension for shared libraries? +'
12380 echo '+ Continuing in 10 seconds to let you to ponder. +'
12382 echo '====================================================================='
12385 { echo "$as_me:$LINENO: result: $SO" >&5
12386 echo "${ECHO_T}$SO" >&6; }
12388 cat >>confdefs.h
<<_ACEOF
12389 #define SHLIB_EXT "$SO"
12392 # LDSHARED is the ld *command* used to create shared library
12393 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
12394 # (Shared libraries in this instance are shared modules to be loaded into
12395 # Python, as opposed to building Python itself as a shared library.)
12396 { echo "$as_me:$LINENO: checking LDSHARED" >&5
12397 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
12398 if test -z "$LDSHARED"
12400 case $ac_sys_system/$ac_sys_release in
12402 BLDSHARED
="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
12403 LDSHARED
="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
12406 BLDSHARED
="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
12407 LDSHARED
="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
12409 IRIX
/5*) LDSHARED
="ld -shared";;
12410 IRIX
*/6*) LDSHARED
="ld ${SGI_ABI} -shared -all";;
12412 if test "$GCC" = "yes"
12413 then LDSHARED
='$(CC) -shared'
12414 else LDSHARED
='$(CC) -G';
12416 hp
*|HP
*) LDSHARED
="ld -b";;
12417 OSF
*) LDSHARED
="ld -shared -expect_unresolved \"*\"";;
12419 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
12420 if test "$enable_framework" ; then
12421 # Link against the framework. All externals should be defined.
12422 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12423 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12425 # No framework. Ignore undefined symbols, assuming they come from Python
12426 LDSHARED
="$LDSHARED -undefined suppress"
12428 Darwin
/1.4*|Darwin
/5.
*|Darwin
/6.
*)
12429 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
12430 if test "$enable_framework" ; then
12431 # Link against the framework. All externals should be defined.
12432 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12433 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12435 # No framework, use the Python app as bundle-loader
12436 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
12437 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
12440 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
12441 # This allows an extension to be used in any Python
12442 cur_target
=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
12443 if test ${cur_target} '>' 10.2; then
12446 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
12448 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
12449 # environment with a value that is the same as what we'll use
12450 # in the Makefile to ensure that we'll get the same compiler
12451 # environment during configure and build time.
12452 MACOSX_DEPLOYMENT_TARGET
="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
12453 export MACOSX_DEPLOYMENT_TARGET
12455 EXPORT_MACOSX_DEPLOYMENT_TARGET
=''
12456 if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2
12458 if test "${enable_universalsdk}"; then
12459 LDFLAGS
="-arch i386 -arch ppc -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
12461 LDSHARED
='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
12462 BLDSHARED
="$LDSHARED"
12464 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
12465 if test "$enable_framework" ; then
12466 # Link against the framework. All externals should be defined.
12467 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12468 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12470 # No framework, use the Python app as bundle-loader
12471 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
12472 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
12476 Linux
*|GNU
*) LDSHARED
='$(CC) -shared';;
12477 BSD
/OS
*/4*) LDSHARED
="gcc -shared";;
12479 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
12481 LDSHARED
="$CC -shared ${LDFLAGS}"
12483 LDSHARED
="ld -Bshareable ${LDFLAGS}"
12486 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
12488 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
12491 [01].
* |
2.
[0-7] |
2.
[0-7].
*)
12492 LDSHARED
="ld -Bshareable ${LDFLAGS}"
12495 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
12499 NetBSD
*|DragonFly
*) LDSHARED
="cc -shared ${LDFLAGS}";;
12500 OpenUNIX
*|UnixWare
*)
12501 if test "$GCC" = "yes"
12502 then LDSHARED
='$(CC) -shared'
12503 else LDSHARED
='$(CC) -G'
12505 SCO_SV
*) LDSHARED
='$(CC) -Wl,-G,-Bexport';;
12506 Monterey
*) LDSHARED
="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
12507 CYGWIN
*) LDSHARED
="gcc -shared -Wl,--enable-auto-image-base";;
12508 atheos
*) LDSHARED
="gcc -shared";;
12512 { echo "$as_me:$LINENO: result: $LDSHARED" >&5
12513 echo "${ECHO_T}$LDSHARED" >&6; }
12514 BLDSHARED
=${BLDSHARED-$LDSHARED}
12515 # CCSHARED are the C *flags* used to create objects to go into a shared
12516 # library (module) -- this is only needed for a few systems
12517 { echo "$as_me:$LINENO: checking CCSHARED" >&5
12518 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
12519 if test -z "$CCSHARED"
12521 case $ac_sys_system/$ac_sys_release in
12522 SunOS
*) if test "$GCC" = yes;
12523 then CCSHARED
="-fPIC";
12524 elif test `uname -p` = sparc
;
12525 then CCSHARED
="-xcode=pic32";
12526 else CCSHARED
="-Kpic";
12528 hp
*|HP
*) if test "$GCC" = yes;
12529 then CCSHARED
="-fPIC";
12530 else CCSHARED
="+z";
12532 Linux
*|GNU
*) CCSHARED
="-fPIC";;
12533 BSD
/OS
*/4*) CCSHARED
="-fpic";;
12534 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*) CCSHARED
="-fPIC";;
12535 OpenUNIX
*|UnixWare
*)
12536 if test "$GCC" = "yes"
12537 then CCSHARED
="-fPIC"
12538 else CCSHARED
="-KPIC"
12541 if test "$GCC" = "yes"
12542 then CCSHARED
="-fPIC"
12543 else CCSHARED
="-Kpic -belf"
12545 Monterey
*) CCSHARED
="-G";;
12546 IRIX
*/6*) case $CC in
12547 *gcc
*) CCSHARED
="-shared";;
12550 atheos
*) CCSHARED
="-fPIC";;
12553 { echo "$as_me:$LINENO: result: $CCSHARED" >&5
12554 echo "${ECHO_T}$CCSHARED" >&6; }
12555 # LINKFORSHARED are the flags passed to the $(CC) command that links
12556 # the python executable -- this is only needed for a few systems
12557 { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
12558 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
12559 if test -z "$LINKFORSHARED"
12561 case $ac_sys_system/$ac_sys_release in
12562 AIX
*) LINKFORSHARED
='-Wl,-bE:Modules/python.exp -lld';;
12564 LINKFORSHARED
="-Wl,-E -Wl,+s";;
12565 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
12566 BSD
/OS
/4*) LINKFORSHARED
="-Xlinker -export-dynamic";;
12567 Linux
*|GNU
*) LINKFORSHARED
="-Xlinker -export-dynamic";;
12568 # -u libsys_s pulls in all symbols in libsys
12570 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
12572 # not used by the core itself but which needs to be in the core so
12573 # that dynamically loaded extension modules have access to it.
12574 # -prebind is no longer used, because it actually seems to give a
12575 # slowdown in stead of a speedup, maybe due to the large number of
12576 # dynamic loads Python does.
12578 LINKFORSHARED
="$extra_undefs"
12579 if test "$enable_framework"
12581 LINKFORSHARED
="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12583 LINKFORSHARED
="$LINKFORSHARED";;
12584 OpenUNIX
*|UnixWare
*) LINKFORSHARED
="-Wl,-Bexport";;
12585 SCO_SV
*) LINKFORSHARED
="-Wl,-Bexport";;
12586 ReliantUNIX
*) LINKFORSHARED
="-W1 -Blargedynsym";;
12587 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*)
12588 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
12590 LINKFORSHARED
="-Wl,--export-dynamic"
12592 SunOS
/5*) case $CC in
12594 if $CC -Xlinker --help 2>&1 |
grep export-dynamic
>/dev
/null
12596 LINKFORSHARED
="-Xlinker --export-dynamic"
12600 if test $enable_shared = "no"
12602 LINKFORSHARED
='-Wl,--out-implib=$(LDLIBRARY)'
12606 { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
12607 echo "${ECHO_T}$LINKFORSHARED" >&6; }
12610 { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
12611 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
12612 if test ! "$LIBRARY" = "$LDLIBRARY"
12614 case $ac_sys_system in
12616 # Cygwin needs CCSHARED when building extension DLLs
12617 # but not when building the interpreter DLL.
12618 CFLAGSFORSHARED
='';;
12620 CFLAGSFORSHARED
='$(CCSHARED)'
12623 { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
12624 echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
12626 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
12627 # library (with --enable-shared).
12628 # For platforms on which shared libraries are not allowed to have unresolved
12629 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
12630 # if it is not required, since it creates a dependency of the shared library
12631 # to LIBS. This, in turn, means that applications linking the shared libpython
12632 # don't need to link LIBS explicitly. The default should be only changed
12633 # on systems where this approach causes problems.
12635 { echo "$as_me:$LINENO: checking SHLIBS" >&5
12636 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
12637 case "$ac_sys_system" in
12641 { echo "$as_me:$LINENO: result: $SHLIBS" >&5
12642 echo "${ECHO_T}$SHLIBS" >&6; }
12645 # checks for libraries
12647 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12648 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12649 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12650 echo $ECHO_N "(cached) $ECHO_C" >&6
12652 ac_check_lib_save_LIBS
=$LIBS
12654 cat >conftest.
$ac_ext <<_ACEOF
12657 cat confdefs.h
>>conftest.
$ac_ext
12658 cat >>conftest.
$ac_ext <<_ACEOF
12659 /* end confdefs.h. */
12661 /* Override any GCC internal prototype to avoid an error.
12662 Use char because int might match the return type of a GCC
12663 builtin and then its argument prototype would still apply. */
12676 rm -f conftest.
$ac_objext conftest
$ac_exeext
12677 if { (ac_try
="$ac_link"
12678 case "(($ac_try" in
12679 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12680 *) ac_try_echo=$ac_try;;
12682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12683 (eval "$ac_link") 2>conftest.er1
12685 grep -v '^ *+' conftest.er1 >conftest.err
12687 cat conftest.err >&5
12688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689 (exit $ac_status); } && {
12690 test -z "$ac_c_werror_flag" ||
12691 test ! -s conftest.err
12692 } && test -s conftest$ac_exeext &&
12693 $as_test_x conftest$ac_exeext; then
12694 ac_cv_lib_dl_dlopen=yes
12696 echo "$as_me: failed program was:" >&5
12697 sed 's/^/| /' conftest.$ac_ext >&5
12699 ac_cv_lib_dl_dlopen=no
12702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12703 conftest$ac_exeext conftest.$ac_ext
12704 LIBS=$ac_check_lib_save_LIBS
12706 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12707 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12708 if test $ac_cv_lib_dl_dlopen = yes; then
12709 cat >>confdefs.h <<_ACEOF
12710 #define HAVE_LIBDL 1
12716 # Dynamic linking for SunOS/Solaris and SYSV
12718 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12719 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12720 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12721 echo $ECHO_N "(cached) $ECHO_C" >&6
12723 ac_check_lib_save_LIBS=$LIBS
12725 cat >conftest.$ac_ext <<_ACEOF
12728 cat confdefs.h >>conftest.$ac_ext
12729 cat >>conftest.$ac_ext <<_ACEOF
12730 /* end confdefs.h. */
12732 /* Override any GCC internal prototype to avoid an error.
12733 Use char because int might match the return type of a GCC
12734 builtin and then its argument prototype would still apply. */
12742 return shl_load ();
12747 rm -f conftest.$ac_objext conftest$ac_exeext
12748 if { (ac_try="$ac_link"
12749 case "(($ac_try" in
12750 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12751 *) ac_try_echo
=$ac_try;;
12753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12754 (eval "$ac_link") 2>conftest.er1
12756 grep -v '^ *+' conftest.er1
>conftest.err
12758 cat conftest.err
>&5
12759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 (exit $ac_status); } && {
12761 test -z "$ac_c_werror_flag" ||
12762 test ! -s conftest.err
12763 } && test -s conftest
$ac_exeext &&
12764 $as_test_x conftest
$ac_exeext; then
12765 ac_cv_lib_dld_shl_load
=yes
12767 echo "$as_me: failed program was:" >&5
12768 sed 's/^/| /' conftest.
$ac_ext >&5
12770 ac_cv_lib_dld_shl_load
=no
12773 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12774 conftest
$ac_exeext conftest.
$ac_ext
12775 LIBS
=$ac_check_lib_save_LIBS
12777 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12778 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12779 if test $ac_cv_lib_dld_shl_load = yes; then
12780 cat >>confdefs.h
<<_ACEOF
12781 #define HAVE_LIBDLD 1
12787 # Dynamic linking for HP-UX
12789 # only check for sem_ini if thread support is requested
12790 if test "$with_threads" = "yes" -o -z "$with_threads"; then
12791 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
12792 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
12793 if test "${ac_cv_search_sem_init+set}" = set; then
12794 echo $ECHO_N "(cached) $ECHO_C" >&6
12796 ac_func_search_save_LIBS
=$LIBS
12797 cat >conftest.
$ac_ext <<_ACEOF
12800 cat confdefs.h
>>conftest.
$ac_ext
12801 cat >>conftest.
$ac_ext <<_ACEOF
12802 /* end confdefs.h. */
12804 /* Override any GCC internal prototype to avoid an error.
12805 Use char because int might match the return type of a GCC
12806 builtin and then its argument prototype would still apply. */
12814 return sem_init ();
12819 for ac_lib
in '' pthread rt posix4
; do
12820 if test -z "$ac_lib"; then
12821 ac_res
="none required"
12824 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12826 rm -f conftest.
$ac_objext conftest
$ac_exeext
12827 if { (ac_try
="$ac_link"
12828 case "(($ac_try" in
12829 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12830 *) ac_try_echo=$ac_try;;
12832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12833 (eval "$ac_link") 2>conftest.er1
12835 grep -v '^ *+' conftest.er1 >conftest.err
12837 cat conftest.err >&5
12838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839 (exit $ac_status); } && {
12840 test -z "$ac_c_werror_flag" ||
12841 test ! -s conftest.err
12842 } && test -s conftest$ac_exeext &&
12843 $as_test_x conftest$ac_exeext; then
12844 ac_cv_search_sem_init=$ac_res
12846 echo "$as_me: failed program was:" >&5
12847 sed 's/^/| /' conftest.$ac_ext >&5
12852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12854 if test "${ac_cv_search_sem_init+set}" = set; then
12858 if test "${ac_cv_search_sem_init+set}" = set; then
12861 ac_cv_search_sem_init=no
12863 rm conftest.$ac_ext
12864 LIBS=$ac_func_search_save_LIBS
12866 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
12867 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
12868 ac_res=$ac_cv_search_sem_init
12869 if test "$ac_res" != no; then
12870 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12873 # 'Real Time' functions on Solaris
12874 # posix4 on Solaris 2.6
12875 # pthread (first!) on Linux
12878 # check if we need libintl for locale functions
12879 { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
12880 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
12881 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
12882 echo $ECHO_N "(cached) $ECHO_C" >&6
12884 ac_check_lib_save_LIBS=$LIBS
12885 LIBS="-lintl $LIBS"
12886 cat >conftest.$ac_ext <<_ACEOF
12889 cat confdefs.h >>conftest.$ac_ext
12890 cat >>conftest.$ac_ext <<_ACEOF
12891 /* end confdefs.h. */
12893 /* Override any GCC internal prototype to avoid an error.
12894 Use char because int might match the return type of a GCC
12895 builtin and then its argument prototype would still apply. */
12899 char textdomain ();
12903 return textdomain ();
12908 rm -f conftest.$ac_objext conftest$ac_exeext
12909 if { (ac_try="$ac_link"
12910 case "(($ac_try" in
12911 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12912 *) ac_try_echo
=$ac_try;;
12914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12915 (eval "$ac_link") 2>conftest.er1
12917 grep -v '^ *+' conftest.er1
>conftest.err
12919 cat conftest.err
>&5
12920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921 (exit $ac_status); } && {
12922 test -z "$ac_c_werror_flag" ||
12923 test ! -s conftest.err
12924 } && test -s conftest
$ac_exeext &&
12925 $as_test_x conftest
$ac_exeext; then
12926 ac_cv_lib_intl_textdomain
=yes
12928 echo "$as_me: failed program was:" >&5
12929 sed 's/^/| /' conftest.
$ac_ext >&5
12931 ac_cv_lib_intl_textdomain
=no
12934 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12935 conftest
$ac_exeext conftest.
$ac_ext
12936 LIBS
=$ac_check_lib_save_LIBS
12938 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
12939 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
12940 if test $ac_cv_lib_intl_textdomain = yes; then
12942 cat >>confdefs.h
<<\_ACEOF
12943 #define WITH_LIBINTL 1
12949 # checks for system dependent C++ extensions support
12950 case "$ac_sys_system" in
12951 AIX
*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
12952 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
12953 cat >conftest.
$ac_ext <<_ACEOF
12956 cat confdefs.h
>>conftest.
$ac_ext
12957 cat >>conftest.
$ac_ext <<_ACEOF
12958 /* end confdefs.h. */
12959 #include "/usr/lpp/xlC/include/load.h"
12963 loadAndInit("", 0, "")
12968 rm -f conftest.
$ac_objext conftest
$ac_exeext
12969 if { (ac_try
="$ac_link"
12970 case "(($ac_try" in
12971 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12972 *) ac_try_echo=$ac_try;;
12974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12975 (eval "$ac_link") 2>conftest.er1
12977 grep -v '^ *+' conftest.er1 >conftest.err
12979 cat conftest.err >&5
12980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12981 (exit $ac_status); } && {
12982 test -z "$ac_c_werror_flag" ||
12983 test ! -s conftest.err
12984 } && test -s conftest$ac_exeext &&
12985 $as_test_x conftest$ac_exeext; then
12987 cat >>confdefs.h <<\_ACEOF
12988 #define AIX_GENUINE_CPLUSPLUS 1
12991 { echo "$as_me:$LINENO: result: yes" >&5
12992 echo "${ECHO_T}yes" >&6; }
12994 echo "$as_me: failed program was:" >&5
12995 sed 's/^/| /' conftest.$ac_ext >&5
12997 { echo "$as_me:$LINENO: result: no" >&5
12998 echo "${ECHO_T}no" >&6; }
13001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13002 conftest$ac_exeext conftest.$ac_ext;;
13006 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
13007 # BeOS' sockets are stashed in libnet.
13008 { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
13009 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
13010 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
13011 echo $ECHO_N "(cached) $ECHO_C" >&6
13013 ac_check_lib_save_LIBS=$LIBS
13015 cat >conftest.$ac_ext <<_ACEOF
13018 cat confdefs.h >>conftest.$ac_ext
13019 cat >>conftest.$ac_ext <<_ACEOF
13020 /* end confdefs.h. */
13022 /* Override any GCC internal prototype to avoid an error.
13023 Use char because int might match the return type of a GCC
13024 builtin and then its argument prototype would still apply. */
13037 rm -f conftest.$ac_objext conftest$ac_exeext
13038 if { (ac_try="$ac_link"
13039 case "(($ac_try" in
13040 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13041 *) ac_try_echo
=$ac_try;;
13043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13044 (eval "$ac_link") 2>conftest.er1
13046 grep -v '^ *+' conftest.er1
>conftest.err
13048 cat conftest.err
>&5
13049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13050 (exit $ac_status); } && {
13051 test -z "$ac_c_werror_flag" ||
13052 test ! -s conftest.err
13053 } && test -s conftest
$ac_exeext &&
13054 $as_test_x conftest
$ac_exeext; then
13055 ac_cv_lib_nsl_t_open
=yes
13057 echo "$as_me: failed program was:" >&5
13058 sed 's/^/| /' conftest.
$ac_ext >&5
13060 ac_cv_lib_nsl_t_open
=no
13063 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13064 conftest
$ac_exeext conftest.
$ac_ext
13065 LIBS
=$ac_check_lib_save_LIBS
13067 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
13068 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
13069 if test $ac_cv_lib_nsl_t_open = yes; then
13073 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
13074 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
13075 if test "${ac_cv_lib_socket_socket+set}" = set; then
13076 echo $ECHO_N "(cached) $ECHO_C" >&6
13078 ac_check_lib_save_LIBS
=$LIBS
13079 LIBS
="-lsocket $LIBS $LIBS"
13080 cat >conftest.
$ac_ext <<_ACEOF
13083 cat confdefs.h
>>conftest.
$ac_ext
13084 cat >>conftest.
$ac_ext <<_ACEOF
13085 /* end confdefs.h. */
13087 /* Override any GCC internal prototype to avoid an error.
13088 Use char because int might match the return type of a GCC
13089 builtin and then its argument prototype would still apply. */
13102 rm -f conftest.
$ac_objext conftest
$ac_exeext
13103 if { (ac_try
="$ac_link"
13104 case "(($ac_try" in
13105 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13106 *) ac_try_echo=$ac_try;;
13108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13109 (eval "$ac_link") 2>conftest.er1
13111 grep -v '^ *+' conftest.er1 >conftest.err
13113 cat conftest.err >&5
13114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13115 (exit $ac_status); } && {
13116 test -z "$ac_c_werror_flag" ||
13117 test ! -s conftest.err
13118 } && test -s conftest$ac_exeext &&
13119 $as_test_x conftest$ac_exeext; then
13120 ac_cv_lib_socket_socket=yes
13122 echo "$as_me: failed program was:" >&5
13123 sed 's/^/| /' conftest.$ac_ext >&5
13125 ac_cv_lib_socket_socket=no
13128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13129 conftest$ac_exeext conftest.$ac_ext
13130 LIBS=$ac_check_lib_save_LIBS
13132 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
13133 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
13134 if test $ac_cv_lib_socket_socket = yes; then
13135 LIBS="-lsocket $LIBS"
13139 case "$ac_sys_system" in
13141 { echo "$as_me:$LINENO: checking for socket in -lnet" >&5
13142 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6; }
13143 if test "${ac_cv_lib_net_socket+set}" = set; then
13144 echo $ECHO_N "(cached) $ECHO_C" >&6
13146 ac_check_lib_save_LIBS=$LIBS
13147 LIBS="-lnet $LIBS $LIBS"
13148 cat >conftest.$ac_ext <<_ACEOF
13151 cat confdefs.h >>conftest.$ac_ext
13152 cat >>conftest.$ac_ext <<_ACEOF
13153 /* end confdefs.h. */
13155 /* Override any GCC internal prototype to avoid an error.
13156 Use char because int might match the return type of a GCC
13157 builtin and then its argument prototype would still apply. */
13170 rm -f conftest.$ac_objext conftest$ac_exeext
13171 if { (ac_try="$ac_link"
13172 case "(($ac_try" in
13173 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13174 *) ac_try_echo
=$ac_try;;
13176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13177 (eval "$ac_link") 2>conftest.er1
13179 grep -v '^ *+' conftest.er1
>conftest.err
13181 cat conftest.err
>&5
13182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); } && {
13184 test -z "$ac_c_werror_flag" ||
13185 test ! -s conftest.err
13186 } && test -s conftest
$ac_exeext &&
13187 $as_test_x conftest
$ac_exeext; then
13188 ac_cv_lib_net_socket
=yes
13190 echo "$as_me: failed program was:" >&5
13191 sed 's/^/| /' conftest.
$ac_ext >&5
13193 ac_cv_lib_net_socket
=no
13196 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13197 conftest
$ac_exeext conftest.
$ac_ext
13198 LIBS
=$ac_check_lib_save_LIBS
13200 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
13201 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6; }
13202 if test $ac_cv_lib_net_socket = yes; then
13209 { echo "$as_me:$LINENO: checking for --with-libs" >&5
13210 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
13212 # Check whether --with-libs was given.
13213 if test "${with_libs+set}" = set; then
13214 withval
=$with_libs;
13215 { echo "$as_me:$LINENO: result: $withval" >&5
13216 echo "${ECHO_T}$withval" >&6; }
13217 LIBS
="$withval $LIBS"
13220 { echo "$as_me:$LINENO: result: no" >&5
13221 echo "${ECHO_T}no" >&6; }
13225 # Check for use of the system libffi library
13226 if test "${ac_cv_header_ffi_h+set}" = set; then
13227 { echo "$as_me:$LINENO: checking for ffi.h" >&5
13228 echo $ECHO_N "checking for ffi.h... $ECHO_C" >&6; }
13229 if test "${ac_cv_header_ffi_h+set}" = set; then
13230 echo $ECHO_N "(cached) $ECHO_C" >&6
13232 { echo "$as_me:$LINENO: result: $ac_cv_header_ffi_h" >&5
13233 echo "${ECHO_T}$ac_cv_header_ffi_h" >&6; }
13235 # Is the header compilable?
13236 { echo "$as_me:$LINENO: checking ffi.h usability" >&5
13237 echo $ECHO_N "checking ffi.h usability... $ECHO_C" >&6; }
13238 cat >conftest.
$ac_ext <<_ACEOF
13241 cat confdefs.h
>>conftest.
$ac_ext
13242 cat >>conftest.
$ac_ext <<_ACEOF
13243 /* end confdefs.h. */
13244 $ac_includes_default
13247 rm -f conftest.
$ac_objext
13248 if { (ac_try
="$ac_compile"
13249 case "(($ac_try" in
13250 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13251 *) ac_try_echo=$ac_try;;
13253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13254 (eval "$ac_compile") 2>conftest.er1
13256 grep -v '^ *+' conftest.er1 >conftest.err
13258 cat conftest.err >&5
13259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260 (exit $ac_status); } && {
13261 test -z "$ac_c_werror_flag" ||
13262 test ! -s conftest.err
13263 } && test -s conftest.$ac_objext; then
13264 ac_header_compiler=yes
13266 echo "$as_me: failed program was:" >&5
13267 sed 's/^/| /' conftest.$ac_ext >&5
13269 ac_header_compiler=no
13272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13273 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13274 echo "${ECHO_T}$ac_header_compiler" >&6; }
13276 # Is the header present?
13277 { echo "$as_me:$LINENO: checking ffi.h presence" >&5
13278 echo $ECHO_N "checking ffi.h presence... $ECHO_C" >&6; }
13279 cat >conftest.$ac_ext <<_ACEOF
13282 cat confdefs.h >>conftest.$ac_ext
13283 cat >>conftest.$ac_ext <<_ACEOF
13284 /* end confdefs.h. */
13287 if { (ac_try="$ac_cpp conftest.$ac_ext"
13288 case "(($ac_try" in
13289 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13290 *) ac_try_echo
=$ac_try;;
13292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13293 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13295 grep -v '^ *+' conftest.er1
>conftest.err
13297 cat conftest.err
>&5
13298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299 (exit $ac_status); } >/dev
/null
&& {
13300 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13301 test ! -s conftest.err
13303 ac_header_preproc
=yes
13305 echo "$as_me: failed program was:" >&5
13306 sed 's/^/| /' conftest.
$ac_ext >&5
13308 ac_header_preproc
=no
13311 rm -f conftest.err conftest.
$ac_ext
13312 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13313 echo "${ECHO_T}$ac_header_preproc" >&6; }
13315 # So? What about this header?
13316 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13318 { echo "$as_me:$LINENO: WARNING: ffi.h: accepted by the compiler, rejected by the preprocessor!" >&5
13319 echo "$as_me: WARNING: ffi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13320 { echo "$as_me:$LINENO: WARNING: ffi.h: proceeding with the compiler's result" >&5
13321 echo "$as_me: WARNING: ffi.h: proceeding with the compiler's result" >&2;}
13322 ac_header_preproc
=yes
13325 { echo "$as_me:$LINENO: WARNING: ffi.h: present but cannot be compiled" >&5
13326 echo "$as_me: WARNING: ffi.h: present but cannot be compiled" >&2;}
13327 { echo "$as_me:$LINENO: WARNING: ffi.h: check for missing prerequisite headers?" >&5
13328 echo "$as_me: WARNING: ffi.h: check for missing prerequisite headers?" >&2;}
13329 { echo "$as_me:$LINENO: WARNING: ffi.h: see the Autoconf documentation" >&5
13330 echo "$as_me: WARNING: ffi.h: see the Autoconf documentation" >&2;}
13331 { echo "$as_me:$LINENO: WARNING: ffi.h: section \"Present But Cannot Be Compiled\"" >&5
13332 echo "$as_me: WARNING: ffi.h: section \"Present But Cannot Be Compiled\"" >&2;}
13333 { echo "$as_me:$LINENO: WARNING: ffi.h: proceeding with the preprocessor's result" >&5
13334 echo "$as_me: WARNING: ffi.h: proceeding with the preprocessor's result" >&2;}
13335 { echo "$as_me:$LINENO: WARNING: ffi.h: in the future, the compiler will take precedence" >&5
13336 echo "$as_me: WARNING: ffi.h: in the future, the compiler will take precedence" >&2;}
13338 ## ------------------------------------------------ ##
13339 ## Report this to http://www.python.org/python-bugs ##
13340 ## ------------------------------------------------ ##
13342 ) |
sed "s/^/$as_me: WARNING: /" >&2
13345 { echo "$as_me:$LINENO: checking for ffi.h" >&5
13346 echo $ECHO_N "checking for ffi.h... $ECHO_C" >&6; }
13347 if test "${ac_cv_header_ffi_h+set}" = set; then
13348 echo $ECHO_N "(cached) $ECHO_C" >&6
13350 ac_cv_header_ffi_h
=$ac_header_preproc
13352 { echo "$as_me:$LINENO: result: $ac_cv_header_ffi_h" >&5
13353 echo "${ECHO_T}$ac_cv_header_ffi_h" >&6; }
13358 { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
13359 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
13361 # Check whether --with-system_ffi was given.
13362 if test "${with_system_ffi+set}" = set; then
13363 withval
=$with_system_ffi;
13367 if test -z "$with_system_ffi" && test "$ac_cv_header_ffi_h" = yes; then
13368 case "$ac_sys_system/`uname -m`" in
13369 Linux
/alpha
*) with_system_ffi
="yes"; CONFIG_ARGS
="$CONFIG_ARGS --with-system-ffi";;
13370 Linux
/arm
*) with_system_ffi
="yes"; CONFIG_ARGS
="$CONFIG_ARGS --with-system-ffi";;
13371 Linux
/ppc
*) with_system_ffi
="yes"; CONFIG_ARGS
="$CONFIG_ARGS --with-system-ffi";;
13372 Linux
/s390
*) with_system_ffi
="yes"; CONFIG_ARGS
="$CONFIG_ARGS --with-system-ffi";;
13373 *) with_system_ffi
="no"
13376 { echo "$as_me:$LINENO: result: $with_system_ffi" >&5
13377 echo "${ECHO_T}$with_system_ffi" >&6; }
13379 # Determine if signalmodule should be used.
13382 { echo "$as_me:$LINENO: checking for --with-signal-module" >&5
13383 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; }
13385 # Check whether --with-signal-module was given.
13386 if test "${with_signal_module+set}" = set; then
13387 withval
=$with_signal_module;
13391 if test -z "$with_signal_module"
13392 then with_signal_module
="yes"
13394 { echo "$as_me:$LINENO: result: $with_signal_module" >&5
13395 echo "${ECHO_T}$with_signal_module" >&6; }
13397 if test "${with_signal_module}" = "yes"; then
13398 USE_SIGNAL_MODULE
=""
13401 USE_SIGNAL_MODULE
="#"
13402 SIGNAL_OBJS
="Parser/intrcheck.o Python/sigcheck.o"
13405 # This is used to generate Setup.config
13407 USE_THREAD_MODULE
=""
13409 { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
13410 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; }
13413 # Check whether --with-dec-threads was given.
13414 if test "${with_dec_threads+set}" = set; then
13415 withval
=$with_dec_threads;
13416 { echo "$as_me:$LINENO: result: $withval" >&5
13417 echo "${ECHO_T}$withval" >&6; }
13419 if test "${with_thread+set}" != set; then
13420 with_thread
="$withval";
13423 { echo "$as_me:$LINENO: result: no" >&5
13424 echo "${ECHO_T}no" >&6; }
13428 # Templates for things AC_DEFINEd more than once.
13429 # For a single AC_DEFINE, no template is needed.
13437 { echo "$as_me:$LINENO: checking for --with-threads" >&5
13438 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; }
13440 # Check whether --with-threads was given.
13441 if test "${with_threads+set}" = set; then
13442 withval
=$with_threads;
13446 # --with-thread is deprecated, but check for it anyway
13448 # Check whether --with-thread was given.
13449 if test "${with_thread+set}" = set; then
13450 withval
=$with_thread; with_threads
=$with_thread
13454 if test -z "$with_threads"
13455 then with_threads
="yes"
13457 { echo "$as_me:$LINENO: result: $with_threads" >&5
13458 echo "${ECHO_T}$with_threads" >&6; }
13461 if test "$with_threads" = "no"
13463 USE_THREAD_MODULE
="#"
13464 elif test "$ac_cv_pthread_is_default" = yes
13466 cat >>confdefs.h
<<\_ACEOF
13467 #define WITH_THREAD 1
13470 # Defining _REENTRANT on system with POSIX threads should not hurt.
13471 cat >>confdefs.h
<<\_ACEOF
13472 #define _REENTRANT 1
13476 THREADOBJ
="Python/thread.o"
13477 elif test "$ac_cv_kpthread" = "yes"
13480 if test "$ac_cv_cxx_thread" = "yes"; then
13481 CXX
="$CXX -Kpthread"
13483 cat >>confdefs.h
<<\_ACEOF
13484 #define WITH_THREAD 1
13488 THREADOBJ
="Python/thread.o"
13489 elif test "$ac_cv_kthread" = "yes"
13492 if test "$ac_cv_cxx_thread" = "yes"; then
13493 CXX
="$CXX -Kthread"
13495 cat >>confdefs.h
<<\_ACEOF
13496 #define WITH_THREAD 1
13500 THREADOBJ
="Python/thread.o"
13501 elif test "$ac_cv_pthread" = "yes"
13504 if test "$ac_cv_cxx_thread" = "yes"; then
13505 CXX
="$CXX -pthread"
13507 cat >>confdefs.h
<<\_ACEOF
13508 #define WITH_THREAD 1
13512 THREADOBJ
="Python/thread.o"
13514 if test ! -z "$with_threads" -a -d "$with_threads"
13515 then LDFLAGS
="$LDFLAGS -L$with_threads"
13517 if test ! -z "$withval" -a -d "$withval"
13518 then LDFLAGS
="$LDFLAGS -L$withval"
13521 # According to the POSIX spec, a pthreads implementation must
13522 # define _POSIX_THREADS in unistd.h. Some apparently don't
13523 # (e.g. gnu pth with pthread emulation)
13524 { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
13525 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; }
13526 cat >conftest.
$ac_ext <<_ACEOF
13529 cat confdefs.h
>>conftest.
$ac_ext
13530 cat >>conftest.
$ac_ext <<_ACEOF
13531 /* end confdefs.h. */
13533 #include <unistd.h>
13534 #ifdef _POSIX_THREADS
13539 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13540 $EGREP "yes" >/dev
/null
2>&1; then
13541 unistd_defines_pthreads
=yes
13543 unistd_defines_pthreads
=no
13547 { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
13548 echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
13550 cat >>confdefs.h
<<\_ACEOF
13551 #define _REENTRANT 1
13554 if test "${ac_cv_header_cthreads_h+set}" = set; then
13555 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
13556 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
13557 if test "${ac_cv_header_cthreads_h+set}" = set; then
13558 echo $ECHO_N "(cached) $ECHO_C" >&6
13560 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
13561 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
13563 # Is the header compilable?
13564 { echo "$as_me:$LINENO: checking cthreads.h usability" >&5
13565 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; }
13566 cat >conftest.
$ac_ext <<_ACEOF
13569 cat confdefs.h
>>conftest.
$ac_ext
13570 cat >>conftest.
$ac_ext <<_ACEOF
13571 /* end confdefs.h. */
13572 $ac_includes_default
13573 #include <cthreads.h>
13575 rm -f conftest.
$ac_objext
13576 if { (ac_try
="$ac_compile"
13577 case "(($ac_try" in
13578 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13579 *) ac_try_echo=$ac_try;;
13581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13582 (eval "$ac_compile") 2>conftest.er1
13584 grep -v '^ *+' conftest.er1 >conftest.err
13586 cat conftest.err >&5
13587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13588 (exit $ac_status); } && {
13589 test -z "$ac_c_werror_flag" ||
13590 test ! -s conftest.err
13591 } && test -s conftest.$ac_objext; then
13592 ac_header_compiler=yes
13594 echo "$as_me: failed program was:" >&5
13595 sed 's/^/| /' conftest.$ac_ext >&5
13597 ac_header_compiler=no
13600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13601 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13602 echo "${ECHO_T}$ac_header_compiler" >&6; }
13604 # Is the header present?
13605 { echo "$as_me:$LINENO: checking cthreads.h presence" >&5
13606 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; }
13607 cat >conftest.$ac_ext <<_ACEOF
13610 cat confdefs.h >>conftest.$ac_ext
13611 cat >>conftest.$ac_ext <<_ACEOF
13612 /* end confdefs.h. */
13613 #include <cthreads.h>
13615 if { (ac_try="$ac_cpp conftest.$ac_ext"
13616 case "(($ac_try" in
13617 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13618 *) ac_try_echo
=$ac_try;;
13620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13621 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13623 grep -v '^ *+' conftest.er1
>conftest.err
13625 cat conftest.err
>&5
13626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627 (exit $ac_status); } >/dev
/null
&& {
13628 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13629 test ! -s conftest.err
13631 ac_header_preproc
=yes
13633 echo "$as_me: failed program was:" >&5
13634 sed 's/^/| /' conftest.
$ac_ext >&5
13636 ac_header_preproc
=no
13639 rm -f conftest.err conftest.
$ac_ext
13640 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13641 echo "${ECHO_T}$ac_header_preproc" >&6; }
13643 # So? What about this header?
13644 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13646 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
13647 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13648 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
13649 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
13650 ac_header_preproc
=yes
13653 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
13654 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
13655 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
13656 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
13657 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
13658 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
13659 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
13660 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
13661 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
13662 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
13663 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
13664 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
13666 ## ------------------------------------------------ ##
13667 ## Report this to http://www.python.org/python-bugs ##
13668 ## ------------------------------------------------ ##
13670 ) |
sed "s/^/$as_me: WARNING: /" >&2
13673 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
13674 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
13675 if test "${ac_cv_header_cthreads_h+set}" = set; then
13676 echo $ECHO_N "(cached) $ECHO_C" >&6
13678 ac_cv_header_cthreads_h
=$ac_header_preproc
13680 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
13681 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
13684 if test $ac_cv_header_cthreads_h = yes; then
13685 cat >>confdefs.h
<<\_ACEOF
13686 #define WITH_THREAD 1
13689 cat >>confdefs.h
<<\_ACEOF
13690 #define C_THREADS 1
13694 cat >>confdefs.h
<<\_ACEOF
13695 #define HURD_C_THREADS 1
13698 LIBS
="$LIBS -lthreads"
13699 THREADOBJ
="Python/thread.o"
13702 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
13703 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
13704 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
13705 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
13706 echo $ECHO_N "(cached) $ECHO_C" >&6
13708 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
13709 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
13711 # Is the header compilable?
13712 { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
13713 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; }
13714 cat >conftest.
$ac_ext <<_ACEOF
13717 cat confdefs.h
>>conftest.
$ac_ext
13718 cat >>conftest.
$ac_ext <<_ACEOF
13719 /* end confdefs.h. */
13720 $ac_includes_default
13721 #include <mach/cthreads.h>
13723 rm -f conftest.
$ac_objext
13724 if { (ac_try
="$ac_compile"
13725 case "(($ac_try" in
13726 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13727 *) ac_try_echo=$ac_try;;
13729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13730 (eval "$ac_compile") 2>conftest.er1
13732 grep -v '^ *+' conftest.er1 >conftest.err
13734 cat conftest.err >&5
13735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736 (exit $ac_status); } && {
13737 test -z "$ac_c_werror_flag" ||
13738 test ! -s conftest.err
13739 } && test -s conftest.$ac_objext; then
13740 ac_header_compiler=yes
13742 echo "$as_me: failed program was:" >&5
13743 sed 's/^/| /' conftest.$ac_ext >&5
13745 ac_header_compiler=no
13748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13749 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13750 echo "${ECHO_T}$ac_header_compiler" >&6; }
13752 # Is the header present?
13753 { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
13754 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; }
13755 cat >conftest.$ac_ext <<_ACEOF
13758 cat confdefs.h >>conftest.$ac_ext
13759 cat >>conftest.$ac_ext <<_ACEOF
13760 /* end confdefs.h. */
13761 #include <mach/cthreads.h>
13763 if { (ac_try="$ac_cpp conftest.$ac_ext"
13764 case "(($ac_try" in
13765 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13766 *) ac_try_echo
=$ac_try;;
13768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13771 grep -v '^ *+' conftest.er1
>conftest.err
13773 cat conftest.err
>&5
13774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13775 (exit $ac_status); } >/dev
/null
&& {
13776 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13777 test ! -s conftest.err
13779 ac_header_preproc
=yes
13781 echo "$as_me: failed program was:" >&5
13782 sed 's/^/| /' conftest.
$ac_ext >&5
13784 ac_header_preproc
=no
13787 rm -f conftest.err conftest.
$ac_ext
13788 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13789 echo "${ECHO_T}$ac_header_preproc" >&6; }
13791 # So? What about this header?
13792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13794 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
13795 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13796 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
13797 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
13798 ac_header_preproc
=yes
13801 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
13802 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
13803 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
13804 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
13805 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
13806 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
13807 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
13808 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
13809 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
13810 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
13811 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
13812 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
13814 ## ------------------------------------------------ ##
13815 ## Report this to http://www.python.org/python-bugs ##
13816 ## ------------------------------------------------ ##
13818 ) |
sed "s/^/$as_me: WARNING: /" >&2
13821 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
13822 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
13823 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
13824 echo $ECHO_N "(cached) $ECHO_C" >&6
13826 ac_cv_header_mach_cthreads_h
=$ac_header_preproc
13828 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
13829 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
13832 if test $ac_cv_header_mach_cthreads_h = yes; then
13833 cat >>confdefs.h
<<\_ACEOF
13834 #define WITH_THREAD 1
13837 cat >>confdefs.h
<<\_ACEOF
13838 #define C_THREADS 1
13842 cat >>confdefs.h
<<\_ACEOF
13843 #define MACH_C_THREADS 1
13846 THREADOBJ
="Python/thread.o"
13849 { echo "$as_me:$LINENO: checking for --with-pth" >&5
13850 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; }
13852 # Check whether --with-pth was given.
13853 if test "${with_pth+set}" = set; then
13854 withval
=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5
13855 echo "${ECHO_T}$withval" >&6; }
13856 cat >>confdefs.h
<<\_ACEOF
13857 #define WITH_THREAD 1
13861 cat >>confdefs.h
<<\_ACEOF
13866 THREADOBJ
="Python/thread.o"
13868 { echo "$as_me:$LINENO: result: no" >&5
13869 echo "${ECHO_T}no" >&6; }
13871 # Just looking for pthread_create in libpthread is not enough:
13872 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
13873 # So we really have to include pthread.h, and then link.
13875 LIBS
="$LIBS -lpthread"
13876 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
13877 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
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>
13886 void * start_routine (void *arg) { exit (0); }
13891 pthread_create (NULL, NULL, start_routine, NULL)
13896 rm -f conftest.
$ac_objext conftest
$ac_exeext
13897 if { (ac_try
="$ac_link"
13898 case "(($ac_try" in
13899 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13900 *) ac_try_echo=$ac_try;;
13902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13903 (eval "$ac_link") 2>conftest.er1
13905 grep -v '^ *+' conftest.er1 >conftest.err
13907 cat conftest.err >&5
13908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13909 (exit $ac_status); } && {
13910 test -z "$ac_c_werror_flag" ||
13911 test ! -s conftest.err
13912 } && test -s conftest$ac_exeext &&
13913 $as_test_x conftest$ac_exeext; then
13915 { echo "$as_me:$LINENO: result: yes" >&5
13916 echo "${ECHO_T}yes" >&6; }
13917 cat >>confdefs.h <<\_ACEOF
13918 #define WITH_THREAD 1
13922 THREADOBJ="Python/thread.o"
13924 echo "$as_me: failed program was:" >&5
13925 sed 's/^/| /' conftest.$ac_ext >&5
13929 { echo "$as_me:$LINENO: checking for pthread_detach" >&5
13930 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; }
13931 if test "${ac_cv_func_pthread_detach+set}" = set; then
13932 echo $ECHO_N "(cached) $ECHO_C" >&6
13934 cat >conftest.$ac_ext <<_ACEOF
13937 cat confdefs.h >>conftest.$ac_ext
13938 cat >>conftest.$ac_ext <<_ACEOF
13939 /* end confdefs.h. */
13940 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
13941 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13942 #define pthread_detach innocuous_pthread_detach
13944 /* System header to define __stub macros and hopefully few prototypes,
13945 which can conflict with char pthread_detach (); below.
13946 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13947 <limits.h> exists even on freestanding compilers. */
13950 # include <limits.h>
13952 # include <assert.h>
13955 #undef pthread_detach
13957 /* Override any GCC internal prototype to avoid an error.
13958 Use char because int might match the return type of a GCC
13959 builtin and then its argument prototype would still apply. */
13963 char pthread_detach ();
13964 /* The GNU C library defines this for functions which it implements
13965 to always fail with ENOSYS. Some functions are actually named
13966 something starting with __ and the normal name is an alias. */
13967 #if defined __stub_pthread_detach || defined __stub___pthread_detach
13974 return pthread_detach ();
13979 rm -f conftest.$ac_objext conftest$ac_exeext
13980 if { (ac_try="$ac_link"
13981 case "(($ac_try" in
13982 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13983 *) ac_try_echo
=$ac_try;;
13985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13986 (eval "$ac_link") 2>conftest.er1
13988 grep -v '^ *+' conftest.er1
>conftest.err
13990 cat conftest.err
>&5
13991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992 (exit $ac_status); } && {
13993 test -z "$ac_c_werror_flag" ||
13994 test ! -s conftest.err
13995 } && test -s conftest
$ac_exeext &&
13996 $as_test_x conftest
$ac_exeext; then
13997 ac_cv_func_pthread_detach
=yes
13999 echo "$as_me: failed program was:" >&5
14000 sed 's/^/| /' conftest.
$ac_ext >&5
14002 ac_cv_func_pthread_detach
=no
14005 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14006 conftest
$ac_exeext conftest.
$ac_ext
14008 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
14009 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; }
14010 if test $ac_cv_func_pthread_detach = yes; then
14011 cat >>confdefs.h
<<\_ACEOF
14012 #define WITH_THREAD 1
14016 THREADOBJ
="Python/thread.o"
14019 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14020 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
14021 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
14022 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14023 echo $ECHO_N "(cached) $ECHO_C" >&6
14025 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
14026 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
14028 # Is the header compilable?
14029 { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
14030 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; }
14031 cat >conftest.
$ac_ext <<_ACEOF
14034 cat confdefs.h
>>conftest.
$ac_ext
14035 cat >>conftest.
$ac_ext <<_ACEOF
14036 /* end confdefs.h. */
14037 $ac_includes_default
14038 #include <atheos/threads.h>
14040 rm -f conftest.
$ac_objext
14041 if { (ac_try
="$ac_compile"
14042 case "(($ac_try" in
14043 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14044 *) ac_try_echo=$ac_try;;
14046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14047 (eval "$ac_compile") 2>conftest.er1
14049 grep -v '^ *+' conftest.er1 >conftest.err
14051 cat conftest.err >&5
14052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053 (exit $ac_status); } && {
14054 test -z "$ac_c_werror_flag" ||
14055 test ! -s conftest.err
14056 } && test -s conftest.$ac_objext; then
14057 ac_header_compiler=yes
14059 echo "$as_me: failed program was:" >&5
14060 sed 's/^/| /' conftest.$ac_ext >&5
14062 ac_header_compiler=no
14065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14066 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14067 echo "${ECHO_T}$ac_header_compiler" >&6; }
14069 # Is the header present?
14070 { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
14071 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; }
14072 cat >conftest.$ac_ext <<_ACEOF
14075 cat confdefs.h >>conftest.$ac_ext
14076 cat >>conftest.$ac_ext <<_ACEOF
14077 /* end confdefs.h. */
14078 #include <atheos/threads.h>
14080 if { (ac_try="$ac_cpp conftest.$ac_ext"
14081 case "(($ac_try" in
14082 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14083 *) ac_try_echo
=$ac_try;;
14085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14086 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14088 grep -v '^ *+' conftest.er1
>conftest.err
14090 cat conftest.err
>&5
14091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14092 (exit $ac_status); } >/dev
/null
&& {
14093 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14094 test ! -s conftest.err
14096 ac_header_preproc
=yes
14098 echo "$as_me: failed program was:" >&5
14099 sed 's/^/| /' conftest.
$ac_ext >&5
14101 ac_header_preproc
=no
14104 rm -f conftest.err conftest.
$ac_ext
14105 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14106 echo "${ECHO_T}$ac_header_preproc" >&6; }
14108 # So? What about this header?
14109 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14111 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
14112 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14113 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
14114 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
14115 ac_header_preproc
=yes
14118 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
14119 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
14120 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
14121 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
14122 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
14123 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
14124 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
14125 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
14126 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
14127 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
14128 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
14129 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
14131 ## ------------------------------------------------ ##
14132 ## Report this to http://www.python.org/python-bugs ##
14133 ## ------------------------------------------------ ##
14135 ) |
sed "s/^/$as_me: WARNING: /" >&2
14138 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
14139 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
14140 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14141 echo $ECHO_N "(cached) $ECHO_C" >&6
14143 ac_cv_header_atheos_threads_h
=$ac_header_preproc
14145 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
14146 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
14149 if test $ac_cv_header_atheos_threads_h = yes; then
14150 cat >>confdefs.h
<<\_ACEOF
14151 #define WITH_THREAD 1
14155 cat >>confdefs.h
<<\_ACEOF
14156 #define ATHEOS_THREADS 1
14159 THREADOBJ
="Python/thread.o"
14162 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
14163 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
14164 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
14165 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
14166 echo $ECHO_N "(cached) $ECHO_C" >&6
14168 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
14169 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
14171 # Is the header compilable?
14172 { echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
14173 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6; }
14174 cat >conftest.
$ac_ext <<_ACEOF
14177 cat confdefs.h
>>conftest.
$ac_ext
14178 cat >>conftest.
$ac_ext <<_ACEOF
14179 /* end confdefs.h. */
14180 $ac_includes_default
14181 #include <kernel/OS.h>
14183 rm -f conftest.
$ac_objext
14184 if { (ac_try
="$ac_compile"
14185 case "(($ac_try" in
14186 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14187 *) ac_try_echo=$ac_try;;
14189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14190 (eval "$ac_compile") 2>conftest.er1
14192 grep -v '^ *+' conftest.er1 >conftest.err
14194 cat conftest.err >&5
14195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196 (exit $ac_status); } && {
14197 test -z "$ac_c_werror_flag" ||
14198 test ! -s conftest.err
14199 } && test -s conftest.$ac_objext; then
14200 ac_header_compiler=yes
14202 echo "$as_me: failed program was:" >&5
14203 sed 's/^/| /' conftest.$ac_ext >&5
14205 ac_header_compiler=no
14208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14209 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14210 echo "${ECHO_T}$ac_header_compiler" >&6; }
14212 # Is the header present?
14213 { echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
14214 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6; }
14215 cat >conftest.$ac_ext <<_ACEOF
14218 cat confdefs.h >>conftest.$ac_ext
14219 cat >>conftest.$ac_ext <<_ACEOF
14220 /* end confdefs.h. */
14221 #include <kernel/OS.h>
14223 if { (ac_try="$ac_cpp conftest.$ac_ext"
14224 case "(($ac_try" in
14225 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14226 *) ac_try_echo
=$ac_try;;
14228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14229 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14231 grep -v '^ *+' conftest.er1
>conftest.err
14233 cat conftest.err
>&5
14234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235 (exit $ac_status); } >/dev
/null
&& {
14236 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14237 test ! -s conftest.err
14239 ac_header_preproc
=yes
14241 echo "$as_me: failed program was:" >&5
14242 sed 's/^/| /' conftest.
$ac_ext >&5
14244 ac_header_preproc
=no
14247 rm -f conftest.err conftest.
$ac_ext
14248 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14249 echo "${ECHO_T}$ac_header_preproc" >&6; }
14251 # So? What about this header?
14252 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14254 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
14255 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14256 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
14257 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
14258 ac_header_preproc
=yes
14261 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
14262 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
14263 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
14264 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
14265 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
14266 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
14267 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
14268 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
14269 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
14270 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
14271 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
14272 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
14274 ## ------------------------------------------------ ##
14275 ## Report this to http://www.python.org/python-bugs ##
14276 ## ------------------------------------------------ ##
14278 ) |
sed "s/^/$as_me: WARNING: /" >&2
14281 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
14282 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
14283 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
14284 echo $ECHO_N "(cached) $ECHO_C" >&6
14286 ac_cv_header_kernel_OS_h
=$ac_header_preproc
14288 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
14289 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
14292 if test $ac_cv_header_kernel_OS_h = yes; then
14293 cat >>confdefs.h
<<\_ACEOF
14294 #define WITH_THREAD 1
14298 cat >>confdefs.h
<<\_ACEOF
14299 #define BEOS_THREADS 1
14302 THREADOBJ
="Python/thread.o"
14305 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
14306 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
14307 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
14308 echo $ECHO_N "(cached) $ECHO_C" >&6
14310 ac_check_lib_save_LIBS
=$LIBS
14311 LIBS
="-lpthreads $LIBS"
14312 cat >conftest.
$ac_ext <<_ACEOF
14315 cat confdefs.h
>>conftest.
$ac_ext
14316 cat >>conftest.
$ac_ext <<_ACEOF
14317 /* end confdefs.h. */
14319 /* Override any GCC internal prototype to avoid an error.
14320 Use char because int might match the return type of a GCC
14321 builtin and then its argument prototype would still apply. */
14325 char pthread_create ();
14329 return pthread_create ();
14334 rm -f conftest.
$ac_objext conftest
$ac_exeext
14335 if { (ac_try
="$ac_link"
14336 case "(($ac_try" in
14337 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14338 *) ac_try_echo=$ac_try;;
14340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14341 (eval "$ac_link") 2>conftest.er1
14343 grep -v '^ *+' conftest.er1 >conftest.err
14345 cat conftest.err >&5
14346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347 (exit $ac_status); } && {
14348 test -z "$ac_c_werror_flag" ||
14349 test ! -s conftest.err
14350 } && test -s conftest$ac_exeext &&
14351 $as_test_x conftest$ac_exeext; then
14352 ac_cv_lib_pthreads_pthread_create=yes
14354 echo "$as_me: failed program was:" >&5
14355 sed 's/^/| /' conftest.$ac_ext >&5
14357 ac_cv_lib_pthreads_pthread_create=no
14360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14361 conftest$ac_exeext conftest.$ac_ext
14362 LIBS=$ac_check_lib_save_LIBS
14364 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
14365 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
14366 if test $ac_cv_lib_pthreads_pthread_create = yes; then
14367 cat >>confdefs.h <<\_ACEOF
14368 #define WITH_THREAD 1
14372 LIBS="$LIBS -lpthreads"
14373 THREADOBJ="Python/thread.o"
14376 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
14377 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
14378 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
14379 echo $ECHO_N "(cached) $ECHO_C" >&6
14381 ac_check_lib_save_LIBS=$LIBS
14383 cat >conftest.$ac_ext <<_ACEOF
14386 cat confdefs.h >>conftest.$ac_ext
14387 cat >>conftest.$ac_ext <<_ACEOF
14388 /* end confdefs.h. */
14390 /* Override any GCC internal prototype to avoid an error.
14391 Use char because int might match the return type of a GCC
14392 builtin and then its argument prototype would still apply. */
14396 char pthread_create ();
14400 return pthread_create ();
14405 rm -f conftest.$ac_objext conftest$ac_exeext
14406 if { (ac_try="$ac_link"
14407 case "(($ac_try" in
14408 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14409 *) ac_try_echo
=$ac_try;;
14411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14412 (eval "$ac_link") 2>conftest.er1
14414 grep -v '^ *+' conftest.er1
>conftest.err
14416 cat conftest.err
>&5
14417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418 (exit $ac_status); } && {
14419 test -z "$ac_c_werror_flag" ||
14420 test ! -s conftest.err
14421 } && test -s conftest
$ac_exeext &&
14422 $as_test_x conftest
$ac_exeext; then
14423 ac_cv_lib_c_r_pthread_create
=yes
14425 echo "$as_me: failed program was:" >&5
14426 sed 's/^/| /' conftest.
$ac_ext >&5
14428 ac_cv_lib_c_r_pthread_create
=no
14431 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14432 conftest
$ac_exeext conftest.
$ac_ext
14433 LIBS
=$ac_check_lib_save_LIBS
14435 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
14436 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
14437 if test $ac_cv_lib_c_r_pthread_create = yes; then
14438 cat >>confdefs.h
<<\_ACEOF
14439 #define WITH_THREAD 1
14444 THREADOBJ
="Python/thread.o"
14447 { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
14448 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
14449 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
14450 echo $ECHO_N "(cached) $ECHO_C" >&6
14452 ac_check_lib_save_LIBS
=$LIBS
14453 LIBS
="-lpthread $LIBS"
14454 cat >conftest.
$ac_ext <<_ACEOF
14457 cat confdefs.h
>>conftest.
$ac_ext
14458 cat >>conftest.
$ac_ext <<_ACEOF
14459 /* end confdefs.h. */
14461 /* Override any GCC internal prototype to avoid an error.
14462 Use char because int might match the return type of a GCC
14463 builtin and then its argument prototype would still apply. */
14467 char __pthread_create_system ();
14471 return __pthread_create_system ();
14476 rm -f conftest.
$ac_objext conftest
$ac_exeext
14477 if { (ac_try
="$ac_link"
14478 case "(($ac_try" in
14479 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14480 *) ac_try_echo=$ac_try;;
14482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14483 (eval "$ac_link") 2>conftest.er1
14485 grep -v '^ *+' conftest.er1 >conftest.err
14487 cat conftest.err >&5
14488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489 (exit $ac_status); } && {
14490 test -z "$ac_c_werror_flag" ||
14491 test ! -s conftest.err
14492 } && test -s conftest$ac_exeext &&
14493 $as_test_x conftest$ac_exeext; then
14494 ac_cv_lib_pthread___pthread_create_system=yes
14496 echo "$as_me: failed program was:" >&5
14497 sed 's/^/| /' conftest.$ac_ext >&5
14499 ac_cv_lib_pthread___pthread_create_system=no
14502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14503 conftest$ac_exeext conftest.$ac_ext
14504 LIBS=$ac_check_lib_save_LIBS
14506 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
14507 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
14508 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
14509 cat >>confdefs.h <<\_ACEOF
14510 #define WITH_THREAD 1
14514 LIBS="$LIBS -lpthread"
14515 THREADOBJ="Python/thread.o"
14518 { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
14519 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
14520 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
14521 echo $ECHO_N "(cached) $ECHO_C" >&6
14523 ac_check_lib_save_LIBS=$LIBS
14525 cat >conftest.$ac_ext <<_ACEOF
14528 cat confdefs.h >>conftest.$ac_ext
14529 cat >>conftest.$ac_ext <<_ACEOF
14530 /* end confdefs.h. */
14532 /* Override any GCC internal prototype to avoid an error.
14533 Use char because int might match the return type of a GCC
14534 builtin and then its argument prototype would still apply. */
14538 char pthread_create ();
14542 return pthread_create ();
14547 rm -f conftest.$ac_objext conftest$ac_exeext
14548 if { (ac_try="$ac_link"
14549 case "(($ac_try" in
14550 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14551 *) ac_try_echo
=$ac_try;;
14553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14554 (eval "$ac_link") 2>conftest.er1
14556 grep -v '^ *+' conftest.er1
>conftest.err
14558 cat conftest.err
>&5
14559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560 (exit $ac_status); } && {
14561 test -z "$ac_c_werror_flag" ||
14562 test ! -s conftest.err
14563 } && test -s conftest
$ac_exeext &&
14564 $as_test_x conftest
$ac_exeext; then
14565 ac_cv_lib_cma_pthread_create
=yes
14567 echo "$as_me: failed program was:" >&5
14568 sed 's/^/| /' conftest.
$ac_ext >&5
14570 ac_cv_lib_cma_pthread_create
=no
14573 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14574 conftest
$ac_exeext conftest.
$ac_ext
14575 LIBS
=$ac_check_lib_save_LIBS
14577 { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
14578 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
14579 if test $ac_cv_lib_cma_pthread_create = yes; then
14580 cat >>confdefs.h
<<\_ACEOF
14581 #define WITH_THREAD 1
14586 THREADOBJ
="Python/thread.o"
14589 USE_THREAD_MODULE
="#"
14609 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14610 conftest
$ac_exeext conftest.
$ac_ext
14620 { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
14621 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
14622 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
14623 echo $ECHO_N "(cached) $ECHO_C" >&6
14625 ac_check_lib_save_LIBS
=$LIBS
14627 cat >conftest.
$ac_ext <<_ACEOF
14630 cat confdefs.h
>>conftest.
$ac_ext
14631 cat >>conftest.
$ac_ext <<_ACEOF
14632 /* end confdefs.h. */
14634 /* Override any GCC internal prototype to avoid an error.
14635 Use char because int might match the return type of a GCC
14636 builtin and then its argument prototype would still apply. */
14644 return usconfig ();
14649 rm -f conftest.
$ac_objext conftest
$ac_exeext
14650 if { (ac_try
="$ac_link"
14651 case "(($ac_try" in
14652 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14653 *) ac_try_echo=$ac_try;;
14655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14656 (eval "$ac_link") 2>conftest.er1
14658 grep -v '^ *+' conftest.er1 >conftest.err
14660 cat conftest.err >&5
14661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14662 (exit $ac_status); } && {
14663 test -z "$ac_c_werror_flag" ||
14664 test ! -s conftest.err
14665 } && test -s conftest$ac_exeext &&
14666 $as_test_x conftest$ac_exeext; then
14667 ac_cv_lib_mpc_usconfig=yes
14669 echo "$as_me: failed program was:" >&5
14670 sed 's/^/| /' conftest.$ac_ext >&5
14672 ac_cv_lib_mpc_usconfig=no
14675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14676 conftest$ac_exeext conftest.$ac_ext
14677 LIBS=$ac_check_lib_save_LIBS
14679 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
14680 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
14681 if test $ac_cv_lib_mpc_usconfig = yes; then
14682 cat >>confdefs.h <<\_ACEOF
14683 #define WITH_THREAD 1
14687 THREADOBJ="Python/thread.o"
14688 USE_THREAD_MODULE=""
14692 if test "$posix_threads" != "yes"; then
14693 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
14694 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
14695 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
14696 echo $ECHO_N "(cached) $ECHO_C" >&6
14698 ac_check_lib_save_LIBS=$LIBS
14699 LIBS="-lthread $LIBS"
14700 cat >conftest.$ac_ext <<_ACEOF
14703 cat confdefs.h >>conftest.$ac_ext
14704 cat >>conftest.$ac_ext <<_ACEOF
14705 /* end confdefs.h. */
14707 /* Override any GCC internal prototype to avoid an error.
14708 Use char because int might match the return type of a GCC
14709 builtin and then its argument prototype would still apply. */
14713 char thr_create ();
14717 return thr_create ();
14722 rm -f conftest.$ac_objext conftest$ac_exeext
14723 if { (ac_try="$ac_link"
14724 case "(($ac_try" in
14725 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14726 *) ac_try_echo
=$ac_try;;
14728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14729 (eval "$ac_link") 2>conftest.er1
14731 grep -v '^ *+' conftest.er1
>conftest.err
14733 cat conftest.err
>&5
14734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735 (exit $ac_status); } && {
14736 test -z "$ac_c_werror_flag" ||
14737 test ! -s conftest.err
14738 } && test -s conftest
$ac_exeext &&
14739 $as_test_x conftest
$ac_exeext; then
14740 ac_cv_lib_thread_thr_create
=yes
14742 echo "$as_me: failed program was:" >&5
14743 sed 's/^/| /' conftest.
$ac_ext >&5
14745 ac_cv_lib_thread_thr_create
=no
14748 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14749 conftest
$ac_exeext conftest.
$ac_ext
14750 LIBS
=$ac_check_lib_save_LIBS
14752 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
14753 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
14754 if test $ac_cv_lib_thread_thr_create = yes; then
14755 cat >>confdefs.h
<<\_ACEOF
14756 #define WITH_THREAD 1
14759 LIBS
="$LIBS -lthread"
14760 THREADOBJ
="Python/thread.o"
14761 USE_THREAD_MODULE
=""
14766 if test "$USE_THREAD_MODULE" != "#"
14768 # If the above checks didn't disable threads, (at least) OSF1
14769 # needs this '-threads' argument during linking.
14770 case $ac_sys_system in
14771 OSF1
) LDLAST
=-threads;;
14776 if test "$posix_threads" = "yes"; then
14777 if test "$unistd_defines_pthreads" = "no"; then
14779 cat >>confdefs.h
<<\_ACEOF
14780 #define _POSIX_THREADS 1
14785 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
14786 case $ac_sys_system/$ac_sys_release in
14788 cat >>confdefs.h
<<\_ACEOF
14789 #define HAVE_PTHREAD_DESTRUCTOR 1
14794 cat >>confdefs.h
<<\_ACEOF
14795 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
14800 cat >>confdefs.h
<<\_ACEOF
14801 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
14807 { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
14808 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
14809 if test "${ac_cv_pthread_system_supported+set}" = set; then
14810 echo $ECHO_N "(cached) $ECHO_C" >&6
14812 if test "$cross_compiling" = yes; then
14813 ac_cv_pthread_system_supported
=no
14815 cat >conftest.
$ac_ext <<_ACEOF
14818 cat confdefs.h
>>conftest.
$ac_ext
14819 cat >>conftest.
$ac_ext <<_ACEOF
14820 /* end confdefs.h. */
14821 #include <pthread.h>
14822 void *foo(void *parm) {
14826 pthread_attr_t attr;
14828 if (pthread_attr_init(&attr)) exit(-1);
14829 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
14830 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
14834 rm -f conftest
$ac_exeext
14835 if { (ac_try
="$ac_link"
14836 case "(($ac_try" in
14837 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14838 *) ac_try_echo=$ac_try;;
14840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14841 (eval "$ac_link") 2>&5
14843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14844 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14845 { (case "(($ac_try" in
14846 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14847 *) ac_try_echo
=$ac_try;;
14849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14850 (eval "$ac_try") 2>&5
14852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853 (exit $ac_status); }; }; then
14854 ac_cv_pthread_system_supported
=yes
14856 echo "$as_me: program exited with status $ac_status" >&5
14857 echo "$as_me: failed program was:" >&5
14858 sed 's/^/| /' conftest.
$ac_ext >&5
14860 ( exit $ac_status )
14861 ac_cv_pthread_system_supported
=no
14863 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14870 { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
14871 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
14872 if test "$ac_cv_pthread_system_supported" = "yes"; then
14874 cat >>confdefs.h
<<\_ACEOF
14875 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
14880 for ac_func
in pthread_sigmask
14882 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14883 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14884 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14885 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14886 echo $ECHO_N "(cached) $ECHO_C" >&6
14888 cat >conftest.
$ac_ext <<_ACEOF
14891 cat confdefs.h
>>conftest.
$ac_ext
14892 cat >>conftest.
$ac_ext <<_ACEOF
14893 /* end confdefs.h. */
14894 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14895 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14896 #define $ac_func innocuous_$ac_func
14898 /* System header to define __stub macros and hopefully few prototypes,
14899 which can conflict with char $ac_func (); below.
14900 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14901 <limits.h> exists even on freestanding compilers. */
14904 # include <limits.h>
14906 # include <assert.h>
14911 /* Override any GCC internal prototype to avoid an error.
14912 Use char because int might match the return type of a GCC
14913 builtin and then its argument prototype would still apply. */
14918 /* The GNU C library defines this for functions which it implements
14919 to always fail with ENOSYS. Some functions are actually named
14920 something starting with __ and the normal name is an alias. */
14921 #if defined __stub_$ac_func || defined __stub___$ac_func
14928 return $ac_func ();
14933 rm -f conftest.
$ac_objext conftest
$ac_exeext
14934 if { (ac_try
="$ac_link"
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_link") 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_exeext &&
14950 $as_test_x conftest$ac_exeext; then
14951 eval "$as_ac_var=yes"
14953 echo "$as_me: failed program was:" >&5
14954 sed 's/^/| /' conftest.$ac_ext >&5
14956 eval "$as_ac_var=no"
14959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14960 conftest$ac_exeext conftest.$ac_ext
14962 ac_res=`eval echo '${'$as_ac_var'}'`
14963 { echo "$as_me:$LINENO: result: $ac_res" >&5
14964 echo "${ECHO_T}$ac_res" >&6; }
14965 if test `eval echo '${'$as_ac_var'}'` = yes; then
14966 cat >>confdefs.h <<_ACEOF
14967 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
14969 case $ac_sys_system in
14972 cat >>confdefs.h <<\_ACEOF
14973 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
14984 # Check for enable-ipv6
14987 { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
14988 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
14989 # Check whether --enable-ipv6 was given.
14990 if test "${enable_ipv6+set}" = set; then
14991 enableval=$enable_ipv6; case "$enableval" in
14993 { echo "$as_me:$LINENO: result: no" >&5
14994 echo "${ECHO_T}no" >&6; }
14997 *) { echo "$as_me:$LINENO: result: yes" >&5
14998 echo "${ECHO_T}yes" >&6; }
14999 cat >>confdefs.h <<\_ACEOF
15000 #define ENABLE_IPV6 1
15008 if test "$cross_compiling" = yes; then
15009 { echo "$as_me:$LINENO: result: no" >&5
15010 echo "${ECHO_T}no" >&6; }
15014 cat >conftest.$ac_ext <<_ACEOF
15017 cat confdefs.h >>conftest.$ac_ext
15018 cat >>conftest.$ac_ext <<_ACEOF
15019 /* end confdefs.h. */
15020 /* AF_INET6 available check */
15021 #include <sys/types.h>
15022 #include <sys/socket.h>
15025 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
15032 rm -f conftest$ac_exeext
15033 if { (ac_try="$ac_link"
15034 case "(($ac_try" in
15035 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15036 *) ac_try_echo
=$ac_try;;
15038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15039 (eval "$ac_link") 2>&5
15041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15042 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15043 { (case "(($ac_try" in
15044 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15045 *) ac_try_echo=$ac_try;;
15047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15048 (eval "$ac_try") 2>&5
15050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15051 (exit $ac_status); }; }; then
15052 { echo "$as_me:$LINENO: result: yes" >&5
15053 echo "${ECHO_T}yes" >&6; }
15056 echo "$as_me: program exited with status $ac_status" >&5
15057 echo "$as_me: failed program was:" >&5
15058 sed 's/^/| /' conftest.$ac_ext >&5
15060 ( exit $ac_status )
15061 { echo "$as_me:$LINENO: result: no" >&5
15062 echo "${ECHO_T}no" >&6; }
15065 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15070 if test "$ipv6" = "yes"; then
15071 { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
15072 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; }
15073 cat >conftest.$ac_ext <<_ACEOF
15076 cat confdefs.h >>conftest.$ac_ext
15077 cat >>conftest.$ac_ext <<_ACEOF
15078 /* end confdefs.h. */
15079 #include <sys/types.h>
15080 #include <netinet/in.h>
15084 struct sockaddr_in6 x;
15090 rm -f conftest.$ac_objext
15091 if { (ac_try="$ac_compile"
15092 case "(($ac_try" in
15093 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15094 *) ac_try_echo
=$ac_try;;
15096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15097 (eval "$ac_compile") 2>conftest.er1
15099 grep -v '^ *+' conftest.er1
>conftest.err
15101 cat conftest.err
>&5
15102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103 (exit $ac_status); } && {
15104 test -z "$ac_c_werror_flag" ||
15105 test ! -s conftest.err
15106 } && test -s conftest.
$ac_objext; then
15107 { echo "$as_me:$LINENO: result: yes" >&5
15108 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
15122 if test "$ipv6" = "yes"; then
15123 cat >>confdefs.h
<<\_ACEOF
15124 #define ENABLE_IPV6 1
15136 if test "$ipv6" = "yes"; then
15137 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
15138 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
15139 for i
in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta
;
15143 cat >conftest.
$ac_ext <<_ACEOF
15146 cat confdefs.h
>>conftest.
$ac_ext
15147 cat >>conftest.
$ac_ext <<_ACEOF
15148 /* end confdefs.h. */
15150 #include <netinet/in.h>
15151 #ifdef IPV6_INRIA_VERSION
15155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15156 $EGREP "yes" >/dev
/null
2>&1; then
15163 cat >conftest.
$ac_ext <<_ACEOF
15166 cat confdefs.h
>>conftest.
$ac_ext
15167 cat >>conftest.
$ac_ext <<_ACEOF
15168 /* end confdefs.h. */
15170 #include <netinet/in.h>
15175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15176 $EGREP "yes" >/dev
/null
2>&1; then
15179 ipv6libdir
=/usr
/local
/v
6/lib
15186 cat >conftest.
$ac_ext <<_ACEOF
15189 cat confdefs.h
>>conftest.
$ac_ext
15190 cat >>conftest.
$ac_ext <<_ACEOF
15191 /* end confdefs.h. */
15193 #include <features.h>
15194 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
15198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15199 $EGREP "yes" >/dev
/null
2>&1; then
15207 if test -d /usr
/inet6
; then
15210 ipv6libdir
=/usr
/inet
6/lib
15211 BASECFLAGS
="-I/usr/inet6/include $BASECFLAGS"
15215 if test -f /etc
/netconfig
; then
15216 if /usr
/xpg
4/bin
/grep -q tcp6
/etc
/netconfig
; then
15223 cat >conftest.
$ac_ext <<_ACEOF
15226 cat confdefs.h
>>conftest.
$ac_ext
15227 cat >>conftest.
$ac_ext <<_ACEOF
15228 /* end confdefs.h. */
15230 #include <sys/param.h>
15231 #ifdef _TOSHIBA_INET6
15235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15236 $EGREP "yes" >/dev
/null
2>&1; then
15239 ipv6libdir
=/usr
/local
/v
6/lib
15245 cat >conftest.
$ac_ext <<_ACEOF
15248 cat confdefs.h
>>conftest.
$ac_ext
15249 cat >>conftest.
$ac_ext <<_ACEOF
15250 /* end confdefs.h. */
15252 #include </usr/local/v6/include/sys/v6config.h>
15257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15258 $EGREP "yes" >/dev
/null
2>&1; then
15261 ipv6libdir
=/usr
/local
/v
6/lib
;
15262 BASECFLAGS
="-I/usr/local/v6/include $BASECFLAGS"
15268 cat >conftest.
$ac_ext <<_ACEOF
15271 cat confdefs.h
>>conftest.
$ac_ext
15272 cat >>conftest.
$ac_ext <<_ACEOF
15273 /* end confdefs.h. */
15275 #include <sys/param.h>
15276 #ifdef _ZETA_MINAMI_INET6
15280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15281 $EGREP "yes" >/dev
/null
2>&1; then
15284 ipv6libdir
=/usr
/local
/v
6/lib
15290 if test "$ipv6type" != "unknown"; then
15294 { echo "$as_me:$LINENO: result: $ipv6type" >&5
15295 echo "${ECHO_T}$ipv6type" >&6; }
15298 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
15299 if test -d $ipv6libdir -a -f $ipv6libdir/lib
$ipv6lib.a
; then
15300 LIBS
="-L$ipv6libdir -l$ipv6lib $LIBS"
15301 echo "using lib$ipv6lib"
15303 if test $ipv6trylibc = "yes"; then
15306 echo 'Fatal: no $ipv6lib library found. cannot continue.'
15307 echo "You need to fetch lib$ipv6lib.a from appropriate"
15308 echo 'ipv6 kit and compile beforehand.'
15314 # Check for --with-doc-strings
15315 { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
15316 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
15318 # Check whether --with-doc-strings was given.
15319 if test "${with_doc_strings+set}" = set; then
15320 withval
=$with_doc_strings;
15324 if test -z "$with_doc_strings"
15325 then with_doc_strings
="yes"
15327 if test "$with_doc_strings" != "no"
15330 cat >>confdefs.h
<<\_ACEOF
15331 #define WITH_DOC_STRINGS 1
15335 { echo "$as_me:$LINENO: result: $with_doc_strings" >&5
15336 echo "${ECHO_T}$with_doc_strings" >&6; }
15338 # Check for Python-specific malloc support
15339 { echo "$as_me:$LINENO: checking for --with-tsc" >&5
15340 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
15342 # Check whether --with-tsc was given.
15343 if test "${with_tsc+set}" = set; then
15345 if test "$withval" != no
15348 cat >>confdefs.h
<<\_ACEOF
15352 { echo "$as_me:$LINENO: result: yes" >&5
15353 echo "${ECHO_T}yes" >&6; }
15354 else { echo "$as_me:$LINENO: result: no" >&5
15355 echo "${ECHO_T}no" >&6; }
15358 { echo "$as_me:$LINENO: result: no" >&5
15359 echo "${ECHO_T}no" >&6; }
15363 # Check for Python-specific malloc support
15364 { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
15365 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
15367 # Check whether --with-pymalloc was given.
15368 if test "${with_pymalloc+set}" = set; then
15369 withval
=$with_pymalloc;
15373 if test -z "$with_pymalloc"
15374 then with_pymalloc
="yes"
15376 if test "$with_pymalloc" != "no"
15379 cat >>confdefs.h
<<\_ACEOF
15380 #define WITH_PYMALLOC 1
15384 { echo "$as_me:$LINENO: result: $with_pymalloc" >&5
15385 echo "${ECHO_T}$with_pymalloc" >&6; }
15387 # Check for --with-wctype-functions
15388 { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
15389 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
15391 # Check whether --with-wctype-functions was given.
15392 if test "${with_wctype_functions+set}" = set; then
15393 withval
=$with_wctype_functions;
15394 if test "$withval" != no
15397 cat >>confdefs.h
<<\_ACEOF
15398 #define WANT_WCTYPE_FUNCTIONS 1
15401 { echo "$as_me:$LINENO: result: yes" >&5
15402 echo "${ECHO_T}yes" >&6; }
15403 else { echo "$as_me:$LINENO: result: no" >&5
15404 echo "${ECHO_T}no" >&6; }
15407 { echo "$as_me:$LINENO: result: no" >&5
15408 echo "${ECHO_T}no" >&6; }
15412 # -I${DLINCLDIR} is added to the compile rule for importdl.o
15416 # the dlopen() function means we might want to use dynload_shlib.o. some
15417 # platforms, such as AIX, have dlopen(), but don't want to use it.
15419 for ac_func
in dlopen
15421 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15422 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15423 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15424 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15425 echo $ECHO_N "(cached) $ECHO_C" >&6
15427 cat >conftest.
$ac_ext <<_ACEOF
15430 cat confdefs.h
>>conftest.
$ac_ext
15431 cat >>conftest.
$ac_ext <<_ACEOF
15432 /* end confdefs.h. */
15433 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15434 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15435 #define $ac_func innocuous_$ac_func
15437 /* System header to define __stub macros and hopefully few prototypes,
15438 which can conflict with char $ac_func (); below.
15439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15440 <limits.h> exists even on freestanding compilers. */
15443 # include <limits.h>
15445 # include <assert.h>
15450 /* Override any GCC internal prototype to avoid an error.
15451 Use char because int might match the return type of a GCC
15452 builtin and then its argument prototype would still apply. */
15457 /* The GNU C library defines this for functions which it implements
15458 to always fail with ENOSYS. Some functions are actually named
15459 something starting with __ and the normal name is an alias. */
15460 #if defined __stub_$ac_func || defined __stub___$ac_func
15467 return $ac_func ();
15472 rm -f conftest.
$ac_objext conftest
$ac_exeext
15473 if { (ac_try
="$ac_link"
15474 case "(($ac_try" in
15475 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15476 *) ac_try_echo=$ac_try;;
15478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15479 (eval "$ac_link") 2>conftest.er1
15481 grep -v '^ *+' conftest.er1 >conftest.err
15483 cat conftest.err >&5
15484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15485 (exit $ac_status); } && {
15486 test -z "$ac_c_werror_flag" ||
15487 test ! -s conftest.err
15488 } && test -s conftest$ac_exeext &&
15489 $as_test_x conftest$ac_exeext; then
15490 eval "$as_ac_var=yes"
15492 echo "$as_me: failed program was:" >&5
15493 sed 's/^/| /' conftest.$ac_ext >&5
15495 eval "$as_ac_var=no"
15498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15499 conftest$ac_exeext conftest.$ac_ext
15501 ac_res=`eval echo '${'$as_ac_var'}'`
15502 { echo "$as_me:$LINENO: result: $ac_res" >&5
15503 echo "${ECHO_T}$ac_res" >&6; }
15504 if test `eval echo '${'$as_ac_var'}'` = yes; then
15505 cat >>confdefs.h <<_ACEOF
15506 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
15513 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
15514 # loading of modules.
15516 { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
15517 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
15518 if test -z "$DYNLOADFILE"
15520 case $ac_sys_system/$ac_sys_release in
15521 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
15522 if test "$ac_cv_func_dlopen" = yes
15523 then DYNLOADFILE="dynload_shlib.o"
15524 else DYNLOADFILE="dynload_aix.o"
15527 BeOS*) DYNLOADFILE="dynload_beos.o";;
15528 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
15529 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
15530 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
15531 atheos*) DYNLOADFILE="dynload_atheos.o";;
15533 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
15534 # out any dynamic loading
15535 if test "$ac_cv_func_dlopen" = yes
15536 then DYNLOADFILE="dynload_shlib.o"
15537 else DYNLOADFILE="dynload_stub.o"
15542 { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
15543 echo "${ECHO_T}$DYNLOADFILE" >&6; }
15544 if test "$DYNLOADFILE" != "dynload_stub.o"
15547 cat >>confdefs.h <<\_ACEOF
15548 #define HAVE_DYNAMIC_LOADING 1
15553 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
15556 { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
15557 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
15558 if test -z "$MACHDEP_OBJS"
15560 MACHDEP_OBJS=$extra_machdep_objs
15562 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
15564 { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
15565 echo "${ECHO_T}MACHDEP_OBJS" >&6; }
15567 # checks for library functions
15647 for ac_func in alarm bind_textdomain_codeset chown clock confstr \
15648 ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
15649 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
15650 getpriority getpwent getspnam getspent getsid getwd \
15651 kill killpg lchmod lchown lstat mkfifo mknod mktime \
15652 mremap nice pathconf pause plock poll pthread_init \
15653 putenv readlink realpath \
15654 select setegid seteuid setgid \
15655 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
15656 sigaction siginterrupt sigrelse strftime \
15657 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
15658 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
15660 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
15661 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15662 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15663 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15664 echo $ECHO_N "(cached) $ECHO_C" >&6
15666 cat >conftest.$ac_ext <<_ACEOF
15669 cat confdefs.h >>conftest.$ac_ext
15670 cat >>conftest.$ac_ext <<_ACEOF
15671 /* end confdefs.h. */
15672 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15673 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15674 #define $ac_func innocuous_$ac_func
15676 /* System header to define __stub macros and hopefully few prototypes,
15677 which can conflict with char $ac_func (); below.
15678 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15679 <limits.h> exists even on freestanding compilers. */
15682 # include <limits.h>
15684 # include <assert.h>
15689 /* Override any GCC internal prototype to avoid an error.
15690 Use char because int might match the return type of a GCC
15691 builtin and then its argument prototype would still apply. */
15696 /* The GNU C library defines this for functions which it implements
15697 to always fail with ENOSYS. Some functions are actually named
15698 something starting with __ and the normal name is an alias. */
15699 #if defined __stub_$ac_func || defined __stub___$ac_func
15706 return $ac_func ();
15711 rm -f conftest.$ac_objext conftest$ac_exeext
15712 if { (ac_try="$ac_link"
15713 case "(($ac_try" in
15714 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15715 *) ac_try_echo
=$ac_try;;
15717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15718 (eval "$ac_link") 2>conftest.er1
15720 grep -v '^ *+' conftest.er1
>conftest.err
15722 cat conftest.err
>&5
15723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724 (exit $ac_status); } && {
15725 test -z "$ac_c_werror_flag" ||
15726 test ! -s conftest.err
15727 } && test -s conftest
$ac_exeext &&
15728 $as_test_x conftest
$ac_exeext; then
15729 eval "$as_ac_var=yes"
15731 echo "$as_me: failed program was:" >&5
15732 sed 's/^/| /' conftest.
$ac_ext >&5
15734 eval "$as_ac_var=no"
15737 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15738 conftest
$ac_exeext conftest.
$ac_ext
15740 ac_res
=`eval echo '${'$as_ac_var'}'`
15741 { echo "$as_me:$LINENO: result: $ac_res" >&5
15742 echo "${ECHO_T}$ac_res" >&6; }
15743 if test `eval echo '${'$as_ac_var'}'` = yes; then
15744 cat >>confdefs.h
<<_ACEOF
15745 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15752 # For some functions, having a definition is not sufficient, since
15753 # we want to take their address.
15754 { echo "$as_me:$LINENO: checking for chroot" >&5
15755 echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
15756 cat >conftest.
$ac_ext <<_ACEOF
15759 cat confdefs.h
>>conftest.
$ac_ext
15760 cat >>conftest.
$ac_ext <<_ACEOF
15761 /* end confdefs.h. */
15762 #include <unistd.h>
15771 rm -f conftest.
$ac_objext
15772 if { (ac_try
="$ac_compile"
15773 case "(($ac_try" in
15774 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15775 *) ac_try_echo=$ac_try;;
15777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15778 (eval "$ac_compile") 2>conftest.er1
15780 grep -v '^ *+' conftest.er1 >conftest.err
15782 cat conftest.err >&5
15783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15784 (exit $ac_status); } && {
15785 test -z "$ac_c_werror_flag" ||
15786 test ! -s conftest.err
15787 } && test -s conftest.$ac_objext; then
15789 cat >>confdefs.h <<\_ACEOF
15790 #define HAVE_CHROOT 1
15793 { echo "$as_me:$LINENO: result: yes" >&5
15794 echo "${ECHO_T}yes" >&6; }
15796 echo "$as_me: failed program was:" >&5
15797 sed 's/^/| /' conftest.$ac_ext >&5
15799 { echo "$as_me:$LINENO: result: no" >&5
15800 echo "${ECHO_T}no" >&6; }
15804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15805 { echo "$as_me:$LINENO: checking for link" >&5
15806 echo $ECHO_N "checking for link... $ECHO_C" >&6; }
15807 cat >conftest.$ac_ext <<_ACEOF
15810 cat confdefs.h >>conftest.$ac_ext
15811 cat >>conftest.$ac_ext <<_ACEOF
15812 /* end confdefs.h. */
15813 #include <unistd.h>
15822 rm -f conftest.$ac_objext
15823 if { (ac_try="$ac_compile"
15824 case "(($ac_try" in
15825 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15826 *) ac_try_echo
=$ac_try;;
15828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15829 (eval "$ac_compile") 2>conftest.er1
15831 grep -v '^ *+' conftest.er1
>conftest.err
15833 cat conftest.err
>&5
15834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835 (exit $ac_status); } && {
15836 test -z "$ac_c_werror_flag" ||
15837 test ! -s conftest.err
15838 } && test -s conftest.
$ac_objext; then
15840 cat >>confdefs.h
<<\_ACEOF
15841 #define HAVE_LINK 1
15844 { echo "$as_me:$LINENO: result: yes" >&5
15845 echo "${ECHO_T}yes" >&6; }
15847 echo "$as_me: failed program was:" >&5
15848 sed 's/^/| /' conftest.
$ac_ext >&5
15850 { echo "$as_me:$LINENO: result: no" >&5
15851 echo "${ECHO_T}no" >&6; }
15855 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15856 { echo "$as_me:$LINENO: checking for symlink" >&5
15857 echo $ECHO_N "checking for symlink... $ECHO_C" >&6; }
15858 cat >conftest.
$ac_ext <<_ACEOF
15861 cat confdefs.h
>>conftest.
$ac_ext
15862 cat >>conftest.
$ac_ext <<_ACEOF
15863 /* end confdefs.h. */
15864 #include <unistd.h>
15873 rm -f conftest.
$ac_objext
15874 if { (ac_try
="$ac_compile"
15875 case "(($ac_try" in
15876 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15877 *) ac_try_echo=$ac_try;;
15879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15880 (eval "$ac_compile") 2>conftest.er1
15882 grep -v '^ *+' conftest.er1 >conftest.err
15884 cat conftest.err >&5
15885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15886 (exit $ac_status); } && {
15887 test -z "$ac_c_werror_flag" ||
15888 test ! -s conftest.err
15889 } && test -s conftest.$ac_objext; then
15891 cat >>confdefs.h <<\_ACEOF
15892 #define HAVE_SYMLINK 1
15895 { echo "$as_me:$LINENO: result: yes" >&5
15896 echo "${ECHO_T}yes" >&6; }
15898 echo "$as_me: failed program was:" >&5
15899 sed 's/^/| /' conftest.$ac_ext >&5
15901 { echo "$as_me:$LINENO: result: no" >&5
15902 echo "${ECHO_T}no" >&6; }
15906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15907 { echo "$as_me:$LINENO: checking for fchdir" >&5
15908 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
15909 cat >conftest.$ac_ext <<_ACEOF
15912 cat confdefs.h >>conftest.$ac_ext
15913 cat >>conftest.$ac_ext <<_ACEOF
15914 /* end confdefs.h. */
15915 #include <unistd.h>
15924 rm -f conftest.$ac_objext
15925 if { (ac_try="$ac_compile"
15926 case "(($ac_try" in
15927 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15928 *) ac_try_echo
=$ac_try;;
15930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15931 (eval "$ac_compile") 2>conftest.er1
15933 grep -v '^ *+' conftest.er1
>conftest.err
15935 cat conftest.err
>&5
15936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937 (exit $ac_status); } && {
15938 test -z "$ac_c_werror_flag" ||
15939 test ! -s conftest.err
15940 } && test -s conftest.
$ac_objext; then
15942 cat >>confdefs.h
<<\_ACEOF
15943 #define HAVE_FCHDIR 1
15946 { echo "$as_me:$LINENO: result: yes" >&5
15947 echo "${ECHO_T}yes" >&6; }
15949 echo "$as_me: failed program was:" >&5
15950 sed 's/^/| /' conftest.
$ac_ext >&5
15952 { echo "$as_me:$LINENO: result: no" >&5
15953 echo "${ECHO_T}no" >&6; }
15957 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15958 { echo "$as_me:$LINENO: checking for fsync" >&5
15959 echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
15960 cat >conftest.
$ac_ext <<_ACEOF
15963 cat confdefs.h
>>conftest.
$ac_ext
15964 cat >>conftest.
$ac_ext <<_ACEOF
15965 /* end confdefs.h. */
15966 #include <unistd.h>
15975 rm -f conftest.
$ac_objext
15976 if { (ac_try
="$ac_compile"
15977 case "(($ac_try" in
15978 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15979 *) ac_try_echo=$ac_try;;
15981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15982 (eval "$ac_compile") 2>conftest.er1
15984 grep -v '^ *+' conftest.er1 >conftest.err
15986 cat conftest.err >&5
15987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988 (exit $ac_status); } && {
15989 test -z "$ac_c_werror_flag" ||
15990 test ! -s conftest.err
15991 } && test -s conftest.$ac_objext; then
15993 cat >>confdefs.h <<\_ACEOF
15994 #define HAVE_FSYNC 1
15997 { echo "$as_me:$LINENO: result: yes" >&5
15998 echo "${ECHO_T}yes" >&6; }
16000 echo "$as_me: failed program was:" >&5
16001 sed 's/^/| /' conftest.$ac_ext >&5
16003 { echo "$as_me:$LINENO: result: no" >&5
16004 echo "${ECHO_T}no" >&6; }
16008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16009 { echo "$as_me:$LINENO: checking for fdatasync" >&5
16010 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
16011 cat >conftest.$ac_ext <<_ACEOF
16014 cat confdefs.h >>conftest.$ac_ext
16015 cat >>conftest.$ac_ext <<_ACEOF
16016 /* end confdefs.h. */
16017 #include <unistd.h>
16026 rm -f conftest.$ac_objext
16027 if { (ac_try="$ac_compile"
16028 case "(($ac_try" in
16029 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16030 *) ac_try_echo
=$ac_try;;
16032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16033 (eval "$ac_compile") 2>conftest.er1
16035 grep -v '^ *+' conftest.er1
>conftest.err
16037 cat conftest.err
>&5
16038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16039 (exit $ac_status); } && {
16040 test -z "$ac_c_werror_flag" ||
16041 test ! -s conftest.err
16042 } && test -s conftest.
$ac_objext; then
16044 cat >>confdefs.h
<<\_ACEOF
16045 #define HAVE_FDATASYNC 1
16048 { echo "$as_me:$LINENO: result: yes" >&5
16049 echo "${ECHO_T}yes" >&6; }
16051 echo "$as_me: failed program was:" >&5
16052 sed 's/^/| /' conftest.
$ac_ext >&5
16054 { echo "$as_me:$LINENO: result: no" >&5
16055 echo "${ECHO_T}no" >&6; }
16059 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16061 # On some systems (eg. FreeBSD 5), we would find a definition of the
16062 # functions ctermid_r, setgroups in the library, but no prototype
16063 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
16064 # address to avoid compiler warnings and potential miscompilations
16065 # because of the missing prototypes.
16067 { echo "$as_me:$LINENO: checking for ctermid_r" >&5
16068 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; }
16069 cat >conftest.
$ac_ext <<_ACEOF
16072 cat confdefs.h
>>conftest.
$ac_ext
16073 cat >>conftest.
$ac_ext <<_ACEOF
16074 /* end confdefs.h. */
16076 #include "confdefs.h"
16082 void* p = ctermid_r
16087 rm -f conftest.
$ac_objext
16088 if { (ac_try
="$ac_compile"
16089 case "(($ac_try" in
16090 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16091 *) ac_try_echo=$ac_try;;
16093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16094 (eval "$ac_compile") 2>conftest.er1
16096 grep -v '^ *+' conftest.er1 >conftest.err
16098 cat conftest.err >&5
16099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16100 (exit $ac_status); } && {
16101 test -z "$ac_c_werror_flag" ||
16102 test ! -s conftest.err
16103 } && test -s conftest.$ac_objext; then
16105 cat >>confdefs.h <<\_ACEOF
16106 #define HAVE_CTERMID_R 1
16109 { echo "$as_me:$LINENO: result: yes" >&5
16110 echo "${ECHO_T}yes" >&6; }
16112 echo "$as_me: failed program was:" >&5
16113 sed 's/^/| /' conftest.$ac_ext >&5
16115 { echo "$as_me:$LINENO: result: no" >&5
16116 echo "${ECHO_T}no" >&6; }
16120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16122 { echo "$as_me:$LINENO: checking for flock" >&5
16123 echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
16124 cat >conftest.$ac_ext <<_ACEOF
16127 cat confdefs.h >>conftest.$ac_ext
16128 cat >>conftest.$ac_ext <<_ACEOF
16129 /* end confdefs.h. */
16131 #include "confdefs.h"
16132 #include <sys/file.h>
16142 rm -f conftest.$ac_objext
16143 if { (ac_try="$ac_compile"
16144 case "(($ac_try" in
16145 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16146 *) ac_try_echo
=$ac_try;;
16148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16149 (eval "$ac_compile") 2>conftest.er1
16151 grep -v '^ *+' conftest.er1
>conftest.err
16153 cat conftest.err
>&5
16154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155 (exit $ac_status); } && {
16156 test -z "$ac_c_werror_flag" ||
16157 test ! -s conftest.err
16158 } && test -s conftest.
$ac_objext; then
16160 cat >>confdefs.h
<<\_ACEOF
16161 #define HAVE_FLOCK 1
16164 { echo "$as_me:$LINENO: result: yes" >&5
16165 echo "${ECHO_T}yes" >&6; }
16167 echo "$as_me: failed program was:" >&5
16168 sed 's/^/| /' conftest.
$ac_ext >&5
16170 { echo "$as_me:$LINENO: result: no" >&5
16171 echo "${ECHO_T}no" >&6; }
16175 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16177 { echo "$as_me:$LINENO: checking for getpagesize" >&5
16178 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
16179 cat >conftest.
$ac_ext <<_ACEOF
16182 cat confdefs.h
>>conftest.
$ac_ext
16183 cat >>conftest.
$ac_ext <<_ACEOF
16184 /* end confdefs.h. */
16186 #include "confdefs.h"
16187 #include <unistd.h>
16192 void* p = getpagesize
16197 rm -f conftest.
$ac_objext
16198 if { (ac_try
="$ac_compile"
16199 case "(($ac_try" in
16200 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16201 *) ac_try_echo=$ac_try;;
16203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16204 (eval "$ac_compile") 2>conftest.er1
16206 grep -v '^ *+' conftest.er1 >conftest.err
16208 cat conftest.err >&5
16209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210 (exit $ac_status); } && {
16211 test -z "$ac_c_werror_flag" ||
16212 test ! -s conftest.err
16213 } && test -s conftest.$ac_objext; then
16215 cat >>confdefs.h <<\_ACEOF
16216 #define HAVE_GETPAGESIZE 1
16219 { echo "$as_me:$LINENO: result: yes" >&5
16220 echo "${ECHO_T}yes" >&6; }
16222 echo "$as_me: failed program was:" >&5
16223 sed 's/^/| /' conftest.$ac_ext >&5
16225 { echo "$as_me:$LINENO: result: no" >&5
16226 echo "${ECHO_T}no" >&6; }
16230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16232 for ac_prog in true
16234 # Extract the first word of "$ac_prog", so it can be a program name with args.
16235 set dummy $ac_prog; ac_word=$2
16236 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16238 if test "${ac_cv_prog_TRUE+set}" = set; then
16239 echo $ECHO_N "(cached) $ECHO_C" >&6
16241 if test -n "$TRUE"; then
16242 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
16244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16245 for as_dir in $PATH
16248 test -z "$as_dir" && as_dir=.
16249 for ac_exec_ext in '' $ac_executable_extensions; do
16250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16251 ac_cv_prog_TRUE="$ac_prog"
16252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16261 TRUE=$ac_cv_prog_TRUE
16262 if test -n "$TRUE"; then
16263 { echo "$as_me:$LINENO: result: $TRUE" >&5
16264 echo "${ECHO_T}$TRUE" >&6; }
16266 { echo "$as_me:$LINENO: result: no" >&5
16267 echo "${ECHO_T}no" >&6; }
16271 test -n "$TRUE" && break
16273 test -n "$TRUE" || TRUE="/bin/true"
16276 { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
16277 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
16278 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
16279 echo $ECHO_N "(cached) $ECHO_C" >&6
16281 ac_check_lib_save_LIBS=$LIBS
16283 cat >conftest.$ac_ext <<_ACEOF
16286 cat confdefs.h >>conftest.$ac_ext
16287 cat >>conftest.$ac_ext <<_ACEOF
16288 /* end confdefs.h. */
16290 /* Override any GCC internal prototype to avoid an error.
16291 Use char because int might match the return type of a GCC
16292 builtin and then its argument prototype would still apply. */
16300 return inet_aton ();
16305 rm -f conftest.$ac_objext conftest$ac_exeext
16306 if { (ac_try="$ac_link"
16307 case "(($ac_try" in
16308 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16309 *) ac_try_echo
=$ac_try;;
16311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16312 (eval "$ac_link") 2>conftest.er1
16314 grep -v '^ *+' conftest.er1
>conftest.err
16316 cat conftest.err
>&5
16317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16318 (exit $ac_status); } && {
16319 test -z "$ac_c_werror_flag" ||
16320 test ! -s conftest.err
16321 } && test -s conftest
$ac_exeext &&
16322 $as_test_x conftest
$ac_exeext; then
16323 ac_cv_lib_c_inet_aton
=yes
16325 echo "$as_me: failed program was:" >&5
16326 sed 's/^/| /' conftest.
$ac_ext >&5
16328 ac_cv_lib_c_inet_aton
=no
16331 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16332 conftest
$ac_exeext conftest.
$ac_ext
16333 LIBS
=$ac_check_lib_save_LIBS
16335 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
16336 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
16337 if test $ac_cv_lib_c_inet_aton = yes; then
16341 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
16342 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
16343 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
16344 echo $ECHO_N "(cached) $ECHO_C" >&6
16346 ac_check_lib_save_LIBS
=$LIBS
16347 LIBS
="-lresolv $LIBS"
16348 cat >conftest.
$ac_ext <<_ACEOF
16351 cat confdefs.h
>>conftest.
$ac_ext
16352 cat >>conftest.
$ac_ext <<_ACEOF
16353 /* end confdefs.h. */
16355 /* Override any GCC internal prototype to avoid an error.
16356 Use char because int might match the return type of a GCC
16357 builtin and then its argument prototype would still apply. */
16365 return inet_aton ();
16370 rm -f conftest.
$ac_objext conftest
$ac_exeext
16371 if { (ac_try
="$ac_link"
16372 case "(($ac_try" in
16373 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16374 *) ac_try_echo=$ac_try;;
16376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16377 (eval "$ac_link") 2>conftest.er1
16379 grep -v '^ *+' conftest.er1 >conftest.err
16381 cat conftest.err >&5
16382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16383 (exit $ac_status); } && {
16384 test -z "$ac_c_werror_flag" ||
16385 test ! -s conftest.err
16386 } && test -s conftest$ac_exeext &&
16387 $as_test_x conftest$ac_exeext; then
16388 ac_cv_lib_resolv_inet_aton=yes
16390 echo "$as_me: failed program was:" >&5
16391 sed 's/^/| /' conftest.$ac_ext >&5
16393 ac_cv_lib_resolv_inet_aton=no
16396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16397 conftest$ac_exeext conftest.$ac_ext
16398 LIBS=$ac_check_lib_save_LIBS
16400 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
16401 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
16402 if test $ac_cv_lib_resolv_inet_aton = yes; then
16403 cat >>confdefs.h <<_ACEOF
16404 #define HAVE_LIBRESOLV 1
16407 LIBS="-lresolv $LIBS"
16415 # On Tru64, chflags seems to be present, but calling it will
16417 { echo "$as_me:$LINENO: checking for chflags" >&5
16418 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
16419 if test "$cross_compiling" = yes; then
16420 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16421 See \`config.log
' for more details." >&5
16422 echo "$as_me: error: cannot run test program while cross compiling
16423 See \`config.log' for more details.
" >&2;}
16424 { (exit 1); exit 1; }; }
16426 cat >conftest.$ac_ext <<_ACEOF
16429 cat confdefs.h >>conftest.$ac_ext
16430 cat >>conftest.$ac_ext <<_ACEOF
16431 /* end confdefs.h. */
16433 #include <sys/stat.h>
16434 #include <unistd.h>
16435 int main(int argc, char*argv[])
16437 if(chflags(argv[0], 0) != 0)
16443 rm -f conftest$ac_exeext
16444 if { (ac_try="$ac_link"
16445 case "(($ac_try" in
16446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16447 *) ac_try_echo=$ac_try;;
16449 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16450 (eval "$ac_link") 2>&5
16452 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16453 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16454 { (case "(($ac_try" in
16455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16456 *) ac_try_echo=$ac_try;;
16458 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16459 (eval "$ac_try") 2>&5
16461 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16462 (exit $ac_status); }; }; then
16464 cat >>confdefs.h <<\_ACEOF
16465 #define HAVE_CHFLAGS 1
16468 { echo "$as_me:$LINENO: result
: yes" >&5
16469 echo "${ECHO_T}yes" >&6; }
16471 echo "$as_me: program exited with status
$ac_status" >&5
16472 echo "$as_me: failed program was
:" >&5
16473 sed 's/^/| /' conftest.$ac_ext >&5
16475 ( exit $ac_status )
16476 { echo "$as_me:$LINENO: result
: no
" >&5
16477 echo "${ECHO_T}no
" >&6; }
16480 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16485 { echo "$as_me:$LINENO: checking
for lchflags
" >&5
16486 echo $ECHO_N "checking
for lchflags...
$ECHO_C" >&6; }
16487 if test "$cross_compiling" = yes; then
16488 { { echo "$as_me:$LINENO: error
: cannot run
test program
while cross compiling
16489 See \
`config.log' for more details." >&5
16490 echo "$as_me: error: cannot run test program while cross compiling
16491 See \`config.log
' for more details." >&2;}
16492 { (exit 1); exit 1; }; }
16494 cat >conftest.$ac_ext <<_ACEOF
16497 cat confdefs.h >>conftest.$ac_ext
16498 cat >>conftest.$ac_ext <<_ACEOF
16499 /* end confdefs.h. */
16501 #include <sys/stat.h>
16502 #include <unistd.h>
16503 int main(int argc, char*argv[])
16505 if(lchflags(argv[0], 0) != 0)
16511 rm -f conftest$ac_exeext
16512 if { (ac_try="$ac_link"
16513 case "(($ac_try" in
16514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16515 *) ac_try_echo=$ac_try;;
16517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16518 (eval "$ac_link") 2>&5
16520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16521 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
16522 { (case "(($ac_try" in
16523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16524 *) ac_try_echo=$ac_try;;
16526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16527 (eval "$ac_try") 2>&5
16529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16530 (exit $ac_status); }; }; then
16532 cat >>confdefs.h <<\_ACEOF
16533 #define HAVE_LCHFLAGS 1
16536 { echo "$as_me:$LINENO: result: yes" >&5
16537 echo "${ECHO_T}yes" >&6; }
16539 echo "$as_me: program exited with status $ac_status" >&5
16540 echo "$as_me: failed program was:" >&5
16541 sed 's
/^
/|
/' conftest.$ac_ext >&5
16543 ( exit $ac_status )
16544 { echo "$as_me:$LINENO: result: no" >&5
16545 echo "${ECHO_T}no" >&6; }
16548 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16553 case $ac_sys_system/$ac_sys_release in
16555 _CUR_CFLAGS="${CFLAGS}"
16556 _CUR_LDFLAGS="${LDFLAGS}"
16557 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
16558 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
16562 { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
16563 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
16564 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
16565 echo $ECHO_N "(cached) $ECHO_C" >&6
16567 ac_check_lib_save_LIBS=$LIBS
16569 cat >conftest.$ac_ext <<_ACEOF
16572 cat confdefs.h >>conftest.$ac_ext
16573 cat >>conftest.$ac_ext <<_ACEOF
16574 /* end confdefs.h. */
16576 /* Override any GCC internal prototype to avoid an error.
16577 Use char because int might match the return type of a GCC
16578 builtin and then its argument prototype would still apply. */
16582 char inflateCopy ();
16586 return inflateCopy ();
16591 rm -f conftest.$ac_objext conftest$ac_exeext
16592 if { (ac_try="$ac_link"
16593 case "(($ac_try" in
16594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16595 *) ac_try_echo=$ac_try;;
16597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16598 (eval "$ac_link") 2>conftest.er1
16600 grep -v '^
*+' conftest.er1 >conftest.err
16602 cat conftest.err >&5
16603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604 (exit $ac_status); } && {
16605 test -z "$ac_c_werror_flag" ||
16606 test ! -s conftest.err
16607 } && test -s conftest$ac_exeext &&
16608 $as_test_x conftest$ac_exeext; then
16609 ac_cv_lib_z_inflateCopy=yes
16611 echo "$as_me: failed program was:" >&5
16612 sed 's
/^
/|
/' conftest.$ac_ext >&5
16614 ac_cv_lib_z_inflateCopy=no
16617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16618 conftest$ac_exeext conftest.$ac_ext
16619 LIBS=$ac_check_lib_save_LIBS
16621 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
16622 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
16623 if test $ac_cv_lib_z_inflateCopy = yes; then
16625 cat >>confdefs.h <<\_ACEOF
16626 #define HAVE_ZLIB_COPY 1
16632 case $ac_sys_system/$ac_sys_release in
16634 CFLAGS="${_CUR_CFLAGS}"
16635 LDFLAGS="${_CUR_LDFLAGS}"
16639 { echo "$as_me:$LINENO: checking for hstrerror" >&5
16640 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
16641 cat >conftest.$ac_ext <<_ACEOF
16644 cat confdefs.h >>conftest.$ac_ext
16645 cat >>conftest.$ac_ext <<_ACEOF
16646 /* end confdefs.h. */
16648 #include "confdefs.h"
16654 void* p = hstrerror; hstrerror(0)
16659 rm -f conftest.$ac_objext conftest$ac_exeext
16660 if { (ac_try="$ac_link"
16661 case "(($ac_try" in
16662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16663 *) ac_try_echo=$ac_try;;
16665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16666 (eval "$ac_link") 2>conftest.er1
16668 grep -v '^
*+' conftest.er1 >conftest.err
16670 cat conftest.err >&5
16671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672 (exit $ac_status); } && {
16673 test -z "$ac_c_werror_flag" ||
16674 test ! -s conftest.err
16675 } && test -s conftest$ac_exeext &&
16676 $as_test_x conftest$ac_exeext; then
16678 cat >>confdefs.h <<\_ACEOF
16679 #define HAVE_HSTRERROR 1
16682 { echo "$as_me:$LINENO: result: yes" >&5
16683 echo "${ECHO_T}yes" >&6; }
16685 echo "$as_me: failed program was:" >&5
16686 sed 's
/^
/|
/' conftest.$ac_ext >&5
16688 { echo "$as_me:$LINENO: result: no" >&5
16689 echo "${ECHO_T}no" >&6; }
16693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16694 conftest$ac_exeext conftest.$ac_ext
16696 { echo "$as_me:$LINENO: checking for inet_aton" >&5
16697 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
16698 cat >conftest.$ac_ext <<_ACEOF
16701 cat confdefs.h >>conftest.$ac_ext
16702 cat >>conftest.$ac_ext <<_ACEOF
16703 /* end confdefs.h. */
16705 #include "confdefs.h"
16706 #include <sys/types.h>
16707 #include <sys/socket.h>
16708 #include <netinet/in.h>
16709 #include <arpa/inet.h>
16714 void* p = inet_aton;inet_aton(0,0)
16719 rm -f conftest.$ac_objext conftest$ac_exeext
16720 if { (ac_try="$ac_link"
16721 case "(($ac_try" in
16722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16723 *) ac_try_echo=$ac_try;;
16725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16726 (eval "$ac_link") 2>conftest.er1
16728 grep -v '^
*+' conftest.er1 >conftest.err
16730 cat conftest.err >&5
16731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732 (exit $ac_status); } && {
16733 test -z "$ac_c_werror_flag" ||
16734 test ! -s conftest.err
16735 } && test -s conftest$ac_exeext &&
16736 $as_test_x conftest$ac_exeext; then
16738 cat >>confdefs.h <<\_ACEOF
16739 #define HAVE_INET_ATON 1
16742 { echo "$as_me:$LINENO: result: yes" >&5
16743 echo "${ECHO_T}yes" >&6; }
16745 echo "$as_me: failed program was:" >&5
16746 sed 's
/^
/|
/' conftest.$ac_ext >&5
16748 { echo "$as_me:$LINENO: result: no" >&5
16749 echo "${ECHO_T}no" >&6; }
16753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16754 conftest$ac_exeext conftest.$ac_ext
16756 { echo "$as_me:$LINENO: checking for inet_pton" >&5
16757 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
16758 cat >conftest.$ac_ext <<_ACEOF
16761 cat confdefs.h >>conftest.$ac_ext
16762 cat >>conftest.$ac_ext <<_ACEOF
16763 /* end confdefs.h. */
16765 #include "confdefs.h"
16766 #include <sys/types.h>
16767 #include <sys/socket.h>
16768 #include <netinet/in.h>
16769 #include <arpa/inet.h>
16774 void* p = inet_pton
16779 rm -f conftest.$ac_objext
16780 if { (ac_try="$ac_compile"
16781 case "(($ac_try" in
16782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16783 *) ac_try_echo=$ac_try;;
16785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16786 (eval "$ac_compile") 2>conftest.er1
16788 grep -v '^
*+' conftest.er1 >conftest.err
16790 cat conftest.err >&5
16791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16792 (exit $ac_status); } && {
16793 test -z "$ac_c_werror_flag" ||
16794 test ! -s conftest.err
16795 } && test -s conftest.$ac_objext; then
16797 cat >>confdefs.h <<\_ACEOF
16798 #define HAVE_INET_PTON 1
16801 { echo "$as_me:$LINENO: result: yes" >&5
16802 echo "${ECHO_T}yes" >&6; }
16804 echo "$as_me: failed program was:" >&5
16805 sed 's
/^
/|
/' conftest.$ac_ext >&5
16807 { echo "$as_me:$LINENO: result: no" >&5
16808 echo "${ECHO_T}no" >&6; }
16812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16814 # On some systems, setgroups is in unistd.h, on others, in grp.h
16815 { echo "$as_me:$LINENO: checking for setgroups" >&5
16816 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
16817 cat >conftest.$ac_ext <<_ACEOF
16820 cat confdefs.h >>conftest.$ac_ext
16821 cat >>conftest.$ac_ext <<_ACEOF
16822 /* end confdefs.h. */
16824 #include "confdefs.h"
16825 #include <unistd.h>
16833 void* p = setgroups
16838 rm -f conftest.$ac_objext
16839 if { (ac_try="$ac_compile"
16840 case "(($ac_try" in
16841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16842 *) ac_try_echo=$ac_try;;
16844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16845 (eval "$ac_compile") 2>conftest.er1
16847 grep -v '^
*+' conftest.er1 >conftest.err
16849 cat conftest.err >&5
16850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 (exit $ac_status); } && {
16852 test -z "$ac_c_werror_flag" ||
16853 test ! -s conftest.err
16854 } && test -s conftest.$ac_objext; then
16856 cat >>confdefs.h <<\_ACEOF
16857 #define HAVE_SETGROUPS 1
16860 { echo "$as_me:$LINENO: result: yes" >&5
16861 echo "${ECHO_T}yes" >&6; }
16863 echo "$as_me: failed program was:" >&5
16864 sed 's
/^
/|
/' conftest.$ac_ext >&5
16866 { echo "$as_me:$LINENO: result: no" >&5
16867 echo "${ECHO_T}no" >&6; }
16871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16873 # check for openpty and forkpty
16876 for ac_func in openpty
16878 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16879 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16880 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16881 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16882 echo $ECHO_N "(cached) $ECHO_C" >&6
16884 cat >conftest.$ac_ext <<_ACEOF
16887 cat confdefs.h >>conftest.$ac_ext
16888 cat >>conftest.$ac_ext <<_ACEOF
16889 /* end confdefs.h. */
16890 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16892 #define $ac_func innocuous_$ac_func
16894 /* System header to define __stub macros and hopefully few prototypes,
16895 which can conflict with char $ac_func (); below.
16896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16897 <limits.h> exists even on freestanding compilers. */
16900 # include <limits.h>
16902 # include <assert.h>
16907 /* Override any GCC internal prototype to avoid an error.
16908 Use char because int might match the return type of a GCC
16909 builtin and then its argument prototype would still apply. */
16914 /* The GNU C library defines this for functions which it implements
16915 to always fail with ENOSYS. Some functions are actually named
16916 something starting with __ and the normal name is an alias. */
16917 #if defined __stub_$ac_func || defined __stub___$ac_func
16924 return $ac_func ();
16929 rm -f conftest.$ac_objext conftest$ac_exeext
16930 if { (ac_try="$ac_link"
16931 case "(($ac_try" in
16932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16933 *) ac_try_echo=$ac_try;;
16935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16936 (eval "$ac_link") 2>conftest.er1
16938 grep -v '^
*+' conftest.er1 >conftest.err
16940 cat conftest.err >&5
16941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942 (exit $ac_status); } && {
16943 test -z "$ac_c_werror_flag" ||
16944 test ! -s conftest.err
16945 } && test -s conftest$ac_exeext &&
16946 $as_test_x conftest$ac_exeext; then
16947 eval "$as_ac_var=yes"
16949 echo "$as_me: failed program was:" >&5
16950 sed 's
/^
/|
/' conftest.$ac_ext >&5
16952 eval "$as_ac_var=no"
16955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16956 conftest$ac_exeext conftest.$ac_ext
16958 ac_res=`eval echo '${'$as_ac_var'}'`
16959 { echo "$as_me:$LINENO: result: $ac_res" >&5
16960 echo "${ECHO_T}$ac_res" >&6; }
16961 if test `eval echo '${'$as_ac_var'}'` = yes; then
16962 cat >>confdefs.h <<_ACEOF
16963 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16967 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
16968 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
16969 if test "${ac_cv_lib_util_openpty+set}" = set; then
16970 echo $ECHO_N "(cached) $ECHO_C" >&6
16972 ac_check_lib_save_LIBS=$LIBS
16973 LIBS="-lutil $LIBS"
16974 cat >conftest.$ac_ext <<_ACEOF
16977 cat confdefs.h >>conftest.$ac_ext
16978 cat >>conftest.$ac_ext <<_ACEOF
16979 /* end confdefs.h. */
16981 /* Override any GCC internal prototype to avoid an error.
16982 Use char because int might match the return type of a GCC
16983 builtin and then its argument prototype would still apply. */
16996 rm -f conftest.$ac_objext conftest$ac_exeext
16997 if { (ac_try="$ac_link"
16998 case "(($ac_try" in
16999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17000 *) ac_try_echo=$ac_try;;
17002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17003 (eval "$ac_link") 2>conftest.er1
17005 grep -v '^
*+' conftest.er1 >conftest.err
17007 cat conftest.err >&5
17008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17009 (exit $ac_status); } && {
17010 test -z "$ac_c_werror_flag" ||
17011 test ! -s conftest.err
17012 } && test -s conftest$ac_exeext &&
17013 $as_test_x conftest$ac_exeext; then
17014 ac_cv_lib_util_openpty=yes
17016 echo "$as_me: failed program was:" >&5
17017 sed 's
/^
/|
/' conftest.$ac_ext >&5
17019 ac_cv_lib_util_openpty=no
17022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17023 conftest$ac_exeext conftest.$ac_ext
17024 LIBS=$ac_check_lib_save_LIBS
17026 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
17027 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
17028 if test $ac_cv_lib_util_openpty = yes; then
17029 cat >>confdefs.h <<\_ACEOF
17030 #define HAVE_OPENPTY 1
17032 LIBS="$LIBS -lutil"
17034 { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
17035 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
17036 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
17037 echo $ECHO_N "(cached) $ECHO_C" >&6
17039 ac_check_lib_save_LIBS=$LIBS
17041 cat >conftest.$ac_ext <<_ACEOF
17044 cat confdefs.h >>conftest.$ac_ext
17045 cat >>conftest.$ac_ext <<_ACEOF
17046 /* end confdefs.h. */
17048 /* Override any GCC internal prototype to avoid an error.
17049 Use char because int might match the return type of a GCC
17050 builtin and then its argument prototype would still apply. */
17063 rm -f conftest.$ac_objext conftest$ac_exeext
17064 if { (ac_try="$ac_link"
17065 case "(($ac_try" in
17066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17067 *) ac_try_echo=$ac_try;;
17069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17070 (eval "$ac_link") 2>conftest.er1
17072 grep -v '^
*+' conftest.er1 >conftest.err
17074 cat conftest.err >&5
17075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17076 (exit $ac_status); } && {
17077 test -z "$ac_c_werror_flag" ||
17078 test ! -s conftest.err
17079 } && test -s conftest$ac_exeext &&
17080 $as_test_x conftest$ac_exeext; then
17081 ac_cv_lib_bsd_openpty=yes
17083 echo "$as_me: failed program was:" >&5
17084 sed 's
/^
/|
/' conftest.$ac_ext >&5
17086 ac_cv_lib_bsd_openpty=no
17089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17090 conftest$ac_exeext conftest.$ac_ext
17091 LIBS=$ac_check_lib_save_LIBS
17093 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
17094 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
17095 if test $ac_cv_lib_bsd_openpty = yes; then
17096 cat >>confdefs.h <<\_ACEOF
17097 #define HAVE_OPENPTY 1
17110 for ac_func in forkpty
17112 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17113 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17114 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17115 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17116 echo $ECHO_N "(cached) $ECHO_C" >&6
17118 cat >conftest.$ac_ext <<_ACEOF
17121 cat confdefs.h >>conftest.$ac_ext
17122 cat >>conftest.$ac_ext <<_ACEOF
17123 /* end confdefs.h. */
17124 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17125 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17126 #define $ac_func innocuous_$ac_func
17128 /* System header to define __stub macros and hopefully few prototypes,
17129 which can conflict with char $ac_func (); below.
17130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17131 <limits.h> exists even on freestanding compilers. */
17134 # include <limits.h>
17136 # include <assert.h>
17141 /* Override any GCC internal prototype to avoid an error.
17142 Use char because int might match the return type of a GCC
17143 builtin and then its argument prototype would still apply. */
17148 /* The GNU C library defines this for functions which it implements
17149 to always fail with ENOSYS. Some functions are actually named
17150 something starting with __ and the normal name is an alias. */
17151 #if defined __stub_$ac_func || defined __stub___$ac_func
17158 return $ac_func ();
17163 rm -f conftest.$ac_objext conftest$ac_exeext
17164 if { (ac_try="$ac_link"
17165 case "(($ac_try" in
17166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17167 *) ac_try_echo=$ac_try;;
17169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17170 (eval "$ac_link") 2>conftest.er1
17172 grep -v '^
*+' conftest.er1 >conftest.err
17174 cat conftest.err >&5
17175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17176 (exit $ac_status); } && {
17177 test -z "$ac_c_werror_flag" ||
17178 test ! -s conftest.err
17179 } && test -s conftest$ac_exeext &&
17180 $as_test_x conftest$ac_exeext; then
17181 eval "$as_ac_var=yes"
17183 echo "$as_me: failed program was:" >&5
17184 sed 's
/^
/|
/' conftest.$ac_ext >&5
17186 eval "$as_ac_var=no"
17189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17190 conftest$ac_exeext conftest.$ac_ext
17192 ac_res=`eval echo '${'$as_ac_var'}'`
17193 { echo "$as_me:$LINENO: result: $ac_res" >&5
17194 echo "${ECHO_T}$ac_res" >&6; }
17195 if test `eval echo '${'$as_ac_var'}'` = yes; then
17196 cat >>confdefs.h <<_ACEOF
17197 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17201 { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
17202 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
17203 if test "${ac_cv_lib_util_forkpty+set}" = set; then
17204 echo $ECHO_N "(cached) $ECHO_C" >&6
17206 ac_check_lib_save_LIBS=$LIBS
17207 LIBS="-lutil $LIBS"
17208 cat >conftest.$ac_ext <<_ACEOF
17211 cat confdefs.h >>conftest.$ac_ext
17212 cat >>conftest.$ac_ext <<_ACEOF
17213 /* end confdefs.h. */
17215 /* Override any GCC internal prototype to avoid an error.
17216 Use char because int might match the return type of a GCC
17217 builtin and then its argument prototype would still apply. */
17230 rm -f conftest.$ac_objext conftest$ac_exeext
17231 if { (ac_try="$ac_link"
17232 case "(($ac_try" in
17233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17234 *) ac_try_echo=$ac_try;;
17236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17237 (eval "$ac_link") 2>conftest.er1
17239 grep -v '^
*+' conftest.er1 >conftest.err
17241 cat conftest.err >&5
17242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17243 (exit $ac_status); } && {
17244 test -z "$ac_c_werror_flag" ||
17245 test ! -s conftest.err
17246 } && test -s conftest$ac_exeext &&
17247 $as_test_x conftest$ac_exeext; then
17248 ac_cv_lib_util_forkpty=yes
17250 echo "$as_me: failed program was:" >&5
17251 sed 's
/^
/|
/' conftest.$ac_ext >&5
17253 ac_cv_lib_util_forkpty=no
17256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17257 conftest$ac_exeext conftest.$ac_ext
17258 LIBS=$ac_check_lib_save_LIBS
17260 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
17261 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
17262 if test $ac_cv_lib_util_forkpty = yes; then
17263 cat >>confdefs.h <<\_ACEOF
17264 #define HAVE_FORKPTY 1
17266 LIBS="$LIBS -lutil"
17268 { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
17269 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
17270 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
17271 echo $ECHO_N "(cached) $ECHO_C" >&6
17273 ac_check_lib_save_LIBS=$LIBS
17275 cat >conftest.$ac_ext <<_ACEOF
17278 cat confdefs.h >>conftest.$ac_ext
17279 cat >>conftest.$ac_ext <<_ACEOF
17280 /* end confdefs.h. */
17282 /* Override any GCC internal prototype to avoid an error.
17283 Use char because int might match the return type of a GCC
17284 builtin and then its argument prototype would still apply. */
17297 rm -f conftest.$ac_objext conftest$ac_exeext
17298 if { (ac_try="$ac_link"
17299 case "(($ac_try" in
17300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17301 *) ac_try_echo=$ac_try;;
17303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17304 (eval "$ac_link") 2>conftest.er1
17306 grep -v '^
*+' conftest.er1 >conftest.err
17308 cat conftest.err >&5
17309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17310 (exit $ac_status); } && {
17311 test -z "$ac_c_werror_flag" ||
17312 test ! -s conftest.err
17313 } && test -s conftest$ac_exeext &&
17314 $as_test_x conftest$ac_exeext; then
17315 ac_cv_lib_bsd_forkpty=yes
17317 echo "$as_me: failed program was:" >&5
17318 sed 's
/^
/|
/' conftest.$ac_ext >&5
17320 ac_cv_lib_bsd_forkpty=no
17323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17324 conftest$ac_exeext conftest.$ac_ext
17325 LIBS=$ac_check_lib_save_LIBS
17327 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
17328 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
17329 if test $ac_cv_lib_bsd_forkpty = yes; then
17330 cat >>confdefs.h <<\_ACEOF
17331 #define HAVE_FORKPTY 1
17344 # check for long file support functions
17351 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
17353 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17354 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17355 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17356 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17357 echo $ECHO_N "(cached) $ECHO_C" >&6
17359 cat >conftest.$ac_ext <<_ACEOF
17362 cat confdefs.h >>conftest.$ac_ext
17363 cat >>conftest.$ac_ext <<_ACEOF
17364 /* end confdefs.h. */
17365 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17366 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17367 #define $ac_func innocuous_$ac_func
17369 /* System header to define __stub macros and hopefully few prototypes,
17370 which can conflict with char $ac_func (); below.
17371 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17372 <limits.h> exists even on freestanding compilers. */
17375 # include <limits.h>
17377 # include <assert.h>
17382 /* Override any GCC internal prototype to avoid an error.
17383 Use char because int might match the return type of a GCC
17384 builtin and then its argument prototype would still apply. */
17389 /* The GNU C library defines this for functions which it implements
17390 to always fail with ENOSYS. Some functions are actually named
17391 something starting with __ and the normal name is an alias. */
17392 #if defined __stub_$ac_func || defined __stub___$ac_func
17399 return $ac_func ();
17404 rm -f conftest.$ac_objext conftest$ac_exeext
17405 if { (ac_try="$ac_link"
17406 case "(($ac_try" in
17407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17408 *) ac_try_echo=$ac_try;;
17410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17411 (eval "$ac_link") 2>conftest.er1
17413 grep -v '^
*+' conftest.er1 >conftest.err
17415 cat conftest.err >&5
17416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17417 (exit $ac_status); } && {
17418 test -z "$ac_c_werror_flag" ||
17419 test ! -s conftest.err
17420 } && test -s conftest$ac_exeext &&
17421 $as_test_x conftest$ac_exeext; then
17422 eval "$as_ac_var=yes"
17424 echo "$as_me: failed program was:" >&5
17425 sed 's
/^
/|
/' conftest.$ac_ext >&5
17427 eval "$as_ac_var=no"
17430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17431 conftest$ac_exeext conftest.$ac_ext
17433 ac_res=`eval echo '${'$as_ac_var'}'`
17434 { echo "$as_me:$LINENO: result: $ac_res" >&5
17435 echo "${ECHO_T}$ac_res" >&6; }
17436 if test `eval echo '${'$as_ac_var'}'` = yes; then
17437 cat >>confdefs.h <<_ACEOF
17438 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17450 for ac_func in dup2 getcwd strdup strerror memmove
17452 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17453 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17454 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17455 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17456 echo $ECHO_N "(cached) $ECHO_C" >&6
17458 cat >conftest.$ac_ext <<_ACEOF
17461 cat confdefs.h >>conftest.$ac_ext
17462 cat >>conftest.$ac_ext <<_ACEOF
17463 /* end confdefs.h. */
17464 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17465 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17466 #define $ac_func innocuous_$ac_func
17468 /* System header to define __stub macros and hopefully few prototypes,
17469 which can conflict with char $ac_func (); below.
17470 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17471 <limits.h> exists even on freestanding compilers. */
17474 # include <limits.h>
17476 # include <assert.h>
17481 /* Override any GCC internal prototype to avoid an error.
17482 Use char because int might match the return type of a GCC
17483 builtin and then its argument prototype would still apply. */
17488 /* The GNU C library defines this for functions which it implements
17489 to always fail with ENOSYS. Some functions are actually named
17490 something starting with __ and the normal name is an alias. */
17491 #if defined __stub_$ac_func || defined __stub___$ac_func
17498 return $ac_func ();
17503 rm -f conftest.$ac_objext conftest$ac_exeext
17504 if { (ac_try="$ac_link"
17505 case "(($ac_try" in
17506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17507 *) ac_try_echo=$ac_try;;
17509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17510 (eval "$ac_link") 2>conftest.er1
17512 grep -v '^
*+' conftest.er1 >conftest.err
17514 cat conftest.err >&5
17515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516 (exit $ac_status); } && {
17517 test -z "$ac_c_werror_flag" ||
17518 test ! -s conftest.err
17519 } && test -s conftest$ac_exeext &&
17520 $as_test_x conftest$ac_exeext; then
17521 eval "$as_ac_var=yes"
17523 echo "$as_me: failed program was:" >&5
17524 sed 's
/^
/|
/' conftest.$ac_ext >&5
17526 eval "$as_ac_var=no"
17529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17530 conftest$ac_exeext conftest.$ac_ext
17532 ac_res=`eval echo '${'$as_ac_var'}'`
17533 { echo "$as_me:$LINENO: result: $ac_res" >&5
17534 echo "${ECHO_T}$ac_res" >&6; }
17535 if test `eval echo '${'$as_ac_var'}'` = yes; then
17536 cat >>confdefs.h <<_ACEOF
17537 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17541 case " $LIBOBJS " in
17542 *" $ac_func.$ac_objext "* ) ;;
17543 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17552 for ac_func in getpgrp
17554 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17555 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17556 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17557 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17558 echo $ECHO_N "(cached) $ECHO_C" >&6
17560 cat >conftest.$ac_ext <<_ACEOF
17563 cat confdefs.h >>conftest.$ac_ext
17564 cat >>conftest.$ac_ext <<_ACEOF
17565 /* end confdefs.h. */
17566 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17567 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17568 #define $ac_func innocuous_$ac_func
17570 /* System header to define __stub macros and hopefully few prototypes,
17571 which can conflict with char $ac_func (); below.
17572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17573 <limits.h> exists even on freestanding compilers. */
17576 # include <limits.h>
17578 # include <assert.h>
17583 /* Override any GCC internal prototype to avoid an error.
17584 Use char because int might match the return type of a GCC
17585 builtin and then its argument prototype would still apply. */
17590 /* The GNU C library defines this for functions which it implements
17591 to always fail with ENOSYS. Some functions are actually named
17592 something starting with __ and the normal name is an alias. */
17593 #if defined __stub_$ac_func || defined __stub___$ac_func
17600 return $ac_func ();
17605 rm -f conftest.$ac_objext conftest$ac_exeext
17606 if { (ac_try="$ac_link"
17607 case "(($ac_try" in
17608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17609 *) ac_try_echo=$ac_try;;
17611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17612 (eval "$ac_link") 2>conftest.er1
17614 grep -v '^
*+' conftest.er1 >conftest.err
17616 cat conftest.err >&5
17617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618 (exit $ac_status); } && {
17619 test -z "$ac_c_werror_flag" ||
17620 test ! -s conftest.err
17621 } && test -s conftest$ac_exeext &&
17622 $as_test_x conftest$ac_exeext; then
17623 eval "$as_ac_var=yes"
17625 echo "$as_me: failed program was:" >&5
17626 sed 's
/^
/|
/' conftest.$ac_ext >&5
17628 eval "$as_ac_var=no"
17631 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17632 conftest$ac_exeext conftest.$ac_ext
17634 ac_res=`eval echo '${'$as_ac_var'}'`
17635 { echo "$as_me:$LINENO: result: $ac_res" >&5
17636 echo "${ECHO_T}$ac_res" >&6; }
17637 if test `eval echo '${'$as_ac_var'}'` = yes; then
17638 cat >>confdefs.h <<_ACEOF
17639 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17641 cat >conftest.$ac_ext <<_ACEOF
17644 cat confdefs.h >>conftest.$ac_ext
17645 cat >>conftest.$ac_ext <<_ACEOF
17646 /* end confdefs.h. */
17647 #include <unistd.h>
17656 rm -f conftest.$ac_objext
17657 if { (ac_try="$ac_compile"
17658 case "(($ac_try" in
17659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17660 *) ac_try_echo=$ac_try;;
17662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17663 (eval "$ac_compile") 2>conftest.er1
17665 grep -v '^
*+' conftest.er1 >conftest.err
17667 cat conftest.err >&5
17668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669 (exit $ac_status); } && {
17670 test -z "$ac_c_werror_flag" ||
17671 test ! -s conftest.err
17672 } && test -s conftest.$ac_objext; then
17674 cat >>confdefs.h <<\_ACEOF
17675 #define GETPGRP_HAVE_ARG 1
17680 echo "$as_me: failed program was:" >&5
17681 sed 's
/^
/|
/' conftest.$ac_ext >&5
17686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17692 for ac_func in setpgrp
17694 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17695 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17696 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17697 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17698 echo $ECHO_N "(cached) $ECHO_C" >&6
17700 cat >conftest.$ac_ext <<_ACEOF
17703 cat confdefs.h >>conftest.$ac_ext
17704 cat >>conftest.$ac_ext <<_ACEOF
17705 /* end confdefs.h. */
17706 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17707 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17708 #define $ac_func innocuous_$ac_func
17710 /* System header to define __stub macros and hopefully few prototypes,
17711 which can conflict with char $ac_func (); below.
17712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17713 <limits.h> exists even on freestanding compilers. */
17716 # include <limits.h>
17718 # include <assert.h>
17723 /* Override any GCC internal prototype to avoid an error.
17724 Use char because int might match the return type of a GCC
17725 builtin and then its argument prototype would still apply. */
17730 /* The GNU C library defines this for functions which it implements
17731 to always fail with ENOSYS. Some functions are actually named
17732 something starting with __ and the normal name is an alias. */
17733 #if defined __stub_$ac_func || defined __stub___$ac_func
17740 return $ac_func ();
17745 rm -f conftest.$ac_objext conftest$ac_exeext
17746 if { (ac_try="$ac_link"
17747 case "(($ac_try" in
17748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17749 *) ac_try_echo=$ac_try;;
17751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17752 (eval "$ac_link") 2>conftest.er1
17754 grep -v '^
*+' conftest.er1 >conftest.err
17756 cat conftest.err >&5
17757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758 (exit $ac_status); } && {
17759 test -z "$ac_c_werror_flag" ||
17760 test ! -s conftest.err
17761 } && test -s conftest$ac_exeext &&
17762 $as_test_x conftest$ac_exeext; then
17763 eval "$as_ac_var=yes"
17765 echo "$as_me: failed program was:" >&5
17766 sed 's
/^
/|
/' conftest.$ac_ext >&5
17768 eval "$as_ac_var=no"
17771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17772 conftest$ac_exeext conftest.$ac_ext
17774 ac_res=`eval echo '${'$as_ac_var'}'`
17775 { echo "$as_me:$LINENO: result: $ac_res" >&5
17776 echo "${ECHO_T}$ac_res" >&6; }
17777 if test `eval echo '${'$as_ac_var'}'` = yes; then
17778 cat >>confdefs.h <<_ACEOF
17779 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17781 cat >conftest.$ac_ext <<_ACEOF
17784 cat confdefs.h >>conftest.$ac_ext
17785 cat >>conftest.$ac_ext <<_ACEOF
17786 /* end confdefs.h. */
17787 #include <unistd.h>
17796 rm -f conftest.$ac_objext
17797 if { (ac_try="$ac_compile"
17798 case "(($ac_try" in
17799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17800 *) ac_try_echo=$ac_try;;
17802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17803 (eval "$ac_compile") 2>conftest.er1
17805 grep -v '^
*+' conftest.er1 >conftest.err
17807 cat conftest.err >&5
17808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17809 (exit $ac_status); } && {
17810 test -z "$ac_c_werror_flag" ||
17811 test ! -s conftest.err
17812 } && test -s conftest.$ac_objext; then
17814 cat >>confdefs.h <<\_ACEOF
17815 #define SETPGRP_HAVE_ARG 1
17820 echo "$as_me: failed program was:" >&5
17821 sed 's
/^
/|
/' conftest.$ac_ext >&5
17826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17832 for ac_func in gettimeofday
17834 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17835 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17836 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17837 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17838 echo $ECHO_N "(cached) $ECHO_C" >&6
17840 cat >conftest.$ac_ext <<_ACEOF
17843 cat confdefs.h >>conftest.$ac_ext
17844 cat >>conftest.$ac_ext <<_ACEOF
17845 /* end confdefs.h. */
17846 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17847 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17848 #define $ac_func innocuous_$ac_func
17850 /* System header to define __stub macros and hopefully few prototypes,
17851 which can conflict with char $ac_func (); below.
17852 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17853 <limits.h> exists even on freestanding compilers. */
17856 # include <limits.h>
17858 # include <assert.h>
17863 /* Override any GCC internal prototype to avoid an error.
17864 Use char because int might match the return type of a GCC
17865 builtin and then its argument prototype would still apply. */
17870 /* The GNU C library defines this for functions which it implements
17871 to always fail with ENOSYS. Some functions are actually named
17872 something starting with __ and the normal name is an alias. */
17873 #if defined __stub_$ac_func || defined __stub___$ac_func
17880 return $ac_func ();
17885 rm -f conftest.$ac_objext conftest$ac_exeext
17886 if { (ac_try="$ac_link"
17887 case "(($ac_try" in
17888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17889 *) ac_try_echo=$ac_try;;
17891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17892 (eval "$ac_link") 2>conftest.er1
17894 grep -v '^
*+' conftest.er1 >conftest.err
17896 cat conftest.err >&5
17897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898 (exit $ac_status); } && {
17899 test -z "$ac_c_werror_flag" ||
17900 test ! -s conftest.err
17901 } && test -s conftest$ac_exeext &&
17902 $as_test_x conftest$ac_exeext; then
17903 eval "$as_ac_var=yes"
17905 echo "$as_me: failed program was:" >&5
17906 sed 's
/^
/|
/' conftest.$ac_ext >&5
17908 eval "$as_ac_var=no"
17911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17912 conftest$ac_exeext conftest.$ac_ext
17914 ac_res=`eval echo '${'$as_ac_var'}'`
17915 { echo "$as_me:$LINENO: result: $ac_res" >&5
17916 echo "${ECHO_T}$ac_res" >&6; }
17917 if test `eval echo '${'$as_ac_var'}'` = yes; then
17918 cat >>confdefs.h <<_ACEOF
17919 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17921 cat >conftest.$ac_ext <<_ACEOF
17924 cat confdefs.h >>conftest.$ac_ext
17925 cat >>conftest.$ac_ext <<_ACEOF
17926 /* end confdefs.h. */
17927 #include <sys/time.h>
17931 gettimeofday((struct timeval*)0,(struct timezone*)0);
17936 rm -f conftest.$ac_objext
17937 if { (ac_try="$ac_compile"
17938 case "(($ac_try" in
17939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17940 *) ac_try_echo=$ac_try;;
17942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17943 (eval "$ac_compile") 2>conftest.er1
17945 grep -v '^
*+' conftest.er1 >conftest.err
17947 cat conftest.err >&5
17948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949 (exit $ac_status); } && {
17950 test -z "$ac_c_werror_flag" ||
17951 test ! -s conftest.err
17952 } && test -s conftest.$ac_objext; then
17955 echo "$as_me: failed program was:" >&5
17956 sed 's
/^
/|
/' conftest.$ac_ext >&5
17959 cat >>confdefs.h <<\_ACEOF
17960 #define GETTIMEOFDAY_NO_TZ 1
17966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17972 { echo "$as_me:$LINENO: checking for major" >&5
17973 echo $ECHO_N "checking for major... $ECHO_C" >&6; }
17974 cat >conftest.$ac_ext <<_ACEOF
17977 cat confdefs.h >>conftest.$ac_ext
17978 cat >>conftest.$ac_ext <<_ACEOF
17979 /* end confdefs.h. */
17981 #if defined(MAJOR_IN_MKDEV)
17982 #include <sys/mkdev.h>
17983 #elif defined(MAJOR_IN_SYSMACROS)
17984 #include <sys/sysmacros.h>
17986 #include <sys/types.h>
17993 makedev(major(0),minor(0));
17999 rm -f conftest.$ac_objext conftest$ac_exeext
18000 if { (ac_try="$ac_link"
18001 case "(($ac_try" in
18002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18003 *) ac_try_echo=$ac_try;;
18005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18006 (eval "$ac_link") 2>conftest.er1
18008 grep -v '^
*+' conftest.er1 >conftest.err
18010 cat conftest.err >&5
18011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18012 (exit $ac_status); } && {
18013 test -z "$ac_c_werror_flag" ||
18014 test ! -s conftest.err
18015 } && test -s conftest$ac_exeext &&
18016 $as_test_x conftest$ac_exeext; then
18019 cat >>confdefs.h <<\_ACEOF
18020 #define HAVE_DEVICE_MACROS 1
18023 { echo "$as_me:$LINENO: result: yes" >&5
18024 echo "${ECHO_T}yes" >&6; }
18027 echo "$as_me: failed program was:" >&5
18028 sed 's
/^
/|
/' conftest.$ac_ext >&5
18031 { echo "$as_me:$LINENO: result: no" >&5
18032 echo "${ECHO_T}no" >&6; }
18036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18037 conftest$ac_exeext conftest.$ac_ext
18039 # On OSF/1 V5.1, getaddrinfo is available, but a define
18040 # for [no]getaddrinfo in netdb.h.
18041 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
18042 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
18043 cat >conftest.$ac_ext <<_ACEOF
18046 cat confdefs.h >>conftest.$ac_ext
18047 cat >>conftest.$ac_ext <<_ACEOF
18048 /* end confdefs.h. */
18050 #include <sys/types.h>
18051 #include <sys/socket.h>
18059 getaddrinfo(NULL, NULL, NULL, NULL);
18065 rm -f conftest.$ac_objext conftest$ac_exeext
18066 if { (ac_try="$ac_link"
18067 case "(($ac_try" in
18068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18069 *) ac_try_echo=$ac_try;;
18071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18072 (eval "$ac_link") 2>conftest.er1
18074 grep -v '^
*+' conftest.er1 >conftest.err
18076 cat conftest.err >&5
18077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18078 (exit $ac_status); } && {
18079 test -z "$ac_c_werror_flag" ||
18080 test ! -s conftest.err
18081 } && test -s conftest$ac_exeext &&
18082 $as_test_x conftest$ac_exeext; then
18084 { echo "$as_me:$LINENO: result: yes" >&5
18085 echo "${ECHO_T}yes" >&6; }
18086 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
18087 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
18088 if test "$cross_compiling" = yes; then
18089 { echo "$as_me:$LINENO: result: buggy" >&5
18090 echo "${ECHO_T}buggy" >&6; }
18091 buggygetaddrinfo=yes
18093 cat >conftest.$ac_ext <<_ACEOF
18096 cat confdefs.h >>conftest.$ac_ext
18097 cat >>conftest.$ac_ext <<_ACEOF
18098 /* end confdefs.h. */
18100 #include <sys/types.h>
18102 #include <string.h>
18103 #include <sys/socket.h>
18104 #include <netinet/in.h>
18108 int passive, gaierr, inet4 = 0, inet6 = 0;
18109 struct addrinfo hints, *ai, *aitop;
18110 char straddr[INET6_ADDRSTRLEN], strport[16];
18112 for (passive = 0; passive <= 1; passive++) {
18113 memset(&hints, 0, sizeof(hints));
18114 hints.ai_family = AF_UNSPEC;
18115 hints.ai_flags = passive ? AI_PASSIVE : 0;
18116 hints.ai_socktype = SOCK_STREAM;
18117 hints.ai_protocol = IPPROTO_TCP;
18118 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
18119 (void)gai_strerror(gaierr);
18122 for (ai = aitop; ai; ai = ai->ai_next) {
18123 if (ai->ai_addr == NULL ||
18124 ai->ai_addrlen == 0 ||
18125 getnameinfo(ai->ai_addr, ai->ai_addrlen,
18126 straddr, sizeof(straddr), strport, sizeof(strport),
18127 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
18130 switch (ai->ai_family) {
18132 if (strcmp(strport, "54321") != 0) {
18136 if (strcmp(straddr, "0.0.0.0") != 0) {
18140 if (strcmp(straddr, "127.0.0.1") != 0) {
18147 if (strcmp(strport, "54321") != 0) {
18151 if (strcmp(straddr, "::") != 0) {
18155 if (strcmp(straddr, "::1") != 0) {
18165 /* another family support? */
18171 if (!(inet4 == 0 || inet4 == 2))
18173 if (!(inet6 == 0 || inet6 == 2))
18177 freeaddrinfo(aitop);
18182 freeaddrinfo(aitop);
18187 rm -f conftest$ac_exeext
18188 if { (ac_try="$ac_link"
18189 case "(($ac_try" in
18190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18191 *) ac_try_echo=$ac_try;;
18193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18194 (eval "$ac_link") 2>&5
18196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18197 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
18198 { (case "(($ac_try" in
18199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18200 *) ac_try_echo=$ac_try;;
18202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18203 (eval "$ac_try") 2>&5
18205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18206 (exit $ac_status); }; }; then
18207 { echo "$as_me:$LINENO: result: good" >&5
18208 echo "${ECHO_T}good" >&6; }
18209 buggygetaddrinfo=no
18211 echo "$as_me: program exited with status $ac_status" >&5
18212 echo "$as_me: failed program was:" >&5
18213 sed 's
/^
/|
/' conftest.$ac_ext >&5
18215 ( exit $ac_status )
18216 { echo "$as_me:$LINENO: result: buggy" >&5
18217 echo "${ECHO_T}buggy" >&6; }
18218 buggygetaddrinfo=yes
18220 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18225 echo "$as_me: failed program was:" >&5
18226 sed 's
/^
/|
/' conftest.$ac_ext >&5
18229 { echo "$as_me:$LINENO: result: no" >&5
18230 echo "${ECHO_T}no" >&6; }
18231 buggygetaddrinfo=yes
18235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18236 conftest$ac_exeext conftest.$ac_ext
18238 if test "$buggygetaddrinfo" = "yes"; then
18239 if test "$ipv6" = "yes"; then
18240 echo 'Fatal
: You must get working getaddrinfo
() function.
'
18241 echo ' or you can specify
"--disable-ipv6"'.
18246 cat >>confdefs.h <<\_ACEOF
18247 #define HAVE_GETADDRINFO 1
18252 for ac_func in getnameinfo
18254 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18255 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18256 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18257 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18258 echo $ECHO_N "(cached) $ECHO_C" >&6
18260 cat >conftest.$ac_ext <<_ACEOF
18263 cat confdefs.h >>conftest.$ac_ext
18264 cat >>conftest.$ac_ext <<_ACEOF
18265 /* end confdefs.h. */
18266 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18267 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18268 #define $ac_func innocuous_$ac_func
18270 /* System header to define __stub macros and hopefully few prototypes,
18271 which can conflict with char $ac_func (); below.
18272 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18273 <limits.h> exists even on freestanding compilers. */
18276 # include <limits.h>
18278 # include <assert.h>
18283 /* Override any GCC internal prototype to avoid an error.
18284 Use char because int might match the return type of a GCC
18285 builtin and then its argument prototype would still apply. */
18290 /* The GNU C library defines this for functions which it implements
18291 to always fail with ENOSYS. Some functions are actually named
18292 something starting with __ and the normal name is an alias. */
18293 #if defined __stub_$ac_func || defined __stub___$ac_func
18300 return $ac_func ();
18305 rm -f conftest.$ac_objext conftest$ac_exeext
18306 if { (ac_try="$ac_link"
18307 case "(($ac_try" in
18308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18309 *) ac_try_echo=$ac_try;;
18311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18312 (eval "$ac_link") 2>conftest.er1
18314 grep -v '^
*+' conftest.er1 >conftest.err
18316 cat conftest.err >&5
18317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18318 (exit $ac_status); } && {
18319 test -z "$ac_c_werror_flag" ||
18320 test ! -s conftest.err
18321 } && test -s conftest$ac_exeext &&
18322 $as_test_x conftest$ac_exeext; then
18323 eval "$as_ac_var=yes"
18325 echo "$as_me: failed program was:" >&5
18326 sed 's
/^
/|
/' conftest.$ac_ext >&5
18328 eval "$as_ac_var=no"
18331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18332 conftest$ac_exeext conftest.$ac_ext
18334 ac_res=`eval echo '${'$as_ac_var'}'`
18335 { echo "$as_me:$LINENO: result: $ac_res" >&5
18336 echo "${ECHO_T}$ac_res" >&6; }
18337 if test `eval echo '${'$as_ac_var'}'` = yes; then
18338 cat >>confdefs.h <<_ACEOF
18339 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18346 # checks for structures
18347 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
18348 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
18349 if test "${ac_cv_header_time+set}" = set; then
18350 echo $ECHO_N "(cached) $ECHO_C" >&6
18352 cat >conftest.$ac_ext <<_ACEOF
18355 cat confdefs.h >>conftest.$ac_ext
18356 cat >>conftest.$ac_ext <<_ACEOF
18357 /* end confdefs.h. */
18358 #include <sys/types.h>
18359 #include <sys/time.h>
18365 if ((struct tm *) 0)
18371 rm -f conftest.$ac_objext
18372 if { (ac_try="$ac_compile"
18373 case "(($ac_try" in
18374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18375 *) ac_try_echo=$ac_try;;
18377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18378 (eval "$ac_compile") 2>conftest.er1
18380 grep -v '^
*+' conftest.er1 >conftest.err
18382 cat conftest.err >&5
18383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18384 (exit $ac_status); } && {
18385 test -z "$ac_c_werror_flag" ||
18386 test ! -s conftest.err
18387 } && test -s conftest.$ac_objext; then
18388 ac_cv_header_time=yes
18390 echo "$as_me: failed program was:" >&5
18391 sed 's
/^
/|
/' conftest.$ac_ext >&5
18393 ac_cv_header_time=no
18396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18398 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
18399 echo "${ECHO_T}$ac_cv_header_time" >&6; }
18400 if test $ac_cv_header_time = yes; then
18402 cat >>confdefs.h <<\_ACEOF
18403 #define TIME_WITH_SYS_TIME 1
18408 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
18409 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
18410 if test "${ac_cv_struct_tm+set}" = set; then
18411 echo $ECHO_N "(cached) $ECHO_C" >&6
18413 cat >conftest.$ac_ext <<_ACEOF
18416 cat confdefs.h >>conftest.$ac_ext
18417 cat >>conftest.$ac_ext <<_ACEOF
18418 /* end confdefs.h. */
18419 #include <sys/types.h>
18426 int *p = &tm.tm_sec;
18432 rm -f conftest.$ac_objext
18433 if { (ac_try="$ac_compile"
18434 case "(($ac_try" in
18435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18436 *) ac_try_echo=$ac_try;;
18438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18439 (eval "$ac_compile") 2>conftest.er1
18441 grep -v '^
*+' conftest.er1 >conftest.err
18443 cat conftest.err >&5
18444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18445 (exit $ac_status); } && {
18446 test -z "$ac_c_werror_flag" ||
18447 test ! -s conftest.err
18448 } && test -s conftest.$ac_objext; then
18449 ac_cv_struct_tm=time.h
18451 echo "$as_me: failed program was:" >&5
18452 sed 's
/^
/|
/' conftest.$ac_ext >&5
18454 ac_cv_struct_tm=sys/time.h
18457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18459 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
18460 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
18461 if test $ac_cv_struct_tm = sys/time.h; then
18463 cat >>confdefs.h <<\_ACEOF
18464 #define TM_IN_SYS_TIME 1
18469 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
18470 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
18471 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
18472 echo $ECHO_N "(cached) $ECHO_C" >&6
18474 cat >conftest.$ac_ext <<_ACEOF
18477 cat confdefs.h >>conftest.$ac_ext
18478 cat >>conftest.$ac_ext <<_ACEOF
18479 /* end confdefs.h. */
18480 #include <sys/types.h>
18481 #include <$ac_cv_struct_tm>
18487 static struct tm ac_aggr;
18488 if (ac_aggr.tm_zone)
18494 rm -f conftest.$ac_objext
18495 if { (ac_try="$ac_compile"
18496 case "(($ac_try" in
18497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18498 *) ac_try_echo=$ac_try;;
18500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18501 (eval "$ac_compile") 2>conftest.er1
18503 grep -v '^
*+' conftest.er1 >conftest.err
18505 cat conftest.err >&5
18506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18507 (exit $ac_status); } && {
18508 test -z "$ac_c_werror_flag" ||
18509 test ! -s conftest.err
18510 } && test -s conftest.$ac_objext; then
18511 ac_cv_member_struct_tm_tm_zone=yes
18513 echo "$as_me: failed program was:" >&5
18514 sed 's
/^
/|
/' conftest.$ac_ext >&5
18516 cat >conftest.$ac_ext <<_ACEOF
18519 cat confdefs.h >>conftest.$ac_ext
18520 cat >>conftest.$ac_ext <<_ACEOF
18521 /* end confdefs.h. */
18522 #include <sys/types.h>
18523 #include <$ac_cv_struct_tm>
18529 static struct tm ac_aggr;
18530 if (sizeof ac_aggr.tm_zone)
18536 rm -f conftest.$ac_objext
18537 if { (ac_try="$ac_compile"
18538 case "(($ac_try" in
18539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18540 *) ac_try_echo=$ac_try;;
18542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18543 (eval "$ac_compile") 2>conftest.er1
18545 grep -v '^
*+' conftest.er1 >conftest.err
18547 cat conftest.err >&5
18548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18549 (exit $ac_status); } && {
18550 test -z "$ac_c_werror_flag" ||
18551 test ! -s conftest.err
18552 } && test -s conftest.$ac_objext; then
18553 ac_cv_member_struct_tm_tm_zone=yes
18555 echo "$as_me: failed program was:" >&5
18556 sed 's
/^
/|
/' conftest.$ac_ext >&5
18558 ac_cv_member_struct_tm_tm_zone=no
18561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18566 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
18567 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
18568 if test $ac_cv_member_struct_tm_tm_zone = yes; then
18570 cat >>confdefs.h <<_ACEOF
18571 #define HAVE_STRUCT_TM_TM_ZONE 1
18577 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
18579 cat >>confdefs.h <<\_ACEOF
18580 #define HAVE_TM_ZONE 1
18584 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
18585 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
18586 if test "${ac_cv_have_decl_tzname+set}" = set; then
18587 echo $ECHO_N "(cached) $ECHO_C" >&6
18589 cat >conftest.$ac_ext <<_ACEOF
18592 cat confdefs.h >>conftest.$ac_ext
18593 cat >>conftest.$ac_ext <<_ACEOF
18594 /* end confdefs.h. */
18608 rm -f conftest.$ac_objext
18609 if { (ac_try="$ac_compile"
18610 case "(($ac_try" in
18611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18612 *) ac_try_echo=$ac_try;;
18614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18615 (eval "$ac_compile") 2>conftest.er1
18617 grep -v '^
*+' conftest.er1 >conftest.err
18619 cat conftest.err >&5
18620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18621 (exit $ac_status); } && {
18622 test -z "$ac_c_werror_flag" ||
18623 test ! -s conftest.err
18624 } && test -s conftest.$ac_objext; then
18625 ac_cv_have_decl_tzname=yes
18627 echo "$as_me: failed program was:" >&5
18628 sed 's
/^
/|
/' conftest.$ac_ext >&5
18630 ac_cv_have_decl_tzname=no
18633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18635 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
18636 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
18637 if test $ac_cv_have_decl_tzname = yes; then
18639 cat >>confdefs.h <<_ACEOF
18640 #define HAVE_DECL_TZNAME 1
18645 cat >>confdefs.h <<_ACEOF
18646 #define HAVE_DECL_TZNAME 0
18653 { echo "$as_me:$LINENO: checking for tzname" >&5
18654 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
18655 if test "${ac_cv_var_tzname+set}" = set; then
18656 echo $ECHO_N "(cached) $ECHO_C" >&6
18658 cat >conftest.$ac_ext <<_ACEOF
18661 cat confdefs.h >>conftest.$ac_ext
18662 cat >>conftest.$ac_ext <<_ACEOF
18663 /* end confdefs.h. */
18665 #if !HAVE_DECL_TZNAME
18666 extern char *tzname[];
18672 return tzname[0][0];
18677 rm -f conftest.$ac_objext conftest$ac_exeext
18678 if { (ac_try="$ac_link"
18679 case "(($ac_try" in
18680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18681 *) ac_try_echo=$ac_try;;
18683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18684 (eval "$ac_link") 2>conftest.er1
18686 grep -v '^
*+' conftest.er1 >conftest.err
18688 cat conftest.err >&5
18689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18690 (exit $ac_status); } && {
18691 test -z "$ac_c_werror_flag" ||
18692 test ! -s conftest.err
18693 } && test -s conftest$ac_exeext &&
18694 $as_test_x conftest$ac_exeext; then
18695 ac_cv_var_tzname=yes
18697 echo "$as_me: failed program was:" >&5
18698 sed 's
/^
/|
/' conftest.$ac_ext >&5
18700 ac_cv_var_tzname=no
18703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18704 conftest$ac_exeext conftest.$ac_ext
18706 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
18707 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
18708 if test $ac_cv_var_tzname = yes; then
18710 cat >>confdefs.h <<\_ACEOF
18711 #define HAVE_TZNAME 1
18717 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
18718 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
18719 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
18720 echo $ECHO_N "(cached) $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. */
18728 $ac_includes_default
18732 static struct stat ac_aggr;
18733 if (ac_aggr.st_rdev)
18739 rm -f conftest.$ac_objext
18740 if { (ac_try="$ac_compile"
18741 case "(($ac_try" in
18742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18743 *) ac_try_echo=$ac_try;;
18745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18746 (eval "$ac_compile") 2>conftest.er1
18748 grep -v '^
*+' conftest.er1 >conftest.err
18750 cat conftest.err >&5
18751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18752 (exit $ac_status); } && {
18753 test -z "$ac_c_werror_flag" ||
18754 test ! -s conftest.err
18755 } && test -s conftest.$ac_objext; then
18756 ac_cv_member_struct_stat_st_rdev=yes
18758 echo "$as_me: failed program was:" >&5
18759 sed 's
/^
/|
/' conftest.$ac_ext >&5
18761 cat >conftest.$ac_ext <<_ACEOF
18764 cat confdefs.h >>conftest.$ac_ext
18765 cat >>conftest.$ac_ext <<_ACEOF
18766 /* end confdefs.h. */
18767 $ac_includes_default
18771 static struct stat ac_aggr;
18772 if (sizeof ac_aggr.st_rdev)
18778 rm -f conftest.$ac_objext
18779 if { (ac_try="$ac_compile"
18780 case "(($ac_try" in
18781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18782 *) ac_try_echo=$ac_try;;
18784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18785 (eval "$ac_compile") 2>conftest.er1
18787 grep -v '^
*+' conftest.er1 >conftest.err
18789 cat conftest.err >&5
18790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18791 (exit $ac_status); } && {
18792 test -z "$ac_c_werror_flag" ||
18793 test ! -s conftest.err
18794 } && test -s conftest.$ac_objext; then
18795 ac_cv_member_struct_stat_st_rdev=yes
18797 echo "$as_me: failed program was:" >&5
18798 sed 's
/^
/|
/' conftest.$ac_ext >&5
18800 ac_cv_member_struct_stat_st_rdev=no
18803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18808 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
18809 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
18810 if test $ac_cv_member_struct_stat_st_rdev = yes; then
18812 cat >>confdefs.h <<_ACEOF
18813 #define HAVE_STRUCT_STAT_ST_RDEV 1
18819 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
18820 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
18821 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
18822 echo $ECHO_N "(cached) $ECHO_C" >&6
18824 cat >conftest.$ac_ext <<_ACEOF
18827 cat confdefs.h >>conftest.$ac_ext
18828 cat >>conftest.$ac_ext <<_ACEOF
18829 /* end confdefs.h. */
18830 $ac_includes_default
18834 static struct stat ac_aggr;
18835 if (ac_aggr.st_blksize)
18841 rm -f conftest.$ac_objext
18842 if { (ac_try="$ac_compile"
18843 case "(($ac_try" in
18844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18845 *) ac_try_echo=$ac_try;;
18847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18848 (eval "$ac_compile") 2>conftest.er1
18850 grep -v '^
*+' conftest.er1 >conftest.err
18852 cat conftest.err >&5
18853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18854 (exit $ac_status); } && {
18855 test -z "$ac_c_werror_flag" ||
18856 test ! -s conftest.err
18857 } && test -s conftest.$ac_objext; then
18858 ac_cv_member_struct_stat_st_blksize=yes
18860 echo "$as_me: failed program was:" >&5
18861 sed 's
/^
/|
/' conftest.$ac_ext >&5
18863 cat >conftest.$ac_ext <<_ACEOF
18866 cat confdefs.h >>conftest.$ac_ext
18867 cat >>conftest.$ac_ext <<_ACEOF
18868 /* end confdefs.h. */
18869 $ac_includes_default
18873 static struct stat ac_aggr;
18874 if (sizeof ac_aggr.st_blksize)
18880 rm -f conftest.$ac_objext
18881 if { (ac_try="$ac_compile"
18882 case "(($ac_try" in
18883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18884 *) ac_try_echo=$ac_try;;
18886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18887 (eval "$ac_compile") 2>conftest.er1
18889 grep -v '^
*+' conftest.er1 >conftest.err
18891 cat conftest.err >&5
18892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893 (exit $ac_status); } && {
18894 test -z "$ac_c_werror_flag" ||
18895 test ! -s conftest.err
18896 } && test -s conftest.$ac_objext; then
18897 ac_cv_member_struct_stat_st_blksize=yes
18899 echo "$as_me: failed program was:" >&5
18900 sed 's
/^
/|
/' conftest.$ac_ext >&5
18902 ac_cv_member_struct_stat_st_blksize=no
18905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18910 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
18911 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
18912 if test $ac_cv_member_struct_stat_st_blksize = yes; then
18914 cat >>confdefs.h <<_ACEOF
18915 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
18921 { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
18922 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
18923 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
18924 echo $ECHO_N "(cached) $ECHO_C" >&6
18926 cat >conftest.$ac_ext <<_ACEOF
18929 cat confdefs.h >>conftest.$ac_ext
18930 cat >>conftest.$ac_ext <<_ACEOF
18931 /* end confdefs.h. */
18932 $ac_includes_default
18936 static struct stat ac_aggr;
18937 if (ac_aggr.st_flags)
18943 rm -f conftest.$ac_objext
18944 if { (ac_try="$ac_compile"
18945 case "(($ac_try" in
18946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18947 *) ac_try_echo=$ac_try;;
18949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18950 (eval "$ac_compile") 2>conftest.er1
18952 grep -v '^
*+' conftest.er1 >conftest.err
18954 cat conftest.err >&5
18955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956 (exit $ac_status); } && {
18957 test -z "$ac_c_werror_flag" ||
18958 test ! -s conftest.err
18959 } && test -s conftest.$ac_objext; then
18960 ac_cv_member_struct_stat_st_flags=yes
18962 echo "$as_me: failed program was:" >&5
18963 sed 's
/^
/|
/' conftest.$ac_ext >&5
18965 cat >conftest.$ac_ext <<_ACEOF
18968 cat confdefs.h >>conftest.$ac_ext
18969 cat >>conftest.$ac_ext <<_ACEOF
18970 /* end confdefs.h. */
18971 $ac_includes_default
18975 static struct stat ac_aggr;
18976 if (sizeof ac_aggr.st_flags)
18982 rm -f conftest.$ac_objext
18983 if { (ac_try="$ac_compile"
18984 case "(($ac_try" in
18985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18986 *) ac_try_echo=$ac_try;;
18988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18989 (eval "$ac_compile") 2>conftest.er1
18991 grep -v '^
*+' conftest.er1 >conftest.err
18993 cat conftest.err >&5
18994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995 (exit $ac_status); } && {
18996 test -z "$ac_c_werror_flag" ||
18997 test ! -s conftest.err
18998 } && test -s conftest.$ac_objext; then
18999 ac_cv_member_struct_stat_st_flags=yes
19001 echo "$as_me: failed program was:" >&5
19002 sed 's
/^
/|
/' conftest.$ac_ext >&5
19004 ac_cv_member_struct_stat_st_flags=no
19007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19012 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
19013 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
19014 if test $ac_cv_member_struct_stat_st_flags = yes; then
19016 cat >>confdefs.h <<_ACEOF
19017 #define HAVE_STRUCT_STAT_ST_FLAGS 1
19023 { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
19024 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
19025 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
19026 echo $ECHO_N "(cached) $ECHO_C" >&6
19028 cat >conftest.$ac_ext <<_ACEOF
19031 cat confdefs.h >>conftest.$ac_ext
19032 cat >>conftest.$ac_ext <<_ACEOF
19033 /* end confdefs.h. */
19034 $ac_includes_default
19038 static struct stat ac_aggr;
19039 if (ac_aggr.st_gen)
19045 rm -f conftest.$ac_objext
19046 if { (ac_try="$ac_compile"
19047 case "(($ac_try" in
19048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19049 *) ac_try_echo=$ac_try;;
19051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19052 (eval "$ac_compile") 2>conftest.er1
19054 grep -v '^
*+' conftest.er1 >conftest.err
19056 cat conftest.err >&5
19057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19058 (exit $ac_status); } && {
19059 test -z "$ac_c_werror_flag" ||
19060 test ! -s conftest.err
19061 } && test -s conftest.$ac_objext; then
19062 ac_cv_member_struct_stat_st_gen=yes
19064 echo "$as_me: failed program was:" >&5
19065 sed 's
/^
/|
/' conftest.$ac_ext >&5
19067 cat >conftest.$ac_ext <<_ACEOF
19070 cat confdefs.h >>conftest.$ac_ext
19071 cat >>conftest.$ac_ext <<_ACEOF
19072 /* end confdefs.h. */
19073 $ac_includes_default
19077 static struct stat ac_aggr;
19078 if (sizeof ac_aggr.st_gen)
19084 rm -f conftest.$ac_objext
19085 if { (ac_try="$ac_compile"
19086 case "(($ac_try" in
19087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19088 *) ac_try_echo=$ac_try;;
19090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19091 (eval "$ac_compile") 2>conftest.er1
19093 grep -v '^
*+' conftest.er1 >conftest.err
19095 cat conftest.err >&5
19096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19097 (exit $ac_status); } && {
19098 test -z "$ac_c_werror_flag" ||
19099 test ! -s conftest.err
19100 } && test -s conftest.$ac_objext; then
19101 ac_cv_member_struct_stat_st_gen=yes
19103 echo "$as_me: failed program was:" >&5
19104 sed 's
/^
/|
/' conftest.$ac_ext >&5
19106 ac_cv_member_struct_stat_st_gen=no
19109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19114 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
19115 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
19116 if test $ac_cv_member_struct_stat_st_gen = yes; then
19118 cat >>confdefs.h <<_ACEOF
19119 #define HAVE_STRUCT_STAT_ST_GEN 1
19125 { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
19126 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
19127 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
19128 echo $ECHO_N "(cached) $ECHO_C" >&6
19130 cat >conftest.$ac_ext <<_ACEOF
19133 cat confdefs.h >>conftest.$ac_ext
19134 cat >>conftest.$ac_ext <<_ACEOF
19135 /* end confdefs.h. */
19136 $ac_includes_default
19140 static struct stat ac_aggr;
19141 if (ac_aggr.st_birthtime)
19147 rm -f conftest.$ac_objext
19148 if { (ac_try="$ac_compile"
19149 case "(($ac_try" in
19150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19151 *) ac_try_echo=$ac_try;;
19153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19154 (eval "$ac_compile") 2>conftest.er1
19156 grep -v '^
*+' conftest.er1 >conftest.err
19158 cat conftest.err >&5
19159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19160 (exit $ac_status); } && {
19161 test -z "$ac_c_werror_flag" ||
19162 test ! -s conftest.err
19163 } && test -s conftest.$ac_objext; then
19164 ac_cv_member_struct_stat_st_birthtime=yes
19166 echo "$as_me: failed program was:" >&5
19167 sed 's
/^
/|
/' conftest.$ac_ext >&5
19169 cat >conftest.$ac_ext <<_ACEOF
19172 cat confdefs.h >>conftest.$ac_ext
19173 cat >>conftest.$ac_ext <<_ACEOF
19174 /* end confdefs.h. */
19175 $ac_includes_default
19179 static struct stat ac_aggr;
19180 if (sizeof ac_aggr.st_birthtime)
19186 rm -f conftest.$ac_objext
19187 if { (ac_try="$ac_compile"
19188 case "(($ac_try" in
19189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19190 *) ac_try_echo=$ac_try;;
19192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19193 (eval "$ac_compile") 2>conftest.er1
19195 grep -v '^
*+' conftest.er1 >conftest.err
19197 cat conftest.err >&5
19198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19199 (exit $ac_status); } && {
19200 test -z "$ac_c_werror_flag" ||
19201 test ! -s conftest.err
19202 } && test -s conftest.$ac_objext; then
19203 ac_cv_member_struct_stat_st_birthtime=yes
19205 echo "$as_me: failed program was:" >&5
19206 sed 's
/^
/|
/' conftest.$ac_ext >&5
19208 ac_cv_member_struct_stat_st_birthtime=no
19211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19216 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
19217 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
19218 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
19220 cat >>confdefs.h <<_ACEOF
19221 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
19227 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
19228 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
19229 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
19230 echo $ECHO_N "(cached) $ECHO_C" >&6
19232 cat >conftest.$ac_ext <<_ACEOF
19235 cat confdefs.h >>conftest.$ac_ext
19236 cat >>conftest.$ac_ext <<_ACEOF
19237 /* end confdefs.h. */
19238 $ac_includes_default
19242 static struct stat ac_aggr;
19243 if (ac_aggr.st_blocks)
19249 rm -f conftest.$ac_objext
19250 if { (ac_try="$ac_compile"
19251 case "(($ac_try" in
19252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19253 *) ac_try_echo=$ac_try;;
19255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19256 (eval "$ac_compile") 2>conftest.er1
19258 grep -v '^
*+' conftest.er1 >conftest.err
19260 cat conftest.err >&5
19261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19262 (exit $ac_status); } && {
19263 test -z "$ac_c_werror_flag" ||
19264 test ! -s conftest.err
19265 } && test -s conftest.$ac_objext; then
19266 ac_cv_member_struct_stat_st_blocks=yes
19268 echo "$as_me: failed program was:" >&5
19269 sed 's
/^
/|
/' conftest.$ac_ext >&5
19271 cat >conftest.$ac_ext <<_ACEOF
19274 cat confdefs.h >>conftest.$ac_ext
19275 cat >>conftest.$ac_ext <<_ACEOF
19276 /* end confdefs.h. */
19277 $ac_includes_default
19281 static struct stat ac_aggr;
19282 if (sizeof ac_aggr.st_blocks)
19288 rm -f conftest.$ac_objext
19289 if { (ac_try="$ac_compile"
19290 case "(($ac_try" in
19291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19292 *) ac_try_echo=$ac_try;;
19294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19295 (eval "$ac_compile") 2>conftest.er1
19297 grep -v '^
*+' conftest.er1 >conftest.err
19299 cat conftest.err >&5
19300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301 (exit $ac_status); } && {
19302 test -z "$ac_c_werror_flag" ||
19303 test ! -s conftest.err
19304 } && test -s conftest.$ac_objext; then
19305 ac_cv_member_struct_stat_st_blocks=yes
19307 echo "$as_me: failed program was:" >&5
19308 sed 's
/^
/|
/' conftest.$ac_ext >&5
19310 ac_cv_member_struct_stat_st_blocks=no
19313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19318 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
19319 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
19320 if test $ac_cv_member_struct_stat_st_blocks = yes; then
19322 cat >>confdefs.h <<_ACEOF
19323 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
19327 cat >>confdefs.h <<\_ACEOF
19328 #define HAVE_ST_BLOCKS 1
19332 case " $LIBOBJS " in
19333 *" fileblocks.$ac_objext "* ) ;;
19334 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
19342 { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
19343 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
19344 if test "${ac_cv_header_time_altzone+set}" = set; then
19345 echo $ECHO_N "(cached) $ECHO_C" >&6
19347 cat >conftest.$ac_ext <<_ACEOF
19350 cat confdefs.h >>conftest.$ac_ext
19351 cat >>conftest.$ac_ext <<_ACEOF
19352 /* end confdefs.h. */
19362 rm -f conftest.$ac_objext
19363 if { (ac_try="$ac_compile"
19364 case "(($ac_try" in
19365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19366 *) ac_try_echo=$ac_try;;
19368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19369 (eval "$ac_compile") 2>conftest.er1
19371 grep -v '^
*+' conftest.er1 >conftest.err
19373 cat conftest.err >&5
19374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19375 (exit $ac_status); } && {
19376 test -z "$ac_c_werror_flag" ||
19377 test ! -s conftest.err
19378 } && test -s conftest.$ac_objext; then
19379 ac_cv_header_time_altzone=yes
19381 echo "$as_me: failed program was:" >&5
19382 sed 's
/^
/|
/' conftest.$ac_ext >&5
19384 ac_cv_header_time_altzone=no
19387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19390 { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
19391 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
19392 if test $ac_cv_header_time_altzone = yes; then
19394 cat >>confdefs.h <<\_ACEOF
19395 #define HAVE_ALTZONE 1
19401 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
19402 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
19403 cat >conftest.$ac_ext <<_ACEOF
19406 cat confdefs.h >>conftest.$ac_ext
19407 cat >>conftest.$ac_ext <<_ACEOF
19408 /* end confdefs.h. */
19410 #include <sys/types.h>
19411 #include <sys/select.h>
19412 #include <sys/time.h>
19422 rm -f conftest.$ac_objext
19423 if { (ac_try="$ac_compile"
19424 case "(($ac_try" in
19425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19426 *) ac_try_echo=$ac_try;;
19428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19429 (eval "$ac_compile") 2>conftest.er1
19431 grep -v '^
*+' conftest.er1 >conftest.err
19433 cat conftest.err >&5
19434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435 (exit $ac_status); } && {
19436 test -z "$ac_c_werror_flag" ||
19437 test ! -s conftest.err
19438 } && test -s conftest.$ac_objext; then
19441 cat >>confdefs.h <<\_ACEOF
19442 #define SYS_SELECT_WITH_SYS_TIME 1
19448 echo "$as_me: failed program was:" >&5
19449 sed 's
/^
/|
/' conftest.$ac_ext >&5
19454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19455 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
19456 echo "${ECHO_T}$was_it_defined" >&6; }
19458 { echo "$as_me:$LINENO: checking for addrinfo" >&5
19459 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
19460 if test "${ac_cv_struct_addrinfo+set}" = set; then
19461 echo $ECHO_N "(cached) $ECHO_C" >&6
19463 cat >conftest.$ac_ext <<_ACEOF
19466 cat confdefs.h >>conftest.$ac_ext
19467 cat >>conftest.$ac_ext <<_ACEOF
19468 /* end confdefs.h. */
19470 # include <netdb.h>
19479 rm -f conftest.$ac_objext
19480 if { (ac_try="$ac_compile"
19481 case "(($ac_try" in
19482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19483 *) ac_try_echo=$ac_try;;
19485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19486 (eval "$ac_compile") 2>conftest.er1
19488 grep -v '^
*+' conftest.er1 >conftest.err
19490 cat conftest.err >&5
19491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19492 (exit $ac_status); } && {
19493 test -z "$ac_c_werror_flag" ||
19494 test ! -s conftest.err
19495 } && test -s conftest.$ac_objext; then
19496 ac_cv_struct_addrinfo=yes
19498 echo "$as_me: failed program was:" >&5
19499 sed 's
/^
/|
/' conftest.$ac_ext >&5
19501 ac_cv_struct_addrinfo=no
19504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19507 { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
19508 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
19509 if test $ac_cv_struct_addrinfo = yes; then
19511 cat >>confdefs.h <<\_ACEOF
19512 #define HAVE_ADDRINFO 1
19517 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
19518 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
19519 if test "${ac_cv_struct_sockaddr_storage+set}" = set; then
19520 echo $ECHO_N "(cached) $ECHO_C" >&6
19522 cat >conftest.$ac_ext <<_ACEOF
19525 cat confdefs.h >>conftest.$ac_ext
19526 cat >>conftest.$ac_ext <<_ACEOF
19527 /* end confdefs.h. */
19529 # include <sys/types.h>
19530 # include <sys/socket.h>
19534 struct sockaddr_storage s
19539 rm -f conftest.$ac_objext
19540 if { (ac_try="$ac_compile"
19541 case "(($ac_try" in
19542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19543 *) ac_try_echo=$ac_try;;
19545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19546 (eval "$ac_compile") 2>conftest.er1
19548 grep -v '^
*+' conftest.er1 >conftest.err
19550 cat conftest.err >&5
19551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19552 (exit $ac_status); } && {
19553 test -z "$ac_c_werror_flag" ||
19554 test ! -s conftest.err
19555 } && test -s conftest.$ac_objext; then
19556 ac_cv_struct_sockaddr_storage=yes
19558 echo "$as_me: failed program was:" >&5
19559 sed 's
/^
/|
/' conftest.$ac_ext >&5
19561 ac_cv_struct_sockaddr_storage=no
19564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19567 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
19568 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
19569 if test $ac_cv_struct_sockaddr_storage = yes; then
19571 cat >>confdefs.h <<\_ACEOF
19572 #define HAVE_SOCKADDR_STORAGE 1
19577 # checks for compiler characteristics
19580 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
19581 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
19582 if test "${ac_cv_c_char_unsigned+set}" = set; then
19583 echo $ECHO_N "(cached) $ECHO_C" >&6
19585 cat >conftest.$ac_ext <<_ACEOF
19588 cat confdefs.h >>conftest.$ac_ext
19589 cat >>conftest.$ac_ext <<_ACEOF
19590 /* end confdefs.h. */
19591 $ac_includes_default
19595 static int test_array [1 - 2 * !(((char) -1) < 0)];
19602 rm -f conftest.$ac_objext
19603 if { (ac_try="$ac_compile"
19604 case "(($ac_try" in
19605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19606 *) ac_try_echo=$ac_try;;
19608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19609 (eval "$ac_compile") 2>conftest.er1
19611 grep -v '^
*+' conftest.er1 >conftest.err
19613 cat conftest.err >&5
19614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19615 (exit $ac_status); } && {
19616 test -z "$ac_c_werror_flag" ||
19617 test ! -s conftest.err
19618 } && test -s conftest.$ac_objext; then
19619 ac_cv_c_char_unsigned=no
19621 echo "$as_me: failed program was:" >&5
19622 sed 's
/^
/|
/' conftest.$ac_ext >&5
19624 ac_cv_c_char_unsigned=yes
19627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19629 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
19630 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
19631 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
19632 cat >>confdefs.h <<\_ACEOF
19633 #define __CHAR_UNSIGNED__ 1
19638 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19639 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
19640 if test "${ac_cv_c_const+set}" = set; then
19641 echo $ECHO_N "(cached) $ECHO_C" >&6
19643 cat >conftest.$ac_ext <<_ACEOF
19646 cat confdefs.h >>conftest.$ac_ext
19647 cat >>conftest.$ac_ext <<_ACEOF
19648 /* end confdefs.h. */
19653 /* FIXME: Include the comments suggested by Paul. */
19654 #ifndef __cplusplus
19655 /* Ultrix mips cc rejects this. */
19656 typedef int charset[2];
19658 /* SunOS 4.1.1 cc rejects this. */
19659 char const *const *pcpcc;
19661 /* NEC SVR4.0.2 mips cc rejects this. */
19662 struct point {int x, y;};
19663 static struct point const zero = {0,0};
19664 /* AIX XL C 1.02.0.0 rejects this.
19665 It does not let you subtract one const X* pointer from another in
19666 an arm of an if-expression whose if-part is not a constant
19668 const char *g = "string";
19669 pcpcc = &g + (g ? g-g : 0);
19670 /* HPUX 7.0 cc rejects these. */
19672 ppc = (char**) pcpcc;
19673 pcpcc = (char const *const *) ppc;
19674 { /* SCO 3.2v4 cc rejects this. */
19676 char const *s = 0 ? (char *) 0 : (char const *) 0;
19681 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19682 int x[] = {25, 17};
19683 const int *foo = &x[0];
19686 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19687 typedef const int *iptr;
19691 { /* AIX XL C 1.02.0.0 rejects this saying
19692 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19693 struct s { int j; const int *ap[3]; };
19694 struct s *b; b->j = 5;
19696 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19697 const int foo = 10;
19698 if (!foo) return 0;
19700 return !cs[0] && !zero.x;
19707 rm -f conftest.$ac_objext
19708 if { (ac_try="$ac_compile"
19709 case "(($ac_try" in
19710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19711 *) ac_try_echo=$ac_try;;
19713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19714 (eval "$ac_compile") 2>conftest.er1
19716 grep -v '^
*+' conftest.er1 >conftest.err
19718 cat conftest.err >&5
19719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19720 (exit $ac_status); } && {
19721 test -z "$ac_c_werror_flag" ||
19722 test ! -s conftest.err
19723 } && test -s conftest.$ac_objext; then
19726 echo "$as_me: failed program was:" >&5
19727 sed 's
/^
/|
/' conftest.$ac_ext >&5
19732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19734 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19735 echo "${ECHO_T}$ac_cv_c_const" >&6; }
19736 if test $ac_cv_c_const = no; then
19738 cat >>confdefs.h <<\_ACEOF
19746 { echo "$as_me:$LINENO: checking for working volatile" >&5
19747 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
19748 cat >conftest.$ac_ext <<_ACEOF
19751 cat confdefs.h >>conftest.$ac_ext
19752 cat >>conftest.$ac_ext <<_ACEOF
19753 /* end confdefs.h. */
19758 volatile int x; x = 0;
19763 rm -f conftest.$ac_objext
19764 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
19782 echo "$as_me: failed program was:" >&5
19783 sed 's
/^
/|
/' conftest.$ac_ext >&5
19786 cat >>confdefs.h <<\_ACEOF
19793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19794 { echo "$as_me:$LINENO: result: $works" >&5
19795 echo "${ECHO_T}$works" >&6; }
19798 { echo "$as_me:$LINENO: checking for working signed char" >&5
19799 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
19800 cat >conftest.$ac_ext <<_ACEOF
19803 cat confdefs.h >>conftest.$ac_ext
19804 cat >>conftest.$ac_ext <<_ACEOF
19805 /* end confdefs.h. */
19815 rm -f conftest.$ac_objext
19816 if { (ac_try="$ac_compile"
19817 case "(($ac_try" in
19818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19819 *) ac_try_echo=$ac_try;;
19821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19822 (eval "$ac_compile") 2>conftest.er1
19824 grep -v '^
*+' conftest.er1 >conftest.err
19826 cat conftest.err >&5
19827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19828 (exit $ac_status); } && {
19829 test -z "$ac_c_werror_flag" ||
19830 test ! -s conftest.err
19831 } && test -s conftest.$ac_objext; then
19834 echo "$as_me: failed program was:" >&5
19835 sed 's
/^
/|
/' conftest.$ac_ext >&5
19838 cat >>confdefs.h <<\_ACEOF
19845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19846 { echo "$as_me:$LINENO: result: $works" >&5
19847 echo "${ECHO_T}$works" >&6; }
19850 { echo "$as_me:$LINENO: checking for prototypes" >&5
19851 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
19852 cat >conftest.$ac_ext <<_ACEOF
19855 cat confdefs.h >>conftest.$ac_ext
19856 cat >>conftest.$ac_ext <<_ACEOF
19857 /* end confdefs.h. */
19858 int foo(int x) { return 0; }
19867 rm -f conftest.$ac_objext
19868 if { (ac_try="$ac_compile"
19869 case "(($ac_try" in
19870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19871 *) ac_try_echo=$ac_try;;
19873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19874 (eval "$ac_compile") 2>conftest.er1
19876 grep -v '^
*+' conftest.er1 >conftest.err
19878 cat conftest.err >&5
19879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19880 (exit $ac_status); } && {
19881 test -z "$ac_c_werror_flag" ||
19882 test ! -s conftest.err
19883 } && test -s conftest.$ac_objext; then
19886 cat >>confdefs.h <<\_ACEOF
19887 #define HAVE_PROTOTYPES 1
19890 have_prototypes=yes
19893 echo "$as_me: failed program was:" >&5
19894 sed 's
/^
/|
/' conftest.$ac_ext >&5
19899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19900 { echo "$as_me:$LINENO: result: $have_prototypes" >&5
19901 echo "${ECHO_T}$have_prototypes" >&6; }
19904 { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
19905 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
19906 cat >conftest.$ac_ext <<_ACEOF
19909 cat confdefs.h >>conftest.$ac_ext
19910 cat >>conftest.$ac_ext <<_ACEOF
19911 /* end confdefs.h. */
19913 #include <stdarg.h>
19914 int foo(int x, ...) {
19918 va_arg(va, char *);
19919 va_arg(va, double);
19926 return foo(10, "", 3.14);
19931 rm -f conftest.$ac_objext
19932 if { (ac_try="$ac_compile"
19933 case "(($ac_try" in
19934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19935 *) ac_try_echo=$ac_try;;
19937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19938 (eval "$ac_compile") 2>conftest.er1
19940 grep -v '^
*+' conftest.er1 >conftest.err
19942 cat conftest.err >&5
19943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19944 (exit $ac_status); } && {
19945 test -z "$ac_c_werror_flag" ||
19946 test ! -s conftest.err
19947 } && test -s conftest.$ac_objext; then
19950 cat >>confdefs.h <<\_ACEOF
19951 #define HAVE_STDARG_PROTOTYPES 1
19957 echo "$as_me: failed program was:" >&5
19958 sed 's
/^
/|
/' conftest.$ac_ext >&5
19963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19964 { echo "$as_me:$LINENO: result: $works" >&5
19965 echo "${ECHO_T}$works" >&6; }
19967 # check for socketpair
19968 { echo "$as_me:$LINENO: checking for socketpair" >&5
19969 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
19970 cat >conftest.$ac_ext <<_ACEOF
19973 cat confdefs.h >>conftest.$ac_ext
19974 cat >>conftest.$ac_ext <<_ACEOF
19975 /* end confdefs.h. */
19977 #include <sys/types.h>
19978 #include <sys/socket.h>
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
20006 cat >>confdefs.h <<\_ACEOF
20007 #define HAVE_SOCKETPAIR 1
20010 { echo "$as_me:$LINENO: result: yes" >&5
20011 echo "${ECHO_T}yes" >&6; }
20013 echo "$as_me: failed program was:" >&5
20014 sed 's
/^
/|
/' conftest.$ac_ext >&5
20016 { echo "$as_me:$LINENO: result: no" >&5
20017 echo "${ECHO_T}no" >&6; }
20021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20023 # check if sockaddr has sa_len member
20024 { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
20025 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; }
20026 cat >conftest.$ac_ext <<_ACEOF
20029 cat confdefs.h >>conftest.$ac_ext
20030 cat >>conftest.$ac_ext <<_ACEOF
20031 /* end confdefs.h. */
20032 #include <sys/types.h>
20033 #include <sys/socket.h>
20043 rm -f conftest.$ac_objext
20044 if { (ac_try="$ac_compile"
20045 case "(($ac_try" in
20046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20047 *) ac_try_echo=$ac_try;;
20049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20050 (eval "$ac_compile") 2>conftest.er1
20052 grep -v '^
*+' conftest.er1 >conftest.err
20054 cat conftest.err >&5
20055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20056 (exit $ac_status); } && {
20057 test -z "$ac_c_werror_flag" ||
20058 test ! -s conftest.err
20059 } && test -s conftest.$ac_objext; then
20060 { echo "$as_me:$LINENO: result: yes" >&5
20061 echo "${ECHO_T}yes" >&6; }
20063 cat >>confdefs.h <<\_ACEOF
20064 #define HAVE_SOCKADDR_SA_LEN 1
20068 echo "$as_me: failed program was:" >&5
20069 sed 's
/^
/|
/' conftest.$ac_ext >&5
20071 { echo "$as_me:$LINENO: result: no" >&5
20072 echo "${ECHO_T}no" >&6; }
20075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20077 va_list_is_array=no
20078 { echo "$as_me:$LINENO: checking whether va_list is an array" >&5
20079 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
20080 cat >conftest.$ac_ext <<_ACEOF
20083 cat confdefs.h >>conftest.$ac_ext
20084 cat >>conftest.$ac_ext <<_ACEOF
20085 /* end confdefs.h. */
20087 #ifdef HAVE_STDARG_PROTOTYPES
20088 #include <stdarg.h>
20090 #include <varargs.h>
20096 va_list list1, list2; list1 = list2;
20101 rm -f conftest.$ac_objext
20102 if { (ac_try="$ac_compile"
20103 case "(($ac_try" in
20104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20105 *) ac_try_echo=$ac_try;;
20107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20108 (eval "$ac_compile") 2>conftest.er1
20110 grep -v '^
*+' conftest.er1 >conftest.err
20112 cat conftest.err >&5
20113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114 (exit $ac_status); } && {
20115 test -z "$ac_c_werror_flag" ||
20116 test ! -s conftest.err
20117 } && test -s conftest.$ac_objext; then
20120 echo "$as_me: failed program was:" >&5
20121 sed 's
/^
/|
/' conftest.$ac_ext >&5
20125 cat >>confdefs.h <<\_ACEOF
20126 #define VA_LIST_IS_ARRAY 1
20129 va_list_is_array=yes
20133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20134 { echo "$as_me:$LINENO: result: $va_list_is_array" >&5
20135 echo "${ECHO_T}$va_list_is_array" >&6; }
20137 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
20141 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
20142 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
20143 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
20144 echo $ECHO_N "(cached) $ECHO_C" >&6
20146 cat >conftest.$ac_ext <<_ACEOF
20149 cat confdefs.h >>conftest.$ac_ext
20150 cat >>conftest.$ac_ext <<_ACEOF
20151 /* end confdefs.h. */
20152 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
20153 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20154 #define gethostbyname_r innocuous_gethostbyname_r
20156 /* System header to define __stub macros and hopefully few prototypes,
20157 which can conflict with char gethostbyname_r (); below.
20158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20159 <limits.h> exists even on freestanding compilers. */
20162 # include <limits.h>
20164 # include <assert.h>
20167 #undef gethostbyname_r
20169 /* Override any GCC internal prototype to avoid an error.
20170 Use char because int might match the return type of a GCC
20171 builtin and then its argument prototype would still apply. */
20175 char gethostbyname_r ();
20176 /* The GNU C library defines this for functions which it implements
20177 to always fail with ENOSYS. Some functions are actually named
20178 something starting with __ and the normal name is an alias. */
20179 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
20186 return gethostbyname_r ();
20191 rm -f conftest.$ac_objext conftest$ac_exeext
20192 if { (ac_try="$ac_link"
20193 case "(($ac_try" in
20194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20195 *) ac_try_echo=$ac_try;;
20197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20198 (eval "$ac_link") 2>conftest.er1
20200 grep -v '^
*+' conftest.er1 >conftest.err
20202 cat conftest.err >&5
20203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20204 (exit $ac_status); } && {
20205 test -z "$ac_c_werror_flag" ||
20206 test ! -s conftest.err
20207 } && test -s conftest$ac_exeext &&
20208 $as_test_x conftest$ac_exeext; then
20209 ac_cv_func_gethostbyname_r=yes
20211 echo "$as_me: failed program was:" >&5
20212 sed 's
/^
/|
/' conftest.$ac_ext >&5
20214 ac_cv_func_gethostbyname_r=no
20217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20218 conftest$ac_exeext conftest.$ac_ext
20220 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
20221 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
20222 if test $ac_cv_func_gethostbyname_r = yes; then
20224 cat >>confdefs.h <<\_ACEOF
20225 #define HAVE_GETHOSTBYNAME_R 1
20228 { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
20229 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
20231 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
20232 cat >conftest.$ac_ext <<_ACEOF
20235 cat confdefs.h >>conftest.$ac_ext
20236 cat >>conftest.$ac_ext <<_ACEOF
20237 /* end confdefs.h. */
20239 # include <netdb.h>
20246 struct hostent *he, *res;
20251 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
20257 rm -f conftest.$ac_objext
20258 if { (ac_try="$ac_compile"
20259 case "(($ac_try" in
20260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20261 *) ac_try_echo=$ac_try;;
20263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20264 (eval "$ac_compile") 2>conftest.er1
20266 grep -v '^
*+' conftest.er1 >conftest.err
20268 cat conftest.err >&5
20269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270 (exit $ac_status); } && {
20271 test -z "$ac_c_werror_flag" ||
20272 test ! -s conftest.err
20273 } && test -s conftest.$ac_objext; then
20275 cat >>confdefs.h <<\_ACEOF
20276 #define HAVE_GETHOSTBYNAME_R 1
20280 cat >>confdefs.h <<\_ACEOF
20281 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
20284 { echo "$as_me:$LINENO: result: yes" >&5
20285 echo "${ECHO_T}yes" >&6; }
20288 echo "$as_me: failed program was:" >&5
20289 sed 's
/^
/|
/' conftest.$ac_ext >&5
20292 { echo "$as_me:$LINENO: result: no" >&5
20293 echo "${ECHO_T}no" >&6; }
20294 { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
20295 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
20296 cat >conftest.$ac_ext <<_ACEOF
20299 cat confdefs.h >>conftest.$ac_ext
20300 cat >>conftest.$ac_ext <<_ACEOF
20301 /* end confdefs.h. */
20303 # include <netdb.h>
20310 struct hostent *he;
20315 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
20321 rm -f conftest.$ac_objext
20322 if { (ac_try="$ac_compile"
20323 case "(($ac_try" in
20324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20325 *) ac_try_echo=$ac_try;;
20327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20328 (eval "$ac_compile") 2>conftest.er1
20330 grep -v '^
*+' conftest.er1 >conftest.err
20332 cat conftest.err >&5
20333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20334 (exit $ac_status); } && {
20335 test -z "$ac_c_werror_flag" ||
20336 test ! -s conftest.err
20337 } && test -s conftest.$ac_objext; then
20339 cat >>confdefs.h <<\_ACEOF
20340 #define HAVE_GETHOSTBYNAME_R 1
20344 cat >>confdefs.h <<\_ACEOF
20345 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
20348 { echo "$as_me:$LINENO: result: yes" >&5
20349 echo "${ECHO_T}yes" >&6; }
20352 echo "$as_me: failed program was:" >&5
20353 sed 's
/^
/|
/' conftest.$ac_ext >&5
20356 { echo "$as_me:$LINENO: result: no" >&5
20357 echo "${ECHO_T}no" >&6; }
20358 { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
20359 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
20360 cat >conftest.$ac_ext <<_ACEOF
20363 cat confdefs.h >>conftest.$ac_ext
20364 cat >>conftest.$ac_ext <<_ACEOF
20365 /* end confdefs.h. */
20367 # include <netdb.h>
20374 struct hostent *he;
20375 struct hostent_data data;
20377 (void) gethostbyname_r(name, he, &data);
20383 rm -f conftest.$ac_objext
20384 if { (ac_try="$ac_compile"
20385 case "(($ac_try" in
20386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20387 *) ac_try_echo=$ac_try;;
20389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20390 (eval "$ac_compile") 2>conftest.er1
20392 grep -v '^
*+' conftest.er1 >conftest.err
20394 cat conftest.err >&5
20395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20396 (exit $ac_status); } && {
20397 test -z "$ac_c_werror_flag" ||
20398 test ! -s conftest.err
20399 } && test -s conftest.$ac_objext; then
20401 cat >>confdefs.h <<\_ACEOF
20402 #define HAVE_GETHOSTBYNAME_R 1
20406 cat >>confdefs.h <<\_ACEOF
20407 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
20410 { echo "$as_me:$LINENO: result: yes" >&5
20411 echo "${ECHO_T}yes" >&6; }
20414 echo "$as_me: failed program was:" >&5
20415 sed 's
/^
/|
/' conftest.$ac_ext >&5
20418 { echo "$as_me:$LINENO: result: no" >&5
20419 echo "${ECHO_T}no" >&6; }
20423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20437 for ac_func in gethostbyname
20439 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20440 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20441 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20442 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20443 echo $ECHO_N "(cached) $ECHO_C" >&6
20445 cat >conftest.$ac_ext <<_ACEOF
20448 cat confdefs.h >>conftest.$ac_ext
20449 cat >>conftest.$ac_ext <<_ACEOF
20450 /* end confdefs.h. */
20451 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20452 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20453 #define $ac_func innocuous_$ac_func
20455 /* System header to define __stub macros and hopefully few prototypes,
20456 which can conflict with char $ac_func (); below.
20457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20458 <limits.h> exists even on freestanding compilers. */
20461 # include <limits.h>
20463 # include <assert.h>
20468 /* Override any GCC internal prototype to avoid an error.
20469 Use char because int might match the return type of a GCC
20470 builtin and then its argument prototype would still apply. */
20475 /* The GNU C library defines this for functions which it implements
20476 to always fail with ENOSYS. Some functions are actually named
20477 something starting with __ and the normal name is an alias. */
20478 #if defined __stub_$ac_func || defined __stub___$ac_func
20485 return $ac_func ();
20490 rm -f conftest.$ac_objext conftest$ac_exeext
20491 if { (ac_try="$ac_link"
20492 case "(($ac_try" in
20493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20494 *) ac_try_echo=$ac_try;;
20496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20497 (eval "$ac_link") 2>conftest.er1
20499 grep -v '^
*+' conftest.er1 >conftest.err
20501 cat conftest.err >&5
20502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20503 (exit $ac_status); } && {
20504 test -z "$ac_c_werror_flag" ||
20505 test ! -s conftest.err
20506 } && test -s conftest$ac_exeext &&
20507 $as_test_x conftest$ac_exeext; then
20508 eval "$as_ac_var=yes"
20510 echo "$as_me: failed program was:" >&5
20511 sed 's
/^
/|
/' conftest.$ac_ext >&5
20513 eval "$as_ac_var=no"
20516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20517 conftest$ac_exeext conftest.$ac_ext
20519 ac_res=`eval echo '${'$as_ac_var'}'`
20520 { echo "$as_me:$LINENO: result: $ac_res" >&5
20521 echo "${ECHO_T}$ac_res" >&6; }
20522 if test `eval echo '${'$as_ac_var'}'` = yes; then
20523 cat >>confdefs.h <<_ACEOF
20524 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20539 # checks for system services
20542 # Linux requires this for correct f.p. operations
20543 { echo "$as_me:$LINENO: checking for __fpu_control" >&5
20544 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
20545 if test "${ac_cv_func___fpu_control+set}" = set; then
20546 echo $ECHO_N "(cached) $ECHO_C" >&6
20548 cat >conftest.$ac_ext <<_ACEOF
20551 cat confdefs.h >>conftest.$ac_ext
20552 cat >>conftest.$ac_ext <<_ACEOF
20553 /* end confdefs.h. */
20554 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
20555 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20556 #define __fpu_control innocuous___fpu_control
20558 /* System header to define __stub macros and hopefully few prototypes,
20559 which can conflict with char __fpu_control (); below.
20560 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20561 <limits.h> exists even on freestanding compilers. */
20564 # include <limits.h>
20566 # include <assert.h>
20569 #undef __fpu_control
20571 /* Override any GCC internal prototype to avoid an error.
20572 Use char because int might match the return type of a GCC
20573 builtin and then its argument prototype would still apply. */
20577 char __fpu_control ();
20578 /* The GNU C library defines this for functions which it implements
20579 to always fail with ENOSYS. Some functions are actually named
20580 something starting with __ and the normal name is an alias. */
20581 #if defined __stub___fpu_control || defined __stub_____fpu_control
20588 return __fpu_control ();
20593 rm -f conftest.$ac_objext conftest$ac_exeext
20594 if { (ac_try="$ac_link"
20595 case "(($ac_try" in
20596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20597 *) ac_try_echo=$ac_try;;
20599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20600 (eval "$ac_link") 2>conftest.er1
20602 grep -v '^
*+' conftest.er1 >conftest.err
20604 cat conftest.err >&5
20605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20606 (exit $ac_status); } && {
20607 test -z "$ac_c_werror_flag" ||
20608 test ! -s conftest.err
20609 } && test -s conftest$ac_exeext &&
20610 $as_test_x conftest$ac_exeext; then
20611 ac_cv_func___fpu_control=yes
20613 echo "$as_me: failed program was:" >&5
20614 sed 's
/^
/|
/' conftest.$ac_ext >&5
20616 ac_cv_func___fpu_control=no
20619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20620 conftest$ac_exeext conftest.$ac_ext
20622 { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
20623 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
20624 if test $ac_cv_func___fpu_control = yes; then
20628 { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
20629 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
20630 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
20631 echo $ECHO_N "(cached) $ECHO_C" >&6
20633 ac_check_lib_save_LIBS=$LIBS
20634 LIBS="-lieee $LIBS"
20635 cat >conftest.$ac_ext <<_ACEOF
20638 cat confdefs.h >>conftest.$ac_ext
20639 cat >>conftest.$ac_ext <<_ACEOF
20640 /* end confdefs.h. */
20642 /* Override any GCC internal prototype to avoid an error.
20643 Use char because int might match the return type of a GCC
20644 builtin and then its argument prototype would still apply. */
20648 char __fpu_control ();
20652 return __fpu_control ();
20657 rm -f conftest.$ac_objext conftest$ac_exeext
20658 if { (ac_try="$ac_link"
20659 case "(($ac_try" in
20660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20661 *) ac_try_echo=$ac_try;;
20663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20664 (eval "$ac_link") 2>conftest.er1
20666 grep -v '^
*+' conftest.er1 >conftest.err
20668 cat conftest.err >&5
20669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20670 (exit $ac_status); } && {
20671 test -z "$ac_c_werror_flag" ||
20672 test ! -s conftest.err
20673 } && test -s conftest$ac_exeext &&
20674 $as_test_x conftest$ac_exeext; then
20675 ac_cv_lib_ieee___fpu_control=yes
20677 echo "$as_me: failed program was:" >&5
20678 sed 's
/^
/|
/' conftest.$ac_ext >&5
20680 ac_cv_lib_ieee___fpu_control=no
20683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20684 conftest$ac_exeext conftest.$ac_ext
20685 LIBS=$ac_check_lib_save_LIBS
20687 { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
20688 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
20689 if test $ac_cv_lib_ieee___fpu_control = yes; then
20690 cat >>confdefs.h <<_ACEOF
20691 #define HAVE_LIBIEEE 1
20694 LIBS="-lieee $LIBS"
20702 # Check for --with-fpectl
20703 { echo "$as_me:$LINENO: checking for --with-fpectl" >&5
20704 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
20706 # Check whether --with-fpectl was given.
20707 if test "${with_fpectl+set}" = set; then
20708 withval=$with_fpectl;
20709 if test "$withval" != no
20712 cat >>confdefs.h <<\_ACEOF
20713 #define WANT_SIGFPE_HANDLER 1
20716 { echo "$as_me:$LINENO: result: yes" >&5
20717 echo "${ECHO_T}yes" >&6; }
20718 else { echo "$as_me:$LINENO: result: no" >&5
20719 echo "${ECHO_T}no" >&6; }
20722 { echo "$as_me:$LINENO: result: no" >&5
20723 echo "${ECHO_T}no" >&6; }
20727 # check for --with-libm=...
20729 case $ac_sys_system in
20734 { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
20735 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
20737 # Check whether --with-libm was given.
20738 if test "${with_libm+set}" = set; then
20739 withval=$with_libm;
20740 if test "$withval" = no
20742 { echo "$as_me:$LINENO: result: force LIBM empty" >&5
20743 echo "${ECHO_T}force LIBM empty" >&6; }
20744 elif test "$withval" != yes
20746 { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
20747 echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
20748 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
20749 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
20750 { (exit 1); exit 1; }; }
20753 { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
20754 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
20758 # check for --with-libc=...
20760 { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
20761 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
20763 # Check whether --with-libc was given.
20764 if test "${with_libc+set}" = set; then
20765 withval=$with_libc;
20766 if test "$withval" = no
20768 { echo "$as_me:$LINENO: result: force LIBC empty" >&5
20769 echo "${ECHO_T}force LIBC empty" >&6; }
20770 elif test "$withval" != yes
20772 { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
20773 echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
20774 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
20775 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
20776 { (exit 1); exit 1; }; }
20779 { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
20780 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
20784 # ************************************
20785 # * Check for mathematical functions *
20786 # ************************************
20790 for ac_func in hypot
20792 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20793 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20794 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20795 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20796 echo $ECHO_N "(cached) $ECHO_C" >&6
20798 cat >conftest.$ac_ext <<_ACEOF
20801 cat confdefs.h >>conftest.$ac_ext
20802 cat >>conftest.$ac_ext <<_ACEOF
20803 /* end confdefs.h. */
20804 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20805 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20806 #define $ac_func innocuous_$ac_func
20808 /* System header to define __stub macros and hopefully few prototypes,
20809 which can conflict with char $ac_func (); below.
20810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20811 <limits.h> exists even on freestanding compilers. */
20814 # include <limits.h>
20816 # include <assert.h>
20821 /* Override any GCC internal prototype to avoid an error.
20822 Use char because int might match the return type of a GCC
20823 builtin and then its argument prototype would still apply. */
20828 /* The GNU C library defines this for functions which it implements
20829 to always fail with ENOSYS. Some functions are actually named
20830 something starting with __ and the normal name is an alias. */
20831 #if defined __stub_$ac_func || defined __stub___$ac_func
20838 return $ac_func ();
20843 rm -f conftest.$ac_objext conftest$ac_exeext
20844 if { (ac_try="$ac_link"
20845 case "(($ac_try" in
20846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20847 *) ac_try_echo=$ac_try;;
20849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20850 (eval "$ac_link") 2>conftest.er1
20852 grep -v '^
*+' conftest.er1 >conftest.err
20854 cat conftest.err >&5
20855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20856 (exit $ac_status); } && {
20857 test -z "$ac_c_werror_flag" ||
20858 test ! -s conftest.err
20859 } && test -s conftest$ac_exeext &&
20860 $as_test_x conftest$ac_exeext; then
20861 eval "$as_ac_var=yes"
20863 echo "$as_me: failed program was:" >&5
20864 sed 's
/^
/|
/' conftest.$ac_ext >&5
20866 eval "$as_ac_var=no"
20869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20870 conftest$ac_exeext conftest.$ac_ext
20872 ac_res=`eval echo '${'$as_ac_var'}'`
20873 { echo "$as_me:$LINENO: result: $ac_res" >&5
20874 echo "${ECHO_T}$ac_res" >&6; }
20875 if test `eval echo '${'$as_ac_var'}'` = yes; then
20876 cat >>confdefs.h <<_ACEOF
20877 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20881 case " $LIBOBJS " in
20882 *" $ac_func.$ac_objext "* ) ;;
20883 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20901 for ac_func in acosh asinh atanh copysign expm1 finite isinf isnan log1p
20903 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20904 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20905 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20906 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20907 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. */
20915 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20916 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20917 #define $ac_func innocuous_$ac_func
20919 /* System header to define __stub macros and hopefully few prototypes,
20920 which can conflict with char $ac_func (); below.
20921 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20922 <limits.h> exists even on freestanding compilers. */
20925 # include <limits.h>
20927 # include <assert.h>
20932 /* Override any GCC internal prototype to avoid an error.
20933 Use char because int might match the return type of a GCC
20934 builtin and then its argument prototype would still apply. */
20939 /* The GNU C library defines this for functions which it implements
20940 to always fail with ENOSYS. Some functions are actually named
20941 something starting with __ and the normal name is an alias. */
20942 #if defined __stub_$ac_func || defined __stub___$ac_func
20949 return $ac_func ();
20954 rm -f conftest.$ac_objext conftest$ac_exeext
20955 if { (ac_try="$ac_link"
20956 case "(($ac_try" in
20957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20958 *) ac_try_echo=$ac_try;;
20960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20961 (eval "$ac_link") 2>conftest.er1
20963 grep -v '^
*+' conftest.er1 >conftest.err
20965 cat conftest.err >&5
20966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20967 (exit $ac_status); } && {
20968 test -z "$ac_c_werror_flag" ||
20969 test ! -s conftest.err
20970 } && test -s conftest$ac_exeext &&
20971 $as_test_x conftest$ac_exeext; then
20972 eval "$as_ac_var=yes"
20974 echo "$as_me: failed program was:" >&5
20975 sed 's
/^
/|
/' conftest.$ac_ext >&5
20977 eval "$as_ac_var=no"
20980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20981 conftest$ac_exeext conftest.$ac_ext
20983 ac_res=`eval echo '${'$as_ac_var'}'`
20984 { echo "$as_me:$LINENO: result: $ac_res" >&5
20985 echo "${ECHO_T}$ac_res" >&6; }
20986 if test `eval echo '${'$as_ac_var'}'` = yes; then
20987 cat >>confdefs.h <<_ACEOF
20988 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20997 # check for wchar.h
20998 if test "${ac_cv_header_wchar_h+set}" = set; then
20999 { echo "$as_me:$LINENO: checking for wchar.h" >&5
21000 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
21001 if test "${ac_cv_header_wchar_h+set}" = set; then
21002 echo $ECHO_N "(cached) $ECHO_C" >&6
21004 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
21005 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
21007 # Is the header compilable?
21008 { echo "$as_me:$LINENO: checking wchar.h usability" >&5
21009 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; }
21010 cat >conftest.$ac_ext <<_ACEOF
21013 cat confdefs.h >>conftest.$ac_ext
21014 cat >>conftest.$ac_ext <<_ACEOF
21015 /* end confdefs.h. */
21016 $ac_includes_default
21019 rm -f conftest.$ac_objext
21020 if { (ac_try="$ac_compile"
21021 case "(($ac_try" in
21022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21023 *) ac_try_echo=$ac_try;;
21025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21026 (eval "$ac_compile") 2>conftest.er1
21028 grep -v '^
*+' conftest.er1 >conftest.err
21030 cat conftest.err >&5
21031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21032 (exit $ac_status); } && {
21033 test -z "$ac_c_werror_flag" ||
21034 test ! -s conftest.err
21035 } && test -s conftest.$ac_objext; then
21036 ac_header_compiler=yes
21038 echo "$as_me: failed program was:" >&5
21039 sed 's
/^
/|
/' conftest.$ac_ext >&5
21041 ac_header_compiler=no
21044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21045 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21046 echo "${ECHO_T}$ac_header_compiler" >&6; }
21048 # Is the header present?
21049 { echo "$as_me:$LINENO: checking wchar.h presence" >&5
21050 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; }
21051 cat >conftest.$ac_ext <<_ACEOF
21054 cat confdefs.h >>conftest.$ac_ext
21055 cat >>conftest.$ac_ext <<_ACEOF
21056 /* end confdefs.h. */
21059 if { (ac_try="$ac_cpp conftest.$ac_ext"
21060 case "(($ac_try" in
21061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21062 *) ac_try_echo=$ac_try;;
21064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21065 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21067 grep -v '^
*+' conftest.er1 >conftest.err
21069 cat conftest.err >&5
21070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21071 (exit $ac_status); } >/dev/null && {
21072 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21073 test ! -s conftest.err
21075 ac_header_preproc=yes
21077 echo "$as_me: failed program was:" >&5
21078 sed 's
/^
/|
/' conftest.$ac_ext >&5
21080 ac_header_preproc=no
21083 rm -f conftest.err conftest.$ac_ext
21084 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21085 echo "${ECHO_T}$ac_header_preproc" >&6; }
21087 # So? What about this header?
21088 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21090 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
21091 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21092 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result
" >&5
21093 echo "$as_me: WARNING
: wchar.h
: proceeding with the compiler
's result" >&2;}
21094 ac_header_preproc=yes
21097 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
21098 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
21099 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
21100 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
21101 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
21102 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
21103 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
21104 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
21105 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result
" >&5
21106 echo "$as_me: WARNING
: wchar.h
: proceeding with the preprocessor
's result" >&2;}
21107 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
21108 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
21110 ## ------------------------------------------------ ##
21111 ## Report this to http://www.python.org/python-bugs ##
21112 ## ------------------------------------------------ ##
21114 ) | sed "s/^/$as_me: WARNING: /" >&2
21117 { echo "$as_me:$LINENO: checking for wchar.h" >&5
21118 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
21119 if test "${ac_cv_header_wchar_h+set}" = set; then
21120 echo $ECHO_N "(cached) $ECHO_C" >&6
21122 ac_cv_header_wchar_h=$ac_header_preproc
21124 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
21125 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
21128 if test $ac_cv_header_wchar_h = yes; then
21131 cat >>confdefs.h <<\_ACEOF
21132 #define HAVE_WCHAR_H 1
21144 # determine wchar_t size
21145 if test "$wchar_h" = yes
21147 { echo "$as_me:$LINENO: checking for wchar_t" >&5
21148 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
21149 if test "${ac_cv_type_wchar_t+set}" = set; then
21150 echo $ECHO_N "(cached) $ECHO_C" >&6
21152 cat >conftest.$ac_ext <<_ACEOF
21155 cat confdefs.h >>conftest.$ac_ext
21156 cat >>conftest.$ac_ext <<_ACEOF
21157 /* end confdefs.h. */
21160 typedef wchar_t ac__type_new_;
21164 if ((ac__type_new_ *) 0)
21166 if (sizeof (ac__type_new_))
21172 rm -f conftest.$ac_objext
21173 if { (ac_try="$ac_compile"
21174 case "(($ac_try" in
21175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21176 *) ac_try_echo=$ac_try;;
21178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21179 (eval "$ac_compile") 2>conftest.er1
21181 grep -v '^
*+' conftest.er1 >conftest.err
21183 cat conftest.err >&5
21184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21185 (exit $ac_status); } && {
21186 test -z "$ac_c_werror_flag" ||
21187 test ! -s conftest.err
21188 } && test -s conftest.$ac_objext; then
21189 ac_cv_type_wchar_t=yes
21191 echo "$as_me: failed program was:" >&5
21192 sed 's
/^
/|
/' conftest.$ac_ext >&5
21194 ac_cv_type_wchar_t=no
21197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21199 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
21200 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
21202 # The cast to long int works around a bug in the HP C Compiler
21203 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21204 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21205 # This bug is HP SR number 8606223364.
21206 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
21207 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
21208 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
21209 echo $ECHO_N "(cached) $ECHO_C" >&6
21211 if test "$cross_compiling" = yes; then
21212 # Depending upon the size, compute the lo and hi bounds.
21213 cat >conftest.
$ac_ext <<_ACEOF
21216 cat confdefs.h
>>conftest.
$ac_ext
21217 cat >>conftest.
$ac_ext <<_ACEOF
21218 /* end confdefs.h. */
21221 typedef wchar_t ac__type_sizeof_;
21225 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21232 rm -f conftest.
$ac_objext
21233 if { (ac_try
="$ac_compile"
21234 case "(($ac_try" in
21235 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21236 *) ac_try_echo=$ac_try;;
21238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21239 (eval "$ac_compile") 2>conftest.er1
21241 grep -v '^ *+' conftest.er1 >conftest.err
21243 cat conftest.err >&5
21244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21245 (exit $ac_status); } && {
21246 test -z "$ac_c_werror_flag" ||
21247 test ! -s conftest.err
21248 } && test -s conftest.$ac_objext; then
21251 cat >conftest.$ac_ext <<_ACEOF
21254 cat confdefs.h >>conftest.$ac_ext
21255 cat >>conftest.$ac_ext <<_ACEOF
21256 /* end confdefs.h. */
21259 typedef wchar_t ac__type_sizeof_;
21263 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21270 rm -f conftest.$ac_objext
21271 if { (ac_try="$ac_compile"
21272 case "(($ac_try" in
21273 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21274 *) ac_try_echo
=$ac_try;;
21276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21277 (eval "$ac_compile") 2>conftest.er1
21279 grep -v '^ *+' conftest.er1
>conftest.err
21281 cat conftest.err
>&5
21282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21283 (exit $ac_status); } && {
21284 test -z "$ac_c_werror_flag" ||
21285 test ! -s conftest.err
21286 } && test -s conftest.
$ac_objext; then
21287 ac_hi
=$ac_mid; break
21289 echo "$as_me: failed program was:" >&5
21290 sed 's/^/| /' conftest.
$ac_ext >&5
21292 ac_lo
=`expr $ac_mid + 1`
21293 if test $ac_lo -le $ac_mid; then
21297 ac_mid
=`expr 2 '*' $ac_mid + 1`
21300 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21303 echo "$as_me: failed program was:" >&5
21304 sed 's/^/| /' conftest.
$ac_ext >&5
21306 cat >conftest.
$ac_ext <<_ACEOF
21309 cat confdefs.h
>>conftest.
$ac_ext
21310 cat >>conftest.
$ac_ext <<_ACEOF
21311 /* end confdefs.h. */
21314 typedef wchar_t ac__type_sizeof_;
21318 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21325 rm -f conftest.
$ac_objext
21326 if { (ac_try
="$ac_compile"
21327 case "(($ac_try" in
21328 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21329 *) ac_try_echo=$ac_try;;
21331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21332 (eval "$ac_compile") 2>conftest.er1
21334 grep -v '^ *+' conftest.er1 >conftest.err
21336 cat conftest.err >&5
21337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21338 (exit $ac_status); } && {
21339 test -z "$ac_c_werror_flag" ||
21340 test ! -s conftest.err
21341 } && test -s conftest.$ac_objext; then
21344 cat >conftest.$ac_ext <<_ACEOF
21347 cat confdefs.h >>conftest.$ac_ext
21348 cat >>conftest.$ac_ext <<_ACEOF
21349 /* end confdefs.h. */
21352 typedef wchar_t ac__type_sizeof_;
21356 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21363 rm -f conftest.$ac_objext
21364 if { (ac_try="$ac_compile"
21365 case "(($ac_try" in
21366 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21367 *) ac_try_echo
=$ac_try;;
21369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21370 (eval "$ac_compile") 2>conftest.er1
21372 grep -v '^ *+' conftest.er1
>conftest.err
21374 cat conftest.err
>&5
21375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21376 (exit $ac_status); } && {
21377 test -z "$ac_c_werror_flag" ||
21378 test ! -s conftest.err
21379 } && test -s conftest.
$ac_objext; then
21380 ac_lo
=$ac_mid; break
21382 echo "$as_me: failed program was:" >&5
21383 sed 's/^/| /' conftest.
$ac_ext >&5
21385 ac_hi
=`expr '(' $ac_mid ')' - 1`
21386 if test $ac_mid -le $ac_hi; then
21390 ac_mid
=`expr 2 '*' $ac_mid`
21393 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21396 echo "$as_me: failed program was:" >&5
21397 sed 's/^/| /' conftest.
$ac_ext >&5
21402 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21405 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21406 # Binary search between lo and hi bounds.
21407 while test "x$ac_lo" != "x$ac_hi"; do
21408 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21409 cat >conftest.
$ac_ext <<_ACEOF
21412 cat confdefs.h
>>conftest.
$ac_ext
21413 cat >>conftest.
$ac_ext <<_ACEOF
21414 /* end confdefs.h. */
21417 typedef wchar_t ac__type_sizeof_;
21421 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21428 rm -f conftest.
$ac_objext
21429 if { (ac_try
="$ac_compile"
21430 case "(($ac_try" in
21431 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21432 *) ac_try_echo=$ac_try;;
21434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21435 (eval "$ac_compile") 2>conftest.er1
21437 grep -v '^ *+' conftest.er1 >conftest.err
21439 cat conftest.err >&5
21440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21441 (exit $ac_status); } && {
21442 test -z "$ac_c_werror_flag" ||
21443 test ! -s conftest.err
21444 } && test -s conftest.$ac_objext; then
21447 echo "$as_me: failed program was:" >&5
21448 sed 's/^/| /' conftest.$ac_ext >&5
21450 ac_lo=`expr '(' $ac_mid ')' + 1`
21453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21456 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
21457 '') if test "$ac_cv_type_wchar_t" = yes; then
21458 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
21459 See \`config.log
' for more details." >&5
21460 echo "$as_me: error: cannot compute sizeof (wchar_t)
21461 See \`config.log' for more details.
" >&2;}
21462 { (exit 77); exit 77; }; }
21464 ac_cv_sizeof_wchar_t=0
21468 cat >conftest.$ac_ext <<_ACEOF
21471 cat confdefs.h >>conftest.$ac_ext
21472 cat >>conftest.$ac_ext <<_ACEOF
21473 /* end confdefs.h. */
21476 typedef wchar_t ac__type_sizeof_;
21477 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21478 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21480 #include <stdlib.h>
21485 FILE *f = fopen ("conftest.val
", "w
");
21488 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21490 long int i = longval ();
21491 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21493 fprintf (f, "%ld
\n", i);
21497 unsigned long int i = ulongval ();
21498 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21500 fprintf (f, "%lu
\n", i);
21502 return ferror (f) || fclose (f) != 0;
21508 rm -f conftest$ac_exeext
21509 if { (ac_try="$ac_link"
21510 case "(($ac_try" in
21511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21512 *) ac_try_echo=$ac_try;;
21514 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21515 (eval "$ac_link") 2>&5
21517 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21518 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21519 { (case "(($ac_try" in
21520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21521 *) ac_try_echo=$ac_try;;
21523 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21524 (eval "$ac_try") 2>&5
21526 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21527 (exit $ac_status); }; }; then
21528 ac_cv_sizeof_wchar_t=`cat conftest.val`
21530 echo "$as_me: program exited with status
$ac_status" >&5
21531 echo "$as_me: failed program was
:" >&5
21532 sed 's/^/| /' conftest.$ac_ext >&5
21534 ( exit $ac_status )
21535 if test "$ac_cv_type_wchar_t" = yes; then
21536 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(wchar_t
)
21537 See \
`config.log' for more details." >&5
21538 echo "$as_me: error: cannot compute sizeof (wchar_t)
21539 See \`config.log
' for more details." >&2;}
21540 { (exit 77); exit 77; }; }
21542 ac_cv_sizeof_wchar_t=0
21545 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21549 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
21550 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
21554 cat >>confdefs.h <<_ACEOF
21555 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
21561 { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
21562 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6; }
21564 cat >conftest.$ac_ext <<_ACEOF
21567 cat confdefs.h >>conftest.$ac_ext
21568 cat >>conftest.$ac_ext <<_ACEOF
21569 /* end confdefs.h. */
21572 #if TCL_UTF_MAX != 6
21573 # error "NOT UCS4_TCL"
21583 rm -f conftest.$ac_objext
21584 if { (ac_try="$ac_compile"
21585 case "(($ac_try" in
21586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21587 *) ac_try_echo=$ac_try;;
21589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21590 (eval "$ac_compile") 2>conftest.er1
21592 grep -v '^
*+' conftest.er1 >conftest.err
21594 cat conftest.err >&5
21595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21596 (exit $ac_status); } && {
21597 test -z "$ac_c_werror_flag" ||
21598 test ! -s conftest.err
21599 } && test -s conftest.$ac_objext; then
21602 cat >>confdefs.h <<\_ACEOF
21603 #define HAVE_UCS4_TCL 1
21609 echo "$as_me: failed program was:" >&5
21610 sed 's
/^
/|
/' conftest.$ac_ext >&5
21615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21616 { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
21617 echo "${ECHO_T}$have_ucs4_tcl" >&6; }
21619 # check whether wchar_t is signed or not
21620 if test "$wchar_h" = yes
21622 # check whether wchar_t is signed or not
21623 { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
21624 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6; }
21625 if test "${ac_cv_wchar_t_signed+set}" = set; then
21626 echo $ECHO_N "(cached) $ECHO_C" >&6
21629 if test "$cross_compiling" = yes; then
21630 ac_cv_wchar_t_signed=yes
21632 cat >conftest.$ac_ext <<_ACEOF
21635 cat confdefs.h >>conftest.$ac_ext
21636 cat >>conftest.$ac_ext <<_ACEOF
21637 /* end confdefs.h. */
21642 /* Success: exit code 0 */
21643 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
21647 rm -f conftest$ac_exeext
21648 if { (ac_try="$ac_link"
21649 case "(($ac_try" in
21650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21651 *) ac_try_echo=$ac_try;;
21653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21654 (eval "$ac_link") 2>&5
21656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21657 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
21658 { (case "(($ac_try" in
21659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21660 *) ac_try_echo=$ac_try;;
21662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21663 (eval "$ac_try") 2>&5
21665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666 (exit $ac_status); }; }; then
21667 ac_cv_wchar_t_signed=yes
21669 echo "$as_me: program exited with status $ac_status" >&5
21670 echo "$as_me: failed program was:" >&5
21671 sed 's
/^
/|
/' conftest.$ac_ext >&5
21673 ( exit $ac_status )
21674 ac_cv_wchar_t_signed=no
21676 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21682 { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
21683 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
21686 { echo "$as_me:$LINENO: checking what type to use for unicode" >&5
21687 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6; }
21688 # Check whether --enable-unicode was given.
21689 if test "${enable_unicode+set}" = set; then
21690 enableval=$enable_unicode;
21696 if test $enable_unicode = yes
21698 # Without any arguments, Py_UNICODE defaults to two-byte mode
21699 case "$have_ucs4_tcl" in
21700 yes) enable_unicode="ucs4"
21702 *) enable_unicode="ucs2"
21709 case "$enable_unicode" in
21710 ucs2) unicode_size="2"
21711 cat >>confdefs.h <<\_ACEOF
21712 #define Py_UNICODE_SIZE 2
21716 ucs4) unicode_size="4"
21717 cat >>confdefs.h <<\_ACEOF
21718 #define Py_UNICODE_SIZE 4
21728 if test "$enable_unicode" = "no"
21731 { echo "$as_me:$LINENO: result: not used" >&5
21732 echo "${ECHO_T}not used" >&6; }
21734 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
21736 cat >>confdefs.h <<\_ACEOF
21737 #define Py_USING_UNICODE 1
21741 # wchar_t is only usable if it maps to an unsigned type
21742 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
21743 -a "$ac_cv_wchar_t_signed" = "no"
21745 PY_UNICODE_TYPE="wchar_t"
21747 cat >>confdefs.h <<\_ACEOF
21748 #define HAVE_USABLE_WCHAR_T 1
21751 cat >>confdefs.h <<\_ACEOF
21752 #define PY_UNICODE_TYPE wchar_t
21755 elif test "$ac_cv_sizeof_short" = "$unicode_size"
21757 PY_UNICODE_TYPE="unsigned short"
21758 cat >>confdefs.h <<\_ACEOF
21759 #define PY_UNICODE_TYPE unsigned short
21762 elif test "$ac_cv_sizeof_long" = "$unicode_size"
21764 PY_UNICODE_TYPE="unsigned long"
21765 cat >>confdefs.h <<\_ACEOF
21766 #define PY_UNICODE_TYPE unsigned long
21770 PY_UNICODE_TYPE="no type found"
21772 { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
21773 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
21776 # check for endianness
21777 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21778 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
21779 if test "${ac_cv_c_bigendian+set}" = set; then
21780 echo $ECHO_N "(cached) $ECHO_C" >&6
21782 # See if sys/param.h defines the BYTE_ORDER macro.
21783 cat >conftest.$ac_ext <<_ACEOF
21786 cat confdefs.h >>conftest.$ac_ext
21787 cat >>conftest.$ac_ext <<_ACEOF
21788 /* end confdefs.h. */
21789 #include <sys/types.h>
21790 #include <sys/param.h>
21795 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
21796 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
21797 bogus endian macros
21804 rm -f conftest.$ac_objext
21805 if { (ac_try="$ac_compile"
21806 case "(($ac_try" in
21807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21808 *) ac_try_echo=$ac_try;;
21810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21811 (eval "$ac_compile") 2>conftest.er1
21813 grep -v '^
*+' conftest.er1 >conftest.err
21815 cat conftest.err >&5
21816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21817 (exit $ac_status); } && {
21818 test -z "$ac_c_werror_flag" ||
21819 test ! -s conftest.err
21820 } && test -s conftest.$ac_objext; then
21821 # It does; now see whether it defined to BIG_ENDIAN or not.
21822 cat >conftest.$ac_ext <<_ACEOF
21825 cat confdefs.h >>conftest.$ac_ext
21826 cat >>conftest.$ac_ext <<_ACEOF
21827 /* end confdefs.h. */
21828 #include <sys/types.h>
21829 #include <sys/param.h>
21834 #if BYTE_ORDER != BIG_ENDIAN
21842 rm -f conftest.$ac_objext
21843 if { (ac_try="$ac_compile"
21844 case "(($ac_try" in
21845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21846 *) ac_try_echo=$ac_try;;
21848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21849 (eval "$ac_compile") 2>conftest.er1
21851 grep -v '^
*+' conftest.er1 >conftest.err
21853 cat conftest.err >&5
21854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21855 (exit $ac_status); } && {
21856 test -z "$ac_c_werror_flag" ||
21857 test ! -s conftest.err
21858 } && test -s conftest.$ac_objext; then
21859 ac_cv_c_bigendian=yes
21861 echo "$as_me: failed program was:" >&5
21862 sed 's
/^
/|
/' conftest.$ac_ext >&5
21864 ac_cv_c_bigendian=no
21867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21869 echo "$as_me: failed program was:" >&5
21870 sed 's
/^
/|
/' conftest.$ac_ext >&5
21872 # It does not; compile a test program.
21873 if test "$cross_compiling" = yes; then
21874 # try to guess the endianness by grepping values into an object file
21875 ac_cv_c_bigendian=unknown
21876 cat >conftest.$ac_ext <<_ACEOF
21879 cat confdefs.h >>conftest.$ac_ext
21880 cat >>conftest.$ac_ext <<_ACEOF
21881 /* end confdefs.h. */
21882 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21883 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21884 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
21885 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21886 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21887 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
21891 _ascii (); _ebcdic ();
21896 rm -f conftest.$ac_objext
21897 if { (ac_try="$ac_compile"
21898 case "(($ac_try" in
21899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21900 *) ac_try_echo=$ac_try;;
21902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21903 (eval "$ac_compile") 2>conftest.er1
21905 grep -v '^
*+' conftest.er1 >conftest.err
21907 cat conftest.err >&5
21908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21909 (exit $ac_status); } && {
21910 test -z "$ac_c_werror_flag" ||
21911 test ! -s conftest.err
21912 } && test -s conftest.$ac_objext; then
21913 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
21914 ac_cv_c_bigendian=yes
21916 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21917 if test "$ac_cv_c_bigendian" = unknown; then
21918 ac_cv_c_bigendian=no
21920 # finding both strings is unlikely to happen, but who knows?
21921 ac_cv_c_bigendian=unknown
21925 echo "$as_me: failed program was:" >&5
21926 sed 's
/^
/|
/' conftest.$ac_ext >&5
21931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21933 cat >conftest.$ac_ext <<_ACEOF
21936 cat confdefs.h >>conftest.$ac_ext
21937 cat >>conftest.$ac_ext <<_ACEOF
21938 /* end confdefs.h. */
21939 $ac_includes_default
21944 /* Are we little or big endian? From Harbison&Steele. */
21948 char c[sizeof (long int)];
21951 return u.c[sizeof (long int) - 1] == 1;
21957 rm -f conftest$ac_exeext
21958 if { (ac_try="$ac_link"
21959 case "(($ac_try" in
21960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21961 *) ac_try_echo=$ac_try;;
21963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21964 (eval "$ac_link") 2>&5
21966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21967 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
21968 { (case "(($ac_try" in
21969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21970 *) ac_try_echo=$ac_try;;
21972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21973 (eval "$ac_try") 2>&5
21975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21976 (exit $ac_status); }; }; then
21977 ac_cv_c_bigendian=no
21979 echo "$as_me: program exited with status $ac_status" >&5
21980 echo "$as_me: failed program was:" >&5
21981 sed 's
/^
/|
/' conftest.$ac_ext >&5
21983 ( exit $ac_status )
21984 ac_cv_c_bigendian=yes
21986 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21994 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21995 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
21996 case $ac_cv_c_bigendian in
21999 cat >>confdefs.h <<\_ACEOF
22000 #define WORDS_BIGENDIAN 1
22006 { { echo "$as_me:$LINENO: error: unknown endianness
22007 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
22008 echo "$as_me: error: unknown endianness
22009 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
22010 { (exit 1); exit 1; }; } ;;
22016 # Check whether right shifting a negative integer extends the sign bit
22017 # or fills with zeros (like the Cray J90, according to Tim Peters).
22018 { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
22019 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6; }
22020 if test "${ac_cv_rshift_extends_sign+set}" = set; then
22021 echo $ECHO_N "(cached) $ECHO_C" >&6
22024 if test "$cross_compiling" = yes; then
22025 ac_cv_rshift_extends_sign=yes
22027 cat >conftest.$ac_ext <<_ACEOF
22030 cat confdefs.h >>conftest.$ac_ext
22031 cat >>conftest.$ac_ext <<_ACEOF
22032 /* end confdefs.h. */
22036 exit(((-1)>>3 == -1) ? 0 : 1);
22040 rm -f conftest$ac_exeext
22041 if { (ac_try="$ac_link"
22042 case "(($ac_try" in
22043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22044 *) ac_try_echo=$ac_try;;
22046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22047 (eval "$ac_link") 2>&5
22049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22050 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
22051 { (case "(($ac_try" in
22052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22053 *) ac_try_echo=$ac_try;;
22055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22056 (eval "$ac_try") 2>&5
22058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22059 (exit $ac_status); }; }; then
22060 ac_cv_rshift_extends_sign=yes
22062 echo "$as_me: program exited with status $ac_status" >&5
22063 echo "$as_me: failed program was:" >&5
22064 sed 's
/^
/|
/' conftest.$ac_ext >&5
22066 ( exit $ac_status )
22067 ac_cv_rshift_extends_sign=no
22069 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22075 { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
22076 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
22077 if test "$ac_cv_rshift_extends_sign" = no
22080 cat >>confdefs.h <<\_ACEOF
22081 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
22086 # check for getc_unlocked and related locking functions
22087 { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
22088 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6; }
22089 if test "${ac_cv_have_getc_unlocked+set}" = set; then
22090 echo $ECHO_N "(cached) $ECHO_C" >&6
22093 cat >conftest.$ac_ext <<_ACEOF
22096 cat confdefs.h >>conftest.$ac_ext
22097 cat >>conftest.$ac_ext <<_ACEOF
22098 /* end confdefs.h. */
22104 FILE *f = fopen("/dev/null", "r");
22113 rm -f conftest.$ac_objext conftest$ac_exeext
22114 if { (ac_try="$ac_link"
22115 case "(($ac_try" in
22116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22117 *) ac_try_echo=$ac_try;;
22119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22120 (eval "$ac_link") 2>conftest.er1
22122 grep -v '^
*+' conftest.er1 >conftest.err
22124 cat conftest.err >&5
22125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22126 (exit $ac_status); } && {
22127 test -z "$ac_c_werror_flag" ||
22128 test ! -s conftest.err
22129 } && test -s conftest$ac_exeext &&
22130 $as_test_x conftest$ac_exeext; then
22131 ac_cv_have_getc_unlocked=yes
22133 echo "$as_me: failed program was:" >&5
22134 sed 's
/^
/|
/' conftest.$ac_ext >&5
22136 ac_cv_have_getc_unlocked=no
22139 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22140 conftest$ac_exeext conftest.$ac_ext
22143 { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
22144 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
22145 if test "$ac_cv_have_getc_unlocked" = yes
22148 cat >>confdefs.h <<\_ACEOF
22149 #define HAVE_GETC_UNLOCKED 1
22154 # check where readline lives
22155 # save the value of LIBS so we don't actually link Python with readline
22156 LIBS_no_readline
=$LIBS
22158 { echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
22159 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; }
22160 if test "${ac_cv_lib_readline_readline+set}" = set; then
22161 echo $ECHO_N "(cached) $ECHO_C" >&6
22163 ac_check_lib_save_LIBS
=$LIBS
22164 LIBS
="-lreadline $LIBS"
22165 cat >conftest.
$ac_ext <<_ACEOF
22168 cat confdefs.h
>>conftest.
$ac_ext
22169 cat >>conftest.
$ac_ext <<_ACEOF
22170 /* end confdefs.h. */
22172 /* Override any GCC internal prototype to avoid an error.
22173 Use char because int might match the return type of a GCC
22174 builtin and then its argument prototype would still apply. */
22182 return readline ();
22187 rm -f conftest.
$ac_objext conftest
$ac_exeext
22188 if { (ac_try
="$ac_link"
22189 case "(($ac_try" in
22190 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22191 *) ac_try_echo=$ac_try;;
22193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22194 (eval "$ac_link") 2>conftest.er1
22196 grep -v '^ *+' conftest.er1 >conftest.err
22198 cat conftest.err >&5
22199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22200 (exit $ac_status); } && {
22201 test -z "$ac_c_werror_flag" ||
22202 test ! -s conftest.err
22203 } && test -s conftest$ac_exeext &&
22204 $as_test_x conftest$ac_exeext; then
22205 ac_cv_lib_readline_readline=yes
22207 echo "$as_me: failed program was:" >&5
22208 sed 's/^/| /' conftest.$ac_ext >&5
22210 ac_cv_lib_readline_readline=no
22213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22214 conftest$ac_exeext conftest.$ac_ext
22215 LIBS=$ac_check_lib_save_LIBS
22217 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
22218 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; }
22219 if test $ac_cv_lib_readline_readline = yes; then
22220 cat >>confdefs.h <<_ACEOF
22221 #define HAVE_LIBREADLINE 1
22224 LIBS="-lreadline $LIBS"
22228 if test "$ac_cv_have_readline_readline" = no
22231 { echo "$as_me:$LINENO: checking for readline in -ltermcap" >&5
22232 echo $ECHO_N "checking for readline in -ltermcap... $ECHO_C" >&6; }
22233 if test "${ac_cv_lib_termcap_readline+set}" = set; then
22234 echo $ECHO_N "(cached) $ECHO_C" >&6
22236 ac_check_lib_save_LIBS=$LIBS
22237 LIBS="-ltermcap $LIBS"
22238 cat >conftest.$ac_ext <<_ACEOF
22241 cat confdefs.h >>conftest.$ac_ext
22242 cat >>conftest.$ac_ext <<_ACEOF
22243 /* end confdefs.h. */
22245 /* Override any GCC internal prototype to avoid an error.
22246 Use char because int might match the return type of a GCC
22247 builtin and then its argument prototype would still apply. */
22255 return readline ();
22260 rm -f conftest.$ac_objext conftest$ac_exeext
22261 if { (ac_try="$ac_link"
22262 case "(($ac_try" in
22263 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22264 *) ac_try_echo
=$ac_try;;
22266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22267 (eval "$ac_link") 2>conftest.er1
22269 grep -v '^ *+' conftest.er1
>conftest.err
22271 cat conftest.err
>&5
22272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22273 (exit $ac_status); } && {
22274 test -z "$ac_c_werror_flag" ||
22275 test ! -s conftest.err
22276 } && test -s conftest
$ac_exeext &&
22277 $as_test_x conftest
$ac_exeext; then
22278 ac_cv_lib_termcap_readline
=yes
22280 echo "$as_me: failed program was:" >&5
22281 sed 's/^/| /' conftest.
$ac_ext >&5
22283 ac_cv_lib_termcap_readline
=no
22286 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22287 conftest
$ac_exeext conftest.
$ac_ext
22288 LIBS
=$ac_check_lib_save_LIBS
22290 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_readline" >&5
22291 echo "${ECHO_T}$ac_cv_lib_termcap_readline" >&6; }
22292 if test $ac_cv_lib_termcap_readline = yes; then
22293 cat >>confdefs.h
<<_ACEOF
22294 #define HAVE_LIBTERMCAP 1
22297 LIBS
="-ltermcap $LIBS"
22303 # check for readline 2.1
22304 { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
22305 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6; }
22306 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
22307 echo $ECHO_N "(cached) $ECHO_C" >&6
22309 ac_check_lib_save_LIBS
=$LIBS
22310 LIBS
="-lreadline $LIBS"
22311 cat >conftest.
$ac_ext <<_ACEOF
22314 cat confdefs.h
>>conftest.
$ac_ext
22315 cat >>conftest.
$ac_ext <<_ACEOF
22316 /* end confdefs.h. */
22318 /* Override any GCC internal prototype to avoid an error.
22319 Use char because int might match the return type of a GCC
22320 builtin and then its argument prototype would still apply. */
22324 char rl_callback_handler_install ();
22328 return rl_callback_handler_install ();
22333 rm -f conftest.
$ac_objext conftest
$ac_exeext
22334 if { (ac_try
="$ac_link"
22335 case "(($ac_try" in
22336 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22337 *) ac_try_echo=$ac_try;;
22339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22340 (eval "$ac_link") 2>conftest.er1
22342 grep -v '^ *+' conftest.er1 >conftest.err
22344 cat conftest.err >&5
22345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22346 (exit $ac_status); } && {
22347 test -z "$ac_c_werror_flag" ||
22348 test ! -s conftest.err
22349 } && test -s conftest$ac_exeext &&
22350 $as_test_x conftest$ac_exeext; then
22351 ac_cv_lib_readline_rl_callback_handler_install=yes
22353 echo "$as_me: failed program was:" >&5
22354 sed 's/^/| /' conftest.$ac_ext >&5
22356 ac_cv_lib_readline_rl_callback_handler_install=no
22359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22360 conftest$ac_exeext conftest.$ac_ext
22361 LIBS=$ac_check_lib_save_LIBS
22363 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
22364 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
22365 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
22367 cat >>confdefs.h <<\_ACEOF
22368 #define HAVE_RL_CALLBACK 1
22374 # check for readline 2.2
22375 cat >conftest.$ac_ext <<_ACEOF
22378 cat confdefs.h >>conftest.$ac_ext
22379 cat >>conftest.$ac_ext <<_ACEOF
22380 /* end confdefs.h. */
22381 #include <readline/readline.h>
22383 if { (ac_try="$ac_cpp conftest.$ac_ext"
22384 case "(($ac_try" in
22385 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22386 *) ac_try_echo
=$ac_try;;
22388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22389 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22391 grep -v '^ *+' conftest.er1
>conftest.err
22393 cat conftest.err
>&5
22394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22395 (exit $ac_status); } >/dev
/null
&& {
22396 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22397 test ! -s conftest.err
22401 echo "$as_me: failed program was:" >&5
22402 sed 's/^/| /' conftest.
$ac_ext >&5
22407 rm -f conftest.err conftest.
$ac_ext
22408 if test $have_readline = yes
22410 cat >conftest.
$ac_ext <<_ACEOF
22413 cat confdefs.h
>>conftest.
$ac_ext
22414 cat >>conftest.
$ac_ext <<_ACEOF
22415 /* end confdefs.h. */
22416 #include <readline/readline.h>
22419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22420 $EGREP "extern int rl_completion_append_character;" >/dev
/null
2>&1; then
22422 cat >>confdefs.h
<<\_ACEOF
22423 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
22431 # check for readline 4.0
22432 { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
22433 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6; }
22434 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
22435 echo $ECHO_N "(cached) $ECHO_C" >&6
22437 ac_check_lib_save_LIBS
=$LIBS
22438 LIBS
="-lreadline $LIBS"
22439 cat >conftest.
$ac_ext <<_ACEOF
22442 cat confdefs.h
>>conftest.
$ac_ext
22443 cat >>conftest.
$ac_ext <<_ACEOF
22444 /* end confdefs.h. */
22446 /* Override any GCC internal prototype to avoid an error.
22447 Use char because int might match the return type of a GCC
22448 builtin and then its argument prototype would still apply. */
22452 char rl_pre_input_hook ();
22456 return rl_pre_input_hook ();
22461 rm -f conftest.
$ac_objext conftest
$ac_exeext
22462 if { (ac_try
="$ac_link"
22463 case "(($ac_try" in
22464 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22465 *) ac_try_echo=$ac_try;;
22467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22468 (eval "$ac_link") 2>conftest.er1
22470 grep -v '^ *+' conftest.er1 >conftest.err
22472 cat conftest.err >&5
22473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22474 (exit $ac_status); } && {
22475 test -z "$ac_c_werror_flag" ||
22476 test ! -s conftest.err
22477 } && test -s conftest$ac_exeext &&
22478 $as_test_x conftest$ac_exeext; then
22479 ac_cv_lib_readline_rl_pre_input_hook=yes
22481 echo "$as_me: failed program was:" >&5
22482 sed 's/^/| /' conftest.$ac_ext >&5
22484 ac_cv_lib_readline_rl_pre_input_hook=no
22487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22488 conftest$ac_exeext conftest.$ac_ext
22489 LIBS=$ac_check_lib_save_LIBS
22491 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
22492 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
22493 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
22495 cat >>confdefs.h <<\_ACEOF
22496 #define HAVE_RL_PRE_INPUT_HOOK 1
22503 { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5
22504 echo $ECHO_N "checking for rl_completion_display_matches_hook in -lreadline... $ECHO_C" >&6; }
22505 if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
22506 echo $ECHO_N "(cached) $ECHO_C" >&6
22508 ac_check_lib_save_LIBS=$LIBS
22509 LIBS="-lreadline $LIBS"
22510 cat >conftest.$ac_ext <<_ACEOF
22513 cat confdefs.h >>conftest.$ac_ext
22514 cat >>conftest.$ac_ext <<_ACEOF
22515 /* end confdefs.h. */
22517 /* Override any GCC internal prototype to avoid an error.
22518 Use char because int might match the return type of a GCC
22519 builtin and then its argument prototype would still apply. */
22523 char rl_completion_display_matches_hook ();
22527 return rl_completion_display_matches_hook ();
22532 rm -f conftest.$ac_objext conftest$ac_exeext
22533 if { (ac_try="$ac_link"
22534 case "(($ac_try" in
22535 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22536 *) ac_try_echo
=$ac_try;;
22538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22539 (eval "$ac_link") 2>conftest.er1
22541 grep -v '^ *+' conftest.er1
>conftest.err
22543 cat conftest.err
>&5
22544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22545 (exit $ac_status); } && {
22546 test -z "$ac_c_werror_flag" ||
22547 test ! -s conftest.err
22548 } && test -s conftest
$ac_exeext &&
22549 $as_test_x conftest
$ac_exeext; then
22550 ac_cv_lib_readline_rl_completion_display_matches_hook
=yes
22552 echo "$as_me: failed program was:" >&5
22553 sed 's/^/| /' conftest.
$ac_ext >&5
22555 ac_cv_lib_readline_rl_completion_display_matches_hook
=no
22558 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22559 conftest
$ac_exeext conftest.
$ac_ext
22560 LIBS
=$ac_check_lib_save_LIBS
22562 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
22563 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
22564 if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then
22566 cat >>confdefs.h
<<\_ACEOF
22567 #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
22573 # check for readline 4.2
22574 { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
22575 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; }
22576 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
22577 echo $ECHO_N "(cached) $ECHO_C" >&6
22579 ac_check_lib_save_LIBS
=$LIBS
22580 LIBS
="-lreadline $LIBS"
22581 cat >conftest.
$ac_ext <<_ACEOF
22584 cat confdefs.h
>>conftest.
$ac_ext
22585 cat >>conftest.
$ac_ext <<_ACEOF
22586 /* end confdefs.h. */
22588 /* Override any GCC internal prototype to avoid an error.
22589 Use char because int might match the return type of a GCC
22590 builtin and then its argument prototype would still apply. */
22594 char rl_completion_matches ();
22598 return rl_completion_matches ();
22603 rm -f conftest.
$ac_objext conftest
$ac_exeext
22604 if { (ac_try
="$ac_link"
22605 case "(($ac_try" in
22606 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22607 *) ac_try_echo=$ac_try;;
22609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22610 (eval "$ac_link") 2>conftest.er1
22612 grep -v '^ *+' conftest.er1 >conftest.err
22614 cat conftest.err >&5
22615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22616 (exit $ac_status); } && {
22617 test -z "$ac_c_werror_flag" ||
22618 test ! -s conftest.err
22619 } && test -s conftest$ac_exeext &&
22620 $as_test_x conftest$ac_exeext; then
22621 ac_cv_lib_readline_rl_completion_matches=yes
22623 echo "$as_me: failed program was:" >&5
22624 sed 's/^/| /' conftest.$ac_ext >&5
22626 ac_cv_lib_readline_rl_completion_matches=no
22629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22630 conftest$ac_exeext conftest.$ac_ext
22631 LIBS=$ac_check_lib_save_LIBS
22633 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
22634 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
22635 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
22637 cat >>confdefs.h <<\_ACEOF
22638 #define HAVE_RL_COMPLETION_MATCHES 1
22644 # also in readline 4.2
22645 cat >conftest.$ac_ext <<_ACEOF
22648 cat confdefs.h >>conftest.$ac_ext
22649 cat >>conftest.$ac_ext <<_ACEOF
22650 /* end confdefs.h. */
22651 #include <readline/readline.h>
22653 if { (ac_try="$ac_cpp conftest.$ac_ext"
22654 case "(($ac_try" in
22655 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22656 *) ac_try_echo
=$ac_try;;
22658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22659 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22661 grep -v '^ *+' conftest.er1
>conftest.err
22663 cat conftest.err
>&5
22664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22665 (exit $ac_status); } >/dev
/null
&& {
22666 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22667 test ! -s conftest.err
22671 echo "$as_me: failed program was:" >&5
22672 sed 's/^/| /' conftest.
$ac_ext >&5
22677 rm -f conftest.err conftest.
$ac_ext
22678 if test $have_readline = yes
22680 cat >conftest.
$ac_ext <<_ACEOF
22683 cat confdefs.h
>>conftest.
$ac_ext
22684 cat >>conftest.
$ac_ext <<_ACEOF
22685 /* end confdefs.h. */
22686 #include <readline/readline.h>
22689 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22690 $EGREP "extern int rl_catch_signals;" >/dev
/null
2>&1; then
22692 cat >>confdefs.h
<<\_ACEOF
22693 #define HAVE_RL_CATCH_SIGNAL 1
22701 # End of readline checks: restore LIBS
22702 LIBS
=$LIBS_no_readline
22704 { echo "$as_me:$LINENO: checking for broken nice()" >&5
22705 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; }
22706 if test "${ac_cv_broken_nice+set}" = set; then
22707 echo $ECHO_N "(cached) $ECHO_C" >&6
22710 if test "$cross_compiling" = yes; then
22711 ac_cv_broken_nice
=no
22713 cat >conftest.
$ac_ext <<_ACEOF
22716 cat confdefs.h
>>conftest.
$ac_ext
22717 cat >>conftest.
$ac_ext <<_ACEOF
22718 /* end confdefs.h. */
22722 int val1 = nice(1);
22723 if (val1 != -1 && val1 == nice(2))
22729 rm -f conftest
$ac_exeext
22730 if { (ac_try
="$ac_link"
22731 case "(($ac_try" in
22732 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22733 *) ac_try_echo=$ac_try;;
22735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22736 (eval "$ac_link") 2>&5
22738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22739 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22740 { (case "(($ac_try" in
22741 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22742 *) ac_try_echo
=$ac_try;;
22744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22745 (eval "$ac_try") 2>&5
22747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22748 (exit $ac_status); }; }; then
22749 ac_cv_broken_nice
=yes
22751 echo "$as_me: program exited with status $ac_status" >&5
22752 echo "$as_me: failed program was:" >&5
22753 sed 's/^/| /' conftest.
$ac_ext >&5
22755 ( exit $ac_status )
22756 ac_cv_broken_nice
=no
22758 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22764 { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
22765 echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
22766 if test "$ac_cv_broken_nice" = yes
22769 cat >>confdefs.h
<<\_ACEOF
22770 #define HAVE_BROKEN_NICE 1
22775 { echo "$as_me:$LINENO: checking for broken poll()" >&5
22776 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; }
22777 if test "$cross_compiling" = yes; then
22778 ac_cv_broken_poll
=no
22780 cat >conftest.
$ac_ext <<_ACEOF
22783 cat confdefs.h
>>conftest.
$ac_ext
22784 cat >>conftest.
$ac_ext <<_ACEOF
22785 /* end confdefs.h. */
22791 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
22795 int poll_test = poll (&poll_struct, 1, 0);
22801 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
22812 rm -f conftest
$ac_exeext
22813 if { (ac_try
="$ac_link"
22814 case "(($ac_try" in
22815 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22816 *) ac_try_echo=$ac_try;;
22818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22819 (eval "$ac_link") 2>&5
22821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22822 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22823 { (case "(($ac_try" in
22824 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22825 *) ac_try_echo
=$ac_try;;
22827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22828 (eval "$ac_try") 2>&5
22830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22831 (exit $ac_status); }; }; then
22832 ac_cv_broken_poll
=yes
22834 echo "$as_me: program exited with status $ac_status" >&5
22835 echo "$as_me: failed program was:" >&5
22836 sed 's/^/| /' conftest.
$ac_ext >&5
22838 ( exit $ac_status )
22839 ac_cv_broken_poll
=no
22841 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22845 { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
22846 echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
22847 if test "$ac_cv_broken_poll" = yes
22850 cat >>confdefs.h
<<\_ACEOF
22851 #define HAVE_BROKEN_POLL 1
22856 # Before we can test tzset, we need to check if struct tm has a tm_zone
22857 # (which is not required by ISO C or UNIX spec) and/or if we support
22859 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
22860 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
22861 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
22862 echo $ECHO_N "(cached) $ECHO_C" >&6
22864 cat >conftest.
$ac_ext <<_ACEOF
22867 cat confdefs.h
>>conftest.
$ac_ext
22868 cat >>conftest.
$ac_ext <<_ACEOF
22869 /* end confdefs.h. */
22870 #include <sys/types.h>
22871 #include <$ac_cv_struct_tm>
22877 static struct tm ac_aggr;
22878 if (ac_aggr.tm_zone)
22884 rm -f conftest.
$ac_objext
22885 if { (ac_try
="$ac_compile"
22886 case "(($ac_try" in
22887 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22888 *) ac_try_echo=$ac_try;;
22890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22891 (eval "$ac_compile") 2>conftest.er1
22893 grep -v '^ *+' conftest.er1 >conftest.err
22895 cat conftest.err >&5
22896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22897 (exit $ac_status); } && {
22898 test -z "$ac_c_werror_flag" ||
22899 test ! -s conftest.err
22900 } && test -s conftest.$ac_objext; then
22901 ac_cv_member_struct_tm_tm_zone=yes
22903 echo "$as_me: failed program was:" >&5
22904 sed 's/^/| /' conftest.$ac_ext >&5
22906 cat >conftest.$ac_ext <<_ACEOF
22909 cat confdefs.h >>conftest.$ac_ext
22910 cat >>conftest.$ac_ext <<_ACEOF
22911 /* end confdefs.h. */
22912 #include <sys/types.h>
22913 #include <$ac_cv_struct_tm>
22919 static struct tm ac_aggr;
22920 if (sizeof ac_aggr.tm_zone)
22926 rm -f conftest.$ac_objext
22927 if { (ac_try="$ac_compile"
22928 case "(($ac_try" in
22929 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22930 *) ac_try_echo
=$ac_try;;
22932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22933 (eval "$ac_compile") 2>conftest.er1
22935 grep -v '^ *+' conftest.er1
>conftest.err
22937 cat conftest.err
>&5
22938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22939 (exit $ac_status); } && {
22940 test -z "$ac_c_werror_flag" ||
22941 test ! -s conftest.err
22942 } && test -s conftest.
$ac_objext; then
22943 ac_cv_member_struct_tm_tm_zone
=yes
22945 echo "$as_me: failed program was:" >&5
22946 sed 's/^/| /' conftest.
$ac_ext >&5
22948 ac_cv_member_struct_tm_tm_zone
=no
22951 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22954 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22956 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
22957 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
22958 if test $ac_cv_member_struct_tm_tm_zone = yes; then
22960 cat >>confdefs.h
<<_ACEOF
22961 #define HAVE_STRUCT_TM_TM_ZONE 1
22967 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22969 cat >>confdefs.h
<<\_ACEOF
22970 #define HAVE_TM_ZONE 1
22974 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
22975 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
22976 if test "${ac_cv_have_decl_tzname+set}" = set; then
22977 echo $ECHO_N "(cached) $ECHO_C" >&6
22979 cat >conftest.
$ac_ext <<_ACEOF
22982 cat confdefs.h
>>conftest.
$ac_ext
22983 cat >>conftest.
$ac_ext <<_ACEOF
22984 /* end confdefs.h. */
22998 rm -f conftest.
$ac_objext
22999 if { (ac_try
="$ac_compile"
23000 case "(($ac_try" in
23001 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23002 *) ac_try_echo=$ac_try;;
23004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23005 (eval "$ac_compile") 2>conftest.er1
23007 grep -v '^ *+' conftest.er1 >conftest.err
23009 cat conftest.err >&5
23010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23011 (exit $ac_status); } && {
23012 test -z "$ac_c_werror_flag" ||
23013 test ! -s conftest.err
23014 } && test -s conftest.$ac_objext; then
23015 ac_cv_have_decl_tzname=yes
23017 echo "$as_me: failed program was:" >&5
23018 sed 's/^/| /' conftest.$ac_ext >&5
23020 ac_cv_have_decl_tzname=no
23023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23025 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
23026 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
23027 if test $ac_cv_have_decl_tzname = yes; then
23029 cat >>confdefs.h <<_ACEOF
23030 #define HAVE_DECL_TZNAME 1
23035 cat >>confdefs.h <<_ACEOF
23036 #define HAVE_DECL_TZNAME 0
23043 { echo "$as_me:$LINENO: checking for tzname" >&5
23044 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
23045 if test "${ac_cv_var_tzname+set}" = set; then
23046 echo $ECHO_N "(cached) $ECHO_C" >&6
23048 cat >conftest.$ac_ext <<_ACEOF
23051 cat confdefs.h >>conftest.$ac_ext
23052 cat >>conftest.$ac_ext <<_ACEOF
23053 /* end confdefs.h. */
23055 #if !HAVE_DECL_TZNAME
23056 extern char *tzname[];
23062 return tzname[0][0];
23067 rm -f conftest.$ac_objext conftest$ac_exeext
23068 if { (ac_try="$ac_link"
23069 case "(($ac_try" in
23070 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23071 *) ac_try_echo
=$ac_try;;
23073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23074 (eval "$ac_link") 2>conftest.er1
23076 grep -v '^ *+' conftest.er1
>conftest.err
23078 cat conftest.err
>&5
23079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23080 (exit $ac_status); } && {
23081 test -z "$ac_c_werror_flag" ||
23082 test ! -s conftest.err
23083 } && test -s conftest
$ac_exeext &&
23084 $as_test_x conftest
$ac_exeext; then
23085 ac_cv_var_tzname
=yes
23087 echo "$as_me: failed program was:" >&5
23088 sed 's/^/| /' conftest.
$ac_ext >&5
23090 ac_cv_var_tzname
=no
23093 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23094 conftest
$ac_exeext conftest.
$ac_ext
23096 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
23097 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
23098 if test $ac_cv_var_tzname = yes; then
23100 cat >>confdefs.h
<<\_ACEOF
23101 #define HAVE_TZNAME 1
23108 # check tzset(3) exists and works like we expect it to
23109 { echo "$as_me:$LINENO: checking for working tzset()" >&5
23110 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; }
23111 if test "${ac_cv_working_tzset+set}" = set; then
23112 echo $ECHO_N "(cached) $ECHO_C" >&6
23115 if test "$cross_compiling" = yes; then
23116 ac_cv_working_tzset
=no
23118 cat >conftest.
$ac_ext <<_ACEOF
23121 cat confdefs.h
>>conftest.
$ac_ext
23122 cat >>conftest.
$ac_ext <<_ACEOF
23123 /* end confdefs.h. */
23125 #include <stdlib.h>
23127 #include <string.h>
23130 extern char *tzname[];
23135 /* Note that we need to ensure that not only does tzset(3)
23136 do 'something' with localtime, but it works as documented
23137 in the library reference and as expected by the test suite.
23138 This includes making sure that tzname is set properly if
23139 tm->tm_zone does not exist since it is the alternative way
23140 of getting timezone info.
23142 Red Hat 6.2 doesn't understand the southern hemisphere
23143 after New Year's Day.
23146 time_t groundhogday = 1044144000; /* GMT-based */
23147 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
23149 putenv("TZ=UTC+0");
23151 if (localtime(&groundhogday)->tm_hour != 0)
23154 /* For UTC, tzname[1] is sometimes "", sometimes " " */
23155 if (strcmp(tzname[0], "UTC") ||
23156 (tzname[1][0] != 0 && tzname[1][0] != ' '))
23160 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
23162 if (localtime(&groundhogday)->tm_hour != 19)
23165 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
23169 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
23171 if (localtime(&groundhogday)->tm_hour != 11)
23174 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
23178 #if HAVE_STRUCT_TM_TM_ZONE
23179 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
23181 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
23189 rm -f conftest
$ac_exeext
23190 if { (ac_try
="$ac_link"
23191 case "(($ac_try" in
23192 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23193 *) ac_try_echo=$ac_try;;
23195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23196 (eval "$ac_link") 2>&5
23198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23199 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23200 { (case "(($ac_try" in
23201 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23202 *) ac_try_echo
=$ac_try;;
23204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23205 (eval "$ac_try") 2>&5
23207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23208 (exit $ac_status); }; }; then
23209 ac_cv_working_tzset
=yes
23211 echo "$as_me: program exited with status $ac_status" >&5
23212 echo "$as_me: failed program was:" >&5
23213 sed 's/^/| /' conftest.
$ac_ext >&5
23215 ( exit $ac_status )
23216 ac_cv_working_tzset
=no
23218 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
23224 { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
23225 echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
23226 if test "$ac_cv_working_tzset" = yes
23229 cat >>confdefs.h
<<\_ACEOF
23230 #define HAVE_WORKING_TZSET 1
23235 # Look for subsecond timestamps in struct stat
23236 { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
23237 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6; }
23238 if test "${ac_cv_stat_tv_nsec+set}" = set; then
23239 echo $ECHO_N "(cached) $ECHO_C" >&6
23241 cat >conftest.
$ac_ext <<_ACEOF
23244 cat confdefs.h
>>conftest.
$ac_ext
23245 cat >>conftest.
$ac_ext <<_ACEOF
23246 /* end confdefs.h. */
23247 #include <sys/stat.h>
23253 st.st_mtim.tv_nsec = 1;
23259 rm -f conftest.
$ac_objext
23260 if { (ac_try
="$ac_compile"
23261 case "(($ac_try" in
23262 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23263 *) ac_try_echo=$ac_try;;
23265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23266 (eval "$ac_compile") 2>conftest.er1
23268 grep -v '^ *+' conftest.er1 >conftest.err
23270 cat conftest.err >&5
23271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23272 (exit $ac_status); } && {
23273 test -z "$ac_c_werror_flag" ||
23274 test ! -s conftest.err
23275 } && test -s conftest.$ac_objext; then
23276 ac_cv_stat_tv_nsec=yes
23278 echo "$as_me: failed program was:" >&5
23279 sed 's/^/| /' conftest.$ac_ext >&5
23281 ac_cv_stat_tv_nsec=no
23284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23287 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
23288 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
23289 if test "$ac_cv_stat_tv_nsec" = yes
23292 cat >>confdefs.h <<\_ACEOF
23293 #define HAVE_STAT_TV_NSEC 1
23298 # Look for BSD style subsecond timestamps in struct stat
23299 { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
23300 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6; }
23301 if test "${ac_cv_stat_tv_nsec2+set}" = set; then
23302 echo $ECHO_N "(cached) $ECHO_C" >&6
23304 cat >conftest.$ac_ext <<_ACEOF
23307 cat confdefs.h >>conftest.$ac_ext
23308 cat >>conftest.$ac_ext <<_ACEOF
23309 /* end confdefs.h. */
23310 #include <sys/stat.h>
23316 st.st_mtimespec.tv_nsec = 1;
23322 rm -f conftest.$ac_objext
23323 if { (ac_try="$ac_compile"
23324 case "(($ac_try" in
23325 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23326 *) ac_try_echo
=$ac_try;;
23328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23329 (eval "$ac_compile") 2>conftest.er1
23331 grep -v '^ *+' conftest.er1
>conftest.err
23333 cat conftest.err
>&5
23334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23335 (exit $ac_status); } && {
23336 test -z "$ac_c_werror_flag" ||
23337 test ! -s conftest.err
23338 } && test -s conftest.
$ac_objext; then
23339 ac_cv_stat_tv_nsec2
=yes
23341 echo "$as_me: failed program was:" >&5
23342 sed 's/^/| /' conftest.
$ac_ext >&5
23344 ac_cv_stat_tv_nsec2
=no
23347 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23350 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
23351 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
23352 if test "$ac_cv_stat_tv_nsec2" = yes
23355 cat >>confdefs.h
<<\_ACEOF
23356 #define HAVE_STAT_TV_NSEC2 1
23361 # On HP/UX 11.0, mvwdelch is a block with a return statement
23362 { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
23363 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6; }
23364 if test "${ac_cv_mvwdelch_is_expression+set}" = set; then
23365 echo $ECHO_N "(cached) $ECHO_C" >&6
23367 cat >conftest.
$ac_ext <<_ACEOF
23370 cat confdefs.h
>>conftest.
$ac_ext
23371 cat >>conftest.
$ac_ext <<_ACEOF
23372 /* end confdefs.h. */
23373 #include <curses.h>
23379 rtn = mvwdelch(0,0,0);
23385 rm -f conftest.
$ac_objext
23386 if { (ac_try
="$ac_compile"
23387 case "(($ac_try" in
23388 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23389 *) ac_try_echo=$ac_try;;
23391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23392 (eval "$ac_compile") 2>conftest.er1
23394 grep -v '^ *+' conftest.er1 >conftest.err
23396 cat conftest.err >&5
23397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23398 (exit $ac_status); } && {
23399 test -z "$ac_c_werror_flag" ||
23400 test ! -s conftest.err
23401 } && test -s conftest.$ac_objext; then
23402 ac_cv_mvwdelch_is_expression=yes
23404 echo "$as_me: failed program was:" >&5
23405 sed 's/^/| /' conftest.$ac_ext >&5
23407 ac_cv_mvwdelch_is_expression=no
23410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23413 { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
23414 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
23416 if test "$ac_cv_mvwdelch_is_expression" = yes
23419 cat >>confdefs.h <<\_ACEOF
23420 #define MVWDELCH_IS_EXPRESSION 1
23425 { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
23426 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6; }
23427 if test "${ac_cv_window_has_flags+set}" = set; then
23428 echo $ECHO_N "(cached) $ECHO_C" >&6
23430 cat >conftest.$ac_ext <<_ACEOF
23433 cat confdefs.h >>conftest.$ac_ext
23434 cat >>conftest.$ac_ext <<_ACEOF
23435 /* end confdefs.h. */
23436 #include <curses.h>
23448 rm -f conftest.$ac_objext
23449 if { (ac_try="$ac_compile"
23450 case "(($ac_try" in
23451 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23452 *) ac_try_echo
=$ac_try;;
23454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23455 (eval "$ac_compile") 2>conftest.er1
23457 grep -v '^ *+' conftest.er1
>conftest.err
23459 cat conftest.err
>&5
23460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23461 (exit $ac_status); } && {
23462 test -z "$ac_c_werror_flag" ||
23463 test ! -s conftest.err
23464 } && test -s conftest.
$ac_objext; then
23465 ac_cv_window_has_flags
=yes
23467 echo "$as_me: failed program was:" >&5
23468 sed 's/^/| /' conftest.
$ac_ext >&5
23470 ac_cv_window_has_flags
=no
23473 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23476 { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
23477 echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
23480 if test "$ac_cv_window_has_flags" = yes
23483 cat >>confdefs.h
<<\_ACEOF
23484 #define WINDOW_HAS_FLAGS 1
23489 { echo "$as_me:$LINENO: checking for is_term_resized" >&5
23490 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; }
23491 cat >conftest.
$ac_ext <<_ACEOF
23494 cat confdefs.h
>>conftest.
$ac_ext
23495 cat >>conftest.
$ac_ext <<_ACEOF
23496 /* end confdefs.h. */
23497 #include <curses.h>
23501 void *x=is_term_resized
23506 rm -f conftest.
$ac_objext
23507 if { (ac_try
="$ac_compile"
23508 case "(($ac_try" in
23509 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23510 *) ac_try_echo=$ac_try;;
23512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23513 (eval "$ac_compile") 2>conftest.er1
23515 grep -v '^ *+' conftest.er1 >conftest.err
23517 cat conftest.err >&5
23518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23519 (exit $ac_status); } && {
23520 test -z "$ac_c_werror_flag" ||
23521 test ! -s conftest.err
23522 } && test -s conftest.$ac_objext; then
23524 cat >>confdefs.h <<\_ACEOF
23525 #define HAVE_CURSES_IS_TERM_RESIZED 1
23528 { echo "$as_me:$LINENO: result: yes" >&5
23529 echo "${ECHO_T}yes" >&6; }
23531 echo "$as_me: failed program was:" >&5
23532 sed 's/^/| /' conftest.$ac_ext >&5
23534 { echo "$as_me:$LINENO: result: no" >&5
23535 echo "${ECHO_T}no" >&6; }
23539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23541 { echo "$as_me:$LINENO: checking for resize_term" >&5
23542 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; }
23543 cat >conftest.$ac_ext <<_ACEOF
23546 cat confdefs.h >>conftest.$ac_ext
23547 cat >>conftest.$ac_ext <<_ACEOF
23548 /* end confdefs.h. */
23549 #include <curses.h>
23553 void *x=resize_term
23558 rm -f conftest.$ac_objext
23559 if { (ac_try="$ac_compile"
23560 case "(($ac_try" in
23561 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23562 *) ac_try_echo
=$ac_try;;
23564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23565 (eval "$ac_compile") 2>conftest.er1
23567 grep -v '^ *+' conftest.er1
>conftest.err
23569 cat conftest.err
>&5
23570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23571 (exit $ac_status); } && {
23572 test -z "$ac_c_werror_flag" ||
23573 test ! -s conftest.err
23574 } && test -s conftest.
$ac_objext; then
23576 cat >>confdefs.h
<<\_ACEOF
23577 #define HAVE_CURSES_RESIZE_TERM 1
23580 { echo "$as_me:$LINENO: result: yes" >&5
23581 echo "${ECHO_T}yes" >&6; }
23583 echo "$as_me: failed program was:" >&5
23584 sed 's/^/| /' conftest.
$ac_ext >&5
23586 { echo "$as_me:$LINENO: result: no" >&5
23587 echo "${ECHO_T}no" >&6; }
23591 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23593 { echo "$as_me:$LINENO: checking for resizeterm" >&5
23594 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; }
23595 cat >conftest.
$ac_ext <<_ACEOF
23598 cat confdefs.h
>>conftest.
$ac_ext
23599 cat >>conftest.
$ac_ext <<_ACEOF
23600 /* end confdefs.h. */
23601 #include <curses.h>
23610 rm -f conftest.
$ac_objext
23611 if { (ac_try
="$ac_compile"
23612 case "(($ac_try" in
23613 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23614 *) ac_try_echo=$ac_try;;
23616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23617 (eval "$ac_compile") 2>conftest.er1
23619 grep -v '^ *+' conftest.er1 >conftest.err
23621 cat conftest.err >&5
23622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23623 (exit $ac_status); } && {
23624 test -z "$ac_c_werror_flag" ||
23625 test ! -s conftest.err
23626 } && test -s conftest.$ac_objext; then
23628 cat >>confdefs.h <<\_ACEOF
23629 #define HAVE_CURSES_RESIZETERM 1
23632 { echo "$as_me:$LINENO: result: yes" >&5
23633 echo "${ECHO_T}yes" >&6; }
23635 echo "$as_me: failed program was:" >&5
23636 sed 's/^/| /' conftest.$ac_ext >&5
23638 { echo "$as_me:$LINENO: result: no" >&5
23639 echo "${ECHO_T}no" >&6; }
23643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23645 { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
23646 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; }
23648 if test -r /dev/ptmx
23650 { echo "$as_me:$LINENO: result: yes" >&5
23651 echo "${ECHO_T}yes" >&6; }
23653 cat >>confdefs.h <<\_ACEOF
23654 #define HAVE_DEV_PTMX 1
23658 { echo "$as_me:$LINENO: result: no" >&5
23659 echo "${ECHO_T}no" >&6; }
23662 { echo "$as_me:$LINENO: checking for /dev/ptc" >&5
23663 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
23665 if test -r /dev/ptc
23667 { echo "$as_me:$LINENO: result: yes" >&5
23668 echo "${ECHO_T}yes" >&6; }
23670 cat >>confdefs.h <<\_ACEOF
23671 #define HAVE_DEV_PTC 1
23675 { echo "$as_me:$LINENO: result: no" >&5
23676 echo "${ECHO_T}no" >&6; }
23679 { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
23680 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; }
23681 if test "$cross_compiling" = yes; then
23682 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23683 See \`config.log
' for more details." >&5
23684 echo "$as_me: error: cannot run test program while cross compiling
23685 See \`config.log' for more details.
" >&2;}
23686 { (exit 1); exit 1; }; }
23688 cat >conftest.$ac_ext <<_ACEOF
23691 cat confdefs.h >>conftest.$ac_ext
23692 cat >>conftest.$ac_ext <<_ACEOF
23693 /* end confdefs.h. */
23695 #include <stddef.h>
23696 #include <string.h>
23698 #ifdef HAVE_SYS_TYPES_H
23699 #include <sys/types.h>
23702 #ifdef HAVE_SSIZE_T
23703 typedef ssize_t Py_ssize_t;
23704 #elif SIZEOF_VOID_P == SIZEOF_LONG
23705 typedef long Py_ssize_t;
23707 typedef int Py_ssize_t;
23714 if(sprintf(buffer, "%zd
", (size_t)123) < 0)
23717 if (strcmp(buffer, "123"))
23720 if (sprintf(buffer, "%zd
", (Py_ssize_t)-123) < 0)
23723 if (strcmp(buffer, "-123"))
23729 rm -f conftest$ac_exeext
23730 if { (ac_try="$ac_link"
23731 case "(($ac_try" in
23732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23733 *) ac_try_echo=$ac_try;;
23735 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23736 (eval "$ac_link") 2>&5
23738 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23739 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23740 { (case "(($ac_try" in
23741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23742 *) ac_try_echo=$ac_try;;
23744 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23745 (eval "$ac_try") 2>&5
23747 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23748 (exit $ac_status); }; }; then
23749 { echo "$as_me:$LINENO: result
: yes" >&5
23750 echo "${ECHO_T}yes" >&6; }
23752 cat >>confdefs.h <<\_ACEOF
23753 #define PY_FORMAT_SIZE_T "z
"
23757 echo "$as_me: program exited with status
$ac_status" >&5
23758 echo "$as_me: failed program was
:" >&5
23759 sed 's/^/| /' conftest.$ac_ext >&5
23761 ( exit $ac_status )
23762 { echo "$as_me:$LINENO: result
: no
" >&5
23763 echo "${ECHO_T}no
" >&6; }
23765 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23770 { echo "$as_me:$LINENO: checking
for socklen_t
" >&5
23771 echo $ECHO_N "checking
for socklen_t...
$ECHO_C" >&6; }
23772 if test "${ac_cv_type_socklen_t+set}" = set; then
23773 echo $ECHO_N "(cached
) $ECHO_C" >&6
23775 cat >conftest.$ac_ext <<_ACEOF
23778 cat confdefs.h >>conftest.$ac_ext
23779 cat >>conftest.$ac_ext <<_ACEOF
23780 /* end confdefs.h. */
23782 #ifdef HAVE_SYS_TYPES_H
23783 #include <sys/types.h>
23785 #ifdef HAVE_SYS_SOCKET_H
23786 #include <sys/socket.h>
23790 typedef socklen_t ac__type_new_;
23794 if ((ac__type_new_ *) 0)
23796 if (sizeof (ac__type_new_))
23802 rm -f conftest.$ac_objext
23803 if { (ac_try="$ac_compile"
23804 case "(($ac_try" in
23805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23806 *) ac_try_echo=$ac_try;;
23808 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23809 (eval "$ac_compile") 2>conftest.er1
23811 grep -v '^ *+' conftest.er1 >conftest.err
23813 cat conftest.err >&5
23814 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23815 (exit $ac_status); } && {
23816 test -z "$ac_c_werror_flag" ||
23817 test ! -s conftest.err
23818 } && test -s conftest.$ac_objext; then
23819 ac_cv_type_socklen_t=yes
23821 echo "$as_me: failed program was
:" >&5
23822 sed 's/^/| /' conftest.$ac_ext >&5
23824 ac_cv_type_socklen_t=no
23827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23829 { echo "$as_me:$LINENO: result
: $ac_cv_type_socklen_t" >&5
23830 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
23831 if test $ac_cv_type_socklen_t = yes; then
23835 cat >>confdefs.h <<\_ACEOF
23836 #define socklen_t int
23844 for h in `(cd $srcdir;echo Python/thread_*.h)`
23846 THREADHEADERS="$THREADHEADERS \$
(srcdir
)/$h"
23850 SRCDIRS="Parser Grammar Objects Python Modules Mac
"
23851 { echo "$as_me:$LINENO: checking
for build directories
" >&5
23852 echo $ECHO_N "checking
for build directories...
$ECHO_C" >&6; }
23853 for dir in $SRCDIRS; do
23854 if test ! -d $dir; then
23858 { echo "$as_me:$LINENO: result
: done" >&5
23859 echo "${ECHO_T}done" >&6; }
23861 # generate output files
23862 ac_config_files="$ac_config_files Makefile.pre Modules
/Setup.config
"
23864 cat >confcache <<\_ACEOF
23865 # This file is a shell script that caches the results of configure
23866 # tests run on this system so they can be shared between configure
23867 # scripts and configure runs, see configure's option --config-cache.
23868 # It is not useful on other systems. If it contains results you don't
23869 # want to keep, you may remove or edit it.
23871 # config.status only pays attention to the cache file if you give it
23872 # the --recheck option to rerun configure.
23874 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23875 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23876 # following values.
23880 # The following way of writing the cache mishandles newlines in values,
23881 # but we know of no workaround that is simple, portable, and efficient.
23882 # So, we kill variables containing newlines.
23883 # Ultrix sh set writes to stderr and can't be redirected directly,
23884 # and sets the high bit in the cache file unless we assign to the vars.
23886 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23887 eval ac_val=\$$ac_var
23891 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
23892 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
23895 _ | IFS | as_nl) ;; #(
23896 *) $as_unset $ac_var ;;
23902 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23903 *${as_nl}ac_space=\ *)
23904 # `set' does not quote correctly, so add quotes (double-quote
23905 # substitution turns \\\\ into \\, and sed turns \\ into \).
23908 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
23911 # `set' quotes correctly as required by POSIX, so do not add quotes.
23912 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
23921 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23923 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23925 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23926 if test -w "$cache_file"; then
23927 test "x
$cache_file" != "x
/dev
/null
" &&
23928 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
23929 echo "$as_me: updating cache
$cache_file" >&6;}
23930 cat confcache >$cache_file
23932 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
23933 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
23938 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
23939 # Let make expand exec_prefix.
23940 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
23942 DEFS=-DHAVE_CONFIG_H
23946 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
23947 # 1. Remove the extension, and $U if already installed.
23948 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23949 ac_i=`echo "$ac_i" | sed "$ac_script"`
23950 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23951 # will be set to the directory where LIBOBJS objects are built.
23952 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
23953 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
23955 LIBOBJS=$ac_libobjs
23957 LTLIBOBJS=$ac_ltlibobjs
23961 : ${CONFIG_STATUS=./config.status}
23962 ac_clean_files_save=$ac_clean_files
23963 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23964 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
23965 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
23966 cat >$CONFIG_STATUS <<_ACEOF
23968 # Generated by $as_me.
23969 # Run this file to recreate the current configuration.
23970 # Compiler output produced by configure, useful for debugging
23971 # configure, is in config.log if it exists.
23974 ac_cs_recheck=false
23976 SHELL=\${CONFIG_SHELL-$SHELL}
23979 cat >>$CONFIG_STATUS <<\_ACEOF
23980 ## --------------------- ##
23981 ## M4sh Initialization. ##
23982 ## --------------------- ##
23984 # Be more Bourne compatible
23985 DUALCASE=1; export DUALCASE # for MKS sh
23986 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23989 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23990 # is contrary to our usage. Disable this feature.
23991 alias -g '${1+"$@"}'='"$@
"'
23992 setopt NO_GLOB_SUBST
23994 case `(set -o) 2>/dev/null` in
23995 *posix*) set -o posix ;;
24004 # Avoid depending upon Character Ranges.
24005 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24006 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24007 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24008 as_cr_digits='0123456789'
24009 as_cr_alnum=$as_cr_Letters$as_cr_digits
24011 # The user is always right.
24012 if test "${PATH_SEPARATOR+set}" != set; then
24013 echo "#! /bin/sh" >conf$$.sh
24014 echo "exit 0" >>conf$$.sh
24016 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
24024 # Support unset when possible.
24025 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
24033 # We need space, tab and new line, in precisely that order. Quoting is
24034 # there to prevent editors from complaining about space-tab.
24035 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24036 # splitting by setting IFS to empty value.)
24041 # Find who we are. Look in the path if we contain no directory separator.
24043 *[\\/]* ) as_myself
=$0 ;;
24044 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24045 for as_dir
in $PATH
24048 test -z "$as_dir" && as_dir
=.
24049 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
24055 # We did not find ourselves, most probably we were run as `sh COMMAND'
24056 # in which case we are not to be found in the path.
24057 if test "x$as_myself" = x
; then
24060 if test ! -f "$as_myself"; then
24061 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24062 { (exit 1); exit 1; }
24065 # Work around bugs in pre-3.0 UWIN ksh.
24066 for as_var
in ENV MAIL MAILPATH
24067 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24075 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24076 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24077 LC_TELEPHONE LC_TIME
24079 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24080 eval $as_var=C
; export $as_var
24082 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24086 # Required to use basename.
24087 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24088 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24094 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24095 as_basename
=basename
24101 # Name of the executable.
24102 as_me
=`$as_basename -- "$0" ||
24103 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24104 X"$0" : 'X\(//\)$' \| \
24105 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24107 sed '/^.*\/\([^/][^/]*\)\/*$/{
24126 as_lineno_1
=$LINENO
24127 as_lineno_2
=$LINENO
24128 test "x$as_lineno_1" != "x$as_lineno_2" &&
24129 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
24131 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24132 # uniformly replaced by the line number. The first 'sed' inserts a
24133 # line-number line after each line using $LINENO; the second 'sed'
24134 # does the real work. The second script uses 'N' to pair each
24135 # line-number line with the line containing $LINENO, and appends
24136 # trailing '-' during substitution so that $LINENO is not a special
24137 # case at line end.
24138 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24139 # scripts with optimization help from Paolo Bonzini. Blame Lee
24140 # E. McMahon (1931-1989) for sed's syntax. :-)
24152 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24155 ' >$as_me.lineno
&&
24156 chmod +x
"$as_me.lineno" ||
24157 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24158 { (exit 1); exit 1; }; }
24160 # Don't try to exec as it changes $[0], causing all sort of problems
24161 # (the dirname of $[0] is not the place where we might find the
24162 # original and so on. Autoconf is especially sensitive to this).
24163 .
"./$as_me.lineno"
24164 # Exit status is that of the last command.
24169 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
24175 ECHO_C
= ECHO_N
= ECHO_T
=
24176 case `echo -n x` in
24178 case `echo 'x\c'` in
24179 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
24186 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24187 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24193 rm -f conf$$ conf$$.exe conf$$.
file
24194 if test -d conf$$.dir
; then
24195 rm -f conf$$.dir
/conf$$.
file
24201 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
24203 # ... but there are two gotchas:
24204 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24205 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24206 # In both cases, we have to default to `cp -p'.
24207 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
24209 elif ln conf$$.
file conf$$
2>/dev
/null
; then
24214 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
24215 rmdir conf$$.dir
2>/dev
/null
24217 if mkdir
-p .
2>/dev
/null
; then
24220 test -d .
/-p && rmdir .
/-p
24224 if test -x / >/dev
/null
2>&1; then
24225 as_test_x
='test -x'
24227 if ls -dL / >/dev
/null
2>&1; then
24234 if test -d "$1"; then
24240 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24241 ???[sx]*):;;*)false;;esac;fi
24245 as_executable_p
=$as_test_x
24247 # Sed expression to map a string onto a valid CPP name.
24248 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24250 # Sed expression to map a string onto a valid variable name.
24251 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24256 # Save the log message, to keep $[0] and so on meaningful, and to
24257 # report actual input values of CONFIG_FILES etc. instead of their
24258 # values after options handling.
24260 This file was extended by python $as_me 2.6, which was
24261 generated by GNU Autoconf 2.61. Invocation command line was
24263 CONFIG_FILES = $CONFIG_FILES
24264 CONFIG_HEADERS = $CONFIG_HEADERS
24265 CONFIG_LINKS = $CONFIG_LINKS
24266 CONFIG_COMMANDS = $CONFIG_COMMANDS
24269 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24274 cat >>$CONFIG_STATUS <<_ACEOF
24275 # Files that config.status was made for.
24276 config_files="$ac_config_files"
24277 config_headers="$ac_config_headers"
24281 cat >>$CONFIG_STATUS <<\_ACEOF
24283 \`$as_me' instantiates files from templates according to the
24284 current configuration.
24286 Usage: $0 [OPTIONS] [FILE]...
24288 -h, --help print this help, then exit
24289 -V, --version print version number and configuration settings, then exit
24290 -q, --quiet do not print progress messages
24291 -d, --debug don't remove temporary files
24292 --recheck update $as_me by reconfiguring in the same conditions
24293 --file=FILE[:TEMPLATE]
24294 instantiate the configuration file FILE
24295 --header=FILE[:TEMPLATE]
24296 instantiate the configuration header FILE
24298 Configuration files:
24301 Configuration headers:
24304 Report bugs to <bug-autoconf@gnu.org>."
24307 cat >>$CONFIG_STATUS <<_ACEOF
24309 python config.status 2.6
24310 configured by $0, generated by GNU Autoconf 2.61,
24311 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24313 Copyright (C) 2006 Free Software Foundation, Inc.
24314 This config.status script is free software; the Free Software Foundation
24315 gives unlimited permission to copy, distribute and modify it."
24322 cat >>$CONFIG_STATUS <<\_ACEOF
24323 # If no file are specified by the user, then we need to provide default
24324 # value. By we need to know if files were specified by the user.
24330 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
24331 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
24342 # Handling of the options.
24343 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
24345 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
24346 echo "$ac_cs_version"; exit ;;
24347 --debug |
--debu |
--deb |
--de |
--d |
-d )
24349 --file |
--fil |
--fi |
--f )
24351 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
24352 ac_need_defaults
=false
;;
24353 --header |
--heade |
--head |
--hea )
24355 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
24356 ac_need_defaults
=false
;;
24358 # Conflict between --help and --header
24359 { echo "$as_me: error: ambiguous option: $1
24360 Try \`$0 --help' for more information." >&2
24361 { (exit 1); exit 1; }; };;
24362 --help |
--hel |
-h )
24363 echo "$ac_cs_usage"; exit ;;
24364 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
24365 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
24368 # This is an error.
24369 -*) { echo "$as_me: error: unrecognized option: $1
24370 Try \`$0 --help' for more information." >&2
24371 { (exit 1); exit 1; }; } ;;
24373 *) ac_config_targets
="$ac_config_targets $1"
24374 ac_need_defaults
=false
;;
24380 ac_configure_extra_args
=
24382 if $ac_cs_silent; then
24384 ac_configure_extra_args
="$ac_configure_extra_args --silent"
24388 cat >>$CONFIG_STATUS <<_ACEOF
24389 if \$ac_cs_recheck; then
24390 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24391 CONFIG_SHELL=$SHELL
24392 export CONFIG_SHELL
24393 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24397 cat >>$CONFIG_STATUS <<\_ACEOF
24401 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24402 ## Running $as_me. ##
24408 cat >>$CONFIG_STATUS <<_ACEOF
24411 cat >>$CONFIG_STATUS <<\_ACEOF
24413 # Handling of arguments.
24414 for ac_config_target
in $ac_config_targets
24416 case $ac_config_target in
24417 "pyconfig.h") CONFIG_HEADERS
="$CONFIG_HEADERS pyconfig.h" ;;
24418 "Mac/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/Makefile" ;;
24419 "Mac/PythonLauncher/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
24420 "Mac/IDLE/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/IDLE/Makefile" ;;
24421 "Makefile.pre") CONFIG_FILES
="$CONFIG_FILES Makefile.pre" ;;
24422 "Modules/Setup.config") CONFIG_FILES
="$CONFIG_FILES Modules/Setup.config" ;;
24424 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24425 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24426 { (exit 1); exit 1; }; };;
24431 # If the user did not use the arguments to specify the items to instantiate,
24432 # then the envvar interface is used. Set only those that are not.
24433 # We use the long form for the default assignment because of an extremely
24434 # bizarre bug on SunOS 4.1.3.
24435 if $ac_need_defaults; then
24436 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
24437 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
24440 # Have a temporary directory for convenience. Make it in the build tree
24441 # simply because there is no reason against having it here, and in addition,
24442 # creating and moving files from /tmp can sometimes cause problems.
24443 # Hook for its removal unless debugging.
24444 # Note that there is a small window in which the directory will not be cleaned:
24445 # after its creation but before its name has been assigned to `$tmp'.
24449 trap 'exit_status=$?
24450 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24452 trap '{ (exit 1); exit 1; }' 1 2 13 15
24454 # Create a (secure) tmp directory for tmp files.
24457 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24458 test -n "$tmp" && test -d "$tmp"
24461 tmp
=.
/conf$$
-$RANDOM
24462 (umask 077 && mkdir
"$tmp")
24465 echo "$me: cannot create a temporary directory in ." >&2
24466 { (exit 1); exit 1; }
24470 # Set up the sed scripts for CONFIG_FILES section.
24473 # No need to generate the scripts if there are no CONFIG_FILES.
24474 # This happens for instance when ./config.status config.h
24475 if test -n "$CONFIG_FILES"; then
24482 for ac_last_try
in false false false false false
:; do
24483 cat >conf$
$subs.
sed <<_ACEOF
24484 SHELL!$SHELL$ac_delim
24485 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24486 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24487 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24488 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24489 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24490 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24491 exec_prefix!$exec_prefix$ac_delim
24492 prefix!$prefix$ac_delim
24493 program_transform_name!$program_transform_name$ac_delim
24494 bindir!$bindir$ac_delim
24495 sbindir!$sbindir$ac_delim
24496 libexecdir!$libexecdir$ac_delim
24497 datarootdir!$datarootdir$ac_delim
24498 datadir!$datadir$ac_delim
24499 sysconfdir!$sysconfdir$ac_delim
24500 sharedstatedir!$sharedstatedir$ac_delim
24501 localstatedir!$localstatedir$ac_delim
24502 includedir!$includedir$ac_delim
24503 oldincludedir!$oldincludedir$ac_delim
24504 docdir!$docdir$ac_delim
24505 infodir!$infodir$ac_delim
24506 htmldir!$htmldir$ac_delim
24507 dvidir!$dvidir$ac_delim
24508 pdfdir!$pdfdir$ac_delim
24509 psdir!$psdir$ac_delim
24510 libdir!$libdir$ac_delim
24511 localedir!$localedir$ac_delim
24512 mandir!$mandir$ac_delim
24513 DEFS!$DEFS$ac_delim
24514 ECHO_C!$ECHO_C$ac_delim
24515 ECHO_N!$ECHO_N$ac_delim
24516 ECHO_T!$ECHO_T$ac_delim
24517 LIBS!$LIBS$ac_delim
24518 build_alias!$build_alias$ac_delim
24519 host_alias!$host_alias$ac_delim
24520 target_alias!$target_alias$ac_delim
24521 VERSION!$VERSION$ac_delim
24522 SOVERSION!$SOVERSION$ac_delim
24523 CONFIG_ARGS!$CONFIG_ARGS$ac_delim
24524 UNIVERSALSDK!$UNIVERSALSDK$ac_delim
24525 PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
24526 PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
24527 PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
24528 PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
24529 FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
24530 FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
24531 FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
24532 FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
24533 FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
24534 MACHDEP!$MACHDEP$ac_delim
24535 SGI_ABI!$SGI_ABI$ac_delim
24536 EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim
24537 EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim
24538 CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
24539 EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
24541 CFLAGS!$CFLAGS$ac_delim
24542 LDFLAGS!$LDFLAGS$ac_delim
24543 CPPFLAGS!$CPPFLAGS$ac_delim
24544 ac_ct_CC!$ac_ct_CC$ac_delim
24545 EXEEXT!$EXEEXT$ac_delim
24546 OBJEXT!$OBJEXT$ac_delim
24548 MAINCC!$MAINCC$ac_delim
24550 GREP!$GREP$ac_delim
24551 EGREP!$EGREP$ac_delim
24552 BUILDEXEEXT!$BUILDEXEEXT$ac_delim
24553 LIBRARY!$LIBRARY$ac_delim
24554 LDLIBRARY!$LDLIBRARY$ac_delim
24555 DLLLIBRARY!$DLLLIBRARY$ac_delim
24556 BLDLIBRARY!$BLDLIBRARY$ac_delim
24557 LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
24558 INSTSONAME!$INSTSONAME$ac_delim
24559 RUNSHARED!$RUNSHARED$ac_delim
24560 LINKCC!$LINKCC$ac_delim
24561 RANLIB!$RANLIB$ac_delim
24563 SVNVERSION!$SVNVERSION$ac_delim
24564 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24565 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24566 INSTALL_DATA!$INSTALL_DATA$ac_delim
24569 BASECFLAGS!$BASECFLAGS$ac_delim
24570 OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
24571 LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
24573 LDSHARED!$LDSHARED$ac_delim
24574 BLDSHARED!$BLDSHARED$ac_delim
24575 CCSHARED!$CCSHARED$ac_delim
24576 LINKFORSHARED!$LINKFORSHARED$ac_delim
24577 CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
24578 SHLIBS!$SHLIBS$ac_delim
24579 USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
24580 SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
24583 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24585 elif $ac_last_try; then
24586 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24587 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24588 { (exit 1); exit 1; }; }
24590 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24594 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24595 if test -n "$ac_eof"; then
24596 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24597 ac_eof
=`expr $ac_eof + 1`
24600 cat >>$CONFIG_STATUS <<_ACEOF
24601 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24602 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24605 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24606 s/^/s,@/; s/!/@,|#_!!_#|/
24609 s/'"$ac_delim"'$/,g/; t
24611 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24612 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24613 rm -f conf$
$subs.
sed
24614 cat >>$CONFIG_STATUS <<_ACEOF
24620 for ac_last_try
in false false false false false
:; do
24621 cat >conf$
$subs.
sed <<_ACEOF
24622 USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
24623 LDLAST!$LDLAST$ac_delim
24624 THREADOBJ!$THREADOBJ$ac_delim
24625 DLINCLDIR!$DLINCLDIR$ac_delim
24626 DYNLOADFILE!$DYNLOADFILE$ac_delim
24627 MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
24628 TRUE!$TRUE$ac_delim
24629 LIBOBJS!$LIBOBJS$ac_delim
24630 HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
24631 HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
24632 HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
24633 HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
24634 HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
24635 LIBM!$LIBM$ac_delim
24636 LIBC!$LIBC$ac_delim
24637 UNICODE_OBJS!$UNICODE_OBJS$ac_delim
24638 THREADHEADERS!$THREADHEADERS$ac_delim
24639 SRCDIRS!$SRCDIRS$ac_delim
24640 LTLIBOBJS!$LTLIBOBJS$ac_delim
24643 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 19; then
24645 elif $ac_last_try; then
24646 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24647 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24648 { (exit 1); exit 1; }; }
24650 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24654 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24655 if test -n "$ac_eof"; then
24656 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24657 ac_eof
=`expr $ac_eof + 1`
24660 cat >>$CONFIG_STATUS <<_ACEOF
24661 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24662 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24665 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24666 s/^/s,@/; s/!/@,|#_!!_#|/
24669 s/'"$ac_delim"'$/,g/; t
24671 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24672 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24673 rm -f conf$
$subs.
sed
24674 cat >>$CONFIG_STATUS <<_ACEOF
24681 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24682 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24683 # trailing colons and then remove the whole line if VPATH becomes empty
24684 # (actually we leave an empty line to preserve line numbers).
24685 if test "x$srcdir" = x.
; then
24686 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
24687 s/:*\$(srcdir):*/:/
24688 s/:*\${srcdir}:*/:/
24690 s/^\([^=]*=[ ]*\):*/\1/
24696 cat >>$CONFIG_STATUS <<\_ACEOF
24697 fi # test -n "$CONFIG_FILES"
24700 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
24703 :[FHLC
]) ac_mode
=$ac_tag; continue;;
24705 case $ac_mode$ac_tag in
24707 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24708 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24709 { (exit 1); exit 1; }; };;
24710 :[FH
]-) ac_tag
=-:-;;
24711 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
24728 -) ac_f
="$tmp/stdin";;
24729 *) # Look for the file first in the build tree, then in the source tree
24730 # (if the path is not absolute). The absolute path cannot be DOS-style,
24731 # because $ac_f cannot contain `:'.
24735 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
24737 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24738 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24739 { (exit 1); exit 1; }; };;
24741 ac_file_inputs
="$ac_file_inputs $ac_f"
24744 # Let's still pretend it is `configure' which instantiates (i.e., don't
24745 # use $as_me), people would be surprised to read:
24746 # /* config.h. Generated by config.status. */
24747 configure_input
="Generated from "`IFS=:
24748 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24749 if test x
"$ac_file" != x-
; then
24750 configure_input
="$ac_file. $configure_input"
24751 { echo "$as_me:$LINENO: creating $ac_file" >&5
24752 echo "$as_me: creating $ac_file" >&6;}
24756 *:-:* |
*:-) cat >"$tmp/stdin";;
24761 ac_dir
=`$as_dirname -- "$ac_file" ||
24762 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24763 X"$ac_file" : 'X\(//\)[^/]' \| \
24764 X"$ac_file" : 'X\(//\)$' \| \
24765 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24767 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24771 /^X\(\/\/\)[^/].*/{
24786 -*) as_dir
=.
/$as_dir;;
24788 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
24792 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24793 *) as_qdir
=$as_dir;;
24795 as_dirs
="'$as_qdir' $as_dirs"
24796 as_dir
=`$as_dirname -- "$as_dir" ||
24797 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24798 X"$as_dir" : 'X\(//\)[^/]' \| \
24799 X"$as_dir" : 'X\(//\)$' \| \
24800 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24802 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24806 /^X\(\/\/\)[^/].*/{
24819 test -d "$as_dir" && break
24821 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
24822 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24823 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24824 { (exit 1); exit 1; }; }; }
24828 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24830 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24831 # A ".." for each directory in $ac_dir_suffix.
24832 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24833 case $ac_top_builddir_sub in
24834 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24835 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
24838 ac_abs_top_builddir
=$ac_pwd
24839 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
24840 # for backward compatibility:
24841 ac_top_builddir
=$ac_top_build_prefix
24844 .
) # We are building in place.
24846 ac_top_srcdir
=$ac_top_builddir_sub
24847 ac_abs_top_srcdir
=$ac_pwd ;;
24848 [\\/]* | ?
:[\\/]* ) # Absolute name.
24849 ac_srcdir
=$srcdir$ac_dir_suffix;
24850 ac_top_srcdir
=$srcdir
24851 ac_abs_top_srcdir
=$srcdir ;;
24852 *) # Relative name.
24853 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
24854 ac_top_srcdir
=$ac_top_build_prefix$srcdir
24855 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
24857 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
24867 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
24868 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
24872 cat >>$CONFIG_STATUS <<\_ACEOF
24873 # If the template does not know about datarootdir, expand it.
24874 # FIXME: This hack should be removed a few years after 2.60.
24875 ac_datarootdir_hack
=; ac_datarootdir_seen
=
24877 case `sed -n '/datarootdir/ {
24886 ' $ac_file_inputs` in
24887 *datarootdir
*) ac_datarootdir_seen
=yes;;
24888 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
24889 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24890 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24892 cat >>$CONFIG_STATUS <<_ACEOF
24893 ac_datarootdir_hack='
24894 s&@datadir@&$datadir&g
24895 s&@docdir@&$docdir&g
24896 s&@infodir@&$infodir&g
24897 s&@localedir@&$localedir&g
24898 s&@mandir@&$mandir&g
24899 s&\\\${datarootdir}&$datarootdir&g' ;;
24903 # Neutralize VPATH when `$srcdir' = `.'.
24904 # Shell code in configure.ac might set extrasub.
24905 # FIXME: do we really want to maintain this feature?
24906 cat >>$CONFIG_STATUS <<_ACEOF
24910 cat >>$CONFIG_STATUS <<\_ACEOF
24912 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
24913 s
&@configure_input@
&$configure_input&;t t
24914 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
24915 s
&@srcdir@
&$ac_srcdir&;t t
24916 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
24917 s
&@top_srcdir@
&$ac_top_srcdir&;t t
24918 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
24919 s
&@builddir@
&$ac_builddir&;t t
24920 s
&@abs_builddir@
&$ac_abs_builddir&;t t
24921 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
24922 s
&@INSTALL@
&$ac_INSTALL&;t t
24923 $ac_datarootdir_hack
24924 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
24926 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24927 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
24928 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
24929 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
24930 which seems to be undefined. Please make sure it is defined." >&5
24931 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
24932 which seems to be undefined. Please make sure it is defined." >&2;}
24936 -) cat "$tmp/out"; rm -f "$tmp/out";;
24937 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24946 # Transform confdefs.h into a sed script `conftest.defines', that
24947 # substitutes the proper values into config.h.in to produce config.h.
24948 rm -f conftest.defines conftest.
tail
24949 # First, append a space to every undef/define line, to ease matching.
24950 echo 's/$/ /' >conftest.defines
24951 # Then, protect against being on the right side of a sed subst, or in
24952 # an unquoted here document, in config.status. If some macros were
24953 # called several times there might be several #defines for the same
24954 # symbol, which is useless. But do not sort them, since the last
24955 # AC_DEFINE must be honored.
24956 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
24957 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24958 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24959 # PARAMS is the parameter list in the macro definition--in most cases, it's
24960 # just an empty string.
24961 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24962 ac_dB
='\\)[ (].*,\\1define\\2'
24970 s/^[ ]*#[ ]*define[ ][ ]*//
24975 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24976 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24977 ' >>conftest.defines
24979 # Remove the space that was appended to ease matching.
24980 # Then replace #undef with comments. This is necessary, for
24981 # example, in the case of _POSIX_SOURCE, which is predefined and required
24982 # on some systems where configure will not decide to define it.
24983 # (The regexp can be short, since the line contains either #define or #undef.)
24985 s,^[ #]*u.*,/* & */,' >>conftest.defines
24987 # Break up conftest.defines:
24988 ac_max_sed_lines
=50
24990 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24991 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24992 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24994 ac_in
='$ac_file_inputs'
24995 ac_out
='"$tmp/out1"'
24996 ac_nxt
='"$tmp/out2"'
25000 # Write a here document:
25001 cat >>$CONFIG_STATUS <<_ACEOF
25002 # First, check the format of the line:
25003 cat >"\$tmp/defines.sed" <<\\CEOF
25004 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25005 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25009 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
25011 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25012 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
25013 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
25014 grep . conftest.
tail >/dev
/null ||
break
25015 rm -f conftest.defines
25016 mv conftest.
tail conftest.defines
25018 rm -f conftest.defines conftest.
tail
25020 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25021 cat >>$CONFIG_STATUS <<\_ACEOF
25022 if test x
"$ac_file" != x-
; then
25023 echo "/* $configure_input */" >"$tmp/config.h"
25024 cat "$ac_result" >>"$tmp/config.h"
25025 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
25026 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25027 echo "$as_me: $ac_file is unchanged" >&6;}
25030 mv "$tmp/config.h" $ac_file
25033 echo "/* $configure_input */"
25045 { (exit 0); exit 0; }
25047 chmod +x
$CONFIG_STATUS
25048 ac_clean_files
=$ac_clean_files_save
25051 # configure is writing to config.log, and then calls config.status.
25052 # config.status does its own redirection, appending to config.log.
25053 # Unfortunately, on DOS this fails, as config.log is still kept open
25054 # by configure, so config.status won't be able to write to it; its
25055 # output is simply discarded. So we exec the FD to /dev/null,
25056 # effectively closing config.log, so it can be properly (re)opened and
25057 # appended to by config.status. When coming back to configure, we
25058 # need to make the FD available again.
25059 if test "$no_create" != yes; then
25061 ac_config_status_args
=
25062 test "$silent" = yes &&
25063 ac_config_status_args
="$ac_config_status_args --quiet"
25065 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
25067 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25068 # would make configure fail if this is the last instruction.
25069 $ac_cs_success ||
{ (exit 1); exit 1; }
25073 echo "creating Modules/Setup"
25074 if test ! -f Modules
/Setup
25076 cp $srcdir/Modules
/Setup.dist Modules
/Setup
25079 echo "creating Modules/Setup.local"
25080 if test ! -f Modules
/Setup.
local
25082 echo "# Edit this file for local setup changes" >Modules
/Setup.
local
25085 echo "creating Makefile"
25086 $SHELL $srcdir/Modules
/makesetup
-c $srcdir/Modules
/config.c.
in \
25087 -s Modules Modules
/Setup.config \
25088 Modules
/Setup.
local Modules
/Setup
25090 case $ac_sys_system in
25092 { echo "$as_me:$LINENO: WARNING:
25094 Support for BeOS is deprecated as of Python 2.6.
25095 See PEP 11 for the gory details.
25097 echo "$as_me: WARNING:
25099 Support for BeOS is deprecated as of Python 2.6.
25100 See PEP 11 for the gory details.
25106 mv config.c Modules