2 # From configure.in Revision: 61847 .
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 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
4542 # used to be here, but non-Apple gcc doesn't accept them.
4543 if test "${enable_universalsdk}"; then
4544 BASECFLAGS
="-arch ppc -arch i386 -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
4549 BASECFLAGS
="$BASECFLAGS -mieee"
4555 case $ac_sys_system in
4556 OpenUNIX
*|UnixWare
*)
4557 BASECFLAGS
="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
4560 BASECFLAGS
="$BASECFLAGS -ieee -std"
4563 BASECFLAGS
="$BASECFLAGS -belf -Ki486 -DSCO5"
4569 if test "$Py_DEBUG" = 'true'; then
4575 if test "$ac_arch_flags"
4577 BASECFLAGS
="$BASECFLAGS $ac_arch_flags"
4580 # disable check for icc since it seems to pass, but generates a warning
4583 ac_cv_opt_olimit_ok
=no
4586 { echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5
4587 echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6; }
4588 if test "${ac_cv_opt_olimit_ok+set}" = set; then
4589 echo $ECHO_N "(cached) $ECHO_C" >&6
4592 CC
="$CC -OPT:Olimit=0"
4593 if test "$cross_compiling" = yes; then
4594 ac_cv_opt_olimit_ok
=no
4596 cat >conftest.
$ac_ext <<_ACEOF
4599 cat confdefs.h
>>conftest.
$ac_ext
4600 cat >>conftest.
$ac_ext <<_ACEOF
4601 /* end confdefs.h. */
4602 int main() { return 0; }
4604 rm -f conftest
$ac_exeext
4605 if { (ac_try
="$ac_link"
4607 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4608 *) ac_try_echo=$ac_try;;
4610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4611 (eval "$ac_link") 2>&5
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4615 { (case "(($ac_try" in
4616 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4617 *) ac_try_echo
=$ac_try;;
4619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4620 (eval "$ac_try") 2>&5
4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); }; }; then
4624 ac_cv_opt_olimit_ok
=yes
4626 echo "$as_me: program exited with status $ac_status" >&5
4627 echo "$as_me: failed program was:" >&5
4628 sed 's/^/| /' conftest.
$ac_ext >&5
4631 ac_cv_opt_olimit_ok
=no
4633 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4640 { echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5
4641 echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6; }
4642 if test $ac_cv_opt_olimit_ok = yes; then
4643 case $ac_sys_system in
4644 # XXX is this branch needed? On MacOSX 10.2.2 the result of the
4645 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
4650 BASECFLAGS
="$BASECFLAGS -OPT:Olimit=0"
4654 { echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5
4655 echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6; }
4656 if test "${ac_cv_olimit_ok+set}" = set; then
4657 echo $ECHO_N "(cached) $ECHO_C" >&6
4660 CC
="$CC -Olimit 1500"
4661 if test "$cross_compiling" = yes; then
4664 cat >conftest.
$ac_ext <<_ACEOF
4667 cat confdefs.h
>>conftest.
$ac_ext
4668 cat >>conftest.
$ac_ext <<_ACEOF
4669 /* end confdefs.h. */
4670 int main() { return 0; }
4672 rm -f conftest
$ac_exeext
4673 if { (ac_try
="$ac_link"
4675 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4676 *) ac_try_echo=$ac_try;;
4678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4679 (eval "$ac_link") 2>&5
4681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4683 { (case "(($ac_try" in
4684 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4685 *) ac_try_echo
=$ac_try;;
4687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4688 (eval "$ac_try") 2>&5
4690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691 (exit $ac_status); }; }; then
4694 echo "$as_me: program exited with status $ac_status" >&5
4695 echo "$as_me: failed program was:" >&5
4696 sed 's/^/| /' conftest.
$ac_ext >&5
4701 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4708 { echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5
4709 echo "${ECHO_T}$ac_cv_olimit_ok" >&6; }
4710 if test $ac_cv_olimit_ok = yes; then
4711 BASECFLAGS
="$BASECFLAGS -Olimit 1500"
4715 # Check whether GCC supports PyArg_ParseTuple format
4716 if test "$GCC" = "yes"
4718 { echo "$as_me:$LINENO: checking whether gcc supports ParseTuple __format__" >&5
4719 echo $ECHO_N "checking whether gcc supports ParseTuple __format__... $ECHO_C" >&6; }
4721 CFLAGS
="$CFLAGS -Werror"
4722 cat >conftest.
$ac_ext <<_ACEOF
4725 cat confdefs.h
>>conftest.
$ac_ext
4726 cat >>conftest.
$ac_ext <<_ACEOF
4727 /* end confdefs.h. */
4729 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));
4739 rm -f conftest.
$ac_objext
4740 if { (ac_try
="$ac_compile"
4742 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4743 *) ac_try_echo=$ac_try;;
4745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4746 (eval "$ac_compile") 2>conftest.er1
4748 grep -v '^ *+' conftest.er1 >conftest.err
4750 cat conftest.err >&5
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); } && {
4753 test -z "$ac_c_werror_flag" ||
4754 test ! -s conftest.err
4755 } && test -s conftest.$ac_objext; then
4757 cat >>confdefs.h <<\_ACEOF
4758 #define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1
4761 { echo "$as_me:$LINENO: result: yes" >&5
4762 echo "${ECHO_T}yes" >&6; }
4764 echo "$as_me: failed program was:" >&5
4765 sed 's/^/| /' conftest.$ac_ext >&5
4767 { echo "$as_me:$LINENO: result: no" >&5
4768 echo "${ECHO_T}no" >&6; }
4772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4776 # On some compilers, pthreads are available without further options
4777 # (e.g. MacOS X). On some of these systems, the compiler will not
4778 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
4779 # So we have to see first whether pthreads are available without
4780 # options before we can check whether -Kpthread improves anything.
4781 { echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5
4782 echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6; }
4783 if test "${ac_cv_pthread_is_default+set}" = set; then
4784 echo $ECHO_N "(cached) $ECHO_C" >&6
4786 if test "$cross_compiling" = yes; then
4787 ac_cv_pthread_is_default=no
4789 cat >conftest.$ac_ext <<_ACEOF
4792 cat confdefs.h >>conftest.$ac_ext
4793 cat >>conftest.$ac_ext <<_ACEOF
4794 /* end confdefs.h. */
4796 #include <pthread.h>
4798 void* routine(void* p){return NULL;}
4802 if(pthread_create(&p,NULL,routine,NULL)!=0)
4804 (void)pthread_detach(p);
4809 rm -f conftest$ac_exeext
4810 if { (ac_try="$ac_link"
4812 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4813 *) ac_try_echo
=$ac_try;;
4815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4816 (eval "$ac_link") 2>&5
4818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4820 { (case "(($ac_try" in
4821 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4822 *) ac_try_echo=$ac_try;;
4824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4825 (eval "$ac_try") 2>&5
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); }; }; then
4830 ac_cv_pthread_is_default=yes
4835 echo "$as_me: program exited with status $ac_status" >&5
4836 echo "$as_me: failed program was:" >&5
4837 sed 's/^/| /' conftest.$ac_ext >&5
4840 ac_cv_pthread_is_default=no
4842 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4849 { echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5
4850 echo "${ECHO_T}$ac_cv_pthread_is_default" >&6; }
4853 if test $ac_cv_pthread_is_default = yes
4857 # -Kpthread, if available, provides the right #defines
4858 # and linker options to make pthread_create available
4859 # Some compilers won't report that they do not support -Kpthread,
4860 # so we need to run a program to see whether it really made the
4861 # function available.
4862 { echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5
4863 echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6; }
4864 if test "${ac_cv_kpthread+set}" = set; then
4865 echo $ECHO_N "(cached) $ECHO_C" >&6
4869 if test "$cross_compiling" = yes; then
4872 cat >conftest.$ac_ext <<_ACEOF
4875 cat confdefs.h >>conftest.$ac_ext
4876 cat >>conftest.$ac_ext <<_ACEOF
4877 /* end confdefs.h. */
4879 #include <pthread.h>
4881 void* routine(void* p){return NULL;}
4885 if(pthread_create(&p,NULL,routine,NULL)!=0)
4887 (void)pthread_detach(p);
4892 rm -f conftest$ac_exeext
4893 if { (ac_try="$ac_link"
4895 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4896 *) ac_try_echo
=$ac_try;;
4898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4899 (eval "$ac_link") 2>&5
4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4903 { (case "(($ac_try" in
4904 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4905 *) ac_try_echo=$ac_try;;
4907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4908 (eval "$ac_try") 2>&5
4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911 (exit $ac_status); }; }; then
4914 echo "$as_me: program exited with status $ac_status" >&5
4915 echo "$as_me: failed program was:" >&5
4916 sed 's/^/| /' conftest.$ac_ext >&5
4921 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4928 { echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5
4929 echo "${ECHO_T}$ac_cv_kpthread" >&6; }
4932 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
4934 # -Kthread, if available, provides the right #defines
4935 # and linker options to make pthread_create available
4936 # Some compilers won't report that they do not support -Kthread,
4937 # so we need to run a program to see whether it really made the
4938 # function available.
4939 { echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5
4940 echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6; }
4941 if test "${ac_cv_kthread+set}" = set; then
4942 echo $ECHO_N "(cached) $ECHO_C" >&6
4946 if test "$cross_compiling" = yes; then
4949 cat >conftest.$ac_ext <<_ACEOF
4952 cat confdefs.h >>conftest.$ac_ext
4953 cat >>conftest.$ac_ext <<_ACEOF
4954 /* end confdefs.h. */
4956 #include <pthread.h>
4958 void* routine(void* p){return NULL;}
4962 if(pthread_create(&p,NULL,routine,NULL)!=0)
4964 (void)pthread_detach(p);
4969 rm -f conftest$ac_exeext
4970 if { (ac_try="$ac_link"
4972 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4973 *) ac_try_echo
=$ac_try;;
4975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4976 (eval "$ac_link") 2>&5
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4980 { (case "(($ac_try" in
4981 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4982 *) ac_try_echo=$ac_try;;
4984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4985 (eval "$ac_try") 2>&5
4987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988 (exit $ac_status); }; }; then
4991 echo "$as_me: program exited with status $ac_status" >&5
4992 echo "$as_me: failed program was:" >&5
4993 sed 's/^/| /' conftest.$ac_ext >&5
4998 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5005 { echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5
5006 echo "${ECHO_T}$ac_cv_kthread" >&6; }
5009 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
5011 # -pthread, if available, provides the right #defines
5012 # and linker options to make pthread_create available
5013 # Some compilers won't report that they do not support -pthread,
5014 # so we need to run a program to see whether it really made the
5015 # function available.
5016 { echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5
5017 echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6; }
5018 if test "${ac_cv_thread+set}" = set; then
5019 echo $ECHO_N "(cached) $ECHO_C" >&6
5023 if test "$cross_compiling" = yes; then
5026 cat >conftest.$ac_ext <<_ACEOF
5029 cat confdefs.h >>conftest.$ac_ext
5030 cat >>conftest.$ac_ext <<_ACEOF
5031 /* end confdefs.h. */
5033 #include <pthread.h>
5035 void* routine(void* p){return NULL;}
5039 if(pthread_create(&p,NULL,routine,NULL)!=0)
5041 (void)pthread_detach(p);
5046 rm -f conftest$ac_exeext
5047 if { (ac_try="$ac_link"
5049 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5050 *) ac_try_echo
=$ac_try;;
5052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5053 (eval "$ac_link") 2>&5
5055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5057 { (case "(($ac_try" in
5058 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5059 *) ac_try_echo=$ac_try;;
5061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5062 (eval "$ac_try") 2>&5
5064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065 (exit $ac_status); }; }; then
5068 echo "$as_me: program exited with status $ac_status" >&5
5069 echo "$as_me: failed program was:" >&5
5070 sed 's/^/| /' conftest.$ac_ext >&5
5075 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5082 { echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5
5083 echo "${ECHO_T}$ac_cv_pthread" >&6; }
5086 # If we have set a CC compiler flag for thread support then
5087 # check if it works for CXX, too.
5091 { echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5
5092 echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6; }
5095 if test "$ac_cv_kpthread" = "yes"
5097 CXX="$CXX -Kpthread"
5098 ac_cv_cxx_thread=yes
5099 elif test "$ac_cv_kthread" = "yes"
5102 ac_cv_cxx_thread=yes
5103 elif test "$ac_cv_pthread" = "yes"
5106 ac_cv_cxx_thread=yes
5109 if test $ac_cv_cxx_thread = yes
5111 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext
5112 $CXX -c conftest.$ac_ext 2>&5
5113 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
5114 && test -s conftest$ac_exeext && ./conftest$ac_exeext
5116 ac_cv_cxx_thread=yes
5122 { echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5
5123 echo "${ECHO_T}$ac_cv_cxx_thread" >&6; }
5128 # checks for header files
5129 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5130 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5131 if test "${ac_cv_header_stdc+set}" = set; then
5132 echo $ECHO_N "(cached) $ECHO_C" >&6
5134 cat >conftest.$ac_ext <<_ACEOF
5137 cat confdefs.h >>conftest.$ac_ext
5138 cat >>conftest.$ac_ext <<_ACEOF
5139 /* end confdefs.h. */
5153 rm -f conftest.$ac_objext
5154 if { (ac_try="$ac_compile"
5156 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5157 *) ac_try_echo
=$ac_try;;
5159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5160 (eval "$ac_compile") 2>conftest.er1
5162 grep -v '^ *+' conftest.er1
>conftest.err
5164 cat conftest.err
>&5
5165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166 (exit $ac_status); } && {
5167 test -z "$ac_c_werror_flag" ||
5168 test ! -s conftest.err
5169 } && test -s conftest.
$ac_objext; then
5170 ac_cv_header_stdc
=yes
5172 echo "$as_me: failed program was:" >&5
5173 sed 's/^/| /' conftest.
$ac_ext >&5
5175 ac_cv_header_stdc
=no
5178 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5180 if test $ac_cv_header_stdc = yes; then
5181 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5182 cat >conftest.
$ac_ext <<_ACEOF
5185 cat confdefs.h
>>conftest.
$ac_ext
5186 cat >>conftest.
$ac_ext <<_ACEOF
5187 /* end confdefs.h. */
5191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5192 $EGREP "memchr" >/dev
/null
2>&1; then
5195 ac_cv_header_stdc
=no
5201 if test $ac_cv_header_stdc = yes; then
5202 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5203 cat >conftest.
$ac_ext <<_ACEOF
5206 cat confdefs.h
>>conftest.
$ac_ext
5207 cat >>conftest.
$ac_ext <<_ACEOF
5208 /* end confdefs.h. */
5212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213 $EGREP "free" >/dev
/null
2>&1; then
5216 ac_cv_header_stdc
=no
5222 if test $ac_cv_header_stdc = yes; then
5223 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5224 if test "$cross_compiling" = yes; then
5227 cat >conftest.
$ac_ext <<_ACEOF
5230 cat confdefs.h
>>conftest.
$ac_ext
5231 cat >>conftest.
$ac_ext <<_ACEOF
5232 /* end confdefs.h. */
5235 #if ((' ' & 0x0FF) == 0x020)
5236 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5237 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5239 # define ISLOWER(c) \
5240 (('a' <= (c) && (c) <= 'i') \
5241 || ('j' <= (c) && (c) <= 'r') \
5242 || ('s' <= (c) && (c) <= 'z'))
5243 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5246 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5251 for (i = 0; i < 256; i++)
5252 if (XOR (islower (i), ISLOWER (i))
5253 || toupper (i) != TOUPPER (i))
5258 rm -f conftest
$ac_exeext
5259 if { (ac_try
="$ac_link"
5261 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5262 *) ac_try_echo=$ac_try;;
5264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5265 (eval "$ac_link") 2>&5
5267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5269 { (case "(($ac_try" in
5270 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5271 *) ac_try_echo
=$ac_try;;
5273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5274 (eval "$ac_try") 2>&5
5276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277 (exit $ac_status); }; }; then
5280 echo "$as_me: program exited with status $ac_status" >&5
5281 echo "$as_me: failed program was:" >&5
5282 sed 's/^/| /' conftest.
$ac_ext >&5
5285 ac_cv_header_stdc
=no
5287 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5293 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5294 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5295 if test $ac_cv_header_stdc = yes; then
5297 cat >>confdefs.h
<<\_ACEOF
5298 #define STDC_HEADERS 1
5303 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5313 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5314 inttypes.h stdint.h unistd.h
5316 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5317 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5319 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5320 echo $ECHO_N "(cached) $ECHO_C" >&6
5322 cat >conftest.
$ac_ext <<_ACEOF
5325 cat confdefs.h
>>conftest.
$ac_ext
5326 cat >>conftest.
$ac_ext <<_ACEOF
5327 /* end confdefs.h. */
5328 $ac_includes_default
5330 #include <$ac_header>
5332 rm -f conftest.
$ac_objext
5333 if { (ac_try
="$ac_compile"
5335 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5336 *) ac_try_echo=$ac_try;;
5338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5339 (eval "$ac_compile") 2>conftest.er1
5341 grep -v '^ *+' conftest.er1 >conftest.err
5343 cat conftest.err >&5
5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345 (exit $ac_status); } && {
5346 test -z "$ac_c_werror_flag" ||
5347 test ! -s conftest.err
5348 } && test -s conftest.$ac_objext; then
5349 eval "$as_ac_Header=yes"
5351 echo "$as_me: failed program was:" >&5
5352 sed 's/^/| /' conftest.$ac_ext >&5
5354 eval "$as_ac_Header=no"
5357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5359 ac_res=`eval echo '${'$as_ac_Header'}'`
5360 { echo "$as_me:$LINENO: result: $ac_res" >&5
5361 echo "${ECHO_T}$ac_res" >&6; }
5362 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5363 cat >>confdefs.h <<_ACEOF
5364 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5425 for ac_header in asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
5427 ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
5428 shadow.h signal.h stdint.h stropts.h termios.h thread.h \
5430 sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
5431 sys/lock.h sys/mkdev.h sys/modem.h \
5432 sys/param.h sys/poll.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \
5434 sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
5435 sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
5436 bluetooth/bluetooth.h linux/tipc.h
5438 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5439 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5440 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5442 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5443 echo $ECHO_N "(cached) $ECHO_C" >&6
5445 ac_res=`eval echo '${'$as_ac_Header'}'`
5446 { echo "$as_me:$LINENO: result: $ac_res" >&5
5447 echo "${ECHO_T}$ac_res" >&6; }
5449 # Is the header compilable?
5450 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5451 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5452 cat >conftest.$ac_ext <<_ACEOF
5455 cat confdefs.h >>conftest.$ac_ext
5456 cat >>conftest.$ac_ext <<_ACEOF
5457 /* end confdefs.h. */
5458 $ac_includes_default
5459 #include <$ac_header>
5461 rm -f conftest.$ac_objext
5462 if { (ac_try="$ac_compile"
5464 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5465 *) ac_try_echo
=$ac_try;;
5467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5468 (eval "$ac_compile") 2>conftest.er1
5470 grep -v '^ *+' conftest.er1
>conftest.err
5472 cat conftest.err
>&5
5473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474 (exit $ac_status); } && {
5475 test -z "$ac_c_werror_flag" ||
5476 test ! -s conftest.err
5477 } && test -s conftest.
$ac_objext; then
5478 ac_header_compiler
=yes
5480 echo "$as_me: failed program was:" >&5
5481 sed 's/^/| /' conftest.
$ac_ext >&5
5483 ac_header_compiler
=no
5486 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5487 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5488 echo "${ECHO_T}$ac_header_compiler" >&6; }
5490 # Is the header present?
5491 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5492 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5493 cat >conftest.
$ac_ext <<_ACEOF
5496 cat confdefs.h
>>conftest.
$ac_ext
5497 cat >>conftest.
$ac_ext <<_ACEOF
5498 /* end confdefs.h. */
5499 #include <$ac_header>
5501 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5503 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5504 *) ac_try_echo=$ac_try;;
5506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5507 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5509 grep -v '^ *+' conftest.er1 >conftest.err
5511 cat conftest.err >&5
5512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513 (exit $ac_status); } >/dev/null && {
5514 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5515 test ! -s conftest.err
5517 ac_header_preproc=yes
5519 echo "$as_me: failed program was:" >&5
5520 sed 's/^/| /' conftest.$ac_ext >&5
5522 ac_header_preproc=no
5525 rm -f conftest.err conftest.$ac_ext
5526 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5527 echo "${ECHO_T}$ac_header_preproc" >&6; }
5529 # So? What about this header?
5530 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5532 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5533 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5535 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5536 ac_header_preproc=yes
5539 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5540 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5541 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5542 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5543 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5544 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5545 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5546 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5547 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5548 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5549 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5550 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5552 ## ------------------------------------------------ ##
5553 ## Report this to http://www.python.org/python-bugs ##
5554 ## ------------------------------------------------ ##
5556 ) | sed "s/^/$as_me: WARNING: /" >&2
5559 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5562 echo $ECHO_N "(cached) $ECHO_C" >&6
5564 eval "$as_ac_Header=\$ac_header_preproc"
5566 ac_res=`eval echo '${'$as_ac_Header'}'`
5567 { echo "$as_me:$LINENO: result: $ac_res" >&5
5568 echo "${ECHO_T}$ac_res" >&6; }
5571 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5572 cat >>confdefs.h <<_ACEOF
5573 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5586 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5587 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" |
$as_tr_sh`
5588 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5589 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5591 echo $ECHO_N "(cached) $ECHO_C" >&6
5593 cat >conftest.$ac_ext <<_ACEOF
5596 cat confdefs.h >>conftest.$ac_ext
5597 cat >>conftest.$ac_ext <<_ACEOF
5598 /* end confdefs.h. */
5599 #include <sys/types.h>
5611 rm -f conftest.$ac_objext
5612 if { (ac_try="$ac_compile"
5614 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5615 *) ac_try_echo
=$ac_try;;
5617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5618 (eval "$ac_compile") 2>conftest.er1
5620 grep -v '^ *+' conftest.er1
>conftest.err
5622 cat conftest.err
>&5
5623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624 (exit $ac_status); } && {
5625 test -z "$ac_c_werror_flag" ||
5626 test ! -s conftest.err
5627 } && test -s conftest.
$ac_objext; then
5628 eval "$as_ac_Header=yes"
5630 echo "$as_me: failed program was:" >&5
5631 sed 's/^/| /' conftest.
$ac_ext >&5
5633 eval "$as_ac_Header=no"
5636 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5638 ac_res
=`eval echo '${'$as_ac_Header'}'`
5639 { echo "$as_me:$LINENO: result: $ac_res" >&5
5640 echo "${ECHO_T}$ac_res" >&6; }
5641 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5642 cat >>confdefs.h
<<_ACEOF
5643 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5646 ac_header_dirent
=$ac_hdr; break
5650 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5651 if test $ac_header_dirent = dirent.h
; then
5652 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5653 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5654 if test "${ac_cv_search_opendir+set}" = set; then
5655 echo $ECHO_N "(cached) $ECHO_C" >&6
5657 ac_func_search_save_LIBS
=$LIBS
5658 cat >conftest.
$ac_ext <<_ACEOF
5661 cat confdefs.h
>>conftest.
$ac_ext
5662 cat >>conftest.
$ac_ext <<_ACEOF
5663 /* end confdefs.h. */
5665 /* Override any GCC internal prototype to avoid an error.
5666 Use char because int might match the return type of a GCC
5667 builtin and then its argument prototype would still apply. */
5680 for ac_lib
in '' dir
; do
5681 if test -z "$ac_lib"; then
5682 ac_res
="none required"
5685 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5687 rm -f conftest.
$ac_objext conftest
$ac_exeext
5688 if { (ac_try
="$ac_link"
5690 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5691 *) ac_try_echo=$ac_try;;
5693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5694 (eval "$ac_link") 2>conftest.er1
5696 grep -v '^ *+' conftest.er1 >conftest.err
5698 cat conftest.err >&5
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); } && {
5701 test -z "$ac_c_werror_flag" ||
5702 test ! -s conftest.err
5703 } && test -s conftest$ac_exeext &&
5704 $as_test_x conftest$ac_exeext; then
5705 ac_cv_search_opendir=$ac_res
5707 echo "$as_me: failed program was:" >&5
5708 sed 's/^/| /' conftest.$ac_ext >&5
5713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5715 if test "${ac_cv_search_opendir+set}" = set; then
5719 if test "${ac_cv_search_opendir+set}" = set; then
5722 ac_cv_search_opendir=no
5725 LIBS=$ac_func_search_save_LIBS
5727 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5728 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5729 ac_res=$ac_cv_search_opendir
5730 if test "$ac_res" != no; then
5731 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5736 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5737 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5738 if test "${ac_cv_search_opendir+set}" = set; then
5739 echo $ECHO_N "(cached) $ECHO_C" >&6
5741 ac_func_search_save_LIBS=$LIBS
5742 cat >conftest.$ac_ext <<_ACEOF
5745 cat confdefs.h >>conftest.$ac_ext
5746 cat >>conftest.$ac_ext <<_ACEOF
5747 /* end confdefs.h. */
5749 /* Override any GCC internal prototype to avoid an error.
5750 Use char because int might match the return type of a GCC
5751 builtin and then its argument prototype would still apply. */
5764 for ac_lib in '' x; do
5765 if test -z "$ac_lib"; then
5766 ac_res="none required"
5769 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5771 rm -f conftest.$ac_objext conftest$ac_exeext
5772 if { (ac_try="$ac_link"
5774 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5775 *) ac_try_echo
=$ac_try;;
5777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5778 (eval "$ac_link") 2>conftest.er1
5780 grep -v '^ *+' conftest.er1
>conftest.err
5782 cat conftest.err
>&5
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); } && {
5785 test -z "$ac_c_werror_flag" ||
5786 test ! -s conftest.err
5787 } && test -s conftest
$ac_exeext &&
5788 $as_test_x conftest
$ac_exeext; then
5789 ac_cv_search_opendir
=$ac_res
5791 echo "$as_me: failed program was:" >&5
5792 sed 's/^/| /' conftest.
$ac_ext >&5
5797 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5799 if test "${ac_cv_search_opendir+set}" = set; then
5803 if test "${ac_cv_search_opendir+set}" = set; then
5806 ac_cv_search_opendir
=no
5809 LIBS
=$ac_func_search_save_LIBS
5811 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5812 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5813 ac_res
=$ac_cv_search_opendir
5814 if test "$ac_res" != no
; then
5815 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5821 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
5822 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
5823 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5824 echo $ECHO_N "(cached) $ECHO_C" >&6
5826 cat >conftest.
$ac_ext <<_ACEOF
5829 cat confdefs.h
>>conftest.
$ac_ext
5830 cat >>conftest.
$ac_ext <<_ACEOF
5831 /* end confdefs.h. */
5832 #include <sys/types.h>
5836 return makedev(0, 0);
5841 rm -f conftest.
$ac_objext conftest
$ac_exeext
5842 if { (ac_try
="$ac_link"
5844 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5845 *) ac_try_echo=$ac_try;;
5847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5848 (eval "$ac_link") 2>conftest.er1
5850 grep -v '^ *+' conftest.er1 >conftest.err
5852 cat conftest.err >&5
5853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854 (exit $ac_status); } && {
5855 test -z "$ac_c_werror_flag" ||
5856 test ! -s conftest.err
5857 } && test -s conftest$ac_exeext &&
5858 $as_test_x conftest$ac_exeext; then
5859 ac_cv_header_sys_types_h_makedev=yes
5861 echo "$as_me: failed program was:" >&5
5862 sed 's/^/| /' conftest.$ac_ext >&5
5864 ac_cv_header_sys_types_h_makedev=no
5867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5868 conftest$ac_exeext conftest.$ac_ext
5871 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
5872 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
5874 if test $ac_cv_header_sys_types_h_makedev = no; then
5875 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5876 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5877 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
5878 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5879 echo $ECHO_N "(cached) $ECHO_C" >&6
5881 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
5882 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
5884 # Is the header compilable?
5885 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
5886 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
5887 cat >conftest.$ac_ext <<_ACEOF
5890 cat confdefs.h >>conftest.$ac_ext
5891 cat >>conftest.$ac_ext <<_ACEOF
5892 /* end confdefs.h. */
5893 $ac_includes_default
5894 #include <sys/mkdev.h>
5896 rm -f conftest.$ac_objext
5897 if { (ac_try="$ac_compile"
5899 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5900 *) ac_try_echo
=$ac_try;;
5902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5903 (eval "$ac_compile") 2>conftest.er1
5905 grep -v '^ *+' conftest.er1
>conftest.err
5907 cat conftest.err
>&5
5908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5909 (exit $ac_status); } && {
5910 test -z "$ac_c_werror_flag" ||
5911 test ! -s conftest.err
5912 } && test -s conftest.
$ac_objext; then
5913 ac_header_compiler
=yes
5915 echo "$as_me: failed program was:" >&5
5916 sed 's/^/| /' conftest.
$ac_ext >&5
5918 ac_header_compiler
=no
5921 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5922 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5923 echo "${ECHO_T}$ac_header_compiler" >&6; }
5925 # Is the header present?
5926 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
5927 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
5928 cat >conftest.
$ac_ext <<_ACEOF
5931 cat confdefs.h
>>conftest.
$ac_ext
5932 cat >>conftest.
$ac_ext <<_ACEOF
5933 /* end confdefs.h. */
5934 #include <sys/mkdev.h>
5936 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5938 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5939 *) ac_try_echo=$ac_try;;
5941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5942 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5944 grep -v '^ *+' conftest.er1 >conftest.err
5946 cat conftest.err >&5
5947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); } >/dev/null && {
5949 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5950 test ! -s conftest.err
5952 ac_header_preproc=yes
5954 echo "$as_me: failed program was:" >&5
5955 sed 's/^/| /' conftest.$ac_ext >&5
5957 ac_header_preproc=no
5960 rm -f conftest.err conftest.$ac_ext
5961 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5962 echo "${ECHO_T}$ac_header_preproc" >&6; }
5964 # So? What about this header?
5965 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5967 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
5968 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5969 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
5970 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
5971 ac_header_preproc=yes
5974 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
5975 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
5976 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
5977 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
5978 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
5979 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
5980 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
5981 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
5982 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
5983 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
5984 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
5985 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
5987 ## ------------------------------------------------ ##
5988 ## Report this to http://www.python.org/python-bugs ##
5989 ## ------------------------------------------------ ##
5991 ) | sed "s/^/$as_me: WARNING: /" >&2
5994 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
5995 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
5996 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5997 echo $ECHO_N "(cached) $ECHO_C" >&6
5999 ac_cv_header_sys_mkdev_h=$ac_header_preproc
6001 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6002 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
6005 if test $ac_cv_header_sys_mkdev_h = yes; then
6007 cat >>confdefs.h <<\_ACEOF
6008 #define MAJOR_IN_MKDEV 1
6015 if test $ac_cv_header_sys_mkdev_h = no; then
6016 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6017 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6018 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6019 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6020 echo $ECHO_N "(cached) $ECHO_C" >&6
6022 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6023 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6025 # Is the header compilable?
6026 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6027 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
6028 cat >conftest.$ac_ext <<_ACEOF
6031 cat confdefs.h >>conftest.$ac_ext
6032 cat >>conftest.$ac_ext <<_ACEOF
6033 /* end confdefs.h. */
6034 $ac_includes_default
6035 #include <sys/sysmacros.h>
6037 rm -f conftest.$ac_objext
6038 if { (ac_try="$ac_compile"
6040 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6041 *) ac_try_echo
=$ac_try;;
6043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6044 (eval "$ac_compile") 2>conftest.er1
6046 grep -v '^ *+' conftest.er1
>conftest.err
6048 cat conftest.err
>&5
6049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050 (exit $ac_status); } && {
6051 test -z "$ac_c_werror_flag" ||
6052 test ! -s conftest.err
6053 } && test -s conftest.
$ac_objext; then
6054 ac_header_compiler
=yes
6056 echo "$as_me: failed program was:" >&5
6057 sed 's/^/| /' conftest.
$ac_ext >&5
6059 ac_header_compiler
=no
6062 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6063 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6064 echo "${ECHO_T}$ac_header_compiler" >&6; }
6066 # Is the header present?
6067 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
6068 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
6069 cat >conftest.
$ac_ext <<_ACEOF
6072 cat confdefs.h
>>conftest.
$ac_ext
6073 cat >>conftest.
$ac_ext <<_ACEOF
6074 /* end confdefs.h. */
6075 #include <sys/sysmacros.h>
6077 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6079 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6080 *) ac_try_echo=$ac_try;;
6082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6083 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6085 grep -v '^ *+' conftest.er1 >conftest.err
6087 cat conftest.err >&5
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); } >/dev/null && {
6090 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6091 test ! -s conftest.err
6093 ac_header_preproc=yes
6095 echo "$as_me: failed program was:" >&5
6096 sed 's/^/| /' conftest.$ac_ext >&5
6098 ac_header_preproc=no
6101 rm -f conftest.err conftest.$ac_ext
6102 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6103 echo "${ECHO_T}$ac_header_preproc" >&6; }
6105 # So? What about this header?
6106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6108 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
6109 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6110 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
6111 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
6112 ac_header_preproc=yes
6115 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
6116 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
6117 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
6118 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
6119 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
6120 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
6121 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
6122 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
6123 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
6124 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
6125 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
6126 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
6128 ## ------------------------------------------------ ##
6129 ## Report this to http://www.python.org/python-bugs ##
6130 ## ------------------------------------------------ ##
6132 ) | sed "s/^/$as_me: WARNING: /" >&2
6135 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6136 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
6137 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6138 echo $ECHO_N "(cached) $ECHO_C" >&6
6140 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
6142 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6143 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
6146 if test $ac_cv_header_sys_sysmacros_h = yes; then
6148 cat >>confdefs.h <<\_ACEOF
6149 #define MAJOR_IN_SYSMACROS 1
6159 # On Solaris, term.h requires curses.h
6161 for ac_header in term.h
6163 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6164 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6166 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6167 echo $ECHO_N "(cached) $ECHO_C" >&6
6169 cat >conftest.$ac_ext <<_ACEOF
6172 cat confdefs.h >>conftest.$ac_ext
6173 cat >>conftest.$ac_ext <<_ACEOF
6174 /* end confdefs.h. */
6176 #ifdef HAVE_CURSES_H
6181 #include <$ac_header>
6183 rm -f conftest.$ac_objext
6184 if { (ac_try="$ac_compile"
6186 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6187 *) ac_try_echo
=$ac_try;;
6189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6190 (eval "$ac_compile") 2>conftest.er1
6192 grep -v '^ *+' conftest.er1
>conftest.err
6194 cat conftest.err
>&5
6195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196 (exit $ac_status); } && {
6197 test -z "$ac_c_werror_flag" ||
6198 test ! -s conftest.err
6199 } && test -s conftest.
$ac_objext; then
6200 eval "$as_ac_Header=yes"
6202 echo "$as_me: failed program was:" >&5
6203 sed 's/^/| /' conftest.
$ac_ext >&5
6205 eval "$as_ac_Header=no"
6208 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6210 ac_res
=`eval echo '${'$as_ac_Header'}'`
6211 { echo "$as_me:$LINENO: result: $ac_res" >&5
6212 echo "${ECHO_T}$ac_res" >&6; }
6213 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6214 cat >>confdefs.h
<<_ACEOF
6215 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6223 # On Linux, netlink.h requires asm/types.h
6225 for ac_header
in linux
/netlink.h
6227 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6228 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6230 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6231 echo $ECHO_N "(cached) $ECHO_C" >&6
6233 cat >conftest.
$ac_ext <<_ACEOF
6236 cat confdefs.h
>>conftest.
$ac_ext
6237 cat >>conftest.
$ac_ext <<_ACEOF
6238 /* end confdefs.h. */
6240 #ifdef HAVE_ASM_TYPES_H
6241 #include <asm/types.h>
6243 #ifdef HAVE_SYS_SOCKET_H
6244 #include <sys/socket.h>
6248 #include <$ac_header>
6250 rm -f conftest.
$ac_objext
6251 if { (ac_try
="$ac_compile"
6253 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6254 *) ac_try_echo=$ac_try;;
6256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6257 (eval "$ac_compile") 2>conftest.er1
6259 grep -v '^ *+' conftest.er1 >conftest.err
6261 cat conftest.err >&5
6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); } && {
6264 test -z "$ac_c_werror_flag" ||
6265 test ! -s conftest.err
6266 } && test -s conftest.$ac_objext; then
6267 eval "$as_ac_Header=yes"
6269 echo "$as_me: failed program was:" >&5
6270 sed 's/^/| /' conftest.$ac_ext >&5
6272 eval "$as_ac_Header=no"
6275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6277 ac_res=`eval echo '${'$as_ac_Header'}'`
6278 { echo "$as_me:$LINENO: result: $ac_res" >&5
6279 echo "${ECHO_T}$ac_res" >&6; }
6280 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6281 cat >>confdefs.h <<_ACEOF
6282 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6290 # checks for typedefs
6292 { echo "$as_me:$LINENO: checking for clock_t in time.h" >&5
6293 echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6; }
6294 cat >conftest.$ac_ext <<_ACEOF
6297 cat confdefs.h >>conftest.$ac_ext
6298 cat >>conftest.$ac_ext <<_ACEOF
6299 /* end confdefs.h. */
6303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6304 $EGREP "clock_t" >/dev/null 2>&1; then
6309 cat >>confdefs.h <<\_ACEOF
6310 #define clock_t long
6317 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
6318 echo "${ECHO_T}$was_it_defined" >&6; }
6320 # Check whether using makedev requires defining _OSF_SOURCE
6321 { echo "$as_me:$LINENO: checking for makedev" >&5
6322 echo $ECHO_N "checking for makedev... $ECHO_C" >&6; }
6323 cat >conftest.$ac_ext <<_ACEOF
6326 cat confdefs.h >>conftest.$ac_ext
6327 cat >>conftest.$ac_ext <<_ACEOF
6328 /* end confdefs.h. */
6329 #include <sys/types.h>
6338 rm -f conftest.$ac_objext conftest$ac_exeext
6339 if { (ac_try="$ac_link"
6341 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6342 *) ac_try_echo
=$ac_try;;
6344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6345 (eval "$ac_link") 2>conftest.er1
6347 grep -v '^ *+' conftest.er1
>conftest.err
6349 cat conftest.err
>&5
6350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351 (exit $ac_status); } && {
6352 test -z "$ac_c_werror_flag" ||
6353 test ! -s conftest.err
6354 } && test -s conftest
$ac_exeext &&
6355 $as_test_x conftest
$ac_exeext; then
6356 ac_cv_has_makedev
=yes
6358 echo "$as_me: failed program was:" >&5
6359 sed 's/^/| /' conftest.
$ac_ext >&5
6361 ac_cv_has_makedev
=no
6364 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6365 conftest
$ac_exeext conftest.
$ac_ext
6366 if test "$ac_cv_has_makedev" = "no"; then
6367 # we didn't link, try if _OSF_SOURCE will allow us to link
6368 cat >conftest.
$ac_ext <<_ACEOF
6371 cat confdefs.h
>>conftest.
$ac_ext
6372 cat >>conftest.
$ac_ext <<_ACEOF
6373 /* end confdefs.h. */
6375 #define _OSF_SOURCE 1
6376 #include <sys/types.h>
6386 rm -f conftest.
$ac_objext conftest
$ac_exeext
6387 if { (ac_try
="$ac_link"
6389 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6390 *) ac_try_echo=$ac_try;;
6392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6393 (eval "$ac_link") 2>conftest.er1
6395 grep -v '^ *+' conftest.er1 >conftest.err
6397 cat conftest.err >&5
6398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399 (exit $ac_status); } && {
6400 test -z "$ac_c_werror_flag" ||
6401 test ! -s conftest.err
6402 } && test -s conftest$ac_exeext &&
6403 $as_test_x conftest$ac_exeext; then
6404 ac_cv_has_makedev=yes
6406 echo "$as_me: failed program was:" >&5
6407 sed 's/^/| /' conftest.$ac_ext >&5
6409 ac_cv_has_makedev=no
6412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6413 conftest$ac_exeext conftest.$ac_ext
6414 if test "$ac_cv_has_makedev" = "yes"; then
6416 cat >>confdefs.h <<\_ACEOF
6417 #define _OSF_SOURCE 1
6422 { echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5
6423 echo "${ECHO_T}$ac_cv_has_makedev" >&6; }
6424 if test "$ac_cv_has_makedev" = "yes"; then
6426 cat >>confdefs.h <<\_ACEOF
6427 #define HAVE_MAKEDEV 1
6432 # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in
6433 # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are
6434 # defined, but the compiler does not support pragma redefine_extname,
6435 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
6436 # structures (such as rlimit64) without declaring them. As a
6437 # work-around, disable LFS on such configurations
6440 { echo "$as_me:$LINENO: checking Solaris LFS bug" >&5
6441 echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6; }
6442 cat >conftest.$ac_ext <<_ACEOF
6445 cat confdefs.h >>conftest.$ac_ext
6446 cat >>conftest.$ac_ext <<_ACEOF
6447 /* end confdefs.h. */
6449 #define _LARGEFILE_SOURCE 1
6450 #define _FILE_OFFSET_BITS 64
6451 #include <sys/resource.h>
6461 rm -f conftest.$ac_objext
6462 if { (ac_try="$ac_compile"
6464 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6465 *) ac_try_echo
=$ac_try;;
6467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6468 (eval "$ac_compile") 2>conftest.er1
6470 grep -v '^ *+' conftest.er1
>conftest.err
6472 cat conftest.err
>&5
6473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474 (exit $ac_status); } && {
6475 test -z "$ac_c_werror_flag" ||
6476 test ! -s conftest.err
6477 } && test -s conftest.
$ac_objext; then
6480 echo "$as_me: failed program was:" >&5
6481 sed 's/^/| /' conftest.
$ac_ext >&5
6486 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6487 { echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5
6488 echo "${ECHO_T}$sol_lfs_bug" >&6; }
6489 if test "$sol_lfs_bug" = "yes"; then
6493 if test "$use_lfs" = "yes"; then
6494 # Two defines needed to enable largefile support on various platforms
6495 # These may affect some typedefs
6497 cat >>confdefs.h
<<\_ACEOF
6498 #define _LARGEFILE_SOURCE 1
6502 cat >>confdefs.h
<<\_ACEOF
6503 #define _FILE_OFFSET_BITS 64
6508 # Add some code to confdefs.h so that the test for off_t works on SCO
6509 cat >> confdefs.h
<<\EOF
6515 # Type availability checks
6516 { echo "$as_me:$LINENO: checking for mode_t" >&5
6517 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
6518 if test "${ac_cv_type_mode_t+set}" = set; then
6519 echo $ECHO_N "(cached) $ECHO_C" >&6
6521 cat >conftest.
$ac_ext <<_ACEOF
6524 cat confdefs.h
>>conftest.
$ac_ext
6525 cat >>conftest.
$ac_ext <<_ACEOF
6526 /* end confdefs.h. */
6527 $ac_includes_default
6528 typedef mode_t ac__type_new_;
6532 if ((ac__type_new_ *) 0)
6534 if (sizeof (ac__type_new_))
6540 rm -f conftest.
$ac_objext
6541 if { (ac_try
="$ac_compile"
6543 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6544 *) ac_try_echo=$ac_try;;
6546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6547 (eval "$ac_compile") 2>conftest.er1
6549 grep -v '^ *+' conftest.er1 >conftest.err
6551 cat conftest.err >&5
6552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6553 (exit $ac_status); } && {
6554 test -z "$ac_c_werror_flag" ||
6555 test ! -s conftest.err
6556 } && test -s conftest.$ac_objext; then
6557 ac_cv_type_mode_t=yes
6559 echo "$as_me: failed program was:" >&5
6560 sed 's/^/| /' conftest.$ac_ext >&5
6562 ac_cv_type_mode_t=no
6565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6567 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6568 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
6569 if test $ac_cv_type_mode_t = yes; then
6573 cat >>confdefs.h <<_ACEOF
6579 { echo "$as_me:$LINENO: checking for off_t" >&5
6580 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6581 if test "${ac_cv_type_off_t+set}" = set; then
6582 echo $ECHO_N "(cached) $ECHO_C" >&6
6584 cat >conftest.$ac_ext <<_ACEOF
6587 cat confdefs.h >>conftest.$ac_ext
6588 cat >>conftest.$ac_ext <<_ACEOF
6589 /* end confdefs.h. */
6590 $ac_includes_default
6591 typedef off_t ac__type_new_;
6595 if ((ac__type_new_ *) 0)
6597 if (sizeof (ac__type_new_))
6603 rm -f conftest.$ac_objext
6604 if { (ac_try="$ac_compile"
6606 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6607 *) ac_try_echo
=$ac_try;;
6609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6610 (eval "$ac_compile") 2>conftest.er1
6612 grep -v '^ *+' conftest.er1
>conftest.err
6614 cat conftest.err
>&5
6615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616 (exit $ac_status); } && {
6617 test -z "$ac_c_werror_flag" ||
6618 test ! -s conftest.err
6619 } && test -s conftest.
$ac_objext; then
6620 ac_cv_type_off_t
=yes
6622 echo "$as_me: failed program was:" >&5
6623 sed 's/^/| /' conftest.
$ac_ext >&5
6628 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6630 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6631 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6632 if test $ac_cv_type_off_t = yes; then
6636 cat >>confdefs.h
<<_ACEOF
6637 #define off_t long int
6642 { echo "$as_me:$LINENO: checking for pid_t" >&5
6643 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
6644 if test "${ac_cv_type_pid_t+set}" = set; then
6645 echo $ECHO_N "(cached) $ECHO_C" >&6
6647 cat >conftest.
$ac_ext <<_ACEOF
6650 cat confdefs.h
>>conftest.
$ac_ext
6651 cat >>conftest.
$ac_ext <<_ACEOF
6652 /* end confdefs.h. */
6653 $ac_includes_default
6654 typedef pid_t ac__type_new_;
6658 if ((ac__type_new_ *) 0)
6660 if (sizeof (ac__type_new_))
6666 rm -f conftest.
$ac_objext
6667 if { (ac_try
="$ac_compile"
6669 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6670 *) ac_try_echo=$ac_try;;
6672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6673 (eval "$ac_compile") 2>conftest.er1
6675 grep -v '^ *+' conftest.er1 >conftest.err
6677 cat conftest.err >&5
6678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679 (exit $ac_status); } && {
6680 test -z "$ac_c_werror_flag" ||
6681 test ! -s conftest.err
6682 } && test -s conftest.$ac_objext; then
6683 ac_cv_type_pid_t=yes
6685 echo "$as_me: failed program was:" >&5
6686 sed 's/^/| /' conftest.$ac_ext >&5
6691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6693 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6694 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
6695 if test $ac_cv_type_pid_t = yes; then
6699 cat >>confdefs.h <<_ACEOF
6705 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6706 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6707 if test "${ac_cv_type_signal+set}" = set; then
6708 echo $ECHO_N "(cached) $ECHO_C" >&6
6710 cat >conftest.$ac_ext <<_ACEOF
6713 cat confdefs.h >>conftest.$ac_ext
6714 cat >>conftest.$ac_ext <<_ACEOF
6715 /* end confdefs.h. */
6716 #include <sys/types.h>
6722 return *(signal (0, 0)) (0) == 1;
6727 rm -f conftest.$ac_objext
6728 if { (ac_try="$ac_compile"
6730 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6731 *) ac_try_echo
=$ac_try;;
6733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6734 (eval "$ac_compile") 2>conftest.er1
6736 grep -v '^ *+' conftest.er1
>conftest.err
6738 cat conftest.err
>&5
6739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740 (exit $ac_status); } && {
6741 test -z "$ac_c_werror_flag" ||
6742 test ! -s conftest.err
6743 } && test -s conftest.
$ac_objext; then
6744 ac_cv_type_signal
=int
6746 echo "$as_me: failed program was:" >&5
6747 sed 's/^/| /' conftest.
$ac_ext >&5
6749 ac_cv_type_signal
=void
6752 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6754 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6755 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6757 cat >>confdefs.h
<<_ACEOF
6758 #define RETSIGTYPE $ac_cv_type_signal
6762 { echo "$as_me:$LINENO: checking for size_t" >&5
6763 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6764 if test "${ac_cv_type_size_t+set}" = set; then
6765 echo $ECHO_N "(cached) $ECHO_C" >&6
6767 cat >conftest.
$ac_ext <<_ACEOF
6770 cat confdefs.h
>>conftest.
$ac_ext
6771 cat >>conftest.
$ac_ext <<_ACEOF
6772 /* end confdefs.h. */
6773 $ac_includes_default
6774 typedef size_t ac__type_new_;
6778 if ((ac__type_new_ *) 0)
6780 if (sizeof (ac__type_new_))
6786 rm -f conftest.
$ac_objext
6787 if { (ac_try
="$ac_compile"
6789 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6790 *) ac_try_echo=$ac_try;;
6792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6793 (eval "$ac_compile") 2>conftest.er1
6795 grep -v '^ *+' conftest.er1 >conftest.err
6797 cat conftest.err >&5
6798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6799 (exit $ac_status); } && {
6800 test -z "$ac_c_werror_flag" ||
6801 test ! -s conftest.err
6802 } && test -s conftest.$ac_objext; then
6803 ac_cv_type_size_t=yes
6805 echo "$as_me: failed program was:" >&5
6806 sed 's/^/| /' conftest.$ac_ext >&5
6808 ac_cv_type_size_t=no
6811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6813 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6814 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
6815 if test $ac_cv_type_size_t = yes; then
6819 cat >>confdefs.h <<_ACEOF
6820 #define size_t unsigned int
6825 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6826 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
6827 if test "${ac_cv_type_uid_t+set}" = set; then
6828 echo $ECHO_N "(cached) $ECHO_C" >&6
6830 cat >conftest.$ac_ext <<_ACEOF
6833 cat confdefs.h >>conftest.$ac_ext
6834 cat >>conftest.$ac_ext <<_ACEOF
6835 /* end confdefs.h. */
6836 #include <sys/types.h>
6839 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6840 $EGREP "uid_t" >/dev/null 2>&1; then
6841 ac_cv_type_uid_t=yes
6848 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6849 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
6850 if test $ac_cv_type_uid_t = no; then
6852 cat >>confdefs.h <<\_ACEOF
6857 cat >>confdefs.h <<\_ACEOF
6863 { echo "$as_me:$LINENO: checking for ssize_t" >&5
6864 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
6865 if test "${ac_cv_type_ssize_t+set}" = set; then
6866 echo $ECHO_N "(cached) $ECHO_C" >&6
6868 cat >conftest.$ac_ext <<_ACEOF
6871 cat confdefs.h >>conftest.$ac_ext
6872 cat >>conftest.$ac_ext <<_ACEOF
6873 /* end confdefs.h. */
6874 $ac_includes_default
6875 typedef ssize_t ac__type_new_;
6879 if ((ac__type_new_ *) 0)
6881 if (sizeof (ac__type_new_))
6887 rm -f conftest.$ac_objext
6888 if { (ac_try="$ac_compile"
6890 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6891 *) ac_try_echo
=$ac_try;;
6893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6894 (eval "$ac_compile") 2>conftest.er1
6896 grep -v '^ *+' conftest.er1
>conftest.err
6898 cat conftest.err
>&5
6899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900 (exit $ac_status); } && {
6901 test -z "$ac_c_werror_flag" ||
6902 test ! -s conftest.err
6903 } && test -s conftest.
$ac_objext; then
6904 ac_cv_type_ssize_t
=yes
6906 echo "$as_me: failed program was:" >&5
6907 sed 's/^/| /' conftest.
$ac_ext >&5
6909 ac_cv_type_ssize_t
=no
6912 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6914 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6915 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
6916 if test $ac_cv_type_ssize_t = yes; then
6918 cat >>confdefs.h
<<\_ACEOF
6919 #define HAVE_SSIZE_T 1
6925 # Sizes of various common basic types
6926 # ANSI C requires sizeof(char) == 1, so no need to check it
6927 { echo "$as_me:$LINENO: checking for int" >&5
6928 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
6929 if test "${ac_cv_type_int+set}" = set; then
6930 echo $ECHO_N "(cached) $ECHO_C" >&6
6932 cat >conftest.
$ac_ext <<_ACEOF
6935 cat confdefs.h
>>conftest.
$ac_ext
6936 cat >>conftest.
$ac_ext <<_ACEOF
6937 /* end confdefs.h. */
6938 $ac_includes_default
6939 typedef int ac__type_new_;
6943 if ((ac__type_new_ *) 0)
6945 if (sizeof (ac__type_new_))
6951 rm -f conftest.
$ac_objext
6952 if { (ac_try
="$ac_compile"
6954 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6955 *) ac_try_echo=$ac_try;;
6957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6958 (eval "$ac_compile") 2>conftest.er1
6960 grep -v '^ *+' conftest.er1 >conftest.err
6962 cat conftest.err >&5
6963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964 (exit $ac_status); } && {
6965 test -z "$ac_c_werror_flag" ||
6966 test ! -s conftest.err
6967 } && test -s conftest.$ac_objext; then
6970 echo "$as_me: failed program was:" >&5
6971 sed 's/^/| /' conftest.$ac_ext >&5
6976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6978 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6979 echo "${ECHO_T}$ac_cv_type_int" >&6; }
6981 # The cast to long int works around a bug in the HP C Compiler
6982 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6983 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
6984 # This bug is HP SR number 8606223364.
6985 { echo "$as_me:$LINENO: checking size of int" >&5
6986 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
6987 if test "${ac_cv_sizeof_int+set}" = set; then
6988 echo $ECHO_N "(cached) $ECHO_C" >&6
6990 if test "$cross_compiling" = yes; then
6991 # Depending upon the size, compute the lo and hi bounds.
6992 cat >conftest.$ac_ext <<_ACEOF
6995 cat confdefs.h >>conftest.$ac_ext
6996 cat >>conftest.$ac_ext <<_ACEOF
6997 /* end confdefs.h. */
6998 $ac_includes_default
6999 typedef int ac__type_sizeof_;
7003 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7010 rm -f conftest.$ac_objext
7011 if { (ac_try="$ac_compile"
7013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7014 *) ac_try_echo=$ac_try;;
7016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7017 (eval "$ac_compile") 2>conftest.er1
7019 grep -v '^
*+' conftest.er1 >conftest.err
7021 cat conftest.err >&5
7022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023 (exit $ac_status); } && {
7024 test -z "$ac_c_werror_flag" ||
7025 test ! -s conftest.err
7026 } && test -s conftest.$ac_objext; then
7029 cat >conftest.$ac_ext <<_ACEOF
7032 cat confdefs.h >>conftest.$ac_ext
7033 cat >>conftest.$ac_ext <<_ACEOF
7034 /* end confdefs.h. */
7035 $ac_includes_default
7036 typedef int ac__type_sizeof_;
7040 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7047 rm -f conftest.$ac_objext
7048 if { (ac_try="$ac_compile"
7050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7051 *) ac_try_echo=$ac_try;;
7053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7054 (eval "$ac_compile") 2>conftest.er1
7056 grep -v '^
*+' conftest.er1 >conftest.err
7058 cat conftest.err >&5
7059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060 (exit $ac_status); } && {
7061 test -z "$ac_c_werror_flag" ||
7062 test ! -s conftest.err
7063 } && test -s conftest.$ac_objext; then
7064 ac_hi=$ac_mid; break
7066 echo "$as_me: failed program was:" >&5
7067 sed 's
/^
/|
/' conftest.$ac_ext >&5
7069 ac_lo=`expr $ac_mid + 1`
7070 if test $ac_lo -le $ac_mid; then
7074 ac_mid=`expr 2 '*' $ac_mid + 1`
7077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7080 echo "$as_me: failed program was:" >&5
7081 sed 's
/^
/|
/' conftest.$ac_ext >&5
7083 cat >conftest.$ac_ext <<_ACEOF
7086 cat confdefs.h >>conftest.$ac_ext
7087 cat >>conftest.$ac_ext <<_ACEOF
7088 /* end confdefs.h. */
7089 $ac_includes_default
7090 typedef int ac__type_sizeof_;
7094 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7101 rm -f conftest.$ac_objext
7102 if { (ac_try="$ac_compile"
7104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7105 *) ac_try_echo=$ac_try;;
7107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7108 (eval "$ac_compile") 2>conftest.er1
7110 grep -v '^
*+' conftest.er1 >conftest.err
7112 cat conftest.err >&5
7113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7114 (exit $ac_status); } && {
7115 test -z "$ac_c_werror_flag" ||
7116 test ! -s conftest.err
7117 } && test -s conftest.$ac_objext; then
7120 cat >conftest.$ac_ext <<_ACEOF
7123 cat confdefs.h >>conftest.$ac_ext
7124 cat >>conftest.$ac_ext <<_ACEOF
7125 /* end confdefs.h. */
7126 $ac_includes_default
7127 typedef int ac__type_sizeof_;
7131 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7138 rm -f conftest.$ac_objext
7139 if { (ac_try="$ac_compile"
7141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7142 *) ac_try_echo=$ac_try;;
7144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7145 (eval "$ac_compile") 2>conftest.er1
7147 grep -v '^
*+' conftest.er1 >conftest.err
7149 cat conftest.err >&5
7150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151 (exit $ac_status); } && {
7152 test -z "$ac_c_werror_flag" ||
7153 test ! -s conftest.err
7154 } && test -s conftest.$ac_objext; then
7155 ac_lo=$ac_mid; break
7157 echo "$as_me: failed program was:" >&5
7158 sed 's
/^
/|
/' conftest.$ac_ext >&5
7160 ac_hi=`expr '(' $ac_mid ')' - 1`
7161 if test $ac_mid -le $ac_hi; then
7165 ac_mid=`expr 2 '*' $ac_mid`
7168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7171 echo "$as_me: failed program was:" >&5
7172 sed 's
/^
/|
/' conftest.$ac_ext >&5
7177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7181 # Binary search between lo and hi bounds.
7182 while test "x$ac_lo" != "x$ac_hi"; do
7183 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7184 cat >conftest.$ac_ext <<_ACEOF
7187 cat confdefs.h >>conftest.$ac_ext
7188 cat >>conftest.$ac_ext <<_ACEOF
7189 /* end confdefs.h. */
7190 $ac_includes_default
7191 typedef int ac__type_sizeof_;
7195 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7202 rm -f conftest.$ac_objext
7203 if { (ac_try="$ac_compile"
7205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7206 *) ac_try_echo=$ac_try;;
7208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7209 (eval "$ac_compile") 2>conftest.er1
7211 grep -v '^
*+' conftest.er1 >conftest.err
7213 cat conftest.err >&5
7214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7215 (exit $ac_status); } && {
7216 test -z "$ac_c_werror_flag" ||
7217 test ! -s conftest.err
7218 } && test -s conftest.$ac_objext; then
7221 echo "$as_me: failed program was:" >&5
7222 sed 's
/^
/|
/' conftest.$ac_ext >&5
7224 ac_lo=`expr '(' $ac_mid ')' + 1`
7227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7230 ?*) ac_cv_sizeof_int=$ac_lo;;
7231 '') if test "$ac_cv_type_int" = yes; then
7232 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7233 See \`config.log' for more details.
" >&5
7234 echo "$as_me: error
: cannot compute sizeof
(int
)
7235 See \
`config.log' for more details." >&2;}
7236 { (exit 77); exit 77; }; }
7242 cat >conftest.$ac_ext <<_ACEOF
7245 cat confdefs.h >>conftest.$ac_ext
7246 cat >>conftest.$ac_ext <<_ACEOF
7247 /* end confdefs.h. */
7248 $ac_includes_default
7249 typedef int ac__type_sizeof_;
7250 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7251 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7258 FILE *f = fopen ("conftest.val", "w");
7261 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7263 long int i = longval ();
7264 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7266 fprintf (f, "%ld\n", i);
7270 unsigned long int i = ulongval ();
7271 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7273 fprintf (f, "%lu\n", i);
7275 return ferror (f) || fclose (f) != 0;
7281 rm -f conftest$ac_exeext
7282 if { (ac_try="$ac_link"
7284 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7285 *) ac_try_echo
=$ac_try;;
7287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7288 (eval "$ac_link") 2>&5
7290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7292 { (case "(($ac_try" in
7293 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7294 *) ac_try_echo=$ac_try;;
7296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7297 (eval "$ac_try") 2>&5
7299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300 (exit $ac_status); }; }; then
7301 ac_cv_sizeof_int=`cat conftest.val
`
7303 echo "$as_me: program exited with status $ac_status" >&5
7304 echo "$as_me: failed program was:" >&5
7305 sed 's/^/| /' conftest.$ac_ext >&5
7308 if test "$ac_cv_type_int" = yes; then
7309 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7310 See \`config.log
' for more details." >&5
7311 echo "$as_me: error: cannot compute sizeof (int)
7312 See \`config.log' for more details.
" >&2;}
7313 { (exit 77); exit 77; }; }
7318 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7322 { echo "$as_me:$LINENO: result
: $ac_cv_sizeof_int" >&5
7323 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7327 cat >>confdefs.h <<_ACEOF
7328 #define SIZEOF_INT $ac_cv_sizeof_int
7332 { echo "$as_me:$LINENO: checking
for long
" >&5
7333 echo $ECHO_N "checking
for long...
$ECHO_C" >&6; }
7334 if test "${ac_cv_type_long+set}" = set; then
7335 echo $ECHO_N "(cached
) $ECHO_C" >&6
7337 cat >conftest.$ac_ext <<_ACEOF
7340 cat confdefs.h >>conftest.$ac_ext
7341 cat >>conftest.$ac_ext <<_ACEOF
7342 /* end confdefs.h. */
7343 $ac_includes_default
7344 typedef long ac__type_new_;
7348 if ((ac__type_new_ *) 0)
7350 if (sizeof (ac__type_new_))
7356 rm -f conftest.$ac_objext
7357 if { (ac_try="$ac_compile"
7359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7360 *) ac_try_echo=$ac_try;;
7362 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7363 (eval "$ac_compile") 2>conftest.er1
7365 grep -v '^ *+' conftest.er1 >conftest.err
7367 cat conftest.err >&5
7368 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7369 (exit $ac_status); } && {
7370 test -z "$ac_c_werror_flag" ||
7371 test ! -s conftest.err
7372 } && test -s conftest.$ac_objext; then
7375 echo "$as_me: failed program was
:" >&5
7376 sed 's/^/| /' conftest.$ac_ext >&5
7381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7383 { echo "$as_me:$LINENO: result
: $ac_cv_type_long" >&5
7384 echo "${ECHO_T}$ac_cv_type_long" >&6; }
7386 # The cast to long int works around a bug in the HP C Compiler
7387 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7388 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7389 # This bug is HP SR number 8606223364.
7390 { echo "$as_me:$LINENO: checking size of long
" >&5
7391 echo $ECHO_N "checking size of long...
$ECHO_C" >&6; }
7392 if test "${ac_cv_sizeof_long+set}" = set; then
7393 echo $ECHO_N "(cached
) $ECHO_C" >&6
7395 if test "$cross_compiling" = yes; then
7396 # Depending upon the size, compute the lo and hi bounds.
7397 cat >conftest.$ac_ext <<_ACEOF
7400 cat confdefs.h >>conftest.$ac_ext
7401 cat >>conftest.$ac_ext <<_ACEOF
7402 /* end confdefs.h. */
7403 $ac_includes_default
7404 typedef long ac__type_sizeof_;
7408 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7415 rm -f conftest.$ac_objext
7416 if { (ac_try="$ac_compile"
7418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7419 *) ac_try_echo=$ac_try;;
7421 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7422 (eval "$ac_compile") 2>conftest.er1
7424 grep -v '^ *+' conftest.er1 >conftest.err
7426 cat conftest.err >&5
7427 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7428 (exit $ac_status); } && {
7429 test -z "$ac_c_werror_flag" ||
7430 test ! -s conftest.err
7431 } && test -s conftest.$ac_objext; then
7434 cat >conftest.$ac_ext <<_ACEOF
7437 cat confdefs.h >>conftest.$ac_ext
7438 cat >>conftest.$ac_ext <<_ACEOF
7439 /* end confdefs.h. */
7440 $ac_includes_default
7441 typedef long ac__type_sizeof_;
7445 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7452 rm -f conftest.$ac_objext
7453 if { (ac_try="$ac_compile"
7455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7456 *) ac_try_echo=$ac_try;;
7458 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7459 (eval "$ac_compile") 2>conftest.er1
7461 grep -v '^ *+' conftest.er1 >conftest.err
7463 cat conftest.err >&5
7464 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7465 (exit $ac_status); } && {
7466 test -z "$ac_c_werror_flag" ||
7467 test ! -s conftest.err
7468 } && test -s conftest.$ac_objext; then
7469 ac_hi=$ac_mid; break
7471 echo "$as_me: failed program was
:" >&5
7472 sed 's/^/| /' conftest.$ac_ext >&5
7474 ac_lo=`expr $ac_mid + 1`
7475 if test $ac_lo -le $ac_mid; then
7479 ac_mid=`expr 2 '*' $ac_mid + 1`
7482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7485 echo "$as_me: failed program was
:" >&5
7486 sed 's/^/| /' conftest.$ac_ext >&5
7488 cat >conftest.$ac_ext <<_ACEOF
7491 cat confdefs.h >>conftest.$ac_ext
7492 cat >>conftest.$ac_ext <<_ACEOF
7493 /* end confdefs.h. */
7494 $ac_includes_default
7495 typedef long ac__type_sizeof_;
7499 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7506 rm -f conftest.$ac_objext
7507 if { (ac_try="$ac_compile"
7509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7510 *) ac_try_echo=$ac_try;;
7512 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7513 (eval "$ac_compile") 2>conftest.er1
7515 grep -v '^ *+' conftest.er1 >conftest.err
7517 cat conftest.err >&5
7518 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7519 (exit $ac_status); } && {
7520 test -z "$ac_c_werror_flag" ||
7521 test ! -s conftest.err
7522 } && test -s conftest.$ac_objext; then
7525 cat >conftest.$ac_ext <<_ACEOF
7528 cat confdefs.h >>conftest.$ac_ext
7529 cat >>conftest.$ac_ext <<_ACEOF
7530 /* end confdefs.h. */
7531 $ac_includes_default
7532 typedef long ac__type_sizeof_;
7536 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7543 rm -f conftest.$ac_objext
7544 if { (ac_try="$ac_compile"
7546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7547 *) ac_try_echo=$ac_try;;
7549 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7550 (eval "$ac_compile") 2>conftest.er1
7552 grep -v '^ *+' conftest.er1 >conftest.err
7554 cat conftest.err >&5
7555 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7556 (exit $ac_status); } && {
7557 test -z "$ac_c_werror_flag" ||
7558 test ! -s conftest.err
7559 } && test -s conftest.$ac_objext; then
7560 ac_lo=$ac_mid; break
7562 echo "$as_me: failed program was
:" >&5
7563 sed 's/^/| /' conftest.$ac_ext >&5
7565 ac_hi=`expr '(' $ac_mid ')' - 1`
7566 if test $ac_mid -le $ac_hi; then
7570 ac_mid=`expr 2 '*' $ac_mid`
7573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7576 echo "$as_me: failed program was
:" >&5
7577 sed 's/^/| /' conftest.$ac_ext >&5
7582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7586 # Binary search between lo and hi bounds.
7587 while test "x
$ac_lo" != "x
$ac_hi"; do
7588 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7589 cat >conftest.$ac_ext <<_ACEOF
7592 cat confdefs.h >>conftest.$ac_ext
7593 cat >>conftest.$ac_ext <<_ACEOF
7594 /* end confdefs.h. */
7595 $ac_includes_default
7596 typedef long ac__type_sizeof_;
7600 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7607 rm -f conftest.$ac_objext
7608 if { (ac_try="$ac_compile"
7610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7611 *) ac_try_echo=$ac_try;;
7613 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7614 (eval "$ac_compile") 2>conftest.er1
7616 grep -v '^ *+' conftest.er1 >conftest.err
7618 cat conftest.err >&5
7619 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7620 (exit $ac_status); } && {
7621 test -z "$ac_c_werror_flag" ||
7622 test ! -s conftest.err
7623 } && test -s conftest.$ac_objext; then
7626 echo "$as_me: failed program was
:" >&5
7627 sed 's/^/| /' conftest.$ac_ext >&5
7629 ac_lo=`expr '(' $ac_mid ')' + 1`
7632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7635 ?*) ac_cv_sizeof_long=$ac_lo;;
7636 '') if test "$ac_cv_type_long" = yes; then
7637 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long
)
7638 See \
`config.log' for more details." >&5
7639 echo "$as_me: error: cannot compute sizeof (long)
7640 See \`config.log
' for more details." >&2;}
7641 { (exit 77); exit 77; }; }
7647 cat >conftest.$ac_ext <<_ACEOF
7650 cat confdefs.h >>conftest.$ac_ext
7651 cat >>conftest.$ac_ext <<_ACEOF
7652 /* end confdefs.h. */
7653 $ac_includes_default
7654 typedef long ac__type_sizeof_;
7655 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7656 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7663 FILE *f = fopen ("conftest.val", "w");
7666 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7668 long int i = longval ();
7669 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7671 fprintf (f, "%ld\n", i);
7675 unsigned long int i = ulongval ();
7676 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7678 fprintf (f, "%lu\n", i);
7680 return ferror (f) || fclose (f) != 0;
7686 rm -f conftest$ac_exeext
7687 if { (ac_try="$ac_link"
7689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7690 *) ac_try_echo=$ac_try;;
7692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7693 (eval "$ac_link") 2>&5
7695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
7697 { (case "(($ac_try" in
7698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7699 *) ac_try_echo=$ac_try;;
7701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7702 (eval "$ac_try") 2>&5
7704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705 (exit $ac_status); }; }; then
7706 ac_cv_sizeof_long=`cat conftest.val`
7708 echo "$as_me: program exited with status $ac_status" >&5
7709 echo "$as_me: failed program was:" >&5
7710 sed 's
/^
/|
/' conftest.$ac_ext >&5
7713 if test "$ac_cv_type_long" = yes; then
7714 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
7715 See \`config.log' for more details.
" >&5
7716 echo "$as_me: error
: cannot compute sizeof
(long
)
7717 See \
`config.log' for more details." >&2;}
7718 { (exit 77); exit 77; }; }
7723 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7727 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7728 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
7732 cat >>confdefs.h <<_ACEOF
7733 #define SIZEOF_LONG $ac_cv_sizeof_long
7737 { echo "$as_me:$LINENO: checking for void *" >&5
7738 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
7739 if test "${ac_cv_type_void_p+set}" = set; then
7740 echo $ECHO_N "(cached) $ECHO_C" >&6
7742 cat >conftest.$ac_ext <<_ACEOF
7745 cat confdefs.h >>conftest.$ac_ext
7746 cat >>conftest.$ac_ext <<_ACEOF
7747 /* end confdefs.h. */
7748 $ac_includes_default
7749 typedef void * ac__type_new_;
7753 if ((ac__type_new_ *) 0)
7755 if (sizeof (ac__type_new_))
7761 rm -f conftest.$ac_objext
7762 if { (ac_try="$ac_compile"
7764 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7765 *) ac_try_echo
=$ac_try;;
7767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7768 (eval "$ac_compile") 2>conftest.er1
7770 grep -v '^ *+' conftest.er1
>conftest.err
7772 cat conftest.err
>&5
7773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774 (exit $ac_status); } && {
7775 test -z "$ac_c_werror_flag" ||
7776 test ! -s conftest.err
7777 } && test -s conftest.
$ac_objext; then
7778 ac_cv_type_void_p
=yes
7780 echo "$as_me: failed program was:" >&5
7781 sed 's/^/| /' conftest.
$ac_ext >&5
7783 ac_cv_type_void_p
=no
7786 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7788 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
7789 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
7791 # The cast to long int works around a bug in the HP C Compiler
7792 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7793 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7794 # This bug is HP SR number 8606223364.
7795 { echo "$as_me:$LINENO: checking size of void *" >&5
7796 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
7797 if test "${ac_cv_sizeof_void_p+set}" = set; then
7798 echo $ECHO_N "(cached) $ECHO_C" >&6
7800 if test "$cross_compiling" = yes; then
7801 # Depending upon the size, compute the lo and hi bounds.
7802 cat >conftest.
$ac_ext <<_ACEOF
7805 cat confdefs.h
>>conftest.
$ac_ext
7806 cat >>conftest.
$ac_ext <<_ACEOF
7807 /* end confdefs.h. */
7808 $ac_includes_default
7809 typedef void * ac__type_sizeof_;
7813 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7820 rm -f conftest.
$ac_objext
7821 if { (ac_try
="$ac_compile"
7823 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7824 *) ac_try_echo=$ac_try;;
7826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7827 (eval "$ac_compile") 2>conftest.er1
7829 grep -v '^ *+' conftest.er1 >conftest.err
7831 cat conftest.err >&5
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); } && {
7834 test -z "$ac_c_werror_flag" ||
7835 test ! -s conftest.err
7836 } && test -s conftest.$ac_objext; then
7839 cat >conftest.$ac_ext <<_ACEOF
7842 cat confdefs.h >>conftest.$ac_ext
7843 cat >>conftest.$ac_ext <<_ACEOF
7844 /* end confdefs.h. */
7845 $ac_includes_default
7846 typedef void * ac__type_sizeof_;
7850 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7857 rm -f conftest.$ac_objext
7858 if { (ac_try="$ac_compile"
7860 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7861 *) ac_try_echo
=$ac_try;;
7863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7864 (eval "$ac_compile") 2>conftest.er1
7866 grep -v '^ *+' conftest.er1
>conftest.err
7868 cat conftest.err
>&5
7869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7870 (exit $ac_status); } && {
7871 test -z "$ac_c_werror_flag" ||
7872 test ! -s conftest.err
7873 } && test -s conftest.
$ac_objext; then
7874 ac_hi
=$ac_mid; break
7876 echo "$as_me: failed program was:" >&5
7877 sed 's/^/| /' conftest.
$ac_ext >&5
7879 ac_lo
=`expr $ac_mid + 1`
7880 if test $ac_lo -le $ac_mid; then
7884 ac_mid
=`expr 2 '*' $ac_mid + 1`
7887 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7890 echo "$as_me: failed program was:" >&5
7891 sed 's/^/| /' conftest.
$ac_ext >&5
7893 cat >conftest.
$ac_ext <<_ACEOF
7896 cat confdefs.h
>>conftest.
$ac_ext
7897 cat >>conftest.
$ac_ext <<_ACEOF
7898 /* end confdefs.h. */
7899 $ac_includes_default
7900 typedef void * ac__type_sizeof_;
7904 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7911 rm -f conftest.
$ac_objext
7912 if { (ac_try
="$ac_compile"
7914 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7915 *) ac_try_echo=$ac_try;;
7917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7918 (eval "$ac_compile") 2>conftest.er1
7920 grep -v '^ *+' conftest.er1 >conftest.err
7922 cat conftest.err >&5
7923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7924 (exit $ac_status); } && {
7925 test -z "$ac_c_werror_flag" ||
7926 test ! -s conftest.err
7927 } && test -s conftest.$ac_objext; then
7930 cat >conftest.$ac_ext <<_ACEOF
7933 cat confdefs.h >>conftest.$ac_ext
7934 cat >>conftest.$ac_ext <<_ACEOF
7935 /* end confdefs.h. */
7936 $ac_includes_default
7937 typedef void * ac__type_sizeof_;
7941 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7948 rm -f conftest.$ac_objext
7949 if { (ac_try="$ac_compile"
7951 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7952 *) ac_try_echo
=$ac_try;;
7954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7955 (eval "$ac_compile") 2>conftest.er1
7957 grep -v '^ *+' conftest.er1
>conftest.err
7959 cat conftest.err
>&5
7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961 (exit $ac_status); } && {
7962 test -z "$ac_c_werror_flag" ||
7963 test ! -s conftest.err
7964 } && test -s conftest.
$ac_objext; then
7965 ac_lo
=$ac_mid; break
7967 echo "$as_me: failed program was:" >&5
7968 sed 's/^/| /' conftest.
$ac_ext >&5
7970 ac_hi
=`expr '(' $ac_mid ')' - 1`
7971 if test $ac_mid -le $ac_hi; then
7975 ac_mid
=`expr 2 '*' $ac_mid`
7978 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7981 echo "$as_me: failed program was:" >&5
7982 sed 's/^/| /' conftest.
$ac_ext >&5
7987 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7990 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7991 # Binary search between lo and hi bounds.
7992 while test "x$ac_lo" != "x$ac_hi"; do
7993 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7994 cat >conftest.
$ac_ext <<_ACEOF
7997 cat confdefs.h
>>conftest.
$ac_ext
7998 cat >>conftest.
$ac_ext <<_ACEOF
7999 /* end confdefs.h. */
8000 $ac_includes_default
8001 typedef void * ac__type_sizeof_;
8005 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8012 rm -f conftest.
$ac_objext
8013 if { (ac_try
="$ac_compile"
8015 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8016 *) ac_try_echo=$ac_try;;
8018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8019 (eval "$ac_compile") 2>conftest.er1
8021 grep -v '^ *+' conftest.er1 >conftest.err
8023 cat conftest.err >&5
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); } && {
8026 test -z "$ac_c_werror_flag" ||
8027 test ! -s conftest.err
8028 } && test -s conftest.$ac_objext; then
8031 echo "$as_me: failed program was:" >&5
8032 sed 's/^/| /' conftest.$ac_ext >&5
8034 ac_lo=`expr '(' $ac_mid ')' + 1`
8037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8040 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8041 '') if test "$ac_cv_type_void_p" = yes; then
8042 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8043 See \`config.log
' for more details." >&5
8044 echo "$as_me: error: cannot compute sizeof (void *)
8045 See \`config.log' for more details.
" >&2;}
8046 { (exit 77); exit 77; }; }
8048 ac_cv_sizeof_void_p=0
8052 cat >conftest.$ac_ext <<_ACEOF
8055 cat confdefs.h >>conftest.$ac_ext
8056 cat >>conftest.$ac_ext <<_ACEOF
8057 /* end confdefs.h. */
8058 $ac_includes_default
8059 typedef void * ac__type_sizeof_;
8060 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8061 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8068 FILE *f = fopen ("conftest.val
", "w
");
8071 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8073 long int i = longval ();
8074 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8076 fprintf (f, "%ld
\n", i);
8080 unsigned long int i = ulongval ();
8081 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8083 fprintf (f, "%lu
\n", i);
8085 return ferror (f) || fclose (f) != 0;
8091 rm -f conftest$ac_exeext
8092 if { (ac_try="$ac_link"
8094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8095 *) ac_try_echo=$ac_try;;
8097 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8098 (eval "$ac_link") 2>&5
8100 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8101 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8102 { (case "(($ac_try" in
8103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8104 *) ac_try_echo=$ac_try;;
8106 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8107 (eval "$ac_try") 2>&5
8109 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8110 (exit $ac_status); }; }; then
8111 ac_cv_sizeof_void_p=`cat conftest.val`
8113 echo "$as_me: program exited with status
$ac_status" >&5
8114 echo "$as_me: failed program was
:" >&5
8115 sed 's/^/| /' conftest.$ac_ext >&5
8118 if test "$ac_cv_type_void_p" = yes; then
8119 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(void
*)
8120 See \
`config.log' for more details." >&5
8121 echo "$as_me: error: cannot compute sizeof (void *)
8122 See \`config.log
' for more details." >&2;}
8123 { (exit 77); exit 77; }; }
8125 ac_cv_sizeof_void_p=0
8128 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8132 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8133 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8137 cat >>confdefs.h <<_ACEOF
8138 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8142 { echo "$as_me:$LINENO: checking for short" >&5
8143 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
8144 if test "${ac_cv_type_short+set}" = set; then
8145 echo $ECHO_N "(cached) $ECHO_C" >&6
8147 cat >conftest.$ac_ext <<_ACEOF
8150 cat confdefs.h >>conftest.$ac_ext
8151 cat >>conftest.$ac_ext <<_ACEOF
8152 /* end confdefs.h. */
8153 $ac_includes_default
8154 typedef short ac__type_new_;
8158 if ((ac__type_new_ *) 0)
8160 if (sizeof (ac__type_new_))
8166 rm -f conftest.$ac_objext
8167 if { (ac_try="$ac_compile"
8169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8170 *) ac_try_echo=$ac_try;;
8172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8173 (eval "$ac_compile") 2>conftest.er1
8175 grep -v '^
*+' conftest.er1 >conftest.err
8177 cat conftest.err >&5
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 (exit $ac_status); } && {
8180 test -z "$ac_c_werror_flag" ||
8181 test ! -s conftest.err
8182 } && test -s conftest.$ac_objext; then
8183 ac_cv_type_short=yes
8185 echo "$as_me: failed program was:" >&5
8186 sed 's
/^
/|
/' conftest.$ac_ext >&5
8191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8193 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8194 echo "${ECHO_T}$ac_cv_type_short" >&6; }
8196 # The cast to long int works around a bug in the HP C Compiler
8197 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8198 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8199 # This bug is HP SR number 8606223364.
8200 { echo "$as_me:$LINENO: checking size of short" >&5
8201 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8202 if test "${ac_cv_sizeof_short+set}" = set; then
8203 echo $ECHO_N "(cached) $ECHO_C" >&6
8205 if test "$cross_compiling" = yes; then
8206 # Depending upon the size, compute the lo and hi bounds.
8207 cat >conftest.
$ac_ext <<_ACEOF
8210 cat confdefs.h
>>conftest.
$ac_ext
8211 cat >>conftest.
$ac_ext <<_ACEOF
8212 /* end confdefs.h. */
8213 $ac_includes_default
8214 typedef short ac__type_sizeof_;
8218 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8225 rm -f conftest.
$ac_objext
8226 if { (ac_try
="$ac_compile"
8228 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8229 *) ac_try_echo=$ac_try;;
8231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8232 (eval "$ac_compile") 2>conftest.er1
8234 grep -v '^ *+' conftest.er1 >conftest.err
8236 cat conftest.err >&5
8237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238 (exit $ac_status); } && {
8239 test -z "$ac_c_werror_flag" ||
8240 test ! -s conftest.err
8241 } && test -s conftest.$ac_objext; then
8244 cat >conftest.$ac_ext <<_ACEOF
8247 cat confdefs.h >>conftest.$ac_ext
8248 cat >>conftest.$ac_ext <<_ACEOF
8249 /* end confdefs.h. */
8250 $ac_includes_default
8251 typedef short ac__type_sizeof_;
8255 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8262 rm -f conftest.$ac_objext
8263 if { (ac_try="$ac_compile"
8265 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8266 *) ac_try_echo
=$ac_try;;
8268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8269 (eval "$ac_compile") 2>conftest.er1
8271 grep -v '^ *+' conftest.er1
>conftest.err
8273 cat conftest.err
>&5
8274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275 (exit $ac_status); } && {
8276 test -z "$ac_c_werror_flag" ||
8277 test ! -s conftest.err
8278 } && test -s conftest.
$ac_objext; then
8279 ac_hi
=$ac_mid; break
8281 echo "$as_me: failed program was:" >&5
8282 sed 's/^/| /' conftest.
$ac_ext >&5
8284 ac_lo
=`expr $ac_mid + 1`
8285 if test $ac_lo -le $ac_mid; then
8289 ac_mid
=`expr 2 '*' $ac_mid + 1`
8292 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8295 echo "$as_me: failed program was:" >&5
8296 sed 's/^/| /' conftest.
$ac_ext >&5
8298 cat >conftest.
$ac_ext <<_ACEOF
8301 cat confdefs.h
>>conftest.
$ac_ext
8302 cat >>conftest.
$ac_ext <<_ACEOF
8303 /* end confdefs.h. */
8304 $ac_includes_default
8305 typedef short ac__type_sizeof_;
8309 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8316 rm -f conftest.
$ac_objext
8317 if { (ac_try
="$ac_compile"
8319 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8320 *) ac_try_echo=$ac_try;;
8322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8323 (eval "$ac_compile") 2>conftest.er1
8325 grep -v '^ *+' conftest.er1 >conftest.err
8327 cat conftest.err >&5
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); } && {
8330 test -z "$ac_c_werror_flag" ||
8331 test ! -s conftest.err
8332 } && test -s conftest.$ac_objext; then
8335 cat >conftest.$ac_ext <<_ACEOF
8338 cat confdefs.h >>conftest.$ac_ext
8339 cat >>conftest.$ac_ext <<_ACEOF
8340 /* end confdefs.h. */
8341 $ac_includes_default
8342 typedef short ac__type_sizeof_;
8346 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8353 rm -f conftest.$ac_objext
8354 if { (ac_try="$ac_compile"
8356 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8357 *) ac_try_echo
=$ac_try;;
8359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8360 (eval "$ac_compile") 2>conftest.er1
8362 grep -v '^ *+' conftest.er1
>conftest.err
8364 cat conftest.err
>&5
8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366 (exit $ac_status); } && {
8367 test -z "$ac_c_werror_flag" ||
8368 test ! -s conftest.err
8369 } && test -s conftest.
$ac_objext; then
8370 ac_lo
=$ac_mid; break
8372 echo "$as_me: failed program was:" >&5
8373 sed 's/^/| /' conftest.
$ac_ext >&5
8375 ac_hi
=`expr '(' $ac_mid ')' - 1`
8376 if test $ac_mid -le $ac_hi; then
8380 ac_mid
=`expr 2 '*' $ac_mid`
8383 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8386 echo "$as_me: failed program was:" >&5
8387 sed 's/^/| /' conftest.
$ac_ext >&5
8392 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8395 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8396 # Binary search between lo and hi bounds.
8397 while test "x$ac_lo" != "x$ac_hi"; do
8398 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8399 cat >conftest.
$ac_ext <<_ACEOF
8402 cat confdefs.h
>>conftest.
$ac_ext
8403 cat >>conftest.
$ac_ext <<_ACEOF
8404 /* end confdefs.h. */
8405 $ac_includes_default
8406 typedef short ac__type_sizeof_;
8410 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8417 rm -f conftest.
$ac_objext
8418 if { (ac_try
="$ac_compile"
8420 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8421 *) ac_try_echo=$ac_try;;
8423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8424 (eval "$ac_compile") 2>conftest.er1
8426 grep -v '^ *+' conftest.er1 >conftest.err
8428 cat conftest.err >&5
8429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430 (exit $ac_status); } && {
8431 test -z "$ac_c_werror_flag" ||
8432 test ! -s conftest.err
8433 } && test -s conftest.$ac_objext; then
8436 echo "$as_me: failed program was:" >&5
8437 sed 's/^/| /' conftest.$ac_ext >&5
8439 ac_lo=`expr '(' $ac_mid ')' + 1`
8442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8445 ?*) ac_cv_sizeof_short=$ac_lo;;
8446 '') if test "$ac_cv_type_short" = yes; then
8447 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8448 See \`config.log
' for more details." >&5
8449 echo "$as_me: error: cannot compute sizeof (short)
8450 See \`config.log' for more details.
" >&2;}
8451 { (exit 77); exit 77; }; }
8453 ac_cv_sizeof_short=0
8457 cat >conftest.$ac_ext <<_ACEOF
8460 cat confdefs.h >>conftest.$ac_ext
8461 cat >>conftest.$ac_ext <<_ACEOF
8462 /* end confdefs.h. */
8463 $ac_includes_default
8464 typedef short ac__type_sizeof_;
8465 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8466 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8473 FILE *f = fopen ("conftest.val
", "w
");
8476 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8478 long int i = longval ();
8479 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8481 fprintf (f, "%ld
\n", i);
8485 unsigned long int i = ulongval ();
8486 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8488 fprintf (f, "%lu
\n", i);
8490 return ferror (f) || fclose (f) != 0;
8496 rm -f conftest$ac_exeext
8497 if { (ac_try="$ac_link"
8499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8500 *) ac_try_echo=$ac_try;;
8502 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8503 (eval "$ac_link") 2>&5
8505 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8506 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8507 { (case "(($ac_try" in
8508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8509 *) ac_try_echo=$ac_try;;
8511 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8512 (eval "$ac_try") 2>&5
8514 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8515 (exit $ac_status); }; }; then
8516 ac_cv_sizeof_short=`cat conftest.val`
8518 echo "$as_me: program exited with status
$ac_status" >&5
8519 echo "$as_me: failed program was
:" >&5
8520 sed 's/^/| /' conftest.$ac_ext >&5
8523 if test "$ac_cv_type_short" = yes; then
8524 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(short
)
8525 See \
`config.log' for more details." >&5
8526 echo "$as_me: error: cannot compute sizeof (short)
8527 See \`config.log
' for more details." >&2;}
8528 { (exit 77); exit 77; }; }
8530 ac_cv_sizeof_short=0
8533 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8537 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
8538 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
8542 cat >>confdefs.h <<_ACEOF
8543 #define SIZEOF_SHORT $ac_cv_sizeof_short
8547 { echo "$as_me:$LINENO: checking for float" >&5
8548 echo $ECHO_N "checking for float... $ECHO_C" >&6; }
8549 if test "${ac_cv_type_float+set}" = set; then
8550 echo $ECHO_N "(cached) $ECHO_C" >&6
8552 cat >conftest.$ac_ext <<_ACEOF
8555 cat confdefs.h >>conftest.$ac_ext
8556 cat >>conftest.$ac_ext <<_ACEOF
8557 /* end confdefs.h. */
8558 $ac_includes_default
8559 typedef float ac__type_new_;
8563 if ((ac__type_new_ *) 0)
8565 if (sizeof (ac__type_new_))
8571 rm -f conftest.$ac_objext
8572 if { (ac_try="$ac_compile"
8574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8575 *) ac_try_echo=$ac_try;;
8577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8578 (eval "$ac_compile") 2>conftest.er1
8580 grep -v '^
*+' conftest.er1 >conftest.err
8582 cat conftest.err >&5
8583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584 (exit $ac_status); } && {
8585 test -z "$ac_c_werror_flag" ||
8586 test ! -s conftest.err
8587 } && test -s conftest.$ac_objext; then
8588 ac_cv_type_float=yes
8590 echo "$as_me: failed program was:" >&5
8591 sed 's
/^
/|
/' conftest.$ac_ext >&5
8596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8598 { echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
8599 echo "${ECHO_T}$ac_cv_type_float" >&6; }
8601 # The cast to long int works around a bug in the HP C Compiler
8602 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8603 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8604 # This bug is HP SR number 8606223364.
8605 { echo "$as_me:$LINENO: checking size of float" >&5
8606 echo $ECHO_N "checking size of float... $ECHO_C" >&6; }
8607 if test "${ac_cv_sizeof_float+set}" = set; then
8608 echo $ECHO_N "(cached) $ECHO_C" >&6
8610 if test "$cross_compiling" = yes; then
8611 # Depending upon the size, compute the lo and hi bounds.
8612 cat >conftest.
$ac_ext <<_ACEOF
8615 cat confdefs.h
>>conftest.
$ac_ext
8616 cat >>conftest.
$ac_ext <<_ACEOF
8617 /* end confdefs.h. */
8618 $ac_includes_default
8619 typedef float ac__type_sizeof_;
8623 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8630 rm -f conftest.
$ac_objext
8631 if { (ac_try
="$ac_compile"
8633 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8634 *) ac_try_echo=$ac_try;;
8636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8637 (eval "$ac_compile") 2>conftest.er1
8639 grep -v '^ *+' conftest.er1 >conftest.err
8641 cat conftest.err >&5
8642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643 (exit $ac_status); } && {
8644 test -z "$ac_c_werror_flag" ||
8645 test ! -s conftest.err
8646 } && test -s conftest.$ac_objext; then
8649 cat >conftest.$ac_ext <<_ACEOF
8652 cat confdefs.h >>conftest.$ac_ext
8653 cat >>conftest.$ac_ext <<_ACEOF
8654 /* end confdefs.h. */
8655 $ac_includes_default
8656 typedef float ac__type_sizeof_;
8660 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8667 rm -f conftest.$ac_objext
8668 if { (ac_try="$ac_compile"
8670 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8671 *) ac_try_echo
=$ac_try;;
8673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8674 (eval "$ac_compile") 2>conftest.er1
8676 grep -v '^ *+' conftest.er1
>conftest.err
8678 cat conftest.err
>&5
8679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680 (exit $ac_status); } && {
8681 test -z "$ac_c_werror_flag" ||
8682 test ! -s conftest.err
8683 } && test -s conftest.
$ac_objext; then
8684 ac_hi
=$ac_mid; break
8686 echo "$as_me: failed program was:" >&5
8687 sed 's/^/| /' conftest.
$ac_ext >&5
8689 ac_lo
=`expr $ac_mid + 1`
8690 if test $ac_lo -le $ac_mid; then
8694 ac_mid
=`expr 2 '*' $ac_mid + 1`
8697 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8700 echo "$as_me: failed program was:" >&5
8701 sed 's/^/| /' conftest.
$ac_ext >&5
8703 cat >conftest.
$ac_ext <<_ACEOF
8706 cat confdefs.h
>>conftest.
$ac_ext
8707 cat >>conftest.
$ac_ext <<_ACEOF
8708 /* end confdefs.h. */
8709 $ac_includes_default
8710 typedef float ac__type_sizeof_;
8714 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8721 rm -f conftest.
$ac_objext
8722 if { (ac_try
="$ac_compile"
8724 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8725 *) ac_try_echo=$ac_try;;
8727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8728 (eval "$ac_compile") 2>conftest.er1
8730 grep -v '^ *+' conftest.er1 >conftest.err
8732 cat conftest.err >&5
8733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734 (exit $ac_status); } && {
8735 test -z "$ac_c_werror_flag" ||
8736 test ! -s conftest.err
8737 } && test -s conftest.$ac_objext; then
8740 cat >conftest.$ac_ext <<_ACEOF
8743 cat confdefs.h >>conftest.$ac_ext
8744 cat >>conftest.$ac_ext <<_ACEOF
8745 /* end confdefs.h. */
8746 $ac_includes_default
8747 typedef float ac__type_sizeof_;
8751 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8758 rm -f conftest.$ac_objext
8759 if { (ac_try="$ac_compile"
8761 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8762 *) ac_try_echo
=$ac_try;;
8764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8765 (eval "$ac_compile") 2>conftest.er1
8767 grep -v '^ *+' conftest.er1
>conftest.err
8769 cat conftest.err
>&5
8770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771 (exit $ac_status); } && {
8772 test -z "$ac_c_werror_flag" ||
8773 test ! -s conftest.err
8774 } && test -s conftest.
$ac_objext; then
8775 ac_lo
=$ac_mid; break
8777 echo "$as_me: failed program was:" >&5
8778 sed 's/^/| /' conftest.
$ac_ext >&5
8780 ac_hi
=`expr '(' $ac_mid ')' - 1`
8781 if test $ac_mid -le $ac_hi; then
8785 ac_mid
=`expr 2 '*' $ac_mid`
8788 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8791 echo "$as_me: failed program was:" >&5
8792 sed 's/^/| /' conftest.
$ac_ext >&5
8797 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8800 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8801 # Binary search between lo and hi bounds.
8802 while test "x$ac_lo" != "x$ac_hi"; do
8803 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8804 cat >conftest.
$ac_ext <<_ACEOF
8807 cat confdefs.h
>>conftest.
$ac_ext
8808 cat >>conftest.
$ac_ext <<_ACEOF
8809 /* end confdefs.h. */
8810 $ac_includes_default
8811 typedef float ac__type_sizeof_;
8815 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8822 rm -f conftest.
$ac_objext
8823 if { (ac_try
="$ac_compile"
8825 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8826 *) ac_try_echo=$ac_try;;
8828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8829 (eval "$ac_compile") 2>conftest.er1
8831 grep -v '^ *+' conftest.er1 >conftest.err
8833 cat conftest.err >&5
8834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835 (exit $ac_status); } && {
8836 test -z "$ac_c_werror_flag" ||
8837 test ! -s conftest.err
8838 } && test -s conftest.$ac_objext; then
8841 echo "$as_me: failed program was:" >&5
8842 sed 's/^/| /' conftest.$ac_ext >&5
8844 ac_lo=`expr '(' $ac_mid ')' + 1`
8847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8850 ?*) ac_cv_sizeof_float=$ac_lo;;
8851 '') if test "$ac_cv_type_float" = yes; then
8852 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float)
8853 See \`config.log
' for more details." >&5
8854 echo "$as_me: error: cannot compute sizeof (float)
8855 See \`config.log' for more details.
" >&2;}
8856 { (exit 77); exit 77; }; }
8858 ac_cv_sizeof_float=0
8862 cat >conftest.$ac_ext <<_ACEOF
8865 cat confdefs.h >>conftest.$ac_ext
8866 cat >>conftest.$ac_ext <<_ACEOF
8867 /* end confdefs.h. */
8868 $ac_includes_default
8869 typedef float ac__type_sizeof_;
8870 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8871 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8878 FILE *f = fopen ("conftest.val
", "w
");
8881 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8883 long int i = longval ();
8884 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8886 fprintf (f, "%ld
\n", i);
8890 unsigned long int i = ulongval ();
8891 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8893 fprintf (f, "%lu
\n", i);
8895 return ferror (f) || fclose (f) != 0;
8901 rm -f conftest$ac_exeext
8902 if { (ac_try="$ac_link"
8904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8905 *) ac_try_echo=$ac_try;;
8907 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8908 (eval "$ac_link") 2>&5
8910 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8911 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8912 { (case "(($ac_try" in
8913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8914 *) ac_try_echo=$ac_try;;
8916 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8917 (eval "$ac_try") 2>&5
8919 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8920 (exit $ac_status); }; }; then
8921 ac_cv_sizeof_float=`cat conftest.val`
8923 echo "$as_me: program exited with status
$ac_status" >&5
8924 echo "$as_me: failed program was
:" >&5
8925 sed 's/^/| /' conftest.$ac_ext >&5
8928 if test "$ac_cv_type_float" = yes; then
8929 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(float
)
8930 See \
`config.log' for more details." >&5
8931 echo "$as_me: error: cannot compute sizeof (float)
8932 See \`config.log
' for more details." >&2;}
8933 { (exit 77); exit 77; }; }
8935 ac_cv_sizeof_float=0
8938 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8942 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
8943 echo "${ECHO_T}$ac_cv_sizeof_float" >&6; }
8947 cat >>confdefs.h <<_ACEOF
8948 #define SIZEOF_FLOAT $ac_cv_sizeof_float
8952 { echo "$as_me:$LINENO: checking for double" >&5
8953 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
8954 if test "${ac_cv_type_double+set}" = set; then
8955 echo $ECHO_N "(cached) $ECHO_C" >&6
8957 cat >conftest.$ac_ext <<_ACEOF
8960 cat confdefs.h >>conftest.$ac_ext
8961 cat >>conftest.$ac_ext <<_ACEOF
8962 /* end confdefs.h. */
8963 $ac_includes_default
8964 typedef double ac__type_new_;
8968 if ((ac__type_new_ *) 0)
8970 if (sizeof (ac__type_new_))
8976 rm -f conftest.$ac_objext
8977 if { (ac_try="$ac_compile"
8979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8980 *) ac_try_echo=$ac_try;;
8982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8983 (eval "$ac_compile") 2>conftest.er1
8985 grep -v '^
*+' conftest.er1 >conftest.err
8987 cat conftest.err >&5
8988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989 (exit $ac_status); } && {
8990 test -z "$ac_c_werror_flag" ||
8991 test ! -s conftest.err
8992 } && test -s conftest.$ac_objext; then
8993 ac_cv_type_double=yes
8995 echo "$as_me: failed program was:" >&5
8996 sed 's
/^
/|
/' conftest.$ac_ext >&5
8998 ac_cv_type_double=no
9001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9003 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
9004 echo "${ECHO_T}$ac_cv_type_double" >&6; }
9006 # The cast to long int works around a bug in the HP C Compiler
9007 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9008 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9009 # This bug is HP SR number 8606223364.
9010 { echo "$as_me:$LINENO: checking size of double" >&5
9011 echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
9012 if test "${ac_cv_sizeof_double+set}" = set; then
9013 echo $ECHO_N "(cached) $ECHO_C" >&6
9015 if test "$cross_compiling" = yes; then
9016 # Depending upon the size, compute the lo and hi bounds.
9017 cat >conftest.
$ac_ext <<_ACEOF
9020 cat confdefs.h
>>conftest.
$ac_ext
9021 cat >>conftest.
$ac_ext <<_ACEOF
9022 /* end confdefs.h. */
9023 $ac_includes_default
9024 typedef double ac__type_sizeof_;
9028 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9035 rm -f conftest.
$ac_objext
9036 if { (ac_try
="$ac_compile"
9038 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9039 *) ac_try_echo=$ac_try;;
9041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9042 (eval "$ac_compile") 2>conftest.er1
9044 grep -v '^ *+' conftest.er1 >conftest.err
9046 cat conftest.err >&5
9047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048 (exit $ac_status); } && {
9049 test -z "$ac_c_werror_flag" ||
9050 test ! -s conftest.err
9051 } && test -s conftest.$ac_objext; then
9054 cat >conftest.$ac_ext <<_ACEOF
9057 cat confdefs.h >>conftest.$ac_ext
9058 cat >>conftest.$ac_ext <<_ACEOF
9059 /* end confdefs.h. */
9060 $ac_includes_default
9061 typedef double ac__type_sizeof_;
9065 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9072 rm -f conftest.$ac_objext
9073 if { (ac_try="$ac_compile"
9075 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9076 *) ac_try_echo
=$ac_try;;
9078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9079 (eval "$ac_compile") 2>conftest.er1
9081 grep -v '^ *+' conftest.er1
>conftest.err
9083 cat conftest.err
>&5
9084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085 (exit $ac_status); } && {
9086 test -z "$ac_c_werror_flag" ||
9087 test ! -s conftest.err
9088 } && test -s conftest.
$ac_objext; then
9089 ac_hi
=$ac_mid; break
9091 echo "$as_me: failed program was:" >&5
9092 sed 's/^/| /' conftest.
$ac_ext >&5
9094 ac_lo
=`expr $ac_mid + 1`
9095 if test $ac_lo -le $ac_mid; then
9099 ac_mid
=`expr 2 '*' $ac_mid + 1`
9102 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9105 echo "$as_me: failed program was:" >&5
9106 sed 's/^/| /' conftest.
$ac_ext >&5
9108 cat >conftest.
$ac_ext <<_ACEOF
9111 cat confdefs.h
>>conftest.
$ac_ext
9112 cat >>conftest.
$ac_ext <<_ACEOF
9113 /* end confdefs.h. */
9114 $ac_includes_default
9115 typedef double ac__type_sizeof_;
9119 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9126 rm -f conftest.
$ac_objext
9127 if { (ac_try
="$ac_compile"
9129 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9130 *) ac_try_echo=$ac_try;;
9132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9133 (eval "$ac_compile") 2>conftest.er1
9135 grep -v '^ *+' conftest.er1 >conftest.err
9137 cat conftest.err >&5
9138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139 (exit $ac_status); } && {
9140 test -z "$ac_c_werror_flag" ||
9141 test ! -s conftest.err
9142 } && test -s conftest.$ac_objext; then
9145 cat >conftest.$ac_ext <<_ACEOF
9148 cat confdefs.h >>conftest.$ac_ext
9149 cat >>conftest.$ac_ext <<_ACEOF
9150 /* end confdefs.h. */
9151 $ac_includes_default
9152 typedef double ac__type_sizeof_;
9156 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9163 rm -f conftest.$ac_objext
9164 if { (ac_try="$ac_compile"
9166 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9167 *) ac_try_echo
=$ac_try;;
9169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9170 (eval "$ac_compile") 2>conftest.er1
9172 grep -v '^ *+' conftest.er1
>conftest.err
9174 cat conftest.err
>&5
9175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9176 (exit $ac_status); } && {
9177 test -z "$ac_c_werror_flag" ||
9178 test ! -s conftest.err
9179 } && test -s conftest.
$ac_objext; then
9180 ac_lo
=$ac_mid; break
9182 echo "$as_me: failed program was:" >&5
9183 sed 's/^/| /' conftest.
$ac_ext >&5
9185 ac_hi
=`expr '(' $ac_mid ')' - 1`
9186 if test $ac_mid -le $ac_hi; then
9190 ac_mid
=`expr 2 '*' $ac_mid`
9193 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9196 echo "$as_me: failed program was:" >&5
9197 sed 's/^/| /' conftest.
$ac_ext >&5
9202 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9205 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9206 # Binary search between lo and hi bounds.
9207 while test "x$ac_lo" != "x$ac_hi"; do
9208 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9209 cat >conftest.
$ac_ext <<_ACEOF
9212 cat confdefs.h
>>conftest.
$ac_ext
9213 cat >>conftest.
$ac_ext <<_ACEOF
9214 /* end confdefs.h. */
9215 $ac_includes_default
9216 typedef double ac__type_sizeof_;
9220 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9227 rm -f conftest.
$ac_objext
9228 if { (ac_try
="$ac_compile"
9230 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9231 *) ac_try_echo=$ac_try;;
9233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9234 (eval "$ac_compile") 2>conftest.er1
9236 grep -v '^ *+' conftest.er1 >conftest.err
9238 cat conftest.err >&5
9239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240 (exit $ac_status); } && {
9241 test -z "$ac_c_werror_flag" ||
9242 test ! -s conftest.err
9243 } && test -s conftest.$ac_objext; then
9246 echo "$as_me: failed program was:" >&5
9247 sed 's/^/| /' conftest.$ac_ext >&5
9249 ac_lo=`expr '(' $ac_mid ')' + 1`
9252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9255 ?*) ac_cv_sizeof_double=$ac_lo;;
9256 '') if test "$ac_cv_type_double" = yes; then
9257 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
9258 See \`config.log
' for more details." >&5
9259 echo "$as_me: error: cannot compute sizeof (double)
9260 See \`config.log' for more details.
" >&2;}
9261 { (exit 77); exit 77; }; }
9263 ac_cv_sizeof_double=0
9267 cat >conftest.$ac_ext <<_ACEOF
9270 cat confdefs.h >>conftest.$ac_ext
9271 cat >>conftest.$ac_ext <<_ACEOF
9272 /* end confdefs.h. */
9273 $ac_includes_default
9274 typedef double ac__type_sizeof_;
9275 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9276 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9283 FILE *f = fopen ("conftest.val
", "w
");
9286 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9288 long int i = longval ();
9289 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9291 fprintf (f, "%ld
\n", i);
9295 unsigned long int i = ulongval ();
9296 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9298 fprintf (f, "%lu
\n", i);
9300 return ferror (f) || fclose (f) != 0;
9306 rm -f conftest$ac_exeext
9307 if { (ac_try="$ac_link"
9309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9310 *) ac_try_echo=$ac_try;;
9312 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9313 (eval "$ac_link") 2>&5
9315 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9316 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9317 { (case "(($ac_try" in
9318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9319 *) ac_try_echo=$ac_try;;
9321 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9322 (eval "$ac_try") 2>&5
9324 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9325 (exit $ac_status); }; }; then
9326 ac_cv_sizeof_double=`cat conftest.val`
9328 echo "$as_me: program exited with status
$ac_status" >&5
9329 echo "$as_me: failed program was
:" >&5
9330 sed 's/^/| /' conftest.$ac_ext >&5
9333 if test "$ac_cv_type_double" = yes; then
9334 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(double
)
9335 See \
`config.log' for more details." >&5
9336 echo "$as_me: error: cannot compute sizeof (double)
9337 See \`config.log
' for more details." >&2;}
9338 { (exit 77); exit 77; }; }
9340 ac_cv_sizeof_double=0
9343 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9347 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
9348 echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
9352 cat >>confdefs.h <<_ACEOF
9353 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
9357 { echo "$as_me:$LINENO: checking for fpos_t" >&5
9358 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6; }
9359 if test "${ac_cv_type_fpos_t+set}" = set; then
9360 echo $ECHO_N "(cached) $ECHO_C" >&6
9362 cat >conftest.$ac_ext <<_ACEOF
9365 cat confdefs.h >>conftest.$ac_ext
9366 cat >>conftest.$ac_ext <<_ACEOF
9367 /* end confdefs.h. */
9368 $ac_includes_default
9369 typedef fpos_t ac__type_new_;
9373 if ((ac__type_new_ *) 0)
9375 if (sizeof (ac__type_new_))
9381 rm -f conftest.$ac_objext
9382 if { (ac_try="$ac_compile"
9384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9385 *) ac_try_echo=$ac_try;;
9387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9388 (eval "$ac_compile") 2>conftest.er1
9390 grep -v '^
*+' conftest.er1 >conftest.err
9392 cat conftest.err >&5
9393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394 (exit $ac_status); } && {
9395 test -z "$ac_c_werror_flag" ||
9396 test ! -s conftest.err
9397 } && test -s conftest.$ac_objext; then
9398 ac_cv_type_fpos_t=yes
9400 echo "$as_me: failed program was:" >&5
9401 sed 's
/^
/|
/' conftest.$ac_ext >&5
9403 ac_cv_type_fpos_t=no
9406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9408 { echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
9409 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6; }
9411 # The cast to long int works around a bug in the HP C Compiler
9412 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9413 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9414 # This bug is HP SR number 8606223364.
9415 { echo "$as_me:$LINENO: checking size of fpos_t" >&5
9416 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6; }
9417 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
9418 echo $ECHO_N "(cached) $ECHO_C" >&6
9420 if test "$cross_compiling" = yes; then
9421 # Depending upon the size, compute the lo and hi bounds.
9422 cat >conftest.
$ac_ext <<_ACEOF
9425 cat confdefs.h
>>conftest.
$ac_ext
9426 cat >>conftest.
$ac_ext <<_ACEOF
9427 /* end confdefs.h. */
9428 $ac_includes_default
9429 typedef fpos_t ac__type_sizeof_;
9433 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9440 rm -f conftest.
$ac_objext
9441 if { (ac_try
="$ac_compile"
9443 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9444 *) ac_try_echo=$ac_try;;
9446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9447 (eval "$ac_compile") 2>conftest.er1
9449 grep -v '^ *+' conftest.er1 >conftest.err
9451 cat conftest.err >&5
9452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453 (exit $ac_status); } && {
9454 test -z "$ac_c_werror_flag" ||
9455 test ! -s conftest.err
9456 } && test -s conftest.$ac_objext; then
9459 cat >conftest.$ac_ext <<_ACEOF
9462 cat confdefs.h >>conftest.$ac_ext
9463 cat >>conftest.$ac_ext <<_ACEOF
9464 /* end confdefs.h. */
9465 $ac_includes_default
9466 typedef fpos_t ac__type_sizeof_;
9470 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9477 rm -f conftest.$ac_objext
9478 if { (ac_try="$ac_compile"
9480 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9481 *) ac_try_echo
=$ac_try;;
9483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9484 (eval "$ac_compile") 2>conftest.er1
9486 grep -v '^ *+' conftest.er1
>conftest.err
9488 cat conftest.err
>&5
9489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9490 (exit $ac_status); } && {
9491 test -z "$ac_c_werror_flag" ||
9492 test ! -s conftest.err
9493 } && test -s conftest.
$ac_objext; then
9494 ac_hi
=$ac_mid; break
9496 echo "$as_me: failed program was:" >&5
9497 sed 's/^/| /' conftest.
$ac_ext >&5
9499 ac_lo
=`expr $ac_mid + 1`
9500 if test $ac_lo -le $ac_mid; then
9504 ac_mid
=`expr 2 '*' $ac_mid + 1`
9507 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9510 echo "$as_me: failed program was:" >&5
9511 sed 's/^/| /' conftest.
$ac_ext >&5
9513 cat >conftest.
$ac_ext <<_ACEOF
9516 cat confdefs.h
>>conftest.
$ac_ext
9517 cat >>conftest.
$ac_ext <<_ACEOF
9518 /* end confdefs.h. */
9519 $ac_includes_default
9520 typedef fpos_t ac__type_sizeof_;
9524 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9531 rm -f conftest.
$ac_objext
9532 if { (ac_try
="$ac_compile"
9534 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9535 *) ac_try_echo=$ac_try;;
9537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9538 (eval "$ac_compile") 2>conftest.er1
9540 grep -v '^ *+' conftest.er1 >conftest.err
9542 cat conftest.err >&5
9543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544 (exit $ac_status); } && {
9545 test -z "$ac_c_werror_flag" ||
9546 test ! -s conftest.err
9547 } && test -s conftest.$ac_objext; then
9550 cat >conftest.$ac_ext <<_ACEOF
9553 cat confdefs.h >>conftest.$ac_ext
9554 cat >>conftest.$ac_ext <<_ACEOF
9555 /* end confdefs.h. */
9556 $ac_includes_default
9557 typedef fpos_t ac__type_sizeof_;
9561 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9568 rm -f conftest.$ac_objext
9569 if { (ac_try="$ac_compile"
9571 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9572 *) ac_try_echo
=$ac_try;;
9574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9575 (eval "$ac_compile") 2>conftest.er1
9577 grep -v '^ *+' conftest.er1
>conftest.err
9579 cat conftest.err
>&5
9580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581 (exit $ac_status); } && {
9582 test -z "$ac_c_werror_flag" ||
9583 test ! -s conftest.err
9584 } && test -s conftest.
$ac_objext; then
9585 ac_lo
=$ac_mid; break
9587 echo "$as_me: failed program was:" >&5
9588 sed 's/^/| /' conftest.
$ac_ext >&5
9590 ac_hi
=`expr '(' $ac_mid ')' - 1`
9591 if test $ac_mid -le $ac_hi; then
9595 ac_mid
=`expr 2 '*' $ac_mid`
9598 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9601 echo "$as_me: failed program was:" >&5
9602 sed 's/^/| /' conftest.
$ac_ext >&5
9607 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9610 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9611 # Binary search between lo and hi bounds.
9612 while test "x$ac_lo" != "x$ac_hi"; do
9613 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9614 cat >conftest.
$ac_ext <<_ACEOF
9617 cat confdefs.h
>>conftest.
$ac_ext
9618 cat >>conftest.
$ac_ext <<_ACEOF
9619 /* end confdefs.h. */
9620 $ac_includes_default
9621 typedef fpos_t ac__type_sizeof_;
9625 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9632 rm -f conftest.
$ac_objext
9633 if { (ac_try
="$ac_compile"
9635 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9636 *) ac_try_echo=$ac_try;;
9638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9639 (eval "$ac_compile") 2>conftest.er1
9641 grep -v '^ *+' conftest.er1 >conftest.err
9643 cat conftest.err >&5
9644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645 (exit $ac_status); } && {
9646 test -z "$ac_c_werror_flag" ||
9647 test ! -s conftest.err
9648 } && test -s conftest.$ac_objext; then
9651 echo "$as_me: failed program was:" >&5
9652 sed 's/^/| /' conftest.$ac_ext >&5
9654 ac_lo=`expr '(' $ac_mid ')' + 1`
9657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9660 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
9661 '') if test "$ac_cv_type_fpos_t" = yes; then
9662 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t)
9663 See \`config.log
' for more details." >&5
9664 echo "$as_me: error: cannot compute sizeof (fpos_t)
9665 See \`config.log' for more details.
" >&2;}
9666 { (exit 77); exit 77; }; }
9668 ac_cv_sizeof_fpos_t=0
9672 cat >conftest.$ac_ext <<_ACEOF
9675 cat confdefs.h >>conftest.$ac_ext
9676 cat >>conftest.$ac_ext <<_ACEOF
9677 /* end confdefs.h. */
9678 $ac_includes_default
9679 typedef fpos_t ac__type_sizeof_;
9680 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9681 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9688 FILE *f = fopen ("conftest.val
", "w
");
9691 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9693 long int i = longval ();
9694 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9696 fprintf (f, "%ld
\n", i);
9700 unsigned long int i = ulongval ();
9701 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9703 fprintf (f, "%lu
\n", i);
9705 return ferror (f) || fclose (f) != 0;
9711 rm -f conftest$ac_exeext
9712 if { (ac_try="$ac_link"
9714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9715 *) ac_try_echo=$ac_try;;
9717 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9718 (eval "$ac_link") 2>&5
9720 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9721 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9722 { (case "(($ac_try" in
9723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9724 *) ac_try_echo=$ac_try;;
9726 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
9727 (eval "$ac_try") 2>&5
9729 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9730 (exit $ac_status); }; }; then
9731 ac_cv_sizeof_fpos_t=`cat conftest.val`
9733 echo "$as_me: program exited with status
$ac_status" >&5
9734 echo "$as_me: failed program was
:" >&5
9735 sed 's/^/| /' conftest.$ac_ext >&5
9738 if test "$ac_cv_type_fpos_t" = yes; then
9739 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(fpos_t
)
9740 See \
`config.log' for more details." >&5
9741 echo "$as_me: error: cannot compute sizeof (fpos_t)
9742 See \`config.log
' for more details." >&2;}
9743 { (exit 77); exit 77; }; }
9745 ac_cv_sizeof_fpos_t=0
9748 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9752 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
9753 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6; }
9757 cat >>confdefs.h <<_ACEOF
9758 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
9762 { echo "$as_me:$LINENO: checking for size_t" >&5
9763 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
9764 if test "${ac_cv_type_size_t+set}" = set; then
9765 echo $ECHO_N "(cached) $ECHO_C" >&6
9767 cat >conftest.$ac_ext <<_ACEOF
9770 cat confdefs.h >>conftest.$ac_ext
9771 cat >>conftest.$ac_ext <<_ACEOF
9772 /* end confdefs.h. */
9773 $ac_includes_default
9774 typedef size_t ac__type_new_;
9778 if ((ac__type_new_ *) 0)
9780 if (sizeof (ac__type_new_))
9786 rm -f conftest.$ac_objext
9787 if { (ac_try="$ac_compile"
9789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9790 *) ac_try_echo=$ac_try;;
9792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9793 (eval "$ac_compile") 2>conftest.er1
9795 grep -v '^
*+' conftest.er1 >conftest.err
9797 cat conftest.err >&5
9798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799 (exit $ac_status); } && {
9800 test -z "$ac_c_werror_flag" ||
9801 test ! -s conftest.err
9802 } && test -s conftest.$ac_objext; then
9803 ac_cv_type_size_t=yes
9805 echo "$as_me: failed program was:" >&5
9806 sed 's
/^
/|
/' conftest.$ac_ext >&5
9808 ac_cv_type_size_t=no
9811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9813 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9814 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
9816 # The cast to long int works around a bug in the HP C Compiler
9817 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9818 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9819 # This bug is HP SR number 8606223364.
9820 { echo "$as_me:$LINENO: checking size of size_t" >&5
9821 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
9822 if test "${ac_cv_sizeof_size_t+set}" = set; then
9823 echo $ECHO_N "(cached) $ECHO_C" >&6
9825 if test "$cross_compiling" = yes; then
9826 # Depending upon the size, compute the lo and hi bounds.
9827 cat >conftest.
$ac_ext <<_ACEOF
9830 cat confdefs.h
>>conftest.
$ac_ext
9831 cat >>conftest.
$ac_ext <<_ACEOF
9832 /* end confdefs.h. */
9833 $ac_includes_default
9834 typedef size_t ac__type_sizeof_;
9838 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9845 rm -f conftest.
$ac_objext
9846 if { (ac_try
="$ac_compile"
9848 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9849 *) ac_try_echo=$ac_try;;
9851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9852 (eval "$ac_compile") 2>conftest.er1
9854 grep -v '^ *+' conftest.er1 >conftest.err
9856 cat conftest.err >&5
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); } && {
9859 test -z "$ac_c_werror_flag" ||
9860 test ! -s conftest.err
9861 } && test -s conftest.$ac_objext; then
9864 cat >conftest.$ac_ext <<_ACEOF
9867 cat confdefs.h >>conftest.$ac_ext
9868 cat >>conftest.$ac_ext <<_ACEOF
9869 /* end confdefs.h. */
9870 $ac_includes_default
9871 typedef size_t ac__type_sizeof_;
9875 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9882 rm -f conftest.$ac_objext
9883 if { (ac_try="$ac_compile"
9885 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9886 *) ac_try_echo
=$ac_try;;
9888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9889 (eval "$ac_compile") 2>conftest.er1
9891 grep -v '^ *+' conftest.er1
>conftest.err
9893 cat conftest.err
>&5
9894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895 (exit $ac_status); } && {
9896 test -z "$ac_c_werror_flag" ||
9897 test ! -s conftest.err
9898 } && test -s conftest.
$ac_objext; then
9899 ac_hi
=$ac_mid; break
9901 echo "$as_me: failed program was:" >&5
9902 sed 's/^/| /' conftest.
$ac_ext >&5
9904 ac_lo
=`expr $ac_mid + 1`
9905 if test $ac_lo -le $ac_mid; then
9909 ac_mid
=`expr 2 '*' $ac_mid + 1`
9912 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9915 echo "$as_me: failed program was:" >&5
9916 sed 's/^/| /' conftest.
$ac_ext >&5
9918 cat >conftest.
$ac_ext <<_ACEOF
9921 cat confdefs.h
>>conftest.
$ac_ext
9922 cat >>conftest.
$ac_ext <<_ACEOF
9923 /* end confdefs.h. */
9924 $ac_includes_default
9925 typedef size_t ac__type_sizeof_;
9929 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9936 rm -f conftest.
$ac_objext
9937 if { (ac_try
="$ac_compile"
9939 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9940 *) ac_try_echo=$ac_try;;
9942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9943 (eval "$ac_compile") 2>conftest.er1
9945 grep -v '^ *+' conftest.er1 >conftest.err
9947 cat conftest.err >&5
9948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949 (exit $ac_status); } && {
9950 test -z "$ac_c_werror_flag" ||
9951 test ! -s conftest.err
9952 } && test -s conftest.$ac_objext; then
9955 cat >conftest.$ac_ext <<_ACEOF
9958 cat confdefs.h >>conftest.$ac_ext
9959 cat >>conftest.$ac_ext <<_ACEOF
9960 /* end confdefs.h. */
9961 $ac_includes_default
9962 typedef size_t ac__type_sizeof_;
9966 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9973 rm -f conftest.$ac_objext
9974 if { (ac_try="$ac_compile"
9976 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9977 *) ac_try_echo
=$ac_try;;
9979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9980 (eval "$ac_compile") 2>conftest.er1
9982 grep -v '^ *+' conftest.er1
>conftest.err
9984 cat conftest.err
>&5
9985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986 (exit $ac_status); } && {
9987 test -z "$ac_c_werror_flag" ||
9988 test ! -s conftest.err
9989 } && test -s conftest.
$ac_objext; then
9990 ac_lo
=$ac_mid; break
9992 echo "$as_me: failed program was:" >&5
9993 sed 's/^/| /' conftest.
$ac_ext >&5
9995 ac_hi
=`expr '(' $ac_mid ')' - 1`
9996 if test $ac_mid -le $ac_hi; then
10000 ac_mid
=`expr 2 '*' $ac_mid`
10003 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10006 echo "$as_me: failed program was:" >&5
10007 sed 's/^/| /' conftest.
$ac_ext >&5
10012 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10015 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10016 # Binary search between lo and hi bounds.
10017 while test "x$ac_lo" != "x$ac_hi"; do
10018 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10019 cat >conftest.
$ac_ext <<_ACEOF
10022 cat confdefs.h
>>conftest.
$ac_ext
10023 cat >>conftest.
$ac_ext <<_ACEOF
10024 /* end confdefs.h. */
10025 $ac_includes_default
10026 typedef size_t ac__type_sizeof_;
10030 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10037 rm -f conftest.
$ac_objext
10038 if { (ac_try
="$ac_compile"
10039 case "(($ac_try" in
10040 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10041 *) ac_try_echo=$ac_try;;
10043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10044 (eval "$ac_compile") 2>conftest.er1
10046 grep -v '^ *+' conftest.er1 >conftest.err
10048 cat conftest.err >&5
10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); } && {
10051 test -z "$ac_c_werror_flag" ||
10052 test ! -s conftest.err
10053 } && test -s conftest.$ac_objext; then
10056 echo "$as_me: failed program was:" >&5
10057 sed 's/^/| /' conftest.$ac_ext >&5
10059 ac_lo=`expr '(' $ac_mid ')' + 1`
10062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10065 ?*) ac_cv_sizeof_size_t=$ac_lo;;
10066 '') if test "$ac_cv_type_size_t" = yes; then
10067 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10068 See \`config.log
' for more details." >&5
10069 echo "$as_me: error: cannot compute sizeof (size_t)
10070 See \`config.log' for more details.
" >&2;}
10071 { (exit 77); exit 77; }; }
10073 ac_cv_sizeof_size_t=0
10077 cat >conftest.$ac_ext <<_ACEOF
10080 cat confdefs.h >>conftest.$ac_ext
10081 cat >>conftest.$ac_ext <<_ACEOF
10082 /* end confdefs.h. */
10083 $ac_includes_default
10084 typedef size_t ac__type_sizeof_;
10085 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10086 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10088 #include <stdlib.h>
10093 FILE *f = fopen ("conftest.val
", "w
");
10096 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10098 long int i = longval ();
10099 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10101 fprintf (f, "%ld
\n", i);
10105 unsigned long int i = ulongval ();
10106 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10108 fprintf (f, "%lu
\n", i);
10110 return ferror (f) || fclose (f) != 0;
10116 rm -f conftest$ac_exeext
10117 if { (ac_try="$ac_link"
10118 case "(($ac_try" in
10119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10120 *) ac_try_echo=$ac_try;;
10122 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10123 (eval "$ac_link") 2>&5
10125 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10126 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10127 { (case "(($ac_try" in
10128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10129 *) ac_try_echo=$ac_try;;
10131 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10132 (eval "$ac_try") 2>&5
10134 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10135 (exit $ac_status); }; }; then
10136 ac_cv_sizeof_size_t=`cat conftest.val`
10138 echo "$as_me: program exited with status
$ac_status" >&5
10139 echo "$as_me: failed program was
:" >&5
10140 sed 's/^/| /' conftest.$ac_ext >&5
10142 ( exit $ac_status )
10143 if test "$ac_cv_type_size_t" = yes; then
10144 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(size_t
)
10145 See \
`config.log' for more details." >&5
10146 echo "$as_me: error: cannot compute sizeof (size_t)
10147 See \`config.log
' for more details." >&2;}
10148 { (exit 77); exit 77; }; }
10150 ac_cv_sizeof_size_t=0
10153 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10157 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10158 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
10162 cat >>confdefs.h <<_ACEOF
10163 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10167 { echo "$as_me:$LINENO: checking for pid_t" >&5
10168 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
10169 if test "${ac_cv_type_pid_t+set}" = set; then
10170 echo $ECHO_N "(cached) $ECHO_C" >&6
10172 cat >conftest.$ac_ext <<_ACEOF
10175 cat confdefs.h >>conftest.$ac_ext
10176 cat >>conftest.$ac_ext <<_ACEOF
10177 /* end confdefs.h. */
10178 $ac_includes_default
10179 typedef pid_t ac__type_new_;
10183 if ((ac__type_new_ *) 0)
10185 if (sizeof (ac__type_new_))
10191 rm -f conftest.$ac_objext
10192 if { (ac_try="$ac_compile"
10193 case "(($ac_try" in
10194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10195 *) ac_try_echo=$ac_try;;
10197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10198 (eval "$ac_compile") 2>conftest.er1
10200 grep -v '^
*+' conftest.er1 >conftest.err
10202 cat conftest.err >&5
10203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204 (exit $ac_status); } && {
10205 test -z "$ac_c_werror_flag" ||
10206 test ! -s conftest.err
10207 } && test -s conftest.$ac_objext; then
10208 ac_cv_type_pid_t=yes
10210 echo "$as_me: failed program was:" >&5
10211 sed 's
/^
/|
/' conftest.$ac_ext >&5
10213 ac_cv_type_pid_t=no
10216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10218 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10219 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
10221 # The cast to long int works around a bug in the HP C Compiler
10222 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10223 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10224 # This bug is HP SR number 8606223364.
10225 { echo "$as_me:$LINENO: checking size of pid_t" >&5
10226 echo $ECHO_N "checking size of pid_t... $ECHO_C" >&6; }
10227 if test "${ac_cv_sizeof_pid_t+set}" = set; then
10228 echo $ECHO_N "(cached) $ECHO_C" >&6
10230 if test "$cross_compiling" = yes; then
10231 # Depending upon the size, compute the lo and hi bounds.
10232 cat >conftest.
$ac_ext <<_ACEOF
10235 cat confdefs.h
>>conftest.
$ac_ext
10236 cat >>conftest.
$ac_ext <<_ACEOF
10237 /* end confdefs.h. */
10238 $ac_includes_default
10239 typedef pid_t ac__type_sizeof_;
10243 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10250 rm -f conftest.
$ac_objext
10251 if { (ac_try
="$ac_compile"
10252 case "(($ac_try" in
10253 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10254 *) ac_try_echo=$ac_try;;
10256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10257 (eval "$ac_compile") 2>conftest.er1
10259 grep -v '^ *+' conftest.er1 >conftest.err
10261 cat conftest.err >&5
10262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263 (exit $ac_status); } && {
10264 test -z "$ac_c_werror_flag" ||
10265 test ! -s conftest.err
10266 } && test -s conftest.$ac_objext; then
10269 cat >conftest.$ac_ext <<_ACEOF
10272 cat confdefs.h >>conftest.$ac_ext
10273 cat >>conftest.$ac_ext <<_ACEOF
10274 /* end confdefs.h. */
10275 $ac_includes_default
10276 typedef pid_t ac__type_sizeof_;
10280 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10287 rm -f conftest.$ac_objext
10288 if { (ac_try="$ac_compile"
10289 case "(($ac_try" in
10290 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10291 *) ac_try_echo
=$ac_try;;
10293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10294 (eval "$ac_compile") 2>conftest.er1
10296 grep -v '^ *+' conftest.er1
>conftest.err
10298 cat conftest.err
>&5
10299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300 (exit $ac_status); } && {
10301 test -z "$ac_c_werror_flag" ||
10302 test ! -s conftest.err
10303 } && test -s conftest.
$ac_objext; then
10304 ac_hi
=$ac_mid; break
10306 echo "$as_me: failed program was:" >&5
10307 sed 's/^/| /' conftest.
$ac_ext >&5
10309 ac_lo
=`expr $ac_mid + 1`
10310 if test $ac_lo -le $ac_mid; then
10314 ac_mid
=`expr 2 '*' $ac_mid + 1`
10317 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10320 echo "$as_me: failed program was:" >&5
10321 sed 's/^/| /' conftest.
$ac_ext >&5
10323 cat >conftest.
$ac_ext <<_ACEOF
10326 cat confdefs.h
>>conftest.
$ac_ext
10327 cat >>conftest.
$ac_ext <<_ACEOF
10328 /* end confdefs.h. */
10329 $ac_includes_default
10330 typedef pid_t ac__type_sizeof_;
10334 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10341 rm -f conftest.
$ac_objext
10342 if { (ac_try
="$ac_compile"
10343 case "(($ac_try" in
10344 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10345 *) ac_try_echo=$ac_try;;
10347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10348 (eval "$ac_compile") 2>conftest.er1
10350 grep -v '^ *+' conftest.er1 >conftest.err
10352 cat conftest.err >&5
10353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354 (exit $ac_status); } && {
10355 test -z "$ac_c_werror_flag" ||
10356 test ! -s conftest.err
10357 } && test -s conftest.$ac_objext; then
10360 cat >conftest.$ac_ext <<_ACEOF
10363 cat confdefs.h >>conftest.$ac_ext
10364 cat >>conftest.$ac_ext <<_ACEOF
10365 /* end confdefs.h. */
10366 $ac_includes_default
10367 typedef pid_t ac__type_sizeof_;
10371 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10378 rm -f conftest.$ac_objext
10379 if { (ac_try="$ac_compile"
10380 case "(($ac_try" in
10381 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10382 *) ac_try_echo
=$ac_try;;
10384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10385 (eval "$ac_compile") 2>conftest.er1
10387 grep -v '^ *+' conftest.er1
>conftest.err
10389 cat conftest.err
>&5
10390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10391 (exit $ac_status); } && {
10392 test -z "$ac_c_werror_flag" ||
10393 test ! -s conftest.err
10394 } && test -s conftest.
$ac_objext; then
10395 ac_lo
=$ac_mid; break
10397 echo "$as_me: failed program was:" >&5
10398 sed 's/^/| /' conftest.
$ac_ext >&5
10400 ac_hi
=`expr '(' $ac_mid ')' - 1`
10401 if test $ac_mid -le $ac_hi; then
10405 ac_mid
=`expr 2 '*' $ac_mid`
10408 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10411 echo "$as_me: failed program was:" >&5
10412 sed 's/^/| /' conftest.
$ac_ext >&5
10417 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10420 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10421 # Binary search between lo and hi bounds.
10422 while test "x$ac_lo" != "x$ac_hi"; do
10423 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10424 cat >conftest.
$ac_ext <<_ACEOF
10427 cat confdefs.h
>>conftest.
$ac_ext
10428 cat >>conftest.
$ac_ext <<_ACEOF
10429 /* end confdefs.h. */
10430 $ac_includes_default
10431 typedef pid_t ac__type_sizeof_;
10435 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10442 rm -f conftest.
$ac_objext
10443 if { (ac_try
="$ac_compile"
10444 case "(($ac_try" in
10445 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10446 *) ac_try_echo=$ac_try;;
10448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10449 (eval "$ac_compile") 2>conftest.er1
10451 grep -v '^ *+' conftest.er1 >conftest.err
10453 cat conftest.err >&5
10454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455 (exit $ac_status); } && {
10456 test -z "$ac_c_werror_flag" ||
10457 test ! -s conftest.err
10458 } && test -s conftest.$ac_objext; then
10461 echo "$as_me: failed program was:" >&5
10462 sed 's/^/| /' conftest.$ac_ext >&5
10464 ac_lo=`expr '(' $ac_mid ')' + 1`
10467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10470 ?*) ac_cv_sizeof_pid_t=$ac_lo;;
10471 '') if test "$ac_cv_type_pid_t" = yes; then
10472 { { echo "$as_me:$LINENO: error: cannot compute sizeof (pid_t)
10473 See \`config.log
' for more details." >&5
10474 echo "$as_me: error: cannot compute sizeof (pid_t)
10475 See \`config.log' for more details.
" >&2;}
10476 { (exit 77); exit 77; }; }
10478 ac_cv_sizeof_pid_t=0
10482 cat >conftest.$ac_ext <<_ACEOF
10485 cat confdefs.h >>conftest.$ac_ext
10486 cat >>conftest.$ac_ext <<_ACEOF
10487 /* end confdefs.h. */
10488 $ac_includes_default
10489 typedef pid_t ac__type_sizeof_;
10490 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10491 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10493 #include <stdlib.h>
10498 FILE *f = fopen ("conftest.val
", "w
");
10501 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10503 long int i = longval ();
10504 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10506 fprintf (f, "%ld
\n", i);
10510 unsigned long int i = ulongval ();
10511 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10513 fprintf (f, "%lu
\n", i);
10515 return ferror (f) || fclose (f) != 0;
10521 rm -f conftest$ac_exeext
10522 if { (ac_try="$ac_link"
10523 case "(($ac_try" in
10524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10525 *) ac_try_echo=$ac_try;;
10527 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10528 (eval "$ac_link") 2>&5
10530 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10531 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10532 { (case "(($ac_try" in
10533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10534 *) ac_try_echo=$ac_try;;
10536 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10537 (eval "$ac_try") 2>&5
10539 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10540 (exit $ac_status); }; }; then
10541 ac_cv_sizeof_pid_t=`cat conftest.val`
10543 echo "$as_me: program exited with status
$ac_status" >&5
10544 echo "$as_me: failed program was
:" >&5
10545 sed 's/^/| /' conftest.$ac_ext >&5
10547 ( exit $ac_status )
10548 if test "$ac_cv_type_pid_t" = yes; then
10549 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(pid_t
)
10550 See \
`config.log' for more details." >&5
10551 echo "$as_me: error: cannot compute sizeof (pid_t)
10552 See \`config.log
' for more details." >&2;}
10553 { (exit 77); exit 77; }; }
10555 ac_cv_sizeof_pid_t=0
10558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10562 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pid_t" >&5
10563 echo "${ECHO_T}$ac_cv_sizeof_pid_t" >&6; }
10567 cat >>confdefs.h <<_ACEOF
10568 #define SIZEOF_PID_T $ac_cv_sizeof_pid_t
10573 { echo "$as_me:$LINENO: checking for long long support" >&5
10574 echo $ECHO_N "checking for long long support... $ECHO_C" >&6; }
10576 cat >conftest.$ac_ext <<_ACEOF
10579 cat confdefs.h >>conftest.$ac_ext
10580 cat >>conftest.$ac_ext <<_ACEOF
10581 /* end confdefs.h. */
10586 long long x; x = (long long)0;
10591 rm -f conftest.$ac_objext
10592 if { (ac_try="$ac_compile"
10593 case "(($ac_try" in
10594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10595 *) ac_try_echo=$ac_try;;
10597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10598 (eval "$ac_compile") 2>conftest.er1
10600 grep -v '^
*+' conftest.er1 >conftest.err
10602 cat conftest.err >&5
10603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604 (exit $ac_status); } && {
10605 test -z "$ac_c_werror_flag" ||
10606 test ! -s conftest.err
10607 } && test -s conftest.$ac_objext; then
10610 cat >>confdefs.h <<\_ACEOF
10611 #define HAVE_LONG_LONG 1
10617 echo "$as_me: failed program was:" >&5
10618 sed 's
/^
/|
/' conftest.$ac_ext >&5
10623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10624 { echo "$as_me:$LINENO: result: $have_long_long" >&5
10625 echo "${ECHO_T}$have_long_long" >&6; }
10626 if test "$have_long_long" = yes ; then
10627 { echo "$as_me:$LINENO: checking for long long" >&5
10628 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
10629 if test "${ac_cv_type_long_long+set}" = set; then
10630 echo $ECHO_N "(cached) $ECHO_C" >&6
10632 cat >conftest.$ac_ext <<_ACEOF
10635 cat confdefs.h >>conftest.$ac_ext
10636 cat >>conftest.$ac_ext <<_ACEOF
10637 /* end confdefs.h. */
10638 $ac_includes_default
10639 typedef long long ac__type_new_;
10643 if ((ac__type_new_ *) 0)
10645 if (sizeof (ac__type_new_))
10651 rm -f conftest.$ac_objext
10652 if { (ac_try="$ac_compile"
10653 case "(($ac_try" in
10654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10655 *) ac_try_echo=$ac_try;;
10657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10658 (eval "$ac_compile") 2>conftest.er1
10660 grep -v '^
*+' conftest.er1 >conftest.err
10662 cat conftest.err >&5
10663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10664 (exit $ac_status); } && {
10665 test -z "$ac_c_werror_flag" ||
10666 test ! -s conftest.err
10667 } && test -s conftest.$ac_objext; then
10668 ac_cv_type_long_long=yes
10670 echo "$as_me: failed program was:" >&5
10671 sed 's
/^
/|
/' conftest.$ac_ext >&5
10673 ac_cv_type_long_long=no
10676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10678 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
10679 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
10681 # The cast to long int works around a bug in the HP C Compiler
10682 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10683 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10684 # This bug is HP SR number 8606223364.
10685 { echo "$as_me:$LINENO: checking size of long long" >&5
10686 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
10687 if test "${ac_cv_sizeof_long_long+set}" = set; then
10688 echo $ECHO_N "(cached) $ECHO_C" >&6
10690 if test "$cross_compiling" = yes; then
10691 # Depending upon the size, compute the lo and hi bounds.
10692 cat >conftest.
$ac_ext <<_ACEOF
10695 cat confdefs.h
>>conftest.
$ac_ext
10696 cat >>conftest.
$ac_ext <<_ACEOF
10697 /* end confdefs.h. */
10698 $ac_includes_default
10699 typedef long long ac__type_sizeof_;
10703 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10710 rm -f conftest.
$ac_objext
10711 if { (ac_try
="$ac_compile"
10712 case "(($ac_try" in
10713 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10714 *) ac_try_echo=$ac_try;;
10716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10717 (eval "$ac_compile") 2>conftest.er1
10719 grep -v '^ *+' conftest.er1 >conftest.err
10721 cat conftest.err >&5
10722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723 (exit $ac_status); } && {
10724 test -z "$ac_c_werror_flag" ||
10725 test ! -s conftest.err
10726 } && test -s conftest.$ac_objext; then
10729 cat >conftest.$ac_ext <<_ACEOF
10732 cat confdefs.h >>conftest.$ac_ext
10733 cat >>conftest.$ac_ext <<_ACEOF
10734 /* end confdefs.h. */
10735 $ac_includes_default
10736 typedef long long ac__type_sizeof_;
10740 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10747 rm -f conftest.$ac_objext
10748 if { (ac_try="$ac_compile"
10749 case "(($ac_try" in
10750 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10751 *) ac_try_echo
=$ac_try;;
10753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10754 (eval "$ac_compile") 2>conftest.er1
10756 grep -v '^ *+' conftest.er1
>conftest.err
10758 cat conftest.err
>&5
10759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760 (exit $ac_status); } && {
10761 test -z "$ac_c_werror_flag" ||
10762 test ! -s conftest.err
10763 } && test -s conftest.
$ac_objext; then
10764 ac_hi
=$ac_mid; break
10766 echo "$as_me: failed program was:" >&5
10767 sed 's/^/| /' conftest.
$ac_ext >&5
10769 ac_lo
=`expr $ac_mid + 1`
10770 if test $ac_lo -le $ac_mid; then
10774 ac_mid
=`expr 2 '*' $ac_mid + 1`
10777 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10780 echo "$as_me: failed program was:" >&5
10781 sed 's/^/| /' conftest.
$ac_ext >&5
10783 cat >conftest.
$ac_ext <<_ACEOF
10786 cat confdefs.h
>>conftest.
$ac_ext
10787 cat >>conftest.
$ac_ext <<_ACEOF
10788 /* end confdefs.h. */
10789 $ac_includes_default
10790 typedef long long ac__type_sizeof_;
10794 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10801 rm -f conftest.
$ac_objext
10802 if { (ac_try
="$ac_compile"
10803 case "(($ac_try" in
10804 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10805 *) ac_try_echo=$ac_try;;
10807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10808 (eval "$ac_compile") 2>conftest.er1
10810 grep -v '^ *+' conftest.er1 >conftest.err
10812 cat conftest.err >&5
10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); } && {
10815 test -z "$ac_c_werror_flag" ||
10816 test ! -s conftest.err
10817 } && test -s conftest.$ac_objext; then
10820 cat >conftest.$ac_ext <<_ACEOF
10823 cat confdefs.h >>conftest.$ac_ext
10824 cat >>conftest.$ac_ext <<_ACEOF
10825 /* end confdefs.h. */
10826 $ac_includes_default
10827 typedef long long ac__type_sizeof_;
10831 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10838 rm -f conftest.$ac_objext
10839 if { (ac_try="$ac_compile"
10840 case "(($ac_try" in
10841 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10842 *) ac_try_echo
=$ac_try;;
10844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10845 (eval "$ac_compile") 2>conftest.er1
10847 grep -v '^ *+' conftest.er1
>conftest.err
10849 cat conftest.err
>&5
10850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851 (exit $ac_status); } && {
10852 test -z "$ac_c_werror_flag" ||
10853 test ! -s conftest.err
10854 } && test -s conftest.
$ac_objext; then
10855 ac_lo
=$ac_mid; break
10857 echo "$as_me: failed program was:" >&5
10858 sed 's/^/| /' conftest.
$ac_ext >&5
10860 ac_hi
=`expr '(' $ac_mid ')' - 1`
10861 if test $ac_mid -le $ac_hi; then
10865 ac_mid
=`expr 2 '*' $ac_mid`
10868 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10871 echo "$as_me: failed program was:" >&5
10872 sed 's/^/| /' conftest.
$ac_ext >&5
10877 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10880 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10881 # Binary search between lo and hi bounds.
10882 while test "x$ac_lo" != "x$ac_hi"; do
10883 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10884 cat >conftest.
$ac_ext <<_ACEOF
10887 cat confdefs.h
>>conftest.
$ac_ext
10888 cat >>conftest.
$ac_ext <<_ACEOF
10889 /* end confdefs.h. */
10890 $ac_includes_default
10891 typedef long long ac__type_sizeof_;
10895 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10902 rm -f conftest.
$ac_objext
10903 if { (ac_try
="$ac_compile"
10904 case "(($ac_try" in
10905 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10906 *) ac_try_echo=$ac_try;;
10908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10909 (eval "$ac_compile") 2>conftest.er1
10911 grep -v '^ *+' conftest.er1 >conftest.err
10913 cat conftest.err >&5
10914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915 (exit $ac_status); } && {
10916 test -z "$ac_c_werror_flag" ||
10917 test ! -s conftest.err
10918 } && test -s conftest.$ac_objext; then
10921 echo "$as_me: failed program was:" >&5
10922 sed 's/^/| /' conftest.$ac_ext >&5
10924 ac_lo=`expr '(' $ac_mid ')' + 1`
10927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10930 ?*) ac_cv_sizeof_long_long=$ac_lo;;
10931 '') if test "$ac_cv_type_long_long" = yes; then
10932 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
10933 See \`config.log
' for more details." >&5
10934 echo "$as_me: error: cannot compute sizeof (long long)
10935 See \`config.log' for more details.
" >&2;}
10936 { (exit 77); exit 77; }; }
10938 ac_cv_sizeof_long_long=0
10942 cat >conftest.$ac_ext <<_ACEOF
10945 cat confdefs.h >>conftest.$ac_ext
10946 cat >>conftest.$ac_ext <<_ACEOF
10947 /* end confdefs.h. */
10948 $ac_includes_default
10949 typedef long long ac__type_sizeof_;
10950 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10951 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10953 #include <stdlib.h>
10958 FILE *f = fopen ("conftest.val
", "w
");
10961 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10963 long int i = longval ();
10964 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10966 fprintf (f, "%ld
\n", i);
10970 unsigned long int i = ulongval ();
10971 if (i != ((long int) (sizeof (ac__type_sizeof_))))
10973 fprintf (f, "%lu
\n", i);
10975 return ferror (f) || fclose (f) != 0;
10981 rm -f conftest$ac_exeext
10982 if { (ac_try="$ac_link"
10983 case "(($ac_try" in
10984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10985 *) ac_try_echo=$ac_try;;
10987 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10988 (eval "$ac_link") 2>&5
10990 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10991 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10992 { (case "(($ac_try" in
10993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10994 *) ac_try_echo=$ac_try;;
10996 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
10997 (eval "$ac_try") 2>&5
10999 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11000 (exit $ac_status); }; }; then
11001 ac_cv_sizeof_long_long=`cat conftest.val`
11003 echo "$as_me: program exited with status
$ac_status" >&5
11004 echo "$as_me: failed program was
:" >&5
11005 sed 's/^/| /' conftest.$ac_ext >&5
11007 ( exit $ac_status )
11008 if test "$ac_cv_type_long_long" = yes; then
11009 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long long
)
11010 See \
`config.log' for more details." >&5
11011 echo "$as_me: error: cannot compute sizeof (long long)
11012 See \`config.log
' for more details." >&2;}
11013 { (exit 77); exit 77; }; }
11015 ac_cv_sizeof_long_long=0
11018 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11022 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11023 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
11027 cat >>confdefs.h <<_ACEOF
11028 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11034 { echo "$as_me:$LINENO: checking for _Bool support" >&5
11035 echo $ECHO_N "checking for _Bool support... $ECHO_C" >&6; }
11037 cat >conftest.$ac_ext <<_ACEOF
11040 cat confdefs.h >>conftest.$ac_ext
11041 cat >>conftest.$ac_ext <<_ACEOF
11042 /* end confdefs.h. */
11047 _Bool x; x = (_Bool)0;
11052 rm -f conftest.$ac_objext
11053 if { (ac_try="$ac_compile"
11054 case "(($ac_try" in
11055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11056 *) ac_try_echo=$ac_try;;
11058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11059 (eval "$ac_compile") 2>conftest.er1
11061 grep -v '^
*+' conftest.er1 >conftest.err
11063 cat conftest.err >&5
11064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11065 (exit $ac_status); } && {
11066 test -z "$ac_c_werror_flag" ||
11067 test ! -s conftest.err
11068 } && test -s conftest.$ac_objext; then
11071 cat >>confdefs.h <<\_ACEOF
11072 #define HAVE_C99_BOOL 1
11078 echo "$as_me: failed program was:" >&5
11079 sed 's
/^
/|
/' conftest.$ac_ext >&5
11084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11085 { echo "$as_me:$LINENO: result: $have_c99_bool" >&5
11086 echo "${ECHO_T}$have_c99_bool" >&6; }
11087 if test "$have_c99_bool" = yes ; then
11088 { echo "$as_me:$LINENO: checking for _Bool" >&5
11089 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
11090 if test "${ac_cv_type__Bool+set}" = set; then
11091 echo $ECHO_N "(cached) $ECHO_C" >&6
11093 cat >conftest.$ac_ext <<_ACEOF
11096 cat confdefs.h >>conftest.$ac_ext
11097 cat >>conftest.$ac_ext <<_ACEOF
11098 /* end confdefs.h. */
11099 $ac_includes_default
11100 typedef _Bool ac__type_new_;
11104 if ((ac__type_new_ *) 0)
11106 if (sizeof (ac__type_new_))
11112 rm -f conftest.$ac_objext
11113 if { (ac_try="$ac_compile"
11114 case "(($ac_try" in
11115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11116 *) ac_try_echo=$ac_try;;
11118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11119 (eval "$ac_compile") 2>conftest.er1
11121 grep -v '^
*+' conftest.er1 >conftest.err
11123 cat conftest.err >&5
11124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11125 (exit $ac_status); } && {
11126 test -z "$ac_c_werror_flag" ||
11127 test ! -s conftest.err
11128 } && test -s conftest.$ac_objext; then
11129 ac_cv_type__Bool=yes
11131 echo "$as_me: failed program was:" >&5
11132 sed 's
/^
/|
/' conftest.$ac_ext >&5
11134 ac_cv_type__Bool=no
11137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11139 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
11140 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
11142 # The cast to long int works around a bug in the HP C Compiler
11143 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11144 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11145 # This bug is HP SR number 8606223364.
11146 { echo "$as_me:$LINENO: checking size of _Bool" >&5
11147 echo $ECHO_N "checking size of _Bool... $ECHO_C" >&6; }
11148 if test "${ac_cv_sizeof__Bool+set}" = set; then
11149 echo $ECHO_N "(cached) $ECHO_C" >&6
11151 if test "$cross_compiling" = yes; then
11152 # Depending upon the size, compute the lo and hi bounds.
11153 cat >conftest.
$ac_ext <<_ACEOF
11156 cat confdefs.h
>>conftest.
$ac_ext
11157 cat >>conftest.
$ac_ext <<_ACEOF
11158 /* end confdefs.h. */
11159 $ac_includes_default
11160 typedef _Bool ac__type_sizeof_;
11164 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11171 rm -f conftest.
$ac_objext
11172 if { (ac_try
="$ac_compile"
11173 case "(($ac_try" in
11174 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11175 *) ac_try_echo=$ac_try;;
11177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11178 (eval "$ac_compile") 2>conftest.er1
11180 grep -v '^ *+' conftest.er1 >conftest.err
11182 cat conftest.err >&5
11183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184 (exit $ac_status); } && {
11185 test -z "$ac_c_werror_flag" ||
11186 test ! -s conftest.err
11187 } && test -s conftest.$ac_objext; then
11190 cat >conftest.$ac_ext <<_ACEOF
11193 cat confdefs.h >>conftest.$ac_ext
11194 cat >>conftest.$ac_ext <<_ACEOF
11195 /* end confdefs.h. */
11196 $ac_includes_default
11197 typedef _Bool ac__type_sizeof_;
11201 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11208 rm -f conftest.$ac_objext
11209 if { (ac_try="$ac_compile"
11210 case "(($ac_try" in
11211 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11212 *) ac_try_echo
=$ac_try;;
11214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11215 (eval "$ac_compile") 2>conftest.er1
11217 grep -v '^ *+' conftest.er1
>conftest.err
11219 cat conftest.err
>&5
11220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221 (exit $ac_status); } && {
11222 test -z "$ac_c_werror_flag" ||
11223 test ! -s conftest.err
11224 } && test -s conftest.
$ac_objext; then
11225 ac_hi
=$ac_mid; break
11227 echo "$as_me: failed program was:" >&5
11228 sed 's/^/| /' conftest.
$ac_ext >&5
11230 ac_lo
=`expr $ac_mid + 1`
11231 if test $ac_lo -le $ac_mid; then
11235 ac_mid
=`expr 2 '*' $ac_mid + 1`
11238 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11241 echo "$as_me: failed program was:" >&5
11242 sed 's/^/| /' conftest.
$ac_ext >&5
11244 cat >conftest.
$ac_ext <<_ACEOF
11247 cat confdefs.h
>>conftest.
$ac_ext
11248 cat >>conftest.
$ac_ext <<_ACEOF
11249 /* end confdefs.h. */
11250 $ac_includes_default
11251 typedef _Bool ac__type_sizeof_;
11255 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11262 rm -f conftest.
$ac_objext
11263 if { (ac_try
="$ac_compile"
11264 case "(($ac_try" in
11265 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11266 *) ac_try_echo=$ac_try;;
11268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11269 (eval "$ac_compile") 2>conftest.er1
11271 grep -v '^ *+' conftest.er1 >conftest.err
11273 cat conftest.err >&5
11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); } && {
11276 test -z "$ac_c_werror_flag" ||
11277 test ! -s conftest.err
11278 } && test -s conftest.$ac_objext; then
11281 cat >conftest.$ac_ext <<_ACEOF
11284 cat confdefs.h >>conftest.$ac_ext
11285 cat >>conftest.$ac_ext <<_ACEOF
11286 /* end confdefs.h. */
11287 $ac_includes_default
11288 typedef _Bool ac__type_sizeof_;
11292 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11299 rm -f conftest.$ac_objext
11300 if { (ac_try="$ac_compile"
11301 case "(($ac_try" in
11302 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11303 *) ac_try_echo
=$ac_try;;
11305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11306 (eval "$ac_compile") 2>conftest.er1
11308 grep -v '^ *+' conftest.er1
>conftest.err
11310 cat conftest.err
>&5
11311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312 (exit $ac_status); } && {
11313 test -z "$ac_c_werror_flag" ||
11314 test ! -s conftest.err
11315 } && test -s conftest.
$ac_objext; then
11316 ac_lo
=$ac_mid; break
11318 echo "$as_me: failed program was:" >&5
11319 sed 's/^/| /' conftest.
$ac_ext >&5
11321 ac_hi
=`expr '(' $ac_mid ')' - 1`
11322 if test $ac_mid -le $ac_hi; then
11326 ac_mid
=`expr 2 '*' $ac_mid`
11329 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11332 echo "$as_me: failed program was:" >&5
11333 sed 's/^/| /' conftest.
$ac_ext >&5
11338 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11341 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11342 # Binary search between lo and hi bounds.
11343 while test "x$ac_lo" != "x$ac_hi"; do
11344 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11345 cat >conftest.
$ac_ext <<_ACEOF
11348 cat confdefs.h
>>conftest.
$ac_ext
11349 cat >>conftest.
$ac_ext <<_ACEOF
11350 /* end confdefs.h. */
11351 $ac_includes_default
11352 typedef _Bool ac__type_sizeof_;
11356 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11363 rm -f conftest.
$ac_objext
11364 if { (ac_try
="$ac_compile"
11365 case "(($ac_try" in
11366 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11367 *) ac_try_echo=$ac_try;;
11369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11370 (eval "$ac_compile") 2>conftest.er1
11372 grep -v '^ *+' conftest.er1 >conftest.err
11374 cat conftest.err >&5
11375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11376 (exit $ac_status); } && {
11377 test -z "$ac_c_werror_flag" ||
11378 test ! -s conftest.err
11379 } && test -s conftest.$ac_objext; then
11382 echo "$as_me: failed program was:" >&5
11383 sed 's/^/| /' conftest.$ac_ext >&5
11385 ac_lo=`expr '(' $ac_mid ')' + 1`
11388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11391 ?*) ac_cv_sizeof__Bool=$ac_lo;;
11392 '') if test "$ac_cv_type__Bool" = yes; then
11393 { { echo "$as_me:$LINENO: error: cannot compute sizeof (_Bool)
11394 See \`config.log
' for more details." >&5
11395 echo "$as_me: error: cannot compute sizeof (_Bool)
11396 See \`config.log' for more details.
" >&2;}
11397 { (exit 77); exit 77; }; }
11399 ac_cv_sizeof__Bool=0
11403 cat >conftest.$ac_ext <<_ACEOF
11406 cat confdefs.h >>conftest.$ac_ext
11407 cat >>conftest.$ac_ext <<_ACEOF
11408 /* end confdefs.h. */
11409 $ac_includes_default
11410 typedef _Bool ac__type_sizeof_;
11411 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11412 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11414 #include <stdlib.h>
11419 FILE *f = fopen ("conftest.val
", "w
");
11422 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11424 long int i = longval ();
11425 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11427 fprintf (f, "%ld
\n", i);
11431 unsigned long int i = ulongval ();
11432 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11434 fprintf (f, "%lu
\n", i);
11436 return ferror (f) || fclose (f) != 0;
11442 rm -f conftest$ac_exeext
11443 if { (ac_try="$ac_link"
11444 case "(($ac_try" in
11445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11446 *) ac_try_echo=$ac_try;;
11448 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11449 (eval "$ac_link") 2>&5
11451 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11452 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11453 { (case "(($ac_try" in
11454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11455 *) ac_try_echo=$ac_try;;
11457 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11458 (eval "$ac_try") 2>&5
11460 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11461 (exit $ac_status); }; }; then
11462 ac_cv_sizeof__Bool=`cat conftest.val`
11464 echo "$as_me: program exited with status
$ac_status" >&5
11465 echo "$as_me: failed program was
:" >&5
11466 sed 's/^/| /' conftest.$ac_ext >&5
11468 ( exit $ac_status )
11469 if test "$ac_cv_type__Bool" = yes; then
11470 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(_Bool
)
11471 See \
`config.log' for more details." >&5
11472 echo "$as_me: error: cannot compute sizeof (_Bool)
11473 See \`config.log
' for more details." >&2;}
11474 { (exit 77); exit 77; }; }
11476 ac_cv_sizeof__Bool=0
11479 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11483 { echo "$as_me:$LINENO: result: $ac_cv_sizeof__Bool" >&5
11484 echo "${ECHO_T}$ac_cv_sizeof__Bool" >&6; }
11488 cat >>confdefs.h <<_ACEOF
11489 #define SIZEOF__BOOL $ac_cv_sizeof__Bool
11495 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
11496 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
11497 if test "${ac_cv_type_uintptr_t+set}" = set; then
11498 echo $ECHO_N "(cached) $ECHO_C" >&6
11500 cat >conftest.$ac_ext <<_ACEOF
11503 cat confdefs.h >>conftest.$ac_ext
11504 cat >>conftest.$ac_ext <<_ACEOF
11505 /* end confdefs.h. */
11506 #ifdef HAVE_STDINT_H
11507 #include <stdint.h>
11510 typedef uintptr_t ac__type_new_;
11514 if ((ac__type_new_ *) 0)
11516 if (sizeof (ac__type_new_))
11522 rm -f conftest.$ac_objext
11523 if { (ac_try="$ac_compile"
11524 case "(($ac_try" in
11525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11526 *) ac_try_echo=$ac_try;;
11528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11529 (eval "$ac_compile") 2>conftest.er1
11531 grep -v '^
*+' conftest.er1 >conftest.err
11533 cat conftest.err >&5
11534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535 (exit $ac_status); } && {
11536 test -z "$ac_c_werror_flag" ||
11537 test ! -s conftest.err
11538 } && test -s conftest.$ac_objext; then
11539 ac_cv_type_uintptr_t=yes
11541 echo "$as_me: failed program was:" >&5
11542 sed 's
/^
/|
/' conftest.$ac_ext >&5
11544 ac_cv_type_uintptr_t=no
11547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11549 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11550 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
11551 if test $ac_cv_type_uintptr_t = yes; then
11553 cat >>confdefs.h <<_ACEOF
11554 #define HAVE_UINTPTR_T 1
11557 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
11558 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
11559 if test "${ac_cv_type_uintptr_t+set}" = set; then
11560 echo $ECHO_N "(cached) $ECHO_C" >&6
11562 cat >conftest.$ac_ext <<_ACEOF
11565 cat confdefs.h >>conftest.$ac_ext
11566 cat >>conftest.$ac_ext <<_ACEOF
11567 /* end confdefs.h. */
11568 $ac_includes_default
11569 typedef uintptr_t ac__type_new_;
11573 if ((ac__type_new_ *) 0)
11575 if (sizeof (ac__type_new_))
11581 rm -f conftest.$ac_objext
11582 if { (ac_try="$ac_compile"
11583 case "(($ac_try" in
11584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11585 *) ac_try_echo=$ac_try;;
11587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11588 (eval "$ac_compile") 2>conftest.er1
11590 grep -v '^
*+' conftest.er1 >conftest.err
11592 cat conftest.err >&5
11593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11594 (exit $ac_status); } && {
11595 test -z "$ac_c_werror_flag" ||
11596 test ! -s conftest.err
11597 } && test -s conftest.$ac_objext; then
11598 ac_cv_type_uintptr_t=yes
11600 echo "$as_me: failed program was:" >&5
11601 sed 's
/^
/|
/' conftest.$ac_ext >&5
11603 ac_cv_type_uintptr_t=no
11606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11608 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11609 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
11611 # The cast to long int works around a bug in the HP C Compiler
11612 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11613 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11614 # This bug is HP SR number 8606223364.
11615 { echo "$as_me:$LINENO: checking size of uintptr_t" >&5
11616 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6; }
11617 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
11618 echo $ECHO_N "(cached) $ECHO_C" >&6
11620 if test "$cross_compiling" = yes; then
11621 # Depending upon the size, compute the lo and hi bounds.
11622 cat >conftest.
$ac_ext <<_ACEOF
11625 cat confdefs.h
>>conftest.
$ac_ext
11626 cat >>conftest.
$ac_ext <<_ACEOF
11627 /* end confdefs.h. */
11628 $ac_includes_default
11629 typedef uintptr_t ac__type_sizeof_;
11633 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11640 rm -f conftest.
$ac_objext
11641 if { (ac_try
="$ac_compile"
11642 case "(($ac_try" in
11643 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11644 *) ac_try_echo=$ac_try;;
11646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11647 (eval "$ac_compile") 2>conftest.er1
11649 grep -v '^ *+' conftest.er1 >conftest.err
11651 cat conftest.err >&5
11652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653 (exit $ac_status); } && {
11654 test -z "$ac_c_werror_flag" ||
11655 test ! -s conftest.err
11656 } && test -s conftest.$ac_objext; then
11659 cat >conftest.$ac_ext <<_ACEOF
11662 cat confdefs.h >>conftest.$ac_ext
11663 cat >>conftest.$ac_ext <<_ACEOF
11664 /* end confdefs.h. */
11665 $ac_includes_default
11666 typedef uintptr_t ac__type_sizeof_;
11670 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11677 rm -f conftest.$ac_objext
11678 if { (ac_try="$ac_compile"
11679 case "(($ac_try" in
11680 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11681 *) ac_try_echo
=$ac_try;;
11683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11684 (eval "$ac_compile") 2>conftest.er1
11686 grep -v '^ *+' conftest.er1
>conftest.err
11688 cat conftest.err
>&5
11689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690 (exit $ac_status); } && {
11691 test -z "$ac_c_werror_flag" ||
11692 test ! -s conftest.err
11693 } && test -s conftest.
$ac_objext; then
11694 ac_hi
=$ac_mid; break
11696 echo "$as_me: failed program was:" >&5
11697 sed 's/^/| /' conftest.
$ac_ext >&5
11699 ac_lo
=`expr $ac_mid + 1`
11700 if test $ac_lo -le $ac_mid; then
11704 ac_mid
=`expr 2 '*' $ac_mid + 1`
11707 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11710 echo "$as_me: failed program was:" >&5
11711 sed 's/^/| /' conftest.
$ac_ext >&5
11713 cat >conftest.
$ac_ext <<_ACEOF
11716 cat confdefs.h
>>conftest.
$ac_ext
11717 cat >>conftest.
$ac_ext <<_ACEOF
11718 /* end confdefs.h. */
11719 $ac_includes_default
11720 typedef uintptr_t ac__type_sizeof_;
11724 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11731 rm -f conftest.
$ac_objext
11732 if { (ac_try
="$ac_compile"
11733 case "(($ac_try" in
11734 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11735 *) ac_try_echo=$ac_try;;
11737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11738 (eval "$ac_compile") 2>conftest.er1
11740 grep -v '^ *+' conftest.er1 >conftest.err
11742 cat conftest.err >&5
11743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744 (exit $ac_status); } && {
11745 test -z "$ac_c_werror_flag" ||
11746 test ! -s conftest.err
11747 } && test -s conftest.$ac_objext; then
11750 cat >conftest.$ac_ext <<_ACEOF
11753 cat confdefs.h >>conftest.$ac_ext
11754 cat >>conftest.$ac_ext <<_ACEOF
11755 /* end confdefs.h. */
11756 $ac_includes_default
11757 typedef uintptr_t ac__type_sizeof_;
11761 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11768 rm -f conftest.$ac_objext
11769 if { (ac_try="$ac_compile"
11770 case "(($ac_try" in
11771 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11772 *) ac_try_echo
=$ac_try;;
11774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11775 (eval "$ac_compile") 2>conftest.er1
11777 grep -v '^ *+' conftest.er1
>conftest.err
11779 cat conftest.err
>&5
11780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); } && {
11782 test -z "$ac_c_werror_flag" ||
11783 test ! -s conftest.err
11784 } && test -s conftest.
$ac_objext; then
11785 ac_lo
=$ac_mid; break
11787 echo "$as_me: failed program was:" >&5
11788 sed 's/^/| /' conftest.
$ac_ext >&5
11790 ac_hi
=`expr '(' $ac_mid ')' - 1`
11791 if test $ac_mid -le $ac_hi; then
11795 ac_mid
=`expr 2 '*' $ac_mid`
11798 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11801 echo "$as_me: failed program was:" >&5
11802 sed 's/^/| /' conftest.
$ac_ext >&5
11807 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11810 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11811 # Binary search between lo and hi bounds.
11812 while test "x$ac_lo" != "x$ac_hi"; do
11813 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11814 cat >conftest.
$ac_ext <<_ACEOF
11817 cat confdefs.h
>>conftest.
$ac_ext
11818 cat >>conftest.
$ac_ext <<_ACEOF
11819 /* end confdefs.h. */
11820 $ac_includes_default
11821 typedef uintptr_t ac__type_sizeof_;
11825 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11832 rm -f conftest.
$ac_objext
11833 if { (ac_try
="$ac_compile"
11834 case "(($ac_try" in
11835 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11836 *) ac_try_echo=$ac_try;;
11838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11839 (eval "$ac_compile") 2>conftest.er1
11841 grep -v '^ *+' conftest.er1 >conftest.err
11843 cat conftest.err >&5
11844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845 (exit $ac_status); } && {
11846 test -z "$ac_c_werror_flag" ||
11847 test ! -s conftest.err
11848 } && test -s conftest.$ac_objext; then
11851 echo "$as_me: failed program was:" >&5
11852 sed 's/^/| /' conftest.$ac_ext >&5
11854 ac_lo=`expr '(' $ac_mid ')' + 1`
11857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11860 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
11861 '') if test "$ac_cv_type_uintptr_t" = yes; then
11862 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t)
11863 See \`config.log
' for more details." >&5
11864 echo "$as_me: error: cannot compute sizeof (uintptr_t)
11865 See \`config.log' for more details.
" >&2;}
11866 { (exit 77); exit 77; }; }
11868 ac_cv_sizeof_uintptr_t=0
11872 cat >conftest.$ac_ext <<_ACEOF
11875 cat confdefs.h >>conftest.$ac_ext
11876 cat >>conftest.$ac_ext <<_ACEOF
11877 /* end confdefs.h. */
11878 $ac_includes_default
11879 typedef uintptr_t ac__type_sizeof_;
11880 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11881 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11883 #include <stdlib.h>
11888 FILE *f = fopen ("conftest.val
", "w
");
11891 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11893 long int i = longval ();
11894 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11896 fprintf (f, "%ld
\n", i);
11900 unsigned long int i = ulongval ();
11901 if (i != ((long int) (sizeof (ac__type_sizeof_))))
11903 fprintf (f, "%lu
\n", i);
11905 return ferror (f) || fclose (f) != 0;
11911 rm -f conftest$ac_exeext
11912 if { (ac_try="$ac_link"
11913 case "(($ac_try" in
11914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11915 *) ac_try_echo=$ac_try;;
11917 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11918 (eval "$ac_link") 2>&5
11920 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11921 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11922 { (case "(($ac_try" in
11923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11924 *) ac_try_echo=$ac_try;;
11926 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
11927 (eval "$ac_try") 2>&5
11929 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11930 (exit $ac_status); }; }; then
11931 ac_cv_sizeof_uintptr_t=`cat conftest.val`
11933 echo "$as_me: program exited with status
$ac_status" >&5
11934 echo "$as_me: failed program was
:" >&5
11935 sed 's/^/| /' conftest.$ac_ext >&5
11937 ( exit $ac_status )
11938 if test "$ac_cv_type_uintptr_t" = yes; then
11939 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(uintptr_t
)
11940 See \
`config.log' for more details." >&5
11941 echo "$as_me: error: cannot compute sizeof (uintptr_t)
11942 See \`config.log
' for more details." >&2;}
11943 { (exit 77); exit 77; }; }
11945 ac_cv_sizeof_uintptr_t=0
11948 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11952 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
11953 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6; }
11957 cat >>confdefs.h <<_ACEOF
11958 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
11966 # Hmph. AC_CHECK_SIZEOF() doesn't include
<sys
/types.h
>.
11967 { echo "$as_me:$LINENO: checking size of off_t" >&5
11968 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
11969 if test "${ac_cv_sizeof_off_t+set}" = set; then
11970 echo $ECHO_N "(cached) $ECHO_C" >&6
11972 if test "$cross_compiling" = yes; then
11973 ac_cv_sizeof_off_t
=4
11975 cat >conftest.
$ac_ext <<_ACEOF
11978 cat confdefs.h
>>conftest.
$ac_ext
11979 cat >>conftest.
$ac_ext <<_ACEOF
11980 /* end confdefs.h. */
11982 #include <sys/types.h>
11985 FILE *f=fopen("conftestval", "w");
11987 fprintf(f, "%d\n", sizeof(off_t));
11991 rm -f conftest
$ac_exeext
11992 if { (ac_try
="$ac_link"
11993 case "(($ac_try" in
11994 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11995 *) ac_try_echo=$ac_try;;
11997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11998 (eval "$ac_link") 2>&5
12000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12002 { (case "(($ac_try" in
12003 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12004 *) ac_try_echo
=$ac_try;;
12006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12007 (eval "$ac_try") 2>&5
12009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010 (exit $ac_status); }; }; then
12011 ac_cv_sizeof_off_t
=`cat conftestval`
12013 echo "$as_me: program exited with status $ac_status" >&5
12014 echo "$as_me: failed program was:" >&5
12015 sed 's/^/| /' conftest.
$ac_ext >&5
12017 ( exit $ac_status )
12018 ac_cv_sizeof_off_t
=0
12020 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12027 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
12028 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
12030 cat >>confdefs.h
<<_ACEOF
12031 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12035 { echo "$as_me:$LINENO: checking whether to enable large file support" >&5
12036 echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6; }
12037 if test "$have_long_long" = yes -a \
12038 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
12039 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
12041 cat >>confdefs.h
<<\_ACEOF
12042 #define HAVE_LARGEFILE_SUPPORT 1
12045 { echo "$as_me:$LINENO: result: yes" >&5
12046 echo "${ECHO_T}yes" >&6; }
12048 { echo "$as_me:$LINENO: result: no" >&5
12049 echo "${ECHO_T}no" >&6; }
12052 # AC_CHECK_SIZEOF() doesn't include <time.h>.
12053 { echo "$as_me:$LINENO: checking size of time_t" >&5
12054 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
12055 if test "${ac_cv_sizeof_time_t+set}" = set; then
12056 echo $ECHO_N "(cached) $ECHO_C" >&6
12058 if test "$cross_compiling" = yes; then
12059 ac_cv_sizeof_time_t
=4
12061 cat >conftest.
$ac_ext <<_ACEOF
12064 cat confdefs.h
>>conftest.
$ac_ext
12065 cat >>conftest.
$ac_ext <<_ACEOF
12066 /* end confdefs.h. */
12071 FILE *f=fopen("conftestval", "w");
12073 fprintf(f, "%d\n", sizeof(time_t));
12077 rm -f conftest
$ac_exeext
12078 if { (ac_try
="$ac_link"
12079 case "(($ac_try" in
12080 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12081 *) ac_try_echo=$ac_try;;
12083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12084 (eval "$ac_link") 2>&5
12086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12088 { (case "(($ac_try" in
12089 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12090 *) ac_try_echo
=$ac_try;;
12092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12093 (eval "$ac_try") 2>&5
12095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096 (exit $ac_status); }; }; then
12097 ac_cv_sizeof_time_t
=`cat conftestval`
12099 echo "$as_me: program exited with status $ac_status" >&5
12100 echo "$as_me: failed program was:" >&5
12101 sed 's/^/| /' conftest.
$ac_ext >&5
12103 ( exit $ac_status )
12104 ac_cv_sizeof_time_t
=0
12106 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12113 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
12114 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
12116 cat >>confdefs.h
<<_ACEOF
12117 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
12122 # if have pthread_t then define SIZEOF_PTHREAD_T
12124 if test "$ac_cv_kpthread" = "yes"
12125 then CC
="$CC -Kpthread"
12126 elif test "$ac_cv_kthread" = "yes"
12127 then CC
="$CC -Kthread"
12128 elif test "$ac_cv_pthread" = "yes"
12129 then CC
="$CC -pthread"
12131 { echo "$as_me:$LINENO: checking for pthread_t" >&5
12132 echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6; }
12134 cat >conftest.
$ac_ext <<_ACEOF
12137 cat confdefs.h
>>conftest.
$ac_ext
12138 cat >>conftest.
$ac_ext <<_ACEOF
12139 /* end confdefs.h. */
12140 #include <pthread.h>
12144 pthread_t x; x = *(pthread_t*)0;
12149 rm -f conftest.
$ac_objext
12150 if { (ac_try
="$ac_compile"
12151 case "(($ac_try" in
12152 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12153 *) ac_try_echo=$ac_try;;
12155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12156 (eval "$ac_compile") 2>conftest.er1
12158 grep -v '^ *+' conftest.er1 >conftest.err
12160 cat conftest.err >&5
12161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162 (exit $ac_status); } && {
12163 test -z "$ac_c_werror_flag" ||
12164 test ! -s conftest.err
12165 } && test -s conftest.$ac_objext; then
12168 echo "$as_me: failed program was:" >&5
12169 sed 's/^/| /' conftest.$ac_ext >&5
12174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12175 { echo "$as_me:$LINENO: result: $have_pthread_t" >&5
12176 echo "${ECHO_T}$have_pthread_t" >&6; }
12177 if test "$have_pthread_t" = yes ; then
12178 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
12179 { echo "$as_me:$LINENO: checking size of pthread_t" >&5
12180 echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6; }
12181 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
12182 echo $ECHO_N "(cached) $ECHO_C" >&6
12184 if test "$cross_compiling" = yes; then
12185 ac_cv_sizeof_pthread_t=4
12187 cat >conftest.$ac_ext <<_ACEOF
12190 cat confdefs.h >>conftest.$ac_ext
12191 cat >>conftest.$ac_ext <<_ACEOF
12192 /* end confdefs.h. */
12194 #include <pthread.h>
12197 FILE *f=fopen("conftestval", "w");
12199 fprintf(f, "%d\n", sizeof(pthread_t));
12203 rm -f conftest$ac_exeext
12204 if { (ac_try="$ac_link"
12205 case "(($ac_try" in
12206 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12207 *) ac_try_echo
=$ac_try;;
12209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12210 (eval "$ac_link") 2>&5
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12214 { (case "(($ac_try" in
12215 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12216 *) ac_try_echo=$ac_try;;
12218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12219 (eval "$ac_try") 2>&5
12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222 (exit $ac_status); }; }; then
12223 ac_cv_sizeof_pthread_t=`cat conftestval
`
12225 echo "$as_me: program exited with status $ac_status" >&5
12226 echo "$as_me: failed program was:" >&5
12227 sed 's/^/| /' conftest.$ac_ext >&5
12229 ( exit $ac_status )
12230 ac_cv_sizeof_pthread_t=0
12232 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12239 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
12240 echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6; }
12242 cat >>confdefs.h <<_ACEOF
12243 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
12249 { echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5
12250 echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6; }
12251 # Check whether --enable-toolbox-glue was given.
12252 if test "${enable_toolbox_glue+set}" = set; then
12253 enableval=$enable_toolbox_glue;
12257 if test -z "$enable_toolbox_glue"
12259 case $ac_sys_system/$ac_sys_release in
12261 enable_toolbox_glue="yes";;
12263 enable_toolbox_glue="no";;
12266 case "$enable_toolbox_glue" in
12268 extra_machdep_objs="Python/mactoolboxglue.o"
12269 extra_undefs="-u _PyMac_Error"
12271 cat >>confdefs.h <<\_ACEOF
12272 #define USE_TOOLBOX_OBJECT_GLUE 1
12277 extra_machdep_objs=""
12281 { echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5
12282 echo "${ECHO_T}$enable_toolbox_glue" >&6; }
12285 case $ac_sys_system/$ac_sys_release in
12286 Darwin/[01567]\..*)
12287 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
12290 OTHER_LIBTOOL_OPT=""
12295 case $ac_sys_system/$ac_sys_release in
12296 Darwin/[01567]\..*)
12297 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
12298 if test "${enable_universalsdk}"; then
12301 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `arch
`"
12303 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12304 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
12306 gcc_version=`gcc
-v 2>&1 |
grep version | cut
-d\
-f3`
12307 if test ${gcc_version} '<' 4.0
12309 LIBTOOL_CRUFT="-lcc_dynamic"
12313 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch
`"
12314 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12315 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
12318 { echo "$as_me:$LINENO: checking for --enable-framework" >&5
12319 echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6; }
12320 if test "$enable_framework"
12322 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
12323 # -F. is needed to allow linking to the framework while
12324 # in the build location.
12326 cat >>confdefs.h <<\_ACEOF
12327 #define WITH_NEXT_FRAMEWORK 1
12330 { echo "$as_me:$LINENO: result: yes" >&5
12331 echo "${ECHO_T}yes" >&6; }
12333 { echo "$as_me:$LINENO: result: no" >&5
12334 echo "${ECHO_T}no" >&6; }
12337 { echo "$as_me:$LINENO: checking for dyld" >&5
12338 echo $ECHO_N "checking for dyld... $ECHO_C" >&6; }
12339 case $ac_sys_system/$ac_sys_release in
12342 cat >>confdefs.h <<\_ACEOF
12343 #define WITH_DYLD 1
12346 { echo "$as_me:$LINENO: result: always on for Darwin" >&5
12347 echo "${ECHO_T}always on for Darwin" >&6; }
12350 { echo "$as_me:$LINENO: result: no" >&5
12351 echo "${ECHO_T}no" >&6; }
12355 # Set info about shared libraries.
12361 # SO is the extension of shared libraries `(including the dot
!)
12362 # -- usually .so, .sl on HP-UX, .dll on Cygwin
12363 { echo "$as_me:$LINENO: checking SO" >&5
12364 echo $ECHO_N "checking SO... $ECHO_C" >&6; }
12367 case $ac_sys_system in
12378 # this might also be a termcap variable, see #610332
12380 echo '====================================================================='
12382 echo '+ WARNING: You have set SO in your environment. +'
12383 echo '+ Do you really mean to change the extension for shared libraries? +'
12384 echo '+ Continuing in 10 seconds to let you to ponder. +'
12386 echo '====================================================================='
12389 { echo "$as_me:$LINENO: result: $SO" >&5
12390 echo "${ECHO_T}$SO" >&6; }
12392 cat >>confdefs.h
<<_ACEOF
12393 #define SHLIB_EXT "$SO"
12396 # LDSHARED is the ld *command* used to create shared library
12397 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
12398 # (Shared libraries in this instance are shared modules to be loaded into
12399 # Python, as opposed to building Python itself as a shared library.)
12400 { echo "$as_me:$LINENO: checking LDSHARED" >&5
12401 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
12402 if test -z "$LDSHARED"
12404 case $ac_sys_system/$ac_sys_release in
12406 BLDSHARED
="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
12407 LDSHARED
="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
12410 BLDSHARED
="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
12411 LDSHARED
="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
12413 IRIX
/5*) LDSHARED
="ld -shared";;
12414 IRIX
*/6*) LDSHARED
="ld ${SGI_ABI} -shared -all";;
12416 if test "$GCC" = "yes"
12417 then LDSHARED
='$(CC) -shared'
12418 else LDSHARED
='$(CC) -G';
12420 hp
*|HP
*) LDSHARED
="ld -b";;
12421 OSF
*) LDSHARED
="ld -shared -expect_unresolved \"*\"";;
12423 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
12424 if test "$enable_framework" ; then
12425 # Link against the framework. All externals should be defined.
12426 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12427 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12429 # No framework. Ignore undefined symbols, assuming they come from Python
12430 LDSHARED
="$LDSHARED -undefined suppress"
12432 Darwin
/1.4*|Darwin
/5.
*|Darwin
/6.
*)
12433 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
12434 if test "$enable_framework" ; then
12435 # Link against the framework. All externals should be defined.
12436 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12437 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12439 # No framework, use the Python app as bundle-loader
12440 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
12441 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
12444 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
12445 # This allows an extension to be used in any Python
12446 cur_target
=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
12447 if test ${cur_target} '>' 10.2; then
12450 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
12452 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
12453 # environment with a value that is the same as what we'll use
12454 # in the Makefile to ensure that we'll get the same compiler
12455 # environment during configure and build time.
12456 MACOSX_DEPLOYMENT_TARGET
="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
12457 export MACOSX_DEPLOYMENT_TARGET
12459 EXPORT_MACOSX_DEPLOYMENT_TARGET
=''
12460 if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2
12462 if test "${enable_universalsdk}"; then
12463 LDFLAGS
="-arch i386 -arch ppc -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
12465 LDSHARED
='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
12466 BLDSHARED
="$LDSHARED"
12468 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
12469 if test "$enable_framework" ; then
12470 # Link against the framework. All externals should be defined.
12471 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12472 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12474 # No framework, use the Python app as bundle-loader
12475 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
12476 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
12480 Linux
*|GNU
*) LDSHARED
='$(CC) -shared';;
12481 BSD
/OS
*/4*) LDSHARED
="gcc -shared";;
12483 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
12485 LDSHARED
="$CC -shared ${LDFLAGS}"
12487 LDSHARED
="ld -Bshareable ${LDFLAGS}"
12490 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
12492 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
12495 [01].
* |
2.
[0-7] |
2.
[0-7].
*)
12496 LDSHARED
="ld -Bshareable ${LDFLAGS}"
12499 LDSHARED
='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
12503 NetBSD
*|DragonFly
*) LDSHARED
="cc -shared ${LDFLAGS}";;
12504 OpenUNIX
*|UnixWare
*)
12505 if test "$GCC" = "yes"
12506 then LDSHARED
='$(CC) -shared'
12507 else LDSHARED
='$(CC) -G'
12509 SCO_SV
*) LDSHARED
='$(CC) -Wl,-G,-Bexport';;
12510 Monterey
*) LDSHARED
="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
12511 CYGWIN
*) LDSHARED
="gcc -shared -Wl,--enable-auto-image-base";;
12512 atheos
*) LDSHARED
="gcc -shared";;
12516 { echo "$as_me:$LINENO: result: $LDSHARED" >&5
12517 echo "${ECHO_T}$LDSHARED" >&6; }
12518 BLDSHARED
=${BLDSHARED-$LDSHARED}
12519 # CCSHARED are the C *flags* used to create objects to go into a shared
12520 # library (module) -- this is only needed for a few systems
12521 { echo "$as_me:$LINENO: checking CCSHARED" >&5
12522 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
12523 if test -z "$CCSHARED"
12525 case $ac_sys_system/$ac_sys_release in
12526 SunOS
*) if test "$GCC" = yes;
12527 then CCSHARED
="-fPIC";
12528 elif test `uname -p` = sparc
;
12529 then CCSHARED
="-xcode=pic32";
12530 else CCSHARED
="-Kpic";
12532 hp
*|HP
*) if test "$GCC" = yes;
12533 then CCSHARED
="-fPIC";
12534 else CCSHARED
="+z";
12536 Linux
*|GNU
*) CCSHARED
="-fPIC";;
12537 BSD
/OS
*/4*) CCSHARED
="-fpic";;
12538 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*) CCSHARED
="-fPIC";;
12539 OpenUNIX
*|UnixWare
*)
12540 if test "$GCC" = "yes"
12541 then CCSHARED
="-fPIC"
12542 else CCSHARED
="-KPIC"
12545 if test "$GCC" = "yes"
12546 then CCSHARED
="-fPIC"
12547 else CCSHARED
="-Kpic -belf"
12549 Monterey
*) CCSHARED
="-G";;
12550 IRIX
*/6*) case $CC in
12551 *gcc
*) CCSHARED
="-shared";;
12554 atheos
*) CCSHARED
="-fPIC";;
12557 { echo "$as_me:$LINENO: result: $CCSHARED" >&5
12558 echo "${ECHO_T}$CCSHARED" >&6; }
12559 # LINKFORSHARED are the flags passed to the $(CC) command that links
12560 # the python executable -- this is only needed for a few systems
12561 { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
12562 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
12563 if test -z "$LINKFORSHARED"
12565 case $ac_sys_system/$ac_sys_release in
12566 AIX
*) LINKFORSHARED
='-Wl,-bE:Modules/python.exp -lld';;
12568 LINKFORSHARED
="-Wl,-E -Wl,+s";;
12569 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
12570 BSD
/OS
/4*) LINKFORSHARED
="-Xlinker -export-dynamic";;
12571 Linux
*|GNU
*) LINKFORSHARED
="-Xlinker -export-dynamic";;
12572 # -u libsys_s pulls in all symbols in libsys
12574 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
12576 # not used by the core itself but which needs to be in the core so
12577 # that dynamically loaded extension modules have access to it.
12578 # -prebind is no longer used, because it actually seems to give a
12579 # slowdown in stead of a speedup, maybe due to the large number of
12580 # dynamic loads Python does.
12582 LINKFORSHARED
="$extra_undefs"
12583 if test "$enable_framework"
12585 LINKFORSHARED
="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12587 LINKFORSHARED
="$LINKFORSHARED";;
12588 OpenUNIX
*|UnixWare
*) LINKFORSHARED
="-Wl,-Bexport";;
12589 SCO_SV
*) LINKFORSHARED
="-Wl,-Bexport";;
12590 ReliantUNIX
*) LINKFORSHARED
="-W1 -Blargedynsym";;
12591 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*)
12592 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
12594 LINKFORSHARED
="-Wl,--export-dynamic"
12596 SunOS
/5*) case $CC in
12598 if $CC -Xlinker --help 2>&1 |
grep export-dynamic
>/dev
/null
12600 LINKFORSHARED
="-Xlinker --export-dynamic"
12604 if test $enable_shared = "no"
12606 LINKFORSHARED
='-Wl,--out-implib=$(LDLIBRARY)'
12610 { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
12611 echo "${ECHO_T}$LINKFORSHARED" >&6; }
12614 { echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5
12615 echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6; }
12616 if test ! "$LIBRARY" = "$LDLIBRARY"
12618 case $ac_sys_system in
12620 # Cygwin needs CCSHARED when building extension DLLs
12621 # but not when building the interpreter DLL.
12622 CFLAGSFORSHARED
='';;
12624 CFLAGSFORSHARED
='$(CCSHARED)'
12627 { echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5
12628 echo "${ECHO_T}$CFLAGSFORSHARED" >&6; }
12630 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
12631 # library (with --enable-shared).
12632 # For platforms on which shared libraries are not allowed to have unresolved
12633 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
12634 # if it is not required, since it creates a dependency of the shared library
12635 # to LIBS. This, in turn, means that applications linking the shared libpython
12636 # don't need to link LIBS explicitly. The default should be only changed
12637 # on systems where this approach causes problems.
12639 { echo "$as_me:$LINENO: checking SHLIBS" >&5
12640 echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6; }
12641 case "$ac_sys_system" in
12645 { echo "$as_me:$LINENO: result: $SHLIBS" >&5
12646 echo "${ECHO_T}$SHLIBS" >&6; }
12649 # checks for libraries
12651 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12652 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12653 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12654 echo $ECHO_N "(cached) $ECHO_C" >&6
12656 ac_check_lib_save_LIBS
=$LIBS
12658 cat >conftest.
$ac_ext <<_ACEOF
12661 cat confdefs.h
>>conftest.
$ac_ext
12662 cat >>conftest.
$ac_ext <<_ACEOF
12663 /* end confdefs.h. */
12665 /* Override any GCC internal prototype to avoid an error.
12666 Use char because int might match the return type of a GCC
12667 builtin and then its argument prototype would still apply. */
12680 rm -f conftest.
$ac_objext conftest
$ac_exeext
12681 if { (ac_try
="$ac_link"
12682 case "(($ac_try" in
12683 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12684 *) ac_try_echo=$ac_try;;
12686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12687 (eval "$ac_link") 2>conftest.er1
12689 grep -v '^ *+' conftest.er1 >conftest.err
12691 cat conftest.err >&5
12692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693 (exit $ac_status); } && {
12694 test -z "$ac_c_werror_flag" ||
12695 test ! -s conftest.err
12696 } && test -s conftest$ac_exeext &&
12697 $as_test_x conftest$ac_exeext; then
12698 ac_cv_lib_dl_dlopen=yes
12700 echo "$as_me: failed program was:" >&5
12701 sed 's/^/| /' conftest.$ac_ext >&5
12703 ac_cv_lib_dl_dlopen=no
12706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12707 conftest$ac_exeext conftest.$ac_ext
12708 LIBS=$ac_check_lib_save_LIBS
12710 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12711 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12712 if test $ac_cv_lib_dl_dlopen = yes; then
12713 cat >>confdefs.h <<_ACEOF
12714 #define HAVE_LIBDL 1
12720 # Dynamic linking for SunOS/Solaris and SYSV
12722 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12723 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12724 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12725 echo $ECHO_N "(cached) $ECHO_C" >&6
12727 ac_check_lib_save_LIBS=$LIBS
12729 cat >conftest.$ac_ext <<_ACEOF
12732 cat confdefs.h >>conftest.$ac_ext
12733 cat >>conftest.$ac_ext <<_ACEOF
12734 /* end confdefs.h. */
12736 /* Override any GCC internal prototype to avoid an error.
12737 Use char because int might match the return type of a GCC
12738 builtin and then its argument prototype would still apply. */
12746 return shl_load ();
12751 rm -f conftest.$ac_objext conftest$ac_exeext
12752 if { (ac_try="$ac_link"
12753 case "(($ac_try" in
12754 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12755 *) ac_try_echo
=$ac_try;;
12757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12758 (eval "$ac_link") 2>conftest.er1
12760 grep -v '^ *+' conftest.er1
>conftest.err
12762 cat conftest.err
>&5
12763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764 (exit $ac_status); } && {
12765 test -z "$ac_c_werror_flag" ||
12766 test ! -s conftest.err
12767 } && test -s conftest
$ac_exeext &&
12768 $as_test_x conftest
$ac_exeext; then
12769 ac_cv_lib_dld_shl_load
=yes
12771 echo "$as_me: failed program was:" >&5
12772 sed 's/^/| /' conftest.
$ac_ext >&5
12774 ac_cv_lib_dld_shl_load
=no
12777 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12778 conftest
$ac_exeext conftest.
$ac_ext
12779 LIBS
=$ac_check_lib_save_LIBS
12781 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12782 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12783 if test $ac_cv_lib_dld_shl_load = yes; then
12784 cat >>confdefs.h
<<_ACEOF
12785 #define HAVE_LIBDLD 1
12791 # Dynamic linking for HP-UX
12793 # only check for sem_ini if thread support is requested
12794 if test "$with_threads" = "yes" -o -z "$with_threads"; then
12795 { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
12796 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
12797 if test "${ac_cv_search_sem_init+set}" = set; then
12798 echo $ECHO_N "(cached) $ECHO_C" >&6
12800 ac_func_search_save_LIBS
=$LIBS
12801 cat >conftest.
$ac_ext <<_ACEOF
12804 cat confdefs.h
>>conftest.
$ac_ext
12805 cat >>conftest.
$ac_ext <<_ACEOF
12806 /* end confdefs.h. */
12808 /* Override any GCC internal prototype to avoid an error.
12809 Use char because int might match the return type of a GCC
12810 builtin and then its argument prototype would still apply. */
12818 return sem_init ();
12823 for ac_lib
in '' pthread rt posix4
; do
12824 if test -z "$ac_lib"; then
12825 ac_res
="none required"
12828 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12830 rm -f conftest.
$ac_objext conftest
$ac_exeext
12831 if { (ac_try
="$ac_link"
12832 case "(($ac_try" in
12833 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12834 *) ac_try_echo=$ac_try;;
12836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12837 (eval "$ac_link") 2>conftest.er1
12839 grep -v '^ *+' conftest.er1 >conftest.err
12841 cat conftest.err >&5
12842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843 (exit $ac_status); } && {
12844 test -z "$ac_c_werror_flag" ||
12845 test ! -s conftest.err
12846 } && test -s conftest$ac_exeext &&
12847 $as_test_x conftest$ac_exeext; then
12848 ac_cv_search_sem_init=$ac_res
12850 echo "$as_me: failed program was:" >&5
12851 sed 's/^/| /' conftest.$ac_ext >&5
12856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12858 if test "${ac_cv_search_sem_init+set}" = set; then
12862 if test "${ac_cv_search_sem_init+set}" = set; then
12865 ac_cv_search_sem_init=no
12867 rm conftest.$ac_ext
12868 LIBS=$ac_func_search_save_LIBS
12870 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
12871 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
12872 ac_res=$ac_cv_search_sem_init
12873 if test "$ac_res" != no; then
12874 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12877 # 'Real Time' functions on Solaris
12878 # posix4 on Solaris 2.6
12879 # pthread (first!) on Linux
12882 # check if we need libintl for locale functions
12883 { echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5
12884 echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6; }
12885 if test "${ac_cv_lib_intl_textdomain+set}" = set; then
12886 echo $ECHO_N "(cached) $ECHO_C" >&6
12888 ac_check_lib_save_LIBS=$LIBS
12889 LIBS="-lintl $LIBS"
12890 cat >conftest.$ac_ext <<_ACEOF
12893 cat confdefs.h >>conftest.$ac_ext
12894 cat >>conftest.$ac_ext <<_ACEOF
12895 /* end confdefs.h. */
12897 /* Override any GCC internal prototype to avoid an error.
12898 Use char because int might match the return type of a GCC
12899 builtin and then its argument prototype would still apply. */
12903 char textdomain ();
12907 return textdomain ();
12912 rm -f conftest.$ac_objext conftest$ac_exeext
12913 if { (ac_try="$ac_link"
12914 case "(($ac_try" in
12915 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12916 *) ac_try_echo
=$ac_try;;
12918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12919 (eval "$ac_link") 2>conftest.er1
12921 grep -v '^ *+' conftest.er1
>conftest.err
12923 cat conftest.err
>&5
12924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12925 (exit $ac_status); } && {
12926 test -z "$ac_c_werror_flag" ||
12927 test ! -s conftest.err
12928 } && test -s conftest
$ac_exeext &&
12929 $as_test_x conftest
$ac_exeext; then
12930 ac_cv_lib_intl_textdomain
=yes
12932 echo "$as_me: failed program was:" >&5
12933 sed 's/^/| /' conftest.
$ac_ext >&5
12935 ac_cv_lib_intl_textdomain
=no
12938 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12939 conftest
$ac_exeext conftest.
$ac_ext
12940 LIBS
=$ac_check_lib_save_LIBS
12942 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5
12943 echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6; }
12944 if test $ac_cv_lib_intl_textdomain = yes; then
12946 cat >>confdefs.h
<<\_ACEOF
12947 #define WITH_LIBINTL 1
12953 # checks for system dependent C++ extensions support
12954 case "$ac_sys_system" in
12955 AIX
*) { echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5
12956 echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6; }
12957 cat >conftest.
$ac_ext <<_ACEOF
12960 cat confdefs.h
>>conftest.
$ac_ext
12961 cat >>conftest.
$ac_ext <<_ACEOF
12962 /* end confdefs.h. */
12963 #include "/usr/lpp/xlC/include/load.h"
12967 loadAndInit("", 0, "")
12972 rm -f conftest.
$ac_objext conftest
$ac_exeext
12973 if { (ac_try
="$ac_link"
12974 case "(($ac_try" in
12975 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12976 *) ac_try_echo=$ac_try;;
12978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12979 (eval "$ac_link") 2>conftest.er1
12981 grep -v '^ *+' conftest.er1 >conftest.err
12983 cat conftest.err >&5
12984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985 (exit $ac_status); } && {
12986 test -z "$ac_c_werror_flag" ||
12987 test ! -s conftest.err
12988 } && test -s conftest$ac_exeext &&
12989 $as_test_x conftest$ac_exeext; then
12991 cat >>confdefs.h <<\_ACEOF
12992 #define AIX_GENUINE_CPLUSPLUS 1
12995 { echo "$as_me:$LINENO: result: yes" >&5
12996 echo "${ECHO_T}yes" >&6; }
12998 echo "$as_me: failed program was:" >&5
12999 sed 's/^/| /' conftest.$ac_ext >&5
13001 { echo "$as_me:$LINENO: result: no" >&5
13002 echo "${ECHO_T}no" >&6; }
13005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13006 conftest$ac_exeext conftest.$ac_ext;;
13010 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
13011 # BeOS' sockets are stashed in libnet.
13012 { echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
13013 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6; }
13014 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
13015 echo $ECHO_N "(cached) $ECHO_C" >&6
13017 ac_check_lib_save_LIBS=$LIBS
13019 cat >conftest.$ac_ext <<_ACEOF
13022 cat confdefs.h >>conftest.$ac_ext
13023 cat >>conftest.$ac_ext <<_ACEOF
13024 /* end confdefs.h. */
13026 /* Override any GCC internal prototype to avoid an error.
13027 Use char because int might match the return type of a GCC
13028 builtin and then its argument prototype would still apply. */
13041 rm -f conftest.$ac_objext conftest$ac_exeext
13042 if { (ac_try="$ac_link"
13043 case "(($ac_try" in
13044 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13045 *) ac_try_echo
=$ac_try;;
13047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13048 (eval "$ac_link") 2>conftest.er1
13050 grep -v '^ *+' conftest.er1
>conftest.err
13052 cat conftest.err
>&5
13053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054 (exit $ac_status); } && {
13055 test -z "$ac_c_werror_flag" ||
13056 test ! -s conftest.err
13057 } && test -s conftest
$ac_exeext &&
13058 $as_test_x conftest
$ac_exeext; then
13059 ac_cv_lib_nsl_t_open
=yes
13061 echo "$as_me: failed program was:" >&5
13062 sed 's/^/| /' conftest.
$ac_ext >&5
13064 ac_cv_lib_nsl_t_open
=no
13067 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13068 conftest
$ac_exeext conftest.
$ac_ext
13069 LIBS
=$ac_check_lib_save_LIBS
13071 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
13072 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6; }
13073 if test $ac_cv_lib_nsl_t_open = yes; then
13077 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
13078 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
13079 if test "${ac_cv_lib_socket_socket+set}" = set; then
13080 echo $ECHO_N "(cached) $ECHO_C" >&6
13082 ac_check_lib_save_LIBS
=$LIBS
13083 LIBS
="-lsocket $LIBS $LIBS"
13084 cat >conftest.
$ac_ext <<_ACEOF
13087 cat confdefs.h
>>conftest.
$ac_ext
13088 cat >>conftest.
$ac_ext <<_ACEOF
13089 /* end confdefs.h. */
13091 /* Override any GCC internal prototype to avoid an error.
13092 Use char because int might match the return type of a GCC
13093 builtin and then its argument prototype would still apply. */
13106 rm -f conftest.
$ac_objext conftest
$ac_exeext
13107 if { (ac_try
="$ac_link"
13108 case "(($ac_try" in
13109 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13110 *) ac_try_echo=$ac_try;;
13112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13113 (eval "$ac_link") 2>conftest.er1
13115 grep -v '^ *+' conftest.er1 >conftest.err
13117 cat conftest.err >&5
13118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13119 (exit $ac_status); } && {
13120 test -z "$ac_c_werror_flag" ||
13121 test ! -s conftest.err
13122 } && test -s conftest$ac_exeext &&
13123 $as_test_x conftest$ac_exeext; then
13124 ac_cv_lib_socket_socket=yes
13126 echo "$as_me: failed program was:" >&5
13127 sed 's/^/| /' conftest.$ac_ext >&5
13129 ac_cv_lib_socket_socket=no
13132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13133 conftest$ac_exeext conftest.$ac_ext
13134 LIBS=$ac_check_lib_save_LIBS
13136 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
13137 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
13138 if test $ac_cv_lib_socket_socket = yes; then
13139 LIBS="-lsocket $LIBS"
13143 case "$ac_sys_system" in
13145 { echo "$as_me:$LINENO: checking for socket in -lnet" >&5
13146 echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6; }
13147 if test "${ac_cv_lib_net_socket+set}" = set; then
13148 echo $ECHO_N "(cached) $ECHO_C" >&6
13150 ac_check_lib_save_LIBS=$LIBS
13151 LIBS="-lnet $LIBS $LIBS"
13152 cat >conftest.$ac_ext <<_ACEOF
13155 cat confdefs.h >>conftest.$ac_ext
13156 cat >>conftest.$ac_ext <<_ACEOF
13157 /* end confdefs.h. */
13159 /* Override any GCC internal prototype to avoid an error.
13160 Use char because int might match the return type of a GCC
13161 builtin and then its argument prototype would still apply. */
13174 rm -f conftest.$ac_objext conftest$ac_exeext
13175 if { (ac_try="$ac_link"
13176 case "(($ac_try" in
13177 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13178 *) ac_try_echo
=$ac_try;;
13180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13181 (eval "$ac_link") 2>conftest.er1
13183 grep -v '^ *+' conftest.er1
>conftest.err
13185 cat conftest.err
>&5
13186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187 (exit $ac_status); } && {
13188 test -z "$ac_c_werror_flag" ||
13189 test ! -s conftest.err
13190 } && test -s conftest
$ac_exeext &&
13191 $as_test_x conftest
$ac_exeext; then
13192 ac_cv_lib_net_socket
=yes
13194 echo "$as_me: failed program was:" >&5
13195 sed 's/^/| /' conftest.
$ac_ext >&5
13197 ac_cv_lib_net_socket
=no
13200 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13201 conftest
$ac_exeext conftest.
$ac_ext
13202 LIBS
=$ac_check_lib_save_LIBS
13204 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5
13205 echo "${ECHO_T}$ac_cv_lib_net_socket" >&6; }
13206 if test $ac_cv_lib_net_socket = yes; then
13213 { echo "$as_me:$LINENO: checking for --with-libs" >&5
13214 echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6; }
13216 # Check whether --with-libs was given.
13217 if test "${with_libs+set}" = set; then
13218 withval
=$with_libs;
13219 { echo "$as_me:$LINENO: result: $withval" >&5
13220 echo "${ECHO_T}$withval" >&6; }
13221 LIBS
="$withval $LIBS"
13224 { echo "$as_me:$LINENO: result: no" >&5
13225 echo "${ECHO_T}no" >&6; }
13229 # Check for use of the system libffi library
13230 { echo "$as_me:$LINENO: checking for --with-system-ffi" >&5
13231 echo $ECHO_N "checking for --with-system-ffi... $ECHO_C" >&6; }
13233 # Check whether --with-system_ffi was given.
13234 if test "${with_system_ffi+set}" = set; then
13235 withval
=$with_system_ffi;
13239 { echo "$as_me:$LINENO: result: $with_system_ffi" >&5
13240 echo "${ECHO_T}$with_system_ffi" >&6; }
13242 # Determine if signalmodule should be used.
13245 { echo "$as_me:$LINENO: checking for --with-signal-module" >&5
13246 echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6; }
13248 # Check whether --with-signal-module was given.
13249 if test "${with_signal_module+set}" = set; then
13250 withval
=$with_signal_module;
13254 if test -z "$with_signal_module"
13255 then with_signal_module
="yes"
13257 { echo "$as_me:$LINENO: result: $with_signal_module" >&5
13258 echo "${ECHO_T}$with_signal_module" >&6; }
13260 if test "${with_signal_module}" = "yes"; then
13261 USE_SIGNAL_MODULE
=""
13264 USE_SIGNAL_MODULE
="#"
13265 SIGNAL_OBJS
="Parser/intrcheck.o Python/sigcheck.o"
13268 # This is used to generate Setup.config
13270 USE_THREAD_MODULE
=""
13272 { echo "$as_me:$LINENO: checking for --with-dec-threads" >&5
13273 echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6; }
13276 # Check whether --with-dec-threads was given.
13277 if test "${with_dec_threads+set}" = set; then
13278 withval
=$with_dec_threads;
13279 { echo "$as_me:$LINENO: result: $withval" >&5
13280 echo "${ECHO_T}$withval" >&6; }
13282 if test "${with_thread+set}" != set; then
13283 with_thread
="$withval";
13286 { echo "$as_me:$LINENO: result: no" >&5
13287 echo "${ECHO_T}no" >&6; }
13291 # Templates for things AC_DEFINEd more than once.
13292 # For a single AC_DEFINE, no template is needed.
13300 { echo "$as_me:$LINENO: checking for --with-threads" >&5
13301 echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6; }
13303 # Check whether --with-threads was given.
13304 if test "${with_threads+set}" = set; then
13305 withval
=$with_threads;
13309 # --with-thread is deprecated, but check for it anyway
13311 # Check whether --with-thread was given.
13312 if test "${with_thread+set}" = set; then
13313 withval
=$with_thread; with_threads
=$with_thread
13317 if test -z "$with_threads"
13318 then with_threads
="yes"
13320 { echo "$as_me:$LINENO: result: $with_threads" >&5
13321 echo "${ECHO_T}$with_threads" >&6; }
13324 if test "$with_threads" = "no"
13326 USE_THREAD_MODULE
="#"
13327 elif test "$ac_cv_pthread_is_default" = yes
13329 cat >>confdefs.h
<<\_ACEOF
13330 #define WITH_THREAD 1
13333 # Defining _REENTRANT on system with POSIX threads should not hurt.
13334 cat >>confdefs.h
<<\_ACEOF
13335 #define _REENTRANT 1
13339 THREADOBJ
="Python/thread.o"
13340 elif test "$ac_cv_kpthread" = "yes"
13343 if test "$ac_cv_cxx_thread" = "yes"; then
13344 CXX
="$CXX -Kpthread"
13346 cat >>confdefs.h
<<\_ACEOF
13347 #define WITH_THREAD 1
13351 THREADOBJ
="Python/thread.o"
13352 elif test "$ac_cv_kthread" = "yes"
13355 if test "$ac_cv_cxx_thread" = "yes"; then
13356 CXX
="$CXX -Kthread"
13358 cat >>confdefs.h
<<\_ACEOF
13359 #define WITH_THREAD 1
13363 THREADOBJ
="Python/thread.o"
13364 elif test "$ac_cv_pthread" = "yes"
13367 if test "$ac_cv_cxx_thread" = "yes"; then
13368 CXX
="$CXX -pthread"
13370 cat >>confdefs.h
<<\_ACEOF
13371 #define WITH_THREAD 1
13375 THREADOBJ
="Python/thread.o"
13377 if test ! -z "$with_threads" -a -d "$with_threads"
13378 then LDFLAGS
="$LDFLAGS -L$with_threads"
13380 if test ! -z "$withval" -a -d "$withval"
13381 then LDFLAGS
="$LDFLAGS -L$withval"
13384 # According to the POSIX spec, a pthreads implementation must
13385 # define _POSIX_THREADS in unistd.h. Some apparently don't
13386 # (e.g. gnu pth with pthread emulation)
13387 { echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5
13388 echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6; }
13389 cat >conftest.
$ac_ext <<_ACEOF
13392 cat confdefs.h
>>conftest.
$ac_ext
13393 cat >>conftest.
$ac_ext <<_ACEOF
13394 /* end confdefs.h. */
13396 #include <unistd.h>
13397 #ifdef _POSIX_THREADS
13402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13403 $EGREP "yes" >/dev
/null
2>&1; then
13404 unistd_defines_pthreads
=yes
13406 unistd_defines_pthreads
=no
13410 { echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
13411 echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
13413 cat >>confdefs.h
<<\_ACEOF
13414 #define _REENTRANT 1
13417 if test "${ac_cv_header_cthreads_h+set}" = set; then
13418 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
13419 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
13420 if test "${ac_cv_header_cthreads_h+set}" = set; then
13421 echo $ECHO_N "(cached) $ECHO_C" >&6
13423 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
13424 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
13426 # Is the header compilable?
13427 { echo "$as_me:$LINENO: checking cthreads.h usability" >&5
13428 echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6; }
13429 cat >conftest.
$ac_ext <<_ACEOF
13432 cat confdefs.h
>>conftest.
$ac_ext
13433 cat >>conftest.
$ac_ext <<_ACEOF
13434 /* end confdefs.h. */
13435 $ac_includes_default
13436 #include <cthreads.h>
13438 rm -f conftest.
$ac_objext
13439 if { (ac_try
="$ac_compile"
13440 case "(($ac_try" in
13441 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13442 *) ac_try_echo=$ac_try;;
13444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13445 (eval "$ac_compile") 2>conftest.er1
13447 grep -v '^ *+' conftest.er1 >conftest.err
13449 cat conftest.err >&5
13450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451 (exit $ac_status); } && {
13452 test -z "$ac_c_werror_flag" ||
13453 test ! -s conftest.err
13454 } && test -s conftest.$ac_objext; then
13455 ac_header_compiler=yes
13457 echo "$as_me: failed program was:" >&5
13458 sed 's/^/| /' conftest.$ac_ext >&5
13460 ac_header_compiler=no
13463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13464 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13465 echo "${ECHO_T}$ac_header_compiler" >&6; }
13467 # Is the header present?
13468 { echo "$as_me:$LINENO: checking cthreads.h presence" >&5
13469 echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6; }
13470 cat >conftest.$ac_ext <<_ACEOF
13473 cat confdefs.h >>conftest.$ac_ext
13474 cat >>conftest.$ac_ext <<_ACEOF
13475 /* end confdefs.h. */
13476 #include <cthreads.h>
13478 if { (ac_try="$ac_cpp conftest.$ac_ext"
13479 case "(($ac_try" in
13480 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13481 *) ac_try_echo
=$ac_try;;
13483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13484 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13486 grep -v '^ *+' conftest.er1
>conftest.err
13488 cat conftest.err
>&5
13489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490 (exit $ac_status); } >/dev
/null
&& {
13491 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13492 test ! -s conftest.err
13494 ac_header_preproc
=yes
13496 echo "$as_me: failed program was:" >&5
13497 sed 's/^/| /' conftest.
$ac_ext >&5
13499 ac_header_preproc
=no
13502 rm -f conftest.err conftest.
$ac_ext
13503 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13504 echo "${ECHO_T}$ac_header_preproc" >&6; }
13506 # So? What about this header?
13507 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13509 { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
13510 echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13511 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5
13512 echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;}
13513 ac_header_preproc
=yes
13516 { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5
13517 echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;}
13518 { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5
13519 echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;}
13520 { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5
13521 echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;}
13522 { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
13523 echo "$as_me: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
13524 { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5
13525 echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;}
13526 { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5
13527 echo "$as_me: WARNING: cthreads.h: in the future, the compiler will take precedence" >&2;}
13529 ## ------------------------------------------------ ##
13530 ## Report this to http://www.python.org/python-bugs ##
13531 ## ------------------------------------------------ ##
13533 ) |
sed "s/^/$as_me: WARNING: /" >&2
13536 { echo "$as_me:$LINENO: checking for cthreads.h" >&5
13537 echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6; }
13538 if test "${ac_cv_header_cthreads_h+set}" = set; then
13539 echo $ECHO_N "(cached) $ECHO_C" >&6
13541 ac_cv_header_cthreads_h
=$ac_header_preproc
13543 { echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5
13544 echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6; }
13547 if test $ac_cv_header_cthreads_h = yes; then
13548 cat >>confdefs.h
<<\_ACEOF
13549 #define WITH_THREAD 1
13552 cat >>confdefs.h
<<\_ACEOF
13553 #define C_THREADS 1
13557 cat >>confdefs.h
<<\_ACEOF
13558 #define HURD_C_THREADS 1
13561 LIBS
="$LIBS -lthreads"
13562 THREADOBJ
="Python/thread.o"
13565 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
13566 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
13567 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
13568 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
13569 echo $ECHO_N "(cached) $ECHO_C" >&6
13571 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
13572 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
13574 # Is the header compilable?
13575 { echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5
13576 echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6; }
13577 cat >conftest.
$ac_ext <<_ACEOF
13580 cat confdefs.h
>>conftest.
$ac_ext
13581 cat >>conftest.
$ac_ext <<_ACEOF
13582 /* end confdefs.h. */
13583 $ac_includes_default
13584 #include <mach/cthreads.h>
13586 rm -f conftest.
$ac_objext
13587 if { (ac_try
="$ac_compile"
13588 case "(($ac_try" in
13589 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13590 *) ac_try_echo=$ac_try;;
13592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13593 (eval "$ac_compile") 2>conftest.er1
13595 grep -v '^ *+' conftest.er1 >conftest.err
13597 cat conftest.err >&5
13598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13599 (exit $ac_status); } && {
13600 test -z "$ac_c_werror_flag" ||
13601 test ! -s conftest.err
13602 } && test -s conftest.$ac_objext; then
13603 ac_header_compiler=yes
13605 echo "$as_me: failed program was:" >&5
13606 sed 's/^/| /' conftest.$ac_ext >&5
13608 ac_header_compiler=no
13611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13612 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13613 echo "${ECHO_T}$ac_header_compiler" >&6; }
13615 # Is the header present?
13616 { echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5
13617 echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6; }
13618 cat >conftest.$ac_ext <<_ACEOF
13621 cat confdefs.h >>conftest.$ac_ext
13622 cat >>conftest.$ac_ext <<_ACEOF
13623 /* end confdefs.h. */
13624 #include <mach/cthreads.h>
13626 if { (ac_try="$ac_cpp conftest.$ac_ext"
13627 case "(($ac_try" in
13628 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13629 *) ac_try_echo
=$ac_try;;
13631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13632 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13634 grep -v '^ *+' conftest.er1
>conftest.err
13636 cat conftest.err
>&5
13637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13638 (exit $ac_status); } >/dev
/null
&& {
13639 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13640 test ! -s conftest.err
13642 ac_header_preproc
=yes
13644 echo "$as_me: failed program was:" >&5
13645 sed 's/^/| /' conftest.
$ac_ext >&5
13647 ac_header_preproc
=no
13650 rm -f conftest.err conftest.
$ac_ext
13651 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13652 echo "${ECHO_T}$ac_header_preproc" >&6; }
13654 # So? What about this header?
13655 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13657 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5
13658 echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13659 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5
13660 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;}
13661 ac_header_preproc
=yes
13664 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5
13665 echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;}
13666 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5
13667 echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;}
13668 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5
13669 echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;}
13670 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5
13671 echo "$as_me: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&2;}
13672 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5
13673 echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;}
13674 { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5
13675 echo "$as_me: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&2;}
13677 ## ------------------------------------------------ ##
13678 ## Report this to http://www.python.org/python-bugs ##
13679 ## ------------------------------------------------ ##
13681 ) |
sed "s/^/$as_me: WARNING: /" >&2
13684 { echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5
13685 echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6; }
13686 if test "${ac_cv_header_mach_cthreads_h+set}" = set; then
13687 echo $ECHO_N "(cached) $ECHO_C" >&6
13689 ac_cv_header_mach_cthreads_h
=$ac_header_preproc
13691 { echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5
13692 echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6; }
13695 if test $ac_cv_header_mach_cthreads_h = yes; then
13696 cat >>confdefs.h
<<\_ACEOF
13697 #define WITH_THREAD 1
13700 cat >>confdefs.h
<<\_ACEOF
13701 #define C_THREADS 1
13705 cat >>confdefs.h
<<\_ACEOF
13706 #define MACH_C_THREADS 1
13709 THREADOBJ
="Python/thread.o"
13712 { echo "$as_me:$LINENO: checking for --with-pth" >&5
13713 echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6; }
13715 # Check whether --with-pth was given.
13716 if test "${with_pth+set}" = set; then
13717 withval
=$with_pth; { echo "$as_me:$LINENO: result: $withval" >&5
13718 echo "${ECHO_T}$withval" >&6; }
13719 cat >>confdefs.h
<<\_ACEOF
13720 #define WITH_THREAD 1
13724 cat >>confdefs.h
<<\_ACEOF
13729 THREADOBJ
="Python/thread.o"
13731 { echo "$as_me:$LINENO: result: no" >&5
13732 echo "${ECHO_T}no" >&6; }
13734 # Just looking for pthread_create in libpthread is not enough:
13735 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
13736 # So we really have to include pthread.h, and then link.
13738 LIBS
="$LIBS -lpthread"
13739 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
13740 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
13741 cat >conftest.
$ac_ext <<_ACEOF
13744 cat confdefs.h
>>conftest.
$ac_ext
13745 cat >>conftest.
$ac_ext <<_ACEOF
13746 /* end confdefs.h. */
13747 #include <pthread.h>
13749 void * start_routine (void *arg) { exit (0); }
13754 pthread_create (NULL, NULL, start_routine, NULL)
13759 rm -f conftest.
$ac_objext conftest
$ac_exeext
13760 if { (ac_try
="$ac_link"
13761 case "(($ac_try" in
13762 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13763 *) ac_try_echo=$ac_try;;
13765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13766 (eval "$ac_link") 2>conftest.er1
13768 grep -v '^ *+' conftest.er1 >conftest.err
13770 cat conftest.err >&5
13771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772 (exit $ac_status); } && {
13773 test -z "$ac_c_werror_flag" ||
13774 test ! -s conftest.err
13775 } && test -s conftest$ac_exeext &&
13776 $as_test_x conftest$ac_exeext; then
13778 { echo "$as_me:$LINENO: result: yes" >&5
13779 echo "${ECHO_T}yes" >&6; }
13780 cat >>confdefs.h <<\_ACEOF
13781 #define WITH_THREAD 1
13785 THREADOBJ="Python/thread.o"
13787 echo "$as_me: failed program was:" >&5
13788 sed 's/^/| /' conftest.$ac_ext >&5
13792 { echo "$as_me:$LINENO: checking for pthread_detach" >&5
13793 echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6; }
13794 if test "${ac_cv_func_pthread_detach+set}" = set; then
13795 echo $ECHO_N "(cached) $ECHO_C" >&6
13797 cat >conftest.$ac_ext <<_ACEOF
13800 cat confdefs.h >>conftest.$ac_ext
13801 cat >>conftest.$ac_ext <<_ACEOF
13802 /* end confdefs.h. */
13803 /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach.
13804 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13805 #define pthread_detach innocuous_pthread_detach
13807 /* System header to define __stub macros and hopefully few prototypes,
13808 which can conflict with char pthread_detach (); below.
13809 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13810 <limits.h> exists even on freestanding compilers. */
13813 # include <limits.h>
13815 # include <assert.h>
13818 #undef pthread_detach
13820 /* Override any GCC internal prototype to avoid an error.
13821 Use char because int might match the return type of a GCC
13822 builtin and then its argument prototype would still apply. */
13826 char pthread_detach ();
13827 /* The GNU C library defines this for functions which it implements
13828 to always fail with ENOSYS. Some functions are actually named
13829 something starting with __ and the normal name is an alias. */
13830 #if defined __stub_pthread_detach || defined __stub___pthread_detach
13837 return pthread_detach ();
13842 rm -f conftest.$ac_objext conftest$ac_exeext
13843 if { (ac_try="$ac_link"
13844 case "(($ac_try" in
13845 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13846 *) ac_try_echo
=$ac_try;;
13848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13849 (eval "$ac_link") 2>conftest.er1
13851 grep -v '^ *+' conftest.er1
>conftest.err
13853 cat conftest.err
>&5
13854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855 (exit $ac_status); } && {
13856 test -z "$ac_c_werror_flag" ||
13857 test ! -s conftest.err
13858 } && test -s conftest
$ac_exeext &&
13859 $as_test_x conftest
$ac_exeext; then
13860 ac_cv_func_pthread_detach
=yes
13862 echo "$as_me: failed program was:" >&5
13863 sed 's/^/| /' conftest.
$ac_ext >&5
13865 ac_cv_func_pthread_detach
=no
13868 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13869 conftest
$ac_exeext conftest.
$ac_ext
13871 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5
13872 echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6; }
13873 if test $ac_cv_func_pthread_detach = yes; then
13874 cat >>confdefs.h
<<\_ACEOF
13875 #define WITH_THREAD 1
13879 THREADOBJ
="Python/thread.o"
13882 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
13883 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
13884 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
13885 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
13886 echo $ECHO_N "(cached) $ECHO_C" >&6
13888 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
13889 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
13891 # Is the header compilable?
13892 { echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5
13893 echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6; }
13894 cat >conftest.
$ac_ext <<_ACEOF
13897 cat confdefs.h
>>conftest.
$ac_ext
13898 cat >>conftest.
$ac_ext <<_ACEOF
13899 /* end confdefs.h. */
13900 $ac_includes_default
13901 #include <atheos/threads.h>
13903 rm -f conftest.
$ac_objext
13904 if { (ac_try
="$ac_compile"
13905 case "(($ac_try" in
13906 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13907 *) ac_try_echo=$ac_try;;
13909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13910 (eval "$ac_compile") 2>conftest.er1
13912 grep -v '^ *+' conftest.er1 >conftest.err
13914 cat conftest.err >&5
13915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13916 (exit $ac_status); } && {
13917 test -z "$ac_c_werror_flag" ||
13918 test ! -s conftest.err
13919 } && test -s conftest.$ac_objext; then
13920 ac_header_compiler=yes
13922 echo "$as_me: failed program was:" >&5
13923 sed 's/^/| /' conftest.$ac_ext >&5
13925 ac_header_compiler=no
13928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13929 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13930 echo "${ECHO_T}$ac_header_compiler" >&6; }
13932 # Is the header present?
13933 { echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5
13934 echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6; }
13935 cat >conftest.$ac_ext <<_ACEOF
13938 cat confdefs.h >>conftest.$ac_ext
13939 cat >>conftest.$ac_ext <<_ACEOF
13940 /* end confdefs.h. */
13941 #include <atheos/threads.h>
13943 if { (ac_try="$ac_cpp conftest.$ac_ext"
13944 case "(($ac_try" in
13945 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13946 *) ac_try_echo
=$ac_try;;
13948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13949 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13951 grep -v '^ *+' conftest.er1
>conftest.err
13953 cat conftest.err
>&5
13954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955 (exit $ac_status); } >/dev
/null
&& {
13956 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13957 test ! -s conftest.err
13959 ac_header_preproc
=yes
13961 echo "$as_me: failed program was:" >&5
13962 sed 's/^/| /' conftest.
$ac_ext >&5
13964 ac_header_preproc
=no
13967 rm -f conftest.err conftest.
$ac_ext
13968 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13969 echo "${ECHO_T}$ac_header_preproc" >&6; }
13971 # So? What about this header?
13972 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13974 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5
13975 echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13976 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5
13977 echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;}
13978 ac_header_preproc
=yes
13981 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5
13982 echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;}
13983 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5
13984 echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;}
13985 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5
13986 echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;}
13987 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5
13988 echo "$as_me: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&2;}
13989 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5
13990 echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;}
13991 { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5
13992 echo "$as_me: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&2;}
13994 ## ------------------------------------------------ ##
13995 ## Report this to http://www.python.org/python-bugs ##
13996 ## ------------------------------------------------ ##
13998 ) |
sed "s/^/$as_me: WARNING: /" >&2
14001 { echo "$as_me:$LINENO: checking for atheos/threads.h" >&5
14002 echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6; }
14003 if test "${ac_cv_header_atheos_threads_h+set}" = set; then
14004 echo $ECHO_N "(cached) $ECHO_C" >&6
14006 ac_cv_header_atheos_threads_h
=$ac_header_preproc
14008 { echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5
14009 echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6; }
14012 if test $ac_cv_header_atheos_threads_h = yes; then
14013 cat >>confdefs.h
<<\_ACEOF
14014 #define WITH_THREAD 1
14018 cat >>confdefs.h
<<\_ACEOF
14019 #define ATHEOS_THREADS 1
14022 THREADOBJ
="Python/thread.o"
14025 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
14026 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
14027 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
14028 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
14029 echo $ECHO_N "(cached) $ECHO_C" >&6
14031 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
14032 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
14034 # Is the header compilable?
14035 { echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5
14036 echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6; }
14037 cat >conftest.
$ac_ext <<_ACEOF
14040 cat confdefs.h
>>conftest.
$ac_ext
14041 cat >>conftest.
$ac_ext <<_ACEOF
14042 /* end confdefs.h. */
14043 $ac_includes_default
14044 #include <kernel/OS.h>
14046 rm -f conftest.
$ac_objext
14047 if { (ac_try
="$ac_compile"
14048 case "(($ac_try" in
14049 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14050 *) ac_try_echo=$ac_try;;
14052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14053 (eval "$ac_compile") 2>conftest.er1
14055 grep -v '^ *+' conftest.er1 >conftest.err
14057 cat conftest.err >&5
14058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14059 (exit $ac_status); } && {
14060 test -z "$ac_c_werror_flag" ||
14061 test ! -s conftest.err
14062 } && test -s conftest.$ac_objext; then
14063 ac_header_compiler=yes
14065 echo "$as_me: failed program was:" >&5
14066 sed 's/^/| /' conftest.$ac_ext >&5
14068 ac_header_compiler=no
14071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14072 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14073 echo "${ECHO_T}$ac_header_compiler" >&6; }
14075 # Is the header present?
14076 { echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5
14077 echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6; }
14078 cat >conftest.$ac_ext <<_ACEOF
14081 cat confdefs.h >>conftest.$ac_ext
14082 cat >>conftest.$ac_ext <<_ACEOF
14083 /* end confdefs.h. */
14084 #include <kernel/OS.h>
14086 if { (ac_try="$ac_cpp conftest.$ac_ext"
14087 case "(($ac_try" in
14088 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14089 *) ac_try_echo
=$ac_try;;
14091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14092 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14094 grep -v '^ *+' conftest.er1
>conftest.err
14096 cat conftest.err
>&5
14097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14098 (exit $ac_status); } >/dev
/null
&& {
14099 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14100 test ! -s conftest.err
14102 ac_header_preproc
=yes
14104 echo "$as_me: failed program was:" >&5
14105 sed 's/^/| /' conftest.
$ac_ext >&5
14107 ac_header_preproc
=no
14110 rm -f conftest.err conftest.
$ac_ext
14111 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14112 echo "${ECHO_T}$ac_header_preproc" >&6; }
14114 # So? What about this header?
14115 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14117 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5
14118 echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14119 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5
14120 echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;}
14121 ac_header_preproc
=yes
14124 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5
14125 echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;}
14126 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5
14127 echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;}
14128 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5
14129 echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;}
14130 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5
14131 echo "$as_me: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&2;}
14132 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5
14133 echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;}
14134 { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5
14135 echo "$as_me: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&2;}
14137 ## ------------------------------------------------ ##
14138 ## Report this to http://www.python.org/python-bugs ##
14139 ## ------------------------------------------------ ##
14141 ) |
sed "s/^/$as_me: WARNING: /" >&2
14144 { echo "$as_me:$LINENO: checking for kernel/OS.h" >&5
14145 echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6; }
14146 if test "${ac_cv_header_kernel_OS_h+set}" = set; then
14147 echo $ECHO_N "(cached) $ECHO_C" >&6
14149 ac_cv_header_kernel_OS_h
=$ac_header_preproc
14151 { echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5
14152 echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6; }
14155 if test $ac_cv_header_kernel_OS_h = yes; then
14156 cat >>confdefs.h
<<\_ACEOF
14157 #define WITH_THREAD 1
14161 cat >>confdefs.h
<<\_ACEOF
14162 #define BEOS_THREADS 1
14165 THREADOBJ
="Python/thread.o"
14168 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
14169 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
14170 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
14171 echo $ECHO_N "(cached) $ECHO_C" >&6
14173 ac_check_lib_save_LIBS
=$LIBS
14174 LIBS
="-lpthreads $LIBS"
14175 cat >conftest.
$ac_ext <<_ACEOF
14178 cat confdefs.h
>>conftest.
$ac_ext
14179 cat >>conftest.
$ac_ext <<_ACEOF
14180 /* end confdefs.h. */
14182 /* Override any GCC internal prototype to avoid an error.
14183 Use char because int might match the return type of a GCC
14184 builtin and then its argument prototype would still apply. */
14188 char pthread_create ();
14192 return pthread_create ();
14197 rm -f conftest.
$ac_objext conftest
$ac_exeext
14198 if { (ac_try
="$ac_link"
14199 case "(($ac_try" in
14200 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14201 *) ac_try_echo=$ac_try;;
14203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14204 (eval "$ac_link") 2>conftest.er1
14206 grep -v '^ *+' conftest.er1 >conftest.err
14208 cat conftest.err >&5
14209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210 (exit $ac_status); } && {
14211 test -z "$ac_c_werror_flag" ||
14212 test ! -s conftest.err
14213 } && test -s conftest$ac_exeext &&
14214 $as_test_x conftest$ac_exeext; then
14215 ac_cv_lib_pthreads_pthread_create=yes
14217 echo "$as_me: failed program was:" >&5
14218 sed 's/^/| /' conftest.$ac_ext >&5
14220 ac_cv_lib_pthreads_pthread_create=no
14223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14224 conftest$ac_exeext conftest.$ac_ext
14225 LIBS=$ac_check_lib_save_LIBS
14227 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
14228 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
14229 if test $ac_cv_lib_pthreads_pthread_create = yes; then
14230 cat >>confdefs.h <<\_ACEOF
14231 #define WITH_THREAD 1
14235 LIBS="$LIBS -lpthreads"
14236 THREADOBJ="Python/thread.o"
14239 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
14240 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
14241 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
14242 echo $ECHO_N "(cached) $ECHO_C" >&6
14244 ac_check_lib_save_LIBS=$LIBS
14246 cat >conftest.$ac_ext <<_ACEOF
14249 cat confdefs.h >>conftest.$ac_ext
14250 cat >>conftest.$ac_ext <<_ACEOF
14251 /* end confdefs.h. */
14253 /* Override any GCC internal prototype to avoid an error.
14254 Use char because int might match the return type of a GCC
14255 builtin and then its argument prototype would still apply. */
14259 char pthread_create ();
14263 return pthread_create ();
14268 rm -f conftest.$ac_objext conftest$ac_exeext
14269 if { (ac_try="$ac_link"
14270 case "(($ac_try" in
14271 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14272 *) ac_try_echo
=$ac_try;;
14274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14275 (eval "$ac_link") 2>conftest.er1
14277 grep -v '^ *+' conftest.er1
>conftest.err
14279 cat conftest.err
>&5
14280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281 (exit $ac_status); } && {
14282 test -z "$ac_c_werror_flag" ||
14283 test ! -s conftest.err
14284 } && test -s conftest
$ac_exeext &&
14285 $as_test_x conftest
$ac_exeext; then
14286 ac_cv_lib_c_r_pthread_create
=yes
14288 echo "$as_me: failed program was:" >&5
14289 sed 's/^/| /' conftest.
$ac_ext >&5
14291 ac_cv_lib_c_r_pthread_create
=no
14294 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14295 conftest
$ac_exeext conftest.
$ac_ext
14296 LIBS
=$ac_check_lib_save_LIBS
14298 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
14299 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
14300 if test $ac_cv_lib_c_r_pthread_create = yes; then
14301 cat >>confdefs.h
<<\_ACEOF
14302 #define WITH_THREAD 1
14307 THREADOBJ
="Python/thread.o"
14310 { echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5
14311 echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6; }
14312 if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then
14313 echo $ECHO_N "(cached) $ECHO_C" >&6
14315 ac_check_lib_save_LIBS
=$LIBS
14316 LIBS
="-lpthread $LIBS"
14317 cat >conftest.
$ac_ext <<_ACEOF
14320 cat confdefs.h
>>conftest.
$ac_ext
14321 cat >>conftest.
$ac_ext <<_ACEOF
14322 /* end confdefs.h. */
14324 /* Override any GCC internal prototype to avoid an error.
14325 Use char because int might match the return type of a GCC
14326 builtin and then its argument prototype would still apply. */
14330 char __pthread_create_system ();
14334 return __pthread_create_system ();
14339 rm -f conftest.
$ac_objext conftest
$ac_exeext
14340 if { (ac_try
="$ac_link"
14341 case "(($ac_try" in
14342 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14343 *) ac_try_echo=$ac_try;;
14345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14346 (eval "$ac_link") 2>conftest.er1
14348 grep -v '^ *+' conftest.er1 >conftest.err
14350 cat conftest.err >&5
14351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352 (exit $ac_status); } && {
14353 test -z "$ac_c_werror_flag" ||
14354 test ! -s conftest.err
14355 } && test -s conftest$ac_exeext &&
14356 $as_test_x conftest$ac_exeext; then
14357 ac_cv_lib_pthread___pthread_create_system=yes
14359 echo "$as_me: failed program was:" >&5
14360 sed 's/^/| /' conftest.$ac_ext >&5
14362 ac_cv_lib_pthread___pthread_create_system=no
14365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14366 conftest$ac_exeext conftest.$ac_ext
14367 LIBS=$ac_check_lib_save_LIBS
14369 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5
14370 echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6; }
14371 if test $ac_cv_lib_pthread___pthread_create_system = yes; then
14372 cat >>confdefs.h <<\_ACEOF
14373 #define WITH_THREAD 1
14377 LIBS="$LIBS -lpthread"
14378 THREADOBJ="Python/thread.o"
14381 { echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5
14382 echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6; }
14383 if test "${ac_cv_lib_cma_pthread_create+set}" = set; then
14384 echo $ECHO_N "(cached) $ECHO_C" >&6
14386 ac_check_lib_save_LIBS=$LIBS
14388 cat >conftest.$ac_ext <<_ACEOF
14391 cat confdefs.h >>conftest.$ac_ext
14392 cat >>conftest.$ac_ext <<_ACEOF
14393 /* end confdefs.h. */
14395 /* Override any GCC internal prototype to avoid an error.
14396 Use char because int might match the return type of a GCC
14397 builtin and then its argument prototype would still apply. */
14401 char pthread_create ();
14405 return pthread_create ();
14410 rm -f conftest.$ac_objext conftest$ac_exeext
14411 if { (ac_try="$ac_link"
14412 case "(($ac_try" in
14413 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14414 *) ac_try_echo
=$ac_try;;
14416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14417 (eval "$ac_link") 2>conftest.er1
14419 grep -v '^ *+' conftest.er1
>conftest.err
14421 cat conftest.err
>&5
14422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423 (exit $ac_status); } && {
14424 test -z "$ac_c_werror_flag" ||
14425 test ! -s conftest.err
14426 } && test -s conftest
$ac_exeext &&
14427 $as_test_x conftest
$ac_exeext; then
14428 ac_cv_lib_cma_pthread_create
=yes
14430 echo "$as_me: failed program was:" >&5
14431 sed 's/^/| /' conftest.
$ac_ext >&5
14433 ac_cv_lib_cma_pthread_create
=no
14436 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14437 conftest
$ac_exeext conftest.
$ac_ext
14438 LIBS
=$ac_check_lib_save_LIBS
14440 { echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5
14441 echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6; }
14442 if test $ac_cv_lib_cma_pthread_create = yes; then
14443 cat >>confdefs.h
<<\_ACEOF
14444 #define WITH_THREAD 1
14449 THREADOBJ
="Python/thread.o"
14452 USE_THREAD_MODULE
="#"
14472 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14473 conftest
$ac_exeext conftest.
$ac_ext
14483 { echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5
14484 echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6; }
14485 if test "${ac_cv_lib_mpc_usconfig+set}" = set; then
14486 echo $ECHO_N "(cached) $ECHO_C" >&6
14488 ac_check_lib_save_LIBS
=$LIBS
14490 cat >conftest.
$ac_ext <<_ACEOF
14493 cat confdefs.h
>>conftest.
$ac_ext
14494 cat >>conftest.
$ac_ext <<_ACEOF
14495 /* end confdefs.h. */
14497 /* Override any GCC internal prototype to avoid an error.
14498 Use char because int might match the return type of a GCC
14499 builtin and then its argument prototype would still apply. */
14507 return usconfig ();
14512 rm -f conftest.
$ac_objext conftest
$ac_exeext
14513 if { (ac_try
="$ac_link"
14514 case "(($ac_try" in
14515 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14516 *) ac_try_echo=$ac_try;;
14518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14519 (eval "$ac_link") 2>conftest.er1
14521 grep -v '^ *+' conftest.er1 >conftest.err
14523 cat conftest.err >&5
14524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525 (exit $ac_status); } && {
14526 test -z "$ac_c_werror_flag" ||
14527 test ! -s conftest.err
14528 } && test -s conftest$ac_exeext &&
14529 $as_test_x conftest$ac_exeext; then
14530 ac_cv_lib_mpc_usconfig=yes
14532 echo "$as_me: failed program was:" >&5
14533 sed 's/^/| /' conftest.$ac_ext >&5
14535 ac_cv_lib_mpc_usconfig=no
14538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14539 conftest$ac_exeext conftest.$ac_ext
14540 LIBS=$ac_check_lib_save_LIBS
14542 { echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5
14543 echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6; }
14544 if test $ac_cv_lib_mpc_usconfig = yes; then
14545 cat >>confdefs.h <<\_ACEOF
14546 #define WITH_THREAD 1
14550 THREADOBJ="Python/thread.o"
14551 USE_THREAD_MODULE=""
14555 if test "$posix_threads" != "yes"; then
14556 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
14557 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
14558 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
14559 echo $ECHO_N "(cached) $ECHO_C" >&6
14561 ac_check_lib_save_LIBS=$LIBS
14562 LIBS="-lthread $LIBS"
14563 cat >conftest.$ac_ext <<_ACEOF
14566 cat confdefs.h >>conftest.$ac_ext
14567 cat >>conftest.$ac_ext <<_ACEOF
14568 /* end confdefs.h. */
14570 /* Override any GCC internal prototype to avoid an error.
14571 Use char because int might match the return type of a GCC
14572 builtin and then its argument prototype would still apply. */
14576 char thr_create ();
14580 return thr_create ();
14585 rm -f conftest.$ac_objext conftest$ac_exeext
14586 if { (ac_try="$ac_link"
14587 case "(($ac_try" in
14588 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14589 *) ac_try_echo
=$ac_try;;
14591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14592 (eval "$ac_link") 2>conftest.er1
14594 grep -v '^ *+' conftest.er1
>conftest.err
14596 cat conftest.err
>&5
14597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14598 (exit $ac_status); } && {
14599 test -z "$ac_c_werror_flag" ||
14600 test ! -s conftest.err
14601 } && test -s conftest
$ac_exeext &&
14602 $as_test_x conftest
$ac_exeext; then
14603 ac_cv_lib_thread_thr_create
=yes
14605 echo "$as_me: failed program was:" >&5
14606 sed 's/^/| /' conftest.
$ac_ext >&5
14608 ac_cv_lib_thread_thr_create
=no
14611 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14612 conftest
$ac_exeext conftest.
$ac_ext
14613 LIBS
=$ac_check_lib_save_LIBS
14615 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
14616 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
14617 if test $ac_cv_lib_thread_thr_create = yes; then
14618 cat >>confdefs.h
<<\_ACEOF
14619 #define WITH_THREAD 1
14622 LIBS
="$LIBS -lthread"
14623 THREADOBJ
="Python/thread.o"
14624 USE_THREAD_MODULE
=""
14629 if test "$USE_THREAD_MODULE" != "#"
14631 # If the above checks didn't disable threads, (at least) OSF1
14632 # needs this '-threads' argument during linking.
14633 case $ac_sys_system in
14634 OSF1
) LDLAST
=-threads;;
14639 if test "$posix_threads" = "yes"; then
14640 if test "$unistd_defines_pthreads" = "no"; then
14642 cat >>confdefs.h
<<\_ACEOF
14643 #define _POSIX_THREADS 1
14648 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
14649 case $ac_sys_system/$ac_sys_release in
14651 cat >>confdefs.h
<<\_ACEOF
14652 #define HAVE_PTHREAD_DESTRUCTOR 1
14657 cat >>confdefs.h
<<\_ACEOF
14658 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
14663 cat >>confdefs.h
<<\_ACEOF
14664 #define HAVE_BROKEN_POSIX_SEMAPHORES 1
14670 { echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
14671 echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6; }
14672 if test "${ac_cv_pthread_system_supported+set}" = set; then
14673 echo $ECHO_N "(cached) $ECHO_C" >&6
14675 if test "$cross_compiling" = yes; then
14676 ac_cv_pthread_system_supported
=no
14678 cat >conftest.
$ac_ext <<_ACEOF
14681 cat confdefs.h
>>conftest.
$ac_ext
14682 cat >>conftest.
$ac_ext <<_ACEOF
14683 /* end confdefs.h. */
14684 #include <pthread.h>
14685 void *foo(void *parm) {
14689 pthread_attr_t attr;
14691 if (pthread_attr_init(&attr)) exit(-1);
14692 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
14693 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
14697 rm -f conftest
$ac_exeext
14698 if { (ac_try
="$ac_link"
14699 case "(($ac_try" in
14700 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14701 *) ac_try_echo=$ac_try;;
14703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14704 (eval "$ac_link") 2>&5
14706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14707 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14708 { (case "(($ac_try" in
14709 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14710 *) ac_try_echo
=$ac_try;;
14712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14713 (eval "$ac_try") 2>&5
14715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14716 (exit $ac_status); }; }; then
14717 ac_cv_pthread_system_supported
=yes
14719 echo "$as_me: program exited with status $ac_status" >&5
14720 echo "$as_me: failed program was:" >&5
14721 sed 's/^/| /' conftest.
$ac_ext >&5
14723 ( exit $ac_status )
14724 ac_cv_pthread_system_supported
=no
14726 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14733 { echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5
14734 echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6; }
14735 if test "$ac_cv_pthread_system_supported" = "yes"; then
14737 cat >>confdefs.h
<<\_ACEOF
14738 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
14743 for ac_func
in pthread_sigmask
14745 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14746 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14747 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14748 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14749 echo $ECHO_N "(cached) $ECHO_C" >&6
14751 cat >conftest.
$ac_ext <<_ACEOF
14754 cat confdefs.h
>>conftest.
$ac_ext
14755 cat >>conftest.
$ac_ext <<_ACEOF
14756 /* end confdefs.h. */
14757 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14759 #define $ac_func innocuous_$ac_func
14761 /* System header to define __stub macros and hopefully few prototypes,
14762 which can conflict with char $ac_func (); below.
14763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14764 <limits.h> exists even on freestanding compilers. */
14767 # include <limits.h>
14769 # include <assert.h>
14774 /* Override any GCC internal prototype to avoid an error.
14775 Use char because int might match the return type of a GCC
14776 builtin and then its argument prototype would still apply. */
14781 /* The GNU C library defines this for functions which it implements
14782 to always fail with ENOSYS. Some functions are actually named
14783 something starting with __ and the normal name is an alias. */
14784 #if defined __stub_$ac_func || defined __stub___$ac_func
14791 return $ac_func ();
14796 rm -f conftest.
$ac_objext conftest
$ac_exeext
14797 if { (ac_try
="$ac_link"
14798 case "(($ac_try" in
14799 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14800 *) ac_try_echo=$ac_try;;
14802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14803 (eval "$ac_link") 2>conftest.er1
14805 grep -v '^ *+' conftest.er1 >conftest.err
14807 cat conftest.err >&5
14808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809 (exit $ac_status); } && {
14810 test -z "$ac_c_werror_flag" ||
14811 test ! -s conftest.err
14812 } && test -s conftest$ac_exeext &&
14813 $as_test_x conftest$ac_exeext; then
14814 eval "$as_ac_var=yes"
14816 echo "$as_me: failed program was:" >&5
14817 sed 's/^/| /' conftest.$ac_ext >&5
14819 eval "$as_ac_var=no"
14822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14823 conftest$ac_exeext conftest.$ac_ext
14825 ac_res=`eval echo '${'$as_ac_var'}'`
14826 { echo "$as_me:$LINENO: result: $ac_res" >&5
14827 echo "${ECHO_T}$ac_res" >&6; }
14828 if test `eval echo '${'$as_ac_var'}'` = yes; then
14829 cat >>confdefs.h <<_ACEOF
14830 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
14832 case $ac_sys_system in
14835 cat >>confdefs.h <<\_ACEOF
14836 #define HAVE_BROKEN_PTHREAD_SIGMASK 1
14847 # Check for enable-ipv6
14850 { echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5
14851 echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6; }
14852 # Check whether --enable-ipv6 was given.
14853 if test "${enable_ipv6+set}" = set; then
14854 enableval=$enable_ipv6; case "$enableval" in
14856 { echo "$as_me:$LINENO: result: no" >&5
14857 echo "${ECHO_T}no" >&6; }
14860 *) { echo "$as_me:$LINENO: result: yes" >&5
14861 echo "${ECHO_T}yes" >&6; }
14862 cat >>confdefs.h <<\_ACEOF
14863 #define ENABLE_IPV6 1
14871 if test "$cross_compiling" = yes; then
14872 { echo "$as_me:$LINENO: result: no" >&5
14873 echo "${ECHO_T}no" >&6; }
14877 cat >conftest.$ac_ext <<_ACEOF
14880 cat confdefs.h >>conftest.$ac_ext
14881 cat >>conftest.$ac_ext <<_ACEOF
14882 /* end confdefs.h. */
14883 /* AF_INET6 available check */
14884 #include <sys/types.h>
14885 #include <sys/socket.h>
14888 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
14895 rm -f conftest$ac_exeext
14896 if { (ac_try="$ac_link"
14897 case "(($ac_try" in
14898 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14899 *) ac_try_echo
=$ac_try;;
14901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14902 (eval "$ac_link") 2>&5
14904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14905 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14906 { (case "(($ac_try" in
14907 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14908 *) ac_try_echo=$ac_try;;
14910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14911 (eval "$ac_try") 2>&5
14913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14914 (exit $ac_status); }; }; then
14915 { echo "$as_me:$LINENO: result: yes" >&5
14916 echo "${ECHO_T}yes" >&6; }
14919 echo "$as_me: program exited with status $ac_status" >&5
14920 echo "$as_me: failed program was:" >&5
14921 sed 's/^/| /' conftest.$ac_ext >&5
14923 ( exit $ac_status )
14924 { echo "$as_me:$LINENO: result: no" >&5
14925 echo "${ECHO_T}no" >&6; }
14928 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14933 if test "$ipv6" = "yes"; then
14934 { echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5
14935 echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6; }
14936 cat >conftest.$ac_ext <<_ACEOF
14939 cat confdefs.h >>conftest.$ac_ext
14940 cat >>conftest.$ac_ext <<_ACEOF
14941 /* end confdefs.h. */
14942 #include <sys/types.h>
14943 #include <netinet/in.h>
14947 struct sockaddr_in6 x;
14953 rm -f conftest.$ac_objext
14954 if { (ac_try="$ac_compile"
14955 case "(($ac_try" in
14956 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14957 *) ac_try_echo
=$ac_try;;
14959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14960 (eval "$ac_compile") 2>conftest.er1
14962 grep -v '^ *+' conftest.er1
>conftest.err
14964 cat conftest.err
>&5
14965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14966 (exit $ac_status); } && {
14967 test -z "$ac_c_werror_flag" ||
14968 test ! -s conftest.err
14969 } && test -s conftest.
$ac_objext; then
14970 { echo "$as_me:$LINENO: result: yes" >&5
14971 echo "${ECHO_T}yes" >&6; }
14974 echo "$as_me: failed program was:" >&5
14975 sed 's/^/| /' conftest.
$ac_ext >&5
14977 { echo "$as_me:$LINENO: result: no" >&5
14978 echo "${ECHO_T}no" >&6; }
14982 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14985 if test "$ipv6" = "yes"; then
14986 cat >>confdefs.h
<<\_ACEOF
14987 #define ENABLE_IPV6 1
14999 if test "$ipv6" = "yes"; then
15000 { echo "$as_me:$LINENO: checking ipv6 stack type" >&5
15001 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6; }
15002 for i
in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta
;
15006 cat >conftest.
$ac_ext <<_ACEOF
15009 cat confdefs.h
>>conftest.
$ac_ext
15010 cat >>conftest.
$ac_ext <<_ACEOF
15011 /* end confdefs.h. */
15013 #include <netinet/in.h>
15014 #ifdef IPV6_INRIA_VERSION
15018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15019 $EGREP "yes" >/dev
/null
2>&1; then
15026 cat >conftest.
$ac_ext <<_ACEOF
15029 cat confdefs.h
>>conftest.
$ac_ext
15030 cat >>conftest.
$ac_ext <<_ACEOF
15031 /* end confdefs.h. */
15033 #include <netinet/in.h>
15038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15039 $EGREP "yes" >/dev
/null
2>&1; then
15042 ipv6libdir
=/usr
/local
/v
6/lib
15049 cat >conftest.
$ac_ext <<_ACEOF
15052 cat confdefs.h
>>conftest.
$ac_ext
15053 cat >>conftest.
$ac_ext <<_ACEOF
15054 /* end confdefs.h. */
15056 #include <features.h>
15057 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
15061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15062 $EGREP "yes" >/dev
/null
2>&1; then
15070 if test -d /usr
/inet6
; then
15073 ipv6libdir
=/usr
/inet
6/lib
15074 BASECFLAGS
="-I/usr/inet6/include $BASECFLAGS"
15078 if test -f /etc
/netconfig
; then
15079 if /usr
/xpg
4/bin
/grep -q tcp6
/etc
/netconfig
; then
15086 cat >conftest.
$ac_ext <<_ACEOF
15089 cat confdefs.h
>>conftest.
$ac_ext
15090 cat >>conftest.
$ac_ext <<_ACEOF
15091 /* end confdefs.h. */
15093 #include <sys/param.h>
15094 #ifdef _TOSHIBA_INET6
15098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15099 $EGREP "yes" >/dev
/null
2>&1; then
15102 ipv6libdir
=/usr
/local
/v
6/lib
15108 cat >conftest.
$ac_ext <<_ACEOF
15111 cat confdefs.h
>>conftest.
$ac_ext
15112 cat >>conftest.
$ac_ext <<_ACEOF
15113 /* end confdefs.h. */
15115 #include </usr/local/v6/include/sys/v6config.h>
15120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15121 $EGREP "yes" >/dev
/null
2>&1; then
15124 ipv6libdir
=/usr
/local
/v
6/lib
;
15125 BASECFLAGS
="-I/usr/local/v6/include $BASECFLAGS"
15131 cat >conftest.
$ac_ext <<_ACEOF
15134 cat confdefs.h
>>conftest.
$ac_ext
15135 cat >>conftest.
$ac_ext <<_ACEOF
15136 /* end confdefs.h. */
15138 #include <sys/param.h>
15139 #ifdef _ZETA_MINAMI_INET6
15143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15144 $EGREP "yes" >/dev
/null
2>&1; then
15147 ipv6libdir
=/usr
/local
/v
6/lib
15153 if test "$ipv6type" != "unknown"; then
15157 { echo "$as_me:$LINENO: result: $ipv6type" >&5
15158 echo "${ECHO_T}$ipv6type" >&6; }
15161 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
15162 if test -d $ipv6libdir -a -f $ipv6libdir/lib
$ipv6lib.a
; then
15163 LIBS
="-L$ipv6libdir -l$ipv6lib $LIBS"
15164 echo "using lib$ipv6lib"
15166 if test $ipv6trylibc = "yes"; then
15169 echo 'Fatal: no $ipv6lib library found. cannot continue.'
15170 echo "You need to fetch lib$ipv6lib.a from appropriate"
15171 echo 'ipv6 kit and compile beforehand.'
15177 # Check for --with-doc-strings
15178 { echo "$as_me:$LINENO: checking for --with-doc-strings" >&5
15179 echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6; }
15181 # Check whether --with-doc-strings was given.
15182 if test "${with_doc_strings+set}" = set; then
15183 withval
=$with_doc_strings;
15187 if test -z "$with_doc_strings"
15188 then with_doc_strings
="yes"
15190 if test "$with_doc_strings" != "no"
15193 cat >>confdefs.h
<<\_ACEOF
15194 #define WITH_DOC_STRINGS 1
15198 { echo "$as_me:$LINENO: result: $with_doc_strings" >&5
15199 echo "${ECHO_T}$with_doc_strings" >&6; }
15201 # Check for Python-specific malloc support
15202 { echo "$as_me:$LINENO: checking for --with-tsc" >&5
15203 echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6; }
15205 # Check whether --with-tsc was given.
15206 if test "${with_tsc+set}" = set; then
15208 if test "$withval" != no
15211 cat >>confdefs.h
<<\_ACEOF
15215 { echo "$as_me:$LINENO: result: yes" >&5
15216 echo "${ECHO_T}yes" >&6; }
15217 else { echo "$as_me:$LINENO: result: no" >&5
15218 echo "${ECHO_T}no" >&6; }
15221 { echo "$as_me:$LINENO: result: no" >&5
15222 echo "${ECHO_T}no" >&6; }
15226 # Check for Python-specific malloc support
15227 { echo "$as_me:$LINENO: checking for --with-pymalloc" >&5
15228 echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6; }
15230 # Check whether --with-pymalloc was given.
15231 if test "${with_pymalloc+set}" = set; then
15232 withval
=$with_pymalloc;
15236 if test -z "$with_pymalloc"
15237 then with_pymalloc
="yes"
15239 if test "$with_pymalloc" != "no"
15242 cat >>confdefs.h
<<\_ACEOF
15243 #define WITH_PYMALLOC 1
15247 { echo "$as_me:$LINENO: result: $with_pymalloc" >&5
15248 echo "${ECHO_T}$with_pymalloc" >&6; }
15250 # Check for --with-wctype-functions
15251 { echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5
15252 echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6; }
15254 # Check whether --with-wctype-functions was given.
15255 if test "${with_wctype_functions+set}" = set; then
15256 withval
=$with_wctype_functions;
15257 if test "$withval" != no
15260 cat >>confdefs.h
<<\_ACEOF
15261 #define WANT_WCTYPE_FUNCTIONS 1
15264 { echo "$as_me:$LINENO: result: yes" >&5
15265 echo "${ECHO_T}yes" >&6; }
15266 else { echo "$as_me:$LINENO: result: no" >&5
15267 echo "${ECHO_T}no" >&6; }
15270 { echo "$as_me:$LINENO: result: no" >&5
15271 echo "${ECHO_T}no" >&6; }
15275 # -I${DLINCLDIR} is added to the compile rule for importdl.o
15279 # the dlopen() function means we might want to use dynload_shlib.o. some
15280 # platforms, such as AIX, have dlopen(), but don't want to use it.
15282 for ac_func
in dlopen
15284 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15285 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15286 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15287 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15288 echo $ECHO_N "(cached) $ECHO_C" >&6
15290 cat >conftest.
$ac_ext <<_ACEOF
15293 cat confdefs.h
>>conftest.
$ac_ext
15294 cat >>conftest.
$ac_ext <<_ACEOF
15295 /* end confdefs.h. */
15296 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15297 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15298 #define $ac_func innocuous_$ac_func
15300 /* System header to define __stub macros and hopefully few prototypes,
15301 which can conflict with char $ac_func (); below.
15302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15303 <limits.h> exists even on freestanding compilers. */
15306 # include <limits.h>
15308 # include <assert.h>
15313 /* Override any GCC internal prototype to avoid an error.
15314 Use char because int might match the return type of a GCC
15315 builtin and then its argument prototype would still apply. */
15320 /* The GNU C library defines this for functions which it implements
15321 to always fail with ENOSYS. Some functions are actually named
15322 something starting with __ and the normal name is an alias. */
15323 #if defined __stub_$ac_func || defined __stub___$ac_func
15330 return $ac_func ();
15335 rm -f conftest.
$ac_objext conftest
$ac_exeext
15336 if { (ac_try
="$ac_link"
15337 case "(($ac_try" in
15338 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15339 *) ac_try_echo=$ac_try;;
15341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15342 (eval "$ac_link") 2>conftest.er1
15344 grep -v '^ *+' conftest.er1 >conftest.err
15346 cat conftest.err >&5
15347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348 (exit $ac_status); } && {
15349 test -z "$ac_c_werror_flag" ||
15350 test ! -s conftest.err
15351 } && test -s conftest$ac_exeext &&
15352 $as_test_x conftest$ac_exeext; then
15353 eval "$as_ac_var=yes"
15355 echo "$as_me: failed program was:" >&5
15356 sed 's/^/| /' conftest.$ac_ext >&5
15358 eval "$as_ac_var=no"
15361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15362 conftest$ac_exeext conftest.$ac_ext
15364 ac_res=`eval echo '${'$as_ac_var'}'`
15365 { echo "$as_me:$LINENO: result: $ac_res" >&5
15366 echo "${ECHO_T}$ac_res" >&6; }
15367 if test `eval echo '${'$as_ac_var'}'` = yes; then
15368 cat >>confdefs.h <<_ACEOF
15369 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
15376 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
15377 # loading of modules.
15379 { echo "$as_me:$LINENO: checking DYNLOADFILE" >&5
15380 echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6; }
15381 if test -z "$DYNLOADFILE"
15383 case $ac_sys_system/$ac_sys_release in
15384 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c
15385 if test "$ac_cv_func_dlopen" = yes
15386 then DYNLOADFILE="dynload_shlib.o"
15387 else DYNLOADFILE="dynload_aix.o"
15390 BeOS*) DYNLOADFILE="dynload_beos.o";;
15391 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
15392 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen()
15393 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";;
15394 atheos*) DYNLOADFILE="dynload_atheos.o";;
15396 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
15397 # out any dynamic loading
15398 if test "$ac_cv_func_dlopen" = yes
15399 then DYNLOADFILE="dynload_shlib.o"
15400 else DYNLOADFILE="dynload_stub.o"
15405 { echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5
15406 echo "${ECHO_T}$DYNLOADFILE" >&6; }
15407 if test "$DYNLOADFILE" != "dynload_stub.o"
15410 cat >>confdefs.h <<\_ACEOF
15411 #define HAVE_DYNAMIC_LOADING 1
15416 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
15419 { echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5
15420 echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6; }
15421 if test -z "$MACHDEP_OBJS"
15423 MACHDEP_OBJS=$extra_machdep_objs
15425 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs"
15427 { echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5
15428 echo "${ECHO_T}MACHDEP_OBJS" >&6; }
15430 # checks for library functions
15512 for ac_func in alarm setitimer getitimer bind_textdomain_codeset chown \
15513 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
15514 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
15515 getpriority getpwent getspnam getspent getsid getwd \
15516 kill killpg lchmod lchown lstat mkfifo mknod mktime \
15517 mremap nice pathconf pause plock poll pthread_init \
15518 putenv readlink realpath \
15519 select setegid seteuid setgid \
15520 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \
15521 sigaction siginterrupt sigrelse strftime \
15522 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
15523 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty
15525 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
15526 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15527 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15528 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15529 echo $ECHO_N "(cached) $ECHO_C" >&6
15531 cat >conftest.$ac_ext <<_ACEOF
15534 cat confdefs.h >>conftest.$ac_ext
15535 cat >>conftest.$ac_ext <<_ACEOF
15536 /* end confdefs.h. */
15537 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15538 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15539 #define $ac_func innocuous_$ac_func
15541 /* System header to define __stub macros and hopefully few prototypes,
15542 which can conflict with char $ac_func (); below.
15543 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15544 <limits.h> exists even on freestanding compilers. */
15547 # include <limits.h>
15549 # include <assert.h>
15554 /* Override any GCC internal prototype to avoid an error.
15555 Use char because int might match the return type of a GCC
15556 builtin and then its argument prototype would still apply. */
15561 /* The GNU C library defines this for functions which it implements
15562 to always fail with ENOSYS. Some functions are actually named
15563 something starting with __ and the normal name is an alias. */
15564 #if defined __stub_$ac_func || defined __stub___$ac_func
15571 return $ac_func ();
15576 rm -f conftest.$ac_objext conftest$ac_exeext
15577 if { (ac_try="$ac_link"
15578 case "(($ac_try" in
15579 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15580 *) ac_try_echo
=$ac_try;;
15582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15583 (eval "$ac_link") 2>conftest.er1
15585 grep -v '^ *+' conftest.er1
>conftest.err
15587 cat conftest.err
>&5
15588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589 (exit $ac_status); } && {
15590 test -z "$ac_c_werror_flag" ||
15591 test ! -s conftest.err
15592 } && test -s conftest
$ac_exeext &&
15593 $as_test_x conftest
$ac_exeext; then
15594 eval "$as_ac_var=yes"
15596 echo "$as_me: failed program was:" >&5
15597 sed 's/^/| /' conftest.
$ac_ext >&5
15599 eval "$as_ac_var=no"
15602 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15603 conftest
$ac_exeext conftest.
$ac_ext
15605 ac_res
=`eval echo '${'$as_ac_var'}'`
15606 { echo "$as_me:$LINENO: result: $ac_res" >&5
15607 echo "${ECHO_T}$ac_res" >&6; }
15608 if test `eval echo '${'$as_ac_var'}'` = yes; then
15609 cat >>confdefs.h
<<_ACEOF
15610 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15617 # For some functions, having a definition is not sufficient, since
15618 # we want to take their address.
15619 { echo "$as_me:$LINENO: checking for chroot" >&5
15620 echo $ECHO_N "checking for chroot... $ECHO_C" >&6; }
15621 cat >conftest.
$ac_ext <<_ACEOF
15624 cat confdefs.h
>>conftest.
$ac_ext
15625 cat >>conftest.
$ac_ext <<_ACEOF
15626 /* end confdefs.h. */
15627 #include <unistd.h>
15636 rm -f conftest.
$ac_objext
15637 if { (ac_try
="$ac_compile"
15638 case "(($ac_try" in
15639 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15640 *) ac_try_echo=$ac_try;;
15642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15643 (eval "$ac_compile") 2>conftest.er1
15645 grep -v '^ *+' conftest.er1 >conftest.err
15647 cat conftest.err >&5
15648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649 (exit $ac_status); } && {
15650 test -z "$ac_c_werror_flag" ||
15651 test ! -s conftest.err
15652 } && test -s conftest.$ac_objext; then
15654 cat >>confdefs.h <<\_ACEOF
15655 #define HAVE_CHROOT 1
15658 { echo "$as_me:$LINENO: result: yes" >&5
15659 echo "${ECHO_T}yes" >&6; }
15661 echo "$as_me: failed program was:" >&5
15662 sed 's/^/| /' conftest.$ac_ext >&5
15664 { echo "$as_me:$LINENO: result: no" >&5
15665 echo "${ECHO_T}no" >&6; }
15669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15670 { echo "$as_me:$LINENO: checking for link" >&5
15671 echo $ECHO_N "checking for link... $ECHO_C" >&6; }
15672 cat >conftest.$ac_ext <<_ACEOF
15675 cat confdefs.h >>conftest.$ac_ext
15676 cat >>conftest.$ac_ext <<_ACEOF
15677 /* end confdefs.h. */
15678 #include <unistd.h>
15687 rm -f conftest.$ac_objext
15688 if { (ac_try="$ac_compile"
15689 case "(($ac_try" in
15690 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15691 *) ac_try_echo
=$ac_try;;
15693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15694 (eval "$ac_compile") 2>conftest.er1
15696 grep -v '^ *+' conftest.er1
>conftest.err
15698 cat conftest.err
>&5
15699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700 (exit $ac_status); } && {
15701 test -z "$ac_c_werror_flag" ||
15702 test ! -s conftest.err
15703 } && test -s conftest.
$ac_objext; then
15705 cat >>confdefs.h
<<\_ACEOF
15706 #define HAVE_LINK 1
15709 { echo "$as_me:$LINENO: result: yes" >&5
15710 echo "${ECHO_T}yes" >&6; }
15712 echo "$as_me: failed program was:" >&5
15713 sed 's/^/| /' conftest.
$ac_ext >&5
15715 { echo "$as_me:$LINENO: result: no" >&5
15716 echo "${ECHO_T}no" >&6; }
15720 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15721 { echo "$as_me:$LINENO: checking for symlink" >&5
15722 echo $ECHO_N "checking for symlink... $ECHO_C" >&6; }
15723 cat >conftest.
$ac_ext <<_ACEOF
15726 cat confdefs.h
>>conftest.
$ac_ext
15727 cat >>conftest.
$ac_ext <<_ACEOF
15728 /* end confdefs.h. */
15729 #include <unistd.h>
15738 rm -f conftest.
$ac_objext
15739 if { (ac_try
="$ac_compile"
15740 case "(($ac_try" in
15741 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15742 *) ac_try_echo=$ac_try;;
15744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15745 (eval "$ac_compile") 2>conftest.er1
15747 grep -v '^ *+' conftest.er1 >conftest.err
15749 cat conftest.err >&5
15750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15751 (exit $ac_status); } && {
15752 test -z "$ac_c_werror_flag" ||
15753 test ! -s conftest.err
15754 } && test -s conftest.$ac_objext; then
15756 cat >>confdefs.h <<\_ACEOF
15757 #define HAVE_SYMLINK 1
15760 { echo "$as_me:$LINENO: result: yes" >&5
15761 echo "${ECHO_T}yes" >&6; }
15763 echo "$as_me: failed program was:" >&5
15764 sed 's/^/| /' conftest.$ac_ext >&5
15766 { echo "$as_me:$LINENO: result: no" >&5
15767 echo "${ECHO_T}no" >&6; }
15771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15772 { echo "$as_me:$LINENO: checking for fchdir" >&5
15773 echo $ECHO_N "checking for fchdir... $ECHO_C" >&6; }
15774 cat >conftest.$ac_ext <<_ACEOF
15777 cat confdefs.h >>conftest.$ac_ext
15778 cat >>conftest.$ac_ext <<_ACEOF
15779 /* end confdefs.h. */
15780 #include <unistd.h>
15789 rm -f conftest.$ac_objext
15790 if { (ac_try="$ac_compile"
15791 case "(($ac_try" in
15792 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15793 *) ac_try_echo
=$ac_try;;
15795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15796 (eval "$ac_compile") 2>conftest.er1
15798 grep -v '^ *+' conftest.er1
>conftest.err
15800 cat conftest.err
>&5
15801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15802 (exit $ac_status); } && {
15803 test -z "$ac_c_werror_flag" ||
15804 test ! -s conftest.err
15805 } && test -s conftest.
$ac_objext; then
15807 cat >>confdefs.h
<<\_ACEOF
15808 #define HAVE_FCHDIR 1
15811 { echo "$as_me:$LINENO: result: yes" >&5
15812 echo "${ECHO_T}yes" >&6; }
15814 echo "$as_me: failed program was:" >&5
15815 sed 's/^/| /' conftest.
$ac_ext >&5
15817 { echo "$as_me:$LINENO: result: no" >&5
15818 echo "${ECHO_T}no" >&6; }
15822 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15823 { echo "$as_me:$LINENO: checking for fsync" >&5
15824 echo $ECHO_N "checking for fsync... $ECHO_C" >&6; }
15825 cat >conftest.
$ac_ext <<_ACEOF
15828 cat confdefs.h
>>conftest.
$ac_ext
15829 cat >>conftest.
$ac_ext <<_ACEOF
15830 /* end confdefs.h. */
15831 #include <unistd.h>
15840 rm -f conftest.
$ac_objext
15841 if { (ac_try
="$ac_compile"
15842 case "(($ac_try" in
15843 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15844 *) ac_try_echo=$ac_try;;
15846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15847 (eval "$ac_compile") 2>conftest.er1
15849 grep -v '^ *+' conftest.er1 >conftest.err
15851 cat conftest.err >&5
15852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15853 (exit $ac_status); } && {
15854 test -z "$ac_c_werror_flag" ||
15855 test ! -s conftest.err
15856 } && test -s conftest.$ac_objext; then
15858 cat >>confdefs.h <<\_ACEOF
15859 #define HAVE_FSYNC 1
15862 { echo "$as_me:$LINENO: result: yes" >&5
15863 echo "${ECHO_T}yes" >&6; }
15865 echo "$as_me: failed program was:" >&5
15866 sed 's/^/| /' conftest.$ac_ext >&5
15868 { echo "$as_me:$LINENO: result: no" >&5
15869 echo "${ECHO_T}no" >&6; }
15873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15874 { echo "$as_me:$LINENO: checking for fdatasync" >&5
15875 echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6; }
15876 cat >conftest.$ac_ext <<_ACEOF
15879 cat confdefs.h >>conftest.$ac_ext
15880 cat >>conftest.$ac_ext <<_ACEOF
15881 /* end confdefs.h. */
15882 #include <unistd.h>
15891 rm -f conftest.$ac_objext
15892 if { (ac_try="$ac_compile"
15893 case "(($ac_try" in
15894 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15895 *) ac_try_echo
=$ac_try;;
15897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15898 (eval "$ac_compile") 2>conftest.er1
15900 grep -v '^ *+' conftest.er1
>conftest.err
15902 cat conftest.err
>&5
15903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15904 (exit $ac_status); } && {
15905 test -z "$ac_c_werror_flag" ||
15906 test ! -s conftest.err
15907 } && test -s conftest.
$ac_objext; then
15909 cat >>confdefs.h
<<\_ACEOF
15910 #define HAVE_FDATASYNC 1
15913 { echo "$as_me:$LINENO: result: yes" >&5
15914 echo "${ECHO_T}yes" >&6; }
15916 echo "$as_me: failed program was:" >&5
15917 sed 's/^/| /' conftest.
$ac_ext >&5
15919 { echo "$as_me:$LINENO: result: no" >&5
15920 echo "${ECHO_T}no" >&6; }
15924 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15925 { echo "$as_me:$LINENO: checking for epoll" >&5
15926 echo $ECHO_N "checking for epoll... $ECHO_C" >&6; }
15927 cat >conftest.
$ac_ext <<_ACEOF
15930 cat confdefs.h
>>conftest.
$ac_ext
15931 cat >>conftest.
$ac_ext <<_ACEOF
15932 /* end confdefs.h. */
15933 #include <sys/epoll.h>
15937 void *x=epoll_create
15942 rm -f conftest.
$ac_objext
15943 if { (ac_try
="$ac_compile"
15944 case "(($ac_try" in
15945 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15946 *) ac_try_echo=$ac_try;;
15948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15949 (eval "$ac_compile") 2>conftest.er1
15951 grep -v '^ *+' conftest.er1 >conftest.err
15953 cat conftest.err >&5
15954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15955 (exit $ac_status); } && {
15956 test -z "$ac_c_werror_flag" ||
15957 test ! -s conftest.err
15958 } && test -s conftest.$ac_objext; then
15960 cat >>confdefs.h <<\_ACEOF
15961 #define HAVE_EPOLL 1
15964 { echo "$as_me:$LINENO: result: yes" >&5
15965 echo "${ECHO_T}yes" >&6; }
15967 echo "$as_me: failed program was:" >&5
15968 sed 's/^/| /' conftest.$ac_ext >&5
15970 { echo "$as_me:$LINENO: result: no" >&5
15971 echo "${ECHO_T}no" >&6; }
15975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15976 { echo "$as_me:$LINENO: checking for kqueue" >&5
15977 echo $ECHO_N "checking for kqueue... $ECHO_C" >&6; }
15978 cat >conftest.$ac_ext <<_ACEOF
15981 cat confdefs.h >>conftest.$ac_ext
15982 cat >>conftest.$ac_ext <<_ACEOF
15983 /* end confdefs.h. */
15985 #include <sys/types.h>
15986 #include <sys/event.h>
15996 rm -f conftest.$ac_objext
15997 if { (ac_try="$ac_compile"
15998 case "(($ac_try" in
15999 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16000 *) ac_try_echo
=$ac_try;;
16002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16003 (eval "$ac_compile") 2>conftest.er1
16005 grep -v '^ *+' conftest.er1
>conftest.err
16007 cat conftest.err
>&5
16008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009 (exit $ac_status); } && {
16010 test -z "$ac_c_werror_flag" ||
16011 test ! -s conftest.err
16012 } && test -s conftest.
$ac_objext; then
16014 cat >>confdefs.h
<<\_ACEOF
16015 #define HAVE_KQUEUE 1
16018 { echo "$as_me:$LINENO: result: yes" >&5
16019 echo "${ECHO_T}yes" >&6; }
16021 echo "$as_me: failed program was:" >&5
16022 sed 's/^/| /' conftest.
$ac_ext >&5
16024 { echo "$as_me:$LINENO: result: no" >&5
16025 echo "${ECHO_T}no" >&6; }
16029 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16030 # On some systems (eg. FreeBSD 5), we would find a definition of the
16031 # functions ctermid_r, setgroups in the library, but no prototype
16032 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
16033 # address to avoid compiler warnings and potential miscompilations
16034 # because of the missing prototypes.
16036 { echo "$as_me:$LINENO: checking for ctermid_r" >&5
16037 echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6; }
16038 cat >conftest.
$ac_ext <<_ACEOF
16041 cat confdefs.h
>>conftest.
$ac_ext
16042 cat >>conftest.
$ac_ext <<_ACEOF
16043 /* end confdefs.h. */
16045 #include "confdefs.h"
16051 void* p = ctermid_r
16056 rm -f conftest.
$ac_objext
16057 if { (ac_try
="$ac_compile"
16058 case "(($ac_try" in
16059 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16060 *) ac_try_echo=$ac_try;;
16062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16063 (eval "$ac_compile") 2>conftest.er1
16065 grep -v '^ *+' conftest.er1 >conftest.err
16067 cat conftest.err >&5
16068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069 (exit $ac_status); } && {
16070 test -z "$ac_c_werror_flag" ||
16071 test ! -s conftest.err
16072 } && test -s conftest.$ac_objext; then
16074 cat >>confdefs.h <<\_ACEOF
16075 #define HAVE_CTERMID_R 1
16078 { echo "$as_me:$LINENO: result: yes" >&5
16079 echo "${ECHO_T}yes" >&6; }
16081 echo "$as_me: failed program was:" >&5
16082 sed 's/^/| /' conftest.$ac_ext >&5
16084 { echo "$as_me:$LINENO: result: no" >&5
16085 echo "${ECHO_T}no" >&6; }
16089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16091 { echo "$as_me:$LINENO: checking for flock" >&5
16092 echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
16093 cat >conftest.$ac_ext <<_ACEOF
16096 cat confdefs.h >>conftest.$ac_ext
16097 cat >>conftest.$ac_ext <<_ACEOF
16098 /* end confdefs.h. */
16100 #include "confdefs.h"
16101 #include <sys/file.h>
16111 rm -f conftest.$ac_objext
16112 if { (ac_try="$ac_compile"
16113 case "(($ac_try" in
16114 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16115 *) ac_try_echo
=$ac_try;;
16117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16118 (eval "$ac_compile") 2>conftest.er1
16120 grep -v '^ *+' conftest.er1
>conftest.err
16122 cat conftest.err
>&5
16123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16124 (exit $ac_status); } && {
16125 test -z "$ac_c_werror_flag" ||
16126 test ! -s conftest.err
16127 } && test -s conftest.
$ac_objext; then
16129 cat >>confdefs.h
<<\_ACEOF
16130 #define HAVE_FLOCK 1
16133 { echo "$as_me:$LINENO: result: yes" >&5
16134 echo "${ECHO_T}yes" >&6; }
16136 echo "$as_me: failed program was:" >&5
16137 sed 's/^/| /' conftest.
$ac_ext >&5
16139 { echo "$as_me:$LINENO: result: no" >&5
16140 echo "${ECHO_T}no" >&6; }
16144 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16146 { echo "$as_me:$LINENO: checking for getpagesize" >&5
16147 echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6; }
16148 cat >conftest.
$ac_ext <<_ACEOF
16151 cat confdefs.h
>>conftest.
$ac_ext
16152 cat >>conftest.
$ac_ext <<_ACEOF
16153 /* end confdefs.h. */
16155 #include "confdefs.h"
16156 #include <unistd.h>
16161 void* p = getpagesize
16166 rm -f conftest.
$ac_objext
16167 if { (ac_try
="$ac_compile"
16168 case "(($ac_try" in
16169 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16170 *) ac_try_echo=$ac_try;;
16172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16173 (eval "$ac_compile") 2>conftest.er1
16175 grep -v '^ *+' conftest.er1 >conftest.err
16177 cat conftest.err >&5
16178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16179 (exit $ac_status); } && {
16180 test -z "$ac_c_werror_flag" ||
16181 test ! -s conftest.err
16182 } && test -s conftest.$ac_objext; then
16184 cat >>confdefs.h <<\_ACEOF
16185 #define HAVE_GETPAGESIZE 1
16188 { echo "$as_me:$LINENO: result: yes" >&5
16189 echo "${ECHO_T}yes" >&6; }
16191 echo "$as_me: failed program was:" >&5
16192 sed 's/^/| /' conftest.$ac_ext >&5
16194 { echo "$as_me:$LINENO: result: no" >&5
16195 echo "${ECHO_T}no" >&6; }
16199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16201 for ac_prog in true
16203 # Extract the first word of "$ac_prog", so it can be a program name with args.
16204 set dummy $ac_prog; ac_word=$2
16205 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16207 if test "${ac_cv_prog_TRUE+set}" = set; then
16208 echo $ECHO_N "(cached) $ECHO_C" >&6
16210 if test -n "$TRUE"; then
16211 ac_cv_prog_TRUE="$TRUE" # Let the user override the test.
16213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16214 for as_dir in $PATH
16217 test -z "$as_dir" && as_dir=.
16218 for ac_exec_ext in '' $ac_executable_extensions; do
16219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16220 ac_cv_prog_TRUE="$ac_prog"
16221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16230 TRUE=$ac_cv_prog_TRUE
16231 if test -n "$TRUE"; then
16232 { echo "$as_me:$LINENO: result: $TRUE" >&5
16233 echo "${ECHO_T}$TRUE" >&6; }
16235 { echo "$as_me:$LINENO: result: no" >&5
16236 echo "${ECHO_T}no" >&6; }
16240 test -n "$TRUE" && break
16242 test -n "$TRUE" || TRUE="/bin/true"
16245 { echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5
16246 echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6; }
16247 if test "${ac_cv_lib_c_inet_aton+set}" = set; then
16248 echo $ECHO_N "(cached) $ECHO_C" >&6
16250 ac_check_lib_save_LIBS=$LIBS
16252 cat >conftest.$ac_ext <<_ACEOF
16255 cat confdefs.h >>conftest.$ac_ext
16256 cat >>conftest.$ac_ext <<_ACEOF
16257 /* end confdefs.h. */
16259 /* Override any GCC internal prototype to avoid an error.
16260 Use char because int might match the return type of a GCC
16261 builtin and then its argument prototype would still apply. */
16269 return inet_aton ();
16274 rm -f conftest.$ac_objext conftest$ac_exeext
16275 if { (ac_try="$ac_link"
16276 case "(($ac_try" in
16277 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16278 *) ac_try_echo
=$ac_try;;
16280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16281 (eval "$ac_link") 2>conftest.er1
16283 grep -v '^ *+' conftest.er1
>conftest.err
16285 cat conftest.err
>&5
16286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287 (exit $ac_status); } && {
16288 test -z "$ac_c_werror_flag" ||
16289 test ! -s conftest.err
16290 } && test -s conftest
$ac_exeext &&
16291 $as_test_x conftest
$ac_exeext; then
16292 ac_cv_lib_c_inet_aton
=yes
16294 echo "$as_me: failed program was:" >&5
16295 sed 's/^/| /' conftest.
$ac_ext >&5
16297 ac_cv_lib_c_inet_aton
=no
16300 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16301 conftest
$ac_exeext conftest.
$ac_ext
16302 LIBS
=$ac_check_lib_save_LIBS
16304 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5
16305 echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6; }
16306 if test $ac_cv_lib_c_inet_aton = yes; then
16310 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
16311 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
16312 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
16313 echo $ECHO_N "(cached) $ECHO_C" >&6
16315 ac_check_lib_save_LIBS
=$LIBS
16316 LIBS
="-lresolv $LIBS"
16317 cat >conftest.
$ac_ext <<_ACEOF
16320 cat confdefs.h
>>conftest.
$ac_ext
16321 cat >>conftest.
$ac_ext <<_ACEOF
16322 /* end confdefs.h. */
16324 /* Override any GCC internal prototype to avoid an error.
16325 Use char because int might match the return type of a GCC
16326 builtin and then its argument prototype would still apply. */
16334 return inet_aton ();
16339 rm -f conftest.
$ac_objext conftest
$ac_exeext
16340 if { (ac_try
="$ac_link"
16341 case "(($ac_try" in
16342 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16343 *) ac_try_echo=$ac_try;;
16345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16346 (eval "$ac_link") 2>conftest.er1
16348 grep -v '^ *+' conftest.er1 >conftest.err
16350 cat conftest.err >&5
16351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16352 (exit $ac_status); } && {
16353 test -z "$ac_c_werror_flag" ||
16354 test ! -s conftest.err
16355 } && test -s conftest$ac_exeext &&
16356 $as_test_x conftest$ac_exeext; then
16357 ac_cv_lib_resolv_inet_aton=yes
16359 echo "$as_me: failed program was:" >&5
16360 sed 's/^/| /' conftest.$ac_ext >&5
16362 ac_cv_lib_resolv_inet_aton=no
16365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16366 conftest$ac_exeext conftest.$ac_ext
16367 LIBS=$ac_check_lib_save_LIBS
16369 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
16370 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
16371 if test $ac_cv_lib_resolv_inet_aton = yes; then
16372 cat >>confdefs.h <<_ACEOF
16373 #define HAVE_LIBRESOLV 1
16376 LIBS="-lresolv $LIBS"
16384 # On Tru64, chflags seems to be present, but calling it will
16386 { echo "$as_me:$LINENO: checking for chflags" >&5
16387 echo $ECHO_N "checking for chflags... $ECHO_C" >&6; }
16388 if test "$cross_compiling" = yes; then
16389 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16390 See \`config.log
' for more details." >&5
16391 echo "$as_me: error: cannot run test program while cross compiling
16392 See \`config.log' for more details.
" >&2;}
16393 { (exit 1); exit 1; }; }
16395 cat >conftest.$ac_ext <<_ACEOF
16398 cat confdefs.h >>conftest.$ac_ext
16399 cat >>conftest.$ac_ext <<_ACEOF
16400 /* end confdefs.h. */
16402 #include <sys/stat.h>
16403 #include <unistd.h>
16404 int main(int argc, char*argv[])
16406 if(chflags(argv[0], 0) != 0)
16412 rm -f conftest$ac_exeext
16413 if { (ac_try="$ac_link"
16414 case "(($ac_try" in
16415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16416 *) ac_try_echo=$ac_try;;
16418 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16419 (eval "$ac_link") 2>&5
16421 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16422 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16423 { (case "(($ac_try" in
16424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16425 *) ac_try_echo=$ac_try;;
16427 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16428 (eval "$ac_try") 2>&5
16430 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16431 (exit $ac_status); }; }; then
16433 cat >>confdefs.h <<\_ACEOF
16434 #define HAVE_CHFLAGS 1
16437 { echo "$as_me:$LINENO: result
: yes" >&5
16438 echo "${ECHO_T}yes" >&6; }
16440 echo "$as_me: program exited with status
$ac_status" >&5
16441 echo "$as_me: failed program was
:" >&5
16442 sed 's/^/| /' conftest.$ac_ext >&5
16444 ( exit $ac_status )
16445 { echo "$as_me:$LINENO: result
: no
" >&5
16446 echo "${ECHO_T}no
" >&6; }
16449 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16454 { echo "$as_me:$LINENO: checking
for lchflags
" >&5
16455 echo $ECHO_N "checking
for lchflags...
$ECHO_C" >&6; }
16456 if test "$cross_compiling" = yes; then
16457 { { echo "$as_me:$LINENO: error
: cannot run
test program
while cross compiling
16458 See \
`config.log' for more details." >&5
16459 echo "$as_me: error: cannot run test program while cross compiling
16460 See \`config.log
' for more details." >&2;}
16461 { (exit 1); exit 1; }; }
16463 cat >conftest.$ac_ext <<_ACEOF
16466 cat confdefs.h >>conftest.$ac_ext
16467 cat >>conftest.$ac_ext <<_ACEOF
16468 /* end confdefs.h. */
16470 #include <sys/stat.h>
16471 #include <unistd.h>
16472 int main(int argc, char*argv[])
16474 if(lchflags(argv[0], 0) != 0)
16480 rm -f conftest$ac_exeext
16481 if { (ac_try="$ac_link"
16482 case "(($ac_try" in
16483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16484 *) ac_try_echo=$ac_try;;
16486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16487 (eval "$ac_link") 2>&5
16489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16490 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
16491 { (case "(($ac_try" in
16492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16493 *) ac_try_echo=$ac_try;;
16495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16496 (eval "$ac_try") 2>&5
16498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16499 (exit $ac_status); }; }; then
16501 cat >>confdefs.h <<\_ACEOF
16502 #define HAVE_LCHFLAGS 1
16505 { echo "$as_me:$LINENO: result: yes" >&5
16506 echo "${ECHO_T}yes" >&6; }
16508 echo "$as_me: program exited with status $ac_status" >&5
16509 echo "$as_me: failed program was:" >&5
16510 sed 's
/^
/|
/' conftest.$ac_ext >&5
16512 ( exit $ac_status )
16513 { echo "$as_me:$LINENO: result: no" >&5
16514 echo "${ECHO_T}no" >&6; }
16517 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16522 case $ac_sys_system/$ac_sys_release in
16524 _CUR_CFLAGS="${CFLAGS}"
16525 _CUR_LDFLAGS="${LDFLAGS}"
16526 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
16527 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
16531 { echo "$as_me:$LINENO: checking for inflateCopy in -lz" >&5
16532 echo $ECHO_N "checking for inflateCopy in -lz... $ECHO_C" >&6; }
16533 if test "${ac_cv_lib_z_inflateCopy+set}" = set; then
16534 echo $ECHO_N "(cached) $ECHO_C" >&6
16536 ac_check_lib_save_LIBS=$LIBS
16538 cat >conftest.$ac_ext <<_ACEOF
16541 cat confdefs.h >>conftest.$ac_ext
16542 cat >>conftest.$ac_ext <<_ACEOF
16543 /* end confdefs.h. */
16545 /* Override any GCC internal prototype to avoid an error.
16546 Use char because int might match the return type of a GCC
16547 builtin and then its argument prototype would still apply. */
16551 char inflateCopy ();
16555 return inflateCopy ();
16560 rm -f conftest.$ac_objext conftest$ac_exeext
16561 if { (ac_try="$ac_link"
16562 case "(($ac_try" in
16563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16564 *) ac_try_echo=$ac_try;;
16566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16567 (eval "$ac_link") 2>conftest.er1
16569 grep -v '^
*+' conftest.er1 >conftest.err
16571 cat conftest.err >&5
16572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573 (exit $ac_status); } && {
16574 test -z "$ac_c_werror_flag" ||
16575 test ! -s conftest.err
16576 } && test -s conftest$ac_exeext &&
16577 $as_test_x conftest$ac_exeext; then
16578 ac_cv_lib_z_inflateCopy=yes
16580 echo "$as_me: failed program was:" >&5
16581 sed 's
/^
/|
/' conftest.$ac_ext >&5
16583 ac_cv_lib_z_inflateCopy=no
16586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16587 conftest$ac_exeext conftest.$ac_ext
16588 LIBS=$ac_check_lib_save_LIBS
16590 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateCopy" >&5
16591 echo "${ECHO_T}$ac_cv_lib_z_inflateCopy" >&6; }
16592 if test $ac_cv_lib_z_inflateCopy = yes; then
16594 cat >>confdefs.h <<\_ACEOF
16595 #define HAVE_ZLIB_COPY 1
16601 case $ac_sys_system/$ac_sys_release in
16603 CFLAGS="${_CUR_CFLAGS}"
16604 LDFLAGS="${_CUR_LDFLAGS}"
16608 { echo "$as_me:$LINENO: checking for hstrerror" >&5
16609 echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6; }
16610 cat >conftest.$ac_ext <<_ACEOF
16613 cat confdefs.h >>conftest.$ac_ext
16614 cat >>conftest.$ac_ext <<_ACEOF
16615 /* end confdefs.h. */
16617 #include "confdefs.h"
16623 void* p = hstrerror; hstrerror(0)
16628 rm -f conftest.$ac_objext conftest$ac_exeext
16629 if { (ac_try="$ac_link"
16630 case "(($ac_try" in
16631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16632 *) ac_try_echo=$ac_try;;
16634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16635 (eval "$ac_link") 2>conftest.er1
16637 grep -v '^
*+' conftest.er1 >conftest.err
16639 cat conftest.err >&5
16640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16641 (exit $ac_status); } && {
16642 test -z "$ac_c_werror_flag" ||
16643 test ! -s conftest.err
16644 } && test -s conftest$ac_exeext &&
16645 $as_test_x conftest$ac_exeext; then
16647 cat >>confdefs.h <<\_ACEOF
16648 #define HAVE_HSTRERROR 1
16651 { echo "$as_me:$LINENO: result: yes" >&5
16652 echo "${ECHO_T}yes" >&6; }
16654 echo "$as_me: failed program was:" >&5
16655 sed 's
/^
/|
/' conftest.$ac_ext >&5
16657 { echo "$as_me:$LINENO: result: no" >&5
16658 echo "${ECHO_T}no" >&6; }
16662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16663 conftest$ac_exeext conftest.$ac_ext
16665 { echo "$as_me:$LINENO: checking for inet_aton" >&5
16666 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
16667 cat >conftest.$ac_ext <<_ACEOF
16670 cat confdefs.h >>conftest.$ac_ext
16671 cat >>conftest.$ac_ext <<_ACEOF
16672 /* end confdefs.h. */
16674 #include "confdefs.h"
16675 #include <sys/types.h>
16676 #include <sys/socket.h>
16677 #include <netinet/in.h>
16678 #include <arpa/inet.h>
16683 void* p = inet_aton;inet_aton(0,0)
16688 rm -f conftest.$ac_objext conftest$ac_exeext
16689 if { (ac_try="$ac_link"
16690 case "(($ac_try" in
16691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16692 *) ac_try_echo=$ac_try;;
16694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16695 (eval "$ac_link") 2>conftest.er1
16697 grep -v '^
*+' conftest.er1 >conftest.err
16699 cat conftest.err >&5
16700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16701 (exit $ac_status); } && {
16702 test -z "$ac_c_werror_flag" ||
16703 test ! -s conftest.err
16704 } && test -s conftest$ac_exeext &&
16705 $as_test_x conftest$ac_exeext; then
16707 cat >>confdefs.h <<\_ACEOF
16708 #define HAVE_INET_ATON 1
16711 { echo "$as_me:$LINENO: result: yes" >&5
16712 echo "${ECHO_T}yes" >&6; }
16714 echo "$as_me: failed program was:" >&5
16715 sed 's
/^
/|
/' conftest.$ac_ext >&5
16717 { echo "$as_me:$LINENO: result: no" >&5
16718 echo "${ECHO_T}no" >&6; }
16722 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16723 conftest$ac_exeext conftest.$ac_ext
16725 { echo "$as_me:$LINENO: checking for inet_pton" >&5
16726 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
16727 cat >conftest.$ac_ext <<_ACEOF
16730 cat confdefs.h >>conftest.$ac_ext
16731 cat >>conftest.$ac_ext <<_ACEOF
16732 /* end confdefs.h. */
16734 #include "confdefs.h"
16735 #include <sys/types.h>
16736 #include <sys/socket.h>
16737 #include <netinet/in.h>
16738 #include <arpa/inet.h>
16743 void* p = inet_pton
16748 rm -f conftest.$ac_objext
16749 if { (ac_try="$ac_compile"
16750 case "(($ac_try" in
16751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16752 *) ac_try_echo=$ac_try;;
16754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16755 (eval "$ac_compile") 2>conftest.er1
16757 grep -v '^
*+' conftest.er1 >conftest.err
16759 cat conftest.err >&5
16760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761 (exit $ac_status); } && {
16762 test -z "$ac_c_werror_flag" ||
16763 test ! -s conftest.err
16764 } && test -s conftest.$ac_objext; then
16766 cat >>confdefs.h <<\_ACEOF
16767 #define HAVE_INET_PTON 1
16770 { echo "$as_me:$LINENO: result: yes" >&5
16771 echo "${ECHO_T}yes" >&6; }
16773 echo "$as_me: failed program was:" >&5
16774 sed 's
/^
/|
/' conftest.$ac_ext >&5
16776 { echo "$as_me:$LINENO: result: no" >&5
16777 echo "${ECHO_T}no" >&6; }
16781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16783 # On some systems, setgroups is in unistd.h, on others, in grp.h
16784 { echo "$as_me:$LINENO: checking for setgroups" >&5
16785 echo $ECHO_N "checking for setgroups... $ECHO_C" >&6; }
16786 cat >conftest.$ac_ext <<_ACEOF
16789 cat confdefs.h >>conftest.$ac_ext
16790 cat >>conftest.$ac_ext <<_ACEOF
16791 /* end confdefs.h. */
16793 #include "confdefs.h"
16794 #include <unistd.h>
16802 void* p = setgroups
16807 rm -f conftest.$ac_objext
16808 if { (ac_try="$ac_compile"
16809 case "(($ac_try" in
16810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16811 *) ac_try_echo=$ac_try;;
16813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16814 (eval "$ac_compile") 2>conftest.er1
16816 grep -v '^
*+' conftest.er1 >conftest.err
16818 cat conftest.err >&5
16819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820 (exit $ac_status); } && {
16821 test -z "$ac_c_werror_flag" ||
16822 test ! -s conftest.err
16823 } && test -s conftest.$ac_objext; then
16825 cat >>confdefs.h <<\_ACEOF
16826 #define HAVE_SETGROUPS 1
16829 { echo "$as_me:$LINENO: result: yes" >&5
16830 echo "${ECHO_T}yes" >&6; }
16832 echo "$as_me: failed program was:" >&5
16833 sed 's
/^
/|
/' conftest.$ac_ext >&5
16835 { echo "$as_me:$LINENO: result: no" >&5
16836 echo "${ECHO_T}no" >&6; }
16840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16842 # check for openpty and forkpty
16845 for ac_func in openpty
16847 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16848 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16849 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16850 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16851 echo $ECHO_N "(cached) $ECHO_C" >&6
16853 cat >conftest.$ac_ext <<_ACEOF
16856 cat confdefs.h >>conftest.$ac_ext
16857 cat >>conftest.$ac_ext <<_ACEOF
16858 /* end confdefs.h. */
16859 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16860 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16861 #define $ac_func innocuous_$ac_func
16863 /* System header to define __stub macros and hopefully few prototypes,
16864 which can conflict with char $ac_func (); below.
16865 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16866 <limits.h> exists even on freestanding compilers. */
16869 # include <limits.h>
16871 # include <assert.h>
16876 /* Override any GCC internal prototype to avoid an error.
16877 Use char because int might match the return type of a GCC
16878 builtin and then its argument prototype would still apply. */
16883 /* The GNU C library defines this for functions which it implements
16884 to always fail with ENOSYS. Some functions are actually named
16885 something starting with __ and the normal name is an alias. */
16886 #if defined __stub_$ac_func || defined __stub___$ac_func
16893 return $ac_func ();
16898 rm -f conftest.$ac_objext conftest$ac_exeext
16899 if { (ac_try="$ac_link"
16900 case "(($ac_try" in
16901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16902 *) ac_try_echo=$ac_try;;
16904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16905 (eval "$ac_link") 2>conftest.er1
16907 grep -v '^
*+' conftest.er1 >conftest.err
16909 cat conftest.err >&5
16910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16911 (exit $ac_status); } && {
16912 test -z "$ac_c_werror_flag" ||
16913 test ! -s conftest.err
16914 } && test -s conftest$ac_exeext &&
16915 $as_test_x conftest$ac_exeext; then
16916 eval "$as_ac_var=yes"
16918 echo "$as_me: failed program was:" >&5
16919 sed 's
/^
/|
/' conftest.$ac_ext >&5
16921 eval "$as_ac_var=no"
16924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16925 conftest$ac_exeext conftest.$ac_ext
16927 ac_res=`eval echo '${'$as_ac_var'}'`
16928 { echo "$as_me:$LINENO: result: $ac_res" >&5
16929 echo "${ECHO_T}$ac_res" >&6; }
16930 if test `eval echo '${'$as_ac_var'}'` = yes; then
16931 cat >>confdefs.h <<_ACEOF
16932 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16936 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
16937 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
16938 if test "${ac_cv_lib_util_openpty+set}" = set; then
16939 echo $ECHO_N "(cached) $ECHO_C" >&6
16941 ac_check_lib_save_LIBS=$LIBS
16942 LIBS="-lutil $LIBS"
16943 cat >conftest.$ac_ext <<_ACEOF
16946 cat confdefs.h >>conftest.$ac_ext
16947 cat >>conftest.$ac_ext <<_ACEOF
16948 /* end confdefs.h. */
16950 /* Override any GCC internal prototype to avoid an error.
16951 Use char because int might match the return type of a GCC
16952 builtin and then its argument prototype would still apply. */
16965 rm -f conftest.$ac_objext conftest$ac_exeext
16966 if { (ac_try="$ac_link"
16967 case "(($ac_try" in
16968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16969 *) ac_try_echo=$ac_try;;
16971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16972 (eval "$ac_link") 2>conftest.er1
16974 grep -v '^
*+' conftest.er1 >conftest.err
16976 cat conftest.err >&5
16977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16978 (exit $ac_status); } && {
16979 test -z "$ac_c_werror_flag" ||
16980 test ! -s conftest.err
16981 } && test -s conftest$ac_exeext &&
16982 $as_test_x conftest$ac_exeext; then
16983 ac_cv_lib_util_openpty=yes
16985 echo "$as_me: failed program was:" >&5
16986 sed 's
/^
/|
/' conftest.$ac_ext >&5
16988 ac_cv_lib_util_openpty=no
16991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16992 conftest$ac_exeext conftest.$ac_ext
16993 LIBS=$ac_check_lib_save_LIBS
16995 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
16996 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
16997 if test $ac_cv_lib_util_openpty = yes; then
16998 cat >>confdefs.h <<\_ACEOF
16999 #define HAVE_OPENPTY 1
17001 LIBS="$LIBS -lutil"
17003 { echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
17004 echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6; }
17005 if test "${ac_cv_lib_bsd_openpty+set}" = set; then
17006 echo $ECHO_N "(cached) $ECHO_C" >&6
17008 ac_check_lib_save_LIBS=$LIBS
17010 cat >conftest.$ac_ext <<_ACEOF
17013 cat confdefs.h >>conftest.$ac_ext
17014 cat >>conftest.$ac_ext <<_ACEOF
17015 /* end confdefs.h. */
17017 /* Override any GCC internal prototype to avoid an error.
17018 Use char because int might match the return type of a GCC
17019 builtin and then its argument prototype would still apply. */
17032 rm -f conftest.$ac_objext conftest$ac_exeext
17033 if { (ac_try="$ac_link"
17034 case "(($ac_try" in
17035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17036 *) ac_try_echo=$ac_try;;
17038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17039 (eval "$ac_link") 2>conftest.er1
17041 grep -v '^
*+' conftest.er1 >conftest.err
17043 cat conftest.err >&5
17044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17045 (exit $ac_status); } && {
17046 test -z "$ac_c_werror_flag" ||
17047 test ! -s conftest.err
17048 } && test -s conftest$ac_exeext &&
17049 $as_test_x conftest$ac_exeext; then
17050 ac_cv_lib_bsd_openpty=yes
17052 echo "$as_me: failed program was:" >&5
17053 sed 's
/^
/|
/' conftest.$ac_ext >&5
17055 ac_cv_lib_bsd_openpty=no
17058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17059 conftest$ac_exeext conftest.$ac_ext
17060 LIBS=$ac_check_lib_save_LIBS
17062 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
17063 echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6; }
17064 if test $ac_cv_lib_bsd_openpty = yes; then
17065 cat >>confdefs.h <<\_ACEOF
17066 #define HAVE_OPENPTY 1
17079 for ac_func in forkpty
17081 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17082 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17083 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17084 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17085 echo $ECHO_N "(cached) $ECHO_C" >&6
17087 cat >conftest.$ac_ext <<_ACEOF
17090 cat confdefs.h >>conftest.$ac_ext
17091 cat >>conftest.$ac_ext <<_ACEOF
17092 /* end confdefs.h. */
17093 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17094 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17095 #define $ac_func innocuous_$ac_func
17097 /* System header to define __stub macros and hopefully few prototypes,
17098 which can conflict with char $ac_func (); below.
17099 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17100 <limits.h> exists even on freestanding compilers. */
17103 # include <limits.h>
17105 # include <assert.h>
17110 /* Override any GCC internal prototype to avoid an error.
17111 Use char because int might match the return type of a GCC
17112 builtin and then its argument prototype would still apply. */
17117 /* The GNU C library defines this for functions which it implements
17118 to always fail with ENOSYS. Some functions are actually named
17119 something starting with __ and the normal name is an alias. */
17120 #if defined __stub_$ac_func || defined __stub___$ac_func
17127 return $ac_func ();
17132 rm -f conftest.$ac_objext conftest$ac_exeext
17133 if { (ac_try="$ac_link"
17134 case "(($ac_try" in
17135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17136 *) ac_try_echo=$ac_try;;
17138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17139 (eval "$ac_link") 2>conftest.er1
17141 grep -v '^
*+' conftest.er1 >conftest.err
17143 cat conftest.err >&5
17144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17145 (exit $ac_status); } && {
17146 test -z "$ac_c_werror_flag" ||
17147 test ! -s conftest.err
17148 } && test -s conftest$ac_exeext &&
17149 $as_test_x conftest$ac_exeext; then
17150 eval "$as_ac_var=yes"
17152 echo "$as_me: failed program was:" >&5
17153 sed 's
/^
/|
/' conftest.$ac_ext >&5
17155 eval "$as_ac_var=no"
17158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17159 conftest$ac_exeext conftest.$ac_ext
17161 ac_res=`eval echo '${'$as_ac_var'}'`
17162 { echo "$as_me:$LINENO: result: $ac_res" >&5
17163 echo "${ECHO_T}$ac_res" >&6; }
17164 if test `eval echo '${'$as_ac_var'}'` = yes; then
17165 cat >>confdefs.h <<_ACEOF
17166 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17170 { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
17171 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
17172 if test "${ac_cv_lib_util_forkpty+set}" = set; then
17173 echo $ECHO_N "(cached) $ECHO_C" >&6
17175 ac_check_lib_save_LIBS=$LIBS
17176 LIBS="-lutil $LIBS"
17177 cat >conftest.$ac_ext <<_ACEOF
17180 cat confdefs.h >>conftest.$ac_ext
17181 cat >>conftest.$ac_ext <<_ACEOF
17182 /* end confdefs.h. */
17184 /* Override any GCC internal prototype to avoid an error.
17185 Use char because int might match the return type of a GCC
17186 builtin and then its argument prototype would still apply. */
17199 rm -f conftest.$ac_objext conftest$ac_exeext
17200 if { (ac_try="$ac_link"
17201 case "(($ac_try" in
17202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17203 *) ac_try_echo=$ac_try;;
17205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17206 (eval "$ac_link") 2>conftest.er1
17208 grep -v '^
*+' conftest.er1 >conftest.err
17210 cat conftest.err >&5
17211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17212 (exit $ac_status); } && {
17213 test -z "$ac_c_werror_flag" ||
17214 test ! -s conftest.err
17215 } && test -s conftest$ac_exeext &&
17216 $as_test_x conftest$ac_exeext; then
17217 ac_cv_lib_util_forkpty=yes
17219 echo "$as_me: failed program was:" >&5
17220 sed 's
/^
/|
/' conftest.$ac_ext >&5
17222 ac_cv_lib_util_forkpty=no
17225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17226 conftest$ac_exeext conftest.$ac_ext
17227 LIBS=$ac_check_lib_save_LIBS
17229 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
17230 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
17231 if test $ac_cv_lib_util_forkpty = yes; then
17232 cat >>confdefs.h <<\_ACEOF
17233 #define HAVE_FORKPTY 1
17235 LIBS="$LIBS -lutil"
17237 { echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
17238 echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6; }
17239 if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
17240 echo $ECHO_N "(cached) $ECHO_C" >&6
17242 ac_check_lib_save_LIBS=$LIBS
17244 cat >conftest.$ac_ext <<_ACEOF
17247 cat confdefs.h >>conftest.$ac_ext
17248 cat >>conftest.$ac_ext <<_ACEOF
17249 /* end confdefs.h. */
17251 /* Override any GCC internal prototype to avoid an error.
17252 Use char because int might match the return type of a GCC
17253 builtin and then its argument prototype would still apply. */
17266 rm -f conftest.$ac_objext conftest$ac_exeext
17267 if { (ac_try="$ac_link"
17268 case "(($ac_try" in
17269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17270 *) ac_try_echo=$ac_try;;
17272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17273 (eval "$ac_link") 2>conftest.er1
17275 grep -v '^
*+' conftest.er1 >conftest.err
17277 cat conftest.err >&5
17278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17279 (exit $ac_status); } && {
17280 test -z "$ac_c_werror_flag" ||
17281 test ! -s conftest.err
17282 } && test -s conftest$ac_exeext &&
17283 $as_test_x conftest$ac_exeext; then
17284 ac_cv_lib_bsd_forkpty=yes
17286 echo "$as_me: failed program was:" >&5
17287 sed 's
/^
/|
/' conftest.$ac_ext >&5
17289 ac_cv_lib_bsd_forkpty=no
17292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17293 conftest$ac_exeext conftest.$ac_ext
17294 LIBS=$ac_check_lib_save_LIBS
17296 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
17297 echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6; }
17298 if test $ac_cv_lib_bsd_forkpty = yes; then
17299 cat >>confdefs.h <<\_ACEOF
17300 #define HAVE_FORKPTY 1
17315 for ac_func in memmove
17317 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17318 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17319 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17320 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17321 echo $ECHO_N "(cached) $ECHO_C" >&6
17323 cat >conftest.$ac_ext <<_ACEOF
17326 cat confdefs.h >>conftest.$ac_ext
17327 cat >>conftest.$ac_ext <<_ACEOF
17328 /* end confdefs.h. */
17329 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17330 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17331 #define $ac_func innocuous_$ac_func
17333 /* System header to define __stub macros and hopefully few prototypes,
17334 which can conflict with char $ac_func (); below.
17335 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17336 <limits.h> exists even on freestanding compilers. */
17339 # include <limits.h>
17341 # include <assert.h>
17346 /* Override any GCC internal prototype to avoid an error.
17347 Use char because int might match the return type of a GCC
17348 builtin and then its argument prototype would still apply. */
17353 /* The GNU C library defines this for functions which it implements
17354 to always fail with ENOSYS. Some functions are actually named
17355 something starting with __ and the normal name is an alias. */
17356 #if defined __stub_$ac_func || defined __stub___$ac_func
17363 return $ac_func ();
17368 rm -f conftest.$ac_objext conftest$ac_exeext
17369 if { (ac_try="$ac_link"
17370 case "(($ac_try" in
17371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17372 *) ac_try_echo=$ac_try;;
17374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17375 (eval "$ac_link") 2>conftest.er1
17377 grep -v '^
*+' conftest.er1 >conftest.err
17379 cat conftest.err >&5
17380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17381 (exit $ac_status); } && {
17382 test -z "$ac_c_werror_flag" ||
17383 test ! -s conftest.err
17384 } && test -s conftest$ac_exeext &&
17385 $as_test_x conftest$ac_exeext; then
17386 eval "$as_ac_var=yes"
17388 echo "$as_me: failed program was:" >&5
17389 sed 's
/^
/|
/' conftest.$ac_ext >&5
17391 eval "$as_ac_var=no"
17394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17395 conftest$ac_exeext conftest.$ac_ext
17397 ac_res=`eval echo '${'$as_ac_var'}'`
17398 { echo "$as_me:$LINENO: result: $ac_res" >&5
17399 echo "${ECHO_T}$ac_res" >&6; }
17400 if test `eval echo '${'$as_ac_var'}'` = yes; then
17401 cat >>confdefs.h <<_ACEOF
17402 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17409 # check for long file support functions
17416 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
17418 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17419 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17420 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17421 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17422 echo $ECHO_N "(cached) $ECHO_C" >&6
17424 cat >conftest.$ac_ext <<_ACEOF
17427 cat confdefs.h >>conftest.$ac_ext
17428 cat >>conftest.$ac_ext <<_ACEOF
17429 /* end confdefs.h. */
17430 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17431 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17432 #define $ac_func innocuous_$ac_func
17434 /* System header to define __stub macros and hopefully few prototypes,
17435 which can conflict with char $ac_func (); below.
17436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17437 <limits.h> exists even on freestanding compilers. */
17440 # include <limits.h>
17442 # include <assert.h>
17447 /* Override any GCC internal prototype to avoid an error.
17448 Use char because int might match the return type of a GCC
17449 builtin and then its argument prototype would still apply. */
17454 /* The GNU C library defines this for functions which it implements
17455 to always fail with ENOSYS. Some functions are actually named
17456 something starting with __ and the normal name is an alias. */
17457 #if defined __stub_$ac_func || defined __stub___$ac_func
17464 return $ac_func ();
17469 rm -f conftest.$ac_objext conftest$ac_exeext
17470 if { (ac_try="$ac_link"
17471 case "(($ac_try" in
17472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17473 *) ac_try_echo=$ac_try;;
17475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17476 (eval "$ac_link") 2>conftest.er1
17478 grep -v '^
*+' conftest.er1 >conftest.err
17480 cat conftest.err >&5
17481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17482 (exit $ac_status); } && {
17483 test -z "$ac_c_werror_flag" ||
17484 test ! -s conftest.err
17485 } && test -s conftest$ac_exeext &&
17486 $as_test_x conftest$ac_exeext; then
17487 eval "$as_ac_var=yes"
17489 echo "$as_me: failed program was:" >&5
17490 sed 's
/^
/|
/' conftest.$ac_ext >&5
17492 eval "$as_ac_var=no"
17495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17496 conftest$ac_exeext conftest.$ac_ext
17498 ac_res=`eval echo '${'$as_ac_var'}'`
17499 { echo "$as_me:$LINENO: result: $ac_res" >&5
17500 echo "${ECHO_T}$ac_res" >&6; }
17501 if test `eval echo '${'$as_ac_var'}'` = yes; then
17502 cat >>confdefs.h <<_ACEOF
17503 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17513 for ac_func in dup2 getcwd strdup
17515 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17516 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17517 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17518 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17519 echo $ECHO_N "(cached) $ECHO_C" >&6
17521 cat >conftest.$ac_ext <<_ACEOF
17524 cat confdefs.h >>conftest.$ac_ext
17525 cat >>conftest.$ac_ext <<_ACEOF
17526 /* end confdefs.h. */
17527 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17528 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17529 #define $ac_func innocuous_$ac_func
17531 /* System header to define __stub macros and hopefully few prototypes,
17532 which can conflict with char $ac_func (); below.
17533 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17534 <limits.h> exists even on freestanding compilers. */
17537 # include <limits.h>
17539 # include <assert.h>
17544 /* Override any GCC internal prototype to avoid an error.
17545 Use char because int might match the return type of a GCC
17546 builtin and then its argument prototype would still apply. */
17551 /* The GNU C library defines this for functions which it implements
17552 to always fail with ENOSYS. Some functions are actually named
17553 something starting with __ and the normal name is an alias. */
17554 #if defined __stub_$ac_func || defined __stub___$ac_func
17561 return $ac_func ();
17566 rm -f conftest.$ac_objext conftest$ac_exeext
17567 if { (ac_try="$ac_link"
17568 case "(($ac_try" in
17569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17570 *) ac_try_echo=$ac_try;;
17572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17573 (eval "$ac_link") 2>conftest.er1
17575 grep -v '^
*+' conftest.er1 >conftest.err
17577 cat conftest.err >&5
17578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579 (exit $ac_status); } && {
17580 test -z "$ac_c_werror_flag" ||
17581 test ! -s conftest.err
17582 } && test -s conftest$ac_exeext &&
17583 $as_test_x conftest$ac_exeext; then
17584 eval "$as_ac_var=yes"
17586 echo "$as_me: failed program was:" >&5
17587 sed 's
/^
/|
/' conftest.$ac_ext >&5
17589 eval "$as_ac_var=no"
17592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17593 conftest$ac_exeext conftest.$ac_ext
17595 ac_res=`eval echo '${'$as_ac_var'}'`
17596 { echo "$as_me:$LINENO: result: $ac_res" >&5
17597 echo "${ECHO_T}$ac_res" >&6; }
17598 if test `eval echo '${'$as_ac_var'}'` = yes; then
17599 cat >>confdefs.h <<_ACEOF
17600 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17604 case " $LIBOBJS " in
17605 *" $ac_func.$ac_objext "* ) ;;
17606 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17615 for ac_func in getpgrp
17617 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17618 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17619 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17620 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17621 echo $ECHO_N "(cached) $ECHO_C" >&6
17623 cat >conftest.$ac_ext <<_ACEOF
17626 cat confdefs.h >>conftest.$ac_ext
17627 cat >>conftest.$ac_ext <<_ACEOF
17628 /* end confdefs.h. */
17629 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17630 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17631 #define $ac_func innocuous_$ac_func
17633 /* System header to define __stub macros and hopefully few prototypes,
17634 which can conflict with char $ac_func (); below.
17635 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17636 <limits.h> exists even on freestanding compilers. */
17639 # include <limits.h>
17641 # include <assert.h>
17646 /* Override any GCC internal prototype to avoid an error.
17647 Use char because int might match the return type of a GCC
17648 builtin and then its argument prototype would still apply. */
17653 /* The GNU C library defines this for functions which it implements
17654 to always fail with ENOSYS. Some functions are actually named
17655 something starting with __ and the normal name is an alias. */
17656 #if defined __stub_$ac_func || defined __stub___$ac_func
17663 return $ac_func ();
17668 rm -f conftest.$ac_objext conftest$ac_exeext
17669 if { (ac_try="$ac_link"
17670 case "(($ac_try" in
17671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17672 *) ac_try_echo=$ac_try;;
17674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17675 (eval "$ac_link") 2>conftest.er1
17677 grep -v '^
*+' conftest.er1 >conftest.err
17679 cat conftest.err >&5
17680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681 (exit $ac_status); } && {
17682 test -z "$ac_c_werror_flag" ||
17683 test ! -s conftest.err
17684 } && test -s conftest$ac_exeext &&
17685 $as_test_x conftest$ac_exeext; then
17686 eval "$as_ac_var=yes"
17688 echo "$as_me: failed program was:" >&5
17689 sed 's
/^
/|
/' conftest.$ac_ext >&5
17691 eval "$as_ac_var=no"
17694 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17695 conftest$ac_exeext conftest.$ac_ext
17697 ac_res=`eval echo '${'$as_ac_var'}'`
17698 { echo "$as_me:$LINENO: result: $ac_res" >&5
17699 echo "${ECHO_T}$ac_res" >&6; }
17700 if test `eval echo '${'$as_ac_var'}'` = yes; then
17701 cat >>confdefs.h <<_ACEOF
17702 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17704 cat >conftest.$ac_ext <<_ACEOF
17707 cat confdefs.h >>conftest.$ac_ext
17708 cat >>conftest.$ac_ext <<_ACEOF
17709 /* end confdefs.h. */
17710 #include <unistd.h>
17719 rm -f conftest.$ac_objext
17720 if { (ac_try="$ac_compile"
17721 case "(($ac_try" in
17722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17723 *) ac_try_echo=$ac_try;;
17725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17726 (eval "$ac_compile") 2>conftest.er1
17728 grep -v '^
*+' conftest.er1 >conftest.err
17730 cat conftest.err >&5
17731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17732 (exit $ac_status); } && {
17733 test -z "$ac_c_werror_flag" ||
17734 test ! -s conftest.err
17735 } && test -s conftest.$ac_objext; then
17737 cat >>confdefs.h <<\_ACEOF
17738 #define GETPGRP_HAVE_ARG 1
17743 echo "$as_me: failed program was:" >&5
17744 sed 's
/^
/|
/' conftest.$ac_ext >&5
17749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17755 for ac_func in setpgrp
17757 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17758 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17759 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17760 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17761 echo $ECHO_N "(cached) $ECHO_C" >&6
17763 cat >conftest.$ac_ext <<_ACEOF
17766 cat confdefs.h >>conftest.$ac_ext
17767 cat >>conftest.$ac_ext <<_ACEOF
17768 /* end confdefs.h. */
17769 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17771 #define $ac_func innocuous_$ac_func
17773 /* System header to define __stub macros and hopefully few prototypes,
17774 which can conflict with char $ac_func (); below.
17775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17776 <limits.h> exists even on freestanding compilers. */
17779 # include <limits.h>
17781 # include <assert.h>
17786 /* Override any GCC internal prototype to avoid an error.
17787 Use char because int might match the return type of a GCC
17788 builtin and then its argument prototype would still apply. */
17793 /* The GNU C library defines this for functions which it implements
17794 to always fail with ENOSYS. Some functions are actually named
17795 something starting with __ and the normal name is an alias. */
17796 #if defined __stub_$ac_func || defined __stub___$ac_func
17803 return $ac_func ();
17808 rm -f conftest.$ac_objext conftest$ac_exeext
17809 if { (ac_try="$ac_link"
17810 case "(($ac_try" in
17811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17812 *) ac_try_echo=$ac_try;;
17814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17815 (eval "$ac_link") 2>conftest.er1
17817 grep -v '^
*+' conftest.er1 >conftest.err
17819 cat conftest.err >&5
17820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17821 (exit $ac_status); } && {
17822 test -z "$ac_c_werror_flag" ||
17823 test ! -s conftest.err
17824 } && test -s conftest$ac_exeext &&
17825 $as_test_x conftest$ac_exeext; then
17826 eval "$as_ac_var=yes"
17828 echo "$as_me: failed program was:" >&5
17829 sed 's
/^
/|
/' conftest.$ac_ext >&5
17831 eval "$as_ac_var=no"
17834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17835 conftest$ac_exeext conftest.$ac_ext
17837 ac_res=`eval echo '${'$as_ac_var'}'`
17838 { echo "$as_me:$LINENO: result: $ac_res" >&5
17839 echo "${ECHO_T}$ac_res" >&6; }
17840 if test `eval echo '${'$as_ac_var'}'` = yes; then
17841 cat >>confdefs.h <<_ACEOF
17842 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17844 cat >conftest.$ac_ext <<_ACEOF
17847 cat confdefs.h >>conftest.$ac_ext
17848 cat >>conftest.$ac_ext <<_ACEOF
17849 /* end confdefs.h. */
17850 #include <unistd.h>
17859 rm -f conftest.$ac_objext
17860 if { (ac_try="$ac_compile"
17861 case "(($ac_try" in
17862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17863 *) ac_try_echo=$ac_try;;
17865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17866 (eval "$ac_compile") 2>conftest.er1
17868 grep -v '^
*+' conftest.er1 >conftest.err
17870 cat conftest.err >&5
17871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17872 (exit $ac_status); } && {
17873 test -z "$ac_c_werror_flag" ||
17874 test ! -s conftest.err
17875 } && test -s conftest.$ac_objext; then
17877 cat >>confdefs.h <<\_ACEOF
17878 #define SETPGRP_HAVE_ARG 1
17883 echo "$as_me: failed program was:" >&5
17884 sed 's
/^
/|
/' conftest.$ac_ext >&5
17889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17895 for ac_func in gettimeofday
17897 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17898 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17899 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17900 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17901 echo $ECHO_N "(cached) $ECHO_C" >&6
17903 cat >conftest.$ac_ext <<_ACEOF
17906 cat confdefs.h >>conftest.$ac_ext
17907 cat >>conftest.$ac_ext <<_ACEOF
17908 /* end confdefs.h. */
17909 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17911 #define $ac_func innocuous_$ac_func
17913 /* System header to define __stub macros and hopefully few prototypes,
17914 which can conflict with char $ac_func (); below.
17915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17916 <limits.h> exists even on freestanding compilers. */
17919 # include <limits.h>
17921 # include <assert.h>
17926 /* Override any GCC internal prototype to avoid an error.
17927 Use char because int might match the return type of a GCC
17928 builtin and then its argument prototype would still apply. */
17933 /* The GNU C library defines this for functions which it implements
17934 to always fail with ENOSYS. Some functions are actually named
17935 something starting with __ and the normal name is an alias. */
17936 #if defined __stub_$ac_func || defined __stub___$ac_func
17943 return $ac_func ();
17948 rm -f conftest.$ac_objext conftest$ac_exeext
17949 if { (ac_try="$ac_link"
17950 case "(($ac_try" in
17951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17952 *) ac_try_echo=$ac_try;;
17954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17955 (eval "$ac_link") 2>conftest.er1
17957 grep -v '^
*+' conftest.er1 >conftest.err
17959 cat conftest.err >&5
17960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17961 (exit $ac_status); } && {
17962 test -z "$ac_c_werror_flag" ||
17963 test ! -s conftest.err
17964 } && test -s conftest$ac_exeext &&
17965 $as_test_x conftest$ac_exeext; then
17966 eval "$as_ac_var=yes"
17968 echo "$as_me: failed program was:" >&5
17969 sed 's
/^
/|
/' conftest.$ac_ext >&5
17971 eval "$as_ac_var=no"
17974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17975 conftest$ac_exeext conftest.$ac_ext
17977 ac_res=`eval echo '${'$as_ac_var'}'`
17978 { echo "$as_me:$LINENO: result: $ac_res" >&5
17979 echo "${ECHO_T}$ac_res" >&6; }
17980 if test `eval echo '${'$as_ac_var'}'` = yes; then
17981 cat >>confdefs.h <<_ACEOF
17982 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17984 cat >conftest.$ac_ext <<_ACEOF
17987 cat confdefs.h >>conftest.$ac_ext
17988 cat >>conftest.$ac_ext <<_ACEOF
17989 /* end confdefs.h. */
17990 #include <sys/time.h>
17994 gettimeofday((struct timeval*)0,(struct timezone*)0);
17999 rm -f conftest.$ac_objext
18000 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
18018 echo "$as_me: failed program was:" >&5
18019 sed 's
/^
/|
/' conftest.$ac_ext >&5
18022 cat >>confdefs.h <<\_ACEOF
18023 #define GETTIMEOFDAY_NO_TZ 1
18029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18035 { echo "$as_me:$LINENO: checking for major" >&5
18036 echo $ECHO_N "checking for major... $ECHO_C" >&6; }
18037 cat >conftest.$ac_ext <<_ACEOF
18040 cat confdefs.h >>conftest.$ac_ext
18041 cat >>conftest.$ac_ext <<_ACEOF
18042 /* end confdefs.h. */
18044 #if defined(MAJOR_IN_MKDEV)
18045 #include <sys/mkdev.h>
18046 #elif defined(MAJOR_IN_SYSMACROS)
18047 #include <sys/sysmacros.h>
18049 #include <sys/types.h>
18056 makedev(major(0),minor(0));
18062 rm -f conftest.$ac_objext conftest$ac_exeext
18063 if { (ac_try="$ac_link"
18064 case "(($ac_try" in
18065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18066 *) ac_try_echo=$ac_try;;
18068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18069 (eval "$ac_link") 2>conftest.er1
18071 grep -v '^
*+' conftest.er1 >conftest.err
18073 cat conftest.err >&5
18074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18075 (exit $ac_status); } && {
18076 test -z "$ac_c_werror_flag" ||
18077 test ! -s conftest.err
18078 } && test -s conftest$ac_exeext &&
18079 $as_test_x conftest$ac_exeext; then
18082 cat >>confdefs.h <<\_ACEOF
18083 #define HAVE_DEVICE_MACROS 1
18086 { echo "$as_me:$LINENO: result: yes" >&5
18087 echo "${ECHO_T}yes" >&6; }
18090 echo "$as_me: failed program was:" >&5
18091 sed 's
/^
/|
/' conftest.$ac_ext >&5
18094 { echo "$as_me:$LINENO: result: no" >&5
18095 echo "${ECHO_T}no" >&6; }
18099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18100 conftest$ac_exeext conftest.$ac_ext
18102 # On OSF/1 V5.1, getaddrinfo is available, but a define
18103 # for [no]getaddrinfo in netdb.h.
18104 { echo "$as_me:$LINENO: checking for getaddrinfo" >&5
18105 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6; }
18106 cat >conftest.$ac_ext <<_ACEOF
18109 cat confdefs.h >>conftest.$ac_ext
18110 cat >>conftest.$ac_ext <<_ACEOF
18111 /* end confdefs.h. */
18113 #include <sys/types.h>
18114 #include <sys/socket.h>
18122 getaddrinfo(NULL, NULL, NULL, NULL);
18128 rm -f conftest.$ac_objext conftest$ac_exeext
18129 if { (ac_try="$ac_link"
18130 case "(($ac_try" in
18131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18132 *) ac_try_echo=$ac_try;;
18134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18135 (eval "$ac_link") 2>conftest.er1
18137 grep -v '^
*+' conftest.er1 >conftest.err
18139 cat conftest.err >&5
18140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18141 (exit $ac_status); } && {
18142 test -z "$ac_c_werror_flag" ||
18143 test ! -s conftest.err
18144 } && test -s conftest$ac_exeext &&
18145 $as_test_x conftest$ac_exeext; then
18147 { echo "$as_me:$LINENO: result: yes" >&5
18148 echo "${ECHO_T}yes" >&6; }
18149 { echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
18150 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6; }
18151 if test "$cross_compiling" = yes; then
18152 { echo "$as_me:$LINENO: result: buggy" >&5
18153 echo "${ECHO_T}buggy" >&6; }
18154 buggygetaddrinfo=yes
18156 cat >conftest.$ac_ext <<_ACEOF
18159 cat confdefs.h >>conftest.$ac_ext
18160 cat >>conftest.$ac_ext <<_ACEOF
18161 /* end confdefs.h. */
18163 #include <sys/types.h>
18165 #include <string.h>
18166 #include <sys/socket.h>
18167 #include <netinet/in.h>
18171 int passive, gaierr, inet4 = 0, inet6 = 0;
18172 struct addrinfo hints, *ai, *aitop;
18173 char straddr[INET6_ADDRSTRLEN], strport[16];
18175 for (passive = 0; passive <= 1; passive++) {
18176 memset(&hints, 0, sizeof(hints));
18177 hints.ai_family = AF_UNSPEC;
18178 hints.ai_flags = passive ? AI_PASSIVE : 0;
18179 hints.ai_socktype = SOCK_STREAM;
18180 hints.ai_protocol = IPPROTO_TCP;
18181 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
18182 (void)gai_strerror(gaierr);
18185 for (ai = aitop; ai; ai = ai->ai_next) {
18186 if (ai->ai_addr == NULL ||
18187 ai->ai_addrlen == 0 ||
18188 getnameinfo(ai->ai_addr, ai->ai_addrlen,
18189 straddr, sizeof(straddr), strport, sizeof(strport),
18190 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
18193 switch (ai->ai_family) {
18195 if (strcmp(strport, "54321") != 0) {
18199 if (strcmp(straddr, "0.0.0.0") != 0) {
18203 if (strcmp(straddr, "127.0.0.1") != 0) {
18210 if (strcmp(strport, "54321") != 0) {
18214 if (strcmp(straddr, "::") != 0) {
18218 if (strcmp(straddr, "::1") != 0) {
18228 /* another family support? */
18234 if (!(inet4 == 0 || inet4 == 2))
18236 if (!(inet6 == 0 || inet6 == 2))
18240 freeaddrinfo(aitop);
18245 freeaddrinfo(aitop);
18250 rm -f conftest$ac_exeext
18251 if { (ac_try="$ac_link"
18252 case "(($ac_try" in
18253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18254 *) ac_try_echo=$ac_try;;
18256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18257 (eval "$ac_link") 2>&5
18259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18260 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
18261 { (case "(($ac_try" in
18262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18263 *) ac_try_echo=$ac_try;;
18265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18266 (eval "$ac_try") 2>&5
18268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18269 (exit $ac_status); }; }; then
18270 { echo "$as_me:$LINENO: result: good" >&5
18271 echo "${ECHO_T}good" >&6; }
18272 buggygetaddrinfo=no
18274 echo "$as_me: program exited with status $ac_status" >&5
18275 echo "$as_me: failed program was:" >&5
18276 sed 's
/^
/|
/' conftest.$ac_ext >&5
18278 ( exit $ac_status )
18279 { echo "$as_me:$LINENO: result: buggy" >&5
18280 echo "${ECHO_T}buggy" >&6; }
18281 buggygetaddrinfo=yes
18283 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18288 echo "$as_me: failed program was:" >&5
18289 sed 's
/^
/|
/' conftest.$ac_ext >&5
18292 { echo "$as_me:$LINENO: result: no" >&5
18293 echo "${ECHO_T}no" >&6; }
18294 buggygetaddrinfo=yes
18298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18299 conftest$ac_exeext conftest.$ac_ext
18301 if test "$buggygetaddrinfo" = "yes"; then
18302 if test "$ipv6" = "yes"; then
18303 echo 'Fatal
: You must get working getaddrinfo
() function.
'
18304 echo ' or you can specify
"--disable-ipv6"'.
18309 cat >>confdefs.h <<\_ACEOF
18310 #define HAVE_GETADDRINFO 1
18315 for ac_func in getnameinfo
18317 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18318 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18319 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18320 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18321 echo $ECHO_N "(cached) $ECHO_C" >&6
18323 cat >conftest.$ac_ext <<_ACEOF
18326 cat confdefs.h >>conftest.$ac_ext
18327 cat >>conftest.$ac_ext <<_ACEOF
18328 /* end confdefs.h. */
18329 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18330 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18331 #define $ac_func innocuous_$ac_func
18333 /* System header to define __stub macros and hopefully few prototypes,
18334 which can conflict with char $ac_func (); below.
18335 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18336 <limits.h> exists even on freestanding compilers. */
18339 # include <limits.h>
18341 # include <assert.h>
18346 /* Override any GCC internal prototype to avoid an error.
18347 Use char because int might match the return type of a GCC
18348 builtin and then its argument prototype would still apply. */
18353 /* The GNU C library defines this for functions which it implements
18354 to always fail with ENOSYS. Some functions are actually named
18355 something starting with __ and the normal name is an alias. */
18356 #if defined __stub_$ac_func || defined __stub___$ac_func
18363 return $ac_func ();
18368 rm -f conftest.$ac_objext conftest$ac_exeext
18369 if { (ac_try="$ac_link"
18370 case "(($ac_try" in
18371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18372 *) ac_try_echo=$ac_try;;
18374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18375 (eval "$ac_link") 2>conftest.er1
18377 grep -v '^
*+' conftest.er1 >conftest.err
18379 cat conftest.err >&5
18380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18381 (exit $ac_status); } && {
18382 test -z "$ac_c_werror_flag" ||
18383 test ! -s conftest.err
18384 } && test -s conftest$ac_exeext &&
18385 $as_test_x conftest$ac_exeext; then
18386 eval "$as_ac_var=yes"
18388 echo "$as_me: failed program was:" >&5
18389 sed 's
/^
/|
/' conftest.$ac_ext >&5
18391 eval "$as_ac_var=no"
18394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18395 conftest$ac_exeext conftest.$ac_ext
18397 ac_res=`eval echo '${'$as_ac_var'}'`
18398 { echo "$as_me:$LINENO: result: $ac_res" >&5
18399 echo "${ECHO_T}$ac_res" >&6; }
18400 if test `eval echo '${'$as_ac_var'}'` = yes; then
18401 cat >>confdefs.h <<_ACEOF
18402 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18409 # checks for structures
18410 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
18411 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
18412 if test "${ac_cv_header_time+set}" = set; then
18413 echo $ECHO_N "(cached) $ECHO_C" >&6
18415 cat >conftest.$ac_ext <<_ACEOF
18418 cat confdefs.h >>conftest.$ac_ext
18419 cat >>conftest.$ac_ext <<_ACEOF
18420 /* end confdefs.h. */
18421 #include <sys/types.h>
18422 #include <sys/time.h>
18428 if ((struct tm *) 0)
18434 rm -f conftest.$ac_objext
18435 if { (ac_try="$ac_compile"
18436 case "(($ac_try" in
18437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18438 *) ac_try_echo=$ac_try;;
18440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18441 (eval "$ac_compile") 2>conftest.er1
18443 grep -v '^
*+' conftest.er1 >conftest.err
18445 cat conftest.err >&5
18446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18447 (exit $ac_status); } && {
18448 test -z "$ac_c_werror_flag" ||
18449 test ! -s conftest.err
18450 } && test -s conftest.$ac_objext; then
18451 ac_cv_header_time=yes
18453 echo "$as_me: failed program was:" >&5
18454 sed 's
/^
/|
/' conftest.$ac_ext >&5
18456 ac_cv_header_time=no
18459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18461 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
18462 echo "${ECHO_T}$ac_cv_header_time" >&6; }
18463 if test $ac_cv_header_time = yes; then
18465 cat >>confdefs.h <<\_ACEOF
18466 #define TIME_WITH_SYS_TIME 1
18471 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
18472 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
18473 if test "${ac_cv_struct_tm+set}" = set; then
18474 echo $ECHO_N "(cached) $ECHO_C" >&6
18476 cat >conftest.$ac_ext <<_ACEOF
18479 cat confdefs.h >>conftest.$ac_ext
18480 cat >>conftest.$ac_ext <<_ACEOF
18481 /* end confdefs.h. */
18482 #include <sys/types.h>
18489 int *p = &tm.tm_sec;
18495 rm -f conftest.$ac_objext
18496 if { (ac_try="$ac_compile"
18497 case "(($ac_try" in
18498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18499 *) ac_try_echo=$ac_try;;
18501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18502 (eval "$ac_compile") 2>conftest.er1
18504 grep -v '^
*+' conftest.er1 >conftest.err
18506 cat conftest.err >&5
18507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18508 (exit $ac_status); } && {
18509 test -z "$ac_c_werror_flag" ||
18510 test ! -s conftest.err
18511 } && test -s conftest.$ac_objext; then
18512 ac_cv_struct_tm=time.h
18514 echo "$as_me: failed program was:" >&5
18515 sed 's
/^
/|
/' conftest.$ac_ext >&5
18517 ac_cv_struct_tm=sys/time.h
18520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18522 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
18523 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
18524 if test $ac_cv_struct_tm = sys/time.h; then
18526 cat >>confdefs.h <<\_ACEOF
18527 #define TM_IN_SYS_TIME 1
18532 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
18533 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
18534 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
18535 echo $ECHO_N "(cached) $ECHO_C" >&6
18537 cat >conftest.$ac_ext <<_ACEOF
18540 cat confdefs.h >>conftest.$ac_ext
18541 cat >>conftest.$ac_ext <<_ACEOF
18542 /* end confdefs.h. */
18543 #include <sys/types.h>
18544 #include <$ac_cv_struct_tm>
18550 static struct tm ac_aggr;
18551 if (ac_aggr.tm_zone)
18557 rm -f conftest.$ac_objext
18558 if { (ac_try="$ac_compile"
18559 case "(($ac_try" in
18560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18561 *) ac_try_echo=$ac_try;;
18563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18564 (eval "$ac_compile") 2>conftest.er1
18566 grep -v '^
*+' conftest.er1 >conftest.err
18568 cat conftest.err >&5
18569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18570 (exit $ac_status); } && {
18571 test -z "$ac_c_werror_flag" ||
18572 test ! -s conftest.err
18573 } && test -s conftest.$ac_objext; then
18574 ac_cv_member_struct_tm_tm_zone=yes
18576 echo "$as_me: failed program was:" >&5
18577 sed 's
/^
/|
/' conftest.$ac_ext >&5
18579 cat >conftest.$ac_ext <<_ACEOF
18582 cat confdefs.h >>conftest.$ac_ext
18583 cat >>conftest.$ac_ext <<_ACEOF
18584 /* end confdefs.h. */
18585 #include <sys/types.h>
18586 #include <$ac_cv_struct_tm>
18592 static struct tm ac_aggr;
18593 if (sizeof ac_aggr.tm_zone)
18599 rm -f conftest.$ac_objext
18600 if { (ac_try="$ac_compile"
18601 case "(($ac_try" in
18602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18603 *) ac_try_echo=$ac_try;;
18605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18606 (eval "$ac_compile") 2>conftest.er1
18608 grep -v '^
*+' conftest.er1 >conftest.err
18610 cat conftest.err >&5
18611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18612 (exit $ac_status); } && {
18613 test -z "$ac_c_werror_flag" ||
18614 test ! -s conftest.err
18615 } && test -s conftest.$ac_objext; then
18616 ac_cv_member_struct_tm_tm_zone=yes
18618 echo "$as_me: failed program was:" >&5
18619 sed 's
/^
/|
/' conftest.$ac_ext >&5
18621 ac_cv_member_struct_tm_tm_zone=no
18624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18629 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
18630 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
18631 if test $ac_cv_member_struct_tm_tm_zone = yes; then
18633 cat >>confdefs.h <<_ACEOF
18634 #define HAVE_STRUCT_TM_TM_ZONE 1
18640 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
18642 cat >>confdefs.h <<\_ACEOF
18643 #define HAVE_TM_ZONE 1
18647 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
18648 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
18649 if test "${ac_cv_have_decl_tzname+set}" = set; then
18650 echo $ECHO_N "(cached) $ECHO_C" >&6
18652 cat >conftest.$ac_ext <<_ACEOF
18655 cat confdefs.h >>conftest.$ac_ext
18656 cat >>conftest.$ac_ext <<_ACEOF
18657 /* end confdefs.h. */
18671 rm -f conftest.$ac_objext
18672 if { (ac_try="$ac_compile"
18673 case "(($ac_try" in
18674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18675 *) ac_try_echo=$ac_try;;
18677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18678 (eval "$ac_compile") 2>conftest.er1
18680 grep -v '^
*+' conftest.er1 >conftest.err
18682 cat conftest.err >&5
18683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18684 (exit $ac_status); } && {
18685 test -z "$ac_c_werror_flag" ||
18686 test ! -s conftest.err
18687 } && test -s conftest.$ac_objext; then
18688 ac_cv_have_decl_tzname=yes
18690 echo "$as_me: failed program was:" >&5
18691 sed 's
/^
/|
/' conftest.$ac_ext >&5
18693 ac_cv_have_decl_tzname=no
18696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18698 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
18699 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
18700 if test $ac_cv_have_decl_tzname = yes; then
18702 cat >>confdefs.h <<_ACEOF
18703 #define HAVE_DECL_TZNAME 1
18708 cat >>confdefs.h <<_ACEOF
18709 #define HAVE_DECL_TZNAME 0
18716 { echo "$as_me:$LINENO: checking for tzname" >&5
18717 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
18718 if test "${ac_cv_var_tzname+set}" = set; then
18719 echo $ECHO_N "(cached) $ECHO_C" >&6
18721 cat >conftest.$ac_ext <<_ACEOF
18724 cat confdefs.h >>conftest.$ac_ext
18725 cat >>conftest.$ac_ext <<_ACEOF
18726 /* end confdefs.h. */
18728 #if !HAVE_DECL_TZNAME
18729 extern char *tzname[];
18735 return tzname[0][0];
18740 rm -f conftest.$ac_objext conftest$ac_exeext
18741 if { (ac_try="$ac_link"
18742 case "(($ac_try" in
18743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18744 *) ac_try_echo=$ac_try;;
18746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18747 (eval "$ac_link") 2>conftest.er1
18749 grep -v '^
*+' conftest.er1 >conftest.err
18751 cat conftest.err >&5
18752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18753 (exit $ac_status); } && {
18754 test -z "$ac_c_werror_flag" ||
18755 test ! -s conftest.err
18756 } && test -s conftest$ac_exeext &&
18757 $as_test_x conftest$ac_exeext; then
18758 ac_cv_var_tzname=yes
18760 echo "$as_me: failed program was:" >&5
18761 sed 's
/^
/|
/' conftest.$ac_ext >&5
18763 ac_cv_var_tzname=no
18766 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18767 conftest$ac_exeext conftest.$ac_ext
18769 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
18770 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
18771 if test $ac_cv_var_tzname = yes; then
18773 cat >>confdefs.h <<\_ACEOF
18774 #define HAVE_TZNAME 1
18780 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
18781 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
18782 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
18783 echo $ECHO_N "(cached) $ECHO_C" >&6
18785 cat >conftest.$ac_ext <<_ACEOF
18788 cat confdefs.h >>conftest.$ac_ext
18789 cat >>conftest.$ac_ext <<_ACEOF
18790 /* end confdefs.h. */
18791 $ac_includes_default
18795 static struct stat ac_aggr;
18796 if (ac_aggr.st_rdev)
18802 rm -f conftest.$ac_objext
18803 if { (ac_try="$ac_compile"
18804 case "(($ac_try" in
18805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18806 *) ac_try_echo=$ac_try;;
18808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18809 (eval "$ac_compile") 2>conftest.er1
18811 grep -v '^
*+' conftest.er1 >conftest.err
18813 cat conftest.err >&5
18814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18815 (exit $ac_status); } && {
18816 test -z "$ac_c_werror_flag" ||
18817 test ! -s conftest.err
18818 } && test -s conftest.$ac_objext; then
18819 ac_cv_member_struct_stat_st_rdev=yes
18821 echo "$as_me: failed program was:" >&5
18822 sed 's
/^
/|
/' conftest.$ac_ext >&5
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 (sizeof ac_aggr.st_rdev)
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_rdev=yes
18860 echo "$as_me: failed program was:" >&5
18861 sed 's
/^
/|
/' conftest.$ac_ext >&5
18863 ac_cv_member_struct_stat_st_rdev=no
18866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18871 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
18872 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
18873 if test $ac_cv_member_struct_stat_st_rdev = yes; then
18875 cat >>confdefs.h <<_ACEOF
18876 #define HAVE_STRUCT_STAT_ST_RDEV 1
18882 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
18883 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
18884 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
18885 echo $ECHO_N "(cached) $ECHO_C" >&6
18887 cat >conftest.$ac_ext <<_ACEOF
18890 cat confdefs.h >>conftest.$ac_ext
18891 cat >>conftest.$ac_ext <<_ACEOF
18892 /* end confdefs.h. */
18893 $ac_includes_default
18897 static struct stat ac_aggr;
18898 if (ac_aggr.st_blksize)
18904 rm -f conftest.$ac_objext
18905 if { (ac_try="$ac_compile"
18906 case "(($ac_try" in
18907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18908 *) ac_try_echo=$ac_try;;
18910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18911 (eval "$ac_compile") 2>conftest.er1
18913 grep -v '^
*+' conftest.er1 >conftest.err
18915 cat conftest.err >&5
18916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18917 (exit $ac_status); } && {
18918 test -z "$ac_c_werror_flag" ||
18919 test ! -s conftest.err
18920 } && test -s conftest.$ac_objext; then
18921 ac_cv_member_struct_stat_st_blksize=yes
18923 echo "$as_me: failed program was:" >&5
18924 sed 's
/^
/|
/' conftest.$ac_ext >&5
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 (sizeof ac_aggr.st_blksize)
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_blksize=yes
18962 echo "$as_me: failed program was:" >&5
18963 sed 's
/^
/|
/' conftest.$ac_ext >&5
18965 ac_cv_member_struct_stat_st_blksize=no
18968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18973 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
18974 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
18975 if test $ac_cv_member_struct_stat_st_blksize = yes; then
18977 cat >>confdefs.h <<_ACEOF
18978 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
18984 { echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5
18985 echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6; }
18986 if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then
18987 echo $ECHO_N "(cached) $ECHO_C" >&6
18989 cat >conftest.$ac_ext <<_ACEOF
18992 cat confdefs.h >>conftest.$ac_ext
18993 cat >>conftest.$ac_ext <<_ACEOF
18994 /* end confdefs.h. */
18995 $ac_includes_default
18999 static struct stat ac_aggr;
19000 if (ac_aggr.st_flags)
19006 rm -f conftest.$ac_objext
19007 if { (ac_try="$ac_compile"
19008 case "(($ac_try" in
19009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19010 *) ac_try_echo=$ac_try;;
19012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19013 (eval "$ac_compile") 2>conftest.er1
19015 grep -v '^
*+' conftest.er1 >conftest.err
19017 cat conftest.err >&5
19018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19019 (exit $ac_status); } && {
19020 test -z "$ac_c_werror_flag" ||
19021 test ! -s conftest.err
19022 } && test -s conftest.$ac_objext; then
19023 ac_cv_member_struct_stat_st_flags=yes
19025 echo "$as_me: failed program was:" >&5
19026 sed 's
/^
/|
/' conftest.$ac_ext >&5
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 (sizeof ac_aggr.st_flags)
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_flags=yes
19064 echo "$as_me: failed program was:" >&5
19065 sed 's
/^
/|
/' conftest.$ac_ext >&5
19067 ac_cv_member_struct_stat_st_flags=no
19070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19075 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5
19076 echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6; }
19077 if test $ac_cv_member_struct_stat_st_flags = yes; then
19079 cat >>confdefs.h <<_ACEOF
19080 #define HAVE_STRUCT_STAT_ST_FLAGS 1
19086 { echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5
19087 echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6; }
19088 if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then
19089 echo $ECHO_N "(cached) $ECHO_C" >&6
19091 cat >conftest.$ac_ext <<_ACEOF
19094 cat confdefs.h >>conftest.$ac_ext
19095 cat >>conftest.$ac_ext <<_ACEOF
19096 /* end confdefs.h. */
19097 $ac_includes_default
19101 static struct stat ac_aggr;
19102 if (ac_aggr.st_gen)
19108 rm -f conftest.$ac_objext
19109 if { (ac_try="$ac_compile"
19110 case "(($ac_try" in
19111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19112 *) ac_try_echo=$ac_try;;
19114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19115 (eval "$ac_compile") 2>conftest.er1
19117 grep -v '^
*+' conftest.er1 >conftest.err
19119 cat conftest.err >&5
19120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19121 (exit $ac_status); } && {
19122 test -z "$ac_c_werror_flag" ||
19123 test ! -s conftest.err
19124 } && test -s conftest.$ac_objext; then
19125 ac_cv_member_struct_stat_st_gen=yes
19127 echo "$as_me: failed program was:" >&5
19128 sed 's
/^
/|
/' conftest.$ac_ext >&5
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 (sizeof ac_aggr.st_gen)
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_gen=yes
19166 echo "$as_me: failed program was:" >&5
19167 sed 's
/^
/|
/' conftest.$ac_ext >&5
19169 ac_cv_member_struct_stat_st_gen=no
19172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19177 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5
19178 echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6; }
19179 if test $ac_cv_member_struct_stat_st_gen = yes; then
19181 cat >>confdefs.h <<_ACEOF
19182 #define HAVE_STRUCT_STAT_ST_GEN 1
19188 { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5
19189 echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; }
19190 if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then
19191 echo $ECHO_N "(cached) $ECHO_C" >&6
19193 cat >conftest.$ac_ext <<_ACEOF
19196 cat confdefs.h >>conftest.$ac_ext
19197 cat >>conftest.$ac_ext <<_ACEOF
19198 /* end confdefs.h. */
19199 $ac_includes_default
19203 static struct stat ac_aggr;
19204 if (ac_aggr.st_birthtime)
19210 rm -f conftest.$ac_objext
19211 if { (ac_try="$ac_compile"
19212 case "(($ac_try" in
19213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19214 *) ac_try_echo=$ac_try;;
19216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19217 (eval "$ac_compile") 2>conftest.er1
19219 grep -v '^
*+' conftest.er1 >conftest.err
19221 cat conftest.err >&5
19222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223 (exit $ac_status); } && {
19224 test -z "$ac_c_werror_flag" ||
19225 test ! -s conftest.err
19226 } && test -s conftest.$ac_objext; then
19227 ac_cv_member_struct_stat_st_birthtime=yes
19229 echo "$as_me: failed program was:" >&5
19230 sed 's
/^
/|
/' conftest.$ac_ext >&5
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 (sizeof ac_aggr.st_birthtime)
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_birthtime=yes
19268 echo "$as_me: failed program was:" >&5
19269 sed 's
/^
/|
/' conftest.$ac_ext >&5
19271 ac_cv_member_struct_stat_st_birthtime=no
19274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19279 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5
19280 echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; }
19281 if test $ac_cv_member_struct_stat_st_birthtime = yes; then
19283 cat >>confdefs.h <<_ACEOF
19284 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
19290 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
19291 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
19292 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
19293 echo $ECHO_N "(cached) $ECHO_C" >&6
19295 cat >conftest.$ac_ext <<_ACEOF
19298 cat confdefs.h >>conftest.$ac_ext
19299 cat >>conftest.$ac_ext <<_ACEOF
19300 /* end confdefs.h. */
19301 $ac_includes_default
19305 static struct stat ac_aggr;
19306 if (ac_aggr.st_blocks)
19312 rm -f conftest.$ac_objext
19313 if { (ac_try="$ac_compile"
19314 case "(($ac_try" in
19315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19316 *) ac_try_echo=$ac_try;;
19318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19319 (eval "$ac_compile") 2>conftest.er1
19321 grep -v '^
*+' conftest.er1 >conftest.err
19323 cat conftest.err >&5
19324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19325 (exit $ac_status); } && {
19326 test -z "$ac_c_werror_flag" ||
19327 test ! -s conftest.err
19328 } && test -s conftest.$ac_objext; then
19329 ac_cv_member_struct_stat_st_blocks=yes
19331 echo "$as_me: failed program was:" >&5
19332 sed 's
/^
/|
/' conftest.$ac_ext >&5
19334 cat >conftest.$ac_ext <<_ACEOF
19337 cat confdefs.h >>conftest.$ac_ext
19338 cat >>conftest.$ac_ext <<_ACEOF
19339 /* end confdefs.h. */
19340 $ac_includes_default
19344 static struct stat ac_aggr;
19345 if (sizeof ac_aggr.st_blocks)
19351 rm -f conftest.$ac_objext
19352 if { (ac_try="$ac_compile"
19353 case "(($ac_try" in
19354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19355 *) ac_try_echo=$ac_try;;
19357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19358 (eval "$ac_compile") 2>conftest.er1
19360 grep -v '^
*+' conftest.er1 >conftest.err
19362 cat conftest.err >&5
19363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364 (exit $ac_status); } && {
19365 test -z "$ac_c_werror_flag" ||
19366 test ! -s conftest.err
19367 } && test -s conftest.$ac_objext; then
19368 ac_cv_member_struct_stat_st_blocks=yes
19370 echo "$as_me: failed program was:" >&5
19371 sed 's
/^
/|
/' conftest.$ac_ext >&5
19373 ac_cv_member_struct_stat_st_blocks=no
19376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19381 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
19382 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
19383 if test $ac_cv_member_struct_stat_st_blocks = yes; then
19385 cat >>confdefs.h <<_ACEOF
19386 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
19390 cat >>confdefs.h <<\_ACEOF
19391 #define HAVE_ST_BLOCKS 1
19395 case " $LIBOBJS " in
19396 *" fileblocks.$ac_objext "* ) ;;
19397 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
19405 { echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5
19406 echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6; }
19407 if test "${ac_cv_header_time_altzone+set}" = set; then
19408 echo $ECHO_N "(cached) $ECHO_C" >&6
19410 cat >conftest.$ac_ext <<_ACEOF
19413 cat confdefs.h >>conftest.$ac_ext
19414 cat >>conftest.$ac_ext <<_ACEOF
19415 /* end confdefs.h. */
19425 rm -f conftest.$ac_objext
19426 if { (ac_try="$ac_compile"
19427 case "(($ac_try" in
19428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19429 *) ac_try_echo=$ac_try;;
19431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19432 (eval "$ac_compile") 2>conftest.er1
19434 grep -v '^
*+' conftest.er1 >conftest.err
19436 cat conftest.err >&5
19437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19438 (exit $ac_status); } && {
19439 test -z "$ac_c_werror_flag" ||
19440 test ! -s conftest.err
19441 } && test -s conftest.$ac_objext; then
19442 ac_cv_header_time_altzone=yes
19444 echo "$as_me: failed program was:" >&5
19445 sed 's
/^
/|
/' conftest.$ac_ext >&5
19447 ac_cv_header_time_altzone=no
19450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19453 { echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5
19454 echo "${ECHO_T}$ac_cv_header_time_altzone" >&6; }
19455 if test $ac_cv_header_time_altzone = yes; then
19457 cat >>confdefs.h <<\_ACEOF
19458 #define HAVE_ALTZONE 1
19464 { echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
19465 echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6; }
19466 cat >conftest.$ac_ext <<_ACEOF
19469 cat confdefs.h >>conftest.$ac_ext
19470 cat >>conftest.$ac_ext <<_ACEOF
19471 /* end confdefs.h. */
19473 #include <sys/types.h>
19474 #include <sys/select.h>
19475 #include <sys/time.h>
19485 rm -f conftest.$ac_objext
19486 if { (ac_try="$ac_compile"
19487 case "(($ac_try" in
19488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19489 *) ac_try_echo=$ac_try;;
19491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19492 (eval "$ac_compile") 2>conftest.er1
19494 grep -v '^
*+' conftest.er1 >conftest.err
19496 cat conftest.err >&5
19497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19498 (exit $ac_status); } && {
19499 test -z "$ac_c_werror_flag" ||
19500 test ! -s conftest.err
19501 } && test -s conftest.$ac_objext; then
19504 cat >>confdefs.h <<\_ACEOF
19505 #define SYS_SELECT_WITH_SYS_TIME 1
19511 echo "$as_me: failed program was:" >&5
19512 sed 's
/^
/|
/' conftest.$ac_ext >&5
19517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19518 { echo "$as_me:$LINENO: result: $was_it_defined" >&5
19519 echo "${ECHO_T}$was_it_defined" >&6; }
19521 { echo "$as_me:$LINENO: checking for addrinfo" >&5
19522 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6; }
19523 if test "${ac_cv_struct_addrinfo+set}" = set; then
19524 echo $ECHO_N "(cached) $ECHO_C" >&6
19526 cat >conftest.$ac_ext <<_ACEOF
19529 cat confdefs.h >>conftest.$ac_ext
19530 cat >>conftest.$ac_ext <<_ACEOF
19531 /* end confdefs.h. */
19533 # include <netdb.h>
19542 rm -f conftest.$ac_objext
19543 if { (ac_try="$ac_compile"
19544 case "(($ac_try" in
19545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19546 *) ac_try_echo=$ac_try;;
19548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19549 (eval "$ac_compile") 2>conftest.er1
19551 grep -v '^
*+' conftest.er1 >conftest.err
19553 cat conftest.err >&5
19554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19555 (exit $ac_status); } && {
19556 test -z "$ac_c_werror_flag" ||
19557 test ! -s conftest.err
19558 } && test -s conftest.$ac_objext; then
19559 ac_cv_struct_addrinfo=yes
19561 echo "$as_me: failed program was:" >&5
19562 sed 's
/^
/|
/' conftest.$ac_ext >&5
19564 ac_cv_struct_addrinfo=no
19567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19570 { echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5
19571 echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6; }
19572 if test $ac_cv_struct_addrinfo = yes; then
19574 cat >>confdefs.h <<\_ACEOF
19575 #define HAVE_ADDRINFO 1
19580 { echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
19581 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6; }
19582 if test "${ac_cv_struct_sockaddr_storage+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. */
19592 # include <sys/types.h>
19593 # include <sys/socket.h>
19597 struct sockaddr_storage s
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_struct_sockaddr_storage=yes
19621 echo "$as_me: failed program was:" >&5
19622 sed 's
/^
/|
/' conftest.$ac_ext >&5
19624 ac_cv_struct_sockaddr_storage=no
19627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19630 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5
19631 echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6; }
19632 if test $ac_cv_struct_sockaddr_storage = yes; then
19634 cat >>confdefs.h <<\_ACEOF
19635 #define HAVE_SOCKADDR_STORAGE 1
19640 # checks for compiler characteristics
19643 { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
19644 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
19645 if test "${ac_cv_c_char_unsigned+set}" = set; then
19646 echo $ECHO_N "(cached) $ECHO_C" >&6
19648 cat >conftest.$ac_ext <<_ACEOF
19651 cat confdefs.h >>conftest.$ac_ext
19652 cat >>conftest.$ac_ext <<_ACEOF
19653 /* end confdefs.h. */
19654 $ac_includes_default
19658 static int test_array [1 - 2 * !(((char) -1) < 0)];
19665 rm -f conftest.$ac_objext
19666 if { (ac_try="$ac_compile"
19667 case "(($ac_try" in
19668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19669 *) ac_try_echo=$ac_try;;
19671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19672 (eval "$ac_compile") 2>conftest.er1
19674 grep -v '^
*+' conftest.er1 >conftest.err
19676 cat conftest.err >&5
19677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19678 (exit $ac_status); } && {
19679 test -z "$ac_c_werror_flag" ||
19680 test ! -s conftest.err
19681 } && test -s conftest.$ac_objext; then
19682 ac_cv_c_char_unsigned=no
19684 echo "$as_me: failed program was:" >&5
19685 sed 's
/^
/|
/' conftest.$ac_ext >&5
19687 ac_cv_c_char_unsigned=yes
19690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19692 { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
19693 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
19694 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
19695 cat >>confdefs.h <<\_ACEOF
19696 #define __CHAR_UNSIGNED__ 1
19701 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19702 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
19703 if test "${ac_cv_c_const+set}" = set; then
19704 echo $ECHO_N "(cached) $ECHO_C" >&6
19706 cat >conftest.$ac_ext <<_ACEOF
19709 cat confdefs.h >>conftest.$ac_ext
19710 cat >>conftest.$ac_ext <<_ACEOF
19711 /* end confdefs.h. */
19716 /* FIXME: Include the comments suggested by Paul. */
19717 #ifndef __cplusplus
19718 /* Ultrix mips cc rejects this. */
19719 typedef int charset[2];
19721 /* SunOS 4.1.1 cc rejects this. */
19722 char const *const *pcpcc;
19724 /* NEC SVR4.0.2 mips cc rejects this. */
19725 struct point {int x, y;};
19726 static struct point const zero = {0,0};
19727 /* AIX XL C 1.02.0.0 rejects this.
19728 It does not let you subtract one const X* pointer from another in
19729 an arm of an if-expression whose if-part is not a constant
19731 const char *g = "string";
19732 pcpcc = &g + (g ? g-g : 0);
19733 /* HPUX 7.0 cc rejects these. */
19735 ppc = (char**) pcpcc;
19736 pcpcc = (char const *const *) ppc;
19737 { /* SCO 3.2v4 cc rejects this. */
19739 char const *s = 0 ? (char *) 0 : (char const *) 0;
19744 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19745 int x[] = {25, 17};
19746 const int *foo = &x[0];
19749 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19750 typedef const int *iptr;
19754 { /* AIX XL C 1.02.0.0 rejects this saying
19755 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19756 struct s { int j; const int *ap[3]; };
19757 struct s *b; b->j = 5;
19759 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19760 const int foo = 10;
19761 if (!foo) return 0;
19763 return !cs[0] && !zero.x;
19770 rm -f conftest.$ac_objext
19771 if { (ac_try="$ac_compile"
19772 case "(($ac_try" in
19773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19774 *) ac_try_echo=$ac_try;;
19776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19777 (eval "$ac_compile") 2>conftest.er1
19779 grep -v '^
*+' conftest.er1 >conftest.err
19781 cat conftest.err >&5
19782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19783 (exit $ac_status); } && {
19784 test -z "$ac_c_werror_flag" ||
19785 test ! -s conftest.err
19786 } && test -s conftest.$ac_objext; then
19789 echo "$as_me: failed program was:" >&5
19790 sed 's
/^
/|
/' conftest.$ac_ext >&5
19795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19797 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19798 echo "${ECHO_T}$ac_cv_c_const" >&6; }
19799 if test $ac_cv_c_const = no; then
19801 cat >>confdefs.h <<\_ACEOF
19809 { echo "$as_me:$LINENO: checking for working volatile" >&5
19810 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
19811 cat >conftest.$ac_ext <<_ACEOF
19814 cat confdefs.h >>conftest.$ac_ext
19815 cat >>conftest.$ac_ext <<_ACEOF
19816 /* end confdefs.h. */
19821 volatile int x; x = 0;
19826 rm -f conftest.$ac_objext
19827 if { (ac_try="$ac_compile"
19828 case "(($ac_try" in
19829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19830 *) ac_try_echo=$ac_try;;
19832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19833 (eval "$ac_compile") 2>conftest.er1
19835 grep -v '^
*+' conftest.er1 >conftest.err
19837 cat conftest.err >&5
19838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19839 (exit $ac_status); } && {
19840 test -z "$ac_c_werror_flag" ||
19841 test ! -s conftest.err
19842 } && test -s conftest.$ac_objext; then
19845 echo "$as_me: failed program was:" >&5
19846 sed 's
/^
/|
/' conftest.$ac_ext >&5
19849 cat >>confdefs.h <<\_ACEOF
19856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19857 { echo "$as_me:$LINENO: result: $works" >&5
19858 echo "${ECHO_T}$works" >&6; }
19861 { echo "$as_me:$LINENO: checking for working signed char" >&5
19862 echo $ECHO_N "checking for working signed char... $ECHO_C" >&6; }
19863 cat >conftest.$ac_ext <<_ACEOF
19866 cat confdefs.h >>conftest.$ac_ext
19867 cat >>conftest.$ac_ext <<_ACEOF
19868 /* end confdefs.h. */
19878 rm -f conftest.$ac_objext
19879 if { (ac_try="$ac_compile"
19880 case "(($ac_try" in
19881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19882 *) ac_try_echo=$ac_try;;
19884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19885 (eval "$ac_compile") 2>conftest.er1
19887 grep -v '^
*+' conftest.er1 >conftest.err
19889 cat conftest.err >&5
19890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19891 (exit $ac_status); } && {
19892 test -z "$ac_c_werror_flag" ||
19893 test ! -s conftest.err
19894 } && test -s conftest.$ac_objext; then
19897 echo "$as_me: failed program was:" >&5
19898 sed 's
/^
/|
/' conftest.$ac_ext >&5
19901 cat >>confdefs.h <<\_ACEOF
19908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19909 { echo "$as_me:$LINENO: result: $works" >&5
19910 echo "${ECHO_T}$works" >&6; }
19913 { echo "$as_me:$LINENO: checking for prototypes" >&5
19914 echo $ECHO_N "checking for prototypes... $ECHO_C" >&6; }
19915 cat >conftest.$ac_ext <<_ACEOF
19918 cat confdefs.h >>conftest.$ac_ext
19919 cat >>conftest.$ac_ext <<_ACEOF
19920 /* end confdefs.h. */
19921 int foo(int x) { return 0; }
19930 rm -f conftest.$ac_objext
19931 if { (ac_try="$ac_compile"
19932 case "(($ac_try" in
19933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19934 *) ac_try_echo=$ac_try;;
19936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19937 (eval "$ac_compile") 2>conftest.er1
19939 grep -v '^
*+' conftest.er1 >conftest.err
19941 cat conftest.err >&5
19942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943 (exit $ac_status); } && {
19944 test -z "$ac_c_werror_flag" ||
19945 test ! -s conftest.err
19946 } && test -s conftest.$ac_objext; then
19949 cat >>confdefs.h <<\_ACEOF
19950 #define HAVE_PROTOTYPES 1
19953 have_prototypes=yes
19956 echo "$as_me: failed program was:" >&5
19957 sed 's
/^
/|
/' conftest.$ac_ext >&5
19962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19963 { echo "$as_me:$LINENO: result: $have_prototypes" >&5
19964 echo "${ECHO_T}$have_prototypes" >&6; }
19967 { echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5
19968 echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6; }
19969 cat >conftest.$ac_ext <<_ACEOF
19972 cat confdefs.h >>conftest.$ac_ext
19973 cat >>conftest.$ac_ext <<_ACEOF
19974 /* end confdefs.h. */
19976 #include <stdarg.h>
19977 int foo(int x, ...) {
19981 va_arg(va, char *);
19982 va_arg(va, double);
19989 return foo(10, "", 3.14);
19994 rm -f conftest.$ac_objext
19995 if { (ac_try="$ac_compile"
19996 case "(($ac_try" in
19997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19998 *) ac_try_echo=$ac_try;;
20000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20001 (eval "$ac_compile") 2>conftest.er1
20003 grep -v '^
*+' conftest.er1 >conftest.err
20005 cat conftest.err >&5
20006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20007 (exit $ac_status); } && {
20008 test -z "$ac_c_werror_flag" ||
20009 test ! -s conftest.err
20010 } && test -s conftest.$ac_objext; then
20013 cat >>confdefs.h <<\_ACEOF
20014 #define HAVE_STDARG_PROTOTYPES 1
20020 echo "$as_me: failed program was:" >&5
20021 sed 's
/^
/|
/' conftest.$ac_ext >&5
20026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20027 { echo "$as_me:$LINENO: result: $works" >&5
20028 echo "${ECHO_T}$works" >&6; }
20030 # check for socketpair
20031 { echo "$as_me:$LINENO: checking for socketpair" >&5
20032 echo $ECHO_N "checking for socketpair... $ECHO_C" >&6; }
20033 cat >conftest.$ac_ext <<_ACEOF
20036 cat confdefs.h >>conftest.$ac_ext
20037 cat >>conftest.$ac_ext <<_ACEOF
20038 /* end confdefs.h. */
20040 #include <sys/types.h>
20041 #include <sys/socket.h>
20051 rm -f conftest.$ac_objext
20052 if { (ac_try="$ac_compile"
20053 case "(($ac_try" in
20054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20055 *) ac_try_echo=$ac_try;;
20057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20058 (eval "$ac_compile") 2>conftest.er1
20060 grep -v '^
*+' conftest.er1 >conftest.err
20062 cat conftest.err >&5
20063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20064 (exit $ac_status); } && {
20065 test -z "$ac_c_werror_flag" ||
20066 test ! -s conftest.err
20067 } && test -s conftest.$ac_objext; then
20069 cat >>confdefs.h <<\_ACEOF
20070 #define HAVE_SOCKETPAIR 1
20073 { echo "$as_me:$LINENO: result: yes" >&5
20074 echo "${ECHO_T}yes" >&6; }
20076 echo "$as_me: failed program was:" >&5
20077 sed 's
/^
/|
/' conftest.$ac_ext >&5
20079 { echo "$as_me:$LINENO: result: no" >&5
20080 echo "${ECHO_T}no" >&6; }
20084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20086 # check if sockaddr has sa_len member
20087 { echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5
20088 echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6; }
20089 cat >conftest.$ac_ext <<_ACEOF
20092 cat confdefs.h >>conftest.$ac_ext
20093 cat >>conftest.$ac_ext <<_ACEOF
20094 /* end confdefs.h. */
20095 #include <sys/types.h>
20096 #include <sys/socket.h>
20106 rm -f conftest.$ac_objext
20107 if { (ac_try="$ac_compile"
20108 case "(($ac_try" in
20109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20110 *) ac_try_echo=$ac_try;;
20112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20113 (eval "$ac_compile") 2>conftest.er1
20115 grep -v '^
*+' conftest.er1 >conftest.err
20117 cat conftest.err >&5
20118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20119 (exit $ac_status); } && {
20120 test -z "$ac_c_werror_flag" ||
20121 test ! -s conftest.err
20122 } && test -s conftest.$ac_objext; then
20123 { echo "$as_me:$LINENO: result: yes" >&5
20124 echo "${ECHO_T}yes" >&6; }
20126 cat >>confdefs.h <<\_ACEOF
20127 #define HAVE_SOCKADDR_SA_LEN 1
20131 echo "$as_me: failed program was:" >&5
20132 sed 's
/^
/|
/' conftest.$ac_ext >&5
20134 { echo "$as_me:$LINENO: result: no" >&5
20135 echo "${ECHO_T}no" >&6; }
20138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20140 va_list_is_array=no
20141 { echo "$as_me:$LINENO: checking whether va_list is an array" >&5
20142 echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6; }
20143 cat >conftest.$ac_ext <<_ACEOF
20146 cat confdefs.h >>conftest.$ac_ext
20147 cat >>conftest.$ac_ext <<_ACEOF
20148 /* end confdefs.h. */
20150 #ifdef HAVE_STDARG_PROTOTYPES
20151 #include <stdarg.h>
20153 #include <varargs.h>
20159 va_list list1, list2; list1 = list2;
20164 rm -f conftest.$ac_objext
20165 if { (ac_try="$ac_compile"
20166 case "(($ac_try" in
20167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20168 *) ac_try_echo=$ac_try;;
20170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20171 (eval "$ac_compile") 2>conftest.er1
20173 grep -v '^
*+' conftest.er1 >conftest.err
20175 cat conftest.err >&5
20176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20177 (exit $ac_status); } && {
20178 test -z "$ac_c_werror_flag" ||
20179 test ! -s conftest.err
20180 } && test -s conftest.$ac_objext; then
20183 echo "$as_me: failed program was:" >&5
20184 sed 's
/^
/|
/' conftest.$ac_ext >&5
20188 cat >>confdefs.h <<\_ACEOF
20189 #define VA_LIST_IS_ARRAY 1
20192 va_list_is_array=yes
20196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20197 { echo "$as_me:$LINENO: result: $va_list_is_array" >&5
20198 echo "${ECHO_T}$va_list_is_array" >&6; }
20200 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
20204 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
20205 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
20206 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
20207 echo $ECHO_N "(cached) $ECHO_C" >&6
20209 cat >conftest.$ac_ext <<_ACEOF
20212 cat confdefs.h >>conftest.$ac_ext
20213 cat >>conftest.$ac_ext <<_ACEOF
20214 /* end confdefs.h. */
20215 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
20216 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20217 #define gethostbyname_r innocuous_gethostbyname_r
20219 /* System header to define __stub macros and hopefully few prototypes,
20220 which can conflict with char gethostbyname_r (); below.
20221 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20222 <limits.h> exists even on freestanding compilers. */
20225 # include <limits.h>
20227 # include <assert.h>
20230 #undef gethostbyname_r
20232 /* Override any GCC internal prototype to avoid an error.
20233 Use char because int might match the return type of a GCC
20234 builtin and then its argument prototype would still apply. */
20238 char gethostbyname_r ();
20239 /* The GNU C library defines this for functions which it implements
20240 to always fail with ENOSYS. Some functions are actually named
20241 something starting with __ and the normal name is an alias. */
20242 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
20249 return gethostbyname_r ();
20254 rm -f conftest.$ac_objext conftest$ac_exeext
20255 if { (ac_try="$ac_link"
20256 case "(($ac_try" in
20257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20258 *) ac_try_echo=$ac_try;;
20260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20261 (eval "$ac_link") 2>conftest.er1
20263 grep -v '^
*+' conftest.er1 >conftest.err
20265 cat conftest.err >&5
20266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20267 (exit $ac_status); } && {
20268 test -z "$ac_c_werror_flag" ||
20269 test ! -s conftest.err
20270 } && test -s conftest$ac_exeext &&
20271 $as_test_x conftest$ac_exeext; then
20272 ac_cv_func_gethostbyname_r=yes
20274 echo "$as_me: failed program was:" >&5
20275 sed 's
/^
/|
/' conftest.$ac_ext >&5
20277 ac_cv_func_gethostbyname_r=no
20280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20281 conftest$ac_exeext conftest.$ac_ext
20283 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
20284 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
20285 if test $ac_cv_func_gethostbyname_r = yes; then
20287 cat >>confdefs.h <<\_ACEOF
20288 #define HAVE_GETHOSTBYNAME_R 1
20291 { echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5
20292 echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6; }
20294 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
20295 cat >conftest.$ac_ext <<_ACEOF
20298 cat confdefs.h >>conftest.$ac_ext
20299 cat >>conftest.$ac_ext <<_ACEOF
20300 /* end confdefs.h. */
20302 # include <netdb.h>
20309 struct hostent *he, *res;
20314 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
20320 rm -f conftest.$ac_objext
20321 if { (ac_try="$ac_compile"
20322 case "(($ac_try" in
20323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20324 *) ac_try_echo=$ac_try;;
20326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20327 (eval "$ac_compile") 2>conftest.er1
20329 grep -v '^
*+' conftest.er1 >conftest.err
20331 cat conftest.err >&5
20332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20333 (exit $ac_status); } && {
20334 test -z "$ac_c_werror_flag" ||
20335 test ! -s conftest.err
20336 } && test -s conftest.$ac_objext; then
20338 cat >>confdefs.h <<\_ACEOF
20339 #define HAVE_GETHOSTBYNAME_R 1
20343 cat >>confdefs.h <<\_ACEOF
20344 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
20347 { echo "$as_me:$LINENO: result: yes" >&5
20348 echo "${ECHO_T}yes" >&6; }
20351 echo "$as_me: failed program was:" >&5
20352 sed 's
/^
/|
/' conftest.$ac_ext >&5
20355 { echo "$as_me:$LINENO: result: no" >&5
20356 echo "${ECHO_T}no" >&6; }
20357 { echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5
20358 echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6; }
20359 cat >conftest.$ac_ext <<_ACEOF
20362 cat confdefs.h >>conftest.$ac_ext
20363 cat >>conftest.$ac_ext <<_ACEOF
20364 /* end confdefs.h. */
20366 # include <netdb.h>
20373 struct hostent *he;
20378 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
20384 rm -f conftest.$ac_objext
20385 if { (ac_try="$ac_compile"
20386 case "(($ac_try" in
20387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20388 *) ac_try_echo=$ac_try;;
20390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20391 (eval "$ac_compile") 2>conftest.er1
20393 grep -v '^
*+' conftest.er1 >conftest.err
20395 cat conftest.err >&5
20396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20397 (exit $ac_status); } && {
20398 test -z "$ac_c_werror_flag" ||
20399 test ! -s conftest.err
20400 } && test -s conftest.$ac_objext; then
20402 cat >>confdefs.h <<\_ACEOF
20403 #define HAVE_GETHOSTBYNAME_R 1
20407 cat >>confdefs.h <<\_ACEOF
20408 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
20411 { echo "$as_me:$LINENO: result: yes" >&5
20412 echo "${ECHO_T}yes" >&6; }
20415 echo "$as_me: failed program was:" >&5
20416 sed 's
/^
/|
/' conftest.$ac_ext >&5
20419 { echo "$as_me:$LINENO: result: no" >&5
20420 echo "${ECHO_T}no" >&6; }
20421 { echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5
20422 echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6; }
20423 cat >conftest.$ac_ext <<_ACEOF
20426 cat confdefs.h >>conftest.$ac_ext
20427 cat >>conftest.$ac_ext <<_ACEOF
20428 /* end confdefs.h. */
20430 # include <netdb.h>
20437 struct hostent *he;
20438 struct hostent_data data;
20440 (void) gethostbyname_r(name, he, &data);
20446 rm -f conftest.$ac_objext
20447 if { (ac_try="$ac_compile"
20448 case "(($ac_try" in
20449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20450 *) ac_try_echo=$ac_try;;
20452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20453 (eval "$ac_compile") 2>conftest.er1
20455 grep -v '^
*+' conftest.er1 >conftest.err
20457 cat conftest.err >&5
20458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20459 (exit $ac_status); } && {
20460 test -z "$ac_c_werror_flag" ||
20461 test ! -s conftest.err
20462 } && test -s conftest.$ac_objext; then
20464 cat >>confdefs.h <<\_ACEOF
20465 #define HAVE_GETHOSTBYNAME_R 1
20469 cat >>confdefs.h <<\_ACEOF
20470 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
20473 { echo "$as_me:$LINENO: result: yes" >&5
20474 echo "${ECHO_T}yes" >&6; }
20477 echo "$as_me: failed program was:" >&5
20478 sed 's
/^
/|
/' conftest.$ac_ext >&5
20481 { echo "$as_me:$LINENO: result: no" >&5
20482 echo "${ECHO_T}no" >&6; }
20486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20500 for ac_func in gethostbyname
20502 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20503 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20504 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20505 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20506 echo $ECHO_N "(cached) $ECHO_C" >&6
20508 cat >conftest.$ac_ext <<_ACEOF
20511 cat confdefs.h >>conftest.$ac_ext
20512 cat >>conftest.$ac_ext <<_ACEOF
20513 /* end confdefs.h. */
20514 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20515 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20516 #define $ac_func innocuous_$ac_func
20518 /* System header to define __stub macros and hopefully few prototypes,
20519 which can conflict with char $ac_func (); below.
20520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20521 <limits.h> exists even on freestanding compilers. */
20524 # include <limits.h>
20526 # include <assert.h>
20531 /* Override any GCC internal prototype to avoid an error.
20532 Use char because int might match the return type of a GCC
20533 builtin and then its argument prototype would still apply. */
20538 /* The GNU C library defines this for functions which it implements
20539 to always fail with ENOSYS. Some functions are actually named
20540 something starting with __ and the normal name is an alias. */
20541 #if defined __stub_$ac_func || defined __stub___$ac_func
20548 return $ac_func ();
20553 rm -f conftest.$ac_objext conftest$ac_exeext
20554 if { (ac_try="$ac_link"
20555 case "(($ac_try" in
20556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20557 *) ac_try_echo=$ac_try;;
20559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20560 (eval "$ac_link") 2>conftest.er1
20562 grep -v '^
*+' conftest.er1 >conftest.err
20564 cat conftest.err >&5
20565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20566 (exit $ac_status); } && {
20567 test -z "$ac_c_werror_flag" ||
20568 test ! -s conftest.err
20569 } && test -s conftest$ac_exeext &&
20570 $as_test_x conftest$ac_exeext; then
20571 eval "$as_ac_var=yes"
20573 echo "$as_me: failed program was:" >&5
20574 sed 's
/^
/|
/' conftest.$ac_ext >&5
20576 eval "$as_ac_var=no"
20579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20580 conftest$ac_exeext conftest.$ac_ext
20582 ac_res=`eval echo '${'$as_ac_var'}'`
20583 { echo "$as_me:$LINENO: result: $ac_res" >&5
20584 echo "${ECHO_T}$ac_res" >&6; }
20585 if test `eval echo '${'$as_ac_var'}'` = yes; then
20586 cat >>confdefs.h <<_ACEOF
20587 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20602 # checks for system services
20605 # Linux requires this for correct f.p. operations
20606 { echo "$as_me:$LINENO: checking for __fpu_control" >&5
20607 echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6; }
20608 if test "${ac_cv_func___fpu_control+set}" = set; then
20609 echo $ECHO_N "(cached) $ECHO_C" >&6
20611 cat >conftest.$ac_ext <<_ACEOF
20614 cat confdefs.h >>conftest.$ac_ext
20615 cat >>conftest.$ac_ext <<_ACEOF
20616 /* end confdefs.h. */
20617 /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control.
20618 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20619 #define __fpu_control innocuous___fpu_control
20621 /* System header to define __stub macros and hopefully few prototypes,
20622 which can conflict with char __fpu_control (); below.
20623 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20624 <limits.h> exists even on freestanding compilers. */
20627 # include <limits.h>
20629 # include <assert.h>
20632 #undef __fpu_control
20634 /* Override any GCC internal prototype to avoid an error.
20635 Use char because int might match the return type of a GCC
20636 builtin and then its argument prototype would still apply. */
20640 char __fpu_control ();
20641 /* The GNU C library defines this for functions which it implements
20642 to always fail with ENOSYS. Some functions are actually named
20643 something starting with __ and the normal name is an alias. */
20644 #if defined __stub___fpu_control || defined __stub_____fpu_control
20651 return __fpu_control ();
20656 rm -f conftest.$ac_objext conftest$ac_exeext
20657 if { (ac_try="$ac_link"
20658 case "(($ac_try" in
20659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20660 *) ac_try_echo=$ac_try;;
20662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20663 (eval "$ac_link") 2>conftest.er1
20665 grep -v '^
*+' conftest.er1 >conftest.err
20667 cat conftest.err >&5
20668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669 (exit $ac_status); } && {
20670 test -z "$ac_c_werror_flag" ||
20671 test ! -s conftest.err
20672 } && test -s conftest$ac_exeext &&
20673 $as_test_x conftest$ac_exeext; then
20674 ac_cv_func___fpu_control=yes
20676 echo "$as_me: failed program was:" >&5
20677 sed 's
/^
/|
/' conftest.$ac_ext >&5
20679 ac_cv_func___fpu_control=no
20682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20683 conftest$ac_exeext conftest.$ac_ext
20685 { echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5
20686 echo "${ECHO_T}$ac_cv_func___fpu_control" >&6; }
20687 if test $ac_cv_func___fpu_control = yes; then
20691 { echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5
20692 echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6; }
20693 if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then
20694 echo $ECHO_N "(cached) $ECHO_C" >&6
20696 ac_check_lib_save_LIBS=$LIBS
20697 LIBS="-lieee $LIBS"
20698 cat >conftest.$ac_ext <<_ACEOF
20701 cat confdefs.h >>conftest.$ac_ext
20702 cat >>conftest.$ac_ext <<_ACEOF
20703 /* end confdefs.h. */
20705 /* Override any GCC internal prototype to avoid an error.
20706 Use char because int might match the return type of a GCC
20707 builtin and then its argument prototype would still apply. */
20711 char __fpu_control ();
20715 return __fpu_control ();
20720 rm -f conftest.$ac_objext conftest$ac_exeext
20721 if { (ac_try="$ac_link"
20722 case "(($ac_try" in
20723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20724 *) ac_try_echo=$ac_try;;
20726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20727 (eval "$ac_link") 2>conftest.er1
20729 grep -v '^
*+' conftest.er1 >conftest.err
20731 cat conftest.err >&5
20732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20733 (exit $ac_status); } && {
20734 test -z "$ac_c_werror_flag" ||
20735 test ! -s conftest.err
20736 } && test -s conftest$ac_exeext &&
20737 $as_test_x conftest$ac_exeext; then
20738 ac_cv_lib_ieee___fpu_control=yes
20740 echo "$as_me: failed program was:" >&5
20741 sed 's
/^
/|
/' conftest.$ac_ext >&5
20743 ac_cv_lib_ieee___fpu_control=no
20746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20747 conftest$ac_exeext conftest.$ac_ext
20748 LIBS=$ac_check_lib_save_LIBS
20750 { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5
20751 echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6; }
20752 if test $ac_cv_lib_ieee___fpu_control = yes; then
20753 cat >>confdefs.h <<_ACEOF
20754 #define HAVE_LIBIEEE 1
20757 LIBS="-lieee $LIBS"
20765 # Check for --with-fpectl
20766 { echo "$as_me:$LINENO: checking for --with-fpectl" >&5
20767 echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6; }
20769 # Check whether --with-fpectl was given.
20770 if test "${with_fpectl+set}" = set; then
20771 withval=$with_fpectl;
20772 if test "$withval" != no
20775 cat >>confdefs.h <<\_ACEOF
20776 #define WANT_SIGFPE_HANDLER 1
20779 { echo "$as_me:$LINENO: result: yes" >&5
20780 echo "${ECHO_T}yes" >&6; }
20781 else { echo "$as_me:$LINENO: result: no" >&5
20782 echo "${ECHO_T}no" >&6; }
20785 { echo "$as_me:$LINENO: result: no" >&5
20786 echo "${ECHO_T}no" >&6; }
20790 # check for --with-libm=...
20792 case $ac_sys_system in
20797 { echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5
20798 echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6; }
20800 # Check whether --with-libm was given.
20801 if test "${with_libm+set}" = set; then
20802 withval=$with_libm;
20803 if test "$withval" = no
20805 { echo "$as_me:$LINENO: result: force LIBM empty" >&5
20806 echo "${ECHO_T}force LIBM empty" >&6; }
20807 elif test "$withval" != yes
20809 { echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5
20810 echo "${ECHO_T}set LIBM=\"$withval\"" >&6; }
20811 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
20812 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
20813 { (exit 1); exit 1; }; }
20816 { echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5
20817 echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6; }
20821 # check for --with-libc=...
20823 { echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5
20824 echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6; }
20826 # Check whether --with-libc was given.
20827 if test "${with_libc+set}" = set; then
20828 withval=$with_libc;
20829 if test "$withval" = no
20831 { echo "$as_me:$LINENO: result: force LIBC empty" >&5
20832 echo "${ECHO_T}force LIBC empty" >&6; }
20833 elif test "$withval" != yes
20835 { echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5
20836 echo "${ECHO_T}set LIBC=\"$withval\"" >&6; }
20837 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
20838 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
20839 { (exit 1); exit 1; }; }
20842 { echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5
20843 echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6; }
20847 # ************************************
20848 # * Check for mathematical functions *
20849 # ************************************
20853 for ac_func in hypot
20855 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20856 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20857 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20858 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20859 echo $ECHO_N "(cached) $ECHO_C" >&6
20861 cat >conftest.$ac_ext <<_ACEOF
20864 cat confdefs.h >>conftest.$ac_ext
20865 cat >>conftest.$ac_ext <<_ACEOF
20866 /* end confdefs.h. */
20867 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20869 #define $ac_func innocuous_$ac_func
20871 /* System header to define __stub macros and hopefully few prototypes,
20872 which can conflict with char $ac_func (); below.
20873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20874 <limits.h> exists even on freestanding compilers. */
20877 # include <limits.h>
20879 # include <assert.h>
20884 /* Override any GCC internal prototype to avoid an error.
20885 Use char because int might match the return type of a GCC
20886 builtin and then its argument prototype would still apply. */
20891 /* The GNU C library defines this for functions which it implements
20892 to always fail with ENOSYS. Some functions are actually named
20893 something starting with __ and the normal name is an alias. */
20894 #if defined __stub_$ac_func || defined __stub___$ac_func
20901 return $ac_func ();
20906 rm -f conftest.$ac_objext conftest$ac_exeext
20907 if { (ac_try="$ac_link"
20908 case "(($ac_try" in
20909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20910 *) ac_try_echo=$ac_try;;
20912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20913 (eval "$ac_link") 2>conftest.er1
20915 grep -v '^
*+' conftest.er1 >conftest.err
20917 cat conftest.err >&5
20918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20919 (exit $ac_status); } && {
20920 test -z "$ac_c_werror_flag" ||
20921 test ! -s conftest.err
20922 } && test -s conftest$ac_exeext &&
20923 $as_test_x conftest$ac_exeext; then
20924 eval "$as_ac_var=yes"
20926 echo "$as_me: failed program was:" >&5
20927 sed 's
/^
/|
/' conftest.$ac_ext >&5
20929 eval "$as_ac_var=no"
20932 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20933 conftest$ac_exeext conftest.$ac_ext
20935 ac_res=`eval echo '${'$as_ac_var'}'`
20936 { echo "$as_me:$LINENO: result: $ac_res" >&5
20937 echo "${ECHO_T}$ac_res" >&6; }
20938 if test `eval echo '${'$as_ac_var'}'` = yes; then
20939 cat >>confdefs.h <<_ACEOF
20940 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20944 case " $LIBOBJS " in
20945 *" $ac_func.$ac_objext "* ) ;;
20946 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20964 for ac_func in acosh asinh atanh copysign expm1 finite isinf isnan log1p
20966 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20967 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20968 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20969 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20970 echo $ECHO_N "(cached) $ECHO_C" >&6
20972 cat >conftest.$ac_ext <<_ACEOF
20975 cat confdefs.h >>conftest.$ac_ext
20976 cat >>conftest.$ac_ext <<_ACEOF
20977 /* end confdefs.h. */
20978 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20979 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20980 #define $ac_func innocuous_$ac_func
20982 /* System header to define __stub macros and hopefully few prototypes,
20983 which can conflict with char $ac_func (); below.
20984 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20985 <limits.h> exists even on freestanding compilers. */
20988 # include <limits.h>
20990 # include <assert.h>
20995 /* Override any GCC internal prototype to avoid an error.
20996 Use char because int might match the return type of a GCC
20997 builtin and then its argument prototype would still apply. */
21002 /* The GNU C library defines this for functions which it implements
21003 to always fail with ENOSYS. Some functions are actually named
21004 something starting with __ and the normal name is an alias. */
21005 #if defined __stub_$ac_func || defined __stub___$ac_func
21012 return $ac_func ();
21017 rm -f conftest.$ac_objext conftest$ac_exeext
21018 if { (ac_try="$ac_link"
21019 case "(($ac_try" in
21020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21021 *) ac_try_echo=$ac_try;;
21023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21024 (eval "$ac_link") 2>conftest.er1
21026 grep -v '^
*+' conftest.er1 >conftest.err
21028 cat conftest.err >&5
21029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21030 (exit $ac_status); } && {
21031 test -z "$ac_c_werror_flag" ||
21032 test ! -s conftest.err
21033 } && test -s conftest$ac_exeext &&
21034 $as_test_x conftest$ac_exeext; then
21035 eval "$as_ac_var=yes"
21037 echo "$as_me: failed program was:" >&5
21038 sed 's
/^
/|
/' conftest.$ac_ext >&5
21040 eval "$as_ac_var=no"
21043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21044 conftest$ac_exeext conftest.$ac_ext
21046 ac_res=`eval echo '${'$as_ac_var'}'`
21047 { echo "$as_me:$LINENO: result: $ac_res" >&5
21048 echo "${ECHO_T}$ac_res" >&6; }
21049 if test `eval echo '${'$as_ac_var'}'` = yes; then
21050 cat >>confdefs.h <<_ACEOF
21051 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21060 # check for wchar.h
21061 if test "${ac_cv_header_wchar_h+set}" = set; then
21062 { echo "$as_me:$LINENO: checking for wchar.h" >&5
21063 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
21064 if test "${ac_cv_header_wchar_h+set}" = set; then
21065 echo $ECHO_N "(cached) $ECHO_C" >&6
21067 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
21068 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
21070 # Is the header compilable?
21071 { echo "$as_me:$LINENO: checking wchar.h usability" >&5
21072 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; }
21073 cat >conftest.$ac_ext <<_ACEOF
21076 cat confdefs.h >>conftest.$ac_ext
21077 cat >>conftest.$ac_ext <<_ACEOF
21078 /* end confdefs.h. */
21079 $ac_includes_default
21082 rm -f conftest.$ac_objext
21083 if { (ac_try="$ac_compile"
21084 case "(($ac_try" in
21085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21086 *) ac_try_echo=$ac_try;;
21088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21089 (eval "$ac_compile") 2>conftest.er1
21091 grep -v '^
*+' conftest.er1 >conftest.err
21093 cat conftest.err >&5
21094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21095 (exit $ac_status); } && {
21096 test -z "$ac_c_werror_flag" ||
21097 test ! -s conftest.err
21098 } && test -s conftest.$ac_objext; then
21099 ac_header_compiler=yes
21101 echo "$as_me: failed program was:" >&5
21102 sed 's
/^
/|
/' conftest.$ac_ext >&5
21104 ac_header_compiler=no
21107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21108 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21109 echo "${ECHO_T}$ac_header_compiler" >&6; }
21111 # Is the header present?
21112 { echo "$as_me:$LINENO: checking wchar.h presence" >&5
21113 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; }
21114 cat >conftest.$ac_ext <<_ACEOF
21117 cat confdefs.h >>conftest.$ac_ext
21118 cat >>conftest.$ac_ext <<_ACEOF
21119 /* end confdefs.h. */
21122 if { (ac_try="$ac_cpp conftest.$ac_ext"
21123 case "(($ac_try" in
21124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21125 *) ac_try_echo=$ac_try;;
21127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21128 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21130 grep -v '^
*+' conftest.er1 >conftest.err
21132 cat conftest.err >&5
21133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21134 (exit $ac_status); } >/dev/null && {
21135 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21136 test ! -s conftest.err
21138 ac_header_preproc=yes
21140 echo "$as_me: failed program was:" >&5
21141 sed 's
/^
/|
/' conftest.$ac_ext >&5
21143 ac_header_preproc=no
21146 rm -f conftest.err conftest.$ac_ext
21147 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21148 echo "${ECHO_T}$ac_header_preproc" >&6; }
21150 # So? What about this header?
21151 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21153 { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
21154 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21155 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result
" >&5
21156 echo "$as_me: WARNING
: wchar.h
: proceeding with the compiler
's result" >&2;}
21157 ac_header_preproc=yes
21160 { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
21161 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
21162 { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5
21163 echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;}
21164 { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
21165 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
21166 { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5
21167 echo "$as_me: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&2;}
21168 { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result
" >&5
21169 echo "$as_me: WARNING
: wchar.h
: proceeding with the preprocessor
's result" >&2;}
21170 { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
21171 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
21173 ## ------------------------------------------------ ##
21174 ## Report this to http://www.python.org/python-bugs ##
21175 ## ------------------------------------------------ ##
21177 ) | sed "s/^/$as_me: WARNING: /" >&2
21180 { echo "$as_me:$LINENO: checking for wchar.h" >&5
21181 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
21182 if test "${ac_cv_header_wchar_h+set}" = set; then
21183 echo $ECHO_N "(cached) $ECHO_C" >&6
21185 ac_cv_header_wchar_h=$ac_header_preproc
21187 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
21188 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
21191 if test $ac_cv_header_wchar_h = yes; then
21194 cat >>confdefs.h <<\_ACEOF
21195 #define HAVE_WCHAR_H 1
21207 # determine wchar_t size
21208 if test "$wchar_h" = yes
21210 { echo "$as_me:$LINENO: checking for wchar_t" >&5
21211 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
21212 if test "${ac_cv_type_wchar_t+set}" = set; then
21213 echo $ECHO_N "(cached) $ECHO_C" >&6
21215 cat >conftest.$ac_ext <<_ACEOF
21218 cat confdefs.h >>conftest.$ac_ext
21219 cat >>conftest.$ac_ext <<_ACEOF
21220 /* end confdefs.h. */
21223 typedef wchar_t ac__type_new_;
21227 if ((ac__type_new_ *) 0)
21229 if (sizeof (ac__type_new_))
21235 rm -f conftest.$ac_objext
21236 if { (ac_try="$ac_compile"
21237 case "(($ac_try" in
21238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21239 *) ac_try_echo=$ac_try;;
21241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21242 (eval "$ac_compile") 2>conftest.er1
21244 grep -v '^
*+' conftest.er1 >conftest.err
21246 cat conftest.err >&5
21247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21248 (exit $ac_status); } && {
21249 test -z "$ac_c_werror_flag" ||
21250 test ! -s conftest.err
21251 } && test -s conftest.$ac_objext; then
21252 ac_cv_type_wchar_t=yes
21254 echo "$as_me: failed program was:" >&5
21255 sed 's
/^
/|
/' conftest.$ac_ext >&5
21257 ac_cv_type_wchar_t=no
21260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21262 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
21263 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
21265 # The cast to long int works around a bug in the HP C Compiler
21266 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21267 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21268 # This bug is HP SR number 8606223364.
21269 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
21270 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
21271 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
21272 echo $ECHO_N "(cached) $ECHO_C" >&6
21274 if test "$cross_compiling" = yes; then
21275 # Depending upon the size, compute the lo and hi bounds.
21276 cat >conftest.
$ac_ext <<_ACEOF
21279 cat confdefs.h
>>conftest.
$ac_ext
21280 cat >>conftest.
$ac_ext <<_ACEOF
21281 /* end confdefs.h. */
21284 typedef wchar_t ac__type_sizeof_;
21288 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21295 rm -f conftest.
$ac_objext
21296 if { (ac_try
="$ac_compile"
21297 case "(($ac_try" in
21298 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21299 *) ac_try_echo=$ac_try;;
21301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21302 (eval "$ac_compile") 2>conftest.er1
21304 grep -v '^ *+' conftest.er1 >conftest.err
21306 cat conftest.err >&5
21307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21308 (exit $ac_status); } && {
21309 test -z "$ac_c_werror_flag" ||
21310 test ! -s conftest.err
21311 } && test -s conftest.$ac_objext; then
21314 cat >conftest.$ac_ext <<_ACEOF
21317 cat confdefs.h >>conftest.$ac_ext
21318 cat >>conftest.$ac_ext <<_ACEOF
21319 /* end confdefs.h. */
21322 typedef wchar_t ac__type_sizeof_;
21326 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21333 rm -f conftest.$ac_objext
21334 if { (ac_try="$ac_compile"
21335 case "(($ac_try" in
21336 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21337 *) ac_try_echo
=$ac_try;;
21339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21340 (eval "$ac_compile") 2>conftest.er1
21342 grep -v '^ *+' conftest.er1
>conftest.err
21344 cat conftest.err
>&5
21345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21346 (exit $ac_status); } && {
21347 test -z "$ac_c_werror_flag" ||
21348 test ! -s conftest.err
21349 } && test -s conftest.
$ac_objext; then
21350 ac_hi
=$ac_mid; break
21352 echo "$as_me: failed program was:" >&5
21353 sed 's/^/| /' conftest.
$ac_ext >&5
21355 ac_lo
=`expr $ac_mid + 1`
21356 if test $ac_lo -le $ac_mid; then
21360 ac_mid
=`expr 2 '*' $ac_mid + 1`
21363 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21366 echo "$as_me: failed program was:" >&5
21367 sed 's/^/| /' conftest.
$ac_ext >&5
21369 cat >conftest.
$ac_ext <<_ACEOF
21372 cat confdefs.h
>>conftest.
$ac_ext
21373 cat >>conftest.
$ac_ext <<_ACEOF
21374 /* end confdefs.h. */
21377 typedef wchar_t ac__type_sizeof_;
21381 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21388 rm -f conftest.
$ac_objext
21389 if { (ac_try
="$ac_compile"
21390 case "(($ac_try" in
21391 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21392 *) ac_try_echo=$ac_try;;
21394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21395 (eval "$ac_compile") 2>conftest.er1
21397 grep -v '^ *+' conftest.er1 >conftest.err
21399 cat conftest.err >&5
21400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21401 (exit $ac_status); } && {
21402 test -z "$ac_c_werror_flag" ||
21403 test ! -s conftest.err
21404 } && test -s conftest.$ac_objext; then
21407 cat >conftest.$ac_ext <<_ACEOF
21410 cat confdefs.h >>conftest.$ac_ext
21411 cat >>conftest.$ac_ext <<_ACEOF
21412 /* end confdefs.h. */
21415 typedef wchar_t ac__type_sizeof_;
21419 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21426 rm -f conftest.$ac_objext
21427 if { (ac_try="$ac_compile"
21428 case "(($ac_try" in
21429 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21430 *) ac_try_echo
=$ac_try;;
21432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21433 (eval "$ac_compile") 2>conftest.er1
21435 grep -v '^ *+' conftest.er1
>conftest.err
21437 cat conftest.err
>&5
21438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21439 (exit $ac_status); } && {
21440 test -z "$ac_c_werror_flag" ||
21441 test ! -s conftest.err
21442 } && test -s conftest.
$ac_objext; then
21443 ac_lo
=$ac_mid; break
21445 echo "$as_me: failed program was:" >&5
21446 sed 's/^/| /' conftest.
$ac_ext >&5
21448 ac_hi
=`expr '(' $ac_mid ')' - 1`
21449 if test $ac_mid -le $ac_hi; then
21453 ac_mid
=`expr 2 '*' $ac_mid`
21456 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21459 echo "$as_me: failed program was:" >&5
21460 sed 's/^/| /' conftest.
$ac_ext >&5
21465 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21468 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21469 # Binary search between lo and hi bounds.
21470 while test "x$ac_lo" != "x$ac_hi"; do
21471 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21472 cat >conftest.
$ac_ext <<_ACEOF
21475 cat confdefs.h
>>conftest.
$ac_ext
21476 cat >>conftest.
$ac_ext <<_ACEOF
21477 /* end confdefs.h. */
21480 typedef wchar_t ac__type_sizeof_;
21484 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21491 rm -f conftest.
$ac_objext
21492 if { (ac_try
="$ac_compile"
21493 case "(($ac_try" in
21494 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21495 *) ac_try_echo=$ac_try;;
21497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21498 (eval "$ac_compile") 2>conftest.er1
21500 grep -v '^ *+' conftest.er1 >conftest.err
21502 cat conftest.err >&5
21503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21504 (exit $ac_status); } && {
21505 test -z "$ac_c_werror_flag" ||
21506 test ! -s conftest.err
21507 } && test -s conftest.$ac_objext; then
21510 echo "$as_me: failed program was:" >&5
21511 sed 's/^/| /' conftest.$ac_ext >&5
21513 ac_lo=`expr '(' $ac_mid ')' + 1`
21516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21519 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
21520 '') if test "$ac_cv_type_wchar_t" = yes; then
21521 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
21522 See \`config.log
' for more details." >&5
21523 echo "$as_me: error: cannot compute sizeof (wchar_t)
21524 See \`config.log' for more details.
" >&2;}
21525 { (exit 77); exit 77; }; }
21527 ac_cv_sizeof_wchar_t=0
21531 cat >conftest.$ac_ext <<_ACEOF
21534 cat confdefs.h >>conftest.$ac_ext
21535 cat >>conftest.$ac_ext <<_ACEOF
21536 /* end confdefs.h. */
21539 typedef wchar_t ac__type_sizeof_;
21540 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21541 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21543 #include <stdlib.h>
21548 FILE *f = fopen ("conftest.val
", "w
");
21551 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21553 long int i = longval ();
21554 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21556 fprintf (f, "%ld
\n", i);
21560 unsigned long int i = ulongval ();
21561 if (i != ((long int) (sizeof (ac__type_sizeof_))))
21563 fprintf (f, "%lu
\n", i);
21565 return ferror (f) || fclose (f) != 0;
21571 rm -f conftest$ac_exeext
21572 if { (ac_try="$ac_link"
21573 case "(($ac_try" in
21574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21575 *) ac_try_echo=$ac_try;;
21577 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21578 (eval "$ac_link") 2>&5
21580 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21581 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21582 { (case "(($ac_try" in
21583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21584 *) ac_try_echo=$ac_try;;
21586 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21587 (eval "$ac_try") 2>&5
21589 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21590 (exit $ac_status); }; }; then
21591 ac_cv_sizeof_wchar_t=`cat conftest.val`
21593 echo "$as_me: program exited with status
$ac_status" >&5
21594 echo "$as_me: failed program was
:" >&5
21595 sed 's/^/| /' conftest.$ac_ext >&5
21597 ( exit $ac_status )
21598 if test "$ac_cv_type_wchar_t" = yes; then
21599 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(wchar_t
)
21600 See \
`config.log' for more details." >&5
21601 echo "$as_me: error: cannot compute sizeof (wchar_t)
21602 See \`config.log
' for more details." >&2;}
21603 { (exit 77); exit 77; }; }
21605 ac_cv_sizeof_wchar_t=0
21608 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21612 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
21613 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
21617 cat >>confdefs.h <<_ACEOF
21618 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
21624 { echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5
21625 echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6; }
21627 cat >conftest.$ac_ext <<_ACEOF
21630 cat confdefs.h >>conftest.$ac_ext
21631 cat >>conftest.$ac_ext <<_ACEOF
21632 /* end confdefs.h. */
21635 #if TCL_UTF_MAX != 6
21636 # error "NOT UCS4_TCL"
21646 rm -f conftest.$ac_objext
21647 if { (ac_try="$ac_compile"
21648 case "(($ac_try" in
21649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21650 *) ac_try_echo=$ac_try;;
21652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21653 (eval "$ac_compile") 2>conftest.er1
21655 grep -v '^
*+' conftest.er1 >conftest.err
21657 cat conftest.err >&5
21658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21659 (exit $ac_status); } && {
21660 test -z "$ac_c_werror_flag" ||
21661 test ! -s conftest.err
21662 } && test -s conftest.$ac_objext; then
21665 cat >>confdefs.h <<\_ACEOF
21666 #define HAVE_UCS4_TCL 1
21672 echo "$as_me: failed program was:" >&5
21673 sed 's
/^
/|
/' conftest.$ac_ext >&5
21678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21679 { echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5
21680 echo "${ECHO_T}$have_ucs4_tcl" >&6; }
21682 # check whether wchar_t is signed or not
21683 if test "$wchar_h" = yes
21685 # check whether wchar_t is signed or not
21686 { echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5
21687 echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6; }
21688 if test "${ac_cv_wchar_t_signed+set}" = set; then
21689 echo $ECHO_N "(cached) $ECHO_C" >&6
21692 if test "$cross_compiling" = yes; then
21693 ac_cv_wchar_t_signed=yes
21695 cat >conftest.$ac_ext <<_ACEOF
21698 cat confdefs.h >>conftest.$ac_ext
21699 cat >>conftest.$ac_ext <<_ACEOF
21700 /* end confdefs.h. */
21705 /* Success: exit code 0 */
21706 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
21710 rm -f conftest$ac_exeext
21711 if { (ac_try="$ac_link"
21712 case "(($ac_try" in
21713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21714 *) ac_try_echo=$ac_try;;
21716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21717 (eval "$ac_link") 2>&5
21719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21720 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
21721 { (case "(($ac_try" in
21722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21723 *) ac_try_echo=$ac_try;;
21725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21726 (eval "$ac_try") 2>&5
21728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21729 (exit $ac_status); }; }; then
21730 ac_cv_wchar_t_signed=yes
21732 echo "$as_me: program exited with status $ac_status" >&5
21733 echo "$as_me: failed program was:" >&5
21734 sed 's
/^
/|
/' conftest.$ac_ext >&5
21736 ( exit $ac_status )
21737 ac_cv_wchar_t_signed=no
21739 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21745 { echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5
21746 echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6; }
21749 { echo "$as_me:$LINENO: checking what type to use for unicode" >&5
21750 echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6; }
21751 # Check whether --enable-unicode was given.
21752 if test "${enable_unicode+set}" = set; then
21753 enableval=$enable_unicode;
21759 if test $enable_unicode = yes
21761 # Without any arguments, Py_UNICODE defaults to two-byte mode
21762 case "$have_ucs4_tcl" in
21763 yes) enable_unicode="ucs4"
21765 *) enable_unicode="ucs2"
21772 case "$enable_unicode" in
21773 ucs2) unicode_size="2"
21774 cat >>confdefs.h <<\_ACEOF
21775 #define Py_UNICODE_SIZE 2
21779 ucs4) unicode_size="4"
21780 cat >>confdefs.h <<\_ACEOF
21781 #define Py_UNICODE_SIZE 4
21791 if test "$enable_unicode" = "no"
21794 { echo "$as_me:$LINENO: result: not used" >&5
21795 echo "${ECHO_T}not used" >&6; }
21797 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o"
21799 cat >>confdefs.h <<\_ACEOF
21800 #define Py_USING_UNICODE 1
21804 # wchar_t is only usable if it maps to an unsigned type
21805 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \
21806 -a "$ac_cv_wchar_t_signed" = "no"
21808 PY_UNICODE_TYPE="wchar_t"
21810 cat >>confdefs.h <<\_ACEOF
21811 #define HAVE_USABLE_WCHAR_T 1
21814 cat >>confdefs.h <<\_ACEOF
21815 #define PY_UNICODE_TYPE wchar_t
21818 elif test "$ac_cv_sizeof_short" = "$unicode_size"
21820 PY_UNICODE_TYPE="unsigned short"
21821 cat >>confdefs.h <<\_ACEOF
21822 #define PY_UNICODE_TYPE unsigned short
21825 elif test "$ac_cv_sizeof_long" = "$unicode_size"
21827 PY_UNICODE_TYPE="unsigned long"
21828 cat >>confdefs.h <<\_ACEOF
21829 #define PY_UNICODE_TYPE unsigned long
21833 PY_UNICODE_TYPE="no type found"
21835 { echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5
21836 echo "${ECHO_T}$PY_UNICODE_TYPE" >&6; }
21839 # check for endianness
21840 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21841 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
21842 if test "${ac_cv_c_bigendian+set}" = set; then
21843 echo $ECHO_N "(cached) $ECHO_C" >&6
21845 # See if sys/param.h defines the BYTE_ORDER macro.
21846 cat >conftest.$ac_ext <<_ACEOF
21849 cat confdefs.h >>conftest.$ac_ext
21850 cat >>conftest.$ac_ext <<_ACEOF
21851 /* end confdefs.h. */
21852 #include <sys/types.h>
21853 #include <sys/param.h>
21858 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
21859 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
21860 bogus endian macros
21867 rm -f conftest.$ac_objext
21868 if { (ac_try="$ac_compile"
21869 case "(($ac_try" in
21870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21871 *) ac_try_echo=$ac_try;;
21873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21874 (eval "$ac_compile") 2>conftest.er1
21876 grep -v '^
*+' conftest.er1 >conftest.err
21878 cat conftest.err >&5
21879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21880 (exit $ac_status); } && {
21881 test -z "$ac_c_werror_flag" ||
21882 test ! -s conftest.err
21883 } && test -s conftest.$ac_objext; then
21884 # It does; now see whether it defined to BIG_ENDIAN or not.
21885 cat >conftest.$ac_ext <<_ACEOF
21888 cat confdefs.h >>conftest.$ac_ext
21889 cat >>conftest.$ac_ext <<_ACEOF
21890 /* end confdefs.h. */
21891 #include <sys/types.h>
21892 #include <sys/param.h>
21897 #if BYTE_ORDER != BIG_ENDIAN
21905 rm -f conftest.$ac_objext
21906 if { (ac_try="$ac_compile"
21907 case "(($ac_try" in
21908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21909 *) ac_try_echo=$ac_try;;
21911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21912 (eval "$ac_compile") 2>conftest.er1
21914 grep -v '^
*+' conftest.er1 >conftest.err
21916 cat conftest.err >&5
21917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21918 (exit $ac_status); } && {
21919 test -z "$ac_c_werror_flag" ||
21920 test ! -s conftest.err
21921 } && test -s conftest.$ac_objext; then
21922 ac_cv_c_bigendian=yes
21924 echo "$as_me: failed program was:" >&5
21925 sed 's
/^
/|
/' conftest.$ac_ext >&5
21927 ac_cv_c_bigendian=no
21930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21932 echo "$as_me: failed program was:" >&5
21933 sed 's
/^
/|
/' conftest.$ac_ext >&5
21935 # It does not; compile a test program.
21936 if test "$cross_compiling" = yes; then
21937 # try to guess the endianness by grepping values into an object file
21938 ac_cv_c_bigendian=unknown
21939 cat >conftest.$ac_ext <<_ACEOF
21942 cat confdefs.h >>conftest.$ac_ext
21943 cat >>conftest.$ac_ext <<_ACEOF
21944 /* end confdefs.h. */
21945 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21946 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21947 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
21948 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21949 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21950 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
21954 _ascii (); _ebcdic ();
21959 rm -f conftest.$ac_objext
21960 if { (ac_try="$ac_compile"
21961 case "(($ac_try" in
21962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21963 *) ac_try_echo=$ac_try;;
21965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21966 (eval "$ac_compile") 2>conftest.er1
21968 grep -v '^
*+' conftest.er1 >conftest.err
21970 cat conftest.err >&5
21971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21972 (exit $ac_status); } && {
21973 test -z "$ac_c_werror_flag" ||
21974 test ! -s conftest.err
21975 } && test -s conftest.$ac_objext; then
21976 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
21977 ac_cv_c_bigendian=yes
21979 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21980 if test "$ac_cv_c_bigendian" = unknown; then
21981 ac_cv_c_bigendian=no
21983 # finding both strings is unlikely to happen, but who knows?
21984 ac_cv_c_bigendian=unknown
21988 echo "$as_me: failed program was:" >&5
21989 sed 's
/^
/|
/' conftest.$ac_ext >&5
21994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21996 cat >conftest.$ac_ext <<_ACEOF
21999 cat confdefs.h >>conftest.$ac_ext
22000 cat >>conftest.$ac_ext <<_ACEOF
22001 /* end confdefs.h. */
22002 $ac_includes_default
22007 /* Are we little or big endian? From Harbison&Steele. */
22011 char c[sizeof (long int)];
22014 return u.c[sizeof (long int) - 1] == 1;
22020 rm -f conftest$ac_exeext
22021 if { (ac_try="$ac_link"
22022 case "(($ac_try" in
22023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22024 *) ac_try_echo=$ac_try;;
22026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22027 (eval "$ac_link") 2>&5
22029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22030 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
22031 { (case "(($ac_try" in
22032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22033 *) ac_try_echo=$ac_try;;
22035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22036 (eval "$ac_try") 2>&5
22038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22039 (exit $ac_status); }; }; then
22040 ac_cv_c_bigendian=no
22042 echo "$as_me: program exited with status $ac_status" >&5
22043 echo "$as_me: failed program was:" >&5
22044 sed 's
/^
/|
/' conftest.$ac_ext >&5
22046 ( exit $ac_status )
22047 ac_cv_c_bigendian=yes
22049 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22057 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22058 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
22059 case $ac_cv_c_bigendian in
22062 cat >>confdefs.h <<\_ACEOF
22063 #define WORDS_BIGENDIAN 1
22069 { { echo "$as_me:$LINENO: error: unknown endianness
22070 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
22071 echo "$as_me: error: unknown endianness
22072 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
22073 { (exit 1); exit 1; }; } ;;
22079 # Check whether right shifting a negative integer extends the sign bit
22080 # or fills with zeros (like the Cray J90, according to Tim Peters).
22081 { echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5
22082 echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6; }
22083 if test "${ac_cv_rshift_extends_sign+set}" = set; then
22084 echo $ECHO_N "(cached) $ECHO_C" >&6
22087 if test "$cross_compiling" = yes; then
22088 ac_cv_rshift_extends_sign=yes
22090 cat >conftest.$ac_ext <<_ACEOF
22093 cat confdefs.h >>conftest.$ac_ext
22094 cat >>conftest.$ac_ext <<_ACEOF
22095 /* end confdefs.h. */
22099 exit(((-1)>>3 == -1) ? 0 : 1);
22103 rm -f conftest$ac_exeext
22104 if { (ac_try="$ac_link"
22105 case "(($ac_try" in
22106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22107 *) ac_try_echo=$ac_try;;
22109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22110 (eval "$ac_link") 2>&5
22112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22113 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
22114 { (case "(($ac_try" in
22115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22116 *) ac_try_echo=$ac_try;;
22118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22119 (eval "$ac_try") 2>&5
22121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22122 (exit $ac_status); }; }; then
22123 ac_cv_rshift_extends_sign=yes
22125 echo "$as_me: program exited with status $ac_status" >&5
22126 echo "$as_me: failed program was:" >&5
22127 sed 's
/^
/|
/' conftest.$ac_ext >&5
22129 ( exit $ac_status )
22130 ac_cv_rshift_extends_sign=no
22132 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22138 { echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5
22139 echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6; }
22140 if test "$ac_cv_rshift_extends_sign" = no
22143 cat >>confdefs.h <<\_ACEOF
22144 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
22149 # check for getc_unlocked and related locking functions
22150 { echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5
22151 echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6; }
22152 if test "${ac_cv_have_getc_unlocked+set}" = set; then
22153 echo $ECHO_N "(cached) $ECHO_C" >&6
22156 cat >conftest.$ac_ext <<_ACEOF
22159 cat confdefs.h >>conftest.$ac_ext
22160 cat >>conftest.$ac_ext <<_ACEOF
22161 /* end confdefs.h. */
22167 FILE *f = fopen("/dev/null", "r");
22176 rm -f conftest.$ac_objext conftest$ac_exeext
22177 if { (ac_try="$ac_link"
22178 case "(($ac_try" in
22179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22180 *) ac_try_echo=$ac_try;;
22182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22183 (eval "$ac_link") 2>conftest.er1
22185 grep -v '^
*+' conftest.er1 >conftest.err
22187 cat conftest.err >&5
22188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22189 (exit $ac_status); } && {
22190 test -z "$ac_c_werror_flag" ||
22191 test ! -s conftest.err
22192 } && test -s conftest$ac_exeext &&
22193 $as_test_x conftest$ac_exeext; then
22194 ac_cv_have_getc_unlocked=yes
22196 echo "$as_me: failed program was:" >&5
22197 sed 's
/^
/|
/' conftest.$ac_ext >&5
22199 ac_cv_have_getc_unlocked=no
22202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22203 conftest$ac_exeext conftest.$ac_ext
22206 { echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5
22207 echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6; }
22208 if test "$ac_cv_have_getc_unlocked" = yes
22211 cat >>confdefs.h <<\_ACEOF
22212 #define HAVE_GETC_UNLOCKED 1
22217 # check where readline lives
22218 # save the value of LIBS so we don't actually link Python with readline
22219 LIBS_no_readline
=$LIBS
22221 { echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
22222 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; }
22223 if test "${ac_cv_lib_readline_readline+set}" = set; then
22224 echo $ECHO_N "(cached) $ECHO_C" >&6
22226 ac_check_lib_save_LIBS
=$LIBS
22227 LIBS
="-lreadline $LIBS"
22228 cat >conftest.
$ac_ext <<_ACEOF
22231 cat confdefs.h
>>conftest.
$ac_ext
22232 cat >>conftest.
$ac_ext <<_ACEOF
22233 /* end confdefs.h. */
22235 /* Override any GCC internal prototype to avoid an error.
22236 Use char because int might match the return type of a GCC
22237 builtin and then its argument prototype would still apply. */
22245 return readline ();
22250 rm -f conftest.
$ac_objext conftest
$ac_exeext
22251 if { (ac_try
="$ac_link"
22252 case "(($ac_try" in
22253 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22254 *) ac_try_echo=$ac_try;;
22256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22257 (eval "$ac_link") 2>conftest.er1
22259 grep -v '^ *+' conftest.er1 >conftest.err
22261 cat conftest.err >&5
22262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22263 (exit $ac_status); } && {
22264 test -z "$ac_c_werror_flag" ||
22265 test ! -s conftest.err
22266 } && test -s conftest$ac_exeext &&
22267 $as_test_x conftest$ac_exeext; then
22268 ac_cv_lib_readline_readline=yes
22270 echo "$as_me: failed program was:" >&5
22271 sed 's/^/| /' conftest.$ac_ext >&5
22273 ac_cv_lib_readline_readline=no
22276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22277 conftest$ac_exeext conftest.$ac_ext
22278 LIBS=$ac_check_lib_save_LIBS
22280 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
22281 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; }
22282 if test $ac_cv_lib_readline_readline = yes; then
22283 cat >>confdefs.h <<_ACEOF
22284 #define HAVE_LIBREADLINE 1
22287 LIBS="-lreadline $LIBS"
22291 if test "$ac_cv_have_readline_readline" = no
22294 { echo "$as_me:$LINENO: checking for readline in -ltermcap" >&5
22295 echo $ECHO_N "checking for readline in -ltermcap... $ECHO_C" >&6; }
22296 if test "${ac_cv_lib_termcap_readline+set}" = set; then
22297 echo $ECHO_N "(cached) $ECHO_C" >&6
22299 ac_check_lib_save_LIBS=$LIBS
22300 LIBS="-ltermcap $LIBS"
22301 cat >conftest.$ac_ext <<_ACEOF
22304 cat confdefs.h >>conftest.$ac_ext
22305 cat >>conftest.$ac_ext <<_ACEOF
22306 /* end confdefs.h. */
22308 /* Override any GCC internal prototype to avoid an error.
22309 Use char because int might match the return type of a GCC
22310 builtin and then its argument prototype would still apply. */
22318 return readline ();
22323 rm -f conftest.$ac_objext conftest$ac_exeext
22324 if { (ac_try="$ac_link"
22325 case "(($ac_try" in
22326 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22327 *) ac_try_echo
=$ac_try;;
22329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22330 (eval "$ac_link") 2>conftest.er1
22332 grep -v '^ *+' conftest.er1
>conftest.err
22334 cat conftest.err
>&5
22335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22336 (exit $ac_status); } && {
22337 test -z "$ac_c_werror_flag" ||
22338 test ! -s conftest.err
22339 } && test -s conftest
$ac_exeext &&
22340 $as_test_x conftest
$ac_exeext; then
22341 ac_cv_lib_termcap_readline
=yes
22343 echo "$as_me: failed program was:" >&5
22344 sed 's/^/| /' conftest.
$ac_ext >&5
22346 ac_cv_lib_termcap_readline
=no
22349 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22350 conftest
$ac_exeext conftest.
$ac_ext
22351 LIBS
=$ac_check_lib_save_LIBS
22353 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_readline" >&5
22354 echo "${ECHO_T}$ac_cv_lib_termcap_readline" >&6; }
22355 if test $ac_cv_lib_termcap_readline = yes; then
22356 cat >>confdefs.h
<<_ACEOF
22357 #define HAVE_LIBTERMCAP 1
22360 LIBS
="-ltermcap $LIBS"
22366 # check for readline 2.1
22367 { echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5
22368 echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6; }
22369 if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then
22370 echo $ECHO_N "(cached) $ECHO_C" >&6
22372 ac_check_lib_save_LIBS
=$LIBS
22373 LIBS
="-lreadline $LIBS"
22374 cat >conftest.
$ac_ext <<_ACEOF
22377 cat confdefs.h
>>conftest.
$ac_ext
22378 cat >>conftest.
$ac_ext <<_ACEOF
22379 /* end confdefs.h. */
22381 /* Override any GCC internal prototype to avoid an error.
22382 Use char because int might match the return type of a GCC
22383 builtin and then its argument prototype would still apply. */
22387 char rl_callback_handler_install ();
22391 return rl_callback_handler_install ();
22396 rm -f conftest.
$ac_objext conftest
$ac_exeext
22397 if { (ac_try
="$ac_link"
22398 case "(($ac_try" in
22399 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22400 *) ac_try_echo=$ac_try;;
22402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22403 (eval "$ac_link") 2>conftest.er1
22405 grep -v '^ *+' conftest.er1 >conftest.err
22407 cat conftest.err >&5
22408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22409 (exit $ac_status); } && {
22410 test -z "$ac_c_werror_flag" ||
22411 test ! -s conftest.err
22412 } && test -s conftest$ac_exeext &&
22413 $as_test_x conftest$ac_exeext; then
22414 ac_cv_lib_readline_rl_callback_handler_install=yes
22416 echo "$as_me: failed program was:" >&5
22417 sed 's/^/| /' conftest.$ac_ext >&5
22419 ac_cv_lib_readline_rl_callback_handler_install=no
22422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22423 conftest$ac_exeext conftest.$ac_ext
22424 LIBS=$ac_check_lib_save_LIBS
22426 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
22427 echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
22428 if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then
22430 cat >>confdefs.h <<\_ACEOF
22431 #define HAVE_RL_CALLBACK 1
22437 # check for readline 2.2
22438 cat >conftest.$ac_ext <<_ACEOF
22441 cat confdefs.h >>conftest.$ac_ext
22442 cat >>conftest.$ac_ext <<_ACEOF
22443 /* end confdefs.h. */
22444 #include <readline/readline.h>
22446 if { (ac_try="$ac_cpp conftest.$ac_ext"
22447 case "(($ac_try" in
22448 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22449 *) ac_try_echo
=$ac_try;;
22451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22452 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22454 grep -v '^ *+' conftest.er1
>conftest.err
22456 cat conftest.err
>&5
22457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22458 (exit $ac_status); } >/dev
/null
&& {
22459 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22460 test ! -s conftest.err
22464 echo "$as_me: failed program was:" >&5
22465 sed 's/^/| /' conftest.
$ac_ext >&5
22470 rm -f conftest.err conftest.
$ac_ext
22471 if test $have_readline = yes
22473 cat >conftest.
$ac_ext <<_ACEOF
22476 cat confdefs.h
>>conftest.
$ac_ext
22477 cat >>conftest.
$ac_ext <<_ACEOF
22478 /* end confdefs.h. */
22479 #include <readline/readline.h>
22482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22483 $EGREP "extern int rl_completion_append_character;" >/dev
/null
2>&1; then
22485 cat >>confdefs.h
<<\_ACEOF
22486 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
22494 # check for readline 4.0
22495 { echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5
22496 echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6; }
22497 if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then
22498 echo $ECHO_N "(cached) $ECHO_C" >&6
22500 ac_check_lib_save_LIBS
=$LIBS
22501 LIBS
="-lreadline $LIBS"
22502 cat >conftest.
$ac_ext <<_ACEOF
22505 cat confdefs.h
>>conftest.
$ac_ext
22506 cat >>conftest.
$ac_ext <<_ACEOF
22507 /* end confdefs.h. */
22509 /* Override any GCC internal prototype to avoid an error.
22510 Use char because int might match the return type of a GCC
22511 builtin and then its argument prototype would still apply. */
22515 char rl_pre_input_hook ();
22519 return rl_pre_input_hook ();
22524 rm -f conftest.
$ac_objext conftest
$ac_exeext
22525 if { (ac_try
="$ac_link"
22526 case "(($ac_try" in
22527 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22528 *) ac_try_echo=$ac_try;;
22530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22531 (eval "$ac_link") 2>conftest.er1
22533 grep -v '^ *+' conftest.er1 >conftest.err
22535 cat conftest.err >&5
22536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22537 (exit $ac_status); } && {
22538 test -z "$ac_c_werror_flag" ||
22539 test ! -s conftest.err
22540 } && test -s conftest$ac_exeext &&
22541 $as_test_x conftest$ac_exeext; then
22542 ac_cv_lib_readline_rl_pre_input_hook=yes
22544 echo "$as_me: failed program was:" >&5
22545 sed 's/^/| /' conftest.$ac_ext >&5
22547 ac_cv_lib_readline_rl_pre_input_hook=no
22550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22551 conftest$ac_exeext conftest.$ac_ext
22552 LIBS=$ac_check_lib_save_LIBS
22554 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5
22555 echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6; }
22556 if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then
22558 cat >>confdefs.h <<\_ACEOF
22559 #define HAVE_RL_PRE_INPUT_HOOK 1
22566 { echo "$as_me:$LINENO: checking for rl_completion_display_matches_hook in -lreadline" >&5
22567 echo $ECHO_N "checking for rl_completion_display_matches_hook in -lreadline... $ECHO_C" >&6; }
22568 if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then
22569 echo $ECHO_N "(cached) $ECHO_C" >&6
22571 ac_check_lib_save_LIBS=$LIBS
22572 LIBS="-lreadline $LIBS"
22573 cat >conftest.$ac_ext <<_ACEOF
22576 cat confdefs.h >>conftest.$ac_ext
22577 cat >>conftest.$ac_ext <<_ACEOF
22578 /* end confdefs.h. */
22580 /* Override any GCC internal prototype to avoid an error.
22581 Use char because int might match the return type of a GCC
22582 builtin and then its argument prototype would still apply. */
22586 char rl_completion_display_matches_hook ();
22590 return rl_completion_display_matches_hook ();
22595 rm -f conftest.$ac_objext conftest$ac_exeext
22596 if { (ac_try="$ac_link"
22597 case "(($ac_try" in
22598 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22599 *) ac_try_echo
=$ac_try;;
22601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22602 (eval "$ac_link") 2>conftest.er1
22604 grep -v '^ *+' conftest.er1
>conftest.err
22606 cat conftest.err
>&5
22607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22608 (exit $ac_status); } && {
22609 test -z "$ac_c_werror_flag" ||
22610 test ! -s conftest.err
22611 } && test -s conftest
$ac_exeext &&
22612 $as_test_x conftest
$ac_exeext; then
22613 ac_cv_lib_readline_rl_completion_display_matches_hook
=yes
22615 echo "$as_me: failed program was:" >&5
22616 sed 's/^/| /' conftest.
$ac_ext >&5
22618 ac_cv_lib_readline_rl_completion_display_matches_hook
=no
22621 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22622 conftest
$ac_exeext conftest.
$ac_ext
22623 LIBS
=$ac_check_lib_save_LIBS
22625 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5
22626 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; }
22627 if test $ac_cv_lib_readline_rl_completion_display_matches_hook = yes; then
22629 cat >>confdefs.h
<<\_ACEOF
22630 #define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1
22636 # check for readline 4.2
22637 { echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
22638 echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6; }
22639 if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
22640 echo $ECHO_N "(cached) $ECHO_C" >&6
22642 ac_check_lib_save_LIBS
=$LIBS
22643 LIBS
="-lreadline $LIBS"
22644 cat >conftest.
$ac_ext <<_ACEOF
22647 cat confdefs.h
>>conftest.
$ac_ext
22648 cat >>conftest.
$ac_ext <<_ACEOF
22649 /* end confdefs.h. */
22651 /* Override any GCC internal prototype to avoid an error.
22652 Use char because int might match the return type of a GCC
22653 builtin and then its argument prototype would still apply. */
22657 char rl_completion_matches ();
22661 return rl_completion_matches ();
22666 rm -f conftest.
$ac_objext conftest
$ac_exeext
22667 if { (ac_try
="$ac_link"
22668 case "(($ac_try" in
22669 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22670 *) ac_try_echo=$ac_try;;
22672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22673 (eval "$ac_link") 2>conftest.er1
22675 grep -v '^ *+' conftest.er1 >conftest.err
22677 cat conftest.err >&5
22678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22679 (exit $ac_status); } && {
22680 test -z "$ac_c_werror_flag" ||
22681 test ! -s conftest.err
22682 } && test -s conftest$ac_exeext &&
22683 $as_test_x conftest$ac_exeext; then
22684 ac_cv_lib_readline_rl_completion_matches=yes
22686 echo "$as_me: failed program was:" >&5
22687 sed 's/^/| /' conftest.$ac_ext >&5
22689 ac_cv_lib_readline_rl_completion_matches=no
22692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22693 conftest$ac_exeext conftest.$ac_ext
22694 LIBS=$ac_check_lib_save_LIBS
22696 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
22697 echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6; }
22698 if test $ac_cv_lib_readline_rl_completion_matches = yes; then
22700 cat >>confdefs.h <<\_ACEOF
22701 #define HAVE_RL_COMPLETION_MATCHES 1
22707 # also in readline 4.2
22708 cat >conftest.$ac_ext <<_ACEOF
22711 cat confdefs.h >>conftest.$ac_ext
22712 cat >>conftest.$ac_ext <<_ACEOF
22713 /* end confdefs.h. */
22714 #include <readline/readline.h>
22716 if { (ac_try="$ac_cpp conftest.$ac_ext"
22717 case "(($ac_try" in
22718 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22719 *) ac_try_echo
=$ac_try;;
22721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22722 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22724 grep -v '^ *+' conftest.er1
>conftest.err
22726 cat conftest.err
>&5
22727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22728 (exit $ac_status); } >/dev
/null
&& {
22729 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22730 test ! -s conftest.err
22734 echo "$as_me: failed program was:" >&5
22735 sed 's/^/| /' conftest.
$ac_ext >&5
22740 rm -f conftest.err conftest.
$ac_ext
22741 if test $have_readline = yes
22743 cat >conftest.
$ac_ext <<_ACEOF
22746 cat confdefs.h
>>conftest.
$ac_ext
22747 cat >>conftest.
$ac_ext <<_ACEOF
22748 /* end confdefs.h. */
22749 #include <readline/readline.h>
22752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22753 $EGREP "extern int rl_catch_signals;" >/dev
/null
2>&1; then
22755 cat >>confdefs.h
<<\_ACEOF
22756 #define HAVE_RL_CATCH_SIGNAL 1
22764 # End of readline checks: restore LIBS
22765 LIBS
=$LIBS_no_readline
22767 { echo "$as_me:$LINENO: checking for broken nice()" >&5
22768 echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6; }
22769 if test "${ac_cv_broken_nice+set}" = set; then
22770 echo $ECHO_N "(cached) $ECHO_C" >&6
22773 if test "$cross_compiling" = yes; then
22774 ac_cv_broken_nice
=no
22776 cat >conftest.
$ac_ext <<_ACEOF
22779 cat confdefs.h
>>conftest.
$ac_ext
22780 cat >>conftest.
$ac_ext <<_ACEOF
22781 /* end confdefs.h. */
22785 int val1 = nice(1);
22786 if (val1 != -1 && val1 == nice(2))
22792 rm -f conftest
$ac_exeext
22793 if { (ac_try
="$ac_link"
22794 case "(($ac_try" in
22795 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22796 *) ac_try_echo=$ac_try;;
22798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22799 (eval "$ac_link") 2>&5
22801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22802 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22803 { (case "(($ac_try" in
22804 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22805 *) ac_try_echo
=$ac_try;;
22807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22808 (eval "$ac_try") 2>&5
22810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22811 (exit $ac_status); }; }; then
22812 ac_cv_broken_nice
=yes
22814 echo "$as_me: program exited with status $ac_status" >&5
22815 echo "$as_me: failed program was:" >&5
22816 sed 's/^/| /' conftest.
$ac_ext >&5
22818 ( exit $ac_status )
22819 ac_cv_broken_nice
=no
22821 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22827 { echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5
22828 echo "${ECHO_T}$ac_cv_broken_nice" >&6; }
22829 if test "$ac_cv_broken_nice" = yes
22832 cat >>confdefs.h
<<\_ACEOF
22833 #define HAVE_BROKEN_NICE 1
22838 { echo "$as_me:$LINENO: checking for broken poll()" >&5
22839 echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6; }
22840 if test "$cross_compiling" = yes; then
22841 ac_cv_broken_poll
=no
22843 cat >conftest.
$ac_ext <<_ACEOF
22846 cat confdefs.h
>>conftest.
$ac_ext
22847 cat >>conftest.
$ac_ext <<_ACEOF
22848 /* end confdefs.h. */
22854 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
22858 int poll_test = poll (&poll_struct, 1, 0);
22864 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
22875 rm -f conftest
$ac_exeext
22876 if { (ac_try
="$ac_link"
22877 case "(($ac_try" in
22878 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22879 *) ac_try_echo=$ac_try;;
22881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22882 (eval "$ac_link") 2>&5
22884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22885 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
22893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22894 (exit $ac_status); }; }; then
22895 ac_cv_broken_poll
=yes
22897 echo "$as_me: program exited with status $ac_status" >&5
22898 echo "$as_me: failed program was:" >&5
22899 sed 's/^/| /' conftest.
$ac_ext >&5
22901 ( exit $ac_status )
22902 ac_cv_broken_poll
=no
22904 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22908 { echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5
22909 echo "${ECHO_T}$ac_cv_broken_poll" >&6; }
22910 if test "$ac_cv_broken_poll" = yes
22913 cat >>confdefs.h
<<\_ACEOF
22914 #define HAVE_BROKEN_POLL 1
22919 # Before we can test tzset, we need to check if struct tm has a tm_zone
22920 # (which is not required by ISO C or UNIX spec) and/or if we support
22922 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
22923 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
22924 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
22925 echo $ECHO_N "(cached) $ECHO_C" >&6
22927 cat >conftest.
$ac_ext <<_ACEOF
22930 cat confdefs.h
>>conftest.
$ac_ext
22931 cat >>conftest.
$ac_ext <<_ACEOF
22932 /* end confdefs.h. */
22933 #include <sys/types.h>
22934 #include <$ac_cv_struct_tm>
22940 static struct tm ac_aggr;
22941 if (ac_aggr.tm_zone)
22947 rm -f conftest.
$ac_objext
22948 if { (ac_try
="$ac_compile"
22949 case "(($ac_try" in
22950 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22951 *) ac_try_echo=$ac_try;;
22953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22954 (eval "$ac_compile") 2>conftest.er1
22956 grep -v '^ *+' conftest.er1 >conftest.err
22958 cat conftest.err >&5
22959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22960 (exit $ac_status); } && {
22961 test -z "$ac_c_werror_flag" ||
22962 test ! -s conftest.err
22963 } && test -s conftest.$ac_objext; then
22964 ac_cv_member_struct_tm_tm_zone=yes
22966 echo "$as_me: failed program was:" >&5
22967 sed 's/^/| /' conftest.$ac_ext >&5
22969 cat >conftest.$ac_ext <<_ACEOF
22972 cat confdefs.h >>conftest.$ac_ext
22973 cat >>conftest.$ac_ext <<_ACEOF
22974 /* end confdefs.h. */
22975 #include <sys/types.h>
22976 #include <$ac_cv_struct_tm>
22982 static struct tm ac_aggr;
22983 if (sizeof ac_aggr.tm_zone)
22989 rm -f conftest.$ac_objext
22990 if { (ac_try="$ac_compile"
22991 case "(($ac_try" in
22992 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22993 *) ac_try_echo
=$ac_try;;
22995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22996 (eval "$ac_compile") 2>conftest.er1
22998 grep -v '^ *+' conftest.er1
>conftest.err
23000 cat conftest.err
>&5
23001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23002 (exit $ac_status); } && {
23003 test -z "$ac_c_werror_flag" ||
23004 test ! -s conftest.err
23005 } && test -s conftest.
$ac_objext; then
23006 ac_cv_member_struct_tm_tm_zone
=yes
23008 echo "$as_me: failed program was:" >&5
23009 sed 's/^/| /' conftest.
$ac_ext >&5
23011 ac_cv_member_struct_tm_tm_zone
=no
23014 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23017 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23019 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
23020 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
23021 if test $ac_cv_member_struct_tm_tm_zone = yes; then
23023 cat >>confdefs.h
<<_ACEOF
23024 #define HAVE_STRUCT_TM_TM_ZONE 1
23030 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
23032 cat >>confdefs.h
<<\_ACEOF
23033 #define HAVE_TM_ZONE 1
23037 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
23038 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
23039 if test "${ac_cv_have_decl_tzname+set}" = set; then
23040 echo $ECHO_N "(cached) $ECHO_C" >&6
23042 cat >conftest.
$ac_ext <<_ACEOF
23045 cat confdefs.h
>>conftest.
$ac_ext
23046 cat >>conftest.
$ac_ext <<_ACEOF
23047 /* end confdefs.h. */
23061 rm -f conftest.
$ac_objext
23062 if { (ac_try
="$ac_compile"
23063 case "(($ac_try" in
23064 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23065 *) ac_try_echo=$ac_try;;
23067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23068 (eval "$ac_compile") 2>conftest.er1
23070 grep -v '^ *+' conftest.er1 >conftest.err
23072 cat conftest.err >&5
23073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23074 (exit $ac_status); } && {
23075 test -z "$ac_c_werror_flag" ||
23076 test ! -s conftest.err
23077 } && test -s conftest.$ac_objext; then
23078 ac_cv_have_decl_tzname=yes
23080 echo "$as_me: failed program was:" >&5
23081 sed 's/^/| /' conftest.$ac_ext >&5
23083 ac_cv_have_decl_tzname=no
23086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23088 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
23089 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
23090 if test $ac_cv_have_decl_tzname = yes; then
23092 cat >>confdefs.h <<_ACEOF
23093 #define HAVE_DECL_TZNAME 1
23098 cat >>confdefs.h <<_ACEOF
23099 #define HAVE_DECL_TZNAME 0
23106 { echo "$as_me:$LINENO: checking for tzname" >&5
23107 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
23108 if test "${ac_cv_var_tzname+set}" = set; then
23109 echo $ECHO_N "(cached) $ECHO_C" >&6
23111 cat >conftest.$ac_ext <<_ACEOF
23114 cat confdefs.h >>conftest.$ac_ext
23115 cat >>conftest.$ac_ext <<_ACEOF
23116 /* end confdefs.h. */
23118 #if !HAVE_DECL_TZNAME
23119 extern char *tzname[];
23125 return tzname[0][0];
23130 rm -f conftest.$ac_objext conftest$ac_exeext
23131 if { (ac_try="$ac_link"
23132 case "(($ac_try" in
23133 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23134 *) ac_try_echo
=$ac_try;;
23136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23137 (eval "$ac_link") 2>conftest.er1
23139 grep -v '^ *+' conftest.er1
>conftest.err
23141 cat conftest.err
>&5
23142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23143 (exit $ac_status); } && {
23144 test -z "$ac_c_werror_flag" ||
23145 test ! -s conftest.err
23146 } && test -s conftest
$ac_exeext &&
23147 $as_test_x conftest
$ac_exeext; then
23148 ac_cv_var_tzname
=yes
23150 echo "$as_me: failed program was:" >&5
23151 sed 's/^/| /' conftest.
$ac_ext >&5
23153 ac_cv_var_tzname
=no
23156 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23157 conftest
$ac_exeext conftest.
$ac_ext
23159 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
23160 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
23161 if test $ac_cv_var_tzname = yes; then
23163 cat >>confdefs.h
<<\_ACEOF
23164 #define HAVE_TZNAME 1
23171 # check tzset(3) exists and works like we expect it to
23172 { echo "$as_me:$LINENO: checking for working tzset()" >&5
23173 echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6; }
23174 if test "${ac_cv_working_tzset+set}" = set; then
23175 echo $ECHO_N "(cached) $ECHO_C" >&6
23178 if test "$cross_compiling" = yes; then
23179 ac_cv_working_tzset
=no
23181 cat >conftest.
$ac_ext <<_ACEOF
23184 cat confdefs.h
>>conftest.
$ac_ext
23185 cat >>conftest.
$ac_ext <<_ACEOF
23186 /* end confdefs.h. */
23188 #include <stdlib.h>
23190 #include <string.h>
23193 extern char *tzname[];
23198 /* Note that we need to ensure that not only does tzset(3)
23199 do 'something' with localtime, but it works as documented
23200 in the library reference and as expected by the test suite.
23201 This includes making sure that tzname is set properly if
23202 tm->tm_zone does not exist since it is the alternative way
23203 of getting timezone info.
23205 Red Hat 6.2 doesn't understand the southern hemisphere
23206 after New Year's Day.
23209 time_t groundhogday = 1044144000; /* GMT-based */
23210 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
23212 putenv("TZ=UTC+0");
23214 if (localtime(&groundhogday)->tm_hour != 0)
23217 /* For UTC, tzname[1] is sometimes "", sometimes " " */
23218 if (strcmp(tzname[0], "UTC") ||
23219 (tzname[1][0] != 0 && tzname[1][0] != ' '))
23223 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
23225 if (localtime(&groundhogday)->tm_hour != 19)
23228 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
23232 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
23234 if (localtime(&groundhogday)->tm_hour != 11)
23237 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
23241 #if HAVE_STRUCT_TM_TM_ZONE
23242 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
23244 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
23252 rm -f conftest
$ac_exeext
23253 if { (ac_try
="$ac_link"
23254 case "(($ac_try" in
23255 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23256 *) ac_try_echo=$ac_try;;
23258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23259 (eval "$ac_link") 2>&5
23261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23262 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23263 { (case "(($ac_try" in
23264 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23265 *) ac_try_echo
=$ac_try;;
23267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23268 (eval "$ac_try") 2>&5
23270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23271 (exit $ac_status); }; }; then
23272 ac_cv_working_tzset
=yes
23274 echo "$as_me: program exited with status $ac_status" >&5
23275 echo "$as_me: failed program was:" >&5
23276 sed 's/^/| /' conftest.
$ac_ext >&5
23278 ( exit $ac_status )
23279 ac_cv_working_tzset
=no
23281 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
23287 { echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5
23288 echo "${ECHO_T}$ac_cv_working_tzset" >&6; }
23289 if test "$ac_cv_working_tzset" = yes
23292 cat >>confdefs.h
<<\_ACEOF
23293 #define HAVE_WORKING_TZSET 1
23298 # Look for subsecond timestamps in struct stat
23299 { echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
23300 echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6; }
23301 if test "${ac_cv_stat_tv_nsec+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_mtim.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_nsec=yes
23341 echo "$as_me: failed program was:" >&5
23342 sed 's/^/| /' conftest.$ac_ext >&5
23344 ac_cv_stat_tv_nsec=no
23347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23350 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
23351 echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6; }
23352 if test "$ac_cv_stat_tv_nsec" = yes
23355 cat >>confdefs.h <<\_ACEOF
23356 #define HAVE_STAT_TV_NSEC 1
23361 # Look for BSD style subsecond timestamps in struct stat
23362 { echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5
23363 echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6; }
23364 if test "${ac_cv_stat_tv_nsec2+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 <sys/stat.h>
23379 st.st_mtimespec.tv_nsec = 1;
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_stat_tv_nsec2
=yes
23404 echo "$as_me: failed program was:" >&5
23405 sed 's/^/| /' conftest.
$ac_ext >&5
23407 ac_cv_stat_tv_nsec2
=no
23410 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23413 { echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5
23414 echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6; }
23415 if test "$ac_cv_stat_tv_nsec2" = yes
23418 cat >>confdefs.h
<<\_ACEOF
23419 #define HAVE_STAT_TV_NSEC2 1
23424 # On HP/UX 11.0, mvwdelch is a block with a return statement
23425 { echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5
23426 echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6; }
23427 if test "${ac_cv_mvwdelch_is_expression+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>
23442 rtn = mvwdelch(0,0,0);
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_mvwdelch_is_expression=yes
23467 echo "$as_me: failed program was:" >&5
23468 sed 's/^/| /' conftest.$ac_ext >&5
23470 ac_cv_mvwdelch_is_expression=no
23473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23476 { echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5
23477 echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6; }
23479 if test "$ac_cv_mvwdelch_is_expression" = yes
23482 cat >>confdefs.h <<\_ACEOF
23483 #define MVWDELCH_IS_EXPRESSION 1
23488 { echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5
23489 echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6; }
23490 if test "${ac_cv_window_has_flags+set}" = set; then
23491 echo $ECHO_N "(cached) $ECHO_C" >&6
23493 cat >conftest.$ac_ext <<_ACEOF
23496 cat confdefs.h >>conftest.$ac_ext
23497 cat >>conftest.$ac_ext <<_ACEOF
23498 /* end confdefs.h. */
23499 #include <curses.h>
23511 rm -f conftest.$ac_objext
23512 if { (ac_try="$ac_compile"
23513 case "(($ac_try" in
23514 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23515 *) ac_try_echo
=$ac_try;;
23517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23518 (eval "$ac_compile") 2>conftest.er1
23520 grep -v '^ *+' conftest.er1
>conftest.err
23522 cat conftest.err
>&5
23523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23524 (exit $ac_status); } && {
23525 test -z "$ac_c_werror_flag" ||
23526 test ! -s conftest.err
23527 } && test -s conftest.
$ac_objext; then
23528 ac_cv_window_has_flags
=yes
23530 echo "$as_me: failed program was:" >&5
23531 sed 's/^/| /' conftest.
$ac_ext >&5
23533 ac_cv_window_has_flags
=no
23536 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23539 { echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5
23540 echo "${ECHO_T}$ac_cv_window_has_flags" >&6; }
23543 if test "$ac_cv_window_has_flags" = yes
23546 cat >>confdefs.h
<<\_ACEOF
23547 #define WINDOW_HAS_FLAGS 1
23552 { echo "$as_me:$LINENO: checking for is_term_resized" >&5
23553 echo $ECHO_N "checking for is_term_resized... $ECHO_C" >&6; }
23554 cat >conftest.
$ac_ext <<_ACEOF
23557 cat confdefs.h
>>conftest.
$ac_ext
23558 cat >>conftest.
$ac_ext <<_ACEOF
23559 /* end confdefs.h. */
23560 #include <curses.h>
23564 void *x=is_term_resized
23569 rm -f conftest.
$ac_objext
23570 if { (ac_try
="$ac_compile"
23571 case "(($ac_try" in
23572 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23573 *) ac_try_echo=$ac_try;;
23575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23576 (eval "$ac_compile") 2>conftest.er1
23578 grep -v '^ *+' conftest.er1 >conftest.err
23580 cat conftest.err >&5
23581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23582 (exit $ac_status); } && {
23583 test -z "$ac_c_werror_flag" ||
23584 test ! -s conftest.err
23585 } && test -s conftest.$ac_objext; then
23587 cat >>confdefs.h <<\_ACEOF
23588 #define HAVE_CURSES_IS_TERM_RESIZED 1
23591 { echo "$as_me:$LINENO: result: yes" >&5
23592 echo "${ECHO_T}yes" >&6; }
23594 echo "$as_me: failed program was:" >&5
23595 sed 's/^/| /' conftest.$ac_ext >&5
23597 { echo "$as_me:$LINENO: result: no" >&5
23598 echo "${ECHO_T}no" >&6; }
23602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23604 { echo "$as_me:$LINENO: checking for resize_term" >&5
23605 echo $ECHO_N "checking for resize_term... $ECHO_C" >&6; }
23606 cat >conftest.$ac_ext <<_ACEOF
23609 cat confdefs.h >>conftest.$ac_ext
23610 cat >>conftest.$ac_ext <<_ACEOF
23611 /* end confdefs.h. */
23612 #include <curses.h>
23616 void *x=resize_term
23621 rm -f conftest.$ac_objext
23622 if { (ac_try="$ac_compile"
23623 case "(($ac_try" in
23624 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23625 *) ac_try_echo
=$ac_try;;
23627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23628 (eval "$ac_compile") 2>conftest.er1
23630 grep -v '^ *+' conftest.er1
>conftest.err
23632 cat conftest.err
>&5
23633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23634 (exit $ac_status); } && {
23635 test -z "$ac_c_werror_flag" ||
23636 test ! -s conftest.err
23637 } && test -s conftest.
$ac_objext; then
23639 cat >>confdefs.h
<<\_ACEOF
23640 #define HAVE_CURSES_RESIZE_TERM 1
23643 { echo "$as_me:$LINENO: result: yes" >&5
23644 echo "${ECHO_T}yes" >&6; }
23646 echo "$as_me: failed program was:" >&5
23647 sed 's/^/| /' conftest.
$ac_ext >&5
23649 { echo "$as_me:$LINENO: result: no" >&5
23650 echo "${ECHO_T}no" >&6; }
23654 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23656 { echo "$as_me:$LINENO: checking for resizeterm" >&5
23657 echo $ECHO_N "checking for resizeterm... $ECHO_C" >&6; }
23658 cat >conftest.
$ac_ext <<_ACEOF
23661 cat confdefs.h
>>conftest.
$ac_ext
23662 cat >>conftest.
$ac_ext <<_ACEOF
23663 /* end confdefs.h. */
23664 #include <curses.h>
23673 rm -f conftest.
$ac_objext
23674 if { (ac_try
="$ac_compile"
23675 case "(($ac_try" in
23676 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23677 *) ac_try_echo=$ac_try;;
23679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23680 (eval "$ac_compile") 2>conftest.er1
23682 grep -v '^ *+' conftest.er1 >conftest.err
23684 cat conftest.err >&5
23685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23686 (exit $ac_status); } && {
23687 test -z "$ac_c_werror_flag" ||
23688 test ! -s conftest.err
23689 } && test -s conftest.$ac_objext; then
23691 cat >>confdefs.h <<\_ACEOF
23692 #define HAVE_CURSES_RESIZETERM 1
23695 { echo "$as_me:$LINENO: result: yes" >&5
23696 echo "${ECHO_T}yes" >&6; }
23698 echo "$as_me: failed program was:" >&5
23699 sed 's/^/| /' conftest.$ac_ext >&5
23701 { echo "$as_me:$LINENO: result: no" >&5
23702 echo "${ECHO_T}no" >&6; }
23706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23708 { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
23709 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; }
23711 if test -r /dev/ptmx
23713 { echo "$as_me:$LINENO: result: yes" >&5
23714 echo "${ECHO_T}yes" >&6; }
23716 cat >>confdefs.h <<\_ACEOF
23717 #define HAVE_DEV_PTMX 1
23721 { echo "$as_me:$LINENO: result: no" >&5
23722 echo "${ECHO_T}no" >&6; }
23725 { echo "$as_me:$LINENO: checking for /dev/ptc" >&5
23726 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
23728 if test -r /dev/ptc
23730 { echo "$as_me:$LINENO: result: yes" >&5
23731 echo "${ECHO_T}yes" >&6; }
23733 cat >>confdefs.h <<\_ACEOF
23734 #define HAVE_DEV_PTC 1
23738 { echo "$as_me:$LINENO: result: no" >&5
23739 echo "${ECHO_T}no" >&6; }
23742 { echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
23743 echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; }
23744 if test "$cross_compiling" = yes; then
23745 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23746 See \`config.log
' for more details." >&5
23747 echo "$as_me: error: cannot run test program while cross compiling
23748 See \`config.log' for more details.
" >&2;}
23749 { (exit 1); exit 1; }; }
23751 cat >conftest.$ac_ext <<_ACEOF
23754 cat confdefs.h >>conftest.$ac_ext
23755 cat >>conftest.$ac_ext <<_ACEOF
23756 /* end confdefs.h. */
23758 #include <stddef.h>
23759 #include <string.h>
23761 #ifdef HAVE_SYS_TYPES_H
23762 #include <sys/types.h>
23765 #ifdef HAVE_SSIZE_T
23766 typedef ssize_t Py_ssize_t;
23767 #elif SIZEOF_VOID_P == SIZEOF_LONG
23768 typedef long Py_ssize_t;
23770 typedef int Py_ssize_t;
23777 if(sprintf(buffer, "%zd
", (size_t)123) < 0)
23780 if (strcmp(buffer, "123"))
23783 if (sprintf(buffer, "%zd
", (Py_ssize_t)-123) < 0)
23786 if (strcmp(buffer, "-123"))
23792 rm -f conftest$ac_exeext
23793 if { (ac_try="$ac_link"
23794 case "(($ac_try" in
23795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23796 *) ac_try_echo=$ac_try;;
23798 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23799 (eval "$ac_link") 2>&5
23801 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23802 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23803 { (case "(($ac_try" in
23804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23805 *) ac_try_echo=$ac_try;;
23807 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23808 (eval "$ac_try") 2>&5
23810 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23811 (exit $ac_status); }; }; then
23812 { echo "$as_me:$LINENO: result
: yes" >&5
23813 echo "${ECHO_T}yes" >&6; }
23815 cat >>confdefs.h <<\_ACEOF
23816 #define PY_FORMAT_SIZE_T "z
"
23820 echo "$as_me: program exited with status
$ac_status" >&5
23821 echo "$as_me: failed program was
:" >&5
23822 sed 's/^/| /' conftest.$ac_ext >&5
23824 ( exit $ac_status )
23825 { echo "$as_me:$LINENO: result
: no
" >&5
23826 echo "${ECHO_T}no
" >&6; }
23828 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23833 { echo "$as_me:$LINENO: checking
for socklen_t
" >&5
23834 echo $ECHO_N "checking
for socklen_t...
$ECHO_C" >&6; }
23835 if test "${ac_cv_type_socklen_t+set}" = set; then
23836 echo $ECHO_N "(cached
) $ECHO_C" >&6
23838 cat >conftest.$ac_ext <<_ACEOF
23841 cat confdefs.h >>conftest.$ac_ext
23842 cat >>conftest.$ac_ext <<_ACEOF
23843 /* end confdefs.h. */
23845 #ifdef HAVE_SYS_TYPES_H
23846 #include <sys/types.h>
23848 #ifdef HAVE_SYS_SOCKET_H
23849 #include <sys/socket.h>
23853 typedef socklen_t ac__type_new_;
23857 if ((ac__type_new_ *) 0)
23859 if (sizeof (ac__type_new_))
23865 rm -f conftest.$ac_objext
23866 if { (ac_try="$ac_compile"
23867 case "(($ac_try" in
23868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23869 *) ac_try_echo=$ac_try;;
23871 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23872 (eval "$ac_compile") 2>conftest.er1
23874 grep -v '^ *+' conftest.er1 >conftest.err
23876 cat conftest.err >&5
23877 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23878 (exit $ac_status); } && {
23879 test -z "$ac_c_werror_flag" ||
23880 test ! -s conftest.err
23881 } && test -s conftest.$ac_objext; then
23882 ac_cv_type_socklen_t=yes
23884 echo "$as_me: failed program was
:" >&5
23885 sed 's/^/| /' conftest.$ac_ext >&5
23887 ac_cv_type_socklen_t=no
23890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23892 { echo "$as_me:$LINENO: result
: $ac_cv_type_socklen_t" >&5
23893 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
23894 if test $ac_cv_type_socklen_t = yes; then
23898 cat >>confdefs.h <<\_ACEOF
23899 #define socklen_t int
23907 for h in `(cd $srcdir;echo Python/thread_*.h)`
23909 THREADHEADERS="$THREADHEADERS \$
(srcdir
)/$h"
23913 SRCDIRS="Parser Grammar Objects Python Modules Mac
"
23914 { echo "$as_me:$LINENO: checking
for build directories
" >&5
23915 echo $ECHO_N "checking
for build directories...
$ECHO_C" >&6; }
23916 for dir in $SRCDIRS; do
23917 if test ! -d $dir; then
23921 { echo "$as_me:$LINENO: result
: done" >&5
23922 echo "${ECHO_T}done" >&6; }
23924 # generate output files
23925 ac_config_files="$ac_config_files Makefile.pre Modules
/Setup.config
"
23927 cat >confcache <<\_ACEOF
23928 # This file is a shell script that caches the results of configure
23929 # tests run on this system so they can be shared between configure
23930 # scripts and configure runs, see configure's option --config-cache.
23931 # It is not useful on other systems. If it contains results you don't
23932 # want to keep, you may remove or edit it.
23934 # config.status only pays attention to the cache file if you give it
23935 # the --recheck option to rerun configure.
23937 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23938 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23939 # following values.
23943 # The following way of writing the cache mishandles newlines in values,
23944 # but we know of no workaround that is simple, portable, and efficient.
23945 # So, we kill variables containing newlines.
23946 # Ultrix sh set writes to stderr and can't be redirected directly,
23947 # and sets the high bit in the cache file unless we assign to the vars.
23949 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23950 eval ac_val=\$$ac_var
23954 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
23955 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
23958 _ | IFS | as_nl) ;; #(
23959 *) $as_unset $ac_var ;;
23965 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23966 *${as_nl}ac_space=\ *)
23967 # `set' does not quote correctly, so add quotes (double-quote
23968 # substitution turns \\\\ into \\, and sed turns \\ into \).
23971 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
23974 # `set' quotes correctly as required by POSIX, so do not add quotes.
23975 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
23984 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23986 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23988 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23989 if test -w "$cache_file"; then
23990 test "x
$cache_file" != "x
/dev
/null
" &&
23991 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
23992 echo "$as_me: updating cache
$cache_file" >&6;}
23993 cat confcache >$cache_file
23995 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
23996 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
24001 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
24002 # Let make expand exec_prefix.
24003 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
24005 DEFS=-DHAVE_CONFIG_H
24009 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
24010 # 1. Remove the extension, and $U if already installed.
24011 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24012 ac_i=`echo "$ac_i" | sed "$ac_script"`
24013 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24014 # will be set to the directory where LIBOBJS objects are built.
24015 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
24016 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
24018 LIBOBJS=$ac_libobjs
24020 LTLIBOBJS=$ac_ltlibobjs
24024 : ${CONFIG_STATUS=./config.status}
24025 ac_clean_files_save=$ac_clean_files
24026 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24027 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
24028 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
24029 cat >$CONFIG_STATUS <<_ACEOF
24031 # Generated by $as_me.
24032 # Run this file to recreate the current configuration.
24033 # Compiler output produced by configure, useful for debugging
24034 # configure, is in config.log if it exists.
24037 ac_cs_recheck=false
24039 SHELL=\${CONFIG_SHELL-$SHELL}
24042 cat >>$CONFIG_STATUS <<\_ACEOF
24043 ## --------------------- ##
24044 ## M4sh Initialization. ##
24045 ## --------------------- ##
24047 # Be more Bourne compatible
24048 DUALCASE=1; export DUALCASE # for MKS sh
24049 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24052 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24053 # is contrary to our usage. Disable this feature.
24054 alias -g '${1+"$@"}'='"$@
"'
24055 setopt NO_GLOB_SUBST
24057 case `(set -o) 2>/dev/null` in
24058 *posix*) set -o posix ;;
24067 # Avoid depending upon Character Ranges.
24068 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24069 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24070 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24071 as_cr_digits='0123456789'
24072 as_cr_alnum=$as_cr_Letters$as_cr_digits
24074 # The user is always right.
24075 if test "${PATH_SEPARATOR+set}" != set; then
24076 echo "#! /bin/sh" >conf$$.sh
24077 echo "exit 0" >>conf$$.sh
24079 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
24087 # Support unset when possible.
24088 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
24096 # We need space, tab and new line, in precisely that order. Quoting is
24097 # there to prevent editors from complaining about space-tab.
24098 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24099 # splitting by setting IFS to empty value.)
24104 # Find who we are. Look in the path if we contain no directory separator.
24106 *[\\/]* ) as_myself
=$0 ;;
24107 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24108 for as_dir
in $PATH
24111 test -z "$as_dir" && as_dir
=.
24112 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
24118 # We did not find ourselves, most probably we were run as `sh COMMAND'
24119 # in which case we are not to be found in the path.
24120 if test "x$as_myself" = x
; then
24123 if test ! -f "$as_myself"; then
24124 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24125 { (exit 1); exit 1; }
24128 # Work around bugs in pre-3.0 UWIN ksh.
24129 for as_var
in ENV MAIL MAILPATH
24130 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24138 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24139 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24140 LC_TELEPHONE LC_TIME
24142 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24143 eval $as_var=C
; export $as_var
24145 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24149 # Required to use basename.
24150 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24151 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24157 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24158 as_basename
=basename
24164 # Name of the executable.
24165 as_me
=`$as_basename -- "$0" ||
24166 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24167 X"$0" : 'X\(//\)$' \| \
24168 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24170 sed '/^.*\/\([^/][^/]*\)\/*$/{
24189 as_lineno_1
=$LINENO
24190 as_lineno_2
=$LINENO
24191 test "x$as_lineno_1" != "x$as_lineno_2" &&
24192 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
24194 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24195 # uniformly replaced by the line number. The first 'sed' inserts a
24196 # line-number line after each line using $LINENO; the second 'sed'
24197 # does the real work. The second script uses 'N' to pair each
24198 # line-number line with the line containing $LINENO, and appends
24199 # trailing '-' during substitution so that $LINENO is not a special
24200 # case at line end.
24201 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24202 # scripts with optimization help from Paolo Bonzini. Blame Lee
24203 # E. McMahon (1931-1989) for sed's syntax. :-)
24215 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24218 ' >$as_me.lineno
&&
24219 chmod +x
"$as_me.lineno" ||
24220 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24221 { (exit 1); exit 1; }; }
24223 # Don't try to exec as it changes $[0], causing all sort of problems
24224 # (the dirname of $[0] is not the place where we might find the
24225 # original and so on. Autoconf is especially sensitive to this).
24226 .
"./$as_me.lineno"
24227 # Exit status is that of the last command.
24232 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
24238 ECHO_C
= ECHO_N
= ECHO_T
=
24239 case `echo -n x` in
24241 case `echo 'x\c'` in
24242 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
24249 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24250 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24256 rm -f conf$$ conf$$.exe conf$$.
file
24257 if test -d conf$$.dir
; then
24258 rm -f conf$$.dir
/conf$$.
file
24264 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
24266 # ... but there are two gotchas:
24267 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24268 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24269 # In both cases, we have to default to `cp -p'.
24270 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
24272 elif ln conf$$.
file conf$$
2>/dev
/null
; then
24277 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
24278 rmdir conf$$.dir
2>/dev
/null
24280 if mkdir
-p .
2>/dev
/null
; then
24283 test -d .
/-p && rmdir .
/-p
24287 if test -x / >/dev
/null
2>&1; then
24288 as_test_x
='test -x'
24290 if ls -dL / >/dev
/null
2>&1; then
24297 if test -d "$1"; then
24303 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24304 ???[sx]*):;;*)false;;esac;fi
24308 as_executable_p
=$as_test_x
24310 # Sed expression to map a string onto a valid CPP name.
24311 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24313 # Sed expression to map a string onto a valid variable name.
24314 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24319 # Save the log message, to keep $[0] and so on meaningful, and to
24320 # report actual input values of CONFIG_FILES etc. instead of their
24321 # values after options handling.
24323 This file was extended by python $as_me 2.6, which was
24324 generated by GNU Autoconf 2.61. Invocation command line was
24326 CONFIG_FILES = $CONFIG_FILES
24327 CONFIG_HEADERS = $CONFIG_HEADERS
24328 CONFIG_LINKS = $CONFIG_LINKS
24329 CONFIG_COMMANDS = $CONFIG_COMMANDS
24332 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24337 cat >>$CONFIG_STATUS <<_ACEOF
24338 # Files that config.status was made for.
24339 config_files="$ac_config_files"
24340 config_headers="$ac_config_headers"
24344 cat >>$CONFIG_STATUS <<\_ACEOF
24346 \`$as_me' instantiates files from templates according to the
24347 current configuration.
24349 Usage: $0 [OPTIONS] [FILE]...
24351 -h, --help print this help, then exit
24352 -V, --version print version number and configuration settings, then exit
24353 -q, --quiet do not print progress messages
24354 -d, --debug don't remove temporary files
24355 --recheck update $as_me by reconfiguring in the same conditions
24356 --file=FILE[:TEMPLATE]
24357 instantiate the configuration file FILE
24358 --header=FILE[:TEMPLATE]
24359 instantiate the configuration header FILE
24361 Configuration files:
24364 Configuration headers:
24367 Report bugs to <bug-autoconf@gnu.org>."
24370 cat >>$CONFIG_STATUS <<_ACEOF
24372 python config.status 2.6
24373 configured by $0, generated by GNU Autoconf 2.61,
24374 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24376 Copyright (C) 2006 Free Software Foundation, Inc.
24377 This config.status script is free software; the Free Software Foundation
24378 gives unlimited permission to copy, distribute and modify it."
24385 cat >>$CONFIG_STATUS <<\_ACEOF
24386 # If no file are specified by the user, then we need to provide default
24387 # value. By we need to know if files were specified by the user.
24393 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
24394 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
24405 # Handling of the options.
24406 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
24408 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
24409 echo "$ac_cs_version"; exit ;;
24410 --debug |
--debu |
--deb |
--de |
--d |
-d )
24412 --file |
--fil |
--fi |
--f )
24414 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
24415 ac_need_defaults
=false
;;
24416 --header |
--heade |
--head |
--hea )
24418 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
24419 ac_need_defaults
=false
;;
24421 # Conflict between --help and --header
24422 { echo "$as_me: error: ambiguous option: $1
24423 Try \`$0 --help' for more information." >&2
24424 { (exit 1); exit 1; }; };;
24425 --help |
--hel |
-h )
24426 echo "$ac_cs_usage"; exit ;;
24427 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
24428 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
24431 # This is an error.
24432 -*) { echo "$as_me: error: unrecognized option: $1
24433 Try \`$0 --help' for more information." >&2
24434 { (exit 1); exit 1; }; } ;;
24436 *) ac_config_targets
="$ac_config_targets $1"
24437 ac_need_defaults
=false
;;
24443 ac_configure_extra_args
=
24445 if $ac_cs_silent; then
24447 ac_configure_extra_args
="$ac_configure_extra_args --silent"
24451 cat >>$CONFIG_STATUS <<_ACEOF
24452 if \$ac_cs_recheck; then
24453 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24454 CONFIG_SHELL=$SHELL
24455 export CONFIG_SHELL
24456 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24460 cat >>$CONFIG_STATUS <<\_ACEOF
24464 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24465 ## Running $as_me. ##
24471 cat >>$CONFIG_STATUS <<_ACEOF
24474 cat >>$CONFIG_STATUS <<\_ACEOF
24476 # Handling of arguments.
24477 for ac_config_target
in $ac_config_targets
24479 case $ac_config_target in
24480 "pyconfig.h") CONFIG_HEADERS
="$CONFIG_HEADERS pyconfig.h" ;;
24481 "Mac/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/Makefile" ;;
24482 "Mac/PythonLauncher/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
24483 "Mac/IDLE/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/IDLE/Makefile" ;;
24484 "Makefile.pre") CONFIG_FILES
="$CONFIG_FILES Makefile.pre" ;;
24485 "Modules/Setup.config") CONFIG_FILES
="$CONFIG_FILES Modules/Setup.config" ;;
24487 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24488 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24489 { (exit 1); exit 1; }; };;
24494 # If the user did not use the arguments to specify the items to instantiate,
24495 # then the envvar interface is used. Set only those that are not.
24496 # We use the long form for the default assignment because of an extremely
24497 # bizarre bug on SunOS 4.1.3.
24498 if $ac_need_defaults; then
24499 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
24500 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
24503 # Have a temporary directory for convenience. Make it in the build tree
24504 # simply because there is no reason against having it here, and in addition,
24505 # creating and moving files from /tmp can sometimes cause problems.
24506 # Hook for its removal unless debugging.
24507 # Note that there is a small window in which the directory will not be cleaned:
24508 # after its creation but before its name has been assigned to `$tmp'.
24512 trap 'exit_status=$?
24513 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24515 trap '{ (exit 1); exit 1; }' 1 2 13 15
24517 # Create a (secure) tmp directory for tmp files.
24520 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24521 test -n "$tmp" && test -d "$tmp"
24524 tmp
=.
/conf$$
-$RANDOM
24525 (umask 077 && mkdir
"$tmp")
24528 echo "$me: cannot create a temporary directory in ." >&2
24529 { (exit 1); exit 1; }
24533 # Set up the sed scripts for CONFIG_FILES section.
24536 # No need to generate the scripts if there are no CONFIG_FILES.
24537 # This happens for instance when ./config.status config.h
24538 if test -n "$CONFIG_FILES"; then
24545 for ac_last_try
in false false false false false
:; do
24546 cat >conf$
$subs.
sed <<_ACEOF
24547 SHELL!$SHELL$ac_delim
24548 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24549 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24550 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24551 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24552 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24553 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24554 exec_prefix!$exec_prefix$ac_delim
24555 prefix!$prefix$ac_delim
24556 program_transform_name!$program_transform_name$ac_delim
24557 bindir!$bindir$ac_delim
24558 sbindir!$sbindir$ac_delim
24559 libexecdir!$libexecdir$ac_delim
24560 datarootdir!$datarootdir$ac_delim
24561 datadir!$datadir$ac_delim
24562 sysconfdir!$sysconfdir$ac_delim
24563 sharedstatedir!$sharedstatedir$ac_delim
24564 localstatedir!$localstatedir$ac_delim
24565 includedir!$includedir$ac_delim
24566 oldincludedir!$oldincludedir$ac_delim
24567 docdir!$docdir$ac_delim
24568 infodir!$infodir$ac_delim
24569 htmldir!$htmldir$ac_delim
24570 dvidir!$dvidir$ac_delim
24571 pdfdir!$pdfdir$ac_delim
24572 psdir!$psdir$ac_delim
24573 libdir!$libdir$ac_delim
24574 localedir!$localedir$ac_delim
24575 mandir!$mandir$ac_delim
24576 DEFS!$DEFS$ac_delim
24577 ECHO_C!$ECHO_C$ac_delim
24578 ECHO_N!$ECHO_N$ac_delim
24579 ECHO_T!$ECHO_T$ac_delim
24580 LIBS!$LIBS$ac_delim
24581 build_alias!$build_alias$ac_delim
24582 host_alias!$host_alias$ac_delim
24583 target_alias!$target_alias$ac_delim
24584 VERSION!$VERSION$ac_delim
24585 SOVERSION!$SOVERSION$ac_delim
24586 CONFIG_ARGS!$CONFIG_ARGS$ac_delim
24587 UNIVERSALSDK!$UNIVERSALSDK$ac_delim
24588 PYTHONFRAMEWORK!$PYTHONFRAMEWORK$ac_delim
24589 PYTHONFRAMEWORKDIR!$PYTHONFRAMEWORKDIR$ac_delim
24590 PYTHONFRAMEWORKPREFIX!$PYTHONFRAMEWORKPREFIX$ac_delim
24591 PYTHONFRAMEWORKINSTALLDIR!$PYTHONFRAMEWORKINSTALLDIR$ac_delim
24592 FRAMEWORKINSTALLFIRST!$FRAMEWORKINSTALLFIRST$ac_delim
24593 FRAMEWORKINSTALLLAST!$FRAMEWORKINSTALLLAST$ac_delim
24594 FRAMEWORKALTINSTALLFIRST!$FRAMEWORKALTINSTALLFIRST$ac_delim
24595 FRAMEWORKALTINSTALLLAST!$FRAMEWORKALTINSTALLLAST$ac_delim
24596 FRAMEWORKUNIXTOOLSPREFIX!$FRAMEWORKUNIXTOOLSPREFIX$ac_delim
24597 MACHDEP!$MACHDEP$ac_delim
24598 SGI_ABI!$SGI_ABI$ac_delim
24599 EXTRAPLATDIR!$EXTRAPLATDIR$ac_delim
24600 EXTRAMACHDEPPATH!$EXTRAMACHDEPPATH$ac_delim
24601 CONFIGURE_MACOSX_DEPLOYMENT_TARGET!$CONFIGURE_MACOSX_DEPLOYMENT_TARGET$ac_delim
24602 EXPORT_MACOSX_DEPLOYMENT_TARGET!$EXPORT_MACOSX_DEPLOYMENT_TARGET$ac_delim
24604 CFLAGS!$CFLAGS$ac_delim
24605 LDFLAGS!$LDFLAGS$ac_delim
24606 CPPFLAGS!$CPPFLAGS$ac_delim
24607 ac_ct_CC!$ac_ct_CC$ac_delim
24608 EXEEXT!$EXEEXT$ac_delim
24609 OBJEXT!$OBJEXT$ac_delim
24611 MAINCC!$MAINCC$ac_delim
24613 GREP!$GREP$ac_delim
24614 EGREP!$EGREP$ac_delim
24615 BUILDEXEEXT!$BUILDEXEEXT$ac_delim
24616 LIBRARY!$LIBRARY$ac_delim
24617 LDLIBRARY!$LDLIBRARY$ac_delim
24618 DLLLIBRARY!$DLLLIBRARY$ac_delim
24619 BLDLIBRARY!$BLDLIBRARY$ac_delim
24620 LDLIBRARYDIR!$LDLIBRARYDIR$ac_delim
24621 INSTSONAME!$INSTSONAME$ac_delim
24622 RUNSHARED!$RUNSHARED$ac_delim
24623 LINKCC!$LINKCC$ac_delim
24624 RANLIB!$RANLIB$ac_delim
24626 SVNVERSION!$SVNVERSION$ac_delim
24627 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24628 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24629 INSTALL_DATA!$INSTALL_DATA$ac_delim
24632 BASECFLAGS!$BASECFLAGS$ac_delim
24633 OTHER_LIBTOOL_OPT!$OTHER_LIBTOOL_OPT$ac_delim
24634 LIBTOOL_CRUFT!$LIBTOOL_CRUFT$ac_delim
24636 LDSHARED!$LDSHARED$ac_delim
24637 BLDSHARED!$BLDSHARED$ac_delim
24638 CCSHARED!$CCSHARED$ac_delim
24639 LINKFORSHARED!$LINKFORSHARED$ac_delim
24640 CFLAGSFORSHARED!$CFLAGSFORSHARED$ac_delim
24641 SHLIBS!$SHLIBS$ac_delim
24642 USE_SIGNAL_MODULE!$USE_SIGNAL_MODULE$ac_delim
24643 SIGNAL_OBJS!$SIGNAL_OBJS$ac_delim
24646 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24648 elif $ac_last_try; then
24649 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24650 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24651 { (exit 1); exit 1; }; }
24653 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24657 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24658 if test -n "$ac_eof"; then
24659 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24660 ac_eof
=`expr $ac_eof + 1`
24663 cat >>$CONFIG_STATUS <<_ACEOF
24664 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24665 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24668 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24669 s/^/s,@/; s/!/@,|#_!!_#|/
24672 s/'"$ac_delim"'$/,g/; t
24674 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24675 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24676 rm -f conf$
$subs.
sed
24677 cat >>$CONFIG_STATUS <<_ACEOF
24683 for ac_last_try
in false false false false false
:; do
24684 cat >conf$
$subs.
sed <<_ACEOF
24685 USE_THREAD_MODULE!$USE_THREAD_MODULE$ac_delim
24686 LDLAST!$LDLAST$ac_delim
24687 THREADOBJ!$THREADOBJ$ac_delim
24688 DLINCLDIR!$DLINCLDIR$ac_delim
24689 DYNLOADFILE!$DYNLOADFILE$ac_delim
24690 MACHDEP_OBJS!$MACHDEP_OBJS$ac_delim
24691 TRUE!$TRUE$ac_delim
24692 LIBOBJS!$LIBOBJS$ac_delim
24693 HAVE_GETHOSTBYNAME_R_6_ARG!$HAVE_GETHOSTBYNAME_R_6_ARG$ac_delim
24694 HAVE_GETHOSTBYNAME_R_5_ARG!$HAVE_GETHOSTBYNAME_R_5_ARG$ac_delim
24695 HAVE_GETHOSTBYNAME_R_3_ARG!$HAVE_GETHOSTBYNAME_R_3_ARG$ac_delim
24696 HAVE_GETHOSTBYNAME_R!$HAVE_GETHOSTBYNAME_R$ac_delim
24697 HAVE_GETHOSTBYNAME!$HAVE_GETHOSTBYNAME$ac_delim
24698 LIBM!$LIBM$ac_delim
24699 LIBC!$LIBC$ac_delim
24700 UNICODE_OBJS!$UNICODE_OBJS$ac_delim
24701 THREADHEADERS!$THREADHEADERS$ac_delim
24702 SRCDIRS!$SRCDIRS$ac_delim
24703 LTLIBOBJS!$LTLIBOBJS$ac_delim
24706 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 19; then
24708 elif $ac_last_try; then
24709 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24710 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24711 { (exit 1); exit 1; }; }
24713 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24717 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24718 if test -n "$ac_eof"; then
24719 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24720 ac_eof
=`expr $ac_eof + 1`
24723 cat >>$CONFIG_STATUS <<_ACEOF
24724 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24725 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24728 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24729 s/^/s,@/; s/!/@,|#_!!_#|/
24732 s/'"$ac_delim"'$/,g/; t
24734 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24735 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24736 rm -f conf$
$subs.
sed
24737 cat >>$CONFIG_STATUS <<_ACEOF
24744 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24745 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24746 # trailing colons and then remove the whole line if VPATH becomes empty
24747 # (actually we leave an empty line to preserve line numbers).
24748 if test "x$srcdir" = x.
; then
24749 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
24750 s/:*\$(srcdir):*/:/
24751 s/:*\${srcdir}:*/:/
24753 s/^\([^=]*=[ ]*\):*/\1/
24759 cat >>$CONFIG_STATUS <<\_ACEOF
24760 fi # test -n "$CONFIG_FILES"
24763 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
24766 :[FHLC
]) ac_mode
=$ac_tag; continue;;
24768 case $ac_mode$ac_tag in
24770 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24771 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24772 { (exit 1); exit 1; }; };;
24773 :[FH
]-) ac_tag
=-:-;;
24774 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
24791 -) ac_f
="$tmp/stdin";;
24792 *) # Look for the file first in the build tree, then in the source tree
24793 # (if the path is not absolute). The absolute path cannot be DOS-style,
24794 # because $ac_f cannot contain `:'.
24798 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
24800 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24801 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24802 { (exit 1); exit 1; }; };;
24804 ac_file_inputs
="$ac_file_inputs $ac_f"
24807 # Let's still pretend it is `configure' which instantiates (i.e., don't
24808 # use $as_me), people would be surprised to read:
24809 # /* config.h. Generated by config.status. */
24810 configure_input
="Generated from "`IFS=:
24811 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24812 if test x
"$ac_file" != x-
; then
24813 configure_input
="$ac_file. $configure_input"
24814 { echo "$as_me:$LINENO: creating $ac_file" >&5
24815 echo "$as_me: creating $ac_file" >&6;}
24819 *:-:* |
*:-) cat >"$tmp/stdin";;
24824 ac_dir
=`$as_dirname -- "$ac_file" ||
24825 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24826 X"$ac_file" : 'X\(//\)[^/]' \| \
24827 X"$ac_file" : 'X\(//\)$' \| \
24828 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24830 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24834 /^X\(\/\/\)[^/].*/{
24849 -*) as_dir
=.
/$as_dir;;
24851 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
24855 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24856 *) as_qdir
=$as_dir;;
24858 as_dirs
="'$as_qdir' $as_dirs"
24859 as_dir
=`$as_dirname -- "$as_dir" ||
24860 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24861 X"$as_dir" : 'X\(//\)[^/]' \| \
24862 X"$as_dir" : 'X\(//\)$' \| \
24863 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24869 /^X\(\/\/\)[^/].*/{
24882 test -d "$as_dir" && break
24884 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
24885 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24886 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24887 { (exit 1); exit 1; }; }; }
24891 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24893 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24894 # A ".." for each directory in $ac_dir_suffix.
24895 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24896 case $ac_top_builddir_sub in
24897 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24898 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
24901 ac_abs_top_builddir
=$ac_pwd
24902 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
24903 # for backward compatibility:
24904 ac_top_builddir
=$ac_top_build_prefix
24907 .
) # We are building in place.
24909 ac_top_srcdir
=$ac_top_builddir_sub
24910 ac_abs_top_srcdir
=$ac_pwd ;;
24911 [\\/]* | ?
:[\\/]* ) # Absolute name.
24912 ac_srcdir
=$srcdir$ac_dir_suffix;
24913 ac_top_srcdir
=$srcdir
24914 ac_abs_top_srcdir
=$srcdir ;;
24915 *) # Relative name.
24916 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
24917 ac_top_srcdir
=$ac_top_build_prefix$srcdir
24918 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
24920 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
24930 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
24931 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
24935 cat >>$CONFIG_STATUS <<\_ACEOF
24936 # If the template does not know about datarootdir, expand it.
24937 # FIXME: This hack should be removed a few years after 2.60.
24938 ac_datarootdir_hack
=; ac_datarootdir_seen
=
24940 case `sed -n '/datarootdir/ {
24949 ' $ac_file_inputs` in
24950 *datarootdir
*) ac_datarootdir_seen
=yes;;
24951 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
24952 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24953 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24955 cat >>$CONFIG_STATUS <<_ACEOF
24956 ac_datarootdir_hack='
24957 s&@datadir@&$datadir&g
24958 s&@docdir@&$docdir&g
24959 s&@infodir@&$infodir&g
24960 s&@localedir@&$localedir&g
24961 s&@mandir@&$mandir&g
24962 s&\\\${datarootdir}&$datarootdir&g' ;;
24966 # Neutralize VPATH when `$srcdir' = `.'.
24967 # Shell code in configure.ac might set extrasub.
24968 # FIXME: do we really want to maintain this feature?
24969 cat >>$CONFIG_STATUS <<_ACEOF
24973 cat >>$CONFIG_STATUS <<\_ACEOF
24975 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
24976 s
&@configure_input@
&$configure_input&;t t
24977 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
24978 s
&@srcdir@
&$ac_srcdir&;t t
24979 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
24980 s
&@top_srcdir@
&$ac_top_srcdir&;t t
24981 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
24982 s
&@builddir@
&$ac_builddir&;t t
24983 s
&@abs_builddir@
&$ac_abs_builddir&;t t
24984 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
24985 s
&@INSTALL@
&$ac_INSTALL&;t t
24986 $ac_datarootdir_hack
24987 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
24989 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24990 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
24991 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
24992 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
24993 which seems to be undefined. Please make sure it is defined." >&5
24994 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
24995 which seems to be undefined. Please make sure it is defined." >&2;}
24999 -) cat "$tmp/out"; rm -f "$tmp/out";;
25000 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25009 # Transform confdefs.h into a sed script `conftest.defines', that
25010 # substitutes the proper values into config.h.in to produce config.h.
25011 rm -f conftest.defines conftest.
tail
25012 # First, append a space to every undef/define line, to ease matching.
25013 echo 's/$/ /' >conftest.defines
25014 # Then, protect against being on the right side of a sed subst, or in
25015 # an unquoted here document, in config.status. If some macros were
25016 # called several times there might be several #defines for the same
25017 # symbol, which is useless. But do not sort them, since the last
25018 # AC_DEFINE must be honored.
25019 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
25020 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25021 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25022 # PARAMS is the parameter list in the macro definition--in most cases, it's
25023 # just an empty string.
25024 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25025 ac_dB
='\\)[ (].*,\\1define\\2'
25033 s/^[ ]*#[ ]*define[ ][ ]*//
25038 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25039 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25040 ' >>conftest.defines
25042 # Remove the space that was appended to ease matching.
25043 # Then replace #undef with comments. This is necessary, for
25044 # example, in the case of _POSIX_SOURCE, which is predefined and required
25045 # on some systems where configure will not decide to define it.
25046 # (The regexp can be short, since the line contains either #define or #undef.)
25048 s,^[ #]*u.*,/* & */,' >>conftest.defines
25050 # Break up conftest.defines:
25051 ac_max_sed_lines
=50
25053 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25054 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25055 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25057 ac_in
='$ac_file_inputs'
25058 ac_out
='"$tmp/out1"'
25059 ac_nxt
='"$tmp/out2"'
25063 # Write a here document:
25064 cat >>$CONFIG_STATUS <<_ACEOF
25065 # First, check the format of the line:
25066 cat >"\$tmp/defines.sed" <<\\CEOF
25067 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25068 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25072 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
25074 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25075 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
25076 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
25077 grep . conftest.
tail >/dev
/null ||
break
25078 rm -f conftest.defines
25079 mv conftest.
tail conftest.defines
25081 rm -f conftest.defines conftest.
tail
25083 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25084 cat >>$CONFIG_STATUS <<\_ACEOF
25085 if test x
"$ac_file" != x-
; then
25086 echo "/* $configure_input */" >"$tmp/config.h"
25087 cat "$ac_result" >>"$tmp/config.h"
25088 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
25089 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25090 echo "$as_me: $ac_file is unchanged" >&6;}
25093 mv "$tmp/config.h" $ac_file
25096 echo "/* $configure_input */"
25108 { (exit 0); exit 0; }
25110 chmod +x
$CONFIG_STATUS
25111 ac_clean_files
=$ac_clean_files_save
25114 # configure is writing to config.log, and then calls config.status.
25115 # config.status does its own redirection, appending to config.log.
25116 # Unfortunately, on DOS this fails, as config.log is still kept open
25117 # by configure, so config.status won't be able to write to it; its
25118 # output is simply discarded. So we exec the FD to /dev/null,
25119 # effectively closing config.log, so it can be properly (re)opened and
25120 # appended to by config.status. When coming back to configure, we
25121 # need to make the FD available again.
25122 if test "$no_create" != yes; then
25124 ac_config_status_args
=
25125 test "$silent" = yes &&
25126 ac_config_status_args
="$ac_config_status_args --quiet"
25128 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
25130 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25131 # would make configure fail if this is the last instruction.
25132 $ac_cs_success ||
{ (exit 1); exit 1; }
25136 echo "creating Modules/Setup"
25137 if test ! -f Modules
/Setup
25139 cp $srcdir/Modules
/Setup.dist Modules
/Setup
25142 echo "creating Modules/Setup.local"
25143 if test ! -f Modules
/Setup.
local
25145 echo "# Edit this file for local setup changes" >Modules
/Setup.
local
25148 echo "creating Makefile"
25149 $SHELL $srcdir/Modules
/makesetup
-c $srcdir/Modules
/config.c.
in \
25150 -s Modules Modules
/Setup.config \
25151 Modules
/Setup.
local Modules
/Setup
25153 case $ac_sys_system in
25155 { echo "$as_me:$LINENO: WARNING:
25157 Support for BeOS is deprecated as of Python 2.6.
25158 See PEP 11 for the gory details.
25160 echo "$as_me: WARNING:
25162 Support for BeOS is deprecated as of Python 2.6.
25163 See PEP 11 for the gory details.
25169 mv config.c Modules